@font-face { font-family: "Alfa Slab One"; src: url("/fonts/alfa-slab-one.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* Palette tirée de la cuisine du Bouffon : placards verts, costume rouge, pois moutarde, nappe à carreaux */
:root {
  --nuit: #17302a;          /* vert sombre des placards le soir */
  --placard: #24473d;       /* vert placard */
  --placard-clair: #335c4f;
  --papier: #fff7e8;        /* cartes */
  --papier-2: #f6e9cf;
  --rouge: #e24a25;         /* costume */
  --rouge-fonce: #b9351a;
  --moutarde: #e8ab3a;      /* pois et grelots */
  --moutarde-clair: #f6d48a;
  --encre: #1d1612;
  --encre-douce: #5a4a3f;
  --bois: #6b3d1e;
  --rayon: 18px;
  --gouttiere: clamp(16px, 4vw, 48px);
  --section: clamp(56px, 9vw, 112px);
  --titre: "Alfa Slab One", Georgia, serif;
  --texte: "Atkinson", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nuit); color: var(--papier); font-family: var(--texte); font-size: 1.0625rem; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.vis { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Barre du haut */
.barre { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gouttiere); }
.marque { display: inline-flex; align-items: center; gap: 10px; font-family: var(--titre); font-size: 1.1rem; text-decoration: none; color: var(--papier); }
.marque img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--moutarde); }
.langue { display: flex; gap: 4px; font-weight: 700; font-size: .9rem; }
.langue a { text-decoration: none; padding: 6px 10px; border-radius: 999px; color: var(--papier); opacity: .7; }
.langue a[aria-current] { background: var(--papier); color: var(--nuit); opacity: 1; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 1.125rem/1.2 var(--texte); text-decoration: none; cursor: pointer;
  background: var(--rouge); color: #fff; border: 0; border-radius: 999px;
  padding: 18px 30px; box-shadow: 0 5px 0 var(--rouge-fonce), 0 10px 24px rgba(0,0,0,.25);
  transition: transform .12s ease, box-shadow .12s ease;
}
.bouton:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--rouge-fonce), 0 14px 28px rgba(0,0,0,.28); }
.bouton:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--rouge-fonce); }
.bouton.clair { background: var(--papier); color: var(--encre); box-shadow: 0 5px 0 #cdbb98; }
.bouton.petit { font-size: 1rem; padding: 13px 22px; }
:focus-visible { outline: 3px solid var(--moutarde); outline-offset: 3px; }

/* Grelots : la signature (12 questions = 12 grelots) */
.grelots { display: flex; gap: clamp(4px, 1.2vw, 10px); justify-content: center; flex-wrap: nowrap; }
.grelot {
  --t: clamp(18px, 5.2vw, 30px);
  width: var(--t); height: var(--t); border-radius: 50%; position: relative; flex: none;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), transparent 45%), var(--placard-clair);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25);
  transition: background .25s ease, transform .25s ease;
}
.grelot::after { content: ""; position: absolute; left: 50%; bottom: 22%; width: 46%; height: 12%; transform: translateX(-50%); border-radius: 4px; background: rgba(0,0,0,.35); }
.grelot[data-niveau="0"] { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.5), transparent 45%), #c9c1ae; }
.grelot[data-niveau="1"] { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.5), transparent 45%), var(--moutarde-clair); }
.grelot[data-niveau="2"] { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.5), transparent 45%), var(--moutarde); }
.grelot[data-niveau="3"] { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.45), transparent 45%), var(--rouge); }
.grelot.actuel { transform: scale(1.18); box-shadow: 0 0 0 3px var(--papier), inset 0 -3px 0 rgba(0,0,0,.25); }
@keyframes tinte { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
.grelot.tinte { animation: tinte .35s ease; }

/* Accueil */
.hero {
  min-height: 100svh; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: clamp(24px, 5vw, 72px); padding: 92px var(--gouttiere) 48px; max-width: 1280px; margin: 0 auto;
}
.surtitre { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--moutarde); margin-bottom: 14px; }
.hero h1 { color: var(--papier); }
.hero h1 em { font-style: normal; color: var(--moutarde); }
.chapo { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 34rem; color: #e9dfca; margin-bottom: 28px; }
.rassure { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: .95rem; color: #d9cfb9; }
.rassure li::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--moutarde); margin-right: 8px; vertical-align: 1px; }

