/* =================================================================
   MENUISERIE CHABANON — Feuille de style
   Direction : chaleureuse & artisanale (bois, crème, laiton)
   ================================================================= */

/* ---------- 1. Variables ---------------------------------------- */
:root {
  /* Couleurs bois / crème */
  --cream:        #f4ecdd;
  --cream-2:      #faf4e9;
  --cream-card:   #fbf7ee;
  --sand:         #ece0cb;
  --espresso:     #261910;
  --espresso-2:   #32241a;
  --walnut:       #5c3d24;
  --oak:          #9c6b3f;
  --oak-light:    #c49a6c;
  --brass:        #b08a4f;
  --brass-bright: #cdab6e;

  --ink:        #2a1c12;
  --ink-soft:   #6d5a47;
  --line:       rgba(42, 28, 18, 0.14);
  --line-soft:  rgba(42, 28, 18, 0.08);

  /* Typo */
  --serif: "Fraunces", "Playfair Display", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Mesures */
  --container: 1200px;
  --radius:   14px;
  --radius-lg: 22px;
  --shadow:   0 18px 50px -22px rgba(38, 25, 16, 0.45);
  --shadow-sm: 0 8px 26px -16px rgba(38, 25, 16, 0.4);
  --ease: cubic-bezier(0.22, 0.72, 0.2, 1);

  /* Grain (bruit procédural, mono) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 2. Reset / base ------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; color: var(--ink); }
em { font-style: italic; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

.section { padding: clamp(72px, 11vw, 140px) 0; }
.section--alt { background: var(--cream-2); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--oak);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 1px; background: var(--brass); vertical-align: middle; margin-right: 0.8em; transform: translateY(-3px); }

.section__title { font-size: clamp(2rem, 4.6vw, 3.5rem); letter-spacing: -0.01em; }
.section__head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 70px); text-align: center; }
.section__head .eyebrow::before { display: none; }
.section__intro { color: var(--ink-soft); margin-top: 1rem; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10000;
  background: var(--espresso); color: var(--cream); padding: 10px 18px; border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Boutons ------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.95em 1.7em; border-radius: 100px; font-weight: 600; font-size: 0.97rem;
  letter-spacing: 0.01em; transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s;
  will-change: transform; text-align: center;
}
.btn--sm { padding: 0.7em 1.3em; font-size: 0.88rem; }
.btn--primary { background: var(--espresso); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--walnut); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--walnut); background: rgba(92, 61, 36, 0.05); transform: translateY(-2px); }

.linklike { color: var(--oak); text-decoration: underline; text-underline-offset: 2px; font: inherit; }
.linklike:hover { color: var(--walnut); }

/* ---------- 4. Révélation au scroll ----------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =================================================================
   5. ANIMATION D'ACCUEIL — LA PORTE
   ================================================================= */
.intro {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(70% 55% at 50% 38%, rgba(205, 171, 110, 0.18), transparent 60%),
    radial-gradient(120% 90% at 50% 18%, #3a281b 0%, #1f140c 55%, #160d07 100%);
  overflow: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.intro.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.intro__vignette {
  position: absolute; inset: 0;
  background-image: var(--grain);
  background-size: 220px;
  opacity: 0.07; pointer-events: none;
}

.intro__stage {
  perspective: 1500px;
  width: min(360px, 74vw);
  aspect-ratio: 36 / 53;
  position: relative;
}

.door {
  position: absolute; inset: 0;
  display: flex;
  transform-style: preserve-3d;
  transform: rotateX(2deg);
}

.leaf {
  position: relative;
  width: 50%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 1.25s cubic-bezier(0.7, 0, 0.3, 1);
  backface-visibility: hidden;
}
.leaf--left  { transform-origin: left center; }
.leaf--right { transform-origin: right center; }
.intro.is-open .leaf--left  { transform: rotateY(-115deg); }
.intro.is-open .leaf--right { transform: rotateY(115deg); }

/* Wood surfaces — pièces de la porte (enfants directs uniquement) */
.leaf > span { position: absolute; }

.stile, .rail {
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.05) 0 3px, rgba(255,255,255,0.02) 3px 7px),
    linear-gradient(100deg, #7c5230, #a06c3c 35%, #74491f 65%, #8a5a30);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18), inset 0 2px 4px rgba(255,255,255,0.08);
}
.rail {
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0 3px, rgba(255,255,255,0.02) 3px 7px),
    linear-gradient(190deg, #7c5230, #a06c3c 35%, #74491f 65%, #8a5a30);
}

/* Montants (verticaux) */
.stile { top: 0; bottom: 0; width: 14%; opacity: 0; }
.stile--out { left: 0;  border-radius: 5px 0 0 5px; animation: pieceRise 0.7s var(--ease) forwards; }
.stile--in  { right: 0; animation: pieceRise 0.7s 0.12s var(--ease) forwards; }
.leaf--right .stile--out { left: auto; right: 0; border-radius: 0 5px 5px 0; }
.leaf--right .stile--in  { right: auto; left: 0; }

/* Traverses (horizontales) — s'emboîtent de bout en bout */
.rail { left: 14%; right: 14%; opacity: 0; }
.rail--top { top: 0;   height: 12%; animation: railIn 0.6s 0.55s var(--ease) forwards; }
.rail--mid { top: 47%; height: 9%;  animation: railIn 0.6s 0.75s var(--ease) forwards; }
.rail--bot { bottom: 0; height: 14%; animation: railIn 0.6s 0.95s var(--ease) forwards; }

/* Panneaux */
.panel {
  left: 14%; right: 14%;
  background:
    linear-gradient(135deg, #6c4827, #855a31 50%, #5e3d20);
  box-shadow:
    inset 0 0 0 2px rgba(0,0,0,0.22),
    inset 3px 3px 9px rgba(0,0,0,0.4),
    inset -3px -3px 9px rgba(255,255,255,0.07);
  border-radius: 4px;
  opacity: 0; transform: scale(0.6);
  display: flex; align-items: center; justify-content: center;
}
.panel--upper { top: 12%; bottom: 53%; animation: panelIn 0.6s 1.15s var(--ease) forwards; }
.panel--lower { top: 56%; bottom: 14%; animation: panelIn 0.6s 1.3s var(--ease) forwards; }

.engrave {
  position: relative; /* annule le position:absolute hérité de .leaf span */
  font-family: var(--serif); font-size: clamp(0.5rem, 1.5vw, 0.78rem); letter-spacing: 0.12em;
  white-space: nowrap; color: #3a2413;
  text-shadow: 0 1px 0 rgba(255,255,255,0.14), 0 -1px 1px rgba(0,0,0,0.55);
  opacity: 0; transform: translateY(4px); animation: fadeUp 0.8s 1.7s ease forwards;
}
.engrave--year { font-size: clamp(0.42rem, 1.2vw, 0.62rem); letter-spacing: 0.16em; }

/* Quincaillerie */
.hinge {
  width: 9%; height: 6%; left: 1%;
  background: linear-gradient(180deg, var(--brass-bright), #8c6c3a);
  border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.4);
  opacity: 0; transform: scale(0);
}
.leaf--right .hinge { left: auto; right: 1%; }
.hinge--top { top: 16%; animation: popIn 0.45s 1.55s var(--ease) forwards; }
.hinge--bot { bottom: 16%; animation: popIn 0.45s 1.65s var(--ease) forwards; }

.handle {
  width: 7%; aspect-ratio: 1; border-radius: 50%; top: 50%; right: 4%;
  transform: translateY(-50%) scale(0);
  background: radial-gradient(circle at 35% 30%, #f0d9a6, var(--brass) 55%, #7a5c2e);
  box-shadow: 0 2px 5px rgba(0,0,0,0.5); opacity: 0;
  animation: handleIn 0.5s 1.85s var(--ease) forwards;
}
.leaf--right .handle { right: auto; left: 4%; }

.intro__tagline {
  position: absolute; bottom: clamp(48px, 12vh, 110px);
  font-family: var(--serif); font-style: italic; color: var(--oak-light);
  letter-spacing: 0.04em; font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  opacity: 0; animation: fadeUp 1s 1.9s ease forwards;
}
.intro.is-open .intro__tagline { opacity: 0; transition: opacity 0.4s; }

.intro__skip {
  position: absolute; bottom: clamp(20px, 5vh, 38px); right: clamp(20px, 5vw, 40px);
  color: rgba(244, 236, 221, 0.6); font-size: 0.86rem; letter-spacing: 0.08em;
  padding: 8px 6px; transition: color 0.3s; opacity: 0; animation: fadeIn 0.6s 0.4s ease forwards;
}
.intro__skip:hover { color: var(--cream); }
.intro__skip span { transition: transform 0.3s; display: inline-block; }
.intro__skip:hover span { transform: translateX(4px); }

/* Keyframes assemblage */
@keyframes pieceRise { from { opacity: 0; transform: translateY(120%); } to { opacity: 1; transform: translateY(0); } }
@keyframes railIn    { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
@keyframes panelIn   { from { opacity: 0; transform: scale(0.55); } to { opacity: 1; transform: scale(1); } }
@keyframes popIn     { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes handleIn  { from { opacity: 0; transform: translateY(-50%) scale(0); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
@keyframes fadeUp    { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }

/* Mode rapide (déjà vu dans la session) */
.intro--quick .leaf span { animation: none !important; opacity: 1 !important; transform: none !important; }
.intro--quick .panel { transform: scale(1); }
.intro--quick .handle { transform: translateY(-50%) scale(1); }
.intro--quick .stile, .intro--quick .rail { opacity: 1; }
.intro--quick .intro__tagline { animation: none; opacity: 1; }

/* =================================================================
   6. EN-TÊTE
   ================================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
  padding: 18px 0;
}
.header.scrolled {
  background: rgba(250, 244, 233, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line-soft), 0 10px 30px -20px rgba(38,25,16,0.5);
  padding: 10px 0;
}
.header__inner { display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__logo { height: clamp(46px, 4.6vw, 56px); width: auto; display: block; transition: height 0.4s; }
.header.scrolled .brand__logo { height: 44px; }
.brand__mark {
  width: 42px; height: 42px; flex: none; border-radius: 11px;
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.5rem;
  color: var(--brass-bright); background: var(--espresso);
  box-shadow: inset 0 0 0 1px rgba(205,171,110,0.3);
}
.brand__name { font-family: var(--serif); font-size: 1.32rem; line-height: 1; color: var(--ink); display: block; }
.brand__sub { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }

.nav { display: flex; gap: 30px; }
.nav a { font-size: 0.95rem; font-weight: 500; position: relative; padding: 4px 0; color: var(--ink); transition: color 0.25s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px; background: var(--brass); transition: width 0.3s var(--ease); }
.nav a:hover, .nav a.active { color: var(--walnut); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header__cta {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem;
  padding: 9px 18px; border-radius: 100px; border: 1.5px solid var(--line);
  transition: border-color 0.3s, background 0.3s;
}
.header__cta:hover { border-color: var(--walnut); background: rgba(92,61,36,0.05); }
.header__cta-ico { color: var(--oak); }

.burger { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =================================================================
   7. HÉRO
   ================================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 120px 0 60px;
  background:
    radial-gradient(110% 80% at 85% 10%, #fbf4e7 0%, var(--cream) 45%),
    linear-gradient(180deg, var(--cream-2), var(--cream));
  overflow: hidden;
}
.hero__grain { position: absolute; inset: 0; background-image: var(--grain); background-size: 200px; opacity: 0.04; pointer-events: none; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 70px); align-items: center; position: relative; z-index: 1; }

.hero__title { font-size: clamp(2.6rem, 6.6vw, 5.2rem); letter-spacing: -0.02em; margin: 0.2em 0 0.5em; }
.hero__title em { color: var(--walnut); }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-soft); max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 2.2rem 0; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 0.86rem; color: var(--ink-soft); }
.hero__trust li { position: relative; padding-left: 18px; }
.hero__trust li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }

.hero__visual { position: relative; }
.hero__frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, #f0e4cf, #e4d3b6);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.5);
  padding: 8% 12%;
  aspect-ratio: 4 / 5;
  display: grid; place-items: center;
}
.hero__frame::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); background-size: 180px; opacity: 0.06; mix-blend-mode: multiply; }
.stair-art { width: 78%; height: auto; filter: drop-shadow(0 20px 30px rgba(60,38,21,0.25)); }
.hero__badge {
  position: absolute; bottom: -18px; left: -18px;
  background: var(--espresso); color: var(--cream); border-radius: var(--radius);
  padding: 16px 22px; box-shadow: var(--shadow); text-align: center;
}
.hero__badge-num { font-family: var(--serif); font-size: 1.9rem; color: var(--brass-bright); display: block; line-height: 1; }
.hero__badge-txt { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244,236,221,0.7); }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px; display: grid; justify-items: center; padding-top: 7px; }
.hero__scroll span { width: 4px; height: 8px; border-radius: 2px; background: var(--oak); animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* =================================================================
   8. L'ATELIER
   ================================================================= */
.about__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about__text p { color: var(--ink-soft); margin-top: 1.1rem; }
.about__text strong { color: var(--ink); font-weight: 600; }
.section__title + p { margin-top: 1.6rem; }

.values { margin-top: 2rem; display: grid; gap: 0.9rem; }
.values li { display: flex; align-items: center; gap: 12px; font-size: 0.98rem; }
.values__dot { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--sand); position: relative; }
.values__dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--brass); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: var(--cream-card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--brass), var(--oak)); }
.stat__num { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.9rem); color: var(--walnut); line-height: 1; display: block; }
.stat__label { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.5rem; display: block; }

/* =================================================================
   8b. L'HISTOIRE — frise chronologique
   ================================================================= */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 8px; }
.timeline::before {
  content: ""; position: absolute; left: 35px; top: 26px; bottom: 30px; width: 2px;
  background: linear-gradient(180deg, var(--oak), var(--brass) 55%, var(--sand));
}
.tl { display: grid; grid-template-columns: 56px 1fr; gap: 24px; align-items: start; padding-bottom: 38px; }
.tl:last-child { padding-bottom: 0; }
.tl__node { position: relative; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center; }
.tl__node--badge {
  border-radius: 50%; font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.02em;
  color: var(--cream); background: var(--walnut);
  box-shadow: 0 0 0 6px var(--cream-2), var(--shadow-sm);
}
.tl__node--star { background: var(--brass); color: var(--espresso); font-size: 1.3rem; }
.tl__node--current { background: var(--brass); color: var(--espresso); box-shadow: 0 0 0 6px var(--cream-2), 0 6px 18px -6px rgba(176,138,79,0.7); }
.tl__node--dot::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brass); box-shadow: 0 0 0 6px var(--cream-2);
}
.tl__body { padding-top: 2px; }
.tl__year {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--oak); background: var(--sand);
  padding: 4px 12px; border-radius: 100px; margin-bottom: 11px;
}
.tl__title { font-size: 1.32rem; margin-bottom: 7px; }
.tl__body p { color: var(--ink-soft); font-size: 0.97rem; }
.tl--highlight .tl__body {
  background: var(--cream-card); border: 1px solid var(--line-soft); border-left: 3px solid var(--brass);
  border-radius: var(--radius); padding: 18px 22px; margin-top: -2px; box-shadow: var(--shadow-sm);
}
@media (max-width: 560px) {
  .timeline { padding-left: 2px; }
  .timeline::before { left: 25px; top: 22px; bottom: 26px; }
  .tl { grid-template-columns: 48px 1fr; gap: 16px; }
  .tl__node { width: 48px; height: 48px; }
  .tl__node--badge { font-size: 0.9rem; }
  .tl__title { font-size: 1.18rem; }
}

