﻿@charset "UTF-8";
/* ==================================================================
   THÈME « VERRE » (nuit) — scopé sous html.theme-verre
   Uniquement actif sur cette page. Voir inventaire de conception.
   ================================================================== */
.theme-verre {
    --nuit: #05101F;
    --flou: 18px;                       /* neutralisé à 0 en mode Contraste */
    --verre-fond: rgba(255,255,255,.055);
    --verre-bord: rgba(255,255,255,.14);
    --verre-bord-actif: rgba(255,255,255,.30);
    --or: #FFD866;
    --or-fonce: #F5B301;
    --bleu: #3D8BFF;
    --bleu-fonce: #2563EB;
    --turquoise: #55E6C8;
    --focus: #7FD1FF;
    --txt: #E9EFF7;
    --txt-doux: #A9B7C9;
    scroll-behavior: smooth;
}

/* --- Fond nuit + dégradé radial vers le haut --- */
.theme-verre body {
    background: radial-gradient(120% 90% at 50% 0%, #0A1E38 0%, var(--nuit) 55%, #030A14 100%) fixed;
    color: var(--txt);
}

/* --- Trois aurores floutées, dérive lente désynchronisée --- */
.verre-aurores { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.verre-aurore {
    position: absolute; border-radius: 50%;
    filter: blur(90px); opacity: .5; will-change: transform;
}
.verre-aurore.a1 { width: 44rem; height: 44rem; top: -10rem; left: -8rem;
    background: radial-gradient(circle, rgba(61,139,255,.55), transparent 70%);
    animation: derive1 26s ease-in-out infinite alternate; }
.verre-aurore.a2 { width: 36rem; height: 36rem; top: 20%; right: -10rem;
    background: radial-gradient(circle, rgba(245,179,1,.42), transparent 70%);
    animation: derive2 32s ease-in-out infinite alternate; }
.verre-aurore.a3 { width: 40rem; height: 40rem; bottom: -14rem; left: 25%;
    background: radial-gradient(circle, rgba(85,230,200,.38), transparent 70%);
    animation: derive3 38s ease-in-out infinite alternate; }
@keyframes derive1 { from { transform: translate(0,0) scale(1); } to { transform: translate(6rem,4rem) scale(1.12); } }
@keyframes derive2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-5rem,5rem) scale(1.08); } }
@keyframes derive3 { from { transform: translate(0,0) scale(1); } to { transform: translate(4rem,-6rem) scale(1.15); } }

