/* ===== POLICES AUTO-HÉBERGÉES (conformité UE, pas de Google Fonts distant) ===== */
@font-face { font-family:'Fraunces'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/fraunces-400.ttf') format('truetype'); }
@font-face { font-family:'Fraunces'; font-style:normal; font-weight:500; font-display:swap; src:url('../fonts/fraunces-500.ttf') format('truetype'); }
@font-face { font-family:'Fraunces'; font-style:normal; font-weight:600; font-display:swap; src:url('../fonts/fraunces-600.ttf') format('truetype'); }
@font-face { font-family:'Fraunces'; font-style:normal; font-weight:700 900; font-display:swap; src:url('../fonts/fraunces-600.ttf') format('truetype'); }
@font-face { font-family:'Fraunces'; font-style:italic; font-weight:400; font-display:swap; src:url('../fonts/fraunces-italic-400.ttf') format('truetype'); }
@font-face { font-family:'Outfit'; font-style:normal; font-weight:300; font-display:swap; src:url('../fonts/outfit-300.ttf') format('truetype'); }
@font-face { font-family:'Outfit'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/outfit-400.ttf') format('truetype'); }
@font-face { font-family:'Outfit'; font-style:normal; font-weight:500; font-display:swap; src:url('../fonts/outfit-500.ttf') format('truetype'); }
@font-face { font-family:'Outfit'; font-style:normal; font-weight:600; font-display:swap; src:url('../fonts/outfit-600.ttf') format('truetype'); }

:root {
  --paper: oklch(96% 0.020 85);
  --paper-2: oklch(92.5% 0.026 82);
  --ink: oklch(23% 0.018 55);
  --ink-soft: oklch(43% 0.022 50);
  --ink-mute: oklch(58% 0.022 55);
  --red: oklch(54% 0.185 27);
  --red-deep: oklch(47% 0.165 28);
  --gold: oklch(83% 0.155 86);
  --gold-deep: oklch(74% 0.140 82);
  --line: color-mix(in oklch, var(--ink) 15%, transparent);
  --line-on-dark: color-mix(in oklch, var(--paper) 18%, transparent);
  --f-disp: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Outfit', system-ui, sans-serif;
  --shadow: 0 1px 1px oklch(23% 0.02 55 / .04), 0 4px 8px oklch(23% 0.02 55 / .05), 0 12px 28px oklch(23% 0.02 55 / .07), 0 28px 60px oklch(23% 0.02 55 / .08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.5vw + 0.85rem, 1.15rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  position: relative;
}
/* grain (zéro requête réseau) */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .42; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/></svg>");
}
::selection { background: var(--red); color: var(--paper); }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 3.5rem); position: relative; z-index: 2; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: var(--paper); padding: .9rem 1.4rem; }
.skip-link:focus { left: 0; }

