﻿@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;

    /* La barre de navigation du master est en position fixe (navbar fixed-top
       py-3) : logo de 40px + 2x16px de padding = 72px. Sans cette réserve,
       TOUTE navigation d'ancre dépose sa cible dessous — la flèche du héros
       vers #principe, le lien d'évitement vers #contenu, et n'importe quel
       lien partagé vers #candidats. 5.5rem laisse 16px de dégagement. */
    scroll-padding-top: 5.5rem;
}

/* --- 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 */
/* padding-top/margin-top : StyleSheet.css donne .main-content { padding: 3rem 0 }
   pour tout le site. Sur cette page le héros porte déjà son propre dégagement
   sous la barre fixe, et les 3rem s'ajoutaient par-dessus. Le correctif vivait
   jusqu'ici dans un style= sur le <main> de chacune des trois pages. */
.theme-verre .main-content { position: relative; z-index: 1; margin-top: 0; padding-top: 0; }

/* ==================================================================
   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); } }

/* Accès rapides du héros : un panneau de verre, deux groupes titrés
   (« La démarche » / « Le parti »), un seul bouton plein par groupe.
   Grille : 1 colonne sous 768 px, 2 colonnes au-dessus, séparées d'un filet. */
.verre-acces {
    display: grid; grid-template-columns: 1fr; gap: 1.5rem;
    max-width: 62rem; margin: 0 auto 2.5rem; padding: 1.5rem 1.25rem;
    background: var(--verre-fond); border: 1px solid var(--verre-bord); border-radius: 22px;
    -webkit-backdrop-filter: blur(var(--flou)); backdrop-filter: blur(var(--flou));
    box-shadow: 0 24px 60px rgba(2,8,18,.35), inset 0 1px 0 rgba(255,255,255,.08);
    text-align: center;
}
.verre-acces-titre {
    display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem;
    font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--txt-doux);
}
.verre-acces-titre i { color: var(--or); font-size: .9rem; }
/* Boutons de largeur égale, empilés : un vrai menu, pas trois pilules dépareillées. */
.verre-acces-boutons { display: grid; grid-template-columns: 1fr; gap: .75rem; max-width: 22rem; margin: 0 auto; }
.verre-acces-boutons a { width: 100%; }
.verre-acces-boutons a i { width: 1.1rem; text-align: center; }
@media (min-width: 768px) {
    .verre-acces { grid-template-columns: 1fr 1fr; padding: 1.75rem 2rem; }
    .verre-acces-groupe + .verre-acces-groupe {
        border-left: 1px solid var(--verre-bord); padding-left: 2rem; margin-left: -.25rem;
    }
}
@media (max-width: 575.98px) {
    .verre-acces { padding: 1.25rem 1rem; border-radius: 18px; }
    .verre-acces-boutons { max-width: none; }
    .verre-acces-groupe + .verre-acces-groupe { border-top: 1px solid var(--verre-bord); padding-top: 1.25rem; }
}

/* ==================================================================
   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
   ================================================================== */
/* Pas de padding-top : les 15 emplois de .verre-section du site (5 par page,
   sur les trois accueils) l'annulaient tous avec .pt-0. Quand la valeur par
   défaut est neutralisée 15 fois sur 15, c'est la valeur par défaut qui est
   fausse. Les sections s'enchaînent, seul le bas les sépare. */
.verre-section { position: relative; padding: 0 0 4rem; }
.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);
}
/* Le portrait mene a la circonscription : une surface transparente posee
   par-dessus toute la zone de l'image. z-index 3 la place au-dessus du
   voile du bas (::after) et du halo de la fiche (::before, z-index 2), qui
   ne prennent de toute facon pas le pointeur.

   Elle ne se voit pas et n'ajoute rien a l'ecran : ce que le visiteur
   percoit, c'est le curseur qui change sur la photo. */
.cand-media-lien {
    position: absolute; inset: 0; z-index: 3;
    display: block; cursor: pointer;
    /* Un fond transparent explicite : sans lui, Safari laisse par moments
       un lien vide sans surface cliquable. */
    background: 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;
}

/* --- Actions de la fiche : des boutons ronds a icone seule ---
   Le libelle de chacun vit dans title et dans un .visually-hidden ; rien
   n'est ecrit a l'ecran, la rangee tient donc sur deux fiches par rangee
   au telephone. margin-top:auto colle la rangee au bas de la fiche, quelle
   que soit la longueur du nom au-dessus (role tenu avant par .cand-lien). */
