/* ═══════════════════════════════════════════════════════════════════
   MOTEUR · STYLE « VERRE »   (ev.style = "verre")
   Une autre allure pour tout l'événement : un dégradé maillé animé en fond
   (fx.js, couleurs EVENT.verre.colors) et, par-dessus, des surfaces en
   verre dépoli : flou, voile clair, filet lumineux en haut, coins ronds,
   ombres douces. Tout est préfixé html.verre : sans ce style, rien ne
   change. La couleur d'accent tourne toujours d'une visite à l'autre.
   Coût : un seul canevas WebGL à basse résolution, qui s'arrête après un
   moment sans toucher l'écran ; quelques grands panneaux floutés plutôt
   qu'un flou par ligne.
   ═══════════════════════════════════════════════════════════════════ */
html.verre{
  --ink:var(--cream)!important; --bg:transparent!important; --accent-ink:var(--navy);
  --rule:rgba(255,255,255,.1); --line:rgba(255,255,255,.16);
  --g1:rgba(255,255,255,.07); --g2:rgba(255,255,255,.12); --g3:rgba(255,255,255,.2);
  --gb:rgba(255,255,255,.14);
  --gh:inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.07);
  --blur:blur(24px) saturate(165%);
  --rad:22px; --rad-s:14px;
  --soft:0 22px 44px -22px rgba(0,0,0,.6);
  --night:rgba(5,8,20,.55);
  color-scheme:dark;
}
html.verre body{background:var(--navy);color:var(--cream)}
html.verre body:before{opacity:.035}
/* Fond animé (fx.js) et voile qui garde le texte lisible */
.vbg{position:fixed;inset:0;z-index:-1;pointer-events:none;background:var(--navy)}
.vbg canvas{display:block}
.vbg:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(3,5,13,.05),rgba(3,5,13,.42))}
html.verre .fx,html.verre .picado{display:none}

/* Surfaces en verre */
html.verre .alertBar,html.verre .now,html.verre .hero,html.verre .heroTie,html.verre #rows,html.verre .plainHead,
html.verre .days,html.verre #plan,html.verre .photos,html.verre nav,html.verre .sitenav,
html.verre .face,html.verre .next,html.verre .rules span,html.verre .teamBtn,html.verre .badge,
html.verre .side .qrBox,html.verre .board,html.verre .bar,html.verre .gate .card{
  background:var(--g1);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);
  border:1px solid var(--gb);box-shadow:var(--gh),var(--soft);border-radius:var(--rad)}
html.verre .chip{transform:none;border-radius:999px;padding:.3em .78em .34em;font-weight:700;letter-spacing:0;
  background:color-mix(in srgb, var(--tc) 88%, transparent);color:var(--ti);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4),inset 0 -1px 0 rgba(0,0,0,.12),0 6px 16px -10px rgba(0,0,0,.7)}

/* ───────── ACCUEIL ───────── */
html.verre{--gut:16px}
html.verre header{padding-bottom:16px}
html.verre[data-page="board"] .chip{font-size:15px}
html.verre .logoSq{width:min(40vw,160px)}
html.verre .mark{opacity:.8}
html.verre .alertBar{margin:0 var(--gut) 12px;padding:10px 8px 10px 16px;color:var(--cream)}
html.verre .alertBar .cta{border-radius:12px;background:var(--accent);color:var(--accent-ink)}
html.verre .now{width:auto;margin:0 var(--gut) 10px;border:1px solid var(--gb);padding:11px 14px;border-radius:var(--rad-s)}
html.verre .now .k{border-radius:8px}
html.verre .hero{margin:0 var(--gut) 12px;padding:18px 18px 20px;color:var(--cream);background:var(--g2)}
html.verre .hero .lead{color:var(--accent);opacity:1}
html.verre .hero .n{color:var(--accent);right:18px}
html.verre .hero .picto{color:rgba(255,255,255,.1)}
html.verre .heroTie{margin:0 var(--gut) 12px;color:var(--cream);overflow:hidden;background:var(--g2)}
html.verre .heroTie>.lead{color:var(--accent);opacity:1}
html.verre .heroCard{border-top-color:var(--rule)}
html.verre .heroCard .dot,html.verre .ar i,html.verre .lg i{border-radius:3px}
html.verre #rows{margin:0 var(--gut);overflow:hidden}
html.verre #rows:empty{display:none}
html.verre .row{padding:13px 16px}
html.verre .row:first-child{border-top:0}
html.verre .row:last-child{border-bottom:0}
html.verre .row[data-r="2"] .line>.pos,html.verre .row[data-r="3"] .line>.pos{color:var(--accent)}
html.verre .plainHead{margin:0 var(--gut) 10px;padding:14px 16px}
html.verre .det>div{border-radius:var(--rad-s);background:var(--g2);color:var(--cream);box-shadow:var(--gh)}
html.verre .det .hLine{background:none;box-shadow:none;border-radius:0;margin-top:0;padding:7px 0}
html.verre .det .hLine+.hLine{border-top-color:var(--rule)}
html.verre .tag{border-radius:6px}