/* ===== ICONS (un seul set, stroke 1.6) ===== */
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ===== NAV ===== */
.topbar { position: sticky; top: 0; z-index: 60; background: color-mix(in oklch, var(--paper) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; min-height: 48px; }
.brand img { height: 46px; width: auto; }
.brand-name { font-family: var(--f-disp); font-weight: 600; font-size: 1.1rem; line-height: 1; letter-spacing: -.01em; }
.brand-name small { display: block; font-family: var(--f-body); font-weight: 400; font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-mute); margin-top: 5px; }
.nav-links { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); align-items: center; }
.nav-links a { font-size: .92rem; color: var(--ink-soft); padding: 6px 0; position: relative; transition: color .2s var(--ease); }
.nav-links a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--red); transition: width .25s var(--ease); }
.nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-links a.nav-cta { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .55rem 1.15rem; background: var(--gold); color: var(--ink); font-weight: 600; border: 2px solid var(--ink); border-radius: 4px; transition: transform .16s var(--ease), box-shadow .16s var(--ease); box-shadow: 3px 3px 0 var(--red); }
.nav-links a.nav-cta .ico { width: 15px; height: 15px; color: var(--red); transition: transform .16s var(--ease); }
.nav-links a.nav-cta:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--red); }
.nav-links a.nav-cta:hover .ico { transform: translateX(2px); }
.nav-links a.nav-cta:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--red); }
.nav-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; }
.nav-toggle .ico { width: 26px; height: 26px; }
@media (max-width: 940px) {
  .nav-links { display: none; position: fixed; inset: 66px 0 auto 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 1.6rem clamp(1.2rem,4vw,3.5rem) 2.2rem; gap: 1.3rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a.nav-cta { margin-top: .4rem; }
  .nav-toggle { display: inline-flex; }
}

/* ===== HERO (événementiel) ===== */
.hero { background: var(--red); color: var(--paper); position: relative; overflow: hidden; }
.hero::after { content: 'Sun'; position: absolute; right: -3%; top: -8%; font-family: var(--f-disp); font-style: italic; font-weight: 900; font-size: clamp(16rem, 34vw, 40rem); line-height: 1; color: color-mix(in oklch, var(--paper) 8%, transparent); pointer-events: none; z-index: 0; }
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6.5rem); position: relative; z-index: 2; }
.kicker { display: inline-flex; align-items: center; gap: .8rem; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--paper); font-weight: 600; margin-bottom: 1.6rem; }
.kicker::before { content: ''; width: 34px; height: 2px; background: var(--gold); }
.hero h1 { font-family: var(--f-disp); font-weight: 900; font-size: clamp(2.7rem, 1.2rem + 5.2vw, 5.6rem); line-height: .96; letter-spacing: -.028em; text-wrap: balance; margin-bottom: 1.5rem; font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1; }
.hero h1 .soft { font-style: italic; color: var(--paper); }
.hero-lede { font-size: clamp(1.08rem, 0.4vw + 1rem, 1.35rem); font-weight: 300; line-height: 1.5; max-width: 42ch; color: color-mix(in oklch, var(--paper) 92%, var(--red)); margin-bottom: 2.4rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: .82rem 1.6rem; font-weight: 600; font-size: .98rem; border-radius: 4px; border: 2px solid transparent; transition: transform .16s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .16s var(--ease); }
.btn .ico { width: 18px; height: 18px; transition: transform .18s var(--ease); }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.btn-gold .ico { color: var(--red); }
.btn-gold:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn-gold:hover .ico { transform: translateX(3px); }
.btn-gold:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn-red { background: var(--red); color: var(--paper); border-color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.btn-red .ico { color: var(--gold); }
.btn-red:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn-red:hover .ico { transform: translateX(3px); }
.btn-red:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.band-ink .btn-gold { border-color: var(--gold-deep); box-shadow: 5px 5px 0 var(--red); }
.band-ink .btn-gold:hover { box-shadow: 3px 3px 0 var(--red); }
.band-ink .btn-gold:active { box-shadow: 0 0 0 var(--red); }
.btn-line { border-color: color-mix(in oklch, var(--paper) 70%, transparent); color: var(--paper); }
.btn-line:hover { background: var(--paper); color: var(--red-deep); }
.hero-media { position: relative; }
.hero-media .frame { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 4px; box-shadow: var(--shadow); background: var(--ink); }
.hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { position: absolute; left: 14px; bottom: 14px; background: var(--gold); color: var(--ink); font-family: var(--f-disp); font-style: italic; font-size: 1rem; padding: .55rem .9rem; border-radius: 3px; }
.hero-since { position: absolute; top: 16px; right: 16px; background: var(--ink); color: var(--paper); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding: .5rem .8rem; border-radius: 3px; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } .hero-media .frame { aspect-ratio: 16/11; } }

