/* Tell Ted — « the evidence file ». Couleurs : _fabrication/ateliers_video/tell_ted/DESIGN.md */
:root {
  --papier: #F3ECDF; --papier2: #E8DDC8; --encre: #141F33; --encre2: #3A4A63;
  --kraft: #D5C4A3; --kraftClair: #E3D7BF; --kraftFonce: #8A7656;
  --rouge: #C7362B; --or: #C9A04B; --blanc: #FFFDF8; --nuit: #0E1726;
  --rayon: 12px; --sur: "Source Sans 3", system-ui, sans-serif;  /* surtitres : gras capitales espacées (SOCLE.md § 2) */
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--encre); font: 17px/1.5 "Source Sans 3", system-ui, sans-serif;
  background: var(--papier);
  background-image: linear-gradient(var(--papier2) 1px, transparent 1px), linear-gradient(90deg, var(--papier2) 1px, transparent 1px);
  background-size: 28px 28px;
}
main { max-width: 560px; margin: 0 auto; padding: 32px 16px 48px; }
h1, h3 { font-family: Oswald, sans-serif; font-weight: 600; margin: 0; }
a { color: inherit; }

.tete { text-align: center; }
.ted { width: 112px; height: 112px; border-radius: 50%; border: 4px solid var(--or); box-shadow: 0 6px 18px rgb(20 31 51 / .18); }
.tete h1 { font-size: 40px; letter-spacing: .02em; margin-top: 10px; }
.promesse { margin: 2px 0 12px; color: var(--encre2); }

.actions { display: grid; gap: 12px; margin: 32px 0 0; }
.bouton { display: block; text-align: center; text-decoration: none; font: 600 19px Oswald, sans-serif;
  padding: 14px 16px; border-radius: var(--rayon); background: var(--blanc); border: 2px solid var(--encre);
  box-shadow: 4px 4px 0 var(--encre); transition: transform .12s, box-shadow .12s; }
.bouton:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--encre); }
.bouton small { display: block; font: 400 14px "Source Sans 3", sans-serif; color: var(--encre2); }
.bouton.principal { background: var(--encre); color: var(--papier); box-shadow: 4px 4px 0 var(--or); }
.bouton.principal small { color: var(--papier2); }
.bouton.bientot { opacity: .6; border-style: dashed; box-shadow: none; }
.bouton.bientot:hover { transform: none; }
[hidden] { display: none !important; }

