/*
 * Quiz « Votre potentiel d'optimisation », Caroline Asselin.
 * Direction: magazine de design intérieur, luxe discret. Planche de marque Propagande Guérilla:
 * charbon #322F2D, taupe #7D7772, gris chaud #E0DCD8, lin #F7F7F5, l'arche comme motif.
 * Polices hébergées ici (fonts/, licences OFL): Bodoni Moda (titres en capitales), Jost (sous-titres,
 * police ronde), Mrs Saint Delafield (signature seulement), Inter (texte, interface).
 * Mouvement: transform et opacity seulement, coupé sous prefers-reduced-motion.
 * Tout :hover vit dans @media (hover: hover) (testé).
 */

/* ---------- polices ---------- */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/potentiel/fonts/bodoni-moda-latin-opsz-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url(/potentiel/fonts/bodoni-moda-latin-opsz-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/potentiel/fonts/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  /* Jost (Fontsource 5.3.0, @fontsource-variable/jost), géométrique aux panses rondes: sous-titres */
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/potentiel/fonts/jost-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mrs Saint Delafield';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/potentiel/fonts/mrs-saint-delafield-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- jetons ---------- */
:root {
  --lin: #f7f7f5;            /* Cool Gray 1 C, fond */
  --lin-chaud: #efebe6;      /* entre lin et gris chaud, panneau */
  --gris: #e0dcd8;           /* Warm Gray 1 C */
  --blanc: #fcfbf9;          /* surfaces levées (choix, cartes) */
  --taupe: #7d7772;          /* 403 C, décor et grands éléments seulement (4,4:1 sur lin) */
  --taupe-texte: #5e5853;    /* taupe assombri pour le petit texte (>= 4,5:1) */
  --charbon: #322f2d;        /* Black 7 C */
  --charbon-doux: #4d4844;
  --sur-charbon: #f7f7f5;
  --sur-charbon-doux: #cbc4bd;
  --ligne: #d3ccc5;
  --ligne-forte: #a39b94;
  --rouge: #963a2d;

  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --rond: 'Jost', 'Futura', 'Century Gothic', 'Avenir Next', sans-serif;
  --script: 'Mrs Saint Delafield', 'Snell Roundhand', cursive;

  --g: 20px;                 /* gouttière */
  --entete: 64px;
  --panneau: clamp(400px, 42vw, 680px);
  --courbe: cubic-bezier(0.22, 1, 0.36, 1);   /* ease-out-quint */
  --courbe-douce: cubic-bezier(0.45, 0, 0.25, 1);
  --duree: 220ms;
  --chasse: 0.26em;          /* capitales espacées */
  --chasse-titre: 0.03em;    /* titres Bodoni en capitales */
  /* Lisibilité des capitales: Bodoni Moda a les axes wght 400-900 et opsz 6-96 (lu dans fvar). opsz 6 = déliés
     les plus épais, poids 600. Avec 400 et l'optique auto, les déliés disparaissaient. */
  --titre-poids: 600;
  --titre-optique: 'opsz' 6;
  /* grain de papier: fond de <html>, donc sur toute la hauteur du document (voir .atmosphere) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .18 0 0 0 0 .17 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--grain) var(--lin); }
body {
  /* fond porté par <html>: body reste transparent pour que le décor (z-index négatif) paraisse */
  position: relative;
  margin: 0;
  min-height: 100dvh;
  color: var(--charbon);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1:focus, h2:focus { outline: none; }
:focus-visible { outline: 2px solid var(--charbon); outline-offset: 3px; }
[hidden] { display: none !important; }
::selection { background: var(--gris); color: var(--charbon); }

.saut {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--charbon); color: var(--sur-charbon);
  padding: 12px 18px; text-decoration: none; font-size: 14px;
}
.saut:focus { top: 12px; }

/* ---------- atmosphère: grain, lumière qui passe, poussière ---------- */
.atmosphere {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
/* Le grain n'est plus ici: une couche fixe ne couvre que la hauteur de la fenêtre, et une capture pleine page
   montrait une bande plus grise sur les 900 premiers pixels. Il vit maintenant dans le fond de <html>. */
.atmosphere > span { position: absolute; inset: 0; }
.atmosphere-lumiere::before {
  /* lumière à travers un rideau de lin, passe lentement */
  content: ''; position: absolute; top: -25%; bottom: -25%; left: -70%; width: 55%;
  background: linear-gradient(100deg, rgba(255, 253, 249, 0) 0%, rgba(255, 253, 249, 0.42) 48%, rgba(255, 253, 249, 0) 100%);
  transform: translate3d(0, 0, 0) skewX(-10deg);
  animation: balayage 18s var(--courbe-douce) 1.2s infinite;
  will-change: transform;
}
.atmosphere-poussiere::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 200%;
  background-image:
    radial-gradient(circle at 8% 14%, rgba(125, 119, 114, 0.42) 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 27% 62%, rgba(125, 119, 114, 0.32) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 46% 31%, rgba(125, 119, 114, 0.38) 0 1.3px, transparent 2.1px),
    radial-gradient(circle at 63% 83%, rgba(125, 119, 114, 0.3) 0 1px, transparent 1.8px),
    radial-gradient(circle at 81% 22%, rgba(125, 119, 114, 0.36) 0 1.2px, transparent 2px),
    radial-gradient(circle at 92% 57%, rgba(125, 119, 114, 0.28) 0 0.9px, transparent 1.7px);
  background-size: 100% 50%;
  background-repeat: repeat-y;
  animation: derive 90s linear infinite, balance 14s ease-in-out infinite alternate;
  will-change: transform;
}
.atmosphere-poussiere-lente::before {
  background-image:
    radial-gradient(circle at 16% 44%, rgba(125, 119, 114, 0.26) 0 1.6px, transparent 2.6px),
    radial-gradient(circle at 54% 9%, rgba(125, 119, 114, 0.22) 0 1.4px, transparent 2.4px),
    radial-gradient(circle at 72% 69%, rgba(125, 119, 114, 0.24) 0 1.8px, transparent 2.8px),
    radial-gradient(circle at 38% 91%, rgba(125, 119, 114, 0.2) 0 1.2px, transparent 2.2px);
  animation-duration: 140s, 19s;
  animation-direction: normal, alternate-reverse;
}
@keyframes balayage {
  0% { transform: translate3d(0, 0, 0) skewX(-10deg); }
  60%, 100% { transform: translate3d(390%, 0, 0) skewX(-10deg); }
}
@keyframes derive { to { transform: translate3d(0, -50%, 0); } }
@keyframes balance { from { translate: -10px 0; } to { translate: 10px 0; } }

/* Couches: panneau -2, atmosphère -1, contenu dans le flux par-dessus (body n'est pas un contexte d'empilement). */
.panneau { z-index: -2; }

/* ---------- en-tête ---------- */
.entete-int {
  height: var(--entete);
  display: flex; align-items: center;
  padding-inline: var(--g);
}
.entete-logo { height: 30px; width: auto; }

.bandeau-demo {
  margin: 0; padding: 9px var(--g);
  background: var(--gris); color: var(--charbon-doux);
  font-size: 12.5px; line-height: 1.45; letter-spacing: 0.01em;
}

/* ---------- typographie partagée ---------- */
.surtitre, .etape-compte, .retour, .etape-compteur, .panneau-legende, .attention-etiquette,
.repere-mot, .citation figcaption, .suite-badge, .champ > label:not(.case), .attention-photo figcaption,
.video figcaption, .pied a {
  font-family: var(--sans);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: var(--chasse); text-transform: uppercase;
  line-height: 1.4;
}
.surtitre {
  display: flex; align-items: center; gap: 14px;
  color: var(--taupe-texte); letter-spacing: 0.2em;
}
.surtitre::before { content: ''; width: 36px; height: 1px; background: currentColor; flex: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--charbon); }
h1 em, h2 em { font-style: italic; }
/* Titres principaux: Bodoni en capitales fines et espacées (esprit Blessrosa de la planche). Le texte source reste
   en minuscules dans config.js: lecteurs d'écran et tests lisent la phrase normale. Aucune coupure de mot. */