/* ===== BANDES / SECTIONS ===== */
.band-sable { background: var(--paper-2); }
.occasions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 5vw, 4.5rem); margin-top: 1.6rem; }
.occasions article { padding: 1.15rem 0; border-top: 1px solid var(--line); }
.occasions h3 { font-family: var(--f-disp); font-weight: 500; font-size: 1.22rem; letter-spacing: -.01em; margin-bottom: .3rem; }
.occasions p { color: var(--ink-mute); font-size: .95rem; max-width: 54ch; }
@media (max-width: 720px) { .occasions { grid-template-columns: 1fr; } }
.band { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }
.band-ink { background: var(--ink); color: var(--paper); }
.band-red { background: var(--red); color: var(--paper); }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); font-weight: 600; margin-bottom: 1.1rem; }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: currentColor; }
.band-ink .eyebrow { color: var(--gold); }
.band-red .eyebrow { color: var(--paper); }
.h-sec { font-family: var(--f-disp); font-weight: 600; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); line-height: 1.02; letter-spacing: -.022em; text-wrap: balance; }
.h-sec em { font-style: italic; color: var(--red); }
.band-ink .h-sec em, .band-red .h-sec em { color: var(--gold); }
.sec-intro { font-size: clamp(1.05rem, 0.3vw + 1rem, 1.25rem); font-weight: 300; color: var(--ink-soft); max-width: 60ch; margin-top: 1rem; }
.band-ink .sec-intro, .band-red .sec-intro { color: color-mix(in oklch, var(--paper) 78%, transparent); }

/* ===== PRESTATIONS (liste éditoriale, pas de cartes) ===== */
.presta-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2rem,4vw,3.2rem); }
@media (max-width: 820px) { .presta-head { grid-template-columns: 1fr; } }
.presta-list { border-top: 1px solid var(--line); }
.presta { display: grid; grid-template-columns: minmax(0,.42fr) minmax(0,1fr) auto; gap: clamp(1rem,3vw,2.5rem); align-items: center; padding: clamp(1.4rem,3vw,2.2rem) 0; border-bottom: 1px solid var(--line); transition: background .25s var(--ease); }
.presta:hover { background: color-mix(in oklch, var(--red) 5%, transparent); }
.presta h3 { font-family: var(--f-disp); font-weight: 500; font-size: clamp(1.4rem, 0.6vw + 1.3rem, 2.1rem); line-height: 1.05; letter-spacing: -.02em; }
.presta p { color: var(--ink-mute); font-size: .98rem; max-width: 46ch; }
.presta .thumb { width: clamp(72px, 9vw, 116px); aspect-ratio: 1; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); }
.presta .thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .presta { grid-template-columns: 1fr auto; grid-template-areas: "title thumb" "desc thumb"; gap: .4rem 1.2rem; } .presta h3 { grid-area: title; } .presta p { grid-area: desc; } .presta .thumb { grid-area: thumb; } }

/* ===== HISTOIRE (bande rouge) ===== */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: start; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }
.story-quote { font-family: var(--f-disp); font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 1rem + 2vw, 2.6rem); line-height: 1.14; }
.story-sign { margin-top: 1.6rem; font-family: var(--f-disp); font-style: italic; font-size: 1.15rem; color: var(--gold); }
.story-sign small { display: block; font-family: var(--f-body); font-style: normal; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in oklch, var(--paper) 62%, transparent); margin-top: 5px; }
.story-body p { color: color-mix(in oklch, var(--paper) 84%, transparent); margin-bottom: 1.05rem; }
.story-body b { color: var(--gold); font-weight: 600; }

/* ===== CARTE ===== */
.carte-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: clamp(1.6rem,3vw,2.4rem) 0; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.carte-tabs button { min-height: 40px; padding: .55rem 1.1rem; font-size: .92rem; font-weight: 500; color: var(--ink-mute); border-radius: 3px; transition: background .2s, color .2s; }
.carte-tabs button:hover { color: var(--ink); }
.carte-tabs button[aria-selected="true"] { background: var(--red); color: var(--paper); }
.carte-panel { display: none; }
.carte-panel.active { display: block; }
.dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(1.4rem,2.4vw,2rem) 1.4rem; }
.dish-img { aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--paper-2); margin-bottom: .85rem; position: relative; }
.dish-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.dish:hover .dish-img img { transform: scale(1.06); }
.tag { position: absolute; top: 8px; left: 8px; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: 3px 7px; border-radius: 2px; background: var(--gold); color: var(--ink); }
.tag.hot { background: var(--red); color: var(--paper); }
.dish-name { font-family: var(--f-disp); font-weight: 500; font-size: 1.1rem; line-height: 1.15; margin-bottom: 3px; }
.dish-desc { font-size: .84rem; color: var(--ink-mute); line-height: 1.45; }

