/* =========================================================
   Beau Moment by Afya — feuille de style
   ========================================================= */

:root {
  --cream: #faf6f1;
  --ivory: #f4ede4;
  --sand: #ebdfd1;
  --blush: #e8d3c6;
  --nude: #d6b9a4;
  --taupe: #a58877;
  --cocoa: #6b5144;
  --espresso: #3d2e27;
  --gold: #b8976a;
  --line: #e0d0c1;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, sans-serif;
  --script: "Pinyon Script", "Cormorant Garamond", cursive;

  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --arch: 999px 999px 0 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; }
p { margin: 0 0 1.1em; }
::selection { background: var(--blush); color: var(--espresso); }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 48px); margin-inline: auto; }
.center { text-align: center; }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.bg-ivory { background: var(--ivory); }
.bg-sand { background: var(--sand); }

/* ---------- Typo utilitaire ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--taupe); font-weight: 400;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.center .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.title { font-size: clamp(38px, 5.4vw, 64px); margin: 18px 0 26px; letter-spacing: -.005em; }
.title em, .lead em { font-style: italic; color: var(--cocoa); }
.lead { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.5; color: var(--cocoa); }
.script { font-family: var(--script); font-weight: 400; }
.muted { color: var(--taupe); }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--cocoa); --fg: var(--cream);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 36px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bg);
  font: 400 12.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; overflow: hidden;
  transition: color .5s var(--ease), border-color .5s var(--ease);
  isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--espresso); transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { border-color: var(--espresso); }
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-outline { --bg: transparent; --fg: var(--cocoa); border-color: var(--cocoa); }
.btn-outline::before { background: var(--cocoa); }
.btn-outline:hover { color: var(--cream); }
.btn-light { --bg: var(--cream); --fg: var(--espresso); }
.btn-light::before { background: var(--blush); }
.btn-ghost-light { --bg: transparent; --fg: var(--cream); border-color: rgba(250,246,241,.7); }
.btn-ghost-light::before { background: var(--cream); }
.btn-ghost-light:hover { color: var(--espresso); border-color: var(--cream); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  color: var(--cocoa); padding-bottom: 6px; border-bottom: 1px solid var(--nude);
  transition: gap .4s var(--ease), border-color .4s;
}
.link-arrow:hover { gap: 16px; border-color: var(--cocoa); }

/* ---------- Préchargement ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999; background: var(--cream);
  display: grid; place-items: center;
  transition: opacity .8s var(--ease), visibility .8s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader .mark { text-align: center; animation: breathe 1.6s var(--ease) infinite alternate; }
.preloader .mark span { display: block; font-family: var(--serif); font-size: 28px; letter-spacing: .3em; text-transform: uppercase; }
.preloader .mark em { font-family: var(--script); font-style: normal; font-size: 30px; color: var(--taupe); }
@keyframes breathe { from { opacity: .35; } to { opacity: 1; } }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background .5s var(--ease), box-shadow .5s, height .5s var(--ease), color .5s;
  color: var(--espresso);
}
.site-header.transparent { color: var(--cream); }
.site-header.scrolled {
  background: rgba(250, 246, 241, .94); color: var(--espresso);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  box-shadow: 0 1px 0 var(--line); height: 70px;
}
.site-header:not(.transparent) { background: rgba(250, 246, 241, .94); box-shadow: 0 1px 0 var(--line); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.brand b { font: 400 21px/1 var(--serif); letter-spacing: .26em; text-transform: uppercase; }
.brand i { font: 400 22px/1 var(--script); align-self: flex-end; margin-top: -2px; color: var(--gold); }
.site-header.transparent:not(.scrolled) .brand i { color: var(--blush); }
.menu { list-style: none; display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); margin: 0; padding: 0; }
.menu a {
  position: relative; text-decoration: none;
  font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase;
}
.menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.menu a:not(.btn):hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.menu .btn { padding: 13px 22px; font-size: 11.5px; }
.site-header.transparent:not(.scrolled) .menu .btn { --bg: transparent; --fg: var(--cream); border-color: rgba(250,246,241,.7); }
.site-header.transparent:not(.scrolled) .menu .btn::before { background: var(--cream); }
.site-header.transparent:not(.scrolled) .menu .btn:hover { color: var(--espresso); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; color: inherit; position: relative; z-index: 2; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .5s var(--ease), opacity .3s, top .5s var(--ease); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Menu plein écran (mobile) */
.overlay-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ivory);
  display: flex; flex-direction: column; justify-content: center; padding: 100px 32px 40px;
  clip-path: circle(0% at calc(100% - 46px) 42px);
  transition: clip-path .9s var(--ease); visibility: hidden;
}
.menu-open .overlay-menu { clip-path: circle(150% at calc(100% - 46px) 42px); visibility: visible; }
.overlay-menu ol { list-style: none; margin: 0; padding: 0; }
.overlay-menu li { overflow: hidden; }
.overlay-menu a {
  display: flex; align-items: baseline; gap: 18px; text-decoration: none; padding: 8px 0;
  font: 400 clamp(36px, 10vw, 52px)/1.15 var(--serif); color: var(--espresso);
  transform: translateY(110%); transition: transform .8s var(--ease);
}
.menu-open .overlay-menu a { transform: none; }
.menu-open .overlay-menu li:nth-child(2) a { transition-delay: .06s; }
.menu-open .overlay-menu li:nth-child(3) a { transition-delay: .12s; }
.menu-open .overlay-menu li:nth-child(4) a { transition-delay: .18s; }
.menu-open .overlay-menu li:nth-child(5) a { transition-delay: .24s; }
.menu-open .overlay-menu li:nth-child(6) a { transition-delay: .30s; }
.overlay-menu .overlay-foot { margin-top: 48px; font-size: 13px; letter-spacing: .14em; color: var(--taupe); display: flex; gap: 24px; flex-wrap: wrap; }
.overlay-menu .overlay-foot a { font: inherit; transform: none; display: inline; padding: 0; color: var(--cocoa); }
.menu-open .site-header { color: var(--espresso); background: transparent; box-shadow: none; }