.vue-intro h1, .vue-question h1, .vue-contact h1, .resultat-tete h1, .bloc-attention h2, .bloc-preuve h2, .bloc-suites h2, .noscript h1 {
  text-transform: uppercase; letter-spacing: var(--chasse-titre);
  font-weight: var(--titre-poids); font-variation-settings: var(--titre-optique);
  hyphens: manual; overflow-wrap: normal; word-break: normal;
}
.insecable { white-space: nowrap; }
/* Sous-titres: Jost, ronde et légère. */
.intro-promesse, .contact-detail, .resultat-intro, .attention h3, .bloc-detail, .suite-libelle {
  font-family: var(--rond); font-weight: 300; letter-spacing: 0.005em;
}

/* ---------- boutons ---------- */
.btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 60px; padding: 0 32px;
  border: 1px solid var(--charbon); border-radius: 0;
  background: transparent; color: var(--charbon);
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duree) ease, color var(--duree) ease, transform 120ms ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: progress; opacity: 0.72; }
.btn-principal { background: var(--charbon); color: var(--sur-charbon); }
.btn-principal::after {
  content: ''; width: 30px; height: 10px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10'%3E%3Cpath d='M0 5h28.5M24.5 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10'%3E%3Cpath d='M0 5h28.5M24.5 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 420ms var(--courbe);
}
.btn-plein { width: 100%; }
.btn-secondaire { min-height: 52px; padding: 0 24px; }

