/* QuoiVoir — design system (refonte 2026-11). Classes préfixées qd- pour ne pas heurter les anciennes feuilles. Chargeable sur toutes les pages : aucune règle d élément ici (voir qd-base.css). */

/* Charte 5A « À l'affiche » (2026-12-02) : une seule police, Nunito, auto-hébergée. */
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-var-latin.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  color-scheme: dark;
  --qd-zoom: 1;           /* facteur de mise a l echelle (voir fin de fichier) : les hauteurs en vh sont divisees par lui */
  /* --- Couleurs ------------------------------------------------------- */
  --c-fond: #120b08;          /* fond principal : noir brun, chaud */
  --c-surface: #1b120d;       /* surfaces : panneaux, champs, cartes d'information */
  --c-surface-2: #261911;     /* surface survolée / imbriquée (rare) */
  --c-ligne: #2e2018;         /* séparateurs, contours de champ */
  --c-ligne-forte: #4a3428;   /* contour au survol */
  --c-texte: #f7efe8;         /* texte principal (16,5:1) */
  --c-texte-2: #d9c9bd;       /* texte secondaire (7,1:1 sur fond, 6,3:1 sur surface) */
  --c-texte-3: #a8978b;       /* légendes — uniquement sur --c-fond/--c-surface (≥ 4,5:1) */
  --c-orange: #ff6b35;        /* LA couleur QuoiVoir */
  --c-orange-vif: #ff8250;    /* survol du bouton orange */
  --c-orange-texte: #ff8a5c;  /* orange pour du texte de petite taille (8:1) */
  --c-orange-voile: rgba(255, 107, 53, .14); /* fond d'un élément sélectionné */
  --c-sur-orange: #1a0e08;    /* texte posé sur l'orange (6,7:1) */
  --c-ok: #5cc48e;  --c-ok-voile: rgba(92, 196, 142, .14);
  --c-alerte: #e8b44a; --c-alerte-voile: rgba(232, 180, 74, .14);
  --c-erreur: #f06a5f; --c-erreur-voile: rgba(240, 106, 95, .14);
  --c-voile-modale: rgba(10, 6, 4, .74);
  --c-texte-corps: #e2d3c8;   /* paragraphes (synopsis, résumés) */

  /* --- Typographie -------------------------------------------------- */
  --f-ui: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-titre: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;   /* moments cinéma : titres de page, titres de films mis en scène */
  --t-xs: .75rem;   /* 12 */
  --t-s: .875rem;   /* 14 */
  --t-m: 1rem;      /* 16 — texte courant */
  --t-l: 1.125rem;  /* 18 */
  --t-xl: 1.375rem; /* 22 */
  --t-2xl: 1.75rem; /* 28 */
  --t-3xl: 2.5rem;  /* 40 */
  --t-4xl: clamp(2.5rem, 4.2vw, 3.5rem); /* 40 → 56 : titre principal de page */
  --g-normal: 500; --g-moyen: 600; --g-fort: 800; --g-titre: 900;

  /* --- Espacements (base 4) ----------------------------------------- */
  --e-1: 4px; --e-2: 8px; --e-3: 12px; --e-4: 16px; --e-5: 24px; --e-6: 32px; --e-7: 48px; --e-8: 64px; --e-9: 96px;

  /* --- Rayons -------------------------------------------------------- */
  --r-s: 4px;     /* affiches miniatures, puces carrées */
  --r-m: 8px;     /* boutons, champs, cartes, affiches */
  --r-l: 10px;    /* fenêtres, panneaux */
  --r-rond: 999px;/* puces de critères uniquement */

  /* --- Profondeur : une seule ombre, neutre --------------------------- */
  --ombre: 0 12px 32px rgba(0, 0, 0, .45);

  /* --- Mouvement ----------------------------------------------------- */
  --m-court: 140ms; --m-moyen: 240ms; --m-long: 420ms;
  --m-courbe: cubic-bezier(.2, .7, .2, 1);

  /* --- Gabarit ------------------------------------------------------- */
  --largeur: 1200px;         /* largeur de contenu */
  --gouttiere: clamp(16px, 4vw, 40px);
  --haut-nav: 64px;          /* barre du haut (ordinateur) */
  --bas-nav: 64px;           /* barre du bas (téléphone) */
}