/* ---------- Héros d'accueil ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 640px;
  display: flex; align-items: flex-end; color: var(--cream); overflow: hidden; background: var(--espresso);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: -2%; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08); transition: opacity 1.8s var(--ease);
}
.hero-slide.active { opacity: 1; animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(61,46,39,.55) 0%, rgba(61,46,39,.12) 30%, rgba(61,46,39,.2) 55%, rgba(61,46,39,.78) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(70px, 11vh, 120px); }
.hero .eyebrow { color: var(--blush); }
.hero h1 {
  font-size: clamp(58px, 11.5vw, 168px); letter-spacing: .06em; text-transform: uppercase; line-height: .92;
  margin: 22px 0 0; font-weight: 400;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease); }
.hero h1 .by { font-family: var(--script); text-transform: none; letter-spacing: 0; font-size: .42em; color: var(--blush); margin-left: .2em; }
.loaded .hero h1 .line span { transform: none; }
.loaded .hero h1 .line:nth-child(2) span { transition-delay: .12s; }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-top: 34px; }
.hero .tagline { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 32px); max-width: 520px; margin: 0; line-height: 1.35; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; z-index: 3; right: 24px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--cream); background: transparent; padding: 0; cursor: pointer; transition: background .4s, transform .4s; }
.hero-dots button.active { background: var(--cream); transform: scale(1.25); }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 22px; width: 1px; height: 54px; background: rgba(250,246,241,.3); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--cream); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- Héros des pages intérieures ---------- */
.page-hero {
  position: relative; min-height: 62vh; display: flex; align-items: flex-end;
  color: var(--cream); background: var(--espresso) center / cover no-repeat; overflow: hidden;
  padding-top: var(--header-h);
}
.page-hero .bg { position: absolute; inset: 0; background: inherit; background-size: cover; background-position: center; transform: scale(1.06); transition: transform 2.4s var(--ease); }
.loaded .page-hero .bg { transform: scale(1); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(61,46,39,.45), rgba(61,46,39,.25) 40%, rgba(61,46,39,.75)); }
.page-hero .container { position: relative; z-index: 2; padding: 60px 0 clamp(50px, 8vh, 90px); }
.page-hero .eyebrow { color: var(--blush); }
.page-hero h1 { font-size: clamp(48px, 8vw, 110px); margin-top: 16px; }
.page-hero h1 em { font-style: italic; color: var(--blush); }
.page-hero p { max-width: 560px; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 26px); margin: 18px 0 0; }
.breadcrumb { position: absolute; z-index: 2; right: 24px; bottom: 26px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.breadcrumb a { text-decoration: none; }
.page-hero.compact { min-height: 46vh; }

/* ---------- Bandeau défilant ---------- */
.marquee { background: var(--cocoa); color: var(--cream); overflow: hidden; padding: 22px 0; white-space: nowrap; }
.marquee-track { display: inline-flex; animation: marquee 38s linear infinite; }
.marquee span { font: italic 400 clamp(22px, 2.4vw, 30px)/1 var(--serif); padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after { content: "✦"; font-style: normal; font-size: 13px; color: var(--nude); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro / split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(50px, 8vw, 120px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.stack { position: relative; padding: 0 12% 14% 0; }
.stack .main { aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden; }
.stack .main img, .stack .sub img { width: 100%; height: 100%; object-fit: cover; }
.stack .sub {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; overflow: hidden;
  border: 10px solid var(--cream); box-shadow: 0 30px 60px -30px rgba(61,46,39,.35);
}
.bg-ivory .stack .sub { border-color: var(--ivory); }
  position: absolute; left: -26px; top: 18%; width: 132px; height: 132px; border-radius: 50%;
  background: var(--cream); display: grid; place-items: center; text-align: center;
  box-shadow: 0 20px 40px -20px rgba(61,46,39,.3);
}

/* ---------- Cartes prestations ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); margin-top: 70px; }
.card { text-decoration: none; display: block; }
.card .img { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--arch); position: relative; }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card:hover .img img { transform: scale(1.07); }
.card .img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(61,46,39,.35)); opacity: 0; transition: opacity .8s; }
.card:hover .img::after { opacity: 1; }
.card .num { font: italic 400 20px var(--serif); color: var(--taupe); display: block; margin-top: 26px; }
.card h3 { font-size: clamp(28px, 2.6vw, 34px); margin: 6px 0 12px; }
.card p { color: var(--cocoa); font-size: 16px; }
.cards .card:nth-child(2) { margin-top: 70px; }

/* ---------- Aperçu galerie (accueil) ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 16px; margin-top: 60px; }
.mosaic a { overflow: hidden; position: relative; display: block; }
.mosaic a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic a:nth-child(4) { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.mosaic a:hover img { transform: scale(1.06); }
.mosaic a span {
  position: absolute; left: 16px; bottom: 14px; color: var(--cream);
  font: italic 400 20px var(--serif); opacity: 0; transform: translateY(10px); transition: all .6s var(--ease);
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}
.mosaic a:hover span { opacity: 1; transform: none; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 70px; border-top: 1px solid var(--line); }
.step { padding: 40px 30px 10px 0; position: relative; }
.step + .step { padding-left: 30px; border-left: 1px solid var(--line); }
.step .n { font: 400 64px/1 var(--serif); color: var(--nude); }
.step h4 { font-size: 26px; margin: 18px 0 12px; }
.step p { font-size: 15.5px; color: var(--cocoa); }

/* ---------- Bandeau d'appel ---------- */
.cta-band {
  position: relative; color: var(--cream); text-align: center; overflow: hidden;
  padding: clamp(110px, 16vw, 190px) 0; background: var(--espresso);
}
.cta-band .bg { position: absolute; inset: -10% 0; background-size: cover; background-position: center; will-change: transform; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: rgba(61,46,39,.6); }
.cta-band .narrow { position: relative; z-index: 2; }
.cta-band .eyebrow { color: var(--blush); }
.cta-band h2 { font-size: clamp(44px, 7vw, 92px); margin: 20px 0 22px; }
.cta-band h2 em { font-family: var(--script); font-style: normal; color: var(--blush); font-size: 1.05em; }
.cta-band p { font-family: var(--serif); font-size: 22px; font-style: italic; margin-bottom: 40px; opacity: .92; }

/* ---------- Prestations détaillées ---------- */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 7vw, 110px); align-items: center; padding: clamp(60px, 8vw, 110px) 0; }
.service + .service { border-top: 1px solid var(--line); }
.service:nth-of-type(even) .service-media { order: 2; }
.service-media { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .62fr); gap: 16px; align-items: stretch; }
.service-media .big { border-radius: var(--arch); overflow: hidden; grid-row: span 2; height: 100%; min-height: 420px; }
.service-media .small { aspect-ratio: 3 / 4; overflow: hidden; align-self: end; width: 100%; }
.service-media > div, .service > *, .split > * { min-width: 0; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.service-media > div:hover img { transform: scale(1.05); }
.service .big-num { font: italic 400 clamp(90px, 12vw, 150px)/.8 var(--serif); color: var(--blush); display: block; margin-bottom: -10px; }
.service h2 { font-size: clamp(36px, 4.4vw, 54px); margin-bottom: 22px; }
.checklist { list-style: none; padding: 0; margin: 32px 0 38px; }
.checklist li { display: grid; grid-template-columns: 34px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); }
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist li::before { content: "✦"; color: var(--gold); font-size: 12px; padding-top: 6px; }