/* Programme */
html.verre .days{margin:14px var(--gut) 12px;padding:5px;gap:2px;border-radius:16px}
html.verre .dayPill{border-radius:12px;background:var(--g3);box-shadow:inset 0 1px 0 rgba(255,255,255,.25)}
html.verre .days button{border-radius:12px}
html.verre .days button.on{color:var(--cream)}
html.verre #plan{margin:0 var(--gut) 14px;padding:8px 0}
html.verre #plan:empty{display:none}
html.verre #plan:has(.ev):before{left:calc(16px + 72px)}
html.verre .ev{padding:12px 16px}
html.verre .void{margin:0 var(--gut)}
html.verre .photos{margin:4px var(--gut) 14px;color:var(--cream)}
html.verre .photos .ph-go{border-radius:12px;background:var(--accent);color:var(--accent-ink)}
html.verre .photos .picto{color:rgba(255,255,255,.14)}

/* Barre du bas : flottante, l'onglet actif est une pastille de verre */
html.verre body{padding-bottom:calc(104px + var(--sb))}
html.verre nav,html.verre .sitenav{left:12px;right:12px;bottom:calc(10px + var(--sb));padding:6px;border-radius:24px;
  background:rgba(14,18,40,.38)}
html.verre nav button,html.verre .sitenav button{padding:12px 4px 13px;border-radius:18px;transition:background-color .3s ease,opacity .3s ease}
html.verre nav button.on,html.verre .sitenav button.on{background:var(--g3);box-shadow:inset 0 1px 0 rgba(255,255,255,.28)}
html.verre nav button.on:before,html.verre .sitenav button.on:before{display:none}
html.verre .flash{bottom:calc(92px + var(--sb));border-radius:var(--rad-s);background:rgba(238,242,255,.92);
  -webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);box-shadow:var(--soft)}
html.verre .flash.undo button{border-radius:10px}
html.verre .orgaLink{opacity:.6}

/* Écran d'ouverture : le fond animé reste visible derrière le logo */
html.verre .splash{background:transparent}
html.verre body:has(#splash:not(.hide):not(.out))>:not(#splash):not(.vbg){visibility:hidden}

/* Feuilles : espace orga, installation */
html.verre .sheet{background:var(--night);-webkit-backdrop-filter:blur(34px) saturate(150%);backdrop-filter:blur(34px) saturate(150%)}
html.verre .shTop{background:rgba(5,8,20,.4);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-bottom-color:var(--rule)}
html.verre .sheet h2{color:var(--accent)}
html.verre .tabs button.on:after{background:var(--accent);border-radius:3px}
html.verre .grp>.eyebrow,html.verre .bgrp>b,html.verre .qsHead em,html.verre .note.ok{color:var(--accent)}
html.verre input,html.verre select{border-radius:12px;background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.18)}
html.verre input:focus,html.verre select:focus{border-color:var(--accent)}
html.verre select option,html.verre select optgroup{background:#0b1030}
html.verre .go,html.verre .pgo{border-radius:14px;background:var(--accent);color:var(--accent-ink)}
html.verre .go.ghost,html.verre .pgo.ghost,html.verre .pgo.danger{background:rgba(255,255,255,.04)}
html.verre .ar button,html.verre .qsT,html.verre .tpl button{border-radius:12px}
html.verre .ar .p{background:var(--accent);color:var(--accent-ink)}
html.verre .bscrim{background:rgba(3,5,13,.45)}
html.verre .bsheet{background:rgba(14,18,40,.62);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);
  border:1px solid var(--gb);border-bottom:0;box-shadow:var(--gh);border-radius:26px 26px 0 0}
