/* On s'mate quoi ? — charte tirée de Graphisme/Exemple site.pdf */
:root {
  --creme: #fbf3de;
  --creme-fonce: #f1e6c8;
  --bordeaux: #761829;
  --bordeaux-fonce: #5a1220;
  --marine: #043573;
  --marine-fonce: #022552;
  --encre: #1d2433;
  --blanc: #fffdf7;
  --titre: "Anton", "Arial Narrow", Impact, sans-serif;
  --texte: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rayon: 14px;
  --ombre: 0 4px 14px rgba(4, 53, 115, .12);
  --largeur: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font: 400 1.0625rem/1.7 var(--texte);
}
img { max-width: 100%; height: auto; }
a { color: var(--bordeaux); text-underline-offset: 3px; }
a:hover { color: var(--marine); }
h1, h2, h3 { color: var(--marine); line-height: 1.15; }
h1, h2 { font-family: var(--titre); font-weight: 400; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: .2em 0 .4em; text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 .2em; }
:focus-visible { outline: 3px solid var(--marine); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: -999px; top: 0; background: var(--marine); color: #fff; padding: .5em 1em; z-index: 10; }
.evitement:focus { left: 1rem; }

/* ---------- En-tête ---------- */
.entete {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: end;
  gap: .5rem 1.25rem;
  padding: .5rem 1rem 0;
  max-width: 1400px;
  margin: 0 auto;
}
.logo img { display: block; width: 88px; height: auto; }
.menu ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.menu a, .menu summary {
  display: block;
  background: var(--bordeaux);
  color: var(--creme);
  text-decoration: none;
  font-weight: 500;
  padding: .55rem 1.1rem;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .18);
}
.menu a:hover, .menu a[aria-current], .menu summary:hover, .menu summary.actif, .menu details[open] > summary { background: var(--marine); color: #fff; }

/* Sous-menus (Ciné Mag, Sélections) */
.menu summary { cursor: pointer; list-style: none; user-select: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; display: inline-block; margin-left: .45em; vertical-align: .15em;
  border: .3em solid transparent; border-top-color: currentColor; border-bottom-width: 0; }
.deroulant { position: relative; }
.menu .sous-menu {
  position: absolute; top: 100%; left: 0; z-index: 30; display: block; min-width: 240px;
  margin: 0; padding: .35rem 0; background: var(--marine); box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
.menu .sous-menu a { background: none; box-shadow: none; color: #fff; padding: .55rem 1.1rem; white-space: nowrap; }
.menu .sous-menu a:hover, .menu .sous-menu a[aria-current] { background: var(--bordeaux); }

/* Bouton Compte */
.compte { display: grid; justify-items: center; gap: .1rem; align-self: center; color: var(--marine);
  text-decoration: none; font-size: .9rem; font-weight: 500; }
.compte svg { color: var(--bordeaux); }
.compte:hover span { text-decoration: underline; }
.recherche { display: flex; gap: .5rem; align-self: center; }
.recherche input {
  width: 220px; border: 0; border-radius: 999px; padding: .55rem 1rem;
  font: inherit; font-size: .95rem; background: #fff; box-shadow: var(--ombre);
}
.recherche button {
  width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff;
  box-shadow: var(--ombre); cursor: pointer; color: var(--marine); display: grid; place-items: center;
}

@media (max-width: 900px) {
  .entete { grid-template-columns: auto 1fr auto; align-items: center; position: relative; }
  .menu { grid-column: 1 / -1; order: 3; padding-bottom: 6px; }
  .menu > ul { gap: 5px; }
  .menu a, .menu summary { white-space: nowrap; padding: .45rem .75rem; font-size: .9rem; }
  .deroulant { position: static; }
  .menu .sous-menu { left: 1rem; right: 1rem; top: auto; min-width: 0; }
  .menu .sous-menu a { white-space: normal; padding: .7rem 1rem; }
  .recherche { justify-self: end; }
  .recherche input { width: 100%; max-width: 180px; }
}

/* ---------- Accueil ---------- */
.hero {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
  background: var(--encre) url(/static/video/salle-cinema.webp) center / cover no-repeat;
}
.hero-pastille {
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--creme); border-radius: 999px;
  padding: 1rem 2rem; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  max-width: 100%;
}
.hero-pastille:hover { transform: translateY(-2px); }
.hero-pastille img { width: 70px; height: auto; }
.hero-pastille h1 { margin: 0; font-size: clamp(1.9rem, 5vw, 3rem); color: var(--marine); }
.hero-pastille p { margin: 0; color: var(--bordeaux); font-weight: 500; }
@media (max-width: 560px) {
  .hero { min-height: 340px; }
  .hero-pastille { border-radius: 28px; padding: 1rem 1.25rem; gap: .75rem; }
  .hero-pastille img { width: 46px; }
  .hero-pastille .popcorn { display: none; }
}

.chiffres { background: var(--marine); color: #fff; padding: 2.5rem 1rem; }
.chiffres ul {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--largeur);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center;
}
.chiffres li { font-family: var(--titre); font-size: clamp(1.8rem, 5vw, 3.4rem); line-height: 1.05; text-transform: uppercase; }
@media (max-width: 560px) { .chiffres ul { grid-template-columns: 1fr; } }

.bande-films { display: grid; grid-template-columns: repeat(4, 1fr); }
.bande-films a { text-decoration: none; }
.bande-films .film-affiche { border-radius: 0; aspect-ratio: 3 / 4; font-size: clamp(1.1rem, 2.4vw, 1.9rem); }
@media (max-width: 700px) { .bande-films { grid-template-columns: repeat(2, 1fr); } }

.accroche { max-width: 900px; margin: 0 auto; padding: 2.5rem 1rem; text-align: center; color: var(--marine); font-size: 1.25rem; }
.section-accueil { max-width: var(--largeur); margin: 0 auto; padding: 1rem 1rem 3rem; }
.etapes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; counter-reset: e; }
.etapes li { background: var(--blanc); border-radius: var(--rayon); padding: 1.25rem; box-shadow: var(--ombre); counter-increment: e; }
.etapes li::before { content: counter(e); font-family: var(--titre); font-size: 2.2rem; color: var(--bordeaux); display: block; }

/* Accueil : les derniers articles, en tuiles photo (sous le bandeau bleu) */
.tuile-article { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--marine-fonce); color: var(--creme); }
.tuile-article .une-image { width: 100%; height: 100%; margin: 0; aspect-ratio: auto; object-fit: cover; display: block; filter: saturate(.85); transition: transform .4s ease, filter .4s ease; }
.tuile-article .une-image-vide { display: block; height: 100%; }
.tuile-article::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2, 37, 82, .92) 0%, rgba(2, 37, 82, .35) 45%, transparent 70%); }
.tuile-texte { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1rem; display: grid; gap: .3rem; }
.tuile-texte small { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--creme); opacity: .85; }
.tuile-texte span { font-family: var(--titre); font-size: clamp(1rem, 1.7vw, 1.45rem); line-height: 1.1; text-transform: uppercase; }
.tuile-article:hover .une-image, .tuile-article:focus-visible .une-image { transform: scale(1.04); filter: saturate(1); }
.tuile-article:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: -3px; }