/* ---------- panneau du portrait ---------- */
.panneau { display: none; }
body[data-ecran="intro"] .panneau { display: block; }
.panneau-scene { position: relative; }
.panneau-arche {
  position: absolute; inset: 0;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: var(--gris);
}
.panneau-photo { position: absolute; inset: 0; }
.panneau-photo img { width: 100%; height: 100%; object-fit: cover; }
.panneau-photo-salon img { object-position: 50% 30%; filter: saturate(0.82) contrast(0.98); }
/* Photo de chaque question (config.js `image`): cadrage en style en ligne (object-position, scale). */
.panneau-calque:not(.panneau-photo-salon) img { transform-origin: 50% 36%; filter: sepia(0.07) saturate(0.9); }
/* Fondu enchaîné: le calque actif monte par-dessus l'ancien, qui reste plein jusqu'à la fin (aucun creux gris). */
.panneau-calque { opacity: 0; }
.panneau-calque.sortant { opacity: 1; z-index: 1; }
.panneau-calque.actif { opacity: 1; z-index: 2; transition: opacity 280ms var(--courbe-douce); }
.panneau-scene::before {
  /* l'arche tracée, en retrait, comme les pastilles de la planche de marque */
  content: ''; position: absolute; inset: -14px -14px 0 -14px;
  border: 1px solid var(--ligne-forte); border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
.panneau-scene::after {
  /* ligne de sol */
  content: ''; position: absolute; bottom: 0; left: -22%; right: -22%; height: 1px;
  background: var(--ligne-forte);
}
.panneau-numero {
  position: absolute; z-index: 2;
  font-family: var(--serif); font-weight: 400; font-variation-settings: 'opsz' 96;
  line-height: 0.8; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px var(--charbon);
  pointer-events: none; user-select: none;
}
.panneau-numero:empty, .panneau-script:empty, .panneau-legende:empty { display: none; }
.panneau-numero-entree { animation: chiffre 900ms var(--courbe) both; }
.panneau-script {
  position: absolute; z-index: 2; margin: 0;
  font-family: var(--script); font-weight: 400; color: var(--charbon);
  line-height: 1; transform: rotate(-9deg); white-space: nowrap;
}
body:not([data-ecran="intro"]) .panneau-script { display: none; }
/* « Caro » tracé dans la police de son logo: la taille suit le font-size de son conteneur. */
.signature-image { display: block; height: 1.1em; width: auto; }
.panneau-legende { position: absolute; color: var(--taupe-texte); white-space: nowrap; }

/* téléphone: le portrait n'existe qu'à l'accueil, une arche compacte */
@media (max-width: 1023.98px) {
  .panneau { position: relative; }
  .panneau-scene {
    width: min(46vw, 210px); aspect-ratio: 400 / 520;
    margin: 30px 0 0 calc(var(--g) + 14px);
  }
  .panneau-scene::after { left: -14px; right: -60%; }
  .panneau-script { left: 62%; bottom: 21%; font-size: clamp(3.2rem, 15vw, 4.4rem); }
  .panneau-legende {
    left: calc(var(--g) + 14px + min(46vw, 210px) + 22px); bottom: 10px;
    font-size: 10.5px; letter-spacing: 0.22em; white-space: normal; width: 9em;
  }
  .panneau-numero { display: none; }
}

/* ---------- vues: entrée et sortie ---------- */
.ecran { display: block; }
.vue > *, .intro-int > *, .contact-corps > *, .choix-liste > li {
  animation: entree 640ms var(--courbe) both;
}
.vue > .etape-compteur { animation: none; }
.intro-int > :nth-child(2) { animation-delay: 70ms; }
.intro-int > :nth-child(3) { animation-delay: 140ms; }
.intro-int > :nth-child(4) { animation-delay: 210ms; }
.intro-int > :nth-child(n+5) { animation-delay: 280ms; }
.vue-question .question-corps { animation-delay: 60ms; }
.choix-liste { animation: none !important; }
.choix-liste > li { animation-delay: calc(130ms + var(--rang, 0) * 55ms); }
.vue-contact .formulaire { animation-delay: 120ms; }
.vue-sortie .question-corps { opacity: 0.4; transition: opacity 200ms ease; }
.vue-sortie .choix:not(.choisi) { opacity: 0.38; transition: opacity 200ms ease; }

@keyframes entree { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
@keyframes chiffre { from { opacity: 0; transform: translate3d(0, 18px, 0); } }

/* ---------- accueil ---------- */
.vue-intro { padding: 26px var(--g) 40px; }
.intro-int { display: flex; flex-direction: column; gap: 18px; max-width: 34rem; }
.vue-intro h1 {
  font-size: clamp(1.6rem, 6.9vw, 2.1rem);
  line-height: 1.12;
}
.vue-intro h1 em { color: var(--charbon); }
.intro-promesse {
  font-size: 1.28rem; line-height: 1.42; color: var(--charbon-doux);
  max-width: 28ch;
}
.intro-action { padding-top: 6px; }
.intro-action .btn { width: 100%; }
.vue-intro { padding-top: 16px; }
.vue-intro .intro-int { gap: 14px; }
.reperes {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne);
  margin-top: 8px;
}
.reperes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reperes li { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px 14px 0; }
.reperes li + li { padding-left: 16px; border-left: 1px solid var(--ligne); }
.repere-chiffre {
  font-family: var(--serif); font-style: italic; font-size: 2rem; line-height: 1; color: var(--charbon);
}
.repere-mot { color: var(--taupe-texte); font-size: 10.5px; letter-spacing: 0.22em; }
.intro-detail { color: var(--charbon-doux); font-size: 15.5px; max-width: 44ch; }
.intro-signature { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--taupe-texte); }
.intro-signature strong { font-weight: 500; color: var(--charbon); }