.cand-actions {
    margin-top: auto; padding-top: .95rem;
    display: flex; flex-wrap: wrap; gap: .55rem;
}
/* Chaque action a sa couleur, et ce sont les trois mêmes que le reste du
   thème : l'or, le bleu et la turquoise des aurores du fond. Trois teintes,
   pas plus — au-delà, une grille de 42 fiches vire au confetti.

   Les rondelles sont PLEINES dès le repos : teintées seulement, elles
   viraient au kaki sur le fond nuit et se voyaient à peine. Le survol ne
   change donc pas la couleur, il l'éclaire — un voile blanc, un halo plus
   large, la rondelle qui décolle.

   Les quatre variables ci-dessous portent toute la différence entre les
   trois boutons ; la règle, elle, n'est écrite qu'une fois. */
.theme-verre .btn-icon {
    --ico-clair: var(--or);
    --ico-fonce: var(--or-fonce);
    --ico-rvb: 245, 179, 1;
    --ico-txt: #16223A;

    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.75rem; height: 2.75rem; border-radius: 50%;
    background: linear-gradient(140deg, var(--ico-clair) 0%, var(--ico-fonce) 100%);
    border: 1px solid rgba(255, 255, 255, .22);
    color: var(--ico-txt); font-size: 1rem; line-height: 1; text-decoration: none;
    box-shadow: 0 6px 16px rgba(var(--ico-rvb), .34), inset 0 1px 0 rgba(255, 255, 255, .38);
    transition: transform .25s ease, box-shadow .3s ease, border-color .25s ease;
}
/* Voile d'éclaircissement du survol : une opacité s'anime, un dégradé non. */
.theme-verre .btn-icon::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: 0;
    opacity: 0; transition: opacity .25s ease;
    background: linear-gradient(140deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 65%);
}
.theme-verre .btn-icon i { position: relative; z-index: 1; transition: transform .25s ease; }

.theme-verre .btn-icon:hover, .theme-verre .btn-icon:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, .55);
    box-shadow: 0 14px 30px rgba(var(--ico-rvb), .58), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.theme-verre .btn-icon:hover::before, .theme-verre .btn-icon:focus-visible::before { opacity: 1; }
.theme-verre .btn-icon:hover i { transform: scale(1.14); }
.theme-verre .btn-icon:active { transform: translateY(0); }

/* Écrire au candidat : l'or, la couleur d'appel du site. */
.theme-verre .btn-icon-courriel {
    --ico-clair: var(--or); --ico-fonce: var(--or-fonce);
    --ico-rvb: 245, 179, 1; --ico-txt: #16223A;
}
/* Sa circonscription : le bleu, celui du repère de lieu juste au-dessus. */
.theme-verre .btn-icon-circo {
    --ico-clair: var(--bleu); --ico-fonce: var(--bleu-fonce);
    --ico-rvb: 61, 139, 255; --ico-txt: #FFFFFF;
}
/* Vers l'extérieur : la turquoise, jamais employée pour une action interne.
   Icône sombre et non blanche : le blanc sur turquoise tombe sous 3:1. */
.theme-verre .btn-icon-externe {
    --ico-clair: var(--turquoise); --ico-fonce: #1FA98F;
    --ico-rvb: 85, 230, 200; --ico-txt: #06231E;
}

@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, .theme-verre .btn-icon:focus-visible {
    outline: 3px solid var(--focus); outline-offset: 3px;
}

/* ==================================================================
   RÉSEAUX — bande parallax séparée en trois
   Pages officielles (X, Facebook) et le groupe public « Ma ville, Ma voix » :
   on amène les gens là où nous sommes le plus présents. Le fond est BGDD1.jpg
   (déjà employé par StyleSheet.css), fixé au viewport pour l'effet parallax,
   sous un voile nuit qui le fond dans le thème.
   ================================================================== */
.verre-reseaux {
    position: relative; isolation: isolate; overflow: hidden;
    padding: 5rem 0; margin-bottom: 4rem;
    background: url('../DD/BGDD1.jpg') center / cover no-repeat;
    background-attachment: fixed;
}
.verre-reseaux::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(to bottom, rgba(5,16,31,.88), rgba(5,16,31,.74) 50%, rgba(5,16,31,.88));
}
.verre-reseaux > .container { position: relative; z-index: 1; }
.verre-reseaux .verre-section-titre { margin-bottom: 2rem; }

