/* Cafard et le travail — maquette 2027
   Aucune police ni ressource externe : piles de polices système. */

:root {
  --nuit: #0c0907;
  --nuit-2: #15100c;
  --chitine: #3a2416;
  --chitine-2: #5a3720;
  --ambre: #f5a524;
  --ambre-2: #ffcf6e;
  --braise: #ff5a36;
  --coeur: #ff4f7b;
  --papier: #f4ead9;
  --texte: #efe6d8;
  --texte-doux: #bfb2a0;
  --ligne: rgba(245, 165, 36, .22);
  --carte: rgba(255, 240, 220, .045);
  --carte-bord: rgba(255, 230, 200, .12);
  --rayon: 18px;
  --titre: "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --corps: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--texte);
  font: 17px/1.6 var(--corps);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ambre-2); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saut { position: absolute; left: -999px; top: 8px; background: var(--ambre); color: #000; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.saut:focus { left: 8px; }

.conteneur { width: min(1180px, 100% - 32px); margin-inline: auto; }
.etroit { width: min(760px, 100% - 32px); margin-inline: auto; }

/* ---------- Bandeau maquette ---------- */
.bandeau-maquette {
  background: repeating-linear-gradient(-45deg, #2a1a0c 0 12px, #23160a 12px 24px);
  color: var(--ambre-2);
  font: 600 13px/1.4 var(--corps);
  text-align: center;
  padding: 6px 16px;
  border-bottom: 1px solid var(--ligne);
}

/* Étiquette « À VALIDER » */
.av {
  display: inline-block;
  font: 700 11px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #1a1000;
  background: var(--ambre);
  padding: 4px 7px;
  border-radius: 6px;
  vertical-align: middle;
  white-space: nowrap;
}
.av.rouge { background: var(--braise); color: #fff; }
.exemple { font: 600 11px/1 var(--mono); color: var(--texte-doux); border: 1px dashed var(--texte-doux); padding: 3px 6px; border-radius: 6px; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 9, 7, .78);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--carte-bord);
}
.entete .conteneur { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texte); margin-right: auto; }
.marque img { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(245,165,36,.45)); }
.marque b { font: 700 20px/1 var(--titre); letter-spacing: .02em; }
.marque small { display: block; font: 500 11px/1.2 var(--corps); color: var(--texte-doux); letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--texte); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(245,165,36,.12); color: var(--ambre-2); }
.nav .ancien { border: 1px dashed var(--ambre); color: var(--ambre-2); }
.nav .voter { background: linear-gradient(135deg, var(--coeur), var(--braise)); color: #fff; box-shadow: 0 6px 22px -8px var(--coeur); }
.nav .voter:hover { color: #fff; filter: brightness(1.1); background: linear-gradient(135deg, var(--coeur), var(--braise)); }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 12px;
    background: var(--carte); border: 1px solid var(--carte-bord); color: var(--texte);
    font-size: 22px; cursor: pointer;
  }
  .nav {
    position: absolute; inset: 100% 0 auto 0; visibility: hidden;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: rgba(12, 9, 7, .97);
    padding: 16px; border-bottom: 1px solid var(--carte-bord);
    transform: translateY(-8px); opacity: 0; transition: transform .3s ease, opacity .3s ease, visibility .3s;
    max-height: calc(100vh - 64px); overflow: auto;
  }
  .nav.ouvert { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 16px; font-size: 17px; border-radius: 12px; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 700 16px/1.2 var(--corps); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ambre { background: var(--ambre); color: #1c1000; box-shadow: 0 10px 30px -10px var(--ambre); }
.btn-ambre:hover { color: #000; background: var(--ambre-2); }
.btn-coeur { background: linear-gradient(135deg, var(--coeur), var(--braise)); color: #fff; box-shadow: 0 10px 30px -10px var(--coeur); }
.btn-coeur:hover { color: #fff; }
.btn-ligne { border-color: var(--carte-bord); color: var(--texte); background: var(--carte); }
.btn-ligne:hover { border-color: var(--ambre); color: var(--ambre-2); }

/* ---------- Héros ---------- */
.heros {
  position: relative; isolation: isolate;
  min-height: calc(100svh - 64px);
  display: grid; align-items: center;
  overflow: hidden;
  padding: 48px 0 96px;
}
.heros::before {
  content: ""; position: absolute; inset: -20%; z-index: -2;
  background:
    radial-gradient(40% 40% at 70% 45%, rgba(245,165,36,.28), transparent 70%),
    radial-gradient(35% 35% at 20% 80%, rgba(255,79,123,.16), transparent 70%),
    radial-gradient(60% 60% at 50% 120%, rgba(90,55,32,.6), transparent 70%);
  animation: respire 12s ease-in-out infinite alternate;
}
@keyframes respire { to { transform: scale(1.08) translate(-2%, 1%); } }
.braises { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.braises span {
  position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--ambre-2); box-shadow: 0 0 10px 2px var(--ambre);
  opacity: 0; animation: monte linear infinite;
}
@keyframes monte {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: .9; }
  100% { transform: translate(var(--dx, 20px), -105vh) scale(.3); opacity: 0; }
}
.heros-grille { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.surtitre { font: 700 13px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ambre); margin: 0 0 18px; }
.heros h1 {
  font: 800 clamp(54px, 10vw, 148px)/.86 var(--titre);
  letter-spacing: -.02em; margin: 0 0 24px; text-transform: uppercase;
}
.heros h1 .l { display: inline-block; opacity: 0; transform: translateY(.4em) rotate(4deg); animation: lettre .7s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes lettre { to { opacity: 1; transform: none; } }
.heros h1.fini .l { animation: none; opacity: 1; transform: none; }
.heros h1 .dore, .heros h1 .dore .l {
  background: linear-gradient(180deg, var(--ambre-2), var(--ambre) 55%, var(--braise));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.heros h1 .dore { filter: drop-shadow(0 0 28px rgba(245,165,36,.35)); }
.bulle {
  position: relative; max-width: 620px;
  background: var(--carte); border: 1px solid var(--carte-bord); border-radius: var(--rayon);
  padding: 20px 22px; margin: 0 0 28px; font-size: 18px;
}
.bulle p { margin: 0 0 .7em; }
.bulle p:last-of-type { margin-bottom: 0; }
.bulle .av { position: absolute; top: -10px; right: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.mascotte { position: relative; justify-self: center; width: min(440px, 80vw); aspect-ratio: 1; }
.mascotte::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,165,36,.5), rgba(245,165,36,0) 65%);
  filter: blur(10px); animation: halo 4s ease-in-out infinite;
}
@keyframes halo { 50% { transform: scale(1.08); opacity: .75; } }
.mascotte img { position: relative; width: 100%; animation: flotte 6s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes flotte { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
.mascotte .coeur-flottant {
  position: absolute; right: 6%; top: 10%; width: 64px; height: 64px;
  color: var(--coeur); filter: drop-shadow(0 0 16px var(--coeur));
  animation: bat 1.4s ease-in-out infinite;
}
@keyframes bat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }

.defile {
  position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden;
  border-block: 1px solid var(--ligne); background: rgba(12,9,7,.6);
  font: 700 15px/1 var(--titre); letter-spacing: .14em; text-transform: uppercase; color: var(--ambre-2);
}
.defile div { display: flex; width: max-content; animation: defile 40s linear infinite; }
.defile span { padding: 14px 28px; white-space: nowrap; }
.defile span::after { content: "✦"; margin-left: 56px; color: var(--coeur); }
@keyframes defile { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .heros-grille { grid-template-columns: 1fr; gap: 8px; }
  .mascotte { order: -1; width: min(260px, 64vw); }
  .heros { padding-top: 24px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
.section-titre { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.section h2, .page-titre h1 {
  font: 800 clamp(36px, 6vw, 72px)/.95 var(--titre); text-transform: uppercase; letter-spacing: -.01em; margin: 0;
}
.section h2 em, .page-titre h1 em { font-style: normal; color: var(--ambre); }
.chapo { color: var(--texte-doux); font-size: 19px; max-width: 640px; margin: 12px 0 0; }

.page-titre { padding: clamp(56px, 9vw, 110px) 0 40px; position: relative; overflow: hidden; }
.page-titre::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 80% at 85% 0%, rgba(245,165,36,.18), transparent 70%);
}

.grille { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.carte {
  background: var(--carte); border: 1px solid var(--carte-bord); border-radius: var(--rayon);
  padding: 24px; position: relative; transition: transform .3s ease, border-color .3s;
}
a.carte { text-decoration: none; color: var(--texte); display: block; }
a.carte:hover { transform: translateY(-4px); border-color: var(--ambre); }
.carte h3 { font: 700 22px/1.15 var(--titre); margin: 8px 0 8px; }
.carte p { margin: 0; color: var(--texte-doux); }
.carte .num { font: 800 54px/1 var(--titre); color: transparent; -webkit-text-stroke: 1px var(--ambre); }
.carte .fleche { position: absolute; right: 20px; top: 20px; color: var(--ambre); font-size: 22px; transition: transform .3s; }
a.carte:hover .fleche { transform: translate(4px, -4px); }

/* ---------- Apparition au défilement ---------- */
.apparait { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.apparait.vu { opacity: 1; transform: none; }

/* ---------- Frise ---------- */
.frise { position: relative; padding-left: 0; }
.frise::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%);
  background: var(--ligne);
}
.frise .progression {
  position: absolute; left: 50%; top: 0; width: 2px; transform: translateX(-50%);
  height: var(--p, 0%);
  background: linear-gradient(var(--ambre), var(--coeur));
  box-shadow: 0 0 18px var(--ambre);
}
.etape { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-bottom: 72px; }
.etape:nth-child(even) .etape-carte { grid-column: 2; }
.etape:nth-child(even) .etape-annee { grid-column: 1; grid-row: 1; text-align: right; }
.etape::before {
  content: ""; position: absolute; left: 50%; top: 22px; width: 18px; height: 18px; border-radius: 50%;
  transform: translateX(-50%); background: var(--nuit); border: 3px solid var(--ambre);
  box-shadow: 0 0 0 6px rgba(245,165,36,.12); z-index: 1; transition: background .4s;
}
.etape.vu::before { background: var(--ambre); }
.etape-annee {
  font: 800 clamp(56px, 8vw, 112px)/.85 var(--titre); color: transparent;
  -webkit-text-stroke: 1.5px rgba(245,165,36,.75); position: sticky; top: 96px; align-self: start;
}
.etape-annee small { display: block; -webkit-text-stroke: 0; color: var(--texte-doux); font: 600 14px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-top: 10px; }
.etape-carte { background: var(--carte); border: 1px solid var(--carte-bord); border-radius: var(--rayon); padding: 26px; }
.etape-carte h3 { font: 700 clamp(24px, 3vw, 32px)/1.1 var(--titre); margin: 0 0 12px; }
.etape-carte ul { margin: 0; padding: 0; list-style: none; }
.etape-carte li { padding: 10px 0 10px 0; border-top: 1px solid var(--carte-bord); color: var(--texte-doux); }
.etape-carte li:first-child { border-top: 0; }
.etape-carte li b { color: var(--ambre-2); font: 700 13px/1.4 var(--mono); display: block; letter-spacing: .04em; }
.citation { font: 600 clamp(20px, 2.4vw, 26px)/1.3 var(--titre); color: var(--texte); margin: 18px 0 0; padding-left: 18px; border-left: 3px solid var(--coeur); }
.citation cite { display: block; font: 500 13px/1.4 var(--corps); color: var(--texte-doux); margin-top: 6px; font-style: normal; }
.etape.futur .etape-carte { border-color: var(--coeur); background: linear-gradient(160deg, rgba(255,79,123,.14), rgba(245,165,36,.06)); }
.etape.futur .etape-annee { -webkit-text-stroke-color: var(--coeur); }
.lien-source { font-size: 14px; margin-top: 14px; display: inline-block; }

@media (max-width: 820px) {
  .frise::before, .frise .progression { left: 9px; transform: none; }
  .etape { grid-template-columns: 1fr; gap: 10px; padding-left: 36px; margin-bottom: 48px; }
  .etape::before { left: 0; transform: none; top: 10px; }
  .etape:nth-child(even) .etape-carte, .etape:nth-child(even) .etape-annee { grid-column: 1; text-align: left; grid-row: auto; }
  .etape-annee { position: static; font-size: 56px; }
}

/* Mini-frise d'accueil (défilement horizontal) */
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 20px; scrollbar-color: var(--ambre) transparent; }
.rail .carte { flex: 0 0 min(300px, 82%); scroll-snap-align: start; }
.rail .carte .an { font: 800 46px/1 var(--titre); color: var(--ambre); }

/* ---------- Billet → cœur ---------- */
.metamorphose { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.scene { width: 220px; height: 220px; position: relative; }
.billet {
  position: absolute; inset: 60px 10px; border-radius: 6px;
  background: linear-gradient(135deg, #8db58a, #5d8a5a); border: 2px solid #c9e2c4;
  display: grid; place-items: center; font: 800 32px/1 var(--titre); color: #1f3a1c;
  animation: brule 7s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(0deg, #000 50%, transparent 50%);
  mask-image: linear-gradient(0deg, #000 50%, transparent 50%);
  -webkit-mask-size: 100% 200%; mask-size: 100% 200%;
}
@keyframes brule {
  0%, 15% { -webkit-mask-position: 0 0; mask-position: 0 0; filter: none; }
  45%, 100% { -webkit-mask-position: 0 -100%; mask-position: 0 -100%; filter: sepia(1) brightness(.6); }
}
.flamme { position: absolute; left: 50%; bottom: 52px; width: 120px; height: 40px; transform: translateX(-50%); animation: flamme 7s ease-in-out infinite; }
.flamme::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(ellipse at 50% 100%, var(--ambre-2), var(--braise) 45%, transparent 70%); filter: blur(4px); }
@keyframes flamme {
  0%, 12% { opacity: 0; transform: translate(-50%, 0); }
  20% { opacity: 1; transform: translate(-50%, 0); }
  45% { opacity: 1; transform: translate(-50%, -110px); }
  55%, 100% { opacity: 0; transform: translate(-50%, -110px); }
}
.scene .coeur { position: absolute; inset: 30px; color: var(--coeur); opacity: 0; animation: nait 7s ease-in-out infinite; filter: drop-shadow(0 0 24px var(--coeur)); }
@keyframes nait { 0%, 50% { opacity: 0; transform: scale(.4); } 62% { opacity: 1; transform: scale(1.1); } 70%, 92% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
@media (max-width: 640px) { .metamorphose { grid-template-columns: 1fr; justify-items: center; text-align: left; gap: 16px; } }

/* ---------- Portail ancien site ---------- */
.portail {
  position: relative; overflow: hidden; border-radius: 28px;
  border: 1px solid var(--ligne);
  background:
    linear-gradient(90deg, rgba(12,9,7,.95), rgba(12,9,7,.7) 55%, rgba(12,9,7,.2)),
    url("../img/captures/wp-cafard-1-accueil.png") right top / 60% auto no-repeat,
    var(--nuit-2);
  padding: clamp(28px, 5vw, 64px);
  display: grid; gap: 18px; align-content: center; min-height: 420px;
}
.portail h2 { max-width: 640px; }
.portail p { max-width: 560px; color: var(--texte-doux); margin: 0; }
.portail .tampon {
  position: absolute; right: 24px; bottom: 24px; transform: rotate(-8deg);
  border: 3px solid var(--braise); color: var(--braise); padding: 8px 14px; border-radius: 10px;
  font: 800 18px/1 var(--titre); letter-spacing: .1em; text-transform: uppercase; background: rgba(12,9,7,.7);
}
@media (max-width: 640px) {
  .portail { background: linear-gradient(180deg, rgba(12,9,7,.55), rgba(12,9,7,.97) 45%), url("../img/captures/wp-cafard-1-accueil.png") center top / cover no-repeat, var(--nuit-2); padding-top: 180px; }
  .portail .tampon { top: 20px; bottom: auto; right: 16px; font-size: 14px; }
}
.vignettes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 900px) { .vignettes { grid-template-columns: repeat(2, 1fr); } }
.vignette {
  display: block; padding: 0; border: 1px solid var(--carte-bord); border-radius: 14px; overflow: hidden;
  background: var(--nuit-2); cursor: zoom-in; color: var(--texte); text-align: left; font: inherit;
  transition: transform .3s, border-color .3s;
}
.vignette:hover { transform: translateY(-4px) rotate(-.5deg); border-color: var(--ambre); }
.vignette img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; filter: sepia(.25) contrast(1.05); }
.vignette span { display: block; padding: 10px 12px; font-size: 14px; color: var(--texte-doux); }

dialog.visionneuse { border: 0; padding: 0; background: transparent; max-width: min(1000px, 96vw); max-height: 92vh; }
dialog.visionneuse::backdrop { background: rgba(0,0,0,.85); backdrop-filter: blur(4px); }
dialog.visionneuse img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 10px; }
dialog.visionneuse .fermer { position: sticky; top: 0; float: right; margin: 0 0 8px; }

/* ---------- Contenus ---------- */
.onglets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.onglets button {
  min-height: 44px; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  background: var(--carte); color: var(--texte); border: 1px solid var(--carte-bord); font: 600 15px var(--corps);
}
.onglets button[aria-selected="true"] { background: var(--ambre); color: #1c1000; border-color: var(--ambre); }
.liste-articles { list-style: none; margin: 0; padding: 0; }
.liste-articles li { border-top: 1px solid var(--carte-bord); }
.liste-articles a { display: grid; grid-template-columns: 130px 1fr auto; gap: 16px; align-items: baseline; padding: 16px 4px; text-decoration: none; color: var(--texte); }
.liste-articles a:hover { background: rgba(245,165,36,.06); }
.liste-articles time { font: 600 13px var(--mono); color: var(--ambre); }
.liste-articles .titre { font-weight: 600; }
.liste-articles .tag { font-size: 12px; color: var(--texte-doux); border: 1px solid var(--carte-bord); padding: 2px 8px; border-radius: 999px; }
@media (max-width: 640px) { .liste-articles a { grid-template-columns: 1fr; gap: 4px; } .liste-articles .tag { justify-self: start; } }

.video { text-decoration: none; color: var(--texte); display: block; border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--carte-bord); background: var(--carte); transition: transform .3s, border-color .3s; }
.video:hover { transform: translateY(-4px); border-color: var(--coeur); }
.video .ecran {
  aspect-ratio: 16 / 9; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 30% 30%, var(--c1, #5a3720), var(--c2, #0c0907));
}
.video .ecran::after { content: "▶"; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); font-size: 22px; padding-left: 4px; transition: background .3s; }
.video:hover .ecran::after { background: var(--coeur); }
.video .ecran b { position: absolute; left: 14px; bottom: 10px; font: 800 28px/1 var(--titre); color: rgba(255,255,255,.18); }
.video .info { padding: 16px; }
.video .info h3 { margin: 0 0 4px; font: 700 18px/1.25 var(--titre); }
.video .info p { margin: 0; color: var(--texte-doux); font-size: 14px; }

/* Livre */
.livre-bloc { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.couverture {
  aspect-ratio: 2 / 3; border-radius: 6px 14px 14px 6px; position: relative;
  background: linear-gradient(160deg, #f6e7c8, #d9b77c); color: #2a180c;
  box-shadow: -10px 0 0 -4px #a77d43 inset, 0 30px 60px -20px rgba(245,165,36,.45), 0 0 0 1px rgba(0,0,0,.2);
  padding: 28px 24px; display: flex; flex-direction: column; justify-content: space-between;
  transform: perspective(900px) rotateY(-14deg); transition: transform .6s ease;
}
.couverture:hover { transform: perspective(900px) rotateY(0); }
.couverture h3 { font: 800 40px/.95 var(--titre); text-transform: uppercase; margin: 0; }
.couverture img { width: 70%; align-self: center; }
.couverture small { font: 600 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 760px) { .livre-bloc { grid-template-columns: 1fr; } .couverture { width: min(240px, 70%); margin: 0 auto; } }

/* ---------- Formulaires ---------- */
form .champ { display: grid; gap: 6px; margin-bottom: 16px; }
label { font-weight: 600; }
.aide { font-size: 14px; color: var(--texte-doux); }
input[type="text"], input[type="email"], textarea, select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  background: rgba(0,0,0,.35); color: var(--texte); border: 1px solid var(--carte-bord); font: 16px/1.4 var(--corps);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--ambre); outline: none; box-shadow: 0 0 0 3px rgba(245,165,36,.25); }
.pot-de-miel { position: absolute; left: -5000px; }
.case { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.case input { width: 22px; height: 22px; accent-color: var(--ambre); margin-top: 2px; flex: none; }
.robot {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  border: 1px dashed var(--carte-bord); background: rgba(0,0,0,.25); font-size: 15px; margin-bottom: 16px;
}
.robot .roue { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--carte-bord); border-top-color: var(--ambre); animation: tourne 1s linear infinite; flex: none; }
.robot.ok .roue { animation: none; border-color: #6fd28a; background: #6fd28a; }
@keyframes tourne { to { transform: rotate(360deg); } }
.message-retour { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(111,210,138,.12); border: 1px solid rgba(111,210,138,.4); display: none; }
.message-retour.visible { display: block; }
.compteur { font-size: 13px; color: var(--texte-doux); text-align: right; }

/* Commentaires */
.commentaire { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--carte-bord); }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 800 18px var(--titre); background: linear-gradient(135deg, var(--chitine-2), var(--chitine)); color: var(--ambre-2); border: 1px solid var(--ligne); }
.commentaire header { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; }
.commentaire header b { font-weight: 700; }
.commentaire header time { font-size: 13px; color: var(--texte-doux); }
.commentaire p { margin: 6px 0 8px; }
.commentaire .gestes { display: flex; gap: 14px; font-size: 14px; }
.commentaire .gestes button { background: none; border: 0; color: var(--texte-doux); cursor: pointer; font: inherit; padding: 4px 0; min-height: 32px; }
.commentaire .gestes button:hover { color: var(--coeur); }
.commentaire .reponse { margin-top: 10px; padding: 12px 14px; border-left: 3px solid var(--ambre); background: rgba(245,165,36,.06); border-radius: 0 10px 10px 0; }
.commentaire .badge-cafard { font-size: 12px; background: var(--ambre); color: #1c1000; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.file-moderation { font-size: 15px; }
.file-moderation table { width: 100%; border-collapse: collapse; }
.file-moderation th, .file-moderation td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--carte-bord); vertical-align: top; }
.file-moderation th { font: 600 12px var(--mono); color: var(--texte-doux); text-transform: uppercase; letter-spacing: .06em; }
.score { font: 700 13px var(--mono); padding: 2px 8px; border-radius: 999px; }
.score.bas { background: rgba(111,210,138,.18); color: #8fe3a5; }
.score.haut { background: rgba(255,90,54,.18); color: #ff9a82; }
.tableau-defile { overflow-x: auto; }

/* Vote */
.urne {
  border-radius: 28px; padding: clamp(24px, 5vw, 56px); position: relative; overflow: hidden;
  background: radial-gradient(70% 90% at 100% 0%, rgba(255,79,123,.25), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(245,165,36,.18), transparent 60%), var(--nuit-2);
  border: 1px solid rgba(255,79,123,.35);
}
.grand-chiffre { font: 800 clamp(64px, 12vw, 140px)/.9 var(--titre); background: linear-gradient(100deg, var(--ambre-2), var(--coeur)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.choix-vote { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.choix-vote label {
  border: 1px solid var(--carte-bord); border-radius: 16px; padding: 16px; cursor: pointer; background: var(--carte);
  display: grid; gap: 6px; font-weight: 600; transition: border-color .2s, background .2s;
}
.choix-vote label small { font-weight: 400; color: var(--texte-doux); font-size: 14px; }
.choix-vote input { position: absolute; opacity: 0; }
.choix-vote label:has(input:checked) { border-color: var(--coeur); background: rgba(255,79,123,.12); }
.choix-vote label:has(input:focus-visible) { outline: 3px solid var(--ambre); outline-offset: 2px; }
@media (max-width: 640px) { .choix-vote { grid-template-columns: 1fr; } }

/* Questions (mentions légales) */
.questions details { border: 1px solid var(--carte-bord); border-radius: 14px; margin-bottom: 12px; background: var(--carte); }
.questions summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; color: var(--ambre); font-size: 22px; line-height: 1; }
.questions details[open] summary::after { content: "–"; }
.questions ol { margin: 0; padding: 0 18px 18px 40px; color: var(--texte-doux); }
.questions li { margin-bottom: 8px; }

/* Encadrés */
.encadre { border-left: 4px solid var(--ambre); background: rgba(245,165,36,.07); padding: 18px 20px; border-radius: 0 14px 14px 0; }
.encadre.rose { border-color: var(--coeur); background: rgba(255,79,123,.07); }
.encadre h3 { margin: 0 0 8px; font: 700 20px var(--titre); }
.encadre ul { margin: 0; padding-left: 20px; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--carte-bord); padding: 56px 0 40px; margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(58,36,22,.35)); }
.pied .grille { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 760px) { .pied .grille { grid-template-columns: 1fr; } }
.pied h2 { font: 700 15px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ambre); margin: 0 0 12px; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 8px; }
.pied a { color: var(--texte); text-decoration: none; }
.pied a:hover { color: var(--ambre-2); }
.pied .bas { margin-top: 40px; font-size: 14px; color: var(--texte-doux); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.one-love { font: 800 clamp(48px, 9vw, 120px)/.9 var(--titre); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(245,165,36,.45); margin: 0 0 24px; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .apparait { opacity: 1; transform: none; }
  .heros h1 .l { opacity: 1; transform: none; }
  .scene .coeur { opacity: 1; }
  .billet, .flamme { display: none; }
}

/* Utilitaires (aucun style en ligne : CSP stricte) */
.sans-haut { padding-top: 0 !important; }
.mt { margin-top: 16px; }
.section h2.h2-moyen, h2.h2-moyen, legend.h2-moyen { font: 800 clamp(28px, 4.5vw, 52px)/1 var(--titre); text-transform: uppercase; margin: 0 0 16px; }
fieldset.sans-cadre { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.video .ecran.v2 { --c1: #7a2b3f; --c2: #120a0c; }
.video .ecran.v3 { --c1: #8a5a12; --c2: #140d05; }
.video .ecran.v4 { --c1: #2f4a5c; --c2: #080c10; }
figure.carte { margin: 0; }
figure.carte .citation { margin: 0 0 10px; }
code { font-family: var(--mono); font-size: .9em; background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 5px; }
/* Visionneuse : captures pleine page, défilement dans la fenêtre */
dialog.visionneuse { width: min(1000px, 96vw); overflow: auto; }
dialog.visionneuse img { width: 100%; max-height: none; }
.nav .voter[aria-current="page"] { background: linear-gradient(135deg, var(--coeur), var(--braise)); color: #fff; outline: 2px solid var(--ambre-2); outline-offset: 2px; }