/* ========================================================================
   Base
   ======================================================================== */
.qd-titre-page { font-family: var(--f-titre); font-size: var(--t-4xl); font-weight: 900; letter-spacing: -.025em; line-height: 1.05; }
.qd-titre-section { font-size: var(--t-xl); font-weight: var(--g-fort); }
.qd-titre-film { font-family: var(--f-titre); font-weight: 900; letter-spacing: -.01em; }
.qd-surtitre { font-size: var(--t-xs); font-weight: var(--g-fort); text-transform: uppercase; letter-spacing: .08em; color: var(--c-texte-2); }
.qd-texte-2 { color: var(--c-texte-2); }
.qd-texte-3 { color: var(--c-texte-3); font-size: var(--t-s); }
.qd-icone { width: 20px; height: 20px; flex: none; }
.qd-icone-s { width: 16px; height: 16px; flex: none; }
.qd-visu-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 2px; border-radius: var(--r-s); }
.qd-conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }

/* ========================================================================
   Boutons
   ======================================================================== */
.qd-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--e-2); min-height: 44px; padding: 0 var(--e-5);
  border-radius: var(--r-m); border: 1px solid transparent; font-weight: var(--g-fort); font-size: var(--t-m); text-decoration: none;
  cursor: pointer; transition: background var(--m-court), border-color var(--m-court), color var(--m-court), transform var(--m-court); white-space: nowrap; }