html.verre .bsheet h3{color:var(--accent)}
html.verre .bsheet ol b{background:var(--accent);color:var(--accent-ink)}

/* ───────── DÉFIS ───────── */
html.verre .wordmark{text-shadow:none;color:var(--cream)}
html.verre .wordmark em{color:var(--accent)}
html.verre .next{margin:20px 0 6px;padding:12px 16px;border-radius:var(--rad-s)}
html.verre .next .clock{color:var(--accent)}
html.verre .day>.eyebrow{color:var(--accent);border-bottom-color:var(--rule)}
html.verre .face{border-radius:var(--rad);color:var(--cream);padding:20px}
html.verre .face:active{transform:scale(.985);box-shadow:var(--gh),var(--soft)}
html.verre .front .qmark{color:var(--accent);border-color:color-mix(in srgb, var(--accent) 60%, transparent)}
html.verre .front .hint{color:var(--cream);opacity:.8}
html.verre .face::after{opacity:.07;background-color:#fff}
html.verre .rear .pts{transform:none;border-radius:999px;background:var(--accent);color:var(--accent-ink);box-shadow:none;font-family:var(--ui);font-weight:700}
html.verre .face.rear.riddle{border-color:rgba(255,140,170,.45)}

/* ───────── QUIZ ───────── */
html.verre .rules span{border-radius:var(--rad-s);border-color:var(--gb)}
html.verre .badge{transform:none;border-radius:999px;box-shadow:var(--gh),var(--soft);font-weight:700}
html.verre .teamBtn{border-radius:var(--rad-s);border:0}
html.verre .teamBtn:after{display:none}
html.verre .teamBtn:active{transform:scale(.97);box-shadow:var(--gh)}
html.verre .cta{border-radius:16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.4),var(--soft);font-family:var(--ui);font-weight:700;letter-spacing:.02em;text-transform:none;color:var(--accent-ink)}
html.verre .cta:active{transform:scale(.97);box-shadow:inset 0 1px 0 rgba(255,255,255,.4)}
html.verre .ring:before{background:rgba(6,10,28,.8)}
html.verre .ring .head:before{box-shadow:none}
html.verre[data-page="kahwei"] .card{border-radius:var(--rad);background:rgba(240,244,255,.9);color:#0a1030;
  -webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);box-shadow:inset 0 1px 0 #fff,var(--soft)}
html.verre[data-page="kahwei"] .card:after{display:none}
html.verre .tbar,html.verre .steps i{border-radius:4px}
html.verre .tile{border-radius:var(--rad-s);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),var(--soft);
  background:color-mix(in srgb, var(--tc) 82%, transparent);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur)}
html.verre .tile:after{display:none}
html.verre .tile:active{transform:scale(.97)}
html.verre .tile.good{box-shadow:0 0 0 3px #fff,var(--soft)}
html.verre .verdict{letter-spacing:.06em}
html.verre .sun{display:none}
html.verre .marquee{border-color:var(--rule)}

/* ───────── ÉCRAN GÉANT ───────── */
html.verre[data-page="ecran"] .fx{display:none}
html.verre .gate input{border-radius:14px}
html.verre .gate button{border-radius:14px}
html.verre .live{gap:2.4vw}
html.verre .side{gap:2.2vh}
html.verre .side .feed{flex:0 1 auto;margin-top:auto;padding:1.4vh 1.2vw;border-radius:var(--rad);background:var(--g1);border:1px solid var(--gb);
  -webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);box-shadow:var(--gh)}