.note-box {
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start;
  background: var(--cream); border: 1px solid var(--line); padding: 34px 38px; margin-top: 54px; text-align: left;
}
.note-box .icon { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--nude); display: grid; place-items: center; font: italic 26px var(--serif); color: var(--gold); }
.note-box h4 { font-size: 24px; margin-bottom: 8px; }
.note-box p { margin: 0; color: var(--cocoa); font-size: 15.5px; }

/* ---------- Valeurs ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 60px); margin-top: 70px; }
.value { text-align: center; padding: 0 10px; }
.value .ico { width: 84px; height: 84px; margin: 0 auto 26px; border-radius: var(--arch); border: 1px solid var(--nude); display: grid; place-items: center; }
.value .ico svg { width: 30px; height: 30px; stroke: var(--cocoa); fill: none; stroke-width: 1.2; }
.value h3 { font-size: 28px; margin-bottom: 12px; }
.value p { color: var(--cocoa); font-size: 16px; }

.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.strip div { aspect-ratio: 3 / 4; overflow: hidden; }
.strip div:nth-child(odd) { transform: translateY(40px); }
.strip img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Galerie ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 54px; }
.filters button {
  font: 400 12.5px var(--sans); letter-spacing: .18em; text-transform: uppercase;
  background: none; color: var(--cocoa); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 22px; cursor: pointer; transition: all .4s var(--ease); display: inline-flex; gap: 10px; align-items: center;
}
.filters button sup { font-size: 10px; color: var(--taupe); letter-spacing: 0; transition: color .4s; }
.filters button:hover { border-color: var(--cocoa); }
.filters button.active { background: var(--cocoa); border-color: var(--cocoa); color: var(--cream); }
.filters button.active sup { color: var(--blush); }
.gallery { columns: 3 300px; column-gap: 18px; }
.gallery figure {
  margin: 0 0 18px; break-inside: avoid; position: relative; overflow: hidden; cursor: zoom-in; background: var(--sand);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.gallery figure.hide { display: none; }
.gallery-empty { text-align: center; font: italic 400 26px var(--serif); color: var(--taupe); padding: 40px 0 20px; margin: 0; }
.gallery figure.fade { opacity: 0; transform: scale(.97); }
.gallery img { width: 100%; height: auto; transition: transform 1.4s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 50px 20px 18px; color: var(--cream);
  background: linear-gradient(transparent, rgba(61,46,39,.75));
  opacity: 0; transform: translateY(10px); transition: all .6s var(--ease);
}
.gallery figcaption b { display: block; font: italic 400 21px/1.2 var(--serif); }
.gallery figcaption small { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
.gallery figure:hover figcaption { opacity: 1; transform: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(35, 26, 22, .95);
  display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
  color: var(--cream);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; font-size: 12px; letter-spacing: .24em; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 70px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; transition: opacity .35s; }
.lb-stage img.swap { opacity: 0; }
.lb-caption { text-align: center; padding: 16px 24px 26px; font: italic 400 20px var(--serif); }
.lightbox button { background: none; border: 0; color: var(--cream); cursor: pointer; padding: 10px; }
.lb-close { font-size: 34px; line-height: 1; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 1px solid rgba(250,246,241,.35) !important; border-radius: 50%; transition: background .3s; }
.lb-prev:hover, .lb-next:hover { background: rgba(250,246,241,.12); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-prev svg, .lb-next svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.4; }

/* ---------- Formulaire de devis ---------- */
.quote-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(40px, 5vw, 70px); align-items: start; }
.quote-aside { position: sticky; top: 110px; }
.aside-card { background: var(--ivory); padding: 34px 32px; }
.aside-card + .aside-card { margin-top: 18px; }
.aside-card h4 { font-size: 24px; margin-bottom: 12px; }
.aside-card p, .aside-card li { font-size: 15px; color: var(--cocoa); }
.aside-card ul { padding-left: 18px; margin: 0; }
.aside-card .img { aspect-ratio: 4 / 3; overflow: hidden; margin: -34px -32px 26px; }
.aside-card .img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 46px; counter-reset: p; }
.progress li { list-style: none; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); padding-top: 16px; border-top: 2px solid var(--line); transition: color .4s, border-color .4s; }
.progress li::before { counter-increment: p; content: "0" counter(p) "  "; font: italic 400 16px var(--serif); letter-spacing: 0; margin-right: 6px; }
.progress li.active, .progress li.done { color: var(--cocoa); border-color: var(--cocoa); }
.progress li.done { border-color: var(--nude); }
form.quote { background: var(--cream); border: 1px solid var(--line); padding: clamp(28px, 5vw, 60px); }
.form-step { display: none; animation: stepIn .7s var(--ease); }
.form-step.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.form-step h3 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 8px; }
.form-step > p.muted { margin-bottom: 38px; font-size: 15px; }
.field { margin-bottom: 30px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.field label, .field .q { display: block; font-size: 14px; letter-spacing: .03em; color: var(--cocoa); margin-bottom: 10px; font-weight: 400; }
.req { color: var(--gold); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field input[type="number"], .field textarea {
  width: 100%; font: inherit; color: var(--espresso); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 2px; transition: border-color .4s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { border: 1px solid var(--line); padding: 16px; min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cocoa); }
.field.invalid input, .field.invalid textarea { border-color: #a5523f; }
.field .err { display: none; color: #a5523f; font-size: 13px; margin-top: 8px; }
.field.invalid .err { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14.5px; color: var(--cocoa); cursor: pointer; transition: all .3s var(--ease); background: #fff8;
}
.chip span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--nude); transition: all .3s; }
.chip:hover span { border-color: var(--nude); }
.chip input:checked + span { background: var(--cocoa); border-color: var(--cocoa); color: var(--cream); }
.chip input:checked + span::before { background: var(--blush); border-color: var(--blush); }
.chip input:focus-visible + span { outline: 2px solid var(--nude); outline-offset: 2px; }
.chips.cards-like { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.chips.cards-like span { border-radius: 0; padding: 16px 18px; width: 100%; height: 100%; }
.other {
  display: none; margin-top: 16px; padding: 20px 22px; background: var(--ivory);
  border: 1px solid var(--line); border-left: 2px solid var(--gold);
}
.other.show { display: block; animation: stepIn .5s var(--ease); }
.other label { display: block; font-size: 13.5px; color: var(--cocoa); margin-bottom: 10px; }
.other input, .other textarea {
  width: 100%; font: inherit; color: var(--espresso); background: var(--cream);
  border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; resize: vertical;
}
.other input:focus, .other textarea:focus { outline: none; border-color: var(--cocoa); }
.field.invalid .other.show input { border-color: #a5523f; }
.dropzone {
  display: block; border: 1px dashed var(--nude); padding: 34px 24px; text-align: center; cursor: pointer;
  color: var(--taupe); font-size: 14px; transition: background .3s, border-color .3s;
}
.dropzone:hover, .dropzone.drag { background: var(--ivory); border-color: var(--cocoa); }
.dropzone input { display: none; }
.dropzone strong { display: block; font: 400 24px var(--serif); color: var(--cocoa); margin-bottom: 4px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; }
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; padding-top: 30px; border-top: 1px solid var(--line); }
.form-nav .spacer { flex: 1; }
.recap { background: var(--ivory); padding: 26px 28px; margin-bottom: 30px; font-size: 15px; }
.recap h4 { font-size: 22px; margin-bottom: 12px; }
.recap dl { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; margin: 0; }
.recap dt { color: var(--taupe); }
.recap dd { margin: 0; color: var(--espresso); }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 50px; }
.contact-card {
  display: grid; grid-template-columns: 60px 1fr; column-gap: 26px; align-items: center;
  text-decoration: none; padding: 32px 70px 32px 34px; background: var(--ivory); position: relative; overflow: hidden;
  transition: background .6s var(--ease), color .6s;
}
.contact-card:hover { background: var(--cocoa); color: var(--cream); }
.contact-card .ico { width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--nude); display: grid; place-items: center; grid-row: span 2; }
.contact-card svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.3; }
.contact-card small { align-self: end; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--taupe); }
.contact-card:hover small { color: var(--blush); }
.contact-card b { display: block; font: 400 clamp(19px, 1.8vw, 24px)/1.3 var(--serif); margin-top: 2px; }
.contact-card .go { position: absolute; right: 30px; top: 50%; margin-top: -14px; font-size: 22px; transition: transform .5s var(--ease); }
.contact-card:hover .go { transform: translate(4px, -4px); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--espresso); color: rgba(250,246,241,.78); padding: 100px 0 36px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 50px; }
.site-footer .brand { color: var(--cream); }
.site-footer .brand i { color: var(--nude); }
.site-footer h5 { font: 400 12px var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--nude); margin: 0 0 22px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color .3s; }
.site-footer a:hover { color: var(--cream); }
.site-footer .about-f { max-width: 330px; margin-top: 24px; font-family: var(--serif); font-size: 19px; font-style: italic; line-height: 1.5; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 80px; padding-top: 28px; border-top: 1px solid rgba(250,246,241,.14); font-size: 13px; color: rgba(250,246,241,.55); }
.big-word { font: 400 clamp(44px, 10.2vw, 150px)/.85 var(--serif); letter-spacing: .04em; text-transform: uppercase; color: rgba(250,246,241,.06); text-align: center; margin-top: 70px; white-space: nowrap; overflow: hidden; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* rideau qui se lève sur les images (pas de clip-path sur la cible : il bloque l'IntersectionObserver) */
.reveal-img { position: relative; }
.reveal-img::after {
  content: ""; position: absolute; inset: 0; z-index: 1; background: var(--sand); pointer-events: none;
  transform-origin: top; transition: transform 1.4s var(--ease);
}
.reveal-img.in::after { transform: scaleY(0); }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-img::after { display: none; }
  .hero h1 .line span { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .quote-layout { grid-template-columns: 1fr; }
  .quote-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .aside-card + .aside-card { margin-top: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .menu { display: none; }
  .burger { display: block; }
  .split, .service { grid-template-columns: 1fr; }
  .split.reverse > :first-child, .service:nth-of-type(even) .service-media { order: 0; }
  .cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .cards .card:nth-child(2) { margin-top: 0; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .mosaic a:nth-child(4) { grid-row: span 1; }
  .values { grid-template-columns: 1fr; gap: 50px; }
  .strip { grid-template-columns: repeat(3, 1fr); }
  .strip div:nth-child(n+4) { display: none; }
  .hero-dots { display: none; }
  .breadcrumb { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container, .narrow { width: calc(100% - 32px); }
  .grid-2, .contact-cards, .quote-aside { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 48px 1fr; column-gap: 18px; padding: 24px 46px 24px 22px; }
  .contact-card .ico { width: 48px; height: 48px; }
  .contact-card .go { right: 18px; }
  .service-media { grid-template-columns: 1fr 1fr; }
  .service-media .big { grid-column: span 2; grid-row: auto; min-height: 0; height: auto; aspect-ratio: 4 / 5; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 30px 0 6px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
      .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero .eyebrow { letter-spacing: .22em; font-size: 11px; }
  .hero .eyebrow::before { display: none; }
  .note-box { grid-template-columns: 1fr; padding: 28px 24px; }
  .recap dl { grid-template-columns: 1fr; gap: 2px; }
  .recap dd { margin-bottom: 10px; }
  .lb-stage { padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: -58px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .lb-caption { padding-bottom: 80px; }
  .form-nav { flex-wrap: wrap; }
  .form-nav .btn { flex: 1 1 auto; justify-content: center; }
}