/* --- Grain SVG (feTurbulence) pour casser le lissage des dégradés --- */
.verre-grain {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    opacity: .055; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Le contenu passe au-dessus des aurores et du grain */
.theme-verre .main-content { position: relative; z-index: 1; }

/* ==================================================================
   LE VERRE
   ================================================================== */
.theme-verre .verre {
    background: var(--verre-fond);
    -webkit-backdrop-filter: blur(var(--flou)) saturate(150%);
    backdrop-filter: blur(var(--flou)) saturate(150%);
    border: 1px solid var(--verre-bord);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(2,8,18,.5), inset 0 1px 0 rgba(255,255,255,.16);
}

/* ==================================================================
   BARRE DE NAVIGATION (rendue par le master)
   ================================================================== */
.theme-verre .navbar.bg-dark-glass {
    background: rgba(5,16,31,.55) !important;
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.theme-verre .navbar.bg-dark-glass.scrolled {
    background: rgba(5,16,31,.86) !important;
    box-shadow: 0 10px 30px rgba(2,8,18,.45);
}
.theme-verre .navbar .dropdown-menu.glass-dropdown {
    background: rgba(6,18,34,.82);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid var(--verre-bord);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(2,8,18,.55);
    animation: menuEntre .18s ease-out;
}
@keyframes menuEntre { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.theme-verre .navbar .dropdown-toggle::after { transition: transform .2s ease; }
.theme-verre .navbar .dropdown-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }

/* ==================================================================
   HERO
   ================================================================== */
.verre-hero { position: relative; padding: 9rem 0 5rem; text-align: center; }
.verre-pastille {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .5rem 1.1rem; border-radius: 50px;
    background: var(--verre-fond); border: 1px solid var(--verre-bord);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--txt-doux); margin-bottom: 1.75rem;
}
.verre-pastille .point {
    width: .55rem; height: .55rem; border-radius: 50%; background: var(--or);
    box-shadow: 0 0 0 0 rgba(255,216,102,.6); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,216,102,.6); }
    70% { box-shadow: 0 0 0 .7rem rgba(255,216,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,216,102,0); }
}
.verre-titre {
    font-weight: 800; line-height: 1.05; letter-spacing: -.02em;
    font-size: clamp(2.6rem, 6vw, 5.2rem); margin: 0 auto 1.5rem; max-width: 15ch;
    color: #F4F8FF;
}
.verre-titre .accent {
    background: linear-gradient(100deg, var(--or) 0%, var(--turquoise) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.verre-lien-sobre { color: var(--txt-doux); text-decoration: none; font-weight: 500; }
.verre-lien-sobre:hover { color: var(--txt); }

.verre-devise {
    position: relative; max-width: 40rem; margin: 0 auto 2rem; padding: 1.25rem 1.5rem 1.25rem 2rem;
    border: 0; border-radius: 14px; text-align: left;
    font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 300; font-style: italic; color: #DCE6F4;
}
.verre-devise::before {
    content: ""; position: absolute; left: 0; top: .4rem; bottom: .4rem; width: 3px; border-radius: 3px;
    background: linear-gradient(to bottom, var(--or), transparent);
}

.verre-jetons { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 2.5rem; }
.verre-jeton {
    display: inline-flex; align-items: baseline; gap: .45rem;
    padding: .55rem 1.1rem; border-radius: 50px;
    background: var(--verre-fond); border: 1px solid var(--verre-bord);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.verre-jeton b { font-size: 1.15rem; font-weight: 800; color: var(--or); }
.verre-jeton span { font-size: .9rem; color: var(--txt-doux); }

.verre-fleche {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.8rem; height: 2.8rem; border-radius: 50%;
    background: var(--verre-fond); border: 1px solid var(--verre-bord); color: var(--txt);
    font-size: 1.1rem; text-decoration: none; animation: flotte 2.6s ease-in-out infinite;
}
@keyframes flotte { 0%,100% { transform: translateY(0); } 50% { transform: translateY(.4rem); } }

/* ==================================================================
   BOUTONS
   ================================================================== */
.theme-verre .btn-or, .theme-verre .btn-bleu, .theme-verre .btn-fantome {
    border: 0; border-radius: 50px; font-weight: 700; color: #fff;
    padding: .85rem 2rem; min-height: 2.8rem; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    transition: transform .2s ease, box-shadow .3s ease, background .3s ease;
}
.theme-verre .btn-or {
    background: linear-gradient(135deg, var(--or) 0%, var(--or-fonce) 100%);
    color: #16223A; box-shadow: 0 8px 24px rgba(245,179,1,.28);
}
.theme-verre .btn-or:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(245,179,1,.5); }
.theme-verre .btn-bleu {
    background: linear-gradient(135deg, var(--bleu) 0%, var(--bleu-fonce) 100%);
    box-shadow: 0 8px 24px rgba(37,99,235,.3);
}
.theme-verre .btn-bleu:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(37,99,235,.55); }
.theme-verre .btn-fantome {
    background: var(--verre-fond); border: 1px solid var(--verre-bord-actif); color: var(--txt);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.theme-verre .btn-fantome:hover { transform: translateY(-2px); border-color: var(--txt); color: #fff; }
.theme-verre .btn-or:active, .theme-verre .btn-bleu:active, .theme-verre .btn-fantome:active { transform: translateY(1px); }

/* ==================================================================
   SECTIONS CONTENU
   ================================================================== */
.verre-section { position: relative; padding: 4rem 0; }
.verre-bloc { padding: 2rem 2.25rem; margin-bottom: 1.5rem; }
.verre-bloc h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 1rem; }
.verre-bloc p { line-height: 1.85; color: #CFDAE9; margin: 0; }
.verre-bloc.accent-or h2 { color: var(--or); }
.verre-bloc.accent-bleu h2 { color: var(--bleu); }

/* --- Deux blocs de texte côte à côte, mais seulement sur ordinateur :
       en dessous de 992px (tablette et téléphone) ils s'empilent, une
       colonne de texte trop étroite étant vite illisible. --- */
.verre-duo { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.verre-duo .verre-bloc { margin-bottom: 0; }
@media (min-width: 992px) {
    .verre-duo { grid-template-columns: repeat(2, 1fr); }
}

.verre-section-titre { text-align: center; margin-bottom: 2.5rem; }
.verre-section-titre h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.verre-section-titre p { color: var(--txt-doux); max-width: 44rem; margin: .75rem auto 0; }

/* --- Cartes de mandats --- */
.verre-mandats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.verre-mandat {
    position: relative; overflow: hidden; padding: 2rem 1.75rem 1.75rem;
    background: var(--verre-fond); border: 1px solid var(--verre-bord); border-radius: 18px;
    -webkit-backdrop-filter: blur(var(--flou)) saturate(150%); backdrop-filter: blur(var(--flou)) saturate(150%);
    box-shadow: 0 18px 44px rgba(2,8,18,.4), inset 0 1px 0 rgba(255,255,255,.14);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
/* Halo doré qui suit le pointeur */
.verre-mandat::before {
    content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; pointer-events: none;
    background: radial-gradient(18rem 18rem at var(--x, 50%) var(--y, 0%), rgba(255,216,102,.18), transparent 60%);
}
.verre-mandat:hover {
    transform: translateY(-6px); border-color: var(--verre-bord-actif);
    box-shadow: 0 30px 60px rgba(2,8,18,.55), inset 0 1px 0 rgba(255,255,255,.2);
}
.verre-mandat:hover::before { opacity: 1; }
.verre-mandat .num {
    position: absolute; top: .5rem; right: 1.1rem; font-size: 5rem; font-weight: 800; line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14); pointer-events: none;
}
.verre-mandat .barre {
    height: 3px; width: 3rem; border-radius: 3px; margin-bottom: 1.1rem;
    background: linear-gradient(90deg, var(--or), var(--or-fonce));
}
.verre-mandat i.tete { font-size: 1.5rem; color: var(--or); margin-bottom: .75rem; display: block; }
.verre-mandat h3 { font-size: 1.15rem; font-weight: 700; color: #F2F6FC; margin-bottom: .6rem; }
.verre-mandat p { font-size: .98rem; line-height: 1.7; color: #C4D0E1; margin: 0; }

/* --- CTA final --- */
.verre-cta { position: relative; text-align: center; padding: 3rem 2rem; }
.verre-cta::before {
    content: ""; position: absolute; top: 12%; left: 50%; transform: translateX(-50%);
    width: 22rem; height: 12rem; border-radius: 50%; filter: blur(70px); z-index: 0;
    background: radial-gradient(circle, rgba(255,216,102,.28), transparent 70%);
}
.verre-cta > * { position: relative; z-index: 1; }
.verre-cta h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: 2rem; color: #F4F8FF; }
.verre-cta a.titre-lien { text-decoration: none; }
.verre-cta .actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ==================================================================
   THERMOMÈTRE « 100 000 MEMBRES »
   Données servies par CompteurMembres.ashx (voir script en bas de page).
   ================================================================== */
.verre-thermo { padding: 2.5rem 2.25rem; }

.thermo-zone {
    display: flex; align-items: center; justify-content: center;
    gap: 3rem; flex-wrap: wrap;
}

/* --- Le tube --- */
.thermo-tube {
    position: relative; flex: 0 0 auto;
    width: 4.5rem; height: 21rem;
    border: 1px solid var(--verre-bord-actif);
    border-radius: 2.5rem;
    background: rgba(255,255,255,.04);
    -webkit-backdrop-filter: blur(var(--flou)); backdrop-filter: blur(var(--flou));
    box-shadow: inset 0 2px 10px rgba(2,8,18,.55), 0 18px 44px rgba(2,8,18,.4);
    overflow: hidden;
}

/* Colonne de « mercure » : part de 0 %, la hauteur est posée par le JS. */
.thermo-remplissage {
    position: absolute; left: 0; right: 0; bottom: 0; height: 0%;
    background: linear-gradient(to top, var(--or-fonce) 0%, var(--or) 55%, var(--turquoise) 100%);
    box-shadow: 0 0 26px rgba(255,216,102,.45);
    transition: height 1.4s cubic-bezier(.22,.61,.36,1);
}

/* Graduations 25 / 50 / 75 % */
.thermo-grad {
    position: absolute; left: 0; width: 40%; height: 1px;
    background: rgba(255,255,255,.28); pointer-events: none;
}

/* --- Colonne d'informations --- */
.thermo-infos { text-align: left; min-width: 15rem; }

.thermo-nombre {
    font-size: clamp(2.8rem, 8vw, 4.8rem); font-weight: 800; line-height: 1;
    background: linear-gradient(100deg, var(--or) 0%, var(--turquoise) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    font-variant-numeric: tabular-nums;
}
/* Pastille « En direct » : signale que le nombre se rafraîchit tout seul. */
.thermo-direct {
    display: inline-flex; align-items: center; gap: .45rem;
    margin-bottom: .9rem; padding: .3rem .85rem; border-radius: 50px;
    background: var(--verre-fond); border: 1px solid var(--verre-bord);
    font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--txt-doux);
}
.thermo-direct .point {
    width: .45rem; height: .45rem; border-radius: 50%; background: var(--turquoise);
    box-shadow: 0 0 0 0 rgba(85,230,200,.6); animation: pulseDirect 2.4s ease-out infinite;
}
@keyframes pulseDirect {
    0% { box-shadow: 0 0 0 0 rgba(85,230,200,.6); }
    70% { box-shadow: 0 0 0 .55rem rgba(85,230,200,0); }
    100% { box-shadow: 0 0 0 0 rgba(85,230,200,0); }
}

.thermo-cible { margin-top: .4rem; font-size: 1.1rem; color: #CFDAE9; }
.thermo-pourcent {
    margin-top: 1rem; font-weight: 700; font-size: 1.05rem; color: var(--turquoise);
}
.thermo-note { margin: 1.5rem 0 .35rem; font-size: .9rem; color: var(--txt-doux); }
.thermo-maj { margin: 0; font-size: .9rem; font-weight: 700; color: #DCE6F4; }
.thermo-maj.thermo-erreur { color: #FF9B9B; font-weight: 500; }

@media (max-width: 575.98px) {
    .verre-thermo { padding: 2rem 1.25rem; }
    .thermo-zone { gap: 1.75rem; }
    .thermo-tube { width: 3.6rem; height: 16rem; }
    .thermo-infos { min-width: 0; }
}

/* ==================================================================
   NOS CANDIDATS
   Grille de fiches en verre alimentée par la table dd.candidat
   (voir Repeater rptCandidats et le code-behind).
   ================================================================== */
/* --- Filtre par circonscription ---
       Liste déroulante native (asp:DropDownList) reskinnée : la flèche
       par défaut est masquée et remplacée par un chevron SVG.
       Le menu déroulant lui-même est dessiné par le système : on le
       force en clair (color-scheme) pour que le texte noir et gras des
       <option> reste lisible, tandis que la valeur affichée dans le
       champ fermé garde la couleur claire du thème. */
.verre-filtre {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: .7rem 1.1rem; margin-bottom: 2.25rem;
}
.filtre-etiquette {
    margin: 0; font-size: .78rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--txt-doux);
}
.theme-verre .filtre-select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    min-width: 17rem; max-width: 100%;
    padding: .7rem 2.8rem .7rem 1.25rem;
    border-radius: 50px;
    background-color: rgba(255,255,255,.06);
    border: 1px solid var(--verre-bord-actif);
    -webkit-backdrop-filter: blur(var(--flou)) saturate(150%); backdrop-filter: blur(var(--flou)) saturate(150%);
    color: var(--txt); font-size: .95rem; font-weight: 600; font-family: inherit;
    color-scheme: light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23FFD866' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1.15rem center; background-size: .8rem;
    cursor: pointer;
    transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.theme-verre .filtre-select:hover {
    border-color: var(--txt); background-color: rgba(255,255,255,.1);
    box-shadow: 0 8px 24px rgba(2,8,18,.4);
}
/* Les entrées du menu natif : texte noir et gras sur fond clair. */
.theme-verre .filtre-select option {
    color: #000; font-weight: 700; background-color: #fff;
}
.filtre-compte { font-size: .88rem; color: var(--txt-doux); }
.filtre-compte b { color: var(--or); font-weight: 800; }

@media (max-width: 575.98px) {
    .verre-filtre { margin-bottom: 1.75rem; }
    .theme-verre .filtre-select { min-width: 0; width: 100%; }
}

.verre-candidats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
    gap: 1.5rem;
}

.verre-candidat {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    background: var(--verre-fond); border: 1px solid var(--verre-bord); border-radius: 18px;
    -webkit-backdrop-filter: blur(var(--flou)) saturate(150%); backdrop-filter: blur(var(--flou)) saturate(150%);
    box-shadow: 0 18px 44px rgba(2,8,18,.4), inset 0 1px 0 rgba(255,255,255,.14);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
/* Halo doré qui suit le pointeur (même script que les cartes de mandats) */
.verre-candidat::before {
    content: ""; position: absolute; inset: 0; z-index: 2; opacity: 0;
    transition: opacity .3s ease; pointer-events: none;
    background: radial-gradient(16rem 16rem at var(--x, 50%) var(--y, 0%), rgba(255,216,102,.18), transparent 60%);
}
.verre-candidat:hover {
    transform: translateY(-6px); border-color: var(--verre-bord-actif);
    box-shadow: 0 30px 60px rgba(2,8,18,.55), inset 0 1px 0 rgba(255,255,255,.2);
}
.verre-candidat:hover::before { opacity: 1; }

/* --- Portrait : cadre carré, la photo est recadrée, jamais déformée --- */
.cand-media {
    position: relative; aspect-ratio: 1 / 1; overflow: hidden;
    background: linear-gradient(150deg, rgba(61,139,255,.24), rgba(85,230,200,.14));
}
.cand-photo {
    width: 100%; height: 100%; display: block;
    object-fit: cover; object-position: center 22%;
    transition: transform .5s ease;
}
.verre-candidat:hover .cand-photo { transform: scale(1.05); }
/* Voile bas : le nom reste lisible quelle que soit la photo */
.cand-media::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 45%; pointer-events: none;
    background: linear-gradient(to top, rgba(5,16,31,.8), transparent);
}
/* Repli quand la fiche n'a pas de photo : les initiales */
.cand-initiales {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 2.9rem; font-weight: 800; letter-spacing: .06em; color: rgba(255,255,255,.55);
}

/* --- Corps de la fiche --- */
.cand-corps {
    position: relative; z-index: 1; flex: 1 1 auto;
    display: flex; flex-direction: column; align-items: flex-start; gap: .4rem;
    padding: 1.15rem 1.25rem 1.35rem;
}
.cand-barre {
    height: 3px; width: 2.5rem; border-radius: 3px; margin-bottom: .25rem;
    background: linear-gradient(90deg, var(--or), var(--or-fonce));
}
.cand-nom { font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: #F2F6FC; margin: 0; }
.cand-circ {
    display: inline-flex; align-items: baseline; gap: .4rem;
    font-size: .88rem; color: var(--txt-doux); margin: 0;
}
.cand-circ i { color: var(--or); }
.theme-verre .cand-lien {
    margin-top: auto; padding: .5rem 1.05rem; min-height: 2.2rem; font-size: .85rem;
}

@media (max-width: 575.98px) {
    /* Deux fiches par rangée sur téléphone plutôt qu'une colonne étirée */
    .verre-candidats { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); gap: 1rem; }
    .cand-corps { padding: .9rem 1rem 1.1rem; }
    .cand-initiales { font-size: 2.1rem; }
}

/* ==================================================================
   PIED DE PAGE (rendu par le master)
   ================================================================== */
.theme-verre .footer {
    background: rgba(6,18,34,.6);
    -webkit-backdrop-filter: blur(var(--flou)); backdrop-filter: blur(var(--flou));
    border-top: 1px solid var(--verre-bord); margin-top: 0;
}
.theme-verre #toggleContrast { display: inline-flex !important; align-items: center; gap: .35rem; }

/* --- Apparition au défilement (cascade) --- */
.theme-verre .fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.theme-verre .fade-in.visible { opacity: 1; transform: translateY(0); }
.theme-verre .verre-mandat.fade-in:nth-child(1) { transition-delay: 0ms; }
.theme-verre .verre-mandat.fade-in:nth-child(2) { transition-delay: 70ms; }
.theme-verre .verre-mandat.fade-in:nth-child(3) { transition-delay: 140ms; }
.theme-verre .verre-mandat.fade-in:nth-child(4) { transition-delay: 210ms; }
.theme-verre .verre-mandat.fade-in:nth-child(5) { transition-delay: 280ms; }
.theme-verre .verre-mandat.fade-in:nth-child(6) { transition-delay: 350ms; }
.theme-verre .verre-candidat.fade-in:nth-child(1) { transition-delay: 0ms; }
.theme-verre .verre-candidat.fade-in:nth-child(2) { transition-delay: 60ms; }
.theme-verre .verre-candidat.fade-in:nth-child(3) { transition-delay: 120ms; }
.theme-verre .verre-candidat.fade-in:nth-child(4) { transition-delay: 180ms; }
.theme-verre .verre-candidat.fade-in:nth-child(5) { transition-delay: 240ms; }
.theme-verre .verre-candidat.fade-in:nth-child(6) { transition-delay: 300ms; }
.theme-verre .verre-candidat.fade-in:nth-child(7) { transition-delay: 360ms; }
.theme-verre .verre-candidat.fade-in:nth-child(8) { transition-delay: 420ms; }

/* ==================================================================
   ACCESSIBILITÉ — anneaux de focus
   ================================================================== */
.theme-verre a:focus-visible, .theme-verre button:focus-visible,
.theme-verre .btn-or:focus-visible, .theme-verre .btn-bleu:focus-visible, .theme-verre .btn-fantome:focus-visible {
    outline: 3px solid var(--focus); outline-offset: 3px;
}

/* ==================================================================
   MODE CONTRASTE — le verre coûte du contraste : on le supprime
   ================================================================== */
.theme-verre body.high-contrast { --flou: 0px; background: #000 !important; color: #fff !important; }
.theme-verre body.high-contrast .verre-aurores,
.theme-verre body.high-contrast .verre-grain,
.theme-verre body.high-contrast .verre-cta::before,
.theme-verre body.high-contrast .verre-candidat::before,
.theme-verre body.high-contrast .cand-media::after,
.theme-verre body.high-contrast .verre-mandat::before { display: none !important; }
.theme-verre body.high-contrast .verre,
.theme-verre body.high-contrast .verre-mandat,
.theme-verre body.high-contrast .verre-candidat,
.theme-verre body.high-contrast .cand-media,
.theme-verre body.high-contrast .verre-bloc,
.theme-verre body.high-contrast .btn-fantome,
.theme-verre body.high-contrast .navbar.bg-dark-glass,
.theme-verre body.high-contrast .dropdown-menu.glass-dropdown,
.theme-verre body.high-contrast .footer {
    background: #000 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    border-color: #ff0 !important; box-shadow: none !important; color: #fff !important;
}
.theme-verre body.high-contrast .verre-titre .accent,
.theme-verre body.high-contrast .verre-jeton b,
.theme-verre body.high-contrast .verre-mandat i.tete,
.theme-verre body.high-contrast .cand-circ i,
.theme-verre body.high-contrast .cand-initiales,
.theme-verre body.high-contrast .accent-or h2,
.theme-verre body.high-contrast .thermo-nombre,
.theme-verre body.high-contrast .thermo-pourcent {
    color: #ff0 !important; -webkit-text-fill-color: #ff0 !important; background: none !important;
}
/* Le tube : le verre disparaît, le remplissage reste lisible en aplat. */
.theme-verre body.high-contrast .thermo-tube {
    background: #000 !important; -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important; border-color: #ff0 !important; box-shadow: none !important;
}
.theme-verre body.high-contrast .thermo-remplissage {
    background: #ff0 !important; box-shadow: none !important;
}
.theme-verre body.high-contrast .thermo-grad { background: #ff0 !important; }
.theme-verre body.high-contrast .thermo-direct {
    background: #000 !important; border-color: #ff0 !important; color: #ff0 !important;
}
.theme-verre body.high-contrast .thermo-direct .point {
    background: #ff0 !important; box-shadow: none !important;
}
.theme-verre body.high-contrast .thermo-maj.thermo-erreur { color: #ff0 !important; }
.theme-verre body.high-contrast .verre-mandat .num { -webkit-text-stroke: 1px #ff0; }
.theme-verre body.high-contrast .cand-barre { background: #ff0 !important; }
.theme-verre body.high-contrast .filtre-select {
    background-color: #000 !important; color: #fff !important; border-color: #ff0 !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important;
}
.theme-verre body.high-contrast .filtre-select option {
    color: #000 !important; background-color: #ff0 !important;
}
.theme-verre body.high-contrast .filtre-etiquette,
.theme-verre body.high-contrast .filtre-compte,
.theme-verre body.high-contrast .filtre-compte b { color: #ff0 !important; }
.theme-verre body.high-contrast .btn-or, .theme-verre body.high-contrast .btn-bleu {
    background: #ff0 !important; color: #000 !important;
}

/* ==================================================================
   MOUVEMENT RÉDUIT
   ================================================================== */
@media (prefers-reduced-motion: reduce) {
    .theme-verre { scroll-behavior: auto; }
    .theme-verre .verre-aurore,
    .theme-verre .verre-pastille .point,
    .theme-verre .thermo-direct .point,
    .theme-verre .verre-fleche { animation: none !important; }
    .theme-verre .fade-in { opacity: 1 !important; transform: none !important; transition: none !important; }
    /* Le mercure se place d'un coup, sans montée animée. */
    .theme-verre .thermo-remplissage { transition: none !important; }
    /* Le portrait ne zoome pas au survol. */
    .theme-verre .cand-photo { transition: none !important; }
    .theme-verre .verre-candidat:hover .cand-photo { transform: none !important; }
    .theme-verre .filtre-select { transition: none !important; }
}

/* ==================================================================
   RESPONSIVE
   ================================================================== */
@media (max-width: 767.98px) {
    .verre-hero { padding: 7rem 0 3.5rem; }
    .verre-bloc { padding: 1.5rem 1.25rem; }
    .verre-mandat .num { font-size: 3.5rem; }
}