.qd-btn:active { transform: translateY(1px); }
.qd-btn-principal { background: var(--c-orange); color: var(--c-sur-orange); }
.qd-btn-principal:hover { background: var(--c-orange-vif); }
.qd-btn-secondaire { background: var(--c-surface); border-color: var(--c-ligne); color: var(--c-texte); }
.qd-btn-secondaire:hover { border-color: var(--c-ligne-forte); background: var(--c-surface-2); }
.qd-btn-discret { background: transparent; color: var(--c-texte); padding: 0 var(--e-3); }
.qd-btn-discret:hover { background: var(--c-surface); }
.qd-btn-danger { background: transparent; border-color: color-mix(in srgb, var(--c-erreur) 55%, transparent); color: var(--c-erreur); }
.qd-btn-danger:hover { background: var(--c-erreur-voile); }
.qd-btn-l { min-height: 52px; font-size: var(--t-l); padding: 0 var(--e-6); }
.qd-btn-s { min-height: 36px; font-size: var(--t-s); padding: 0 var(--e-4); }
.qd-btn-icone { width: 44px; padding: 0; }
.qd-btn[disabled], .qd-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.qd-lien { color: var(--c-orange-texte); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.qd-lien:hover { color: var(--c-orange-vif); }

/* ========================================================================
   Champs
   ======================================================================== */
.qd-champ { display: flex; flex-direction: column; gap: var(--e-2); }
.qd-champ label, .qd-champ .qd-libelle { font-size: var(--t-s); font-weight: var(--g-fort); }
.qd-saisie { width: 100%; min-height: 48px; padding: 0 var(--e-4); background: var(--c-surface); border: 1px solid var(--c-ligne); border-radius: var(--r-m); transition: border-color var(--m-court); }
.qd-saisie::placeholder { color: var(--c-texte-3); }
.qd-saisie:hover { border-color: var(--c-ligne-forte); }
.qd-saisie:focus { outline: none; border-color: var(--c-orange); box-shadow: 0 0 0 3px var(--c-orange-voile); }
textarea.qd-saisie { padding: var(--e-3) var(--e-4); min-height: 120px; resize: vertical; }
.qd-aide-champ { font-size: var(--t-s); color: var(--c-texte-2); }
.qd-erreur-champ { font-size: var(--t-s); color: var(--c-erreur); }

/* Recherche en langage naturel : le champ le plus important du site */
/* Charte 5A : barre CRÈME, texte sombre, bouton orange collé à droite (repère visuel n°1). */
.qd-recherche { display: flex; align-items: center; gap: 0; padding: 0; background: #f7efe8; border: 0; border-radius: var(--r-l); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: box-shadow var(--m-court); }
.qd-recherche:focus-within { box-shadow: 0 0 0 3px rgba(255,107,53,.55), 0 10px 30px rgba(0,0,0,.35); }
.qd-recherche .qd-icone { margin-left: var(--e-4); color: #7a6558; }
.qd-recherche input { flex: 1; min-width: 0; min-height: 56px; padding: 0 var(--e-3); border: 0; background: transparent; color: #1a0e08; font-family: var(--f-ui); font-size: var(--t-l); font-weight: 600; outline: none; }
.qd-recherche input::placeholder { color: #8a7466; font-weight: 500; }
.qd-recherche .qd-btn { align-self: stretch; min-height: 56px; border-radius: 0; padding: 0 var(--e-5); font-size: var(--t-m); font-weight: 800; }
.qd-exemples { display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-4); }
.qd-exemple { display: inline-flex; align-items: center; min-height: 32px; padding: 0; border: 0; background: transparent; color: var(--c-texte-2); font-size: var(--t-s); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,138,92,.55); text-underline-offset: 4px; cursor: pointer; }
.qd-exemple:hover { color: var(--c-texte); text-decoration-color: var(--c-orange); }

/* ========================================================================
   Puces
   ======================================================================== */
.qd-puce { display: inline-flex; align-items: center; gap: var(--e-1); min-height: 32px; padding: 0 var(--e-3); border-radius: var(--r-rond); background: var(--c-surface); border: 1px solid var(--c-ligne); font-size: var(--t-s); color: var(--c-texte); }
button.qd-puce { cursor: pointer; }
.qd-puce[aria-pressed="true"], .qd-puce.qd-est-actif { background: var(--c-orange-voile); border-color: var(--c-orange); color: var(--c-texte); }
.qd-puce[aria-pressed="true"]::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center/contain no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center/contain no-repeat; color: var(--c-orange); }
.qd-puce-critere { background: var(--c-orange-voile); border-color: rgba(255,107,53,.45); border-radius: 6px; font-weight: 700; }
.qd-puce-critere button { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: calc(var(--e-1) * -1); border: 0; border-radius: var(--r-rond); background: transparent; color: var(--c-texte-2); cursor: pointer; }
.qd-puce-critere button:hover { color: var(--c-texte); background: rgba(255,255,255,.08); }
.qd-puce-calme { background: transparent; border-color: var(--c-ligne); color: var(--c-texte-2); }

/* ========================================================================
   Affiches et cartes de film (UN composant, quatre tailles)
   .qd-film            : conteneur (lien ou bouton)
   .qd-film__affiche   : image 2:3, jamais recouverte
   .qd-film__titre / .qd-film__meta : sous l'affiche
   Variantes : .qd-film--grille (catalogue), .qd-film--rail (carrousels), .qd-film--reco (résultats),
               .qd-film--ligne (listes : affiche à gauche, texte à droite)
   ======================================================================== */
.qd-affiche { position: relative; aspect-ratio: 2 / 3; border-radius: var(--r-m); overflow: hidden; background: var(--c-surface); }
.qd-affiche img { width: 100%; height: 100%; object-fit: cover; }
.qd-affiche--vide { display: grid; place-items: center; color: var(--c-texte-3); }
.qd-film { display: flex; flex-direction: column; gap: var(--e-2); text-decoration: none; color: inherit; min-width: 0; }
.qd-film__affiche { transition: transform var(--m-moyen) var(--m-courbe); }
a.qd-film:hover .qd-film__affiche, button.qd-film:hover .qd-film__affiche { transform: translateY(-3px); }
.qd-film__titre { font-weight: var(--g-fort); font-size: var(--t-s); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qd-film__meta { font-size: var(--t-xs); color: var(--c-texte-2); display: flex; gap: var(--e-2); flex-wrap: wrap; }
.qd-film__note { display: inline-flex; align-items: center; gap: 3px; color: var(--c-texte); }
.qd-film__note .qd-icone-s { width: 12px; height: 12px; color: var(--c-orange); fill: var(--c-orange); }
.qd-film--ligne { flex-direction: row; gap: var(--e-4); align-items: flex-start; }
.qd-film--ligne .qd-film__affiche { width: 96px; flex: none; }
.qd-film--ligne .qd-film__corps { display: flex; flex-direction: column; gap: var(--e-1); min-width: 0; }
.qd-film--ligne .qd-film__titre { font-size: var(--t-m); }

/* Rail horizontal (accueil, similaires) */
.qd-rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(132px, 15vw, 172px); gap: var(--e-4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--e-2); scrollbar-width: thin; }
.qd-rail > * { scroll-snap-align: start; }
/* Grille (catalogue) */
.qd-grille-films { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--e-5) var(--e-4); }

/* ========================================================================
   Surfaces, séparations, sections
   ======================================================================== */
.qd-bloc { background: var(--c-surface); border-radius: var(--r-l); padding: var(--e-5); }
.qd-separateur { height: 1px; background: var(--c-ligne); border: 0; margin: 0; }
.qd-section { padding: var(--e-7) 0; }
.qd-section__tete { display: flex; align-items: baseline; justify-content: space-between; gap: var(--e-4); margin-bottom: var(--e-4); }
.qd-section__tete > a { white-space: nowrap; font-size: var(--t-s); }

/* ========================================================================
   Choix (assistant) : cartes sélectionnables, état visible sans la couleur
   ======================================================================== */
.qd-choix { position: relative; display: flex; flex-direction: column; gap: var(--e-1); padding: var(--e-4); border-radius: var(--r-m); border: 1px solid var(--c-ligne); background: var(--c-surface); text-align: left; cursor: pointer; transition: border-color var(--m-court), background var(--m-court); }
.qd-choix:hover { border-color: var(--c-ligne-forte); }
.qd-choix[aria-pressed="true"], .qd-choix[aria-checked="true"] { border-color: var(--c-orange); background: var(--c-orange-voile); }
.qd-choix__coche { position: absolute; top: var(--e-3); right: var(--e-3); width: 22px; height: 22px; border-radius: var(--r-rond); border: 1.5px solid var(--c-ligne-forte); display: grid; place-items: center; }
.qd-choix[aria-pressed="true"] .qd-choix__coche, .qd-choix[aria-checked="true"] .qd-choix__coche { background: var(--c-orange); border-color: var(--c-orange); color: var(--c-sur-orange); }
.qd-choix__coche svg { width: 14px; height: 14px; opacity: 0; }
.qd-choix[aria-pressed="true"] .qd-choix__coche svg, .qd-choix[aria-checked="true"] .qd-choix__coche svg { opacity: 1; }
.qd-choix__titre { font-weight: var(--g-fort); }
.qd-choix__aide { font-size: var(--t-s); color: var(--c-texte-2); }

/* Curseur */
.qd-curseur { width: 100%; accent-color: var(--c-orange); height: 32px; }
.qd-interrupteur { appearance: none; width: 44px; height: 26px; border-radius: var(--r-rond); background: var(--c-ligne-forte); position: relative; cursor: pointer; transition: background var(--m-court); flex: none; }
.qd-interrupteur::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--c-texte); transition: transform var(--m-court); }
.qd-interrupteur:checked { background: var(--c-orange); }
.qd-interrupteur:checked::after { transform: translateX(18px); background: var(--c-sur-orange); }