.surtitre { font: 700 14px var(--sur); text-transform: uppercase; letter-spacing: .16em; color: var(--encre2);
  margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.surtitre::after { content: ""; flex: 1; height: 1.5px; background: var(--kraftFonce); }

.dossier { display: grid; grid-template-columns: 120px 1fr; gap: 16px; background: var(--blanc);
  border: 1px solid var(--papier2); border-left: 6px solid var(--rouge); border-radius: var(--rayon);
  padding: 14px; margin-bottom: 16px; box-shadow: 0 4px 14px rgb(20 31 51 / .08); scroll-margin-top: 12px; }
.dossier:target { outline: 3px solid var(--or); outline-offset: 2px; }
.dossier img { width: 120px; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; background: var(--nuit); }
.numero { font: 700 12px var(--sur); text-transform: uppercase; letter-spacing: .16em; color: var(--rouge); margin: 0 0 2px; }
.dossier h3 { font-size: 21px; line-height: 1.2; }
.ligne { margin: 6px 0 10px; font-size: 15px; color: var(--encre2); }
.voir { font: 700 14px var(--sur); text-transform: uppercase; letter-spacing: .08em; }
.choses { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.etiquette { display: block; text-decoration: none; background: var(--kraftClair); border: 1.5px solid var(--kraftFonce);
  border-radius: 6px 6px 6px 18px; padding: 8px 12px 8px 30px; position: relative; transition: background .12s; }
.etiquette::before { content: ""; position: absolute; left: 10px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: var(--papier); border: 2px solid var(--kraftFonce); }
.etiquette:hover { background: var(--kraft); }
.etiquette:has(.vu) { padding-left: 84px; min-height: 80px; }
.etiquette:has(.vu)::before { display: none; }
.etiquette .vu { position: absolute; left: 8px; top: 50%; margin-top: -32px; width: 64px; height: 64px;
  border-radius: 6px; object-fit: cover; border: 1.5px solid var(--kraftFonce); background: var(--papier); }
.etiquette .sur { display: block; font: 700 11px var(--sur); text-transform: uppercase; letter-spacing: .1em; color: var(--encre2); }
.etiquette .nom { display: block; font: 600 17px Oswald, sans-serif; }
.etiquette .ou { display: block; font-size: 13px; font-weight: 600; color: var(--rouge); }

.vers-livre { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--encre2); }
.dans-le-livre { margin: 0; padding-left: 18px; font-size: 14px; display: grid; gap: 3px; }
.apercu-titre { font: 700 13px var(--sur); text-transform: uppercase; letter-spacing: .14em; color: var(--encre2); margin: 18px 0 8px; }
.apercu { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 14px; scroll-snap-type: x mandatory; }
.apercu img { flex: none; width: 46%; height: auto; border-radius: 4px; border: 1px solid var(--papier2);
  box-shadow: 0 4px 12px rgb(20 31 51 / .12); scroll-snap-align: start; background: var(--blanc); }
.reseaux { display: flex; gap: 12px; justify-content: center; margin: 4px 0 0; }
.reseau { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 3px 8px rgb(20 31 51 / .2); transition: transform .12s; }
.reseau:hover { transform: translateY(-2px); }
.reseau svg { width: 22px; height: 22px; fill: #fff; }
.reseau.youtube { background: #FF0000; }
.reseau.instagram { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.reseau.tiktok { background: #000; box-shadow: -2px -2px 0 #25F4EE, 2px 2px 0 #FE2C55; }
.reseau.facebook { background: #0866FF; }
.barre-livre { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(528px, calc(100% - 24px));
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--rayon); text-decoration: none;
  background: var(--nuit); color: var(--papier); box-shadow: 0 8px 24px rgb(0 0 0 / .35); z-index: 10; }
.barre-livre img { width: 36px; height: 54px; object-fit: cover; border-radius: 3px; }
.barre-livre span:nth-child(2) { flex: 1; line-height: 1.2; }
.barre-livre b { font: 600 17px Oswald, sans-serif; color: var(--or); display: block; }
.barre-livre small { font-size: 13px; color: var(--papier2); }
.barre-cta { flex: none; background: var(--or); color: var(--nuit); font: 600 18px Oswald, sans-serif; padding: 10px 16px;
  border-radius: 10px; border: 2px solid var(--papier); box-shadow: 0 0 0 0 rgb(201 160 75 / .7); animation: pouls 2s ease-out infinite; }
.barre-livre:hover .barre-cta { background: #E0B75C; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgb(201 160 75 / .7); } 70% { box-shadow: 0 0 0 12px rgb(201 160 75 / 0); } 100% { box-shadow: 0 0 0 0 rgb(201 160 75 / 0); } }
main { padding-bottom: 96px; }
.vitrine { background: radial-gradient(ellipse at 50% 35%, var(--blanc) 0%, var(--kraftClair) 70%, var(--kraft) 100%);
  border-radius: var(--rayon); padding: 18px 12px 12px; border: 1px solid var(--kraft); }
.scene { position: relative; height: clamp(300px, 92vw, 440px); overflow: hidden; display: grid; place-items: center; perspective: 1400px; user-select: none; }
.livre-3d { position: relative; width: 230px; transform: rotateY(-24deg) rotateX(6deg) rotateZ(-2deg); transform-style: preserve-3d;
  animation: flotte 5s ease-in-out infinite; }
.livre-3d img { display: block; width: 100%; height: auto; border-radius: 2px 5px 5px 2px;
  box-shadow: inset 4px 0 6px rgb(0 0 0 / .3), 24px 30px 40px rgb(20 31 51 / .35), 6px 8px 12px rgb(20 31 51 / .25); }
.livre-3d::before { content: ""; position: absolute; top: 3px; bottom: 3px; right: -16px; width: 16px;
  background: repeating-linear-gradient(90deg, #f7f2e7 0 2px, #e3dccb 2px 3px); transform: rotateY(90deg); transform-origin: left; }
.livre-3d::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 10px;
  background: linear-gradient(90deg, rgb(0 0 0 / .35), rgb(255 255 255 / .15) 70%, transparent); border-radius: 2px 0 0 2px; }
@keyframes flotte { 50% { transform: rotateY(-18deg) rotateX(4deg) rotateZ(-2deg) translateY(-8px); } }
.grande { position: absolute; inset: 0; margin: auto; height: 100%; width: auto; max-width: calc(100% - 8px); object-fit: contain;
  border-radius: 4px; box-shadow: 0 14px 28px rgb(20 31 51 / .3); animation: apparait .3s ease-out; }
@keyframes apparait { from { opacity: 0; transform: scale(.97); } }
.fleche { position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgb(255 253 248 / .9); color: var(--encre); font: 600 28px/1 Oswald, sans-serif; cursor: pointer;
  box-shadow: 0 3px 10px rgb(20 31 51 / .2); }
.fleche.g { left: 0; } .fleche.d { right: 0; }
.legende { text-align: center; font: 600 16px Oswald, sans-serif; margin: 10px 0 10px; min-height: 22px; }
.vignettes { display: flex; justify-content: center; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x mandatory; }
.vignettes button { flex: none; padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; line-height: 0;
  cursor: pointer; scroll-snap-align: start; opacity: .75; }
.vignettes button[aria-selected="true"] { border-color: var(--rouge); opacity: 1; }
.vignettes img { display: block; height: 78px; width: auto; border-radius: 4px; }
.grande.ouvert { box-shadow: none; border-radius: 0; }
.fiche-livre { margin: 18px 0 16px; }
.fiche-livre h3 { font-size: 26px; }
.fiche-livre .ligne { margin: 4px 0 8px; }
.achat { display: block; text-align: center; text-decoration: none; background: var(--or); color: var(--nuit);
  border: 2px solid var(--nuit); border-radius: var(--rayon); padding: 16px; box-shadow: 5px 5px 0 var(--nuit);
  transition: transform .12s, box-shadow .12s; }
.achat:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--nuit); }
.achat-haut { display: block; font: 600 26px Oswald, sans-serif; letter-spacing: .01em; }
.achat-bas { display: block; font-size: 14px; font-weight: 600; opacity: .8; }
.rassure { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px;
  font-size: 13px; color: var(--encre2); }
.rassure li::before { content: "\2713  "; color: var(--rouge); font-weight: 700; }
.caisse-bientot { text-align: center; font-size: 13px; color: var(--rouge); margin: 6px 0 0; }
footer { margin-top: 32px; font-size: 13px; color: var(--encre2); text-align: center; }
.divulgation { background: var(--kraftClair); border-radius: 8px; padding: 10px 12px; text-align: left; }

@media (max-width: 420px) {
  .dossier { grid-template-columns: 84px 1fr; gap: 12px; padding: 12px; }
  .dossier img { width: 84px; }
  .dossier h3 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .bouton, .etiquette, .achat { transition: none; } .livre-3d, .barre-cta { animation: none; } }

.fiche { position: fixed; inset: auto 0 8px; width: min(560px, 100% - 16px); max-height: calc(100dvh - 24px); margin: 0 auto; padding: 16px; border: 0; border-radius: var(--rayon);
  background: var(--papier); color: var(--encre); overflow: auto; box-shadow: 0 -10px 40px rgb(14 23 38 / .35); }
.fiche::backdrop { background: rgb(14 23 38 / .6); }
.fiche[open] { animation: monte .25s ease-out; }
@keyframes monte { from { transform: translateY(40px); opacity: 0; } }
.fiche .dossier { margin: 0 0 12px; box-shadow: none; }
.fiche .choses { margin: 0 0 14px; padding: 0; }
.fiche .achat.petit .achat-haut { font-size: 20px; }
.fermer { position: sticky; top: 0; float: right; z-index: 1; width: 44px; height: 44px; margin: -8px -8px 0 8px; border: 0; border-radius: 50%;
  background: var(--blanc); color: var(--encre); font: 600 28px/1 Oswald, sans-serif; cursor: pointer; box-shadow: 0 3px 10px rgb(20 31 51 / .2); }
@media (min-width: 640px) { .fiche { inset: 0; margin: auto; height: fit-content; } }


/* Les sections : chaque partie est une chemise du dossier, avec son onglet. On ne les confond plus. */
.bloc { position: relative; margin: 46px 0 0; padding: 26px 14px 18px; background: var(--blanc);
  border: 1.5px solid var(--kraft); border-radius: 4px var(--rayon) var(--rayon) var(--rayon); box-shadow: 0 6px 0 var(--kraft); }
.onglet { position: absolute; top: -17px; left: -1.5px; margin: 0; padding: 7px 16px 6px; background: var(--encre); color: var(--papier);
  font: 700 13px var(--sur); text-transform: uppercase; letter-spacing: .16em; border-radius: 8px 8px 0 0; line-height: 1.2; }
.bloc-intro { margin: 0 0 12px; font-size: 15px; color: var(--encre2); }
.trouver { margin-top: 30px; }
.livre .onglet { background: var(--rouge); }
.livre { background: var(--papier); }

/* Une histoire en une ligne : la miniature, le titre, et l'objet à un geste. */
.liste, #resultats { display: grid; gap: 10px; }
#resultats:not(:empty) { margin-top: 10px; }
.ligne-h { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: start; background: var(--blanc);
  border: 1px solid var(--papier2); border-left: 5px solid var(--rouge); border-radius: 10px; padding: 8px; }
.lh-image img { display: block; width: 74px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%;
  border-radius: 6px; background: var(--nuit); }
.lh-corps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.lh-titre { text-decoration: none; display: grid; gap: 1px; }
.lh-titre .t { font: 600 17px/1.2 Oswald, sans-serif; }
.lh-titre .lire { font-size: 13px; font-weight: 600; color: var(--encre2); text-decoration: underline; text-underline-offset: 2px; }
.dans-livre { display: inline-block; margin-left: 6px; background: var(--or); color: var(--encre); font: 600 11px Oswald, sans-serif;
  letter-spacing: .04em; padding: 1px 6px; border-radius: 4px; vertical-align: 1px; }
.lh-achat { display: flex; align-items: center; gap: 10px; text-decoration: none; background: var(--kraftClair);
  border: 1.5px solid var(--kraftFonce); border-radius: 8px; padding: 6px 10px 6px 6px; min-height: 48px; transition: background .12s; }
.lh-achat:hover { background: var(--kraft); }
.lh-achat img { flex: none; width: 44px; height: 44px; border-radius: 5px; object-fit: cover; border: 1px solid var(--kraftFonce); }
.lh-achat span:not(.fl) { flex: 1; min-width: 0; line-height: 1.2; }
.lh-achat small { display: block; white-space: nowrap; font: 700 11px var(--sur); text-transform: uppercase; letter-spacing: .1em; color: var(--rouge); }
.lh-achat b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font: 600 15px/1.2 Oswald, sans-serif; }
.lh-achat .fl { flex: none; font-weight: 700; color: var(--rouge); }
.grande-l { grid-template-columns: 110px minmax(0, 1fr); border-left-width: 6px; box-shadow: 0 4px 14px rgb(20 31 51 / .1); }
.grande-l .lh-image img { width: 110px; }
.grande-l .lh-titre .t { font-size: 20px; }
.cherche { display: flex; align-items: center; gap: 8px; margin-top: 14px; background: var(--blanc); border: 2px solid var(--encre);
  border-radius: 999px; padding: 0 14px; min-height: 48px; }
.cherche svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--encre2); stroke-width: 2.5; stroke-linecap: round; }
.cherche input { flex: 1; min-width: 0; border: 0; background: none; font: 17px "Source Sans 3", sans-serif; color: var(--encre); outline: none; padding: 10px 0; }
.cherche:focus-within { box-shadow: 0 0 0 3px var(--or); }
.rien { margin: 0; font-size: 15px; color: var(--encre2); }

/* Le quiz : un vrai jeu, sur fond nuit, une fiche bristol par affirmation, et le tampon du verdict. */
.essai { background: var(--nuit); color: var(--blanc); border-color: var(--nuit); box-shadow: 0 6px 0 var(--or); }
.essai .onglet { background: var(--or); color: var(--nuit); }
.essai-titre { font: 600 34px/1.1 Oswald, sans-serif; color: var(--or); margin: 4px 0 2px; }
.essai-intro { margin: 0 0 12px; color: var(--papier2); font-size: 15px; }
.essai-points { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 12px; }
.essai-points li { flex: 1; height: 8px; border-radius: 4px; background: rgb(255 255 255 / .18); }
.essai-points li.ici { background: var(--papier2); }
.essai-points li.ok { background: #6FBF73; } .essai-points li.non { background: var(--rouge); }
.essai-fiche { position: relative; background: var(--blanc); color: var(--encre); border-radius: 8px; padding: 14px 14px 12px;
  margin-bottom: 12px; overflow: hidden; background-image: linear-gradient(transparent 31px, #E6EEF7 32px); background-size: 100% 32px; }
.essai-num { font: 700 12px var(--sur); text-transform: uppercase; letter-spacing: .14em; color: var(--rouge); margin: 0; }
.essai-dit { font: 600 23px/1.25 Oswald, sans-serif; margin: 6px 0 4px; }
.essai-verdict { font: 600 18px Oswald, sans-serif; margin: 8px 0 2px; }
.essai-verdict.ok { color: #2E7D32; } .essai-verdict.non { color: var(--rouge); }
.essai-explication { margin: 0; font-size: 15px; line-height: 1.45; color: var(--encre2); }
.tampon { position: absolute; top: 12px; right: 10px; transform: rotate(-12deg); border: 3px solid currentColor; border-radius: 6px;
  padding: 2px 10px; font: 600 22px Oswald, sans-serif; text-transform: uppercase; letter-spacing: .08em; opacity: .85;
  animation: tamponne .25s ease-out; }
.tampon.vrai { color: #2E7D32; } .tampon.mythe { color: var(--rouge); }
@keyframes tamponne { from { transform: rotate(-12deg) scale(1.8); opacity: 0; } }
.essai-score { font: 600 64px/1 Oswald, sans-serif; color: var(--encre); margin: 4px 0; }
.essai-score span { font-size: 30px; color: var(--encre2); }
.essai-boutons { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.essai-boutons button { flex: 1; min-height: 56px; border-radius: 10px; font: 600 20px Oswald, sans-serif; cursor: pointer;
  border: 2px solid var(--or); background: transparent; color: var(--blanc); }
.essai-boutons button:hover { background: rgb(201 160 75 / .2); }
.essai-boutons .b-mythe { background: var(--rouge); border-color: var(--rouge); }
.essai-boutons .b-vrai { background: #2E7D32; border-color: #2E7D32; }
.essai-boutons .b-mythe:hover, .essai-boutons .b-vrai:hover { filter: brightness(1.1); }
.essai-boutons .suivant { background: var(--or); color: var(--nuit); }
.essai-boutons .achat { flex: 2; padding: 10px 12px; }
.faq { margin: 22px 0 0; }
.faq h3 { font-size: 20px; margin: 0 0 6px; }
.faq details { border-bottom: 1px solid var(--kraft); }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 700; }
.faq details p { margin: 0 0 12px; color: var(--encre2); }
.grande-l .lh-corps { display: contents; }
.grande-l .lh-achat { grid-column: 1 / -1; padding: 8px 14px 8px 8px; }
.grande-l .lh-achat img { width: 52px; height: 52px; }
.grande-l .lh-achat b { font-size: 17px; }
