/* lp-classe.css — Locales TV : l'habillage « classe » de localesplus.tech (27/10/2026).
   Mr. Light : « tout le site fait trop gadget ; j'adore l'animation du haut, mais je veux un truc plus dans le
   style Nuit des Réussites, Trophées du Numérique ou Victoires de l'Aube ; des menus déroulants modernes au lieu
   d'afficher tous les thèmes ; un fond plus sombre, mais pas nuit » ; « on garde exactement les mêmes onglets et
   les mêmes textes » ; « on garde la France animée ».
   Puis (27/10, après-midi) : « plein de texte clair sur fond gris illisible » et « il faut un mode jour nuit ».
   Chargée EN DERNIER sur chaque page, en trois parties :
     1. commun aux deux modes : polices, titres, en-tête calmé, menus déroulants (lp-classe.js) ;
     2. JOUR (html[data-theme="jour"]) : la charte « Réseau » d'origine, claire, aux couleurs plus neutres ;
     3. NUIT (par défaut) : l'ardoise sombre ; la charte d'origine étant claire, les endroits où elle écrit une
        couleur en dur (fonds blancs, texte blanc sur l'encre) y sont corrigés un par un.
   Le choix est gardé dans localStorage « lp-theme » (jour | nuit), posé avant l'affichage par un script en tête de page ;
   le bouton de bascule est ajouté par lp-classe.js. La retirer rend l'ancien habillage tel quel. */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("montserrat.woff2") format("woff2"); }

/* ── 1. Commun ───────────────────────────────────────────────────────────────────────────────────────── */
:root { --titre: "Montserrat", "Figtree", system-ui, sans-serif; }
::selection { background: rgba(46,229,157,.35); }