/* Mobile : 3 plats par ligne, en cartes compactes qui lient photo et texte */
@media (max-width: 720px) {
  .dishes { grid-template-columns: repeat(3, 1fr); gap: .7rem .5rem; }
  .dish { background: oklch(99% 0.008 90); border: 1px solid var(--line); border-radius: 6px; padding: .4rem .4rem .55rem; }
  .dish-img { border-radius: 4px; margin-bottom: .45rem; }
  .dish-name { font-size: .82rem; line-height: 1.15; margin-bottom: 2px; padding-inline: .1rem; }
  .dish-desc { font-size: .69rem; line-height: 1.35; padding-inline: .1rem; }
  .tag { font-size: .5rem; padding: 2px 5px; top: 5px; left: 5px; letter-spacing: .05em; }
}

/* ===== MARCHÉS (secondaire, bande encre) ===== */
.markets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: start; }
@media (max-width: 820px) { .markets-grid { grid-template-columns: 1fr; } }
.days { columns: 2; column-gap: 2rem; }
@media (max-width: 520px) { .days { columns: 1; } }
.day { break-inside: avoid; margin-bottom: 1.3rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-on-dark); }
.day dt { font-family: var(--f-disp); font-style: italic; font-size: 1.1rem; color: var(--gold); margin-bottom: .3rem; }
.day dd { font-size: .92rem; color: color-mix(in oklch, var(--paper) 82%, transparent); line-height: 1.6; }
.markets-aside p { color: color-mix(in oklch, var(--paper) 80%, transparent); margin-bottom: 1.4rem; }