/* ---------- en-tête d'étape ---------- */
.etape-compteur {
  position: absolute; top: 0; right: var(--g);
  height: var(--entete); display: flex; align-items: center; gap: 6px;
  color: var(--taupe-texte); font-family: var(--serif); font-size: 13px; letter-spacing: 0.18em;
  text-transform: none;
}
.etape-compteur-n { color: var(--charbon); }
.etape-compteur-sep { color: var(--taupe); }
.etape-entete {
  display: grid; grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 14px; row-gap: 12px; align-items: center;
}
.etape-portrait {
  grid-row: 1 / span 2; width: 46px; height: 60px;
  border-radius: 999px 999px 0 0; overflow: hidden; background: var(--gris);
  position: relative;
}
.etape-portrait picture, .etape-portrait img { width: 100%; height: 100%; }
.etape-portrait img { object-fit: cover; object-position: 50% 30%; filter: sepia(0.07) saturate(0.92); }
.etape-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.etape-compte { color: var(--taupe-texte); letter-spacing: 0.2em; }
.etape-sep { display: none; }
.etape-categorie {
  display: block; margin-top: 3px;
  font-family: var(--rond); font-weight: 300; font-size: 15px; letter-spacing: 0.01em; text-transform: none;
  color: var(--taupe-texte);
}
.etape-compte span:first-child { color: var(--charbon); }
.retour {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  min-height: 44px; padding: 0 0 0 10px; margin-right: -2px;
  border: 0; background: none; color: var(--taupe-texte); cursor: pointer;
}
.retour-fleche {
  width: 16px; height: 8px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8'%3E%3Cpath d='M16 4H1.5M4.5 1l-3 3 3 3' fill='none' stroke='black' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8'%3E%3Cpath d='M16 4H1.5M4.5 1l-3 3 3 3' fill='none' stroke='black' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 300ms var(--courbe);
}
.progression { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; height: 2px; }
.progression-segment { background: var(--ligne); transform-origin: left center; }
.progression-segment.fait { background: var(--charbon); }
.progression-segment.courant { animation: segment 700ms var(--courbe) 120ms both; }
@keyframes segment { from { transform: scaleX(0); } }