/* Trois colonnes sur tablette et plus, une seule sur téléphone. */
.reseaux-grille { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) {
    .reseaux-grille { grid-template-columns: repeat(3, 1fr); }
}

/* Chaque tiers est un seul lien : toute la carte est cliquable. */
.reseau {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 2.25rem 1.5rem; color: var(--txt); text-decoration: none;
    transition: transform .25s ease, border-color .25s ease, box-shadow .3s ease;
}
.reseau:hover, .reseau:focus-visible {
    transform: translateY(-6px); border-color: var(--verre-bord-actif); color: #fff;
    box-shadow: 0 24px 56px rgba(2,8,18,.6), inset 0 1px 0 rgba(255,255,255,.2);
}
.reseau .ico {
    width: 4.2rem; height: 4.2rem; border-radius: 50%; margin-bottom: 1.1rem;
    display: grid; place-items: center; font-size: 1.85rem;
    background: var(--verre-fond); border: 1px solid var(--verre-bord);
    transition: transform .25s ease;
}
.reseau:hover .ico { transform: scale(1.08); }
.reseau .ico svg { width: 1.6rem; height: 1.6rem; fill: currentColor; }
.reseau.reseau-x .ico { color: #fff; }
.reseau.reseau-facebook .ico { color: var(--bleu); }
.reseau.reseau-groupe .ico { color: var(--or); }
.reseau .etiquette {
    font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--txt-doux); margin-bottom: .4rem;
}
.reseau.reseau-groupe .etiquette { color: var(--or); }
.reseau h3 { font-size: 1.2rem; font-weight: 800; color: #F2F6FC; margin-bottom: .5rem; }
.reseau p { font-size: .95rem; line-height: 1.65; color: #C4D0E1; margin: 0 0 1.25rem; }
.reseau .aller {
    margin-top: auto; font-weight: 700; color: var(--or);
    display: inline-flex; align-items: center; gap: .45rem;
}
.reseau .aller i { transition: transform .2s ease; }
.reseau:hover .aller i { transform: translateX(4px); }
.theme-verre .reseau.fade-in:nth-child(1) { transition-delay: 0ms; }
.theme-verre .reseau.fade-in:nth-child(2) { transition-delay: 90ms; }
.theme-verre .reseau.fade-in:nth-child(3) { transition-delay: 180ms; }

/* Rangée de boutons vers les chantiers citoyens (Ralliement 44, Mouvement 44,
   Comité de surveillance), sous les trois réseaux — SommesNousDemocratie.aspx. */
.reseaux-chantiers { margin-top: 2.5rem; text-align: center; }
.reseaux-chantiers-titre {
    font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--txt-doux); margin: 0 0 1rem;
}
.reseaux-chantiers .actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.reseaux-chantiers .actions a i { margin-right: .45rem; }

/* background-attachment: fixed est ignoré (ou saccade) sur les écrans tactiles
   et sous iOS : on y revient à un fond ordinaire, l'image reste. */
@media (hover: none), (max-width: 767.98px) {
    .verre-reseaux { background-attachment: scroll; }
}

/* ==================================================================
   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 .btn-icon::before,
.theme-verre body.high-contrast .cand-media::after,
.theme-verre body.high-contrast .verre-mandat::before,
.theme-verre body.high-contrast .verre-reseaux::before { display: none !important; }
.theme-verre body.high-contrast .verre-reseaux { background: #000 !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 .reseau,
.theme-verre body.high-contrast .reseau .ico,
.theme-verre body.high-contrast .btn-fantome,
.theme-verre body.high-contrast .btn-icon,
.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 .reseau .ico,
.theme-verre body.high-contrast .reseau .etiquette,
.theme-verre body.high-contrast .reseau .aller,
.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; }
    .theme-verre .verre-reseaux { background-attachment: scroll; }
    .theme-verre .reseau, .theme-verre .reseau .ico, .theme-verre .reseau .aller i { transition: none !important; }
    .theme-verre .reseau:hover, .theme-verre .reseau:focus-visible { transform: none !important; }
    .theme-verre .reseau:hover .ico, .theme-verre .reseau:hover .aller i { transform: none !important; }
    /* Les rondelles d'action changent de couleur, mais ne bougent plus. */
    .theme-verre .btn-icon:hover, .theme-verre .btn-icon:focus-visible { transform: none !important; }
    .theme-verre .btn-icon i { transition: none !important; }
    .theme-verre .btn-icon:hover i { transform: 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; }
    .verre-reseaux { padding: 3.5rem 0; }
}