/* ===== DEVIS ===== */
.devis-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,4.5rem); align-items: start; }
@media (max-width: 860px) { .devis-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .35rem; font-weight: 500; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .75rem .95rem; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; font-family: var(--f-body); font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in oklch, var(--red) 18%, transparent); }
.field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--paper) inset; -webkit-text-fill-color: var(--ink); }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ===== FORMULAIRE PAR ÉTAPES (anti-friction) ===== */
.form .step { border: none; padding: 0; margin: 0; min-width: 0; }
.form .step legend { font-family: var(--f-disp); font-weight: 600; font-size: clamp(1.35rem, 1rem + 1.2vw, 1.9rem); letter-spacing: -.015em; color: var(--ink); padding: 0; margin-bottom: 1.2rem; }
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
@media (max-width: 520px) { .chips { grid-template-columns: 1fr; } }
.chip { position: relative; display: flex; align-items: center; min-height: 56px; padding: .85rem 1.1rem; background: var(--paper); border: 2px solid var(--line); border-radius: 4px; font-weight: 500; font-size: .98rem; cursor: pointer; transition: border-color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease), background .15s; }
.chip:hover { border-color: var(--ink); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip:has(input:checked) { background: var(--gold); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.chip:has(input:focus-visible) { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
.step-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.step-nav > :only-child { margin-left: auto; }
.lien-etape { font-size: .92rem; font-weight: 500; color: var(--ink-mute); text-decoration: underline; text-underline-offset: 3px; padding: .6rem 0; min-height: 44px; transition: color .2s; }
.lien-etape:hover { color: var(--ink); }
.steps-head { margin-bottom: 1.6rem; }
.steps-progress { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps-progress span { display: block; height: 100%; width: 25%; background: var(--red); border-radius: 2px; transition: width .35s var(--ease); }
.steps-count { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-top: .5rem; }
.form .field + .field { margin-top: 1rem; }
.form .form-row .field + .field { margin-top: 0; }

/* Zones de date conditionnelles (pur CSS, fonctionne aussi sans JavaScript) */
.chips-mini { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: .4rem; }
.chips-mini .chip { min-height: 46px; font-size: .92rem; padding: .7rem 1rem; }
.zone-date, .zone-periode { display: none; margin-top: .8rem; }
.step:has(input[name="date_mode"][value="precise"]:checked) .zone-date { display: block; animation: zoneIn .3s var(--ease); }
.step:has(input[name="date_mode"][value="periode"]:checked) .zone-periode { display: grid; animation: zoneIn .3s var(--ease); }
@keyframes zoneIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Validation en direct des champs */
.champ-verif { position: relative; }
.champ-verif .etat { position: absolute; right: 12px; bottom: 12px; width: 24px; height: 24px; border-radius: 50%; background: oklch(58% 0.12 145); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.5); transition: opacity .2s var(--ease), transform .25s var(--ease); pointer-events: none; }
.champ-verif .etat .ico { width: 13px; height: 13px; stroke-width: 2.6; }
.champ-verif.ok .etat { opacity: 1; transform: scale(1); }
.champ-verif.ok input { border-color: oklch(58% 0.12 145); }
.champ-verif.err input { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in oklch, var(--red) 15%, transparent); animation: secousse .3s var(--ease); }
@keyframes secousse { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 55% { transform: translateX(4px); } 80% { transform: translateX(-2px); } }
.field-erreur { font-size: .82rem; color: var(--red); margin-top: .35rem; }

/* Message d'envoi anime */
.form-msg.envoi::after { content: ''; display: inline-block; animation: pointsEnvoi 1.2s steps(4) infinite; }
@keyframes pointsEnvoi { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* Panneau de succes : coche dessinee */
.form-done { text-align: center; padding: 2.2rem 1rem 1.4rem; }
.form-done .done-mark { width: 84px; height: 84px; margin: 0 auto 1.2rem; display: block; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.form-done .done-mark circle { stroke: var(--red); stroke-width: 3; stroke-dasharray: 176; stroke-dashoffset: 176; animation: dessinCercle .6s var(--ease) forwards; }
.form-done .done-mark path { stroke: var(--ink); stroke-width: 4; stroke-dasharray: 36; stroke-dashoffset: 36; animation: dessinCoche .35s var(--ease) .45s forwards; }
@keyframes dessinCercle { to { stroke-dashoffset: 0; } }
@keyframes dessinCoche { to { stroke-dashoffset: 0; } }
.form-done .done-titre { font-family: var(--f-disp); font-weight: 600; font-size: 1.7rem; letter-spacing: -.02em; margin-bottom: .4rem; animation: stepInF .45s var(--ease) both .2s; }
.form-done .done-texte { color: var(--ink-soft); margin-bottom: 1.2rem; animation: stepInF .45s var(--ease) both .32s; }
.form-done .lien-etape { animation: stepInF .45s var(--ease) both .44s; }
.form.done .step, .form.done .steps-head, .form.done .form-msg { display: none !important; }

/* Sans JavaScript : tout est visible, la mecanique d'etapes est masquee */
.form:not(.steps-on) .steps-head, .form:not(.steps-on) [data-next], .form:not(.steps-on) [data-back] { display: none; }
.form:not(.steps-on) .step { margin-bottom: 1.6rem; }

/* Avec JavaScript : une etape a la fois, transitions directionnelles + cascade */
.form.steps-on .step { display: none; }
.form.steps-on .step.active { display: block; animation: stepInF .45s var(--ease); }
.form.steps-on.nav-back .step.active { animation-name: stepInB; }
.form.steps-on .step.active.leave { animation: stepOutF .2s ease-in forwards; }
.form.steps-on.nav-back .step.active.leave { animation-name: stepOutB; }
@keyframes stepInF { from { opacity: 0; transform: translateX(46px); } to { opacity: 1; transform: none; } }
@keyframes stepInB { from { opacity: 0; transform: translateX(-46px); } to { opacity: 1; transform: none; } }
@keyframes stepOutF { to { opacity: 0; transform: translateX(-38px); } }
@keyframes stepOutB { to { opacity: 0; transform: translateX(38px); } }
.form.steps-on .step.active legend { animation: monte .4s var(--ease) both; }
.form.steps-on .step.active .chip, .form.steps-on .step.active .field, .form.steps-on .step.active .step-nav { animation: monte .45s var(--ease) both; }
.form.steps-on .step.active > *:nth-child(2), .form.steps-on .step.active .chip:nth-child(1) { animation-delay: 60ms; }
.form.steps-on .step.active .chip:nth-child(2) { animation-delay: 95ms; }
.form.steps-on .step.active .chip:nth-child(3) { animation-delay: 130ms; }
.form.steps-on .step.active .chip:nth-child(4) { animation-delay: 165ms; }
.form.steps-on .step.active .chip:nth-child(5) { animation-delay: 200ms; }
.form.steps-on .step.active .field:nth-of-type(1) { animation-delay: 90ms; }
.form.steps-on .step.active .field:nth-of-type(2) { animation-delay: 130ms; }
.form.steps-on .step.active .form-row .field:nth-child(1) { animation-delay: 90ms; }
.form.steps-on .step.active .form-row .field:nth-child(2) { animation-delay: 130ms; }
.form.steps-on .step.active .step-nav { animation-delay: 230ms; }
@keyframes monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.chip:active { transform: scale(.95); }
.chip span { display: inline-block; }
.chip:has(input:checked) span { animation: chipPop .4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes chipPop { 0% { transform: scale(.85); } 55% { transform: scale(1.08); } 100% { transform: none; } }
.steps-progress span { transition: width .45s var(--ease); }
#stepsNum { display: inline-block; }
.steps-count.tic #stepsNum { animation: chipPop .3s var(--ease); }
.form-msg { font-size: .88rem; color: var(--ink-mute); }
.form-msg.ok { color: var(--red); font-weight: 500; }
.devis-aside .h-sec { margin-bottom: 1rem; }
.devis-aside ul { list-style: none; margin-top: 1.4rem; display: grid; gap: .8rem; }
.devis-aside li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-soft); font-size: .98rem; }
.devis-aside li .ico { width: 20px; height: 20px; color: var(--red); margin-top: 2px; }

/* ===== FAQ ===== */
.faq-list { max-width: 820px; margin-top: 2rem; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.25rem 0; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; font-family: var(--f-disp); font-weight: 500; font-size: 1.18rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { width: 22px; height: 22px; color: var(--red); transition: transform .3s var(--ease); }
.faq-item[open] summary .ico { transform: rotate(45deg); }
.faq-answer { padding: 0 0 1.4rem; color: var(--ink-soft); max-width: 68ch; }

/* ===== FOOTER (acte final) ===== */
footer { background: var(--ink); color: color-mix(in oklch, var(--paper) 72%, transparent); padding-top: clamp(3rem,7vw,5.5rem); padding-bottom: 2rem; }
.footer-lead { font-family: var(--f-disp); font-weight: 600; font-size: clamp(2rem, 1rem + 4vw, 4.5rem); line-height: 1; letter-spacing: -.02em; color: var(--paper); max-width: 16ch; margin-bottom: 2.4rem; }
.footer-lead a { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.4rem; padding-top: 2.4rem; border-top: 1px solid var(--line-on-dark); }
.footer-brand img { height: 108px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 30ch; font-size: .9rem; }
footer h4 { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 1rem; }
footer ul { list-style: none; display: grid; gap: .55rem; }
footer a:hover { color: var(--paper); }
.footer-zones { margin-top: 2.2rem; font-size: .85rem; line-height: 1.6; max-width: 74ch; color: color-mix(in oklch, var(--paper) 52%, transparent); }
.footer-zones b { color: color-mix(in oklch, var(--paper) 72%, transparent); font-weight: 500; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 2rem; margin-top: 2.2rem; border-top: 1px solid var(--line-on-dark); font-size: .82rem; color: color-mix(in oklch, var(--paper) 52%, transparent); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== BARRE MOBILE ===== */
.mbar { display: none; }
@media (max-width: 720px) {
  .mbar { display: flex; gap: 10px; position: fixed; inset: auto 0 0 0; z-index: 120; padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px)); background: color-mix(in oklch, var(--ink) 96%, transparent); border-top: 1px solid var(--line-on-dark); }
  .mbar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 3px; font-weight: 600; font-size: .95rem; }
  .mbar .ico { width: 18px; height: 18px; }
  .mbar .devis { background: var(--gold); color: var(--ink); }
  .mbar .call { background: transparent; color: var(--paper); border: 1.5px solid var(--line-on-dark); }
  body { padding-bottom: 70px; }
}

/* ===== MOTION MOTIF : révélation masque montant ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
[data-stagger].in > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * , *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, [data-stagger] > * { opacity: 1; transform: none; }
}