/* ---------- question ---------- */
.vue-question, .vue-contact { padding: 6px var(--g) 28px; }
.question-corps { position: relative; isolation: isolate; margin-top: 26px; }
.question-numero {
  position: absolute; z-index: -1; right: -4px; top: -2px;
  font-family: var(--serif); font-variation-settings: 'opsz' 96;
  font-size: 7.2rem; line-height: 0.8; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px #c4bcb5;
  user-select: none;
}
.vue-question h1 {
  font-size: clamp(1.3rem, 5.7vw, 1.55rem); line-height: 1.18;
  max-width: 20ch; text-wrap: balance;
}
.choix-liste { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.choix {
  -webkit-appearance: none; appearance: none;
  display: grid; grid-template-columns: 30px minmax(0, 1fr) 22px; align-items: center; gap: 14px;
  width: 100%; min-height: 54px; padding: 10px 14px;
  border: 1px solid var(--ligne); border-radius: 0;
  background: rgba(252, 251, 249, 0.72);
  text-align: left; cursor: pointer;
  transition: border-color var(--duree) ease, background-color var(--duree) ease;
}
.choix-lettre {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 1px solid var(--ligne-forte);
  font-family: var(--serif); font-size: 14px; line-height: 1; color: var(--charbon);
  transition: background-color var(--duree) ease, color var(--duree) ease, border-color var(--duree) ease;
}
.choix-texte { font-size: 16.5px; line-height: 1.35; color: var(--charbon); }
.choix-fleche {
  width: 20px; height: 10px; background: var(--charbon); justify-self: end;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5h18.5M14.5 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5h18.5M14.5 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0; transform: translate3d(-8px, 0, 0);
  transition: opacity 260ms ease, transform 420ms var(--courbe);
}
.choix.choisi { border-color: var(--charbon); background: var(--blanc); box-shadow: inset 0 0 0 1px var(--charbon); }
.choix.choisi .choix-lettre { background: var(--charbon); border-color: var(--charbon); color: var(--sur-charbon); }
.choix.choisi .choix-fleche { opacity: 1; transform: none; }
.choix:active { background: var(--blanc); }

/* ---------- coordonnées ---------- */
.contact-corps { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.vue-contact h1 { font-size: clamp(1.4rem, 6.2vw, 1.8rem); line-height: 1.16; text-wrap: balance; }
.contact-detail { color: var(--charbon-doux); font-size: 17px; line-height: 1.5; max-width: 38ch; }
.formulaire { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; max-width: 34rem; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ > label:not(.case) { color: var(--taupe-texte); font-size: 11px; }
.champ input:not([type="checkbox"]) {
  -webkit-appearance: none; appearance: none;
  width: 100%; min-height: 50px; padding: 10px 2px 9px;
  border: 0; border-bottom: 1px solid var(--ligne-forte); border-radius: 0;
  background: transparent; color: var(--charbon);
  font-family: var(--sans); font-size: 18px; letter-spacing: 0.005em;
  transition: border-color var(--duree) ease, box-shadow var(--duree) ease;
}
.champ input::placeholder { color: #6f6964; opacity: 1; }
.champ input:not([type="checkbox"]):focus { outline: none; border-bottom-color: var(--charbon); box-shadow: 0 1px 0 var(--charbon); }
.champ input:not([type="checkbox"]):focus-visible { outline: none; }
.champ input[aria-invalid="true"] { border-bottom-color: var(--rouge); box-shadow: 0 1px 0 var(--rouge); }
.champ-erreur { color: var(--rouge); font-size: 13.5px; line-height: 1.45; }
.champ-erreur::before { content: ''; display: inline-block; width: 14px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 8px; }

.champ-case { gap: 10px; padding-top: 4px; }
.case { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: start; cursor: pointer; }
.case input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.case-boite {
  width: 24px; height: 24px; border: 1px solid var(--charbon); background: var(--blanc);
  display: grid; place-items: center; transition: background-color var(--duree) ease;
}
.case-boite::after {
  content: ''; width: 11px; height: 6px; margin-top: -3px;
  border-left: 1.5px solid var(--sur-charbon); border-bottom: 1.5px solid var(--sur-charbon);
  transform: rotate(-45deg) scale(0.6); opacity: 0;
  transition: opacity 160ms ease, transform 260ms var(--courbe);
}
.case input:checked + .case-boite { background: var(--charbon); }
.case input:checked + .case-boite::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.case input:focus-visible + .case-boite { outline: 2px solid var(--charbon); outline-offset: 3px; }
.case input[aria-invalid="true"] + .case-boite { border-color: var(--rouge); box-shadow: 0 0 0 1px var(--rouge); }
.case-texte { font-size: 14.5px; line-height: 1.55; color: var(--charbon); }
.case-note { padding-left: 38px; font-size: 13px; line-height: 1.5; color: var(--taupe-texte); }
.case-note a { color: var(--charbon); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.envoi-erreur {
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border: 1px solid var(--rouge); background: var(--blanc);
  color: var(--charbon); font-size: 14.5px; line-height: 1.55;
}
.resume-erreur { color: var(--rouge); font-size: 14px; font-weight: 500; }
.formulaire-action { padding-top: 4px; }

/* ---------- résultat ---------- */
.resultat-tete { background: var(--charbon); color: var(--sur-charbon); }
.resultat-tete-int {
  display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 18px; align-items: start;
  padding: 34px var(--g) 38px;
}
.resultat-tete .surtitre { color: var(--sur-charbon-doux); }
.resultat-tete h1 {
  margin-top: 16px; color: var(--sur-charbon);
  font-size: clamp(1.35rem, 6.6vw, 1.95rem); line-height: 1.16; text-wrap: balance;
}
.resultat-tete h1 em { display: inline-block; }
.puces { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; }
.puces li {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--sur-charbon-doux); font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
}
.puces li::before { content: ''; width: 5px; height: 5px; border: 1px solid currentColor; transform: rotate(45deg); }
.resultat-intro { margin-top: 18px; color: var(--sur-charbon-doux); font-size: 17px; line-height: 1.5; max-width: 34ch; }
.resultat-portrait {
  position: relative; width: 92px; aspect-ratio: 3 / 4; margin-top: 2px;
  border-radius: 999px 999px 0 0; overflow: hidden; background: var(--gris);
}
.resultat-portrait picture, .resultat-portrait img { width: 100%; height: 100%; }
.resultat-portrait img { object-fit: cover; object-position: 47% 24%; transform: scale(1.22); transform-origin: 50% 36%; filter: sepia(0.07) saturate(0.92); }

.resultat-corps { padding: 8px var(--g) 40px; }

/* Jauge du niveau, sur le charbon de l'en-tête: 3 traits, l'étape active plus épaisse avec le losange des puces. */
.jauge { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 26px; max-width: 420px; }
.jauge-etape { display: flex; flex-direction: column; gap: 14px; }
.jauge-trait { position: relative; display: block; height: 1px; margin-block: 1px; background: var(--sur-charbon-doux); }
.jauge-actif .jauge-trait { height: 3px; margin-block: 0; background: var(--sur-charbon); }
.jauge-actif .jauge-trait::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
  border: 1px solid var(--sur-charbon); background: var(--charbon);
  transform: translate(-50%, -50%) rotate(45deg);
}
.jauge-libelle {
  font-family: var(--rond); font-size: 12px; font-weight: 300; line-height: 1.3;
  letter-spacing: 0.2em; text-transform: uppercase; text-align: center; color: var(--sur-charbon-doux);
}
.jauge-actif .jauge-libelle { color: var(--sur-charbon); font-weight: 500; }

/* Ce qui mérite votre attention: la pièce (avec sa photo) puis l'inquiétude. */
.bloc-attention { padding-top: 34px; }
.attentions { margin-top: 6px; }
.attention {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr);
  padding: 30px 0 34px; border-bottom: 1px solid var(--ligne);
}
.attention-photo { margin: 0 0 24px; }
.attention-photo img { width: 100%; aspect-ratio: 310 / 244; object-fit: cover; }
.attention-photo figcaption { margin-top: 10px; color: var(--taupe-texte); font-size: 10.5px; }
.attention-etiquette { display: flex; align-items: center; gap: 12px; color: var(--taupe-texte); }
.attention-etiquette::before { content: ''; width: 24px; height: 1px; background: currentColor; flex: none; }
.attention h3 { margin-top: 12px; font-size: clamp(1.4rem, 6vw, 1.65rem); font-weight: 400; line-height: 1.24; text-wrap: balance; }
.attention-corps > p { margin-top: 14px; color: var(--charbon-doux); font-size: 15.5px; line-height: 1.7; max-width: 60ch; }

.pont-bloc { padding: 46px 0 40px; }
.pont {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 6vw, 1.75rem); line-height: 1.38;
  color: var(--charbon); max-width: 32ch; text-wrap: pretty;
}
.pont-signature {
  margin-top: 6px; margin-left: 38%;
  font-family: var(--script); font-size: 3.6rem; line-height: 1; color: var(--charbon);
  transform: rotate(-6deg); transform-origin: left center;
}

.bloc-preuve, .bloc-suites { padding-top: 40px; border-top: 1px solid var(--ligne); }
.bloc-attention h2, .bloc-preuve h2, .bloc-suites h2 { font-size: clamp(1.25rem, 5.5vw, 1.55rem); line-height: 1.18; max-width: 22ch; }
.preuve-grille { display: grid; gap: 34px; margin-top: 26px; }
.video { margin: 0; max-width: 260px; }
.video video {
  display: block; width: 100%; aspect-ratio: 9 / 16; background: var(--charbon); object-fit: cover;
}
.video figcaption { margin-top: 12px; color: var(--taupe-texte); font-size: 10.5px; }
.citations-titre { font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: var(--chasse); text-transform: uppercase; color: var(--taupe-texte); }
.citations { display: flex; flex-direction: column; gap: 30px; margin-top: 20px; }
.citation { position: relative; margin: 0; padding-top: 26px; border-top: 1px solid var(--ligne); }
.citation-guillemet { display: none; }
.citation blockquote { margin: 0; padding-left: 0.6em; }
.citation blockquote p {
  font-family: var(--serif); font-style: italic; font-size: 1.28rem; line-height: 1.48; color: var(--charbon);
  text-indent: -0.62em; /* le « ouvrant pend dans la marge */
}
.citation figcaption { margin-top: 16px; color: var(--taupe-texte); display: flex; align-items: center; gap: 12px; }
.citation figcaption::before { content: ''; width: 24px; height: 1px; background: currentColor; }

.bloc-suites { margin-top: 48px; }
.bloc-detail { margin-top: 12px; color: var(--charbon-doux); font-size: 17px; }
.suites { display: grid; gap: 12px; margin-top: 24px; }
.suite {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 46px; column-gap: 18px; row-gap: 8px;
  align-items: start; padding: 24px 20px 24px 22px;
  border: 1px solid var(--ligne-forte); background: var(--blanc); color: var(--charbon); text-decoration: none;
  transition: border-color var(--duree) ease, background-color var(--duree) ease;
}
.suite-badge {
  grid-column: 1 / -1; justify-self: start; margin-bottom: 6px;
  padding: 6px 10px 5px; border: 1px solid var(--sur-charbon-doux); color: var(--sur-charbon);
  font-size: 10px; letter-spacing: 0.24em;
}
.suite-libelle { font-size: 1.32rem; font-weight: 400; line-height: 1.28; grid-column: 1; }
.suite-detail { grid-column: 1; font-size: 14.5px; line-height: 1.55; color: var(--charbon-doux); }
.suite-fleche {
  grid-column: 2; grid-row: span 2; align-self: center;
  display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid currentColor; border-radius: 50%;
}
.suite-recommandee .suite-fleche { grid-row: 2 / span 2; }
.suite-fleche span {
  width: 18px; height: 9px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5h18.5M14.5 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5h18.5M14.5 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 420ms var(--courbe);
}
.suite-recommandee { background: var(--charbon); border-color: var(--charbon); color: var(--sur-charbon); }
.suite-recommandee .suite-detail { color: var(--sur-charbon-doux); }

/* ---------- pied ---------- */
.pied { padding: 30px var(--g) 40px; }
.pied a { color: var(--taupe-texte); text-decoration: none; font-size: 10.5px; border-bottom: 1px solid var(--ligne-forte); padding-bottom: 3px; }

.noscript { max-width: 34rem; padding: 40px var(--g); display: flex; flex-direction: column; gap: 16px; }

/* ---------- survol: souris seulement (testé) ---------- */
@media (hover: hover) {
  .btn-principal:hover { background: #1f1d1c; }
  .btn-principal:hover::after { transform: translate3d(5px, 0, 0); }
  .btn-secondaire:hover { background: var(--charbon); color: var(--sur-charbon); }
  .retour:hover { color: var(--charbon); }
  .retour:hover .retour-fleche { transform: translate3d(-4px, 0, 0); }
  .choix:hover { border-color: var(--taupe); background: var(--blanc); }
  .choix:hover .choix-lettre { border-color: var(--charbon); }
  .choix:hover .choix-fleche { opacity: 1; transform: none; }
  .suite:hover { border-color: var(--charbon); }
  .suite:hover .suite-fleche span { transform: translate3d(4px, 0, 0); }
  .suite-recommandee:hover { background: #262422; }
  .pied a:hover, .case-note a:hover { color: var(--charbon); }
}

/* ---------- très petits téléphones ---------- */
@media (max-width: 359.98px) {
  :root { --g: 16px; }
  .reperes li { padding-right: 12px; }
  .reperes li + li { padding-left: 12px; }
  .choix { gap: 12px; padding-inline: 12px; }
}

/* ---------- tablette ---------- */
@media (min-width: 640px) and (max-width: 1023.98px) {
  :root { --g: 40px; }
  .vue-intro, .vue-question, .vue-contact { max-width: 640px; }
  .resultat-tete-int, .resultat-corps { max-width: 760px; margin-inline: auto; }
}

/* ---------- grand écran: portrait à gauche, contenu à droite ---------- */
@media (min-width: 1024px) {
  :root { --g: 48px; --entete: 96px; }
  .entete { position: absolute; top: 0; left: 0; right: 0; }
  .entete-logo { height: 40px; }
  body[data-ecran="resultat"] .entete { position: relative; }
  body[data-ecran="resultat"] .entete-int { max-width: 1280px; margin-inline: auto; }

  body:not([data-ecran="resultat"]) { padding-left: var(--panneau); }
  body:not([data-ecran="resultat"]) .panneau {
    display: grid; place-items: center;
    position: fixed; top: 0; bottom: 0; left: 0; width: var(--panneau);
    background:
      var(--grain),
      radial-gradient(60% 45% at 50% 42%, rgba(252, 251, 249, 0.9), rgba(252, 251, 249, 0) 70%),
      linear-gradient(180deg, var(--lin-chaud), #e7e2dc);
    background-color: var(--lin-chaud);
  }
  .panneau-scene { width: min(60%, 400px); aspect-ratio: 400 / 548; margin-top: 3vh; }
  .panneau-numero { left: -26%; bottom: -8%; font-size: clamp(10rem, 15vw, 15.5rem); }
  .panneau-script { left: 58%; bottom: 7%; font-size: clamp(4.4rem, 6vw, 6rem); }
  .panneau-legende { left: var(--g); bottom: 40px; font-size: 11px; }

  .bandeau-demo {
    position: fixed; z-index: 4; bottom: 0; right: 0; left: var(--panneau);
    padding: 10px var(--g); text-align: right;
  }
  body[data-ecran="resultat"] .bandeau-demo { position: static; text-align: left; }
  body[data-ecran="resultat"] .bandeau-demo { padding-inline: max(var(--g), calc((100% - 1280px) / 2 + var(--g))); }
  body:has(#bandeauDemo:not([hidden])):not([data-ecran="resultat"]) { padding-bottom: 40px; }

  .vue-intro, .vue-question, .vue-contact {
    min-height: 100dvh; display: flex; flex-direction: column; justify-content: center;
    padding: 132px clamp(48px, 7vw, 128px) 84px;
  }
  .vue-question, .vue-contact { max-width: 860px; }
  .intro-int { gap: 22px; max-width: 36rem; }
  .vue-intro h1 { font-size: clamp(2.3rem, 0.85rem + 2.35vw, 3.2rem); line-height: 1.1; }
  .intro-promesse { font-size: 1.5rem; max-width: 28ch; }
  .intro-action { padding-top: 10px; }
  .intro-action .btn { width: auto; min-width: 280px; }
  .reperes { margin-top: 14px; grid-template-columns: repeat(3, auto); }
  .reperes li { flex-direction: row; align-items: baseline; gap: 10px; padding: 18px 28px 18px 0; }
  .reperes li + li { padding-left: 28px; }
  .repere-chiffre { font-size: 2.5rem; }

  .etape-compteur { top: 0; right: var(--g); height: var(--entete); font-size: 14px; }
  .etape-entete { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .etape-portrait, .question-numero { display: none; }
  .etape-sep { display: inline; }
  .etape-categorie { display: inline; margin: 0; font-family: var(--sans); font-style: normal; font-size: inherit; letter-spacing: inherit; text-transform: inherit; }
  .question-corps { margin-top: 44px; }
  .vue-question h1 { font-size: clamp(1.85rem, 0.75rem + 1.75vw, 2.55rem); line-height: 1.14; max-width: 22ch; }
  .choix-liste { gap: 10px; margin-top: 40px; }
  .choix { min-height: 66px; padding: 14px 22px 14px 18px; gap: 20px; grid-template-columns: 32px minmax(0, 1fr) 24px; }
  .choix-lettre { width: 32px; height: 32px; }
  .choix-texte { font-size: 17px; }

  .contact-corps { margin-top: 40px; }
  .vue-contact h1 { font-size: clamp(1.85rem, 0.75rem + 1.75vw, 2.55rem); }
  .formulaire { margin-top: 36px; gap: 24px; }

  .pied { padding: 0 var(--g) 36px; }
  body:not([data-ecran="resultat"]) .pied { position: absolute; bottom: 0; right: 0; left: var(--panneau); text-align: right; }
  body:has(#bandeauDemo:not([hidden])):not([data-ecran="resultat"]) .pied { bottom: 40px; }

  /* résultat */
  .resultat-tete-int {
    max-width: 1280px; margin-inline: auto;
    grid-template-columns: minmax(0, 1fr) 300px; gap: 80px; align-items: end;
    padding: 80px var(--g) 0;
  }
  .resultat-tete-texte { padding-bottom: 72px; }
  .resultat-tete h1 { font-size: clamp(2.4rem, 1.1rem + 2.2vw, 3.6rem); line-height: 1.12; margin-top: 22px; }
  .resultat-intro { font-size: 19px; }
  .resultat-portrait { width: 300px; margin: 0 0 -72px; }
  .resultat-portrait::after {
    content: ''; position: absolute; inset: 12px; border: 1px solid rgba(247, 247, 245, 0.55);
    border-bottom: 0; border-radius: 999px 999px 0 0;
  }
  .resultat-corps { max-width: 1280px; margin-inline: auto; padding: 96px var(--g) 64px; }
  .jauge { max-width: 480px; gap: 8px; margin-top: 34px; }
  .jauge-libelle { font-size: 13px; }
  .resultat-intro { max-width: 42ch; }
  .bloc-attention { padding-top: 0; }
  .bloc-attention h2 { font-size: clamp(1.7rem, 0.85rem + 1.2vw, 2.2rem); max-width: none; }
  .attentions { margin-top: 16px; }
  .attention { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); column-gap: 64px; align-items: start; padding: 52px 0 56px; }
  .attention-avec-photo { grid-template-rows: auto 1fr; }
  .attention-avec-photo .attention-photo { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .attention-avec-photo .attention-etiquette, .attention-avec-photo .attention-corps { grid-column: 2; }
  .attention:not(.attention-avec-photo) .attention-etiquette { grid-column: 1; grid-row: 1; margin-top: 20px; }
  .attention:not(.attention-avec-photo) .attention-corps { grid-column: 2; grid-row: 1; }
  .attention h3 { font-size: clamp(1.8rem, 1.1rem + 1.1vw, 2.3rem); }
  .attention-corps > p { font-size: 16.5px; }

  .pont-bloc { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; padding: 72px 0 64px; }
  .pont { font-size: clamp(1.8rem, 1rem + 1.3vw, 2.3rem); max-width: 34ch; }
  .pont-signature { margin: 0 40px 6px 0; font-size: 5rem; }

  .bloc-preuve, .bloc-suites { padding-top: 64px; }
  .bloc-preuve h2, .bloc-suites h2 { font-size: clamp(1.7rem, 0.85rem + 1.2vw, 2.2rem); max-width: none; }
  .bloc-detail { font-size: 18px; }
  .preuve-grille { grid-template-columns: 320px minmax(0, 1fr); gap: 88px; margin-top: 40px; align-items: start; }
  .video { max-width: none; }
  .citation blockquote p { text-indent: -0.6em; }
  .citations { gap: 40px; margin-top: 26px; }
  .citation blockquote p { font-size: 1.5rem; }
  .bloc-suites { margin-top: 80px; }
  .suites { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
  .suites li:first-child { grid-column: 1 / -1; }
  .suites li:first-child .suite { padding: 40px 40px 40px 44px; }
  .suites li:first-child .suite-libelle { font-size: 1.85rem; }
  .suite { padding: 32px 30px 32px 34px; height: 100%; }
  .suite-libelle { font-size: 1.45rem; }
  .pied { text-align: left; }
  body[data-ecran="resultat"] .pied { max-width: 1280px; margin-inline: auto; }
}

/* ---------- mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .atmosphere-lumiere, .atmosphere-poussiere { display: none; }
}

/* Téléphone à fenêtre basse (iPhone SE, navigateur intégré Facebook): arche réduite pour que la question 1 de l'accueil tienne sans défiler (30-10). */
@media (max-width: 1023.98px) and (max-height: 740px) {
  .panneau-scene { width: min(32vw, 150px); }
  .panneau-legende { left: calc(var(--g) + 14px + min(32vw, 150px) + 22px); }
}