/* ========================================================================
   Onglets
   ======================================================================== */
.qd-onglets { display: flex; gap: var(--e-1); border-bottom: 1px solid var(--c-ligne); overflow-x: auto; }
.qd-onglet { min-height: 44px; padding: 0 var(--e-4); border: 0; background: none; color: var(--c-texte-2); font-weight: var(--g-fort); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.qd-onglet[aria-selected="true"] { color: var(--c-texte); border-bottom-color: var(--c-orange); }

/* ========================================================================
   Fenêtres
   ======================================================================== */
.qd-voile { position: fixed; inset: 0; background: var(--c-voile-modale); display: grid; place-items: center; padding: var(--e-4); z-index: 100; }
.qd-fenetre { width: min(520px, 100%); max-height: calc(calc(100dvh / var(--qd-zoom, 1)) - 32px); overflow: auto; background: var(--c-surface); border: 1px solid var(--c-ligne); border-radius: var(--r-l); box-shadow: var(--ombre); }
.qd-fenetre__tete { display: flex; align-items: center; justify-content: space-between; gap: var(--e-4); padding: var(--e-4) var(--e-5); border-bottom: 1px solid var(--c-ligne); }
.qd-fenetre__corps { padding: var(--e-5); display: flex; flex-direction: column; gap: var(--e-4); }
.qd-fenetre__pied { display: flex; justify-content: flex-end; gap: var(--e-2); padding: var(--e-4) var(--e-5); border-top: 1px solid var(--c-ligne); }

/* ========================================================================
   Messages : notifications, erreurs, états vides, chargement
   ======================================================================== */
.qd-message { display: flex; gap: var(--e-3); align-items: flex-start; padding: var(--e-3) var(--e-4); border-radius: var(--r-m); background: var(--c-surface); border: 1px solid var(--c-ligne); font-size: var(--t-s); }
.qd-message .qd-icone { margin-top: 1px; }
.qd-message--info .qd-icone { color: var(--c-texte-2); }
.qd-message--ok { border-color: color-mix(in srgb, var(--c-ok) 40%, transparent); } .qd-message--ok .qd-icone { color: var(--c-ok); }
.qd-message--alerte { border-color: color-mix(in srgb, var(--c-alerte) 40%, transparent); } .qd-message--alerte .qd-icone { color: var(--c-alerte); }
.qd-message--erreur { border-color: color-mix(in srgb, var(--c-erreur) 45%, transparent); } .qd-message--erreur .qd-icone { color: var(--c-erreur); }
.qd-vide { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--e-3); padding: var(--e-7) var(--e-4); color: var(--c-texte-2); }
.qd-vide .qd-icone { width: 32px; height: 32px; color: var(--c-texte-3); }
.qd-vide strong { color: var(--c-texte); font-size: var(--t-l); }
.qd-charge { display: inline-flex; align-items: center; gap: var(--e-2); color: var(--c-texte-2); font-size: var(--t-s); }
.qd-charge .qd-icone { animation: qv-tourne 900ms linear infinite; color: var(--c-orange); }
.qd-squelette { background: linear-gradient(90deg, var(--c-surface) 0 40%, var(--c-surface-2) 50%, var(--c-surface) 60% 100%); background-size: 300% 100%; animation: qv-reflet 1.4s ease-in-out infinite; border-radius: var(--r-m); }
@keyframes qv-tourne { to { transform: rotate(360deg); } }
@keyframes qv-reflet { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Barres (ressenti, statistiques) */
.qd-barres { display: flex; flex-direction: column; gap: var(--e-3); }
.qd-barre { display: grid; grid-template-columns: 9rem 1fr 3rem; align-items: center; gap: var(--e-3); font-size: var(--t-s); }
.qd-barre__piste { height: 6px; border-radius: var(--r-rond); background: var(--c-ligne); overflow: hidden; }
.qd-barre__valeur { height: 100%; background: var(--c-orange); border-radius: inherit; }
.qd-barre__chiffre { text-align: right; color: var(--c-texte-2); font-variant-numeric: tabular-nums; }

/* ========================================================================
   Navigation
   Ordinateur : barre du haut. Téléphone : barre du bas (5 entrées) + menu.
   ======================================================================== */
.qd-nav-haut { position: sticky; top: 0; z-index: 50; height: var(--haut-nav); background: color-mix(in srgb, var(--c-fond) 92%, transparent); border-bottom: 1px solid var(--c-ligne); }
.qd-nav-haut__in { height: 100%; display: flex; align-items: center; gap: var(--e-5); }
.qd-marque { display: inline-flex; align-items: center; gap: var(--e-2); text-decoration: none; font-family: var(--f-titre); font-weight: 900; font-size: var(--t-xl); letter-spacing: -.01em; }
.qd-marque img { display: block; height: 34px; width: auto; }
@media (max-width: 899px) { .qd-marque img { height: 30px; } }
.qd-nav-haut__liens { display: flex; gap: var(--e-1); margin-left: var(--e-4); }
.qd-nav-lien { display: inline-flex; align-items: center; gap: var(--e-2); min-height: 40px; padding: 0 var(--e-3); border-radius: var(--r-m); text-decoration: none; color: var(--c-texte-2); font-weight: var(--g-moyen); font-size: var(--t-s); }
.qd-nav-lien:hover { color: var(--c-texte); background: var(--c-surface); }
.qd-nav-lien[aria-current="page"] { color: var(--c-texte); }
.qd-nav-lien[aria-current="page"]::after { content: ""; position: absolute; }
.qd-nav-haut .qd-nav-lien[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--c-orange); border-radius: var(--r-m) var(--r-m) 0 0; }
.qd-nav-haut__fin { margin-left: auto; display: flex; align-items: center; gap: var(--e-2); }
.qd-avatar { width: 32px; height: 32px; border-radius: var(--r-rond); background: var(--c-surface-2); display: grid; place-items: center; font-weight: var(--g-fort); font-size: var(--t-s); }