/* Accueil : « Comment ça marche » sur une bande de pellicule */
.etapes.pellicule {
  gap: 0; padding: 26px 10px; border-radius: 4px; background-color: var(--encre);
  background-image:
    radial-gradient(circle at 50% 50%, var(--creme) 0 4px, transparent 4.5px),
    radial-gradient(circle at 50% 50%, var(--creme) 0 4px, transparent 4.5px);
  background-size: 22px 26px, 22px 26px; background-repeat: repeat-x;
  background-position: 0 0, 0 100%;
  grid-template-columns: repeat(4, 1fr);
}
.pellicule li {
  background: var(--creme); border-radius: 2px; box-shadow: none; margin: 0 5px; padding: 1.1rem 1.2rem 1.3rem;
  font-size: .95rem; line-height: 1.5;
}
.pellicule li::before { font-size: 2.6rem; line-height: 1; margin-bottom: .4rem; }
.pellicule li strong { display: block; color: var(--marine); }
@media (max-width: 800px) {
  .etapes.pellicule { grid-template-columns: 1fr; padding: 10px 26px; background-repeat: repeat-y;
    background-size: 26px 22px, 26px 22px; background-position: 0 0, 100% 0; }
  .pellicule li { margin: 5px 0; }
}

/* Accueil : sélections et Ciné Mag en sommaire de magazine */
.sommaires { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; margin-top: 2.5rem; }
.sommaire-mag { list-style: none; margin: 1rem 0; padding: 0; border-top: 2px solid var(--marine); }
.sommaire-mag li { border-bottom: 1px solid rgba(4, 53, 115, .2); }
.sommaire-mag a { display: grid; gap: .15rem; padding: .8rem .2rem; text-decoration: none; color: var(--encre); }
.sommaire-mag a span { font-family: var(--titre); font-size: 1.35rem; text-transform: uppercase; color: var(--marine); line-height: 1.15; }
.sommaire-mag a small { font-size: .9rem; color: var(--encre); opacity: .8; }
.sommaire-mag a:hover span, .sommaire-mag a:focus-visible span { color: var(--bordeaux); }
@media (max-width: 800px) { .sommaires { grid-template-columns: 1fr; } }

/* Pages de rubrique : cartes avec la photo de l'article */
.cartes-photos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.6rem 1.2rem; }
.carte-photo { display: grid; gap: .45rem; text-decoration: none; color: var(--encre); }
.carte-photo .une-image { margin: 0; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; border-radius: 4px; background: var(--marine-fonce); }
.carte-photo .une-image-vide { display: block; aspect-ratio: 3 / 2; border-radius: 4px; background: var(--marine-fonce); }
.carte-photo-titre { font-weight: 600; color: var(--marine); font-size: 1.05rem; line-height: 1.3; }
.carte-photo-desc { font-size: .9rem; line-height: 1.5; opacity: .85; }
.carte-photo:hover .carte-photo-titre, .carte-photo:focus-visible .carte-photo-titre { color: var(--bordeaux); text-decoration: underline; }