html.verre .side .feed:empty{display:none}
html.verre .side .qrBox{padding:1.2vw}
html.verre .qrBox .qr{border-radius:12px}
html.verre .board{padding:2.2vh 1.6vw 1vh}
html.verre .r.lead{background:color-mix(in srgb, var(--accent) 88%, transparent);border-radius:16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.45)}
html.verre .bhead{border-bottom-color:var(--rule)}
html.verre .bhead .t{color:var(--accent)}
html.verre .podium .col .blk{border-radius:18px 18px 0 0;box-shadow:inset 0 1px 0 rgba(255,255,255,.4);
  background:linear-gradient(180deg,color-mix(in srgb, var(--tc) 92%, transparent),color-mix(in srgb, var(--tc) 55%, transparent))}
html.verre .cer.win{background:transparent;color:var(--cream)}
html.verre[data-page="ecran"] .chip{padding:.12em .55em .16em}
html.verre .cer.win .big,html.verre .cer.win .rank{color:var(--accent)}
html.verre .cer .hush{border-radius:18px;transform:none;background:var(--g2);
  -webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);box-shadow:var(--gh)}
html.verre .bar{border-radius:18px;padding:6px;background:rgba(10,14,32,.5)}
html.verre .bar button,html.verre .bar a{border-radius:12px}
html.verre .bar button.on{background:var(--accent);color:var(--accent-ink,var(--navy))}
html.verre .toast{border-radius:14px}

@media (prefers-reduced-transparency: reduce){
  html.verre .alertBar,html.verre .now,html.verre .hero,html.verre .heroTie,html.verre #rows,html.verre .days,html.verre #plan,
  html.verre nav,html.verre .sitenav,html.verre .face,html.verre .sheet,html.verre .bsheet,html.verre .board{
    background:rgba(10,14,32,.92);-webkit-backdrop-filter:none;backdrop-filter:none}
}

/* Infos pratiques et « Mon équipe » */
html.verre .infoBtn{border-radius:999px;background:var(--g1);box-shadow:var(--gh);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur)}
html.verre .isec h4{color:var(--accent)}
html.verre .irow{border-bottom-color:var(--rule)}
html.verre .irow .a{border-radius:12px;background:var(--accent);color:var(--accent-ink)}
html.verre .irow .a.ghost{background:rgba(255,255,255,.06);color:var(--cream)}
html.verre .sos a,html.verre .partners a,html.verre .partners span{border-radius:14px;background:rgba(255,255,255,.05)}
html.verre .bring input{accent-color:var(--accent)}
html.verre .row.mine{background:color-mix(in srgb, var(--accent) 14%, transparent)}

/* Votes, annonces programmées, bilan */
html.verre .poll{border-radius:var(--rad-s);background:color-mix(in srgb, var(--accent) 88%, transparent);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),var(--soft)}
html.verre .poll .k{border-radius:6px}
html.verre .vteams button{border-radius:14px}
html.verre .rep{border-radius:var(--rad-s);overflow:hidden;background:var(--rule)}
html.verre .rep div{background:rgba(10,14,32,.55)}
html.verre .rep b,html.verre .repPod b,html.verre .an .w{color:var(--accent)}
html.verre .vbar b{border-radius:5px;overflow:hidden}
html.verre .vbar b i{background:var(--accent)}
html.verre .repDays i{border-radius:4px 4px 0 0;background:color-mix(in srgb, var(--accent) 70%, transparent)}
html.verre .side .vote{padding:1.4vh 1.2vw;border-radius:var(--rad);background:var(--g1);border:1px solid var(--gb);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);box-shadow:var(--gh)}
/* boutons secondaires : texte clair (la règle .go du verre ne doit pas l'assombrir) */
html.verre .go.ghost,html.verre .pgo.ghost{color:var(--cream)}
html.verre .pgo.danger{color:#ffb3b3}