.qd-nav-bas { display: none; }
@media (max-width: 899px) {
  .qd-nav-haut__liens, .qd-nav-haut .qd-masque-mobile { display: none; }
  .qd-nav-haut { height: 56px; }
  .qd-nav-bas { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: calc(var(--bas-nav) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--c-fond); border-top: 1px solid var(--c-ligne); }
  .qd-nav-bas a, .qd-nav-bas button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; color: var(--c-texte-2); font-size: 11px; font-weight: var(--g-moyen); text-decoration: none; }
  .qd-nav-bas [aria-current="page"] { color: var(--c-texte); }
  .qd-nav-bas [aria-current="page"] .qd-icone { color: var(--c-orange); }
  body { padding-bottom: calc(var(--bas-nav) + env(safe-area-inset-bottom)); }
}

/* mobile-layout-fixes.css fige tout « body > header » en position fixe, décalée de 10 px,
   fond bleu nuit, avec !important : on protège la barre par un sélecteur plus fort. */
html body > header.qd-nav-haut {
  position: sticky !important; top: 0 !important; left: auto !important; right: auto !important;
  width: auto !important; height: var(--haut-nav) !important; min-height: 0 !important; max-height: none !important;
  margin: 0 !important; padding: 0 !important; display: block !important; z-index: 50 !important;
  border: 0 !important; border-bottom: 1px solid var(--c-ligne) !important; border-radius: 0 !important;
  background: var(--c-fond) !important; box-shadow: none !important; backdrop-filter: none !important;
}
@media (max-width: 899px) { html body > header.qd-nav-haut { height: 56px !important; } }