/* ---------- Pages de contenu ---------- */
.article, .pilier { max-width: 860px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.pilier { max-width: var(--largeur); }
.centre { text-align: center; padding-top: 3rem; }
.article-tete { border-bottom: 3px solid var(--bordeaux); margin-bottom: 1rem; }
.surtitre { margin: 0; font-weight: 600; text-transform: uppercase; font-size: .85rem; letter-spacing: .08em; }
.surtitre a { text-decoration: none; }
.chapo { font-size: 1.15rem; color: var(--marine); }
.ariane { max-width: var(--largeur); margin: 0 auto; padding: 1rem 1rem 0; font-size: .85rem; }
.ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; }
.ariane li + li::before { content: "›"; margin-right: .3rem; color: var(--bordeaux); }
.ariane [aria-current] { color: #555; }

.films { display: grid; gap: 1rem; }
.film {
  display: grid; grid-template-columns: 120px 1fr; gap: 1.1rem; align-items: start;
  background: var(--blanc); border-radius: var(--rayon); padding: 1rem; box-shadow: var(--ombre);
}
.film p { margin: .2em 0 0; }
.film-meta { color: var(--bordeaux); font-size: .9rem; font-weight: 500; }
.film-affiche {
  aspect-ratio: 2 / 3; border-radius: 8px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: .6rem;
  background:
    repeating-linear-gradient(90deg, var(--bordeaux) 0 14px, var(--bordeaux-fonce) 14px 28px);
  color: var(--creme); font-family: var(--titre); font-size: 1.05rem; line-height: 1.05; text-transform: uppercase;
  overflow: hidden; word-break: break-word;
}
.film:nth-child(3n+2) .film-affiche, .bande-films a:nth-child(2n) .film-affiche { background: linear-gradient(160deg, var(--marine), var(--marine-fonce)); }
.film:nth-child(3n) .film-affiche { background: linear-gradient(160deg, var(--marine), var(--marine-fonce)); }
.film-affiche small { font-family: var(--texte); font-size: .75rem; opacity: .85; }
@media (max-width: 520px) { .film { grid-template-columns: 84px 1fr; gap: .8rem; } .film-affiche { font-size: .85rem; } }

.cta {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
  margin: 2.5rem 0; padding: 1.25rem 1.5rem; border-radius: var(--rayon);
  background: var(--marine); color: #fff;
}
.cta p { margin: 0; }
.cta-titre { font-family: var(--titre); font-size: 1.5rem; text-transform: uppercase; }
@media (max-width: 640px) { .cta { grid-template-columns: 1fr; text-align: center; } .cta img { margin: 0 auto; } }
.bouton {
  display: inline-block; background: var(--bordeaux); color: var(--creme); text-decoration: none;
  font-weight: 600; padding: .75rem 1.3rem; border-radius: 999px; border: 0; font: inherit; font-weight: 600; cursor: pointer;
}
.bouton:hover { background: var(--creme); color: var(--bordeaux); }
.bouton.secondaire { background: transparent; color: var(--marine); box-shadow: inset 0 0 0 2px var(--marine); }

.voir-aussi ul, .rubrique ul { padding-left: 1.2rem; }
.cartes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.carte {
  display: flex; flex-direction: column; gap: .3rem; height: 100%;
  background: var(--blanc); border-radius: var(--rayon); padding: 1rem 1.1rem; box-shadow: var(--ombre);
  text-decoration: none; color: var(--encre); font-size: .92rem; border-top: 5px solid var(--bordeaux);
}
.carte:hover { border-top-color: var(--marine); }
.carte-titre { font-weight: 600; color: var(--marine); font-size: 1.05rem; }
.rubriques { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.rubrique { background: var(--blanc); border-radius: var(--rayon); padding: 0 1.25rem 1.25rem; box-shadow: var(--ombre); }
.rubrique h2 a { color: var(--marine); text-decoration: none; }
.lien-fleche { font-weight: 600; }
.lien-fleche::after { content: " →"; }

/* ---------- Questionnaire ---------- */
.quiz { max-width: 760px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.quiz-etape { background: var(--blanc); border-radius: var(--rayon); padding: 1.5rem; box-shadow: var(--ombre); }
.quiz-etape[hidden] { display: none; }
.quiz fieldset { border: 0; padding: 0; margin: 0; }
.quiz legend { font-family: var(--titre); font-size: 1.8rem; color: var(--marine); text-transform: uppercase; margin-bottom: .8rem; }
.choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.choix label {
  display: flex; align-items: center; gap: .5rem; cursor: pointer;
  border: 2px solid var(--creme-fonce); border-radius: 12px; padding: .8rem 1rem; font-weight: 500;
}
.choix input { accent-color: var(--bordeaux); }
.choix label:has(input:checked) { border-color: var(--bordeaux); background: rgba(118, 24, 41, .08); }
.quiz-progression { height: 8px; background: var(--creme-fonce); border-radius: 99px; margin: 0 0 1rem; overflow: hidden; }
.quiz-progression span { display: block; height: 100%; background: var(--bordeaux); width: 0; transition: width .25s; }
.quiz-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; flex-wrap: wrap; }
.resultats .films { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.note { font-size: .9rem; color: #555; }

/* ---------- Formulaires ---------- */
.formulaire { display: grid; gap: 1rem; max-width: 560px; }
.formulaire label { font-weight: 500; display: grid; gap: .3rem; }
.formulaire input, .formulaire textarea, .formulaire select {
  font: inherit; padding: .65rem .8rem; border-radius: 10px; border: 2px solid var(--creme-fonce); background: #fff;
}

/* ---------- Pied de page ---------- */
.pied { background: var(--bordeaux); color: var(--creme); padding: 2.5rem 1rem 1rem; margin-top: 2rem; }
.pied a { color: var(--creme); }
.pied-grille { max-width: var(--largeur); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied-titre { font-family: var(--titre); font-size: 1.4rem; text-transform: uppercase; margin: 0 0 .4rem; }
.pied-bas { max-width: var(--largeur); margin: 2rem auto 0; font-size: .8rem; opacity: .8; }
@media (max-width: 700px) { .pied-grille { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- Application installable ---------- */
.bandeau-app {
  position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(560px, calc(100% - 24px)); z-index: 20;
  display: grid; grid-template-columns: auto 1fr auto auto; gap: .75rem; align-items: center;
  background: var(--blanc); border-radius: var(--rayon); padding: .7rem .8rem;
  box-shadow: 0 10px 30px rgba(4, 53, 115, .25); border-top: 4px solid var(--bordeaux);
}
.bandeau-app[hidden] { display: none; }
.bandeau-app img { border-radius: 10px; }
.bandeau-app p { margin: 0; font-size: .9rem; line-height: 1.35; }
.bandeau-app .bouton { padding: .5rem 1rem; }
.bandeau-fermer { border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--marine); padding: .2rem .4rem; }
@media (max-width: 420px) { .bandeau-app { grid-template-columns: auto 1fr auto; } .bandeau-app p { grid-column: 2 / 4; } .bandeau-app .bouton { grid-column: 2; justify-self: start; } .bandeau-fermer { grid-row: 1; grid-column: 3; } }
.etapes-app { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); padding: .9rem 1.2rem; margin: .8rem 0; }
.etapes-app summary { cursor: pointer; font-weight: 600; color: var(--marine); }
.etapes-app ol { margin: .8rem 0 0; }
[data-installer][hidden] { display: none; }
@media (display-mode: standalone) { .entete { padding-top: env(safe-area-inset-top); } }

/* Encadrés de rubriques sur une seule ligne (accueil) */
.cartes.cartes-ligne { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .6rem; }
.cartes-ligne .carte { padding: .75rem .8rem; font-size: .8rem; line-height: 1.4; }
.cartes-ligne .carte-titre { font-size: .95rem; line-height: 1.25; }
@media (max-width: 900px) {
  .cartes.cartes-ligne { grid-auto-columns: 190px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem; }
  .cartes-ligne li { scroll-snap-align: start; }
}

/* ---------- Modèle d'article : progression, infos, sommaire, images, sources ---------- */
.progression { position: fixed; top: 0; left: 0; right: 0; height: 5px; z-index: 100; background: rgba(118, 24, 41, .12); }
.progression span { display: block; height: 100%; width: 100%; background: var(--bordeaux); transform-origin: 0 50%; transform: scaleX(0); }
.article-infos { display: flex; flex-wrap: wrap; gap: .2rem .6rem; margin: -.3rem 0 .4rem; font-size: .88rem; color: var(--marine); font-weight: 500; }
.article section[id] { scroll-margin-top: 1.5rem; }
.article h3 { font-family: var(--texte); font-weight: 600; font-size: 1.15rem; }
.sommaire { margin: 1.5rem 0; background: var(--blanc); border-left: 5px solid var(--marine); border-radius: 0 var(--rayon) var(--rayon) 0; box-shadow: var(--ombre); }
.sommaire summary { cursor: pointer; padding: .8rem 1.1rem; font-family: var(--titre); font-size: 1.25rem; color: var(--marine); text-transform: uppercase; }
.sommaire ol { margin: 0; padding: 0 1.2rem 1rem 2.6rem; }
.sommaire li { margin: .15rem 0; }
.sommaire a { text-decoration: none; }
.sommaire a:hover { text-decoration: underline; }
.illustration { margin: 1.5rem auto; max-width: 560px; }
.illustration-une { max-width: 100%; text-align: center; }
.illustration img { display: block; margin: 0 auto; border-radius: var(--rayon); max-height: 520px; width: auto; }
.illustration figcaption { margin-top: .5rem; font-size: .85rem; color: #4a4a4a; text-align: center; }
.illustration .credit { display: block; font-size: .78rem; }
.illustration .credit a { color: inherit; }
.sources { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--creme-fonce); font-size: .9rem; }
.sources h2 { font-size: 1.4rem; }
.sources ul { padding-left: 1.2rem; }
.sources li { margin: .25rem 0; overflow-wrap: anywhere; }
.a-lire { margin-top: 2.5rem; }
.cta-double .cta-boutons { display: flex; flex-direction: column; gap: .6rem; }
.bouton.bouton-clair { background: var(--creme); color: var(--marine); }
.bouton.bouton-clair:hover { background: var(--bordeaux); color: var(--creme); }
@media (max-width: 640px) { .cta-double .cta-boutons { align-items: center; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.film-casting { font-size: .92rem; }
.lien-ba { font-weight: 600; text-decoration: none; }
.lien-ba:hover { text-decoration: underline; }

/* ================================================================
   Novembre 2026 : Movie Quiz immersif, compte, trophées, vidéos, curseur clap
   ================================================================ */
[hidden] { display: none !important; }
/* Accents : uniquement la charte (anciens dorés et bleu nuit remplacés) */
:root { --or: var(--bordeaux); --or-clair: var(--creme); --nuit: var(--marine-fonce); --nuit-carte: var(--marine); }

/* ---------- Vidéos d'arrière-plan (toujours sous un voile : texte lisible) ---------- */
.video-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero { overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(14, 19, 32, .25), rgba(14, 19, 32, .75)); }
.hero-pastille { position: relative; z-index: 1; }

.tete-video {
  position: relative; isolation: isolate; overflow: hidden; margin: .5rem 0 1.5rem;
  border-radius: 18px; min-height: 240px; display: grid; align-items: end;
  background: var(--nuit) url(/static/video/salle-cinema.webp) center / cover;
}
.tete-video::after { /* voile + halo de projecteur */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 90% at 85% 0%, rgba(255, 236, 190, .18), transparent 70%),
    linear-gradient(100deg, rgba(10, 14, 25, .92) 0%, rgba(10, 14, 25, .78) 55%, rgba(10, 14, 25, .45) 100%);
}
.tete-video-texte { position: relative; z-index: 1; padding: 2.2rem clamp(1.2rem, 4vw, 2.6rem) 1.6rem; max-width: 820px; }
.tete-video h1 { color: var(--creme); margin-top: 0; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.tete-video .chapo { color: var(--creme); }
.tete-video .chapo a { color: var(--or-clair); }

/* ---------- Movie Quiz : en-tête plein écran, statique (aplat bordeaux et grain) ---------- */
body.page-quiz { transition: background-color .6s, color .6s; }
.ecran {
  position: relative; text-align: center; color: var(--creme);
  padding: clamp(3rem, 8vw, 6rem) 1rem clamp(2.6rem, 7vw, 5rem);
  background: var(--grain), radial-gradient(ellipse 70% 90% at 50% 20%, var(--bordeaux), var(--bordeaux-fonce));
  box-shadow: 0 0 0 100vmax var(--bordeaux-fonce); clip-path: inset(0 -100vmax); /* toute la largeur, sans bordure */
}
.ecran-texte { max-width: 780px; margin: 0 auto; }
.ecran-texte h1 { color: var(--creme); margin: .15em 0 .35em; font-size: clamp(2.4rem, 7vw, 4.6rem); }
.ecran-texte p { margin: 0; font-size: 1.12rem; }
.ecran-sur { font: 600 .8rem/1 var(--texte); text-transform: uppercase; letter-spacing: .22em; opacity: .75; }

/* ---------- Movie Quiz : questions ---------- */
.page-quiz .quiz { max-width: 1140px; padding: 2rem 1rem 3rem; }
.quiz-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .4rem; }
.quiz-bonjour { margin: 0; font-weight: 600; color: var(--bordeaux); }
.quiz-compteur { margin: 0; font-family: var(--titre); font-size: 1.4rem; color: var(--marine); letter-spacing: .05em; }
.page-quiz .quiz-progression { height: 10px; margin-bottom: 1.4rem; }
.page-quiz .quiz-etape {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.2rem, 3vw, 2.6rem); align-items: center;
  padding: clamp(1.2rem, 3vw, 2.4rem); border-radius: 22px; transition: background-color .6s, color .6s;
}
.quiz-etape.entree { animation: etape-entree .45s ease-out; }
@keyframes etape-entree { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .quiz-etape.entree { animation: none; } }

/* Photo dans un cadre de pellicule */
.quiz-photo { position: relative; margin: 0; background: #111; padding: 18px 0; border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.quiz-photo::before, .quiz-photo::after { content: ""; position: absolute; left: 6px; right: 6px; height: 8px;
  background: radial-gradient(circle, transparent 0) , repeating-linear-gradient(90deg, #fbf3de 0 9px, transparent 9px 20px); border-radius: 2px; opacity: .85; }
.quiz-photo::before { top: 5px; }
.quiz-photo::after { bottom: 5px; }
.quiz-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.quiz-photo figcaption { position: absolute; right: 8px; bottom: 22px; font-size: .62rem; color: #fff; background: rgba(0, 0, 0, .55); padding: .1rem .4rem; border-radius: 3px; }

.page-quiz .quiz legend { display: block; width: 100%; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.1; margin-bottom: 1.1rem; }
.quiz-aide { margin: -.4rem 0 .9rem; color: #555; }
.page-quiz .choix { gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.page-quiz .choix label {
  padding: 1rem 1.1rem; font-size: 1.05rem; background: var(--blanc); line-height: 1.35;
  transition: transform .15s, border-color .2s, background-color .2s, box-shadow .2s;
}
.page-quiz .choix label:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(4, 53, 115, .12); }
.page-quiz .choix label:has(input:checked) { box-shadow: 0 0 0 2px var(--bordeaux); }
.page-quiz .choix small { display: block; font-size: .85rem; font-weight: 400; opacity: .8; }
.choix-genres { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; }
.choix-colonne { grid-template-columns: 1fr !important; }
.champ-libre { display: grid; gap: .35rem; margin-top: 1.1rem; font-weight: 600; color: var(--marine); }
.champ-libre input { font: inherit; font-weight: 400; padding: .8rem 1rem; border-radius: 12px; border: 2px solid var(--creme-fonce); background: #fff; color: var(--encre); }
.champ-libre input:focus { border-color: var(--bordeaux); outline: none; }
.page-quiz .quiz-actions { margin-top: 1.6rem; }
.page-quiz .bouton { padding: .9rem 1.6rem; font-size: 1.05rem; }
.bouton-suivant { margin-left: auto; transition: background-color .6s, color .6s, box-shadow .6s; }

@media (max-width: 760px) {
  .page-quiz .quiz-etape { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
  .quiz-photo { padding: 14px 0; }
  .quiz-photo img { aspect-ratio: 16 / 7; }
  .page-quiz .choix { grid-template-columns: 1fr 1fr; }
  .choix-genres { grid-template-columns: 1fr 1fr !important; }
  .page-quiz .choix label { padding: .8rem .85rem; font-size: .98rem; }
  .page-quiz .quiz-actions .bouton { flex: 1; text-align: center; }
}

/* ---------- Compte obligatoire (porte d'entrée du quiz) ---------- */
.porte {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 2rem; align-items: center;
  background: var(--blanc); border-radius: 22px; padding: clamp(1.2rem, 4vw, 2.4rem);
  box-shadow: 0 0 0 3px var(--or), var(--ombre);
}
.porte h2 { margin-top: 0; }
.porte-clap { width: 96px; height: auto; transform: rotate(-8deg); }
.porte-form label { font-weight: 600; color: var(--marine); }
.porte-ligne { display: flex; gap: .6rem; flex-wrap: wrap; margin: .4rem 0 .6rem; }
.porte-ligne input { flex: 1 1 220px; font: inherit; padding: .8rem 1rem; border-radius: 999px; border: 2px solid var(--creme-fonce); }
@media (max-width: 600px) { .porte { grid-template-columns: 1fr; text-align: center; } .porte-clap { margin: 0 auto; width: 72px; } }

/* ---------- Résultats ---------- */
.page-quiz .resultats .films { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.film-decouverte { box-shadow: 0 0 0 3px var(--or), var(--ombre); }
.film-badge { display: inline-block; margin: 0 0 .3rem !important; background: var(--or-clair); color: var(--nuit); font-size: .75rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: .1rem .55rem; border-radius: 99px; }
.film-liens { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .6rem !important; }
.bouton-vu { font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; border-radius: 99px; padding: .35rem .9rem;
  border: 2px solid var(--marine); background: transparent; color: var(--marine); }
.bouton-vu[aria-pressed="true"] { background: var(--marine); color: #fff; }

/* ---------- Ambiance jour / soir (Movie Quiz) ---------- */
body[data-ambiance="jour"] { background: var(--creme); }
body[data-ambiance="jour"] .bouton-suivant { background: var(--bordeaux); color: var(--creme); box-shadow: 0 6px 18px rgba(118, 24, 41, .3); }
body[data-ambiance="jour"] .bouton-suivant:hover { background: var(--bordeaux-fonce); color: var(--creme); }
body[data-ambiance="soir"] { background: var(--nuit); color: var(--creme); }
body[data-ambiance="soir"] .quiz-etape, body[data-ambiance="soir"] .porte, body[data-ambiance="soir"] .film { background: var(--nuit-carte); color: var(--creme); }
body[data-ambiance="soir"] .quiz legend, body[data-ambiance="soir"] .resultats h2, body[data-ambiance="soir"] .porte h2,
body[data-ambiance="soir"] .film h3, body[data-ambiance="soir"] .quiz-compteur, body[data-ambiance="soir"] .champ-libre { color: var(--creme); }
body[data-ambiance="soir"] .choix label { background: var(--marine-fonce); border-color: rgba(251, 243, 222, .2); color: var(--creme); }
body[data-ambiance="soir"] .choix label:has(input:checked) { background: var(--bordeaux); border-color: var(--creme); box-shadow: 0 0 0 2px var(--creme); }
body[data-ambiance="soir"] .champ-libre input { background: var(--marine-fonce); border-color: rgba(251, 243, 222, .3); color: var(--creme); }
body[data-ambiance="soir"] .note, body[data-ambiance="soir"] .quiz-aide { color: rgba(251, 243, 222, .75); }
body[data-ambiance="soir"] .quiz-bonjour, body[data-ambiance="soir"] .film-meta { color: var(--or-clair); }
body[data-ambiance="soir"] .quiz-progression { background: var(--marine); }
body[data-ambiance="soir"] .quiz-progression span { background: var(--creme); }
body[data-ambiance="soir"] .bouton-suivant { background: var(--bordeaux); color: var(--creme); box-shadow: 0 0 0 2px var(--creme); }
body[data-ambiance="soir"] .bouton-suivant:hover { background: var(--bordeaux-fonce); color: var(--creme); }
body[data-ambiance="soir"] .bouton.secondaire, body[data-ambiance="soir"] .bouton-vu { color: var(--creme); box-shadow: inset 0 0 0 2px var(--creme); border-color: var(--creme); }
body[data-ambiance="soir"] .bouton-vu[aria-pressed="true"] { background: var(--creme); color: var(--nuit); }
/* L'en-tête (logo, menu, recherche, compte) et le fil d'Ariane gardent toujours leurs couleurs normales */
body[data-ambiance] .entete, body[data-ambiance] .ariane { background: var(--creme); box-shadow: 0 0 0 100vmax var(--creme); clip-path: inset(0 -100vmax); }
body[data-ambiance="soir"] main a:not(.bouton) { color: var(--or-clair); }
body[data-ambiance="soir"] main .ariane a { color: var(--bordeaux); }

/* ---------- Confettis et célébration de trophée ---------- */
.confettis { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1000; }
.celebration { /* fenêtre plein écran transparente : les confettis couvrent tout l'écran */
  border: 0; padding: 1rem; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  background: transparent; display: grid; place-items: center; overflow: hidden;
}
.celebration-carte {
  position: relative; z-index: 1; border-radius: 24px; padding: 2rem 2rem 1.5rem; width: min(420px, 100%); text-align: center;
  background: radial-gradient(circle at 50% 30%, #12407f, var(--marine-fonce) 70%); color: #fff;
  box-shadow: 0 0 0 3px var(--or), 0 30px 80px rgba(0, 0, 0, .5);
}
.celebration .confettis { z-index: 2; }
.celebration::backdrop { background: rgba(7, 9, 15, .7); backdrop-filter: blur(3px); }
.celebration h2 { color: var(--or-clair); margin: .1em 0 .2em; font-size: 2.4rem; }
.celebration-sur { margin: 0; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; opacity: .85; }
.celebration-trophee { width: 140px; margin: 0 auto .5rem; position: relative; }
.celebration-trophee::before { content: ""; position: absolute; inset: -40px; z-index: -1; border-radius: 50%;
  background: repeating-conic-gradient(rgba(246, 215, 122, .35) 0 10deg, transparent 10deg 20deg); animation: rayons 8s linear infinite;
  mask: radial-gradient(circle, #000 30%, transparent 70%); }
.celebration-trophee svg { width: 100%; height: auto; animation: trophee-pop .7s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .4)); }
.celebration .bouton.secondaire { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.celebration-boutons { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 0; }
@keyframes trophee-pop { from { transform: scale(.2) rotate(-15deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rayons { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .celebration-trophee svg, .celebration-trophee::before { animation: none; } }

/* ---------- Page Mon profil ---------- */
.profil-stats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.profil-stats li { background: var(--marine); color: #fff; border-radius: var(--rayon); padding: 1rem; text-align: center; }
.profil-stats strong { display: block; font-family: var(--titre); font-weight: 400; font-size: 2.4rem; line-height: 1; color: var(--or-clair); }
.trophees { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 1rem; }
.trophee { background: var(--blanc); border-radius: 18px; padding: 1.2rem 1rem; text-align: center; box-shadow: var(--ombre); }
.trophee svg { width: 96px; height: auto; display: block; margin: 0 auto .4rem; filter: grayscale(1) opacity(.35); }
.trophee.obtenu { background: linear-gradient(180deg, var(--creme), var(--blanc)); box-shadow: 0 0 0 2px var(--or), var(--ombre); }
.trophee.obtenu svg { filter: drop-shadow(0 6px 10px rgba(154, 106, 18, .35)); }
.trophee h3 { font-family: var(--titre); font-weight: 400; font-size: 1.5rem; text-transform: uppercase; }
.trophee p { margin: .2rem 0; font-size: .88rem; }
.trophee-etat { font-weight: 600; color: var(--bordeaux); }
.trophee.obtenu .trophee-etat { color: var(--marine); }
.trophee-barre { display: block; height: 6px; background: var(--creme-fonce); border-radius: 99px; margin: .45rem 0 0; overflow: hidden; }
.trophee-barre span { display: block; height: 100%; background: var(--bordeaux); }
.profil-vus { columns: 2 260px; padding-left: 1.2rem; }
.profil-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.compte-cree { background: var(--blanc); border-radius: 22px; padding: 1.5rem 2rem; box-shadow: 0 0 0 3px var(--or), var(--ombre); }
.compte-cree h2 { margin-top: 0; }

/* ---------- Curseur clap (ordinateur) ---------- */
html.curseur-clap, html.curseur-clap * { cursor: url(/static/img/curseur-clap.svg) 3 13, auto; }
html.curseur-clap.clap-ferme, html.curseur-clap.clap-ferme * { cursor: url(/static/img/curseur-clap-ferme.svg) 3 13, auto; }
html.curseur-clap :is(input[type="text"], input[type="email"], input[type="search"], input[type="number"], input:not([type]), textarea) { cursor: text; }
.clac { position: fixed; z-index: 1001; pointer-events: none; font-family: var(--titre); font-size: .95rem; color: var(--or);
  text-shadow: 0 1px 0 #000; animation: clac .45s ease-out forwards; }
.clac::after { content: "Clac !"; }
@keyframes clac { from { opacity: 1; transform: scale(.6) rotate(-10deg); } to { opacity: 0; transform: translate(6px, -14px) scale(1.15) rotate(-4deg); } }
.profil-salut { font-family: var(--titre); font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--bordeaux); text-transform: uppercase; margin: .5rem 0 1rem; }
.page-quiz .quiz-photo { align-self: start; position: sticky; top: 1rem; }
@media (max-width: 760px) { .page-quiz .quiz-photo { position: relative; top: auto; } }
@media (max-width: 760px) { .page-quiz .choix label { padding: .75rem .7rem; gap: .4rem; } }

/* Choix du quiz : case, émoji et texte alignés, texte qui reste dans sa case */
.page-quiz .choix label { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; column-gap: .55rem; }
.page-quiz .choix input { margin: 0; width: 1.05rem; height: 1.05rem; }
.choix-emoji { font-size: 1.15em; line-height: 1; }
.choix-texte { overflow-wrap: break-word; }
.page-quiz .choix-duree label { grid-template-columns: auto minmax(0, 1fr); }
.choix-genres { grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)) !important; }
@media (max-width: 760px) {
  .choix-genres { grid-template-columns: 1fr 1fr !important; }
  .page-quiz .quiz { padding: 1.2rem .75rem 2.5rem; }
  .page-quiz .quiz-etape { padding: .9rem .8rem; }
  .page-quiz .choix { gap: .5rem; }
  .page-quiz .choix label { column-gap: .35rem; padding: .7rem .55rem; font-size: .93rem; }
  .choix-emoji { font-size: 1.05em; }
}
/* Mobile : la carte entière se colore quand elle est choisie, la petite case est masquée (gain de place) */
@media (max-width: 760px) {
  .page-quiz .choix label { grid-template-columns: auto minmax(0, 1fr); position: relative; }
  .page-quiz .choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .page-quiz .choix-duree label { grid-template-columns: 1fr; text-align: center; }
  .page-quiz .choix label:has(input:focus-visible) { outline: 3px solid var(--marine); outline-offset: 2px; }
  body[data-ambiance="soir"] .choix label:has(input:focus-visible) { outline-color: var(--or-clair); }
}

/* ---------- Avatar / photo de profil, historique, « voir d'autres films » ---------- */
.avatar { --taille: 40px; width: var(--taille); height: var(--taille); border-radius: 50%; overflow: hidden; flex: none;
  display: inline-grid; place-items: center; font-size: calc(var(--taille) * .55); line-height: 1; color: #fff;
  box-shadow: 0 0 0 2px var(--creme), 0 0 0 4px var(--or); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-initiale { font-family: var(--titre); }
.compte .avatar { margin-bottom: .1rem; }
.profil-identite { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin: 1rem 0 1.4rem; }
.profil-identite .profil-salut { margin: 0 0 .3rem; }
.profil-photo summary { cursor: pointer; font-weight: 600; color: var(--marine); }
.profil-photo[open] { background: var(--blanc); border-radius: var(--rayon); padding: .8rem 1rem; box-shadow: var(--ombre); }
.bouton-fichier { cursor: pointer; }
.bouton-fichier:focus-within { outline: 3px solid var(--marine); outline-offset: 2px; }
.profil-photo-titre { font-weight: 600; margin: .6rem 0 .4rem; }
.avatars { display: flex; flex-wrap: wrap; gap: .6rem; }
.avatar-choix { border: 0; background: none; padding: 4px; border-radius: 50%; cursor: pointer; transition: transform .15s; }
.avatar-choix:hover, .avatar-choix:focus-visible { transform: scale(1.1); }
.historique { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.historique li { display: grid; grid-template-columns: 9.5rem 1fr auto; gap: .8rem; align-items: center;
  background: var(--blanc); border-radius: 12px; padding: .7rem 1rem; box-shadow: var(--ombre); }
.historique .historique-vide { display: block; }
.historique-date { font-size: .85rem; color: var(--bordeaux); font-weight: 600; }
.historique-meta { font-size: .88rem; color: #555; }
.historique-retirer { border: 0; background: none; cursor: pointer; color: #888; font-size: 1rem; padding: .3rem .5rem; border-radius: 8px; }
.historique-retirer:hover { background: var(--creme-fonce); color: var(--bordeaux); }
@media (max-width: 560px) { .historique li { grid-template-columns: 1fr auto; } .historique-date { grid-column: 1 / -1; } }
.voir-plus { text-align: center; margin: 1.4rem 0 .4rem; }
.bouton-voir-plus { background: var(--marine); color: #fff; }
.plus-rien { text-align: center; font-weight: 600; }
body[data-ambiance="soir"] .bouton-voir-plus { background: var(--or-clair); color: var(--nuit); }
.message-envoi { background: var(--blanc); border-radius: var(--rayon); padding: 1rem 1.2rem; box-shadow: 0 0 0 2px var(--or), var(--ombre); font-weight: 600; max-width: 560px; }
.message-erreur { box-shadow: 0 0 0 2px var(--bordeaux), var(--ombre); color: var(--bordeaux); }
.formulaire button:disabled { opacity: .6; cursor: wait; }

/* ---------- Notre histoire : équipe en photos et valeurs ---------- */
.equipe, .valeurs { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.equipe { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 1rem; }
.membre { flex: 0 1 150px; text-align: center; }
.membre img {
  display: block; width: 100%; max-width: 150px; aspect-ratio: 1; margin: 0 auto;
  object-fit: cover; border-radius: 50%; border: 3px solid var(--bordeaux);
  box-shadow: 0 0 0 4px var(--creme), var(--ombre); background: var(--creme-fonce);
}
.membre p { margin: .7rem 0 0; font-weight: 600; line-height: 1.3; color: var(--marine); }
.valeurs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.valeur {
  background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre);
  border-top: 4px solid var(--bordeaux); padding: 1.3rem 1.2rem 1.1rem; display: flex; flex-direction: column;
}
.valeur-icone { width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: var(--marine);
  fill: none; stroke: var(--creme); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.valeur h3 { margin: .8rem 0 .3rem; }
.valeur p { margin: 0 0 .8rem; font-size: .98rem; line-height: 1.55; }
.valeur .valeur-preuve { margin: auto 0 0; padding-top: .7rem; border-top: 1px dashed var(--creme-fonce); font-size: .9rem; color: var(--marine); }
@media (max-width: 860px) {
  .membre { flex-basis: calc(50% - .5rem); }
  .valeurs { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .membre img { max-width: 130px; } }

/* ================================================================
   Page Sélections (/films/) : bandeau catalogue + cartes de rubriques
   ================================================================ */
.tete-catalogue {
  position: relative; isolation: isolate; overflow: hidden; margin: .5rem 0 2rem;
  min-height: 300px; display: grid; align-items: end; background: #000;
}
.catalogue { position: absolute; inset: 0; z-index: 0; opacity: .3; }
.catalogue-defile { animation: catalogue 90s linear infinite; }
.catalogue-grille { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; padding-bottom: 8px; }
.vignette { display: block; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; background: var(--marine); }
.vignette:nth-child(3n + 2) { background: var(--bordeaux); }
.vignette:nth-child(5n + 3) { background: var(--creme-fonce); }
.vignette img { display: block; width: 100%; height: 100%; object-fit: cover; }
@keyframes catalogue { to { transform: translateY(-50%); } }
.tete-catalogue::after { /* voile pour garder le texte lisible */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .25) 100%);
}
.tete-catalogue-texte { position: relative; z-index: 1; padding: 2.4rem clamp(1.2rem, 4vw, 2.6rem) 1.8rem; max-width: 820px; }
.tete-catalogue h1 { color: var(--creme); margin-top: 0; }
.tete-catalogue .chapo { color: var(--creme); }
@media (max-width: 700px) { .catalogue-grille { grid-template-columns: repeat(6, 1fr); } }
@media (prefers-reduced-motion: reduce) { .catalogue-defile { animation: none; } }

.cartes-selections { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.carte-selection {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--creme);
  background: var(--marine-fonce); border-radius: 8px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(4, 53, 115, .18); transition: transform .25s, box-shadow .25s;
}
.carte-selection:hover { color: var(--creme); transform: translateY(-4px); box-shadow: 0 12px 26px rgba(4, 53, 115, .26); }
.carte-selection:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: 3px; }
.carte-selection-titre {
  margin: 0; padding: 1.1rem 1.2rem .9rem; color: var(--creme); font-size: 1.5rem; line-height: 1.15; text-transform: uppercase;
}
.mot-cle { /* le mot-clé : rouge de la charte, plus grand, posé sur un aplat crème pour rester lisible */
  display: inline-block; font-size: 1.3em; color: var(--bordeaux); background: var(--creme); padding: 0 .2em; line-height: 1.1;
}
.carte-selection-image { /* emplacement prêt pour un visuel TMDb (voir IMAGES_SELECTIONS dans build.py) */
  display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--marine) 0%, var(--bordeaux-fonce) 100%);
}
.carte-selection-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.carte-selection-texte { padding: 1rem 1.2rem .4rem; font-size: .95rem; line-height: 1.5; }
.carte-selection-nb { margin-top: auto; padding: .4rem 1.2rem 1.1rem; font-size: .85rem; font-weight: 600; letter-spacing: .04em; opacity: .8; }
@media (max-width: 900px) { .cartes-selections { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cartes-selections { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .carte-selection { transition: none; } .carte-selection:hover { transform: none; } }

/* Grain léger (bruit SVG) pour les aplats de couleur */
:root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .3 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }

/* ================================================================
   Movie Quiz (corrections de l'équipe) : réponses alignées, bouton Regarder, trophée
   ================================================================ */
/* Réponses : cartes de même taille, texte centré verticalement, jamais de mot coupé */
.page-quiz .choix { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); grid-auto-rows: 1fr; }
.page-quiz .choix label { min-height: 3.6rem; align-content: center; }
.choix-texte { overflow-wrap: normal; word-break: normal; hyphens: none; }
.page-quiz .choix-genres { grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)) !important; }
.page-quiz .choix-duree { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.quiz-etape-seule { grid-template-columns: 1fr !important; }
.page-quiz .choix-large { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
@media (min-width: 761px) { .choix-texte { white-space: nowrap; } }
@media (max-width: 760px) {
  .page-quiz .choix { grid-template-columns: 1fr 1fr; }
  .page-quiz .choix.choix-large { grid-template-columns: 1fr; }
  .page-quiz .choix-duree { grid-template-columns: 1fr 1fr; }
  .choix-texte { white-space: normal; }
}

/* Bouton « Regarder » : contour fin, lettres espacées */
.bouton-regarder {
  display: inline-block; padding: .45rem 1.2rem; border: 1px solid currentColor; border-radius: 99px;
  color: var(--bordeaux); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.bouton-regarder:hover { background: var(--bordeaux); color: var(--creme); }
body[data-ambiance="soir"] main a.bouton-regarder { color: var(--creme); }
body[data-ambiance="soir"] main a.bouton-regarder:hover { background: var(--creme); color: var(--marine-fonce); }

/* Nouveau trophée : petit encadré en haut à droite, 4 secondes */
.toast-trophee {
  position: fixed; top: 1rem; right: 1rem; z-index: 1000; display: flex; align-items: center; gap: .6rem;
  padding: .55rem 1rem .55rem .6rem; border-radius: 12px; background: var(--marine); color: var(--creme);
  font-weight: 600; text-decoration: none; box-shadow: 0 10px 28px rgba(2, 37, 82, .35);
  animation: toast-entree .35s ease-out;
}
.toast-trophee:hover { color: var(--creme); background: var(--marine-fonce); }
.toast-trophee svg { width: 34px; height: auto; }
.toast-trophee.sortie { opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; }
@keyframes toast-entree { from { opacity: 0; transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .toast-trophee { animation: none; } }

/* Point rouge de notification sur la photo de profil (nouveau trophée) */
.avatar-notif { position: relative; display: inline-flex; }
.avatar-notif::after {
  content: ""; position: absolute; top: -2px; right: -2px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bordeaux); box-shadow: 0 0 0 2px var(--creme);
}

/* ================================================================
   Page Profil (corrections de l'équipe) : bio, photo recadrable, fenêtres
   ================================================================ */
.profil-stats { margin-top: 1.2rem; }
.profil-bio textarea {
  width: 100%; font: inherit; padding: .8rem 1rem; border-radius: 12px; border: 2px solid var(--creme-fonce);
  background: var(--blanc); color: var(--encre); resize: vertical;
}
.profil-bio textarea:focus { border-color: var(--bordeaux); outline: none; }
.profil-bio h2 label { cursor: text; }
.profil-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin: 0; }
.lien-bouton { border: 0; background: none; padding: .3rem 0; font: inherit; font-weight: 600; color: var(--bordeaux); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lien-bouton:hover { color: var(--marine); }
.fenetre { border: 0; border-radius: 18px; padding: 1.5rem; width: min(440px, calc(100% - 2rem)); background: var(--creme); color: var(--encre); box-shadow: 0 30px 80px rgba(2, 37, 82, .4); }
.fenetre::backdrop { background: rgba(2, 37, 82, .6); }
.fenetre h2 { margin-top: 0; }
.fenetre-boutons { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }
.fenetre .avatars { justify-content: center; }
.recadrage-cadre {
  position: relative; width: min(260px, 100%); aspect-ratio: 1; margin: .8rem auto; overflow: hidden; border-radius: 50%;
  background: var(--marine-fonce); cursor: grab; touch-action: none; box-shadow: 0 0 0 3px var(--bordeaux);
}
.recadrage-cadre:active { cursor: grabbing; }
.recadrage-cadre img { position: absolute; top: 0; left: 0; max-width: none; height: auto; transform-origin: 0 0; user-select: none; }
.recadrage-zoom { display: flex; align-items: center; gap: .8rem; font-weight: 600; color: var(--marine); }
.recadrage-zoom input { flex: 1; accent-color: var(--bordeaux); }

/* ================================================================
   Actus ciné : une de journal (mêmes polices et couleurs, plus dense, en colonnes)
   ================================================================ */
.une-journal { max-width: var(--largeur); }
.une-tete { text-align: center; border-bottom: 3px double var(--marine); padding: .6rem 0 1rem; margin-bottom: 1.4rem; }
.une-date { margin: 0; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--bordeaux); }
.une-tete h1 { margin: .1em 0 .15em; font-size: clamp(3rem, 9vw, 5.5rem); line-height: 1; border-bottom: 1px solid var(--marine); padding-bottom: .2em; }
.une-tete .chapo { max-width: 720px; margin: .6rem auto 0; font-size: 1rem; }
.une-tete .chapo p { margin: 0; }
.une-lien { display: block; color: inherit; text-decoration: none; }
.une-lien:hover .une-titre { color: var(--bordeaux); text-decoration: underline; text-underline-offset: 3px; }
.une-image { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: .6rem; }
.une-image-vide { background: linear-gradient(135deg, var(--marine) 0%, var(--bordeaux-fonce) 100%); }
.une-titre { margin: 0 0 .35rem; color: var(--marine); font-family: var(--titre); font-weight: 400; line-height: 1.12; }
.une-desc { margin: 0 0 .35rem; font-size: .92rem; line-height: 1.5; }
.une-meta { margin: 0; font-size: .78rem; font-weight: 600; color: var(--bordeaux); text-transform: uppercase; letter-spacing: .05em; }
.une { display: grid; grid-template-columns: 2fr 1fr; gap: 0 1.6rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--marine); }
.une-principale .une-titre { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.une-principale .une-desc { font-size: 1.05rem; }
.une-secondaires { display: grid; gap: 1.2rem; border-left: 1px solid rgba(4, 53, 115, .35); padding-left: 1.6rem; align-content: start; }
.une-secondaire + .une-secondaire { border-top: 1px solid rgba(4, 53, 115, .35); padding-top: 1.2rem; }
.une-secondaire .une-titre { font-size: 1.35rem; }
.une-rubrique { font-size: 1rem; text-transform: uppercase; letter-spacing: .14em; margin: 1.2rem 0 1rem; padding: .3rem 0; border-top: 3px solid var(--marine); }
.une-colonnes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem 0; margin-bottom: 2rem; }
.une-breve { padding: 0 1.1rem; border-left: 1px solid rgba(4, 53, 115, .35); }
.une-breve:nth-child(4n + 1) { border-left: 0; padding-left: 0; }
.une-breve .une-titre { font-size: 1.12rem; }
.une-breve .une-desc { font-size: .86rem; }
@media (max-width: 900px) {
  .une { grid-template-columns: 1fr; }
  .une-secondaires { border-left: 0; padding-left: 0; border-top: 1px solid rgba(4, 53, 115, .35); padding-top: 1.2rem; margin-top: 1.2rem; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .une-secondaire + .une-secondaire { border-top: 0; padding-top: 0; }
  .une-colonnes { grid-template-columns: repeat(2, 1fr); }
  .une-breve:nth-child(4n + 1) { border-left: 1px solid rgba(4, 53, 115, .35); padding-left: 1.1rem; }
  .une-breve:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  .une-secondaires, .une-colonnes { grid-template-columns: 1fr; }
  .une-breve { border-left: 0 !important; padding: 0 0 1.2rem !important; border-bottom: 1px solid rgba(4, 53, 115, .25); }
}
.une-principale .une-image { aspect-ratio: 16 / 8; }
.une-secondaire .une-image, .une-breve .une-image { aspect-ratio: 16 / 9; }