/* Titres : Montserrat, sans les lettres serrées du « gadget ». */
h1, h2, h3, .identite h1, .porte h1, .guichet h2 { font-family: var(--titre); letter-spacing: -.015em; font-variation-settings: normal; }
h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; }
.identite h1 { font-weight: 800; font-size: clamp(34px, 5vw, 66px); line-height: 1.02; letter-spacing: -.02em; }
.porte h1 { font-weight: 800; font-size: clamp(36px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -.025em; }
.scene h1 { font-size: clamp(38px, 5.4vw, 82px); line-height: 1.02; letter-spacing: -.025em; }
.chiffres b { font-family: var(--titre); font-weight: 700; letter-spacing: -.02em; }
.chiffres span { letter-spacing: .02em; }
/* Le dégradé arc-en-ciel qui défile : un dégradé fixe, blanc vers menthe (l'en-tête reste sombre dans les deux modes). */
.dl { background: linear-gradient(100deg, #fff 0%, #c9f7e4 45%, var(--menthe) 100%); background-size: 100% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: none; }

/* En-tête : on garde l'animation (halos, carte de France), plus sobre. */
.scene { background: linear-gradient(180deg, #141a2b 0%, #182037 100%); }
.halo.h1 { opacity: .38; } .halo.h2 { opacity: .2; } .halo.h3 { opacity: .22; } .halo.h4 { opacity: .14; }
.chiffres div { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); border-radius: 16px; }
.identite .logo { border-radius: 24px; background: rgba(255,255,255,.96); border: 0; }
.verre { background: rgba(255,255,255,.06); }

/* Boutons : sobres, la menthe pour l'action principale seulement. */
.bouton { font-weight: 700; letter-spacing: .01em; }
.bouton.plein { background: var(--menthe); color: #141a2b; box-shadow: 0 12px 30px -14px rgba(46,229,157,.7); }
.bouton.plein:hover { background: #4ff0b0; }
.themes button:hover, .em-themes button:hover, .themes button.ici, .em-themes button.ici { transform: none; }
.onglets button, .onglets a { font-weight: 700; letter-spacing: .01em; }
/* Pastilles corail à texte blanc (En direct, Erreur, PUT) : un corail un peu plus profond pour que le blanc se lise. */
.pastille-direct, .carte-etat.erreur, .verbe.put, .fiche .direct { background: #cf2c43; color: #fff !important; }

/* Menus déroulants (les filtres transformés par lp-classe.js). */
.fd { position: relative; flex: 0 1 auto; min-width: 0; }
.fd .champ-deroulant { min-height: 46px; width: auto; min-width: 190px; padding: 6px 14px; gap: 10px; border-radius: 12px; font: inherit; cursor: pointer; text-align: left; }
.fd .fd-lib { font: 700 10.5px/1 var(--titre); letter-spacing: .14em; text-transform: uppercase; color: var(--encre-3); white-space: nowrap; }
.fd .champ-texte { flex: 1; font-weight: 700; font-size: 14.5px; color: var(--encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd .deroulant { min-width: 240px; padding: 6px; border-radius: 16px; background: var(--blanc); }
.fd .deroulant.fd-droite { left: auto; right: 0; }
/* Dans le menu, les pastilles deviennent une liste. */
.fd .deroulant > div { display: flex !important; flex-direction: column; align-items: stretch; gap: 2px; flex-wrap: nowrap !important; overflow: visible !important; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.fd .deroulant > div > button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 8px 12px; border: 0; border-radius: 10px; background: none !important; color: var(--encre) !important;
  font: 600 14.5px "Figtree", sans-serif; text-align: left; box-shadow: none !important; transform: none !important; cursor: pointer; justify-content: flex-start; }
.fd .deroulant > div > button.ici::after { content: ""; margin-left: auto; width: 14px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translate(1px, -2px); }
.fd .deroulant > div > button i { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: none !important; }
.fd .deroulant > div > button.ici i { background: var(--t, var(--menthe)) !important; }
.fd .deroulant > div > button b { margin-left: 4px; font-weight: 700; color: var(--encre-3); }
.fd .fd-tout { color: var(--encre-2) !important; }
/* Filtres de « Mes vidéos » : une seule ligne de menus. */
.mes-filtres.fd-ok { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; }
.mes-filtres.fd-ok .mes-ligne { display: contents; }
.mes-filtres.fd-ok .mes-libelle { display: none; }
.mes-filtres.fd-ok .mes-emission { flex: 1 1 260px; min-width: 0; }
.mes-filtres.fd-ok .mes-emission .champ-deroulant { min-height: 46px; border-radius: 12px; }
/* Filtres de la médiathèque sur UNE ligne (Flavien 02/11/2026 : « trop gros, une seule ligne avec la recherche
   en dernier à droite ») : Chaîne, Type, Thème, puis la recherche qui prend le reste de la place. */
.filtres-dedans.fd-ok { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; border-radius: 20px; }
.filtres-dedans.fd-ok .ch-choix { flex: 0 0 250px; min-width: 0; }
.filtres-dedans.fd-ok .ch-choix .champ-deroulant { min-height: 46px; border-radius: 12px; }
.filtres-dedans.fd-ok .puces-ligne { display: flex; flex: 0 0 auto; flex-wrap: nowrap; gap: 10px; }
.filtres-dedans.fd-ok .puces-sep { display: none; }
.filtres-dedans.fd-ok .fd .champ-deroulant { min-width: 170px; }
.filtres-dedans.fd-ok .recherche { order: 9; flex: 1 1 240px; border-radius: 12px; }
.filtres-dedans.fd-ok .recherche input { padding: 12px 0 !important; }

/* Bouton jour / nuit (ajouté par lp-classe.js). */
.lp-theme { position: fixed; left: 16px; bottom: 16px; z-index: 90; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--blanc); color: var(--encre); box-shadow: 0 0 0 1px var(--trait-2), 0 12px 30px -12px rgba(0,0,0,.45); transition: transform .2s; }
.lp-theme:hover { transform: scale(1.06); }
.lp-theme svg { width: 20px; height: 20px; }
.lp-theme .soleil { display: none; }
:root:not([data-theme="jour"]) .lp-theme .soleil { display: block; }
:root:not([data-theme="jour"]) .lp-theme .lune { display: none; }

/* Support (03/11/2026, Mr. Light après la démo : « un bouton support en bas à droite, un formulaire contact »).
   Bouton ajouté par lp-classe.js sur toutes les pages ; les demandes vont dans la console, onglet Support. */
.lp-support { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px;
  border-radius: 999px; border: 0; cursor: pointer; background: #5a46e0; color: #fff; font: 800 14px "Figtree", sans-serif;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); transition: transform .2s var(--ressort), box-shadow .2s; }
.lp-support:hover, .lp-support:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(107,76,255,.7); outline: none; }
.lp-support svg { width: 18px; height: 18px; }
.lp-support[aria-expanded="true"] { transform: none; }
.lp-sup-panneau { position: fixed; right: 16px; bottom: 72px; z-index: 91; width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - 96px); overflow-y: auto;
  padding: 22px; border-radius: 22px; background: var(--blanc); color: var(--encre); box-shadow: 0 0 0 1px var(--trait-2), 0 30px 60px -20px rgba(0,0,0,.55);
  transform-origin: bottom right; animation: lpSupMonte .25s var(--doux); }
.lp-sup-panneau[hidden] { display: none; }
@keyframes lpSupMonte { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.lp-sup-panneau h2 { margin: 0 0 4px; font: 800 22px/1.15 var(--titre); }
.lp-sup-panneau .sous { margin: 0 0 16px; font-size: 14px; color: var(--encre-3); }
.lp-sup-panneau label { display: block; margin: 0 0 12px; font-weight: 700; font-size: 13px; color: var(--encre-2); }
.lp-sup-panneau input, .lp-sup-panneau textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--trait-2);
  background: var(--papier); color: var(--encre); font: 500 16px "Figtree", sans-serif; box-sizing: border-box; }
.lp-sup-panneau textarea { min-height: 120px; resize: vertical; }
.lp-sup-panneau input:focus, .lp-sup-panneau textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(107,76,255,.18); }
.lp-sup-panneau .piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lp-sup-panneau .bas { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.lp-sup-panneau .envoyer { height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: #5a46e0; color: #fff; font: 800 15px "Figtree", sans-serif; cursor: pointer; }
.lp-sup-panneau .envoyer:disabled { opacity: .6; cursor: default; }
.lp-sup-panneau .fermer { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--papier); color: var(--encre-2); cursor: pointer; display: grid; place-items: center; }
.lp-sup-panneau .fermer svg { width: 16px; height: 16px; }
.lp-sup-panneau .erreur { color: var(--corail); font-size: 13px; font-weight: 700; }
.lp-sup-panneau .merci { text-align: center; padding: 18px 4px 6px; }
.lp-sup-panneau .merci b { display: block; font: 800 20px var(--titre); margin-bottom: 6px; }
.lp-sup-panneau .merci svg { width: 46px; height: 46px; color: var(--menthe-f); margin-bottom: 10px; }
@media (max-width: 520px) { .lp-support span { display: none; } .lp-support { padding: 0 13px; } }

@media (max-width: 760px) {
  .fd { flex: 1 1 calc(50% - 10px); }
  .fd .champ-deroulant { min-width: 0; width: 100%; }
  .fd .deroulant { min-width: 100%; }
  .mes-filtres.fd-ok .mes-emission { flex-basis: 100%; }
  /* Téléphone : les trois menus côte à côte (libellé au-dessus du choix), la recherche dessous. */
  .filtres-dedans.fd-ok { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 8px; }
  .filtres-dedans.fd-ok .ch-choix { flex: none; }
  .filtres-dedans.fd-ok .puces-ligne { display: contents; }
  .filtres-dedans.fd-ok .fd { flex: none; }
  .filtres-dedans.fd-ok .fd .champ-deroulant, .filtres-dedans.fd-ok .ch-choix .champ-deroulant { min-width: 0; min-height: 50px; padding: 6px 10px; gap: 6px; }
  .filtres-dedans.fd-ok .fd .champ-deroulant { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; row-gap: 3px; }
  .filtres-dedans.fd-ok .fd .fd-lib { grid-column: 1; font-size: 9.5px; }
  .filtres-dedans.fd-ok .fd .champ-texte { grid-column: 1; font-size: 14px; }
  .filtres-dedans.fd-ok .fd .chevron { grid-column: 2; grid-row: 1 / 3; }
  .filtres-dedans.fd-ok .ch-choix .champ-texte { font-size: 14px; }
  .filtres-dedans.fd-ok .ch-choix .ch-mini { width: 26px; height: 26px; }
  .filtres-dedans.fd-ok .recherche { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .halo { animation: none !important; } }

/* ── 2. Jour : la charte claire d'origine, plus neutre (moins violette), petits textes plus lisibles ─────── */
:root[data-theme="jour"] {
  --encre: #141a2b; --encre-2: #434a60; --encre-3: #5f667d; --papier: #f3f4f7; --blanc: #fff; --trait: #e2e5ec; --trait-2: #cfd4de;
  --violet: #5a46e0; --menthe-f: #0b8a58;
  --ombre: 0 1px 2px rgba(20,26,43,.05), 0 14px 40px -16px rgba(20,26,43,.18);
  & h2 em, & h1 em { color: var(--menthe-f); font-style: normal; }
  & .fd.actif .champ-deroulant { border-color: var(--menthe-f); }
  & .fd.actif .champ-texte { color: var(--menthe-f); }
  & .fd .deroulant { box-shadow: 0 0 0 1px var(--trait-2), 0 24px 50px -20px rgba(20,26,43,.3); }
  & .fd .deroulant > div > button:hover { background: rgba(20,26,43,.05) !important; }
  & .fd .deroulant > div > button.ici { background: rgba(11,138,88,.1) !important; color: var(--menthe-f) !important; }
  & .ch-chiffres .incomplet b { color: #7a5200; }
  & .manque { color: #c4283d; }
  & .verbe.get { background: #087a4d; }
}

/* ── 3. Nuit (par défaut) : ardoise bleutée, sombre sans être noire ──────────────────────────────────── */
:root:not([data-theme="jour"]) {
  /* Les blocs volontairement foncés (en-tête, lecteur) prennent --nuit. */
  --nuit: #141a2b; --papier: #1c2336; --blanc: #252d45; --leve: #2d3652;
  --encre: #eef1f8; --encre-2: #c0c6d8; --encre-3: #9aa3bd;
  --trait: rgba(255,255,255,.08); --trait-2: rgba(255,255,255,.16);
  --violet: #9aa8ff; --menthe-f: #2ee59d; --or: #e8c77a;
  --ombre: 0 0 0 1px rgba(255,255,255,.06), 0 24px 48px -28px rgba(0,0,0,.7);
  background: var(--papier);

  & body { background: radial-gradient(1200px 600px at 50% -200px, #26304a 0%, transparent 70%), var(--papier); background-attachment: fixed; color: var(--encre); }
  & ::selection { color: #fff; }
  & h2 em, & h1 em { color: var(--menthe); font-style: normal; }
  & a { color: var(--violet); }
  /* Titres des vidéos en blanc la nuit (Flavien, 04/11/2026) ; le nom de l'émission (.carte-em) reste bleu pâle. */
  & a.carte-texte { color: var(--encre); }

  /* Blocs foncés : l'encre est devenue claire, ils prennent la nuit (texte blanc d'origine gardé). */
  & .lecteur-haut, & .cle, & .ferme, & .rg-page, & .em-scene, & .doc-titre span, & .fiche-ecran, & .salle, & .comme-bandeau, & .doc-lien, & .console-lien, & .une,
  & .fin, & .inconnu, & .fiche-barre, & .depot.sombre.plein .vue, & .depot.avec-image.sombre .grande { background-color: var(--nuit); }
  & .mon-direct { background: var(--nuit); box-shadow: 0 0 0 1px var(--trait); }
  & .mon-direct .direct-titre, & .mon-direct h3, & .mon-direct b { color: #fff; }
  & .rg-mots em.g { background: var(--menthe); color: var(--nuit); }
  & .carte-img { background: linear-gradient(135deg, color-mix(in srgb, var(--c, #3a4466) 70%, var(--nuit)), var(--nuit)); }
  & .espace-bandeau { background: rgba(37,45,69,.96); color: var(--encre); box-shadow: 0 0 0 1px var(--trait-2), 0 30px 60px -20px rgba(0,0,0,.8); }
  & .espace-bandeau b, & .espace-bandeau strong { color: #fff; }

  /* Pastilles « choisies » d'origine : fond d'encre et texte blanc, devenus clair sur clair. */
  & .onglets button.ici, & .onglets a.ici, & .bascule button.ici, & .puces-etat button.ici, & .puce.type.ici, & .puces-langues button.ici { background: var(--menthe); color: var(--nuit); box-shadow: none; }
  & .puces-etat button.ici b { color: rgba(20,26,43,.6); }
  & .recap button:hover { background: var(--menthe); color: var(--nuit); }

  /* Onglets : barre de verre sombre. Mêmes onglets, mêmes textes. */
  & .onglets { background: rgba(28,35,54,.82); box-shadow: 0 0 0 1px var(--trait-2), 0 20px 40px -24px rgba(0,0,0,.8); }
  & .onglets button, & .onglets a { color: var(--encre-2); }
  & .onglets button:hover, & .onglets a:hover { background: rgba(255,255,255,.06); color: var(--encre); }
  & body.defile .onglets, & .filtres.colle .filtres-dedans { background: rgba(28,35,54,.95); box-shadow: 0 0 0 1px var(--trait-2), 0 14px 30px -16px rgba(0,0,0,.8); }

  /* Cartes et champs. */
  & .carte, & .mes-filtres, & .pg-bloc, & .filtres-dedans { background: var(--blanc); box-shadow: var(--ombre); }
  & input[type=text], & input[type=email], & input[type=search], & input[type=date], & input[type=number], & input[type=url], & input[type=tel], & textarea, & select { background-color: var(--papier); border-color: var(--trait-2); color: var(--encre); }
  & input::placeholder, & textarea::placeholder { color: var(--encre-3); }
  & input:focus, & textarea:focus, & select:focus { background-color: var(--nuit); border-color: var(--menthe); box-shadow: 0 0 0 4px rgba(46,229,157,.16); }
  & select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b5bcd1' stroke-width='1.8'/%3E%3C/svg%3E"); }
  & .zone { background: var(--papier); } & .zone:hover, & .zone.survol { background: #222a40; } & .zone:hover::after, & .zone.survol::after { border-color: var(--menthe); }
  & .zone .rond { background: var(--menthe); color: var(--nuit); box-shadow: 0 14px 30px -12px rgba(46,229,157,.6); }
  & .em-plus { background: var(--menthe); color: var(--nuit); box-shadow: 0 14px 30px -12px rgba(46,229,157,.6); }
  & .em-nouvelle:hover, & .rangee-tout:hover, & .cal-nav:hover { background: rgba(255,255,255,.05); }
  & .em-nouvelle:hover::before { border-color: var(--menthe); }
  & .mes-aranger { background: rgba(255,194,58,.1); border-color: rgba(255,194,58,.35); color: var(--encre); }
  & .a-completer { background: linear-gradient(110deg, rgba(255,194,58,.16), rgba(255,194,58,.04) 60%) !important; color: var(--encre); }
  & .jp { background: color-mix(in srgb, var(--t) 22%, var(--blanc)); }
  & .pg-bande { background: var(--papier); box-shadow: inset 0 0 0 1px var(--trait-2); }
  & .vide { background: rgba(255,255,255,.03); color: var(--encre-2); box-shadow: inset 0 0 0 1px var(--trait); }
  & .pg-bande .vide { background: none; box-shadow: none; max-width: 640px; line-height: 1.5; }
  & .guichet input[type=email] { background: var(--papier); color: var(--encre); border-color: var(--trait-2); }
  & form.ouvrir-chaine { background: var(--papier); }

  /* Boutons. */
  & .bouton { background: var(--leve); color: var(--encre); box-shadow: inset 0 0 0 1px var(--trait-2); }
  & .bouton:hover { background: #36405f; }
  & .bouton.plein { background: var(--menthe); color: var(--nuit); }
  & .bouton.discret { background: transparent; box-shadow: inset 0 0 0 1px var(--trait-2); color: var(--encre); }
  & .bouton.discret:hover { background: rgba(255,255,255,.06); }
  & .actions-image button { background: var(--leve); color: var(--encre); }

  /* Pastilles et bascules (fiche d'une vidéo, formulaires). */
  & .bascule { background: var(--papier); box-shadow: inset 0 0 0 1px var(--trait-2); }
  & .puces-etat button, & .puces-langues button { background: var(--papier); color: var(--encre); }
  & .themes button, & .em-themes button { background: var(--papier); color: var(--encre); box-shadow: inset 0 0 0 1px var(--trait-2); }
  & .carte-etat.off { background: rgba(20,26,43,.88); color: var(--encre); } & .carte-etat.off i { background: var(--encre-3); }
  & .verbe { color: var(--nuit); }

  /* Badges et états lisibles sur fond sombre. */
  & .badge { background: rgba(255,255,255,.07); color: var(--encre-2); }
  & .badge.publie { background: rgba(46,229,157,.14); color: #7ff2c4; }
  & .badge.pret { background: rgba(255,194,58,.14); color: #ffd577; }
  & .badge.erreur { background: rgba(255,90,110,.14); color: #ff9aa7; }
  & .etapes .ok { color: #7ff2c4; } & .etapes .ko { color: #ff9aa7; } & .etapes .attente { color: #ffd577; }
  & .ch-chiffres .incomplet b { color: #ffd577; }
  & .manque { color: #ff9aa7; }

  /* Inscription : la colonne des étapes était un verre blanc, avec le texte devenu clair. */
  & .barre-etapes { background: rgba(37,45,69,.92); border-color: var(--trait-2); }
  & .barre-etapes button:hover { background: rgba(255,255,255,.05); }
  & .barre-etapes button.ici { background: var(--menthe); color: var(--nuit); }
  & .barre-etapes button.ici .n { color: #fff; }
  & .plan > .barre-etapes button.ici .s { color: rgba(20,26,43,.7); }
  & .plan > .barre-etapes button.fait .s { color: #7ff2c4; }
  & .plan > .barre-etapes button.ici.fait .s { color: rgba(20,26,43,.7); }
  & .barre-etapes button.fait .n { color: var(--nuit); }

  /* Menus déroulants. */
  & .champ-deroulant { background: var(--papier); border-color: var(--trait-2); color: var(--encre); }
  & .champ-deroulant:hover { border-color: rgba(255,255,255,.28); }
  & .champ-deroulant:focus-visible, & .deroule.ouvert .champ-deroulant { background: var(--nuit); border-color: var(--menthe); box-shadow: 0 0 0 4px rgba(46,229,157,.14); }
  & .champ-deroulant .chevron { color: var(--encre-2); }
  & .ch-choix .champ-deroulant, & .ch-choix .champ-deroulant.choisi { background: var(--papier); border-color: var(--trait-2); }
  & .deroulant { background: var(--blanc); box-shadow: 0 0 0 1px var(--trait-2), 0 30px 60px -20px rgba(0,0,0,.75); }
  & .fd.actif .champ-deroulant { border-color: rgba(46,229,157,.55); }
  & .fd.actif .champ-texte { color: var(--menthe); }
  & .fd .deroulant > div > button:hover { background: rgba(255,255,255,.06) !important; }
  & .fd .deroulant > div > button.ici { background: rgba(46,229,157,.12) !important; color: var(--menthe) !important; }

  /* Pied. */
  & .pied { color: var(--encre-3); }
  & .pied img { content: url("logo-tv-blanc.png"); opacity: .6; }
}

/* Infobulles (30/10/2026) : bulle unique posée par lp-classe.js sur tout élément data-aide ; un « ? » discret signale
   les libellés qui en ont une. Mêmes jetons de couleur que le thème : sombre la nuit, claire le jour. */
.lp-bulle { position: absolute; z-index: 9999; max-width: min(320px, calc(100vw - 20px)); padding: 10px 13px; border-radius: 12px;
  background: #0f1422; color: #eef1f8; font: 600 13px/1.45 "Figtree", system-ui, sans-serif; letter-spacing: 0; text-transform: none;
  box-shadow: 0 14px 34px -10px rgba(5, 8, 20, .55), 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none;
  opacity: 0; transform: translateY(4px); transition: opacity .14s ease, transform .14s ease; }
.lp-bulle.ici { opacity: 1; transform: none; }
.lp-bulle::after { content: ""; position: absolute; left: var(--fleche, 50%); bottom: -6px; width: 12px; height: 12px; margin-left: -6px;
  background: inherit; transform: rotate(45deg); border-radius: 2px; box-shadow: 1px 1px 0 rgba(255, 255, 255, .08); }
.lp-bulle.dessous::after { bottom: auto; top: -6px; box-shadow: -1px -1px 0 rgba(255, 255, 255, .08); }
:root[data-theme="jour"] .lp-bulle { background: #fff; color: #141a2b; box-shadow: 0 14px 34px -12px rgba(20, 26, 43, .35), 0 0 0 1px #e2e5ec; }
:root[data-theme="jour"] .lp-bulle::after { box-shadow: 1px 1px 0 #e2e5ec; }
:root[data-theme="jour"] .lp-bulle.dessous::after { box-shadow: -1px -1px 0 #e2e5ec; }
label[data-aide], .titre[data-aide], h3[data-aide], .rg-apercu-titre[data-aide] { cursor: help; }
label[data-aide]::after, .titre[data-aide]::after, h3[data-aide]::after, .rg-apercu-titre[data-aide]::after {
  content: "?"; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 7px; border-radius: 50%;
  font: 800 10px/1 "Figtree", system-ui, sans-serif; vertical-align: 2px; color: var(--encre-3); box-shadow: inset 0 0 0 1.5px currentColor; opacity: .75; }
label[data-aide]:hover::after, .titre[data-aide]:hover::after, h3[data-aide]:hover::after { opacity: 1; color: var(--menthe, #2ee59d); }
@media (prefers-reduced-motion: reduce) { .lp-bulle { transition: none; } }

/* Médiathèque en mode jour (03/11/2026, Mr. Light : « en mode clair les premières sont invisibles ») : le mot en dégradé
   des titres (« réseau », compteur des résultats) passait du blanc au vert sur fond clair. Violet vers vert foncé, lisible. */
:root[data-theme="jour"] body.mediatheque .directs .dl,
:root[data-theme="jour"] body.mediatheque .med .dl { background: linear-gradient(100deg, var(--violet) 0%, var(--menthe-f) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