.tele { position: relative; justify-self: center; width: min(100%, 470px); padding: 18px 18px 54px; border-radius: 34px; background: linear-gradient(160deg, #7c4a26, var(--bois)); box-shadow: inset 0 0 0 3px rgba(0,0,0,.25), 0 30px 60px rgba(0,0,0,.35); }
.tele img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; box-shadow: inset 0 0 40px rgba(0,0,0,.4); }
.tele::before, .tele::after { content: ""; position: absolute; bottom: 16px; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e6c27a, #8a5a1c); }
.tele::before { right: 34px; } .tele::after { right: 66px; }
.tele .bulle {
  position: absolute; left: -28px; bottom: 82px; max-width: 250px; background: var(--papier); color: var(--encre);
  font-family: var(--titre); font-size: 1.05rem; line-height: 1.2; padding: 14px 16px; border-radius: 16px 16px 16px 4px;
  box-shadow: 0 10px 24px rgba(0,0,0,.3);
}

/* Bande nappe à carreaux : une seule fois, sous l'accueil */
.nappe { height: 26px; background-color: #f5ece0; background-image: linear-gradient(45deg, rgba(201,52,47,.85) 25%, transparent 25%, transparent 75%, rgba(201,52,47,.85) 75%), linear-gradient(45deg, rgba(201,52,47,.85) 25%, transparent 25%, transparent 75%, rgba(201,52,47,.85) 75%); background-size: 26px 26px; background-position: 0 0, 13px 13px; opacity: .9; }

/* Ce que montre le test */
.apercu { background: var(--papier); color: var(--encre); }
.apercu .dedans { min-height: 100svh; max-width: 1180px; margin: 0 auto; padding: var(--section) var(--gouttiere); display: flex; flex-direction: column; justify-content: center; }
.apercu h2 { max-width: 22ch; }
.trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 36px 0 40px; }
.tuile { background: #fff; border-radius: var(--rayon); padding: 26px; box-shadow: 0 2px 0 #eadcc0, 0 14px 30px rgba(60,40,10,.08); }
.tuile .icone { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--papier-2); margin-bottom: 16px; }
.tuile .icone svg { width: 30px; height: 30px; }
.tuile p { color: var(--encre-douce); margin: 0; }
.exemple-grelots { display: flex; gap: 6px; margin-top: 4px; }
.exemple-grelots .grelot { --t: 18px; }
.citation { font-family: var(--titre); font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.25; color: var(--placard); max-width: 32ch; margin: 0 0 28px; }

/* Test */
.ecran { min-height: 100svh; display: grid; place-items: center; padding: 84px var(--gouttiere) 32px; }
.carte { width: min(680px, 100%); background: var(--papier); color: var(--encre); border-radius: 26px; padding: clamp(22px, 5vw, 44px); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.test .grelots { margin-bottom: 22px; }
.compteur { text-align: center; font-weight: 700; color: var(--encre-douce); font-size: .95rem; margin: 0 0 18px; }
.phrase { font-family: var(--titre); font-size: clamp(1.6rem, 4.6vw, 2.4rem); line-height: 1.12; text-align: center; margin: 0 0 14px; outline: none; color: var(--placard); }
.contexte { text-align: center; color: var(--encre-douce); font-size: 1.08rem; max-width: 30rem; margin: 0 auto 26px; min-height: 3.1em; }
.reponses { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choix {
  font: 700 1.05rem/1.2 var(--texte); cursor: pointer; padding: 17px 12px; border-radius: 14px;
  background: #fff; color: var(--encre); border: 2px solid #e6d6b6; transition: border-color .12s, background .12s, transform .12s;
}
.choix:hover { border-color: var(--moutarde); transform: translateY(-1px); }
.choix[aria-pressed="true"] { background: var(--moutarde-clair); border-color: var(--moutarde); }
.retour { display: block; margin: 18px auto 0; font: inherit; color: var(--encre-douce); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.retour[disabled] { visibility: hidden; }

/* Résultat */
.resultat { padding: 92px var(--gouttiere) var(--section); max-width: 1120px; margin: 0 auto; }
.verdict { display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; margin-bottom: 44px; }
.verdict img { border-radius: 24px; border: 6px solid var(--bois); box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.score { display: flex; align-items: baseline; gap: 10px; font-family: var(--titre); color: var(--moutarde); margin-bottom: 6px; }
.score b { font-size: clamp(3.4rem, 9vw, 5.6rem); line-height: 1; font-weight: 400; }
.score span { font-size: 1.5rem; color: #d9cfb9; }
.verdict h2 { outline: none; }
.verdict .grelots { justify-content: flex-start; margin: 4px 0 18px; }
.verdict p { color: #e9dfca; max-width: 40rem; }

.bloc { background: var(--papier); color: var(--encre); border-radius: 26px; padding: clamp(22px, 4vw, 40px); margin-bottom: 22px; }
.bloc h3 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-bottom: 18px; }
.techniques { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.technique { border-radius: 16px; background: #fff; padding: 18px 20px; border-left: 6px solid var(--moutarde); }
.technique[data-niveau="3"] { border-left-color: var(--rouge); }
.technique h4 { font-family: var(--titre); font-weight: 400; font-size: 1.15rem; margin: 0 0 6px; }
.technique p { margin: 0 0 8px; color: var(--encre-douce); font-size: 1rem; }
.technique .faire { margin: 0; font-size: 1rem; color: var(--encre); }
.technique .faire b { color: var(--placard); }

.livre-conseil { display: grid; grid-template-columns: 170px 1fr; gap: clamp(18px, 4vw, 36px); align-items: center; }
.couverture { width: 100%; border-radius: 4px 10px 10px 4px; box-shadow: -6px 0 0 rgba(0,0,0,.12) inset, 0 18px 30px rgba(40,20,0,.3); transform: rotate(-3deg); transition: transform .2s ease; }
a:hover > .couverture, .couverture:hover { transform: rotate(0) translateY(-4px); }
.livre-conseil .etiquette { font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rouge-fonce); margin: 0 0 8px; }
.livre-conseil h3 { margin-bottom: 4px; }
.livre-conseil .auteur { font-weight: 700; color: var(--placard); margin-bottom: 12px; }
.livre-conseil .pourquoi { color: var(--encre-douce); }
.liens-livre { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 6px; }
.lien-texte { font-weight: 700; color: var(--placard); }

.aide-urgente { background: var(--rouge); color: #fff; }
.aide-urgente a { font-weight: 700; }
.fin-resultat { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Étagère des livres */
.etagere { background: var(--placard); }
.etagere .dedans { min-height: 100svh; max-width: 1180px; margin: 0 auto; padding: var(--section) var(--gouttiere); display: flex; flex-direction: column; justify-content: center; }
.etagere .intro { color: #d9cfb9; max-width: 40rem; margin-bottom: 40px; font-size: 1.1rem; }
.rayon { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 36px); align-items: end; padding-bottom: 26px; border-bottom: 14px solid var(--bois); box-shadow: 0 10px 0 -4px rgba(0,0,0,.25); }
.livre { text-decoration: none; color: var(--papier); display: flex; flex-direction: column; gap: 14px; }
.livre .couverture { transform: none; }
.livre:nth-child(odd) .couverture { transform: rotate(-2deg); }
.livre:nth-child(even) .couverture { transform: rotate(1.5deg); }
.livre:hover .couverture { transform: translateY(-8px) rotate(0); }
.livre strong { font-family: var(--titre); font-weight: 400; font-size: 1.05rem; line-height: 1.15; }
.livre span { font-size: .95rem; color: #d9cfb9; }
.livre .voir { font-weight: 700; color: var(--moutarde); }
.audible { margin-top: 30px; color: #e9dfca; }
.audible a { color: var(--moutarde); font-weight: 700; }

/* Aide */
.aide { max-width: 1180px; margin: 0 auto; padding: var(--section) var(--gouttiere); }
.aide .intro { color: #d9cfb9; max-width: 40rem; margin-bottom: 30px; }
.numeros { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.numeros li { border: 2px solid var(--placard-clair); border-radius: 16px; padding: 16px 18px; color: #e9dfca; }
.numeros a { display: block; font-family: var(--titre); font-size: 1.6rem; color: var(--papier); text-decoration: none; margin-bottom: 2px; }

/* Pied */
.pied { padding: 28px var(--gouttiere) 40px; text-align: center; color: #b9b09c; font-size: .9rem; border-top: 1px solid var(--placard-clair); }
.pied .grand { font-family: var(--titre); font-size: clamp(2.4rem, 8vw, 5rem); color: var(--moutarde); opacity: .9; margin: 12px 0 18px; }
.pied p { max-width: 48rem; margin: 6px auto; }

/* Pages de texte */
.page-texte { max-width: 46rem; margin: 0 auto; padding: 110px var(--gouttiere) var(--section); }
.page-texte h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-texte h2 { font-size: 1.4rem; margin-top: 2em; color: var(--moutarde); }
.page-texte p { color: #e9dfca; }
.page-texte a { color: var(--moutarde); }

/* Apparitions */
@media (prefers-reduced-motion: no-preference) {
  .apparait { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .apparait.vu { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 980px) {
  .rayon { grid-template-columns: repeat(2, 1fr); row-gap: 40px; border-bottom: 0; box-shadow: none; }
  .numeros { grid-template-columns: repeat(2, 1fr); }
  .techniques { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 76px; gap: 18px; min-height: auto; }
  .hero-texte { order: 2; }
  .tele { order: 1; width: min(78%, 300px); padding: 10px 10px 34px; border-radius: 24px; }
  .tele img { aspect-ratio: 1 / 1; object-position: 50% 15%; border-radius: 16px; }
  .tele::before, .tele::after { width: 14px; height: 14px; bottom: 10px; }
  .tele::before { right: 20px; } .tele::after { right: 42px; }
  .tele .bulle { display: none; }
  .chapo { margin-left: auto; margin-right: auto; margin-bottom: 22px; }
  .rassure { justify-content: center; }
  .trois { grid-template-columns: 1fr; }
  .apercu .dedans, .etagere .dedans { min-height: 0; }
  .verdict { grid-template-columns: 1fr; text-align: center; }
  .verdict img { width: 62%; margin: 0 auto; }
  .verdict .grelots, .score { justify-content: center; }
  .livre-conseil { grid-template-columns: 110px 1fr; align-items: start; }
  .numeros { grid-template-columns: 1fr; }
  .reponses { grid-template-columns: 1fr; }
  .marque span { display: none; }
}
.couverture { height: auto; }
.livre .couverture { max-width: 210px; }
.livre-conseil .couverture { max-width: 170px; }
.tele img { height: auto; }
.pied .grand { margin: 12px auto 18px; }
@media (max-width: 760px) { .tele { width: min(62%, 240px); } .hero h1 { font-size: 2.3rem; } }
.verdict img { height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.techniques > .autres { grid-column: 1 / -1; }
.autres summary { cursor: pointer; font-weight: 700; color: var(--placard); padding: 10px 0; }
.autres .techniques { margin-top: 10px; }
@media (max-width: 760px) {
  .livre-conseil { grid-template-columns: 1fr; text-align: center; }
  .livre-conseil .couverture { max-width: 150px; margin: 0 auto; }
  .livre-conseil h3 { font-size: 1.45rem; }
  .liens-livre { justify-content: center; }
  .liens-livre .bouton { width: 100%; }
}
@media (max-width: 760px) {
  .resultat { padding-top: 76px; }
  .verdict { gap: 10px; margin-bottom: 28px; }
  .verdict img { width: 34%; border-width: 4px; border-radius: 18px; aspect-ratio: 1 / 1; object-position: 50% 10%; }
  .score b { font-size: 3.6rem; }
  .verdict h2 { font-size: 1.9rem; }
}

/* Audible mis en avant (FR) */
.bandeau-audible { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--papier); color: var(--encre); border-radius: 22px; padding: 22px 26px; margin: 0 0 44px; box-shadow: 0 14px 30px rgba(0,0,0,.25); border-left: 8px solid var(--moutarde); }
.bandeau-audible h3 { margin: 0 0 4px; font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.bandeau-audible p { margin: 0 0 4px; color: var(--encre-douce); }
.bandeau-audible .offre { font-weight: 700; color: var(--rouge-fonce); margin: 6px 0 0; }
.bandeau-audible .bouton { flex: none; }
.couverture-cadre { position: relative; display: block; }
.pastille-audio { position: absolute; top: -8px; right: -8px; background: var(--moutarde); color: var(--encre); font-weight: 700; font-size: .78rem; padding: 5px 10px; border-radius: 999px; box-shadow: 0 4px 10px rgba(0,0,0,.25); transform: rotate(4deg); }
.livre .papier { font-size: .92rem; color: #d9cfb9; }
.livre .pour { margin: 0; font-size: .9rem; line-height: 1.4; color: #f1e7cf; }
.livre a.voir { text-decoration: none; }
.liens-livre { flex-direction: column; align-items: flex-start; }
.liens-livre .offre { font-size: .95rem; color: var(--encre-douce); margin: 2px 0 6px; }
.audible-bouton { font-size: 1.1rem; }
@media (max-width: 760px) {
  .bandeau-audible { flex-direction: column; align-items: stretch; text-align: center; padding: 20px; }
  .liens-livre { align-items: stretch; text-align: center; }
  .livre-conseil .couverture-cadre { width: 150px; margin: 0 auto; }
}
.livre .pastille-audio, .pastille-audio { color: var(--encre); top: auto; bottom: 12px; right: -8px; }

/* Accueil des tests */
.hub { min-height: 100svh; max-width: 1180px; margin: 0 auto; padding: 96px var(--gouttiere) 56px; display: flex; flex-direction: column; justify-content: center; }
.hub h1 em { font-style: normal; color: var(--moutarde); }
.hub .chapo { margin-bottom: 34px; }
.cartes-tests { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.carte-test { display: grid; grid-template-columns: 42% 1fr; gap: 0; background: var(--papier); color: var(--encre); border-radius: 26px; overflow: hidden; text-decoration: none; box-shadow: 0 24px 50px rgba(0,0,0,.35); transition: transform .18s ease; }
.carte-test:hover { transform: translateY(-4px); }
.carte-test img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.carte-test > div { padding: 24px 24px 26px; display: flex; flex-direction: column; justify-content: center; }
.carte-test h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); color: var(--placard); margin-bottom: 10px; }
.carte-test p { color: var(--encre-douce); }
.carte-test .bouton { align-self: flex-start; }
.carte-test:first-child { box-shadow: 0 0 0 4px var(--moutarde), 0 24px 50px rgba(0,0,0,.35); }

/* Profil : jauges, point fort, angle mort */
.accroche { font-family: var(--titre); font-size: clamp(1.2rem, 2.6vw, 1.6rem); color: var(--moutarde-clair); margin: -4px 0 18px; }
.jauges { display: grid; gap: 12px; margin: 0 0 20px; max-width: 34rem; }
.jauge { display: grid; grid-template-columns: 110px 1fr 64px; align-items: center; gap: 12px; font-weight: 700; color: #e9dfca; }
.barre-jauge { height: 14px; border-radius: 999px; background: var(--placard-clair); overflow: hidden; }
.barre-jauge i { display: block; height: 100%; border-radius: 999px; background: var(--moutarde); transition: width .8s ease; }
.barre-jauge[data-axe="D"] i { background: var(--rouge); }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.deux-colonnes h3 { margin-bottom: 8px; }
.deux-colonnes p { margin: 0; color: var(--encre-douce); }
.rayon { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .cartes-tests { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .hub { padding-top: 80px; min-height: auto; text-align: center; }
  .carte-test { grid-template-columns: 38% 1fr; text-align: left; }
  .carte-test > div { padding: 16px; }
  .carte-test p { font-size: .95rem; margin-bottom: 10px; }
  .carte-test h2 { font-size: 1.25rem; }
  .deux-colonnes { grid-template-columns: 1fr; }
  .jauge { grid-template-columns: 92px 1fr 56px; font-size: .92rem; text-align: left; }
  .jauges { margin-left: auto; margin-right: auto; }
  .rayon { grid-template-columns: repeat(2, 1fr); }
}

/* Hauteurs : chaque section fait un écran sur ordinateur (mesuré avec shots --plein-ecran) */
@media (min-width: 761px) {
  .hero { height: 100svh; min-height: 0; padding-top: 76px; padding-bottom: 24px; }
  .tele { width: auto; height: min(calc(100svh - 130px), 720px); aspect-ratio: 0.8; display: flex; flex-direction: column; justify-self: center; }
  .tele img { flex: 1; min-height: 0; width: 100%; height: auto; aspect-ratio: auto; object-fit: cover; object-position: 50% 20%; }
  .hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }

  .hub { height: 100svh; min-height: 0; padding-top: 80px; padding-bottom: 32px; }
  .hub h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); margin-bottom: .3em; }
  .hub .chapo { margin-bottom: 24px; }
  .carte-test { max-height: calc(100svh - 330px); min-height: 260px; }

  .apercu .dedans { height: 100svh; min-height: 0; padding-top: 48px; padding-bottom: 48px; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
  .apercu .trois { grid-template-columns: 1fr; gap: 12px; margin: 0; }
  .apercu .tuile { display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; padding: 18px 20px; }
  .apercu .tuile .icone { grid-row: span 2; margin: 0; }
  .apercu .tuile h3 { margin: 0 0 4px; font-size: 1.15rem; }
  .apercu .tuile p { font-size: .98rem; }
  .apercu .tuile .exemple-grelots { grid-column: 2; margin-top: 8px; }

  .etagere .dedans { height: 100svh; min-height: 0; padding-top: 44px; padding-bottom: 36px; }
  .tete-etagere { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: center; margin-bottom: 26px; }
  .tete-etagere h2 { margin-bottom: .25em; }
  .tete-etagere .intro { margin: 0; }
  .bandeau-audible { margin: 0; padding: 16px 20px; gap: 16px; }
  .bandeau-audible h3 { font-size: 1.2rem; }
  .bandeau-audible p { font-size: .95rem; }
  .rayon { grid-template-columns: repeat(6, 1fr); gap: 18px; padding-bottom: 18px; }
  .livre { gap: 6px; }
  .livre .couverture { max-width: 100%; max-height: calc(100svh - 470px); width: auto; margin: 0 auto 6px; }
  .livre strong { font-size: .98rem; }
  .livre span { font-size: .85rem; line-height: 1.35; }
  .livre .papier { font-size: .82rem; }
  .livre .pour { font-size: .8rem; line-height: 1.35; }

  .fin-page { min-height: 100svh; display: flex; flex-direction: column; }
  .fin-page .aide { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 48px; padding-bottom: 32px; width: 100%; }
  .pied { padding-top: 16px; padding-bottom: 24px; }
  .pied .grand { font-size: clamp(2rem, 5vw, 3.4rem); margin: 6px auto 10px; }
}
.etagere.clair { background: var(--papier-2); color: var(--encre); }
.etagere.clair .intro, .etagere.clair .livre span, .etagere.clair .livre .papier, .etagere.clair .livre .pour { color: var(--encre-douce); }
.etagere.clair .livre { color: var(--encre); }
.etagere.clair .livre a.voir { color: var(--rouge-fonce); }
.etagere.clair .rayon { border-bottom-color: var(--bois); }
.fin-page { background: var(--nuit); }
.aide.clair { background: var(--papier); color: var(--encre); max-width: none; }
.aide.clair > * { max-width: 1180px; margin-left: auto; margin-right: auto; width: 100%; }
.aide.clair .intro { color: var(--encre-douce); }
.aide.clair .numeros li { border-color: #e2d3b3; color: var(--encre-douce); background: #fff; }
.aide.clair .numeros a { color: var(--placard); }
@media (min-width: 761px) {
  .livre .couverture { max-height: calc(100svh - 520px); }
  .livre a.voir { font-size: .95rem; white-space: nowrap; }
  .rayon { padding-bottom: 14px; border-bottom-width: 10px; }
}

/* Relecture du 22/11 : contrastes AA, mentions obligatoires */
:root { --rouge: #c93d1d; }
.aide-urgente { background: var(--rouge-fonce); }
.carte :focus-visible, .apercu :focus-visible, .bloc :focus-visible, .bandeau-audible :focus-visible, .carte-test:focus-visible, .etagere.clair :focus-visible, .aide.clair :focus-visible { outline-color: var(--placard); }
.mention-pub { font-size: .82rem; color: var(--encre-douce); margin: 6px 0 0; }
.bandeau-audible .mention-pub { color: var(--encre-douce); font-weight: 400; }
.cadre-img { position: relative; display: block; }
.carte-test .cadre-img { height: 100%; }
.virtuelle { position: absolute; left: 10px; bottom: 10px; background: rgba(23,48,42,.82); color: #fff7e8; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; pointer-events: none; }
.tele .virtuelle { left: 28px; bottom: 64px; }
@media (max-width: 760px) { .tele .virtuelle { left: 16px; bottom: 40px; } }

/* Accueil : 4 tests en 2 × 2 */
.cartes-tests { grid-template-columns: 1fr 1fr; }
@media (min-width: 761px) {
  .hub .chapo { margin-bottom: 18px; }
  .carte-test { max-height: none; min-height: 0; height: calc((100svh - 300px) / 2); grid-template-columns: 34% 1fr; }
  .carte-test > div { padding: 14px 20px; }
  .carte-test h2 { font-size: clamp(1.15rem, 1.9vw, 1.5rem); margin-bottom: 6px; }
  .carte-test p { font-size: .95rem; margin-bottom: 10px; }
}
.carte-test:first-child { box-shadow: 0 0 0 4px var(--moutarde), 0 24px 50px rgba(0,0,0,.35); }
.carte-test:last-child { box-shadow: 0 0 0 4px var(--rouge), 0 24px 50px rgba(0,0,0,.35); }

/* Encart « Va plus loin » */
.upsell { display: flex; align-items: center; justify-content: space-between; gap: 18px; text-decoration: none; border: 3px solid var(--moutarde); }
.upsell h3 { margin-bottom: 6px; }
.upsell p { margin: 0; color: var(--encre-douce); }
.upsell .bouton { flex: none; }

/* Test complet : déblocage */
.bandeau-info { position: sticky; top: 0; z-index: 6; background: var(--moutarde); color: var(--encre); font-weight: 700; padding: 12px var(--gouttiere); text-align: center; }
.carte-teaser h2 { font-size: clamp(2rem, 6vw, 3rem); color: var(--placard); margin-bottom: 4px; outline: none; }
.accroche-teaser { font-family: var(--titre); font-size: 1.25rem; color: var(--rouge-fonce); margin-bottom: 14px; }
.apercu-flou { filter: blur(5px); opacity: .7; pointer-events: none; user-select: none; margin: 10px 0 16px; }
.apercu-flou .jauge { color: var(--encre); }
.apercu-flou .barre-jauge { background: #e8dcc2; }
.sections-rapport { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.sections-rapport li { display: flex; gap: 10px; align-items: center; color: var(--encre); font-weight: 700; }
.sections-rapport svg { color: var(--rouge-fonce); flex: none; }
.consentement { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--encre-douce); margin-bottom: 14px; }
.consentement input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--rouge-fonce); }
.consentement a { color: var(--placard); }
.erreur { color: var(--rouge-fonce); font-weight: 700; margin: 0 0 10px; }
.carte-teaser .bouton { width: 100%; }
.securite { font-size: .85rem; color: var(--encre-douce); text-align: center; margin: 12px 0 0; }

/* Test complet : rapport */
.rapport { max-width: 980px; margin: 0 auto; padding: 88px var(--gouttiere) var(--section); }
.tete-rapport { margin-bottom: 26px; }
.tete-rapport h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); color: var(--papier); margin-bottom: 6px; }
.rapport .bloc h3 { color: var(--placard); }
.jauge-rapport { padding: 12px 0; border-bottom: 1px solid #eadcc0; }
.jauge-rapport:last-child { border-bottom: 0; }
.jauge-rapport .jauge { color: var(--encre); max-width: none; grid-template-columns: 190px 1fr 64px; }
.jauge-rapport .barre-jauge { background: #ebe0c8; }
.jauge-rapport p { margin: 6px 0 0; color: var(--encre-douce); }
.barre-jauge[data-axe="NA"] i, .barre-jauge[data-axe="MA"] i, .barre-jauge[data-axe="PS"] i { background: var(--rouge); }
.barre-jauge[data-axe="VU"] i { background: var(--placard); }
.trois-situations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trois-situations p, .rapport .deux-colonnes p { color: var(--encre-douce); margin: 0; }
.plan { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; color: var(--encre); }
.phrases-fortes { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.phrases-fortes li { color: var(--encre); }
.phrases-fortes b { display: inline-block; min-width: 92px; color: var(--rouge-fonce); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.non-diag { color: #d9cfb9; }
@media (max-width: 760px) {
  .cartes-tests { grid-template-columns: 1fr; }
  .upsell { flex-direction: column; align-items: stretch; text-align: center; }
  .trois-situations { grid-template-columns: 1fr; }
  .jauge-rapport .jauge { grid-template-columns: 1fr 56px; }
  .jauge-rapport .jauge span { grid-column: 1 / -1; }
}

/* PDF du rapport (Imprimer > Enregistrer en PDF) */


/* Accueil v3 : 3 tests gratuits en cartes verticales + bandeau du test complet */
.hub { text-align: center; }
.hub .chapo { margin-left: auto; margin-right: auto; }
.cartes-tests { grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.carte-test, .carte-test:first-child, .carte-test:last-child { display: flex; flex-direction: column; height: auto; max-height: none; min-height: 0; box-shadow: 0 20px 44px rgba(0,0,0,.32); }
.carte-test .cadre-img { height: clamp(120px, 19svh, 190px); }
.carte-test .cadre-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.carte-test .corps { display: flex; flex-direction: column; padding: 16px 18px 18px; flex: 1; }
.carte-test h2 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); margin: 4px 0 6px; }
.carte-test p { font-size: .95rem; margin: 0 0 14px; flex: 1; }
.carte-test .bouton { align-self: stretch; }
.gratuit { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--vert, #4f6b45); color: var(--placard-clair); }
.virtuelle { font-size: .66rem; padding: 2px 7px; left: 8px; bottom: 8px; }
.bandeau-premium { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 20px; margin-top: 20px; text-align: left; text-decoration: none;
  background: linear-gradient(120deg, #fff7e8, #f6e2b8); color: var(--encre); border-radius: 22px; padding: 12px 22px 12px 12px; box-shadow: 0 0 0 3px var(--moutarde), 0 20px 44px rgba(0,0,0,.32); transition: transform .18s ease; }
.bandeau-premium:hover { transform: translateY(-3px); }
.bandeau-premium .cadre-img { height: 96px; border-radius: 14px; overflow: hidden; }
.bandeau-premium .cadre-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.bandeau-premium h2 { font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--placard); margin: 2px 0 4px; }
.bandeau-premium p { margin: 0; color: var(--encre-douce); font-size: .95rem; }
.etiquette-premium { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rouge-fonce); }
@media (min-width: 761px) {
  .hub { padding-top: 78px; padding-bottom: 28px; }
  .hub h1 { margin-bottom: .2em; }
  .hub .chapo { margin-bottom: 22px; }
}
@media (max-width: 980px) and (min-width: 761px) { .cartes-tests { grid-template-columns: repeat(3, 1fr); gap: 12px; } .carte-test p { display: none; } }
@media (max-width: 760px) {
  .cartes-tests { grid-template-columns: 1fr; gap: 12px; }
  .carte-test, .carte-test:first-child, .carte-test:last-child { flex-direction: row; }
  .carte-test .cadre-img { height: auto; width: 34%; flex: none; }
  .carte-test .corps { padding: 12px 14px; }
  .carte-test h2 { font-size: 1.15rem; }
  .carte-test p { font-size: .9rem; margin-bottom: 10px; }
  .bandeau-premium { grid-template-columns: 80px 1fr; padding: 12px; }
  .bandeau-premium .cadre-img { height: 80px; }
  .bandeau-premium .bouton { grid-column: 1 / -1; }
}
.carte-test .cadre-img { height: clamp(110px, 16svh, 170px); }
.carte-test:nth-child(1) .cadre-img img { object-position: 50% 42%; }
.carte-test:nth-child(2) .cadre-img img { object-position: 50% 30%; }
.carte-test:nth-child(3) .cadre-img img { object-position: 50% 35%; }
.carte-test p { margin-bottom: 12px; }
.bandeau-premium { margin-top: 16px; }
.virtuelle { white-space: nowrap; }
@media (min-width: 761px) { .hub .chapo { margin-bottom: 18px; } .cartes-tests { gap: 18px; } .hub { padding-bottom: 36px; } }
@media (max-width: 760px) { .bandeau-premium .virtuelle { font-size: .55rem; left: 4px; bottom: 4px; } }

/* v4 : scènes 4:3 dans des télés en bois, jamais recadrées */
.ecran-tv { position: relative; display: block; padding: 10px 10px 30px; border-radius: 20px 20px 0 0; background: linear-gradient(160deg, #7c4a26, var(--bois)); }
.ecran-tv img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 12px; box-shadow: inset 0 0 30px rgba(0,0,0,.4); }
.ecran-tv::before, .ecran-tv::after { content: ""; position: absolute; bottom: 8px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e6c27a, #8a5a1c); }
.ecran-tv::before { right: 18px; } .ecran-tv::after { right: 40px; }
.ecran-tv .virtuelle { left: 18px; bottom: 38px; }
.carte-test .cadre-img { display: none; }
.carte-test, .carte-test:first-child, .carte-test:last-child { padding: 0; overflow: hidden; }
@media (min-width: 761px) { .carte-test .corps { padding: 14px 18px 18px; } }
.tele img, .tele-large img { aspect-ratio: 4 / 3 !important; height: auto !important; object-fit: cover; object-position: center !important; }
@media (min-width: 761px) {
  .tele { aspect-ratio: auto; height: auto; width: min(100%, 620px); }
  .hero { grid-template-columns: .9fr 1.1fr; }
}
@media (max-width: 760px) {
  .tele { width: 100%; max-width: 420px; }
  .carte-test, .carte-test:first-child, .carte-test:last-child { flex-direction: column; }
  .ecran-tv { padding: 8px 8px 24px; }
}
.carte-test:first-child { box-shadow: 0 0 0 4px var(--moutarde), 0 20px 44px rgba(0,0,0,.32); }

/* Section du test complet sur l'accueil */
.premium-section { background: var(--papier-2); color: var(--encre); }
.premium-section .dedans { max-width: 1180px; margin: 0 auto; padding: var(--section) var(--gouttiere); display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.premium-section .tele-large { width: 100%; }
.premium-texte h2 em { font-style: normal; color: var(--rouge-fonce); }
.premium-texte p { color: var(--encre-douce); font-size: 1.08rem; }
.traits { list-style: none; padding: 0; margin: 4px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.traits li { background: #fff; border: 2px solid #e6d6b6; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .92rem; color: var(--placard); }
.premium-note { font-size: .9rem; margin-top: 12px; }
@media (min-width: 761px) { .premium-section .dedans { min-height: 100svh; padding-top: 48px; padding-bottom: 48px; } }
@media (max-width: 760px) { .premium-section .dedans { grid-template-columns: 1fr; } }
.carte-test .ecran-tv { flex: none; height: auto; }
.carte-test .ecran-tv img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
@media (min-width: 761px) {
  .hub { justify-content: center; }
  .cartes-tests { max-width: 1080px; margin: 0 auto; width: 100%; }
  .carte-test h2 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
  .carte-test p { font-size: .92rem; }
}
.tele .bulle { bottom: auto; top: -24px; left: -28px; max-width: 270px; transform: rotate(-2deg); }



/* ===== Test complet v2 : questions, prénom, déblocage, rapport ===== */
.barre-progression { width: min(340px, 100%); margin: 0 auto; height: 10px; border-radius: 999px; background: #eadcc0; overflow: hidden; }
.barre-progression i { display: block; height: 100%; background: var(--moutarde); border-radius: 999px; transition: width .25s ease; }
.reponses.echelle5, .reponses.scenario { grid-template-columns: 1fr; gap: 8px; }
.reponses.echelle5 .choix { padding: 13px 16px; }
.reponses.scenario .choix { text-align: left; padding: 14px 16px; font-weight: 400; line-height: 1.35; }
.reponses.prenom { grid-template-columns: 1fr; gap: 12px; }
.champ-prenom { display: grid; gap: 6px; font-weight: 700; color: var(--encre); }
.champ-prenom input { font: inherit; font-size: 1.1rem; padding: 14px 16px; border-radius: 12px; border: 2px solid #e6d6b6; background: #fff; color: var(--encre); }
.champ-prenom input:focus { outline: 3px solid var(--placard); outline-offset: 1px; }
.reponses.prenom .retour { justify-self: center; }
.prenom-note { margin: 0; text-align: center; font-size: .9rem; line-height: 1.4; color: var(--encre); }

/* Déblocage */
.teaser-feuille { width: min(760px, 100%); background: var(--papier); color: var(--encre); border-radius: 26px; padding: clamp(22px, 4vw, 40px); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.teaser-tete { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; margin-bottom: 18px; }
.teaser-tete h2 { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--placard); margin: 0 0 4px; outline: none; }
.tele-petite { width: 100%; padding: 8px 8px 26px; border-radius: 18px; }
.tele-petite::before, .tele-petite::after { width: 12px; height: 12px; bottom: 7px; }
.teaser-carte { background: #fff; border-radius: 18px; padding: 10px; margin: 6px 0 18px; }
@media (max-width: 760px) { .teaser-tete { grid-template-columns: 1fr; } }

/* Graphiques */
.graph-carte { width: 100%; height: auto; display: block; font-family: var(--texte); }
.graph-carte .fond { fill: #f6ecd8; }
.graph-carte .quadrant-actif { fill: #f3dccf; }
.graph-carte .seuil { stroke: #b9a98a; stroke-width: 1.5; stroke-dasharray: 5 5; }
.graph-carte .zone { font-size: 15px; font-weight: 700; fill: #8b7b66; }
.graph-carte .zone.actif { fill: var(--encre); font-family: var(--titre); font-weight: 400; font-size: 18px; }
.graph-carte .axe { font-size: 13px; font-weight: 700; fill: #5a4a3f; }
.graph-carte .anneau { fill: #fff; }
.graph-carte .pastille { fill: var(--rouge); }
.graph-carte .toi { font-size: 16px; font-weight: 700; fill: var(--encre); paint-order: stroke; stroke: #f6ecd8; stroke-width: 5px; }
.graph-barres { margin: 10px 0 4px; }
.legende-barres { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; font-size: .85rem; color: #5a4a3f !important; }
.legende-barres i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.graph-barres ul { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 10px !important; }
.barre-trait { display: grid; grid-template-columns: minmax(0, 190px) 1fr 34px; align-items: center; gap: 12px; }
.barre-trait.nouveau-groupe { margin-top: 10px; }
.barre-trait .nom-trait { font-weight: 700; font-size: .95rem; color: var(--encre); }
.barre-trait .piste { height: 14px; background: #ebe0c8; border-radius: 7px; overflow: hidden; display: block; }
.barre-trait .piste i { display: block; height: 100%; border-radius: 7px; }
.barre-trait b { text-align: right; color: var(--encre); }
@media (max-width: 600px) {
  .barre-trait { grid-template-columns: 1fr 34px; gap: 4px 10px; }
  .barre-trait .nom-trait { grid-column: 1 / -1; font-size: .9rem; }
  .graph-carte .zone { font-size: 24px; } .graph-carte .zone.actif { font-size: 28px; }
  .graph-carte .axe { font-size: 22px; } .graph-carte .toi { font-size: 26px; }
}


.teaser-sous { font-size: 1.15rem; color: var(--placard); margin: 0 0 10px; }
@media (min-width: 1000px) {
  .teaser-feuille { width: min(1180px, 100%); display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
  .teaser-tete { grid-template-columns: 170px 1fr; gap: 20px; margin-bottom: 12px; }
  .teaser-tete h2 { font-size: 2.3rem; }
  .teaser-carte { margin: 0; padding: 6px; }
  .teaser-carte .graph-carte { max-height: 310px; }
  .teaser-feuille { padding: 30px 40px; }
}

/* Bandeau des retours de paiement et de reprise : fixe en bas (en haut il cachait le titre et le nom du profil,
   audit du 25/11/2026), au-dessus de la barre de prix du téléphone */
.bandeau-info { position: fixed; top: auto; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(680px, calc(100% - 32px)); z-index: 60;
  border-radius: 16px; box-shadow: 0 14px 40px rgba(0,0,0,.35); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: center; }
.bandeau-info[hidden] { display: none; }
.bandeau-info button { font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 8px 16px; background: var(--rouge); color: #fff; cursor: pointer; }
.r-aide { text-align: center; font-size: .85rem; color: #6b5c4f !important; margin-top: 10px; }
.r-effacer { text-align: center; margin: 18px 0 0; }

/* ===== Rapport v3 : 14 feuilles A4, magazine télé des années 50 ===== */
.rapport { max-width: none; padding: 92px 16px 64px; }
.f-defs { position: absolute; width: 0; height: 0; }
.f-page { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  position: relative; box-sizing: border-box; width: 210mm; height: 297mm; overflow: hidden; margin: 0 auto 28px; padding: 15mm 16mm 20mm;
  background: var(--grain), radial-gradient(120% 80% at 50% 0%, #fffaf0, #f7ead0); color: var(--encre); box-shadow: 0 24px 60px rgba(0,0,0,.45); font-size: 13px; line-height: 1.5; }
.f-page p { margin: 0 0 8px; color: #3a2f27; }
.f-page ul { margin: 0; padding-left: 1.1em; display: grid; gap: 3px; color: #3a2f27; }
.f-sombre { background: var(--grain), radial-gradient(120% 90% at 50% 0%, #24473d, #142a24); color: var(--papier); }
.f-sombre p, .f-sombre li { color: #e9e2cf; }
.f-folio { position: absolute; left: 16mm; right: 16mm; bottom: 8mm; display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9b8a72; border-top: 1px solid #e3d3b2; padding-top: 6px; }
.f-sombre .f-folio { color: #9fb4aa; border-top-color: rgba(255,247,232,.18); }
.f-tete { margin-bottom: 14px; }
.f-chap { font-size: 10.5px !important; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--rouge-fonce) !important; margin: 0 0 4px !important; }
.f-sombre .f-chap { color: var(--moutarde) !important; }
.f-h2 { font-family: var(--titre); font-weight: 400; font-size: 34px; line-height: 1.05; color: var(--placard); margin: 0; }
.f-sombre .f-h2 { color: var(--papier); }
.f-filet { height: 5px; border-top: 2.5px solid currentColor; border-bottom: 1px solid currentColor; margin-top: 12px; color: var(--encre); opacity: .85; }
.f-sombre .f-filet { color: var(--moutarde); }
.f-h3 { font-family: var(--titre); font-weight: 400; font-size: 19px; color: var(--placard); margin: 16px 0 8px; }
.f-sombre .f-h3 { color: var(--moutarde); }
.f-note { color: #6b5c4f !important; font-size: 12.5px; }
.f-sombre .f-note { color: #b9c9bf !important; }
.f-mini { font-size: 10px !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rouge-fonce) !important; margin: 8px 0 3px !important; }
.f-petit { font-size: 11.5px; }
.f-page .tele { box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.f-page .tele.tele-32 img { aspect-ratio: 3 / 2 !important; }
.f-tele { width: 100%; padding: 10px 10px 34px; border-radius: 22px; }
.f-tele::before, .f-tele::after { width: 14px; height: 14px; bottom: 11px; }
.f-tele::before { right: 22px; } .f-tele::after { right: 44px; }
.f-tele img { border-radius: 14px; }
.f-tele .virtuelle { left: 18px; bottom: 42px; }
.f-grelots { display: flex; gap: 9px; justify-content: center; }
.f-grelots i { width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f6dc93, #9a6a22); box-shadow: 0 1px 2px rgba(0,0,0,.4); }

/* 1. Couverture */
.f-couv { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 18mm; }
.f-couv-sur { font-size: 11px !important; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--moutarde) !important; }
.f-couv-h1 { font-family: var(--titre); font-weight: 400; font-size: 46px; line-height: 1.05; color: var(--papier); margin: 6px 0 22px; }
.f-couv-tele { width: 150mm; margin-bottom: 20px; }
.f-couv-profil { font-family: var(--titre); font-size: 46px; line-height: 1; color: var(--moutarde) !important; margin: 0 0 8px !important; }
.f-couv-acc { font-family: var(--titre); font-size: 19px; color: var(--papier) !important; margin-bottom: 22px !important; }
.f-couv-pied { margin-top: auto !important; width: 100%; display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #b9c9bf !important; border-top: 1px solid rgba(255,247,232,.2); padding-top: 8px; }

/* 2. En bref */
.f-tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-tuile { background: #fff; border-radius: 16px; padding: 16px 18px; border: 1.5px solid #ecdcbc; display: grid; gap: 2px; align-content: start; }
.f-tuile span { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7a6a58; }
.f-tuile b { font-family: var(--titre); font-weight: 400; font-size: 52px; line-height: 1; color: var(--c, var(--placard)); }
.f-tuile b em { font-family: var(--texte); font-style: normal; font-size: 14px; color: #8b7b66; margin-left: 3px; }
.f-tuile small { font-size: 13px; font-weight: 700; color: var(--encre); }
.f-tuile-profil { background: var(--placard); border-color: var(--placard); }
.f-tuile-profil span { color: var(--moutarde); }
.f-tuile-profil b { color: var(--papier); font-size: 36px; }
.f-tuile-profil small { color: #e9e2cf; font-weight: 400; }
.f-programme { list-style: none; padding: 0 !important; margin: 0; display: grid !important; gap: 0 !important; border-top: 2px solid var(--encre); }
.f-programme li { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px dashed #d7c49f; font-size: 15px; font-weight: 700; color: var(--encre); }
.f-num { font-family: var(--titre); font-weight: 400; font-size: 13px; background: var(--moutarde); color: var(--encre); border-radius: 999px; padding: 3px 0; text-align: center; }

/* 3. Carte */
.f-carte-svg { background: #fff; border-radius: 16px; padding: 10px; margin: 6px 0 12px; }
.f-carte .graph-carte { max-height: 115mm; margin: 0 auto; }
.r-lecture { background: #f3e5c6; border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; }
.r-lecture p { font-size: 12.5px; margin: 0 0 4px; }
.f-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-encadre { background: #fff; border-radius: 14px; padding: 12px 14px; border-left: 5px solid var(--moutarde); }
.f-encadre h3 { font-family: var(--titre); font-weight: 400; font-size: 15px; color: var(--placard); margin: 0 0 4px; display: flex; align-items: center; gap: 6px; }
.f-encadre p { font-size: 12.5px; margin: 0; }
.f-encadre-rouge, .f-danger { border-left-color: var(--rouge); }
.f-bon { border-left-color: #3a6ea5; }

/* 4. Cadrans */
.f-ouverture { display: grid; grid-template-columns: 1fr 74mm; gap: 18px; align-items: center; margin-bottom: 8px; }
.f-ouverture .f-tete { margin-bottom: 8px; }
.f-cadrans .legende-barres { color: #e9e2cf !important; }
.f-grille-cadrans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 22px; margin-top: 12px; }
.f-cadran { margin: 0; text-align: center; }
.f-cadran svg { width: 47mm; height: 47mm; display: block; margin: 0 auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.f-face { fill: #fff7e8; }
.f-piste { fill: none; stroke: #e8dcc2; stroke-width: 12; stroke-linecap: round; }
.f-valeur { fill: none; stroke-width: 12; stroke-linecap: round; }
.f-grad line { stroke: #8b7b66; stroke-width: 2; }
.f-aiguille { stroke: #2a2420; stroke-width: 4; stroke-linecap: round; }
.f-nombre { font-family: var(--titre); font-size: 32px; fill: var(--encre); text-anchor: middle; }
.f-cadran figcaption { margin-top: 6px; display: grid; gap: 1px; }
.f-cadran figcaption b { font-family: var(--titre); font-weight: 400; font-size: 15px; color: var(--papier); }
.f-cadran figcaption span { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--moutarde); }

/* 5-6. Traits en détail */
.f-trait { display: grid; grid-template-columns: 30mm 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid #e3d3b2; }
.f-trait:last-of-type { border-bottom: 0; }
.f-trait-score { border-top: 5px solid var(--c); padding-top: 8px; }
.f-trait-score b { font-family: var(--titre); font-weight: 400; font-size: 46px; line-height: 1; color: var(--c); }
.f-trait-score small { font-size: 12px; color: #8b7b66; margin-left: 2px; }
.f-trait-score span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6b5c4f; margin-top: 4px; }
.f-trait-nom { font-size: 10.5px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c) !important; margin: 0 !important; }
.f-trait h3 { font-family: var(--titre); font-weight: 400; font-size: 19px; color: var(--encre); margin: 2px 0 4px; }
.f-trait p, .f-trait li { font-size: 12.5px; }
.f-fr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.f-fr p { margin: 0 !important; font-size: 12px !important; display: grid; grid-template-columns: 22px 1fr; column-gap: 4px; }
.f-fr p b { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.f-fr i { grid-row: span 2; }
.f-ok { color: #2f7a4f; } .f-ko { color: var(--rouge); }

/* 7. Portrait */
.f-exergue { margin: 4px 0 14px; padding: 16px 20px; background: var(--moutarde); border-radius: 14px; font-family: var(--titre); font-size: 24px; line-height: 1.15; color: var(--encre); position: relative; }
.f-exergue::before { content: "«"; font-size: 54px; position: absolute; right: 16px; top: -6px; color: rgba(29,22,18,.18); }
.f-colonnes { column-count: 2; column-gap: 22px; }
.f-colonnes p { font-size: 13px; break-inside: avoid; }
.f-combos { display: grid; gap: 10px; }
.f-combo { background: #fff; border-radius: 14px; padding: 12px 16px; border: 1.5px solid #ecdcbc; }
.f-combo h4 { font-family: var(--titre); font-weight: 400; font-size: 17px; color: var(--rouge-fonce); margin: 0 0 3px; }
.f-combo p { margin: 0; font-size: 12.5px; }

/* 8. Forces et angles morts */
.f-split { display: grid; grid-template-columns: 1fr 1fr; margin: 0 -16mm 6px; }
.f-split > div { padding: 18px 16mm 20px; }
.f-split-clair { background: #f3e5c6; }
.f-split-sombre { background: var(--placard); }
.f-split h3 { font-family: var(--titre); font-weight: 400; font-size: 21px; margin: 0 0 12px; color: var(--placard); }
.f-split-sombre h3 { color: var(--moutarde); }
.f-liste-num { list-style: none; padding: 0 !important; margin: 0; counter-reset: n; display: grid !important; gap: 12px !important; }
.f-liste-num li { counter-increment: n; position: relative; padding-left: 40px; font-size: 13px; color: var(--encre); }
.f-split-sombre .f-liste-num li { color: #e9e2cf; }
.f-liste-num li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--titre); font-size: 15px; background: #3a6ea5; color: #fff; }
.f-split-sombre .f-liste-num li::before { background: var(--rouge); }
.f-liste-num b { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #6b5c4f; }
.f-split-sombre .f-liste-num b { color: var(--moutarde); }
.f-trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.f-quatre { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.f-tele-centre { width: 128mm; margin: 0 auto; display: block; }

/* 10-11. Manipulateurs */
.f-intro { font-size: 13px; }
.f-fiche { background: rgba(255,247,232,.07); border: 1px solid rgba(255,247,232,.16); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.f-fiche header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.f-fiche h3 { font-family: var(--titre); font-weight: 400; font-size: 19px; color: var(--papier); margin: 0; flex: 1; }
.f-rang { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--moutarde); color: var(--encre); font-family: var(--titre); }
.f-expo { font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(255,247,232,.15); color: var(--papier); }
.expo-forte .f-expo { background: var(--rouge); color: #fff; }
.expo-moyenne .f-expo { background: var(--moutarde); color: var(--encre); }
.f-fiche-corps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-fiche-corps p, .f-fiche-corps li { font-size: 12px; }
.f-sombre .f-mini { color: var(--moutarde) !important; }
.f-script { background: #fff7e8; border-radius: 12px; padding: 4px 12px 10px; }
.f-script p, .f-script li { color: #3a2f27 !important; }
.f-script .f-mini { color: var(--rouge-fonce) !important; }
.f-citation { font-family: var(--titre); font-size: 14px; color: var(--placard) !important; }
.f-faible { background: rgba(255,247,232,.1); border-radius: 10px; padding: 8px 10px; }
.f-signaux { list-style: none; padding: 0 !important; display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px 16px !important; margin: 0 0 12px !important; }
.f-signaux li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 12.5px; color: #e9e2cf; }
.f-signaux small { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--moutarde); }
.f-case { width: 16px; height: 16px; border: 2px solid currentColor; border-radius: 4px; display: inline-block; opacity: .8; }
.f-aide { display: flex; gap: 8px; align-items: flex-start; background: var(--rouge); color: #fff !important; border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 12.5px; }

/* 12. Plan */
.f-jours { list-style: none; padding: 0 !important; display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 12px !important; margin: 10px 0 0 !important; }
.f-jours li { background: #fff; border-radius: 6px 6px 12px 12px; box-shadow: 0 3px 0 #e3d3b2; position: relative; padding: 0 12px 30px; min-height: 40mm; color: var(--encre); }
.f-jours li:last-child { grid-column: 1 / -1; min-height: 0; }
.f-jour { display: block; margin: 0 -12px 8px; padding: 6px 12px; background: var(--rouge); color: #fff; font-family: var(--titre); font-size: 15px; border-radius: 6px 6px 0 0; border-bottom: 2px dashed rgba(255,255,255,.5); }
.f-jours p { font-size: 12.5px; margin: 0; }
.f-jours .f-case { position: absolute; right: 10px; bottom: 10px; color: #8b7b66; }

/* 13. Phrases et livre */
.f-phrases { list-style: none; padding: 0 !important; display: grid !important; gap: 6px !important; }
.f-phrases li { font-size: 13.5px; color: var(--encre); font-style: italic; }
.f-phrases span { font-style: normal; display: inline-block; min-width: 82px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.f-livre-bloc { display: grid; grid-template-columns: 70mm 1fr; gap: 18px; align-items: start; }
.f-livre-texte { display: grid; grid-template-columns: 30mm 1fr; gap: 14px; }
.f-livre-texte .couverture { width: 100%; transform: none; box-shadow: 0 8px 18px rgba(0,0,0,.25); }
.f-livre-texte h4 { font-family: var(--titre); font-weight: 400; font-size: 17px; color: var(--placard); margin: 0; }
.f-livre-texte .auteur { font-size: 12px; color: #6b5c4f; }
.f-livre-texte .bouton { margin: 4px 0 6px; }
.f-livre-texte .offre, .f-livre-texte .mention-pub { font-size: 11px; color: #6b5c4f; }

/* 14. Dos */
.f-fin { display: flex; flex-direction: column; align-items: center; text-align: center; }
.f-fin .f-h2 { margin-top: 6mm; }
.f-fin-tele { width: 118mm; margin: 14px 0; }
.f-fin-citation { font-family: var(--titre); font-size: 19px; line-height: 1.25; color: var(--papier) !important; max-width: 150mm; }
.f-fin .f-h3 { margin-top: 8px; }
.f-fin .f-petit { text-align: left; color: #c9d6cf !important; }
.f-fin .f-grelots { margin-top: auto; }

/* Téléphone et tablette : des feuilles à hauteur libre, lisibles */
@media screen and (max-width: 860px) {
  .rapport { padding: 80px 10px 48px; }
  .f-page { width: auto; height: auto; overflow: visible; padding: 26px 18px 52px; margin-bottom: 16px; border-radius: 8px; font-size: 15px; }
  .f-folio { left: 18px; right: 18px; bottom: 14px; font-size: 9px; }
  .f-folio span:first-child { display: none; }
  .f-couv { padding-top: 26px; min-height: 92svh; }
  .f-couv-h1 { font-size: 34px; } .f-couv-profil { font-size: 34px; } .f-couv-tele, .f-fin-tele, .f-tele-centre { width: 100%; }
  .f-h2 { font-size: 28px; }
  .f-tuiles, .f-deux, .f-quatre, .f-trois, .f-fiche-corps, .f-signaux, .f-livre-bloc, .f-ouverture { grid-template-columns: 1fr; }
  .f-grille-cadrans { grid-template-columns: 1fr 1fr; }
  .f-cadran svg { width: 100%; height: auto; max-width: 160px; }
  .f-trait { grid-template-columns: 1fr; gap: 6px; }
  .f-trait-score b { font-size: 38px; }
  .f-fr { grid-template-columns: 1fr; }
  .f-colonnes { column-count: 1; }
  .f-split { grid-template-columns: 1fr; margin: 0 -18px 6px; }
  .f-split > div { padding: 18px; }
  .f-jours { grid-template-columns: 1fr; }
  .f-jours li { min-height: 0; }
  .f-page p, .f-page li, .f-trait p, .f-trait li, .f-encadre p, .f-fiche-corps p, .f-fiche-corps li, .f-jours p { font-size: 14.5px; }
}

/* PDF : une feuille = une page A4, fond perdu */
@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #fff !important; }
  .barre, .etagere, .fin-page, .bandeau-info, .sans-impression, .nappe, .apercu, .hero, .test, .test-complet-accueil { display: none !important; }
  .rapport { padding: 0 !important; margin: 0 !important; }
  .f-page { margin: 0 !important; box-shadow: none !important; break-after: page; page-break-after: always; }
  .f-page:last-of-type { break-after: auto; page-break-after: auto; }
  .f-page, .f-page * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  a[href]::after { content: "" !important; }
}

/* Rapport v3, retouches : les télés de l'accueil (hauteur d'écran) ne s'appliquent pas aux feuilles */
.f-page .tele { height: auto !important; aspect-ratio: auto !important; display: block !important; order: 0 !important; justify-self: auto; }
.f-page .tele img { flex: none !important; height: auto !important; aspect-ratio: 4 / 3 !important; object-fit: cover; object-position: center !important; }
.f-page .tele.tele-32 img { aspect-ratio: 3 / 2 !important; }
.f-couv-tele { margin-left: auto; margin-right: auto; }
.f-programme li { padding: 12px 4px; font-size: 16px; }
.f-split-plein { height: 232mm; margin-bottom: 0; }
.f-split-plein > div { padding: 22px 14mm 26px 16mm; display: flex; flex-direction: column; }
.f-split-plein h3 { font-size: 26px; margin-bottom: 18px; }
.f-split-plein .f-liste-num { flex: 1; align-content: space-around; gap: 22px !important; }
.f-split-plein .f-liste-num li { font-size: 16px; line-height: 1.4; padding-left: 54px; }
.f-split-plein .f-liste-num li::before { width: 40px; height: 40px; font-size: 20px; }
.f-split-plein .f-liste-num b { font-size: 11px; margin-bottom: 4px; }
.f-forces .f-folio { color: #9b8a72; }
.f-amour .f-tele-centre { width: 104mm; }
.f-amour .f-quatre { margin-top: 0; }
.f-jours li { min-height: 52mm; }
.f-jours li:last-child { min-height: 30mm; }
.f-livre .f-tele-centre { width: 140mm; margin-bottom: 18px; }
.f-livre-texte { grid-template-columns: 38mm 1fr; gap: 18px; align-items: start; }
.f-livre-texte h4 { font-size: 22px; }
.f-pourquoi { font-size: 14px !important; }
.f-phrases li { font-size: 13px; }
@media screen and (max-width: 860px) {
  .f-split-plein { height: auto; }
  .f-livre-texte { grid-template-columns: 90px 1fr; }
}
.f-couv-sur { margin-top: auto !important; }
.f-couv-tele { width: 168mm; }
.f-couv-h1 { font-size: 50px; }
.f-couv-profil { font-size: 52px; }
.f-couv-acc { font-size: 21px; }
.f-portrait .f-exergue { font-size: 28px; padding: 20px 24px; }
.f-portrait .f-colonnes p { font-size: 14px; line-height: 1.55; }
.f-portrait .f-combo p, .f-portrait .f-phrases li { font-size: 13.5px; }
.f-portrait .f-h3 { margin-top: 20px; }
.f-livre .f-tele-centre { width: 118mm; margin-bottom: 14px; }
.f-autres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.f-autres a { display: grid; gap: 3px; text-decoration: none; background: #fff; border-radius: 14px; padding: 8px 8px 12px; border: 1.5px solid #ecdcbc; color: var(--encre); }
.f-autres img { width: 100%; aspect-ratio: 4 / 3; height: auto; border-radius: 9px; }
.f-autres b { font-family: var(--titre); font-weight: 400; font-size: 13.5px; line-height: 1.15; color: var(--placard); margin-top: 4px; }
.f-autres span { font-size: 11.5px; color: #6b5c4f; }
@media screen and (max-width: 860px) { .f-autres { grid-template-columns: 1fr; } .f-couv-tele { width: 100%; } }
.f-page .tele.f-couv-tele { width: 168mm !important; max-width: none !important; }
.f-page .tele.f-fin-tele { width: 124mm !important; max-width: none !important; }
@media screen and (max-width: 860px) { .f-page .tele.f-couv-tele, .f-page .tele.f-fin-tele { width: 100% !important; } }
@media screen and (max-width: 860px) {
  .f-page .f-couv-profil { font-size: 38px; } .f-page .f-couv-acc { font-size: 19px; } .f-page .f-fin-citation { font-size: 18px; }
  .f-page .f-couv-sur, .f-page .f-couv-pied { font-size: 11px; }
  .f-page .f-exergue { font-size: 22px; }
}
@media screen and (max-width: 860px) { .f-page .tele, .f-page .tele.f-tele-centre { width: 100% !important; max-width: 100% !important; } .f-page .tele img { max-width: 100%; } }
@media screen and (max-width: 860px) { .f-ouverture, .f-livre-bloc, .f-deux, .f-quatre, .f-trois, .f-tuiles, .f-fiche-corps, .f-signaux { grid-template-columns: minmax(0, 1fr) !important; } .f-ouverture > * { min-width: 0; } }
/* Les <figure> ont une marge par défaut de 40 px à gauche et à droite : remise à zéro dans les feuilles */
.f-page figure { margin: 0; }
.f-page .f-couv-tele { margin: 0 auto 20px; }
.f-page .f-fin-tele { margin: 14px auto; }
.f-page .f-tele-centre { margin: 0 auto 12px; }
.f-page.f-livre .f-tele-centre { margin-bottom: 14px; }

/* Page de vente : le rapport d'exemple en éventail, et sa visionneuse */
.exemple-rapport { background: var(--papier); color: var(--encre); }
.exemple-rapport .dedans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.exemple-texte h2 { font-size: clamp(2rem, 3.6vw, 3rem); color: var(--placard); margin: 0 0 12px; }
.exemple-texte > p { color: #3a2f27; font-size: 1.1rem; margin: 0 0 16px; }
.points-rapport { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.points-rapport li { position: relative; padding-left: 30px; font-weight: 700; color: var(--encre); }
.points-rapport li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f6dc93, #9a6a22); box-shadow: 0 1px 2px rgba(0,0,0,.35); }
.exemple-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
@media (max-width: 820px) { .exemple-actions { flex-direction: column; align-items: stretch; gap: 16px; text-align: center; } .exemple-actions .bouton { display: flex; justify-content: center; width: 100%; } }
.exemple-note { margin: 12px 0 0; font-size: .92rem; color: #6b5c4f; }
.exemple-rapport .bouton.clair { background: transparent; color: var(--placard); box-shadow: inset 0 0 0 2px var(--placard); }
.eventail { position: relative; display: block; width: 100%; height: min(64svh, 600px); border: 0; padding: 0; background: none; cursor: zoom-in; }
.eventail img { position: absolute; top: 50%; left: 50%; height: 92%; width: auto; aspect-ratio: 560 / 792; border-radius: 4px; box-shadow: 0 18px 40px rgba(0,0,0,.35);
  transform: translate(calc(-50% + (var(--i) - 1.5) * 21%), -50%) rotate(calc((var(--i) - 1.5) * 5deg)); transition: transform .35s ease; }
.eventail:hover img, .eventail:focus-visible img { transform: translate(calc(-50% + (var(--i) - 1.5) * 27%), -52%) rotate(calc((var(--i) - 1.5) * 6.5deg)); }
.eventail-accueil { height: min(60svh, 560px); }
.eventail-accueil img { transform: translate(calc(-50% + (var(--i) - 1) * 24%), -50%) rotate(calc((var(--i) - 1) * 6deg)); }
.eventail-accueil:hover img { transform: translate(calc(-50% + (var(--i) - 1) * 30%), -52%) rotate(calc((var(--i) - 1) * 7.5deg)); }
.visionneuse { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100svh; width: 100vw; height: 100svh; }
.visionneuse::backdrop { background: rgba(10,22,18,.88); }
.visionneuse-tete { position: absolute; top: 12px; left: 16px; right: 16px; display: flex; align-items: center; gap: 14px; color: var(--papier); z-index: 2; }
.visionneuse-tete b { font-family: var(--titre); font-weight: 400; font-size: 1.1rem; }
.visionneuse-tete span { opacity: .8; font-size: .9rem; }
.visionneuse-fermer { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--papier); color: var(--encre); font-size: 28px; line-height: 1; cursor: pointer; }
.visionneuse-corps { height: 100%; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 66px 12px 16px; }
.visionneuse-corps img { max-height: 100%; max-width: calc(100% - 120px); width: auto; height: auto; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff7e8; }
.vue-fleche { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--moutarde); color: var(--encre); font-size: 30px; line-height: 1; cursor: pointer; }
@media (min-width: 761px) { .exemple-rapport { height: 100svh; min-height: 0; display: flex; align-items: center; padding: 76px 0 24px; } .exemple-rapport .dedans { width: 100%; } }
@media (max-width: 760px) {
  .exemple-rapport { padding: 56px 0; }
  .exemple-rapport .dedans { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .eventail { height: 340px; order: -1; }
  .eventail-accueil { height: 300px; }
  .visionneuse-corps { padding: 64px 4px 12px; gap: 4px; }
  .visionneuse-corps img { max-width: calc(100% - 84px); }
  .vue-fleche { width: 38px; height: 38px; font-size: 24px; }
}
.exemple-rapport .dedans { max-width: 1180px; margin: 0 auto; padding: 0 var(--gouttiere); }
.eventail img { z-index: calc(10 - var(--i)); }   /* la couverture devant, les pages suivantes derrière */
@media (max-width: 760px) {
  .eventail img { height: 88%; transform: translate(calc(-50% + (var(--i) - 1.5) * 14%), -50%) rotate(calc((var(--i) - 1.5) * 4deg)); }
  .eventail:hover img, .eventail:focus-visible img { transform: translate(calc(-50% + (var(--i) - 1.5) * 16%), -51%) rotate(calc((var(--i) - 1.5) * 4.5deg)); }
  .eventail-accueil img { transform: translate(calc(-50% + (var(--i) - 1) * 18%), -50%) rotate(calc((var(--i) - 1) * 5deg)); }
}

/* ===== Parcours v2 : pont vers le test complet, livre compact, étagère allégée, comment ça marche ===== */
.lien-exemple { font-weight: 700; color: var(--placard); text-underline-offset: 4px; }
/* Pont sous chaque résultat gratuit : l'éventail du rapport + la promesse propre au test */
.pont { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 44px); align-items: center; background: var(--papier); color: var(--encre);
  border-radius: 26px; padding: clamp(22px, 4vw, 40px); margin-bottom: 22px; box-shadow: 0 0 0 4px var(--moutarde), 0 24px 50px rgba(0,0,0,.35); }
.pont h3 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); color: var(--placard); margin: 6px 0 14px; line-height: 1.12; }
.pont .points-rapport { margin-bottom: 18px; }
.eventail-pont { height: clamp(260px, 30vw, 360px); }
.eventail-pont img { transform: translate(calc(-50% + (var(--i) - 1) * 26%), -50%) rotate(calc((var(--i) - 1) * 6deg)); }
.eventail-pont:hover img { transform: translate(calc(-50% + (var(--i) - 1) * 32%), -52%) rotate(calc((var(--i) - 1) * 7.5deg)); }
/* Livre conseillé : compact */
.livre-conseil { grid-template-columns: 110px 1fr !important; align-items: start !important; padding: clamp(18px, 3vw, 26px) !important; }
.livre-conseil .couverture { max-width: 110px; }
.livre-conseil h3 { font-size: 1.25rem; margin: 0 0 2px; }
.livre-conseil .auteur { margin-bottom: 6px; }
.livre-conseil .pourquoi { margin: 0 0 10px; }
.livre-conseil .liens-livre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.livre-conseil .liens-livre .offre { flex-basis: 100%; margin: 2px 0 0; font-size: .82rem; color: var(--encre-douce); font-weight: 400; }
.livre-conseil .lien-texte { font-size: .92rem; }
/* Étagère : couvertures, titres, une ligne Audible */
.etagere .intro { margin-bottom: 18px; }
.bandeau-audible { padding: 14px 18px; margin: 0 0 30px; border-left-width: 6px; gap: 16px; justify-content: flex-start; }
.bandeau-audible .casque { flex: none; color: var(--rouge-fonce); display: grid; }
.bandeau-audible > div { flex: 1; }
.bandeau-audible b { font-family: var(--titre); font-weight: 400; font-size: 1.15rem; color: var(--encre); }
.bandeau-audible .offre { font-weight: 400; color: var(--encre-douce); font-size: .88rem; margin: 2px 0 0; }
.livre { gap: 8px; }
.livre span { font-size: .88rem; }
.livre .voir { font-size: .92rem; }
.rayon { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 980px) { .rayon { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .rayon { grid-template-columns: repeat(2, 1fr); } .bandeau-audible { flex-wrap: wrap; } }
/* Page du test complet : comment ça marche + questions */
.etapes-complet { background: var(--placard); color: var(--papier); }
.etapes-complet .dedans { max-width: 1180px; margin: 0 auto; padding: var(--section) var(--gouttiere); display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.etapes-complet h2 { color: var(--papier); margin: 0 0 22px; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.etapes { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 18px; }
.etapes li { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; }
.etape-num { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--titre); font-size: 1.3rem; background: radial-gradient(circle at 35% 35%, #f6dc93, #b07a26); color: var(--encre); }
.etapes b { font-family: var(--titre); font-weight: 400; font-size: 1.2rem; color: var(--moutarde); }
.etapes span:last-child { color: #d9e3dc; }
.faq-col details { background: rgba(255,247,232,.06); border: 1px solid rgba(255,247,232,.16); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
.faq-col summary { cursor: pointer; font-weight: 700; color: var(--papier); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-col summary::-webkit-details-marker { display: none; }
.faq-col summary::after { content: "+"; font-family: var(--titre); color: var(--moutarde); font-size: 1.3rem; line-height: 1; }
.faq-col details[open] summary::after { content: "−"; }
.faq-col details p { margin: 10px 0 0; color: #d9e3dc; }
@media (min-width: 761px) { .etapes-complet { min-height: 100svh; display: flex; align-items: center; } .etapes-complet .dedans { width: 100%; } }
@media (max-width: 760px) {
  .pont { grid-template-columns: minmax(0, 1fr); }
  .eventail-pont { height: 210px; }
  .etapes-complet .dedans { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .livre-conseil { grid-template-columns: 84px 1fr !important; }
  .livre-conseil .couverture { max-width: 84px; }
}
.eventail-teaser { height: 190px; cursor: default; margin-bottom: 6px; }
.eventail-teaser img { height: 96%; transform: translate(calc(-50% + (var(--i) - 1) * 30%), -50%) rotate(calc((var(--i) - 1) * 6deg)); box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.teaser-feuille .sections-rapport { gap: 4px; }
.teaser-feuille .sections-rapport li { font-size: .95rem; }
@media (max-width: 760px) { .eventail-teaser { height: 170px; } }
.etiquette-exemple { position: absolute; z-index: 20; left: 50%; bottom: -4px; transform: translateX(-50%); background: var(--encre); color: var(--papier); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.livre-conseil { text-align: left !important; }
.livre-conseil .liens-livre { justify-content: flex-start !important; align-items: center !important; text-align: left !important; }
.livre-conseil .couverture-cadre { position: relative; }
.livre-conseil .pastille-audio { right: auto !important; left: 50% !important; transform: translateX(-50%) rotate(-3deg); bottom: -12px !important; font-size: .62rem; white-space: nowrap; padding: 3px 8px; }
@media (max-width: 760px) { .livre-conseil .bouton { width: auto; padding-left: 18px; padding-right: 18px; } }
.livre-conseil .couverture-cadre { width: 100% !important; max-width: 110px; margin: 0 !important; }
.livre-conseil .couverture { width: 100% !important; max-width: none !important; height: auto; }
@media (max-width: 760px) { .livre-conseil .couverture-cadre { max-width: 84px; } }
.livre-conseil .liens-livre { flex-direction: row !important; flex-wrap: wrap; }
.livre-conseil .liens-livre .offre { text-align: left; }
@media (max-width: 560px) {
  .rayon { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 0 4px 22px; margin: 0 calc(-1 * var(--gouttiere)); padding-left: var(--gouttiere); scrollbar-width: none; }
  .rayon::-webkit-scrollbar { display: none; }
  .rayon .livre { flex: 0 0 42%; scroll-snap-align: start; }
  .bandeau-audible { display: grid; grid-template-columns: auto 1fr; text-align: left; gap: 6px 12px; }
  .bandeau-audible .bouton { grid-column: 1 / -1; }
}

/* Relecture du rapport v3 : couleurs de texte lisibles, blanc sur rouge foncé, téléphone en dernier (rien ne l'écrase) */
.f-trait-score b, .f-trait-nom { color: var(--ct, var(--c)) !important; }
.f-aide, .expo-forte .f-expo, .f-jour { background: var(--rouge-fonce) !important; }
.f-folio { color: #7a6a58; }
.r-aide { color: #b9c9bf !important; }
.f-couv-h1 { overflow-wrap: anywhere; }
@media screen and (max-width: 860px) {
  .f-page .f-couv-h1 { font-size: 34px; }
  .f-page .f-couv-profil { font-size: 38px; }
  .f-jours li, .f-jours li:last-child { min-height: 0; }
  .f-fr p { font-size: 14px !important; }
  .f-page .f-trait-nom, .f-page .f-mini { font-size: 11px !important; }
  .visionneuse-corps { flex-direction: column; padding: 60px 6px 14px; gap: 10px; }
  .visionneuse-corps img { max-width: 100%; max-height: calc(100% - 64px); order: -1; }
  .visionneuse-corps .vue-fleche { position: static; }
  .visionneuse-corps { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; justify-items: center; }
  .visionneuse-corps img { grid-column: 1 / -1; grid-row: 1; align-self: center; }
}
.lien-partage { display: block; width: 100%; margin-top: 10px; font: inherit; font-size: .9rem; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--moutarde); background: #fff; color: var(--encre); }
/* Accueil : les 3 cartes rétrécissent avec la hauteur d'écran (barre de favoris, portable) au lieu de déborder */
@media (min-width: 761px) and (max-height: 760px) { .hub .carte-test p { display: none; } .hub h1 { font-size: clamp(2rem, 7.5svh, 4rem); } }
@media (min-width: 761px) and (max-height: 680px) { .hub .cartes-tests { max-width: max(560px, min(1080px, calc(287svh - 1060px))); } }
@media (min-width: 761px) and (max-height: 680px) { .hub { padding-top: 66px; padding-bottom: 18px; } .hub h1 { font-size: 6.4svh; margin-bottom: .2em; } .hub .chapo { margin-bottom: 12px; font-size: .95rem; } .hub .surtitre { margin-bottom: 4px; } }
/* Accueil : boutons des cartes alignés en bas, quelle que soit la longueur du titre */
.cartes-tests { align-items: stretch; }
.carte-test { display: flex; flex-direction: column; }
.carte-test .corps { flex: 1; }
.carte-test .corps .bouton { margin-top: auto; }
.carte-test { container-type: inline-size; }
.carte-test .corps .bouton { align-self: stretch; width: 100%; text-align: center; white-space: nowrap; font-size: min(1rem, 5.6cqi); padding-left: 10px; padding-right: 10px; }

/* ===== « Raconte ton histoire au Bouffon » ===== */
.histoire-form { background: var(--papier); color: var(--encre); }
.histoire-form .dedans { max-width: 1180px; margin: 0 auto; padding: 56px var(--gouttiere); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.histoire-etapes h2 { color: var(--placard); font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 20px; }
.histoire-etapes .etapes b { color: var(--rouge-fonce); }
.histoire-etapes .etapes span:last-child { color: #4a3d33; }
.histoire-danger { background: #fbe7df; border-left: 5px solid var(--rouge-fonce); border-radius: 12px; padding: 12px 14px; font-size: .93rem; color: var(--encre); margin: 18px 0 0; }
.carte-histoire { background: #fff; border-radius: 24px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 20px 50px rgba(0,0,0,.14); border: 1.5px solid #ecdcbc; display: grid; gap: 12px; }
.carte-histoire h2 { color: var(--placard); font-size: 1.6rem; margin: 0; }
.carte-histoire .champ { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; color: var(--encre); }
.carte-histoire textarea, .carte-histoire input[type=text] { font: inherit; font-size: 1rem; font-weight: 400; color: var(--encre); background: #fffdf7; border: 2px solid #e6d6b6; border-radius: 12px; padding: 12px 14px; width: 100%; }
.carte-histoire textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.carte-histoire textarea:focus, .carte-histoire input[type=text]:focus { outline: 3px solid var(--placard); outline-offset: 1px; }
.aide-champ { margin: -4px 0 0; font-size: .85rem; color: #6b5c4f; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.compteur-h { font-variant-numeric: tabular-nums; white-space: nowrap; }
.relations { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.relations legend { font-weight: 700; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.choix-relation { position: relative; }
.choix-relation input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choix-relation span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 2px solid #e6d6b6; background: #fffdf7; font-size: .92rem; cursor: pointer; }
.choix-relation input:checked + span { background: var(--placard); border-color: var(--placard); color: var(--papier); }
.choix-relation input:focus-visible + span { outline: 3px solid var(--moutarde); outline-offset: 2px; }
.deux-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.deux-champs .champ span { font-size: .85rem; font-weight: 700; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.case { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .93rem; }
.case input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--placard); }
.carte-histoire .bouton { justify-self: start; }
.note-h { margin: 0; font-size: .82rem; color: #6b5c4f; }
.merci-h { align-content: start; outline: none; }
.merci-h p { margin: 0; color: #3a2f27; }
.ensuite-h { font-weight: 700; margin-top: 8px !important; }
.tests-h { display: flex; flex-wrap: wrap; gap: 8px; }
.tests-h .bouton.clair { background: var(--papier); box-shadow: inset 0 0 0 2px var(--placard); color: var(--placard); }
.lien-histoire { margin: 4px 0 16px; }
.lien-histoire a { color: var(--moutarde); font-weight: 700; text-underline-offset: 4px; }
/* Accueil : bande « Ton histoire peut devenir un épisode » */
.bande-histoire { background: var(--nuit); color: var(--papier); }
.bande-histoire .dedans { max-width: 1080px; margin: 0 auto; padding: var(--section) var(--gouttiere); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.bande-histoire h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 6px 0 14px; }
.bande-histoire h2 em { font-style: normal; color: var(--moutarde); }
.bande-histoire p { color: #e9e2cf; font-size: 1.1rem; margin: 0 0 20px; }
.bande-histoire .etiquette-premium { color: var(--moutarde); }
.bande-histoire .tele { width: 100%; height: auto !important; aspect-ratio: auto !important; display: block !important; }
.bande-histoire .tele img, .hero-histoire .tele img { aspect-ratio: 4 / 3 !important; height: auto !important; object-fit: cover; flex: none !important; }
@media (min-width: 761px) {
  .histoire-form { min-height: 100svh; display: flex; align-items: center; }
  .histoire-form .dedans { width: 100%; }
  .bande-histoire { height: 100svh; display: flex; align-items: center; }
  .bande-histoire .dedans { width: 100%; }
  .bande-histoire .tele { max-height: calc(100svh - 160px); }
}
@media (max-width: 760px) {
  .histoire-form .dedans, .bande-histoire .dedans { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .deux-champs { grid-template-columns: 1fr; }
  .carte-histoire .bouton { justify-self: stretch; }
}
@media (min-width: 761px) {
  .histoire-form .dedans { padding-top: 28px; padding-bottom: 28px; }
  .carte-histoire { gap: 9px; padding: 22px 26px; }
  .carte-histoire textarea { min-height: 112px; }
  .carte-histoire h2 { font-size: 1.4rem; }
  .relations { gap: 6px; } .choix-relation span { padding: 6px 12px; font-size: .88rem; }
}
@media (min-width: 761px) and (max-height: 800px) { .histoire-form .dedans { padding-top: 14px; padding-bottom: 14px; } .carte-histoire textarea { min-height: 84px; } .carte-histoire { gap: 7px; } }

/* Offrir un café au Bouffon (Ko-fi) : bande courte avant l'aide, et une ligne sous le résultat des tests */
.cafe { background: var(--papier); color: var(--nuit); border-bottom: 1px solid rgba(0, 0, 0, .08); }
.cafe .dedans { max-width: 1080px; margin: 0 auto; padding: 56px var(--gouttiere); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.cafe .cafe-bouffon { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--moutarde); display: block; }
.cafe h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 6px; }
.cafe p { margin: 0; font-size: 1.08rem; }
.cafe .cafe-action { display: grid; gap: 8px; justify-items: center; }
.cafe .cafe-bouton { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.cafe small { opacity: .75; font-size: .85rem; }
.lien-cafe { margin: 0 0 16px; }
.lien-cafe a { color: var(--moutarde); font-weight: 700; text-underline-offset: 4px; display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 760px) {
  .cafe .dedans { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 18px; padding: 44px var(--gouttiere); }
}
/* Écran de déblocage sur téléphone : barre fixe avec le prix, qui mène à la case et au bouton de paiement (complet.js) */
.barre-payer { display: none; }
@media (max-width: 820px) {
  .barre-payer { display: flex; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 18px; background: var(--placard); color: #fff; border-radius: 18px; box-shadow: 0 14px 34px rgba(0,0,0,.35); font-weight: 700; font-size: .95rem;
    transition: transform .25s ease, opacity .25s ease; }
  .barre-payer .bouton { width: auto; flex: none; margin: 0; }
  .barre-payer.cachee { transform: translateY(140%); opacity: 0; pointer-events: none; }
  #teaser:not([hidden]) { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .barre-payer { transition: none; } }
/* Mail du résultat sous un test gratuit (#95) : facultatif, discret, sous le résultat */
.inscription { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(16px, 3vw, 36px); align-items: start; }
.inscription h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: var(--placard); margin: 0 0 8px; }
.inscription-tete p { margin: 0; color: var(--encre-douce); }
.inscription-label { display: block; font-weight: 700; margin-bottom: 6px; }
.inscription-ligne { display: grid; gap: 12px; justify-items: start; }
.inscription-ligne input { width: 100%; }
.inscription-ligne[hidden], .inscription-case[hidden] { display: none; }
.inscription-ligne input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid #d8c6a4; border-radius: 12px; background: #fff; color: var(--encre); }
.inscription-ligne input:focus { outline: 3px solid var(--moutarde); outline-offset: 1px; border-color: var(--placard); }
.inscription-ligne input[aria-invalid="true"] { border-color: var(--rouge-fonce); }
.inscription-ligne .bouton { flex: none; margin: 0; }
.inscription-case { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--encre-douce); margin: 0; }
.inscription-case input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--rouge-fonce); }
.inscription .erreur { margin: 10px 0 0; }
.inscription-ok { font-weight: 700; color: var(--placard); margin: 4px 0 0; outline: none; }
.inscription-note { font-size: .82rem; color: var(--encre-douce); margin: 12px 0 0; }
.inscription-note a { color: var(--placard); }
.inscription[hidden] { display: none; }
@media (max-width: 760px) { .inscription { grid-template-columns: 1fr; } .inscription-ligne .bouton { width: 100%; } }
/* Résultat gratuit : ligne vers l'encart du test complet, et note d'effort avant son bouton (audit du 25/11/2026) */
/* Sous le verdict : le bouton vers le test complet (27/11/2026, avant un lien texte qui se coupait) */
.lien-pont { margin: 20px 0 0; }
.lien-pont .bouton { white-space: nowrap; }
.lien-pont p { margin: 10px 0 0; font-size: .92rem; color: #d9cfb9; }
@media (max-width: 820px) { .lien-pont .bouton { display: flex; justify-content: center; width: 100%; } .lien-pont p { text-align: center; } }
.pont-note { font-size: 1rem; font-weight: 600; color: var(--encre); margin: 0 0 16px; }
.resultat .livre-conseil:not(.livre-haut) .audible-bouton { background: transparent; color: var(--rouge-fonce); border: 2px solid var(--rouge-fonce); box-shadow: none; }   /* sous un résultat seulement : là, l'action principale est le test complet */
@media (max-width: 820px) { .bandeau-info { bottom: max(12px, env(safe-area-inset-bottom)); }
  body:has(#teaser:not([hidden])) .bandeau-info { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 84px); } }
/* Écran de déblocage : ses 6 scores en clair (barres), le détail reste dans le rapport */
.teaser-traits { margin: 4px 0 18px; }
.trait-teaser { display: grid; grid-template-columns: 8.5em 1fr 2.2em 5.6em; align-items: center; gap: 10px; font-size: .95rem; padding: 5px 0; }
.trait-teaser span:first-child { font-weight: 700; }
.piste-trait { height: 10px; border-radius: 999px; background: #eadfc9; overflow: hidden; }
.piste-trait i { display: block; height: 100%; border-radius: 999px; background: var(--c); }
.trait-teaser b { text-align: right; font-variant-numeric: tabular-nums; }
.trait-teaser small { color: var(--encre-douce); font-size: .82rem; }
.traits-note { font-size: .88rem; color: var(--encre-douce); margin: 8px 0 0; display: flex; gap: 6px; align-items: flex-start; }
.traits-note::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 3px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%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 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 760px) {
  .teaser-tete .tele-petite { max-width: 180px; }
  .trait-teaser { grid-template-columns: 7.4em 1fr 2em; }
  .trait-teaser small { display: none; }
}

/* Encart du bas après le résultat (#111) : une fois, fermable, jamais par-dessus tout l'écran */
.bonus { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; width: min(560px, calc(100% - 32px));
  display: flex; gap: 14px; align-items: flex-start; background: var(--papier); color: var(--encre); border-radius: var(--rayon);
  padding: 16px 44px 16px 16px; box-shadow: 0 12px 40px rgba(0,0,0,.35); border-top: 5px solid var(--moutarde); animation: bonus-monte .35s ease-out; }
.bonus img { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.bonus-etiquette { margin: 0 0 2px; font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rouge-fonce); }
.bonus-texte { margin: 0 0 12px; font-size: 1rem; line-height: 1.4; }
.bonus-fermer { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--encre-douce); cursor: pointer; border-radius: 50%; }
.bonus-fermer:focus-visible { outline: 3px solid var(--moutarde); }
@keyframes bonus-monte { from { transform: translate(-50%, 24px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bonus { animation: none; } }

/* Fiche des phrases du Bouffon (#111) */
.fiche .chapo { font-size: 1.15rem; color: #e9dfca; }
.fiche-mode { color: #e9dfca; padding-left: 1.2em; }
.fiche-mode li { margin-bottom: 8px; }
.fiche-cartes { display: grid; gap: 16px; margin-top: 28px; }
.fiche-carte { color: var(--encre); }
.fiche-carte h3 { font-family: var(--titre); font-weight: 400; font-size: 1.2rem; margin: 0 0 6px; color: var(--encre); }
.fiche-carte p.fiche-ligne { color: var(--encre); }
.fiche-carte p.fiche-ligne b { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-douce); }
.fiche-carte p.fiche-ligne.faire b { color: var(--placard); }
.fiche-imprimer { margin: 8px 0 0; }
.fiche-cta { margin-top: 40px; padding: 24px; border-radius: var(--rayon); background: var(--placard); }
.fiche-cta h2 { margin-top: 0; }
@media print {
  body { background: #fff; color: #000; }
  .barre, .pied, .fiche-imprimer, .fiche-cta .bouton { display: none !important; }
  .page-texte { padding: 0; }
  .page-texte p, .fiche .chapo, .fiche-mode, .page-texte h2 { color: #000; }
  .fiche-cta { background: none; border: 1px solid #999; }
  .fiche-carte { break-inside: avoid; border: 1px solid #ccc; }
  .aide, .aide * { color: #000 !important; background: none !important; }
}
.page-texte .fiche-carte p { color: var(--encre-douce); }
.page-texte .fiche-carte p.fiche-ligne { color: var(--encre); }
.page-texte .fiche-cta a.bouton { color: #fff; }

/* Glossaire */
.glossaire-avertissement { font-size: .95rem; border-left: 4px solid var(--moutarde); padding-left: 12px; }
.glossaire-puces { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; }
.page-texte .glossaire-puces a { text-decoration: none; font-size: .9rem; padding: 6px 12px; border-radius: 999px; background: var(--placard); color: var(--papier); }
.page-texte .glossaire-puces a:hover { background: var(--placard-clair); }
.glossaire .fiche-carte { scroll-margin-top: 90px; }
.page-texte .fiche-carte p.glossaire-origine { font-size: .92rem; color: var(--encre-douce); margin-bottom: 0; }
.page-texte .fiche-carte p.glossaire-origine b { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.page-texte .lien-glossaire a { color: var(--moutarde); }

/* Quel livre pour toi ? */
.quiz-livre .carte { margin-top: 26px; }
.quiz-livre .carte .phrase { font-size: clamp(1.3rem, 4vw, 1.7rem); margin: 6px 0 18px; }
.quiz-livre .compteur { color: var(--encre-douce); font-size: .9rem; margin: 0; }
.quiz-resultat { margin-top: 26px; display: grid; gap: 16px; }
.quiz-resultat .bloc { background: var(--papier); color: var(--encre); border-radius: var(--rayon); padding: clamp(18px, 4vw, 30px); }
.page-texte .quiz-resultat p { color: var(--encre-douce); }
.page-texte .quiz-resultat h3 { color: var(--encre); }
.page-texte .quiz-resultat a.bouton { color: #fff; }
.page-texte .quiz-resultat a.lien-texte { color: var(--placard); }
.quiz-aussi .etiquette { font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rouge-fonce); margin: 0 0 6px; }
.page-texte .quiz-aussi p b { color: var(--encre); }
.lien-quiz-livre { margin: 22px 0 0; }
.page-texte .quiz-resultat .livre-conseil a.audible-bouton { color: #fff; }   /* livre conseillé : bouton plein (action principale de la page) */
.page-texte .quiz-aussi a.bouton { background: transparent; color: var(--rouge-fonce); box-shadow: inset 0 0 0 2px var(--rouge-fonce); }   /* « Et aussi » : secondaire */
.quiz-livre .carte .phrase { color: var(--encre); }
.quiz-resultat h3:focus, .quiz-livre .phrase:focus { outline: none; }

/* Maillage : bloc « Continue avec le Bouffon » */
.suite { padding: clamp(40px, 7vw, 80px) var(--gouttiere); }
.suite .dedans { max-width: 1180px; margin: 0 auto; }
.suite h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 22px; color: var(--papier); }
.suite-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.suite-carte { display: flex; flex-direction: column; background: var(--papier); color: var(--encre); border-radius: var(--rayon); overflow: hidden; text-decoration: none; box-shadow: 0 16px 36px rgba(0,0,0,.28); transition: transform .18s ease; }
.suite-carte:hover { transform: translateY(-3px); }
.suite-carte:focus-visible { outline: 3px solid var(--moutarde); outline-offset: 3px; }
.suite-visuel { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--placard); }
.suite-visuel img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.suite-livres { display: flex; align-items: center; justify-content: center; gap: 8%; padding: 8% 10%; background: var(--papier-2); }
.suite-livres img { width: 28%; height: auto; object-fit: contain; border-radius: 2px 6px 6px 2px; box-shadow: 0 10px 18px rgba(40,20,0,.3); }
.suite-livres img:nth-child(1) { transform: rotate(-6deg); } .suite-livres img:nth-child(3) { transform: rotate(5deg); }
.suite-mots { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; padding: 8%; }
.suite-mots b { font-weight: 700; font-size: .95rem; padding: 6px 12px; border-radius: 999px; background: var(--papier); color: var(--placard); }
.suite-corps { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.suite-meta { font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rouge-fonce); }
.suite-corps strong { font-family: var(--titre); font-weight: 400; font-size: 1.2rem; line-height: 1.2; color: var(--placard); }
.suite-texte { color: var(--encre-douce); font-size: .98rem; line-height: 1.45; }
.resultat .suite { padding-left: 0; padding-right: 0; }   /* 27/11/2026 : .page-texte + .suite collait la suite aux bords (quel livre, glossaire, fiche) */
.resultat .suite { padding-top: 24px; padding-bottom: 8px; }
.lien-livre-quiz { margin: -4px 0 18px; text-align: center; }
.lien-quiz-livre { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 26px 0 0; }
.lien-quiz-livre span { font-weight: 700; }
.page-texte .fiche-carte p.glossaire-test, .technique p.glossaire-test { margin: 10px 0 0; }
.page-texte .fiche-carte p.glossaire-test a, .technique p.glossaire-test a { color: var(--rouge-fonce); font-weight: 700; font-size: .95rem; }
.rapport .suite { padding-left: 0; padding-right: 0; }
@media print { .suite { display: none !important; } }
@media (max-width: 640px) {
  .suite-grille { gap: 12px; }
  .suite-carte { flex-direction: row; align-items: stretch; }
  .suite-visuel { width: 36%; flex: none; aspect-ratio: auto; min-height: 128px; }
  .suite-livres { gap: 4%; padding: 10px 8px; }
  .suite-livres img { width: 30%; }
  .suite-mots { gap: 5px; padding: 8px; }
  .suite-mots b { font-size: .72rem; padding: 4px 8px; }
  .suite-corps { padding: 12px 14px 14px; gap: 4px; }
  .suite-corps strong { font-size: 1.02rem; }
  .suite-texte { font-size: .88rem; }
  .suite-meta { font-size: .7rem; }
}

/* Écran de déblocage : aperçu tiré de ses réponses (techniques), lien vers l'exemple, sondage « qu'est-ce qui te retient » (27/11/2026) */
.perso { background: #fff; border-radius: 18px; padding: 16px 18px; margin: 0 0 18px; box-shadow: inset 0 0 0 2px var(--papier-2); }
.perso-intro { font-size: .95rem; color: var(--encre-douce); margin: 0 0 10px; }
.perso-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.perso-item { border-top: 1px solid var(--papier-2); padding-top: 10px; }
.perso-item:first-child { border-top: 0; padding-top: 0; }
.perso-item p { margin: 4px 0 0; font-size: .95rem; }
.perso-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.perso-tete b { color: var(--placard); font-size: 1.02rem; }
.perso-tete .expo { font-size: .8rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.perso-tete .expo-forte { background: #f7d9cf; color: #8f2812; }
.perso-tete .expo-moyenne { background: #f6e3b8; color: #6e4800; }
.perso-tete .expo-faible { background: #e3ebe6; color: var(--placard); }
.perso-disent span { font-weight: 700; color: var(--encre-douce); }
.perso-bloque { color: var(--encre-douce); }
.perso-bloque b { display: inline-flex; align-items: center; gap: 6px; color: var(--rouge-fonce); }
.perso-bloque svg { color: var(--rouge-fonce); flex: none; vertical-align: -2px; margin-right: 4px; }
.flou { filter: blur(5px); user-select: none; -webkit-user-select: none; }
.perso-note { font-size: .88rem; font-weight: 700; color: var(--rouge-fonce); margin: 12px 0 0; }
.teaser-feuille .lien-exemple { display: block; background: none; border: 0; padding: 0; margin: 0 0 18px; font: inherit; font-size: .95rem; font-weight: 700; color: var(--placard); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.frein { margin: 16px 0 4px; padding: 14px 16px; border-radius: 16px; background: var(--papier-2); animation: frein-entre .35s ease-out; }
.frein-titre { font-family: var(--titre); color: var(--placard); font-size: 1.1rem; margin: 0; }
.frein-texte { font-size: .88rem; color: var(--encre-douce); margin: 2px 0 10px; }
.frein-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.frein-choix button { font: inherit; font-size: .92rem; padding: 9px 14px; border-radius: 99px; border: 2px solid var(--placard); background: var(--papier); color: var(--placard); cursor: pointer; }
.frein-merci { font-weight: 700; color: var(--placard); margin: 0 0 8px; }
@keyframes frein-entre { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .frein { animation: none; } }

/* Barre fixe vers le test complet sous un résultat gratuit (téléphone) : même dessin que la barre de l'écran de paiement */
.pont .bouton { white-space: nowrap; }
@media (max-width: 820px) {
  .barre-pont .bouton { white-space: nowrap; }
  #resultat:not([hidden]) { padding-bottom: 84px; }
}
.reponses.jalon { grid-template-columns: 1fr; justify-items: center; }
.reponses.jalon .bouton { min-width: 220px; }

/* ---------- Passe UX du 27/11/2026 (audits accueil, tests, test complet, annexes) ---------- */
/* Plus de mot ni de flèche seuls à la ligne */
h1, h2, h3, h4, .choix, .livre strong, .suite-corps strong, .carte-test h2, .barre-payer span { text-wrap: balance; }
p, li, .suite-texte, .livre .pour, .pont-note { text-wrap: pretty; }
/* Tailles minimales lisibles pour un public de 35 ans et plus */
.suite-meta { font-size: .8rem; }
.etiquette-premium { font-size: .9rem; }
.pastille-audio { font-size: .8rem; }
/* Cibles tactiles d'au moins 44 px */
.glossaire-puces a { min-height: 44px; display: inline-flex; align-items: center; }
.langue a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.technique a, .inscription-note a { display: inline-block; padding: 10px 0; }
.inscription-case input, .consentement input { width: 24px; height: 24px; }
/* Pastilles de progression neutres pendant le test */
.test .grelot.fait { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.5), transparent 45%), var(--moutarde); }
/* Boutons qui ne passent plus sur deux lignes */
.inscription .bouton { white-space: nowrap; }
/* Fiche : le lien vers le glossaire décollé de la dernière carte */
.page-texte .lien-glossaire { margin-top: 24px; }
/* Café : secondaire, en contour (le rouge plein reste aux actions principales) */
.cafe .bouton { background: transparent; color: var(--rouge-fonce); box-shadow: inset 0 0 0 2px var(--rouge-fonce); }
.cafe .bouton svg { color: var(--rouge-fonce); }
/* Fin de résultat : deux boutons de même largeur */
#resultat .fin-resultat { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#resultat .fin-resultat .bouton { width: 100%; justify-content: center; text-align: center; }
@media (max-width: 420px) { #resultat .fin-resultat { grid-template-columns: 1fr; } }
/* Encart d'aide d'un résultat inquiétant : sous le titre, bien visible */
.verdict .aide-urgente { margin: 12px 0 16px; }
@media (max-width: 560px) {
  /* Accueil : les 3 tests et leur bouton dans le premier écran */
  .hub h1 { font-size: 8.4vw; }
  .hub h1 em { white-space: nowrap; }
  .hub .chapo { margin-bottom: 18px; }
  .hub .carte-test, .hub .carte-test:first-child, .hub .carte-test:last-child { flex-direction: row; align-items: stretch; }
  .hub .carte-test .ecran-tv, .hub .carte-test .cadre-img { display: block; width: 92px; flex: none; height: auto; padding: 0; border-radius: 0; box-shadow: none; }
  .hub .carte-test .ecran-tv img, .hub .carte-test .cadre-img img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; }
  .hub .carte-test .ecran-tv::before, .hub .carte-test .ecran-tv::after { display: none; }
  .hub .carte-test .corps { padding: 12px 14px 14px; }
  .hub .carte-test p { display: none; }
  .hub .carte-test h2 { font-size: 1.12rem; margin: 2px 0 10px; }
  .hub .carte-test .corps .bouton { padding: 10px 12px; }
  /* Carrousel de livres : première couverture avec sa marge */
  .rayon { scroll-padding-left: var(--gouttiere); }
  /* Numéros d'aide sur deux colonnes : tous gardés, moitié moins haut */
  .numeros { grid-template-columns: 1fr 1fr; gap: 10px; }
  .numeros li { padding: 12px 14px; }
  .numeros a { font-size: 1.25rem; }
  /* Présentation d'un test : le bouton visible sans défiler */
  .hero .tele { width: min(48%, 170px); }
  .hero { padding-top: 64px; gap: 12px; }
}
@media (max-width: 820px) {
  body:has([data-barre-pont]) #resultat:not([hidden]) { padding-bottom: 84px; }
}
/* Contraste mesuré dans le rapport et la 404 (contraste.mjs étendu le 27/11/2026) */
.f-folio, .f-forces .f-folio { color: #6b5a48; }
.teaser-feuille .surtitre { color: var(--rouge-fonce); }
.f-tuile b em, .f-trait-score small { color: #6b5a48; }
.rapport .retour, #rapport .retour, [data-effacer] { color: #d9cfb9; }
.page-texte a.bouton { color: #fff; }
.page-texte a.bouton.clair { color: var(--encre); }
/* Écran de paiement (audit du test complet, 27/11/2026) */
.teaser-feuille .bouton[data-payer] { white-space: nowrap; }
.barre-payer span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.perso-tete { justify-content: flex-start; gap: 10px; align-items: center; }
.perso-tete .rang { flex: none; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--rouge-fonce); padding: 3px 9px; border-radius: 99px; }
.teaser-feuille .sections-rapport { list-style: disc; padding-left: 1.2em; }
.teaser-feuille .sections-rapport li { display: list-item; font-weight: 600; }
.teaser-feuille .consentement { background: var(--papier-2); padding: 12px 14px; border-radius: 14px; color: var(--encre); }
.teaser-feuille .consentement a { white-space: nowrap; }
.confiance { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: .92rem; color: var(--encre); }
.confiance li { display: flex; gap: 8px; align-items: flex-start; }
.confiance li::before { content: "✓"; color: var(--placard); font-weight: 700; flex: none; }
.frein-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.frein-choix button { width: 100%; padding: 9px 10px; font-size: .88rem; }
.frein-choix button:last-child:nth-child(odd) { grid-column: 1 / -1; }
.vue-fleche { width: 48px; height: 48px; }
@media (min-width: 821px) { .teaser-feuille { padding-top: 28px; } .teaser-gauche { margin-top: 0; } }
/* Écran de résultat du test complet (28/11/2026) : profil et techniques à gauche, offre à droite, détail gratuit
   (carte + 6 scores) en dessous sur toute la largeur. Téléphone : dans cet ordre, l'offre avant le détail. */
@media (max-width: 820px) { .teaser-feuille { display: flex; flex-direction: column; } }
@media (min-width: 821px) { .teaser-detail { grid-column: 1 / -1; } .detail-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; } }
.offre-rapport { background: #fff; border: 2px solid var(--placard); border-radius: 20px; padding: clamp(16px, 3vw, 24px); margin: 18px 0 0; }
.offre-rapport .teaser-sous { font-size: 1.35rem; }
.pages-exemple { display: flex; gap: 12px; justify-content: center; margin: 4px 0 6px; }
.page-exemple { flex: 0 1 150px; container-type: inline-size; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.page-exemple:nth-child(1) { transform: rotate(-2deg); } .page-exemple:nth-child(2) { transform: rotate(2deg); }
.page-exemple img { display: block; width: 100%; height: auto; border-radius: 6px; }
.legende-exemple { text-align: center; font-size: .85rem; color: var(--encre-douce); margin: 4px 0 14px; }
.format-rapport { font-size: .92rem; color: var(--encre-douce); margin: 6px 0 16px; }
.note-paiement { font-size: .88rem; color: var(--encre-douce); margin: 10px 0 0; text-align: center; }
.teaser-feuille #zone-payer .bouton { width: 100%; }
.teaser-detail { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(36,71,61,.18); }
.teaser-sous.petit { font-size: 1.05rem; }
.teaser-feuille .offre-rapport .lien-exemple { margin: 14px 0 0; }
@media (min-width: 821px) { .teaser-feuille { align-items: start; } }
@media (max-width: 760px) {
  .teaser-feuille .teaser-tete { display: flex; gap: 14px; align-items: center; }
  .teaser-feuille .teaser-tete .tele-petite { flex: 0 0 92px; width: 92px; max-width: 92px; margin: 0; order: 0; }
  .teaser-feuille .teaser-tete > div { flex: 1; min-width: 0; text-align: left; }
  .teaser-feuille .teaser-tete h2 { font-size: 1.9rem; }
  .teaser-feuille .accroche-teaser { font-size: 1.05rem; margin-bottom: 0; }
}
/* Formulaire « Raconte ton histoire » (audit du 27/11/2026) */
.erreur-champ { color: var(--rouge-fonce); font-weight: 700; font-size: .92rem; margin: 6px 0 10px; }
.en-erreur, textarea.en-erreur { outline: 2px solid var(--rouge-fonce); outline-offset: 2px; border-radius: 12px; }
.tel { white-space: nowrap; font-weight: 700; color: inherit; }
.note-h a, .note-h { overflow-wrap: normal; }
.deux-champs { align-items: end; }
.pied-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; margin: 4px 0 14px; }
.pied-liens a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: #e9e2cf; font-weight: 700; }
@media (max-width: 760px) {
  .histoire-form .dedans { display: flex; flex-direction: column; }
  .histoire-form .carte-histoire { order: -1; }
  .hero-histoire .tele { max-width: 200px; }
  .relations { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .relations legend { grid-column: 1 / -1; }
  .relations label:last-child { grid-column: 1 / -1; }
  .relations .choix-relation span, .choix-relation span { display: flex; justify-content: center; align-items: center; min-height: 46px; text-align: center; }
}
/* Écran de question : plus de vide réservé sous la question quand il n'y a pas de contexte */
.contexte:empty { min-height: 0; margin-bottom: 18px; }
.reponses.jalon .bouton:focus:not(:focus-visible) { outline: none; }
/* Glossaire : origine du mot repliée */
.glossaire-origine { margin: 8px 0 0; }
.glossaire-origine summary { cursor: pointer; font-weight: 700; color: var(--placard); min-height: 44px; display: flex; align-items: center; }
.glossaire-origine p { margin: 4px 0 0; }

/* Corrections de la relecture du 27/11/2026 */
@media (max-width: 560px) {
  .hub .carte-test .corps { min-width: 0; }
  .hub .carte-test .corps { container-type: inline-size; }
  .hub .carte-test .corps .bouton { white-space: nowrap; text-align: center; font-size: min(1rem, 7.2cqi); padding-left: 6px; padding-right: 6px; }
  .numeros a { white-space: nowrap; font-size: 1.15rem; }
}
.teaser-feuille :focus-visible { outline-color: var(--placard); }
.glossaire-origine summary::before { content: "+"; display: inline-block; width: 1.2em; font-weight: 700; }
.glossaire-origine[open] summary::before { content: "−"; }
.frein-choix button { border-radius: 14px; }
.lien-exemple, [data-effacer] { display: inline-block; padding: 10px 0; }
.note-h .mail { white-space: nowrap; }
.confiance a { color: var(--placard); font-weight: 700; }
.page-404 { min-height: 80svh; display: flex; flex-direction: column; justify-content: center; }
.logo-404 img { border-radius: 50%; margin-bottom: 18px; }
/* Pages légales : l'essentiel en tête (rien de retiré du texte légal) */
.essentiel { background: var(--placard); border-left: 5px solid var(--moutarde); border-radius: 14px; padding: 14px 18px; margin: 0 0 26px; }
.essentiel p { margin: 0 0 6px; color: var(--moutarde); }
.essentiel ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.essentiel li { color: var(--papier); }
.page-texte p { max-width: 68ch; }
.page-texte > h3 { font-size: 1.12rem; color: var(--moutarde); margin: 20px 0 6px; }   /* sous-titres des pages légales seulement (pas les cartes du glossaire ni de la fiche) */
/* Glossaire : index sur une ligne qui défile, collé en haut ; retour en haut */
.glossaire .glossaire-puces { position: sticky; top: 0; z-index: 6; flex-wrap: nowrap; overflow-x: auto; padding: 8px 0; margin-left: calc(-1 * var(--gouttiere)); margin-right: calc(-1 * var(--gouttiere)); padding-left: var(--gouttiere); padding-right: var(--gouttiere); background: var(--nuit); scrollbar-width: none; }
.glossaire .glossaire-puces a { flex: none; }
.glossaire .fiche-carte { scroll-margin-top: 72px; }
.haut-page { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 20; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--placard); color: var(--papier) !important; font-size: 1.4rem; font-weight: 700; text-decoration: none !important; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
/* En-tête : le nom à côté du logo, aussi sur téléphone */
@media (max-width: 760px) { .barre .marque span { display: inline; font-size: 1rem; } .barre .marque { min-height: 44px; } }
#resultat .fin-resultat { margin: 0 0 22px; }
@media print { .numeros { grid-template-columns: repeat(3, 1fr) !important; } }
/* Étagère (ordinateur) : titres alignés quelle que soit la hauteur de la couverture */
@media (min-width: 761px) { .etagere .livre .couverture-cadre { height: 230px !important; display: flex !important; align-items: flex-end; justify-content: flex-start; } .etagere .livre .couverture-cadre img { max-height: 230px; width: auto !important; height: auto !important; max-width: 100%; } }
.suite h2, .cafe h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
@media (min-width: 761px) { .etagere .rayon { align-items: start; } }
@media (min-width: 981px) { .numeros { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 400px) { .teaser-feuille .bouton[data-payer] { font-size: min(1.05rem, 4.5vw); padding-left: 12px; padding-right: 12px; } }
/* Test dark empath : seuil visible sur chaque barre */
.barre-jauge { position: relative; }
.seuil-jauge { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--papier); opacity: .85; }
.note-seuil { font-size: .85rem; color: #d9cfb9; margin: 6px 0 0; grid-column: 1 / -1; }
.consigne { text-align: center; font-size: .92rem; font-weight: 600; color: var(--encre-douce); margin: 2px auto 10px; max-width: 30rem; }
/* Rapport : ce que mesure chaque trait, sous son nom */
.f-trait-nom .f-def { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .85; }
.f-exergue { padding-right: 56px; }
.def-profil { font-size: .92rem; color: var(--encre-douce); margin: 2px 0 0; }
/* Aide accessible depuis chaque page (tâche « trouver un numéro d'aide » : 8 actions avant) */
.barre { gap: 10px; }
.lien-aide-tete { margin-left: auto; color: var(--moutarde); font-weight: 700; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; }
.lien-glossaire-hub { text-align: center; margin: 22px 0 clamp(36px, 6vh, 56px); }
.lien-glossaire-hub a { color: var(--moutarde); font-weight: 700; text-underline-offset: 4px; }
@media (max-width: 380px) { .barre .marque span { display: none; } }
/* Avis des acheteuses (#128) */
.avis-teaser { margin: 0 0 18px; }
.avis-item { margin: 0 0 10px; padding: 10px 14px; background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--papier-2); }
.avis-item p { margin: 0 0 4px; color: var(--encre); }
.avis-item footer { font-size: .85rem; color: var(--encre-douce); }
.avis-note { font-size: .82rem; color: var(--encre-douce); margin: 0; }
.r-avis { text-align: center; margin: 18px 0; color: var(--papier); }
.page-avis .form-avis { display: grid; gap: 14px; max-width: 34rem; }
.etoiles-avis { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.etoiles-avis label { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.etoiles-avis span { color: var(--moutarde); font-size: 1.2rem; letter-spacing: 2px; }
.page-avis textarea, .page-avis input[type=text] { width: 100%; font: inherit; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--papier-2); }
.page-avis > p:last-child { margin-top: 24px; }
/* Corrections de l'audit final (27/11/2026) */
@media screen and (max-width: 374px) { .barre-payer span { white-space: normal; line-height: 1.2; } }
.haut-rapport { max-width: 794px; margin: 0 auto 18px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: center; text-align: center; color: var(--papier); }
.haut-rapport p { margin: 0; font-weight: 700; }
.rapport .fin-resultat { max-width: 794px; margin: 24px auto 0; justify-content: center; }
@media screen and (max-width: 760px) {
  .rapport .fin-resultat .bouton { width: 100%; }
  .f-split-plein > div { padding: 18px !important; }
  .f-split-plein .f-liste-num li { padding-left: 46px; }
  .f-trait-nom { font-size: 12px !important; }
  .f-def { font-size: 14px; letter-spacing: 0; text-transform: none; }
  .f-fr p { font-size: 15px !important; }
  .f-fr p b { font-size: 11px; }
  .f-signaux small, .mention-pub { font-size: 12px; }
  /* Écran de question : les réponses ne bougent plus d'une question à l'autre */
  .ecran.test { place-items: start center; padding-top: 72px; }
  .test .phrase { min-height: 3.4em; }
}
/* Cartes d'aide : toute la carte appelle */
.numeros li { position: relative; }
.numeros a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.aide-urgente a, .numeros a, .tel { white-space: nowrap; }
.livre-conseil .pastille-audio { font-size: .75rem !important; }
.f-portrait .f-exergue { padding-right: 56px !important; }
html[lang="en"] .f-exergue::before { content: "“"; }
@media (min-width: 761px) { .glossaire .glossaire-puces { position: static; flex-wrap: wrap; overflow: visible; background: none; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; } }

/* Contre-audit (27/11/2026) */
.vue-grand { margin-left: auto; margin-right: 12px; color: var(--moutarde); font-weight: 700; font-size: .9rem; text-decoration: underline; }
.haut-rapport .r-aide { flex-basis: 100%; font-size: .85rem; font-weight: 400; color: #d9cfb9; margin: 0; }
.f-forces .f-liste-num li b { text-transform: none; letter-spacing: 0; font-size: 15px; }
@media screen and (max-width: 760px) {
  .f-trait .f-trait-nom, .rapport .f-trait-nom { font-size: 12.5px !important; }
  .rapport .mention-pub, .f-page .mention-pub { font-size: 12.5px !important; }
  /* Écran de question : la carte occupe l'écran, les réponses restent en bas, à la même place d'une question à l'autre */
  .ecran.test .carte { min-height: calc(100svh - 96px); display: flex; flex-direction: column; }
  .ecran.test [data-reponses] { margin-top: auto; }
  .test .phrase { min-height: 0; }
}
@media screen and (max-width: 760px) {
  .ecran.test .phrase { font-size: 1.4rem; line-height: 1.15; min-height: 3.45em; display: flex; align-items: center; justify-content: center; }
  .ecran.test .contexte { font-size: .98rem; min-height: 4.6em; margin-bottom: 12px; }
  .ecran.test .consigne { margin-bottom: 6px; }
}
@media screen and (max-width: 760px) {
  .ecran.test .phrase:has(+ .contexte:empty) { min-height: 5.75em; }   /* sans ligne d'explication (dark empath) : la question prend sa place */
  .ecran.test .contexte:empty { min-height: 0; margin-bottom: 8px; }
}
@media screen and (max-width: 520px) {
  .visionneuse-tete b { font-size: .95rem; line-height: 1.15; }
  .visionneuse-tete [data-vue-compteur] { white-space: nowrap; font-size: .85rem; }
  .vue-grand { white-space: nowrap; font-size: .85rem; margin-right: 8px; }
  .vue-grand:focus:not(:focus-visible) { outline: none; }
}
@media screen and (max-width: 520px) { .visionneuse-tete b { display: none; } }
@media screen and (max-width: 359px) { .numeros { grid-template-columns: minmax(0, 1fr); } .numeros a { font-size: 1.3rem; } .numeros li { min-width: 0; padding: 14px; } }
/* Validation finale : mineurs (27/11/2026) */
.ecran.test .reponses.prenom, .ecran.test [data-reponses].prenom { margin-top: 20px; }
@media screen and (max-width: 760px) { .ecran.test .carte:has(.reponses.scenario) .phrase { font-size: 1.25rem; } }
.vue-grand { padding: 12px 0; }
.bandeau-audible .mention-pub, .liens-livre .mention-pub { margin-top: 14px; }
.bandeau-audible .bouton + .offre, .bandeau-audible .bouton + .mention-pub { margin-top: 14px; }
.f-livre-texte .offre, .f-livre-texte .mention-pub { font-size: 12.5px; }
.f-aide svg { flex: none; }
@media screen and (max-width: 359px) { .exemple-grelots { flex-wrap: wrap; } }
.ecran.test .carte:has(.reponses.prenom) { min-height: 0; }
/* Accueil sur ordinateur : vignettes un peu moins hautes, pour laisser de l'air sous le lien du glossaire (27/11/2026) */
@media (min-width: 761px) { .hub .cartes-tests { width: 100%; max-width: min(1084px, calc(100svh * 1.1)); margin-left: auto; margin-right: auto; } }   /* cartes un peu moins larges : vignettes en 4:3 intactes, de l'air sous le lien */
@media (max-width: 760px) { .bandeau-audible { row-gap: 14px; } }
.exemple-rapport { overflow-x: clip; }
@media (min-width: 1200px) { .hub .chapo { max-width: 64rem; text-wrap: nowrap; } }
@media (min-width: 981px) { .teaser-feuille { align-items: start; } }   /* 28/11/2026 : plus de colonne collée (elle recouvrait « Ton profil en détail » sous l'offre) */
/* Tour final, derniers mineurs (27/11/2026) */
@media (max-width: 760px) {
  .etapes-col .bouton { display: block; width: 100%; text-align: center; }
  .livre-conseil .pastille-audio { position: static !important; display: inline-block; transform: none !important; margin-top: 8px; }
}
.inscription-note a { line-height: inherit; display: inline; }
.inscription-note { line-height: 1.5; }
@media (max-width: 760px) { .livre-conseil .pastille-audio { max-width: 100%; white-space: normal !important; text-align: center; line-height: 1.2; padding: 4px 6px; box-sizing: border-box; } }

/* Aperçu de son propre rapport sur l'écran de résultat (29/11/2026) : couverture et page 10 dessinées à petite échelle */
.mini-page { display: flex; flex-direction: column; align-items: center; aspect-ratio: 210 / 297; width: 100%; box-sizing: border-box; padding: 9% 8% 6%; border-radius: 6px; background: #1f3d34; color: #e9e2cf; text-align: center; overflow: hidden; font-size: 4.6cqw; line-height: 1.25; }
.mp-sur { font-size: .8em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--moutarde); }
.mp-h1 { font-family: var(--titre); font-size: 1.9em; color: var(--papier); margin: 6% 0; line-height: 1.05; }
.mini-page img { width: 92%; flex: 0 1 auto; min-height: 0; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; border: 2px solid #6b4a2b; }
.mp-profil { font-family: var(--titre); font-size: 2.2em; color: var(--moutarde); margin-top: 8%; line-height: 1; }
.mp-acc { font-family: var(--titre); font-size: 1.1em; color: var(--papier); margin-top: 4%; }
.mp-pied { margin-top: auto; width: 100%; border-top: 1px solid rgba(255,247,232,.2); padding-top: 4%; font-size: .75em; letter-spacing: .08em; text-transform: uppercase; color: #b9c9bf; }
.mp-manip { align-items: stretch; text-align: left; }
.mp-chap { font-size: .8em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--moutarde); }
.mp-h2 { font-family: var(--titre); font-size: 1.9em; color: var(--papier); line-height: 1.05; margin: 3% 0 4%; border-bottom: 2px solid var(--moutarde); padding-bottom: 4%; }
.mp-intro { font-weight: 700; font-size: 1em; color: var(--papier); margin-bottom: 3%; }
.mp-barres { display: grid; gap: 3px; margin: 2% 0 5%; }
.mp-barres i { display: block; height: 1.6cqw; border-radius: 2px; background: rgba(233,226,207,.28); }
.mp-fiche { background: rgba(255,247,232,.08); border: 1px solid rgba(255,247,232,.16); border-radius: 4px; padding: 4% 6% 1%; margin-bottom: 4%; }
.mp-fiche-tete { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 1.05em; color: var(--papier); }
.mp-fiche-tete b { flex: none; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--moutarde); color: #1f3d34; display: inline-grid; place-items: center; font-size: .85em; }
.mp-fiche-tete em { margin-left: auto; font-style: normal; font-size: .75em; background: var(--moutarde); color: #1f3d34; border-radius: 6px; padding: 1px 4px; white-space: nowrap; }
@media (min-width: 821px) { .page-exemple { flex-basis: 195px; } }
.premiers-retours { margin: 18px 0 4px; display: grid; gap: 10px; }
.premiers-retours blockquote { margin: 0; padding: 10px 12px; background: var(--papier-2); border-radius: 12px; font-size: .92rem; }
.premiers-retours blockquote p { margin: 0 0 4px; }
.premiers-retours footer { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--encre-douce); font-weight: 700; }
.premiers-retours footer img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--moutarde); flex: none; }
.premiers-retours .retours-note { font-size: .8rem; color: var(--encre-douce); margin: 0; }
@media (max-width: 820px) { .mp-fiche { padding: 4% 6% 1%; } .mp-h2 { font-size: 1.7em; } .mp-barres i { height: 3px; } }

/* Hors zone Audible (<html data-audible="non"> posé par le Worker, #139) : pas d'offre Audible, le livre papier à la place */
.livre .hors-audible { display: none; }
html[data-audible="non"] .bandeau-audible, html[data-audible="non"] .livre a[data-clic^="audible"] { display: none; }
html[data-audible="non"] .livre .hors-audible { display: inline; }
html[data-audible="non"] .livre .pastille-audio { display: none; }
