/* ==========================================================================
   EyKa ElektroniK — feuille de style commune (site v2)
   Pas de framework, pas de compilation. Couleurs : variables ci-dessous.
   ========================================================================== */

/* ---------- Polices hébergées en local (RGPD : aucun appel à Google) ---------- */
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-var.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-italic-var.woff2") format("woff2"); font-weight: 500 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Yellowtail"; src: url("../fonts/yellowtail.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Couleurs de la charte ---------- */
:root {
  --navy: #1B2B4A;          /* bleu nuit */
  --navy-deep: #0F1A2E;     /* bleu nuit profond (fonds d'images) */
  --navy-soft: #26385C;     /* bleu nuit éclairci (cartes sur fond sombre) */
  --cream: #EFE3C8;         /* crème */
  --cream-light: #F7F0E1;   /* crème clair (fond principal) */
  --sand: #E6DCC4;          /* sable (emplacements photo) */
  --gold: #E3B65C;          /* doré (sur fond sombre uniquement) */
  --gold-dark: #8A6A2B;     /* doré foncé : texte sur blanc, grands titres sur crème */
  --gold-text: #7A5C22;     /* doré foncé renforcé : petit texte sur crème (contraste AA) */
  --ink: #1B2B4A;           /* texte principal */
  --ink-2: #3A4A66;         /* texte secondaire */
  --on-navy: #EFE3C8;       /* texte sur bleu nuit */
  --on-navy-2: #C9D2E0;     /* texte secondaire sur bleu nuit */
  --line: #D8CCB0;          /* filets sur crème */
  --white: #FFFFFF;

  --font-text: "Inter", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-title: "Lora", Georgia, "Times New Roman", serif;
  --font-script: "Yellowtail", "Brush Script MT", cursive;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--cream-light); color: var(--ink);
  font-family: var(--font-text); font-size: 17px; line-height: 1.6;
  overflow-wrap: break-word; text-rendering: optimizeLegibility;
}
img, svg, picture, video { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-text); }
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(38px, 6.2vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: clamp(21px, 2.2vw, 26px); }
p { margin: 0; }
em.gold, .gold { color: var(--gold); }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.bg-cream :focus-visible, .bg-light :focus-visible, main.light :focus-visible { outline-color: var(--navy); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.bg-navy { background: var(--navy); color: var(--on-navy); }
.bg-cream { background: var(--cream); }
.bg-light { background: var(--cream-light); }
.bg-navy a { color: var(--on-navy); }
.bg-navy a:hover { color: var(--gold); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 18px;
  background: var(--gold); color: var(--navy); font-weight: 700; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Sur-titres, chapeaux */
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-text); }
.bg-navy .kicker, .hero .kicker { color: var(--gold); }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 640px; }
.bg-navy .lead, .hero .lead { color: var(--on-navy-2); }
.muted { color: var(--ink-2); }
.bg-navy .muted { color: var(--on-navy-2); }
.stack > * + * { margin-top: 18px; }
.stack-lg > * + * { margin-top: 28px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Marqueurs à remplacer par le fondateur : volontairement visibles */
.todo {
  background: #EADFC6; color: var(--ink); padding: 0 5px; border-radius: 4px;
  font-family: var(--font-text); font-style: normal; font-size: .85em; font-weight: 600;
}
.bg-navy .todo, .hero .todo { background: var(--navy-soft); color: var(--on-navy); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #EDC673; color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--on-navy); }
.btn--navy:hover { background: var(--navy-soft); color: var(--on-navy); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { color: var(--gold-text); }
.bg-navy .btn--ghost, .hero .btn--ghost { color: var(--on-navy); }
.bg-navy .btn--ghost:hover, .hero .btn--ghost:hover { color: var(--gold); }
.bg-navy .btn--gold, .hero .btn--gold { color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }
.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.link-arrow::after { content: " →"; }

/* Pastilles d'état (prototype, en conception, à l'étude) */
.status {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; background: var(--white); color: var(--ink); border: 1px solid var(--line);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-dark); }
.status--proto::before { background: #2F7D4F; }
.bg-navy .status, .hero .status { background: var(--navy-soft); color: var(--on-navy); border-color: #3A4D75; }
.bg-navy .status::before, .hero .status::before { background: var(--gold); }

/* ---------- En-tête et menu ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--on-navy); border-bottom: 1px solid #2B3D63; }
.site-header .bar { display: flex; align-items: center; gap: 12px 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--on-navy); flex-shrink: 0; }
.brand img { width: 84px; height: 53px; }
.brand .sig { font-family: var(--font-title); font-style: italic; font-size: 16px; color: var(--gold); }
.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px;
  background: transparent; color: var(--on-navy); border: 2px solid #3A4D75; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
}
.nav-toggle .bars { width: 18px; height: 12px; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars span {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s;
}
.nav-toggle .bars::before { top: 0; } .nav-toggle .bars span { top: 5px; } .nav-toggle .bars::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav { margin-left: auto; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.site-nav a, .site-nav .sub-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  color: var(--on-navy); text-decoration: none; font: inherit; font-size: 15px; font-weight: 500;
  background: transparent; border: 0; cursor: pointer;
}
.site-nav a:hover, .site-nav .sub-toggle:hover { color: var(--gold); }
.site-nav a[aria-current="page"], .site-nav .sub-toggle.is-current { color: var(--gold); font-weight: 700; }
.site-nav .nav-cta a { background: var(--gold); color: var(--navy); font-weight: 700; padding: 10px 20px; margin-left: 8px; }
.site-nav .nav-cta a:hover { background: #EDC673; color: var(--navy); }
.site-nav .nav-cta a[aria-current="page"] { color: var(--navy); }
.site-nav .lang a { font-size: 13px; font-weight: 700; letter-spacing: .08em; border: 1px solid #3A4D75; padding: 6px 12px; min-height: 36px; }
.sub-toggle .chev { width: 10px; height: 10px; transition: transform .25s; }
.sub-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.has-sub { position: relative; }
.submenu {
  list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 10px); left: -10px; min-width: 300px;
  background: var(--cream-light); border-radius: 18px; box-shadow: 0 24px 60px rgba(15, 26, 46, .35);
}
.has-sub:not(.is-open) .submenu { display: none; }
.submenu a { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; color: var(--ink); border-radius: 12px; padding: 12px 14px; width: 100%; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--cream); color: var(--ink); }
.submenu a small { font-size: 13px; color: var(--ink-2); font-weight: 400; }
.submenu a strong { font-weight: 700; }
.submenu :focus-visible { outline-color: var(--navy); }

@media (max-width: 980px) {
  .brand .sig { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--navy); border-top: 1px solid #2B3D63;
    padding: 12px var(--gutter) 24px; max-height: calc(100vh - 76px); overflow-y: auto; box-shadow: 0 30px 50px rgba(15, 26, 46, .4); }
  .site-nav:not([data-open="true"]) { display: none; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a, .site-nav .sub-toggle { width: 100%; font-size: 18px; padding: 12px 8px; border-radius: 12px; justify-content: space-between; }
  .site-nav .nav-cta a { justify-content: center; margin: 12px 0 0; }
  .site-nav .lang a { width: auto; display: inline-flex; margin-top: 10px; font-size: 14px; }
  .submenu { position: static; min-width: 0; box-shadow: none; background: var(--navy-soft); margin: 4px 0 8px; }
  .submenu a { color: var(--on-navy); }
  .submenu a small { color: var(--on-navy-2); }
  .submenu a:hover, .submenu a[aria-current="page"] { background: #2E4370; color: var(--gold); }
  .submenu :focus-visible { outline-color: var(--gold); }
}

/* ---------- Héros ---------- */
.hero { position: relative; background: var(--navy); color: var(--on-navy); overflow: hidden; }
.hero-visual {
  position: relative; border-radius: 0 0 32px 32px; overflow: hidden;
  background: radial-gradient(90% 80% at 60% 35%, #2A3F68 0%, var(--navy-deep) 70%);
  min-height: clamp(320px, 52vw, 600px); display: grid; place-items: center;
}
.hero-visual::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, rgba(15, 26, 46, .55)); pointer-events: none; }
.hero-visual .parallax { width: min(760px, 84%); padding: 48px 0 72px; }
.hero-visual img { width: 100%; }
.hero-visual .parallax { will-change: transform; }
.hero-copy { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px 40px; padding: clamp(36px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.hero-copy .text { flex: 1 1 540px; min-width: 0; }
.hero-copy .text > * + * { margin-top: 18px; }
.hero h1 em { font-weight: 500; color: var(--gold); display: block; }
.hero--page .hero-copy { padding-top: clamp(56px, 8vw, 96px); }

/* Emplacement / légende de photo à remplacer */
.photo-note {
  position: absolute; left: 16px; bottom: 16px; z-index: 2; max-width: calc(100% - 32px);
  font-size: 12px; line-height: 1.4; font-weight: 600; padding: 6px 10px; border-radius: 8px;
  background: rgba(15, 26, 46, .82); color: var(--on-navy); border: 1px dashed var(--gold);
}
.photo-slot {
  position: relative; display: grid; place-items: center; text-align: center; padding: 28px;
  aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--sand); color: var(--ink-2);
  font-size: 14px; font-weight: 600; line-height: 1.45; border: 2px dashed #C9B98F; overflow: hidden;
}
.photo-slot svg { width: 44px; height: 44px; margin: 0 auto 10px; opacity: .55; }
.photo-slot--dark { background: var(--navy-soft); color: var(--on-navy-2); border-color: #4A5E88; }
.photo-slot--wide { aspect-ratio: 16 / 7; }
.figure { position: relative; margin: 0; }
.figure figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.bg-navy .figure figcaption { color: var(--on-navy-2); }

/* ---------- Étapes « Comment ça marche » ---------- */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 32px 28px 30px; border: 1px solid var(--line); }
.step .num { font-family: var(--font-title); font-style: italic; font-size: 44px; line-height: 1; color: var(--gold-dark); }
.step svg { width: 56px; height: 56px; margin: 18px 0 16px; color: var(--navy); }
.step h3 { font-size: 23px; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.bg-navy .step { background: var(--navy-soft); border-color: #3A4D75; }
.bg-navy .step svg { color: var(--gold); }
.bg-navy .step .num { color: var(--gold); }
.bg-navy .step p { color: var(--on-navy-2); }

/* ---------- Cartes produits ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 40px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(27, 43, 74, .14); color: var(--ink); }
.card .media { aspect-ratio: 4 / 3; background: var(--cream); display: grid; place-items: center; overflow: hidden; }
.card .media img { width: 88%; height: auto; }
.card .media .photo-slot { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; border: 0; font-size: 13px; }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .body strong { font-family: var(--font-title); font-size: 23px; }
.card .body span { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.card .body .status { align-self: flex-start; margin-top: auto; color: var(--ink); }
.card--navy { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.card--navy:hover { color: var(--on-navy); }
.card--navy .body strong { color: var(--gold); }
.card--navy .body span { color: var(--on-navy-2); }
.card--navy .media { background: var(--navy-soft); }

/* ---------- Bloc deux colonnes ---------- */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 64px); }
.split > * { flex: 1 1 400px; min-width: 0; }
.split--reverse { flex-direction: row-reverse; }

/* ---------- Principes ---------- */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin-top: 48px; border-top: 1px solid var(--line); }
.principle { padding: 28px 24px 8px 0; }
.principle h3 { font-size: 26px; }
.principle h3::before { content: ""; display: block; width: 36px; height: 3px; background: var(--gold); margin-bottom: 18px; }
.principle p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }

/* ---------- Voitures visées ---------- */
.cars { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cars li { padding: 10px 16px; border-radius: 999px; background: var(--navy-soft); color: var(--on-navy); font-size: 15px; font-weight: 600; border: 1px solid #3A4D75; }
.cars li.is-test { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.note { font-size: 14px; color: var(--ink-2); margin-top: 20px; }
.bg-navy .note { color: var(--on-navy-2); }

/* ---------- Bandeau d'appel final ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 820px; margin: 0 auto; }
.cta-band .lead { margin: 18px auto 0; }
.cta-band .btn-row { justify-content: center; margin-top: 32px; }

/* ---------- Pages produit ---------- */
.product-hero { text-align: center; padding: clamp(56px, 9vw, 110px) 0 0; }
.product-hero h1 { font-size: clamp(48px, 9vw, 104px); letter-spacing: -.02em; }
.product-hero .tagline { font-family: var(--font-title); font-style: italic; font-weight: 500; font-size: clamp(22px, 3vw, 34px); color: var(--gold); margin-top: 14px; }
.product-hero .lead { margin: 22px auto 0; }
.product-hero .btn-row { justify-content: center; margin-top: 30px; }
.product-hero .status { margin-bottom: 22px; }
.product-visual { margin-top: clamp(32px, 5vw, 56px); display: grid; place-items: center; }
.product-visual img { width: min(980px, 100%); }
.statement + .lead { margin-top: 24px; }
.statement { font-family: var(--font-title); font-weight: 700; font-size: clamp(30px, 4.6vw, 56px); line-height: 1.12; max-width: 960px; }
.statement em { font-weight: 500; color: var(--gold-dark); }
.bg-navy .statement em { color: var(--gold); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 44px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature h3 { font-size: 22px; }
.feature p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.feature .status { margin-top: 16px; }
.bg-navy .feature { background: var(--navy-soft); border-color: #3A4D75; }
.bg-navy .feature p { color: var(--on-navy-2); }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 40px 0 0; border-top: 1px solid var(--line); }
.specs div { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.specs dd { margin: 6px 0 0; font-family: var(--font-title); font-size: 22px; font-weight: 600; }
.displays { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.displays li { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 18px; background: var(--navy-soft); border: 1px solid #3A4D75; }
.lcd {
  font-family: "Consolas", "Courier New", monospace; font-size: 17px; letter-spacing: .14em; color: #FF5A3C;
  background: #120A08; border-radius: 8px; padding: 10px 12px; text-align: center; text-shadow: 0 0 8px rgba(255, 90, 60, .55);
  white-space: pre; overflow: hidden; border: 1px solid #000;
}
.displays li span { font-size: 15px; color: var(--on-navy-2); }

/* Vue 3D */
.viewer {
  position: relative; border-radius: 28px; overflow: hidden; margin-top: 40px;
  background: radial-gradient(80% 80% at 50% 40%, #2E4570 0%, var(--navy) 60%, var(--navy-deep) 100%);
  aspect-ratio: 16 / 10; max-height: 640px; width: 100%; border: 1px solid #2B3D63;
}
.viewer model-viewer, .viewer .viewer-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.viewer model-viewer { --poster-color: transparent; --progress-bar-color: var(--gold-dark); }
.viewer .viewer-poster { display: grid; place-items: center; }
.viewer .viewer-poster img { width: 78%; height: auto; }
.viewer.is-3d .viewer-poster { opacity: 0; pointer-events: none; transition: opacity .6s; }
.viewer-ui { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: flex-end; z-index: 3; pointer-events: none; }
.viewer-ui > * { pointer-events: auto; }
.viewer-hint { font-size: 13px; font-weight: 600; color: var(--ink-2); background: rgba(247, 240, 225, .9); padding: 6px 12px; border-radius: 999px; }
.viewer .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }
@media (max-width: 600px) { .viewer { aspect-ratio: 4 / 5; } }

/* ---------- Histoire ---------- */
.story { font-family: var(--font-title); font-size: clamp(19px, 1.8vw, 21px); line-height: 1.8; color: #24324D; }
.story p + p { margin-top: 22px; }
.chapter { padding-top: 56px; }
.chapter:first-child { padding-top: 0; }
.chapter .kicker { font-family: var(--font-text); margin-bottom: 18px; }
.chapter h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 22px; }
.pull { font-style: italic; font-weight: 500; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.45; color: var(--navy); border-left: 3px solid var(--gold); padding-left: 24px; margin: 30px 0; }
.signature { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.signature .name { font-family: var(--font-script); font-size: 46px; line-height: 1; color: var(--navy); }
.signature span { font-family: var(--font-text); font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.timeline-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; list-style: none; padding: 0; }
.timeline-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 14px; border: 1px solid #3A4D75; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; }

/* ---------- FAQ ---------- */
.faq-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.faq-nav { flex: 0 1 240px; position: sticky; top: 100px; }
.faq-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.faq-nav a { display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 15px; }
.faq-nav a:hover { background: var(--cream); color: var(--ink); }
.faq-body { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.faq-group h2 { font-size: clamp(26px, 2.6vw, 30px); margin-bottom: 16px; }
.faq-group > * + details, details + details { margin-top: 10px; }
details.qa { background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
details.qa summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative; font-weight: 700; font-size: 17px; line-height: 1.4; border-radius: 16px;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .25s;
}
details.qa[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details.qa .answer { padding: 0 22px 20px; color: var(--ink-2); }
details.qa .answer p + p { margin-top: 10px; }
@media (max-width: 860px) { .faq-nav { position: static; flex-basis: 100%; } .faq-nav ul { flex-direction: row; flex-wrap: wrap; } .faq-nav a { background: var(--white); border: 1px solid var(--line); } }

/* ---------- Formulaire d'étude ---------- */
.survey-head { padding: clamp(48px, 7vw, 80px) 0 28px; }
.progress { display: flex; align-items: center; gap: 14px; margin: 8px 0 24px; }
.progress .track { flex: 1; height: 8px; background: #E2D6BA; border-radius: 4px; overflow: hidden; }
.progress .fill { height: 100%; width: 20%; background: var(--navy); border-radius: 4px; transition: width .4s var(--ease); }
.progress .label { font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.survey { background: var(--cream); border-radius: 26px; padding: clamp(22px, 4vw, 40px); }
.survey .step-panel + .step-panel { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.survey .step-panel:not(.is-active) { display: none; }
.survey .step-panel + .step-panel { margin-top: 0; padding-top: 0; border-top: 0; }
.step-panel > h2 { font-size: clamp(25px, 3vw, 30px); margin-bottom: 8px; }
.step-panel > h2:focus { outline: none; }
.step-panel > .intro { color: var(--ink-2); font-size: 16px; }
.q { border: 0; margin: 28px 0 0; padding: 0; min-width: 0; }
.q legend, .q .ql { display: block; font-size: 17px; font-weight: 700; margin-bottom: 12px; padding: 0; line-height: 1.4; }
.q .hint { display: block; font-size: 14px; color: var(--ink-2); margin: -6px 0 12px; font-weight: 400; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; font-size: 15px; cursor: pointer; line-height: 1.35;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.opt:hover { border-color: var(--navy); }
.opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); flex-shrink: 0; }
.opt:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: #FBF7EE; }
.opt:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; }
.opt input:focus-visible { outline: none; }
.scale .opt { min-width: 56px; justify-content: center; }
.field {
  width: 100%; padding: 14px 16px; border: 1px solid #7D8AA3; border-radius: 14px; background: var(--white); color: var(--ink);
  font: inherit; font-size: 16px; min-height: 50px;
}
.field:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
textarea.field { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 15px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex-shrink: 0; }
.field-error { display: block; margin-top: 8px; color: #8E2A1B; font-size: 14px; font-weight: 600; }
.field-error:empty { display: none; }
.rgpd { margin-top: 28px; padding: 20px 22px; border-radius: 16px; background: var(--cream-light); font-size: 14px; line-height: 1.6; color: var(--ink-2); border: 1px solid var(--line); }
.rgpd h3 { font-family: var(--font-text); font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.rgpd ul { margin: 8px 0 0; padding-left: 18px; }
.rgpd li + li { margin-top: 4px; }
.survey-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.survey-nav .spacer { flex: 1; }
.survey-nav .btn--ghost { color: var(--ink); }
.honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pages légales ---------- */
.legal { padding: clamp(48px, 7vw, 80px) 0 clamp(64px, 9vw, 110px); }
.legal h1 { font-size: clamp(34px, 5vw, 50px); margin: 12px 0 24px; }
.legal h2 { font-size: clamp(22px, 2.4vw, 27px); margin: 44px 0 14px; }
.legal p, .legal li { color: #2C3B57; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 10px 0 0; }
.legal li + li { margin-top: 6px; }
.legal .draft { padding: 16px 20px; border-radius: 14px; background: #F3E3BD; border: 1px solid #D9BF83; font-size: 15px; color: var(--ink); }
.table-wrap { overflow-x: auto; margin-top: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); }
.legal table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--cream); font-weight: 700; }
.legal tr:last-child td { border-bottom: 0; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-2); }
.site-footer .top { display: grid; grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(150px, 1fr)); gap: 40px; padding: 64px 0 48px; }
.site-footer .badge img { width: 190px; height: auto; }
.site-footer .sig { font-family: var(--font-title); font-style: italic; color: var(--gold); font-size: 18px; margin-top: 16px; }
.site-footer h2 { font-family: var(--font-text); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 4px; }
.site-footer a { color: var(--on-navy-2); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer .bottom { border-top: 1px solid #2E4066; padding: 22px 0 28px; font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.site-footer .bottom p { color: var(--on-navy-2); }
@media (max-width: 900px) { .site-footer .top { grid-template-columns: 1fr 1fr; } .site-footer .brandcol { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer .top { grid-template-columns: 1fr; } }

/* ---------- Page 404 / merci ---------- */
.solo { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.solo img.badge { width: 220px; margin: 0 auto 28px; }
.solo h1 { font-size: clamp(36px, 5.4vw, 60px); max-width: 860px; margin: 0 auto; }
.solo .lead { margin: 18px auto 0; }
.solo .btn-row { justify-content: center; margin-top: 30px; }
.road { width: min(420px, 90%); margin: 0 auto 28px; color: var(--gold); }

/* ---------- Animations sobres (désactivées si mouvement réduit) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-visual .parallax { transform: none !important; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- Impression ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .btn-row, .survey-nav { display: none !important; }
  body { background: #fff; }
}

/* Liens dans les héros sombres */
.hero a:not(.btn) { color: var(--on-navy); }
.hero a:not(.btn):hover { color: var(--gold); }


/* ==========================================================================
   Ajouts v3 : formulaire mis en avant, galerie, boîtiers, concept d'écran, photos
   ========================================================================== */
.site-nav .nav-cta .nav-cta-time { font-weight: 600; opacity: .8; }

/* Section « Ton avis » de l'accueil */
.avis-focus { position: relative; overflow: hidden; }
.avis-focus::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 2px solid rgba(227, 182, 92, .22); pointer-events: none; }
.avis-focus-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.avis-focus h2 { font-size: clamp(32px, 4.4vw, 52px); }
.avis-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.avis-points li { position: relative; padding-left: 30px; color: var(--on-navy); font-size: 17px; }
.avis-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg); }
.btn--xl { min-height: 60px; padding: 18px 34px; font-size: 19px; box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
.avis-focus .btn-row { margin-top: 32px; }
.avis-etapes { list-style: none; counter-reset: etape; margin: 0; padding: 0; display: grid; gap: 12px; }
.avis-etapes li { counter-increment: etape; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 16px; background: var(--navy-soft); border: 1px solid #3A4D75; font-weight: 600; }
.avis-etapes li::before { content: counter(etape); flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; }
@media (max-width: 860px) { .avis-focus-grid { grid-template-columns: 1fr; } .avis-etapes { grid-template-columns: 1fr 1fr; } .avis-etapes li:last-child { grid-column: 1 / -1; } }

/* Bandeau discret refermable (position fixe : aucun décalage de mise en page) */
.avis-pill { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 4px; max-width: min(440px, calc(100vw - 32px));
  background: var(--navy); color: var(--on-navy); border-radius: 999px; padding: 6px 6px 6px 20px; box-shadow: 0 12px 32px rgba(15, 26, 46, .35);
  border: 1px solid #3A4D75; font-size: 15px; opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s var(--ease); }
.avis-pill.is-in { opacity: 1; transform: none; }
.avis-pill a { color: var(--on-navy); text-decoration: none; padding: 8px 0; }
.avis-pill a strong { color: var(--gold); }
.avis-pill a:hover { color: var(--gold); }
.avis-pill-close { flex: 0 0 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--on-navy); font-size: 24px; line-height: 1; cursor: pointer; }
.avis-pill-close:hover { background: var(--navy-soft); }
.avis-pill a:focus-visible, .avis-pill-close:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .avis-pill { transition: none; } }
@media print { .avis-pill { display: none !important; } }

/* Galeries d'images */
.gallery-2, .gallery-3 { display: grid; gap: clamp(20px, 3vw, 32px); margin-top: 40px; }
.gallery-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.gallery-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gallery-2 img, .gallery-3 img { width: 100%; height: auto; border-radius: 18px; background: var(--cream); }
.galerie-lien { margin-top: 32px; }

/* Vidéo du concept d'écran */
.video-figure { margin: 40px 0 0; }
.video-figure video { display: block; width: 100%; height: auto; border-radius: 22px; background: var(--navy-deep); box-shadow: 0 22px 48px rgba(27, 43, 74, .2); }
.video-figure figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); max-width: 820px; }
.status--concept { background: #F3E3BD; border-color: #D9BF83; }
.status--concept::before { background: #B4572E; }

/* Photos de l'Audi (provisoires tant que le fondateur ne les a pas fournies) */
.photo-audi { display: block; }
.photo-audi img { width: 100%; height: auto; border-radius: 22px; }
.split--photo { margin-top: 28px; }

/* Remerciement et partage */
.share { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.share h2 { font-size: clamp(24px, 3vw, 32px); }
.share p { margin-top: 12px; }
.share .btn-row { justify-content: center; margin-top: 20px; }
.share-link a { word-break: break-all; }
.share-status { min-height: 1.5em; font-weight: 600; }