/* =================================================================
   9. SERVICES
   ================================================================= */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--cream-card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px); transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
  position: relative; overflow: hidden;
}
.card::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); background-size: 170px; opacity: 0.03; pointer-events: none; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(176,138,79,0.4); }
.card__icon { width: 56px; height: 56px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(150deg, var(--sand), #e2d0b3); color: var(--walnut); margin-bottom: 1.3rem; }
.card__icon svg { width: 30px; height: 30px; }
.card__title { font-size: 1.32rem; margin-bottom: 0.6rem; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }

/* =================================================================
   10. PROCESS
   ================================================================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 28px; }
.step::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 1px; background: var(--line); }
.step::after { content: ""; position: absolute; top: 4px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px var(--cream); }
.step__num { font-family: var(--serif); font-size: 1.05rem; color: var(--oak); letter-spacing: 0.1em; }
.step__title { font-size: 1.3rem; margin: 0.5rem 0 0.6rem; }
.step p { color: var(--ink-soft); font-size: 0.94rem; }

/* =================================================================
   11. RÉALISATIONS
   ================================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.filter {
  padding: 9px 20px; border-radius: 100px; border: 1.5px solid var(--line);
  font-size: 0.9rem; font-weight: 500; color: var(--ink-soft);
  transition: all 0.3s var(--ease);
}
.filter:hover { border-color: var(--walnut); color: var(--walnut); }
.filter.is-active { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.work {
  border-radius: var(--radius); overflow: hidden; background: var(--cream-card);
  box-shadow: var(--shadow-sm); transition: transform 0.45s var(--ease), box-shadow 0.45s, opacity 0.4s;
  transform-origin: center;
}
.work.is-hidden { display: none; }
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work__media {
  aspect-ratio: 4 / 3; position: relative; overflow: hidden;
}
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.work:hover .work__media img { transform: scale(1.06); }

/* Placeholder bois (à remplacer par de vraies photos) */
.work__media.is-placeholder {
  background: linear-gradient(150deg, #b5854f, #855a31);
}
.work__media.is-placeholder::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); background-size: 160px; opacity: 0.12; mix-blend-mode: overlay; }
.work__media.is-placeholder::after {
  content: "📷  Photo à venir"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.05em; color: rgba(255,255,255,0.72);
}
.gallery .work:nth-child(3n) .work__media.is-placeholder { background: linear-gradient(150deg, #9c6b3f, #6c4827); }
.gallery .work:nth-child(3n+1) .work__media.is-placeholder { background: linear-gradient(150deg, #c49a6c, #8a5a30); }

.work__cap { padding: 16px 18px 18px; font-family: var(--serif); font-size: 1.08rem; color: var(--ink); }
.work__tag { display: block; font-family: var(--sans); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--oak); margin-bottom: 6px; }

/* =================================================================
   12. CITATION
   ================================================================= */
.quote { position: relative; padding: clamp(70px, 10vw, 120px) 0; background: var(--espresso); color: var(--cream); text-align: center; overflow: hidden; }
.quote__grain { position: absolute; inset: 0; background-image: var(--grain); background-size: 200px; opacity: 0.06; }
.quote .container { position: relative; z-index: 1; }
.quote__text { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height: 1.3; max-width: 16em; margin: 0 auto; color: #f6ecdc; }
.quote__author { margin-top: 1.5rem; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.8rem; color: var(--brass-bright); }

/* =================================================================
   13. CONTACT
   ================================================================= */
.contact__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 70px); align-items: start; }
.contact__intro p { color: var(--ink-soft); margin-top: 1.4rem; }

.contact__list { margin-top: 2.2rem; display: grid; gap: 1.3rem; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__ico { width: 44px; height: 44px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--sand); color: var(--walnut); font-size: 1.2rem; }
.contact__list strong { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--oak); margin-bottom: 3px; }
.contact__list a { transition: color 0.25s; }
.contact__list a:hover { color: var(--walnut); }

.contact__map {
  display: flex; gap: 16px; align-items: center; margin-top: 2rem;
  background: var(--cream-card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm); transition: transform 0.3s, box-shadow 0.3s;
}
.contact__map:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact__map-pin { font-size: 1.6rem; color: var(--brass); }
.contact__map strong { display: block; font-family: var(--serif); font-size: 1.1rem; }
.contact__map em { display: block; color: var(--oak); font-style: normal; font-size: 0.85rem; margin-top: 4px; }
.contact__map span { font-size: 0.85rem; color: var(--ink-soft); }

/* Formulaire */
.contact__form-wrap { background: var(--cream-card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 42px); box-shadow: var(--shadow); }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 0.8rem; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.96rem; color: var(--ink); background: var(--cream-2);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--oak); background: #fff; box-shadow: 0 0 0 4px rgba(176,138,79,0.14);
}
.field input.invalid, .field textarea.invalid { border-color: #b4452e; box-shadow: 0 0 0 4px rgba(180,69,46,0.12); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--ink-soft); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--walnut); flex: none; }
.form__submit { margin-top: 6px; justify-self: start; }
.form__note { font-size: 0.88rem; min-height: 1.2em; }
.form__note.ok { color: #3f7a3a; }
.form__note.err { color: #b4452e; }

/* =================================================================
   14. PIED DE PAGE
   ================================================================= */
.footer { background: var(--espresso); color: rgba(244,236,221,0.78); padding: clamp(56px, 7vw, 84px) 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.footer__logo { display: inline-block; background: var(--cream-2); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.footer__logo img { height: 58px; width: auto; display: block; }
.footer__name { font-family: var(--serif); font-size: 1.4rem; color: var(--cream); }
.footer__tag { font-size: 0.9rem; margin-top: 8px; }
.footer h3 { font-family: var(--sans); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--brass-bright); margin-bottom: 16px; }
.footer__nav, .footer__col { display: grid; gap: 10px; align-content: start; }
.footer__nav a, .footer__col a, .footer__col p { font-size: 0.92rem; color: rgba(244,236,221,0.78); transition: color 0.25s; justify-self: start; text-align: left; }
.footer__nav a:hover, .footer__col a:hover, .footer .linklike:hover { color: var(--cream); }
.footer .linklike { color: rgba(244,236,221,0.78); text-decoration: none; justify-self: start; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(244,236,221,0.12); font-size: 0.8rem; color: rgba(244,236,221,0.55); }
.footer__bottom a { color: var(--brass-bright); }

/* =================================================================
   15. COOKIES
   ================================================================= */
.cookie {
  position: fixed; left: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 2000;
  max-width: 440px; background: var(--cream-card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 24px 60px -20px rgba(38,25,16,0.55);
  transform: translateY(140%); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.5s;
}
.cookie.show { transform: translateY(0); opacity: 1; }
.cookie__body { padding: 22px 24px; }
.cookie__text { font-size: 0.9rem; color: var(--ink-soft); }
.cookie__text strong { color: var(--ink); }
.cookie__actions { display: flex; gap: 10px; margin-top: 16px; }

/* =================================================================
   16. MODALES
   ================================================================= */
.modal { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(28,18,10,0.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.3s; }
.modal.show .modal__overlay { opacity: 1; }
.modal__dialog {
  position: relative; background: var(--cream-2); border-radius: var(--radius-lg);
  max-width: 640px; width: 100%; max-height: 86vh; overflow-y: auto; padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow); transform: translateY(20px) scale(0.98); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.3s;
}
.modal.show .modal__dialog { transform: none; opacity: 1; }
.modal__close { position: absolute; top: 16px; right: 18px; width: 38px; height: 38px; border-radius: 50%; font-size: 1.6rem; color: var(--ink-soft); display: grid; place-items: center; transition: background 0.25s; }
.modal__close:hover { background: var(--sand); }
.modal__title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1.2rem; }
.modal__panel h3 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--walnut); margin: 1.5rem 0 0.5rem; }
.modal__panel p { font-size: 0.94rem; color: var(--ink-soft); }
.modal__panel a { color: var(--oak); text-decoration: underline; }
.modal__list { margin: 1rem 0 0; display: grid; gap: 0.7rem; }
.modal__list li { font-size: 0.92rem; color: var(--ink-soft); padding-left: 18px; position: relative; }
.modal__list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.modal__actions { display: flex; gap: 12px; margin-top: 1.8rem; flex-wrap: wrap; }

/* =================================================================
   17. RESPONSIVE
   ================================================================= */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 420px; margin: 10px auto 0; order: -1; }
  .about__inner, .contact__inner { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 880px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw); flex-direction: column; justify-content: center;
    gap: 28px; background: var(--cream-2); padding: 40px; box-shadow: -20px 0 60px -20px rgba(38,25,16,0.5);
    transform: translateX(100%); transition: transform 0.45s var(--ease); z-index: 1100;
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.3rem; font-family: var(--serif); }
  .burger { display: flex; z-index: 1200; }
  .header__cta { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__badge { left: 50%; transform: translateX(-50%); bottom: -22px; }
  .hero { text-align: left; }
}

/* =================================================================
   18. PRÉFÉRENCE MOUVEMENT RÉDUIT
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .leaf span { opacity: 1 !important; transform: none !important; }
  .panel { transform: scale(1); }
  .handle { transform: translateY(-50%) scale(1); }
}