/* Menu « Plus » (téléphone) : feuille qui monte depuis le bas. */
.qd-menu-plus { position: fixed; inset: 0; z-index: 80; }
.qd-menu-plus[hidden] { display: none; }
.qd-menu-plus__fond { position: absolute; inset: 0; background: var(--c-voile-modale); }
.qd-menu-plus__feuille { position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(85dvh / var(--qd-zoom, 1)); overflow-y: auto; background: var(--c-surface); border-radius: var(--r-l) var(--r-l) 0 0; padding: var(--e-3) var(--e-4) calc(var(--e-5) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; animation: qd-monte var(--m-moyen) var(--m-courbe); font-family: var(--f-ui); color: var(--c-texte); }
@keyframes qd-monte { from { transform: translateY(24px); opacity: 0; } }
.qd-menu-plus__tete { display: flex; align-items: center; justify-content: space-between; padding-bottom: var(--e-2); font-weight: var(--g-fort); }
.qd-menu-plus__feuille > a { display: flex; align-items: center; gap: var(--e-3); min-height: 52px; padding: 0 var(--e-2); color: var(--c-texte); text-decoration: none; border-bottom: 1px solid var(--c-ligne); font-size: var(--t-m); }
.qd-menu-plus__feuille > a .qd-icone { color: var(--c-texte-2); }
.qd-menu-plus__feuille > a[aria-current="page"] .qd-icone { color: var(--c-orange); }
.qd-menu-plus__legal { display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-4); padding: var(--e-4) var(--e-2) 0; font-size: var(--t-s); }
.qd-menu-plus__legal a, .qd-menu-plus__legal button { color: var(--c-texte-2); background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
html.qd-menu-ouvert { overflow: hidden; }
.qd-nav-haut { font-family: var(--f-ui); color: var(--c-texte); }
.qd-nav-bas { font-family: var(--f-ui); }
.qd-auth { display: flex; align-items: center; }
@media (min-width: 900px) { .qd-menu-plus { display: none; } }

/* ========================================================================
   Mouvement réduit
   ======================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   MISE A L ECHELLE : PLUS DE ZOOM SOUS 2400 PX (2026-12-03, demande utilisateur).
   Le zoom posé le 2026-12-02 (x1,2 en 1920 px) rendait tout « trop zoomé » par rapport
   à la version en production : 4 films par ligne au lieu de 5, textes 20 % plus gros.
   Désormais : pas de zoom jusqu'à 2400 px, la largeur de contenu s'élargit à la place
   sur grand écran ; au-delà (écrans 2560 et 4K), zoom doux = largeur / 2000.
   ========================================================================== */
@media (min-width: 1600px) { :root { --largeur: 1400px; } }
@media (min-width: 2400px) { :root { zoom: 1.200; --qd-zoom: 1.200; } }
@media (min-width: 2480px) { :root { zoom: 1.240; --qd-zoom: 1.240; } }
@media (min-width: 2560px) { :root { zoom: 1.280; --qd-zoom: 1.280; } }
@media (min-width: 2640px) { :root { zoom: 1.320; --qd-zoom: 1.320; } }
@media (min-width: 2720px) { :root { zoom: 1.360; --qd-zoom: 1.360; } }
@media (min-width: 2800px) { :root { zoom: 1.400; --qd-zoom: 1.400; } }
@media (min-width: 2880px) { :root { zoom: 1.440; --qd-zoom: 1.440; } }
@media (min-width: 2960px) { :root { zoom: 1.480; --qd-zoom: 1.480; } }
@media (min-width: 3040px) { :root { zoom: 1.520; --qd-zoom: 1.520; } }
@media (min-width: 3120px) { :root { zoom: 1.560; --qd-zoom: 1.560; } }
@media (min-width: 3200px) { :root { zoom: 1.600; --qd-zoom: 1.600; } }
@media (min-width: 3280px) { :root { zoom: 1.640; --qd-zoom: 1.640; } }
@media (min-width: 3360px) { :root { zoom: 1.680; --qd-zoom: 1.680; } }
@media (min-width: 3440px) { :root { zoom: 1.720; --qd-zoom: 1.720; } }
@media (min-width: 3520px) { :root { zoom: 1.760; --qd-zoom: 1.760; } }
@media (min-width: 3600px) { :root { zoom: 1.800; --qd-zoom: 1.800; } }
@media (min-width: 3680px) { :root { zoom: 1.840; --qd-zoom: 1.840; } }
@media (min-width: 3760px) { :root { zoom: 1.880; --qd-zoom: 1.880; } }
@media (min-width: 3840px) { :root { zoom: 1.920; --qd-zoom: 1.920; } }
