/* Couleurs du site : bleu roi, code couleur du palmarès (WCS / Zouk), mode sombre.
   Chargé après les autres feuilles de style. */
/* Touches de bleu roi (légères) : à modifier ici pour tout le site */
:root{--royal:#3557D6;--royal-dark:#2A46B8;--royal-soft:rgba(53,87,214,.08);--royal-line:rgba(53,87,214,.35)}
::selection{background:rgba(53,87,214,.18)}
.kicker{color:var(--royal)}
.progress{background:var(--royal)}
:focus-visible{outline-color:var(--royal)}
.cform input:focus-visible,.cform select:focus-visible,.cform textarea:focus-visible{outline-color:var(--royal);border-color:var(--royal-line)}
.hero::before{background:radial-gradient(60% 45% at 50% 42%,rgba(53,87,214,.07),transparent 70%)}
.card .n,.res .rank sup{color:var(--royal)}
.plat em,.event .cta{color:var(--royal)}
.src a{color:var(--royal);border-bottom-color:var(--royal-line)}
.contact .direct a,.panel .more a,.faq a,.cookie p a,#privacy a,#legalDlg a{color:var(--royal);text-decoration-color:var(--royal-line)}
.links a.t:hover,.social a:hover,.legal button:hover{color:var(--royal)}
.links a.t::after{background:var(--royal)}
.map .pin.ev circle{fill:var(--royal)}
.ticks li::before{background:var(--royal)}
.road summary::after{color:var(--royal)}
/* Boutons d'action (CTA) en bleu roi */
.btn{background:var(--royal-btn,var(--royal));color:#fff}
.btn:hover{background:var(--royal-dark)}
.btn.ghost{background:var(--royal-soft);color:var(--royal);border-color:var(--royal-line)}
.btn.ghost:hover{background:rgba(53,87,214,.14);border-color:var(--royal)}
@media(hover:hover){.btn:hover{box-shadow:0 .5rem 1.25rem rgba(53,87,214,.28)}.btn.ghost:hover{box-shadow:0 .35rem 1rem rgba(53,87,214,.12)}}
@media(prefers-reduced-transparency:reduce){.btn.ghost{background:#e9edfb}}
@media(prefers-contrast:more){:root{--royal:#1F3FB0;--royal-line:rgba(31,63,176,.7)}}
/* Mode sombre (bouton lune/soleil dans le menu ; suit l'appareil par défaut) */
.theme{width:2.1rem;height:2.1rem;display:inline-grid;place-items:center;padding:0;background:rgba(0,0,0,.05);border:1px solid var(--line);color:var(--ink);border-radius:99rem;cursor:pointer;transition:transform .25s var(--ease),background .2s}
.theme svg{width:1rem;height:1rem;grid-area:1/1}
.theme .sun{display:none}
:root[data-theme="dark"] .theme .sun{display:block}
:root[data-theme="dark"] .theme .moon{display:none}
@media(hover:hover){.theme:hover{transform:translateY(-1px)}}
:root[data-theme="dark"]{color-scheme:dark;--bg:#0f1013;--surface:#18191d;--surface2:#222329;--ink:#f2f2f5;--mute:#a1a1a8;--dim:#8e8e95;--line:rgba(255,255,255,.12);--glass:rgba(15,16,19,.72);--royal:#7B95FF;--royal-btn:#3557D6;--royal-dark:#4A68E6;--royal-soft:rgba(123,149,255,.1);--royal-line:rgba(123,149,255,.4)}
:root[data-theme="dark"] img[src$="logo.svg"]{filter:invert(1)}
:root[data-theme="dark"] header::after{background:linear-gradient(rgba(0,0,0,.35),transparent)}
:root[data-theme="dark"] .lang,:root[data-theme="dark"] .theme,:root[data-theme="dark"] .arrows button{background:rgba(255,255,255,.06)}
:root[data-theme="dark"] .arrows button:hover{background:rgba(255,255,255,.12)}
:root[data-theme="dark"] .hero::before{background:radial-gradient(60% 45% at 50% 42%,rgba(123,149,255,.1),transparent 70%)}
:root[data-theme="dark"] .portrait{background:url("/images/portrait.jpg") center/cover no-repeat,linear-gradient(160deg,#1c1d22,#26272d)}
:root[data-theme="dark"] .map .land{fill:#2a2b32}
:root[data-theme="dark"] .news input{background:rgba(255,255,255,.05)}
:root[data-theme="dark"] .cookie,:root[data-theme="dark"] dialog{box-shadow:0 1.5rem 4rem rgba(0,0,0,.6)}
:root[data-theme="dark"] .cform .status.ok{color:#5fd38a}
:root[data-theme="dark"] .cform .status.err{color:#ff8a80}
:root[data-theme="dark"] .cform [aria-invalid="true"]{border-color:#ff8a80}
:root[data-theme="dark"] .btn.ghost:hover{background:rgba(123,149,255,.18)}
:root[data-theme="dark"] ::selection{background:rgba(123,149,255,.3)}
@media(prefers-reduced-transparency:reduce){:root[data-theme="dark"] header{background:#16171b}:root[data-theme="dark"] .btn.ghost{background:#1d2235}}
@media(prefers-contrast:more){:root[data-theme="dark"]{--mute:#d0d0d5;--dim:#bdbdc2;--line:rgba(255,255,255,.5);--royal:#A9BBFF}:root[data-theme="dark"] header{background:#000;border-bottom-color:#fff}}
/* Boutons FR/EN et clair/sombre en bleu (même style que les boutons secondaires) */
.lang,.theme,:root[data-theme="dark"] .lang,:root[data-theme="dark"] .theme{background:var(--royal-soft);color:var(--royal);border-color:var(--royal-line)}
.lang:hover,.theme:hover{background:rgba(53,87,214,.14);border-color:var(--royal)}
:root[data-theme="dark"] .lang:hover,:root[data-theme="dark"] .theme:hover{background:rgba(123,149,255,.18);border-color:var(--royal)}
/* Flèches du palmarès en bleu (comme les boutons secondaires) */
.arrows button,:root[data-theme="dark"] .arrows button{background:var(--royal-soft);color:var(--royal);border-color:var(--royal-line)}
.arrows button:not(:disabled):hover{background:rgba(53,87,214,.14);border-color:var(--royal)}
:root[data-theme="dark"] .arrows button:not(:disabled):hover{background:rgba(123,149,255,.18);border-color:var(--royal)}
/* Palmarès : code couleur par danse (bleu = West Coast Swing, terre cuite = Zouk) */
:root{--zouk:#B4460F;--zouk-soft:rgba(180,70,15,.1)}
:root[data-theme="dark"]{--zouk:#FF9F6B;--zouk-soft:rgba(255,159,107,.12)}
.res.wcs{--dance:var(--royal)}
.res.zouk{--dance:var(--zouk)}
.res.wcs,.res.zouk{border-top:3px solid var(--dance)}
.res .div,.res .rank sup{color:var(--dance,var(--mute))}
.dance-legend{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;margin:-.5rem 0 1rem;font-size:.875rem;color:var(--mute)}
.dance-legend .lg{display:inline-flex;align-items:center;gap:.45rem}
.dance-legend .lg::before{content:"";width:.7rem;height:.7rem;border-radius:50%;background:var(--royal)}
.dance-legend .zouk::before{background:var(--zouk)}
@media(max-width:40rem){.dance-legend{margin:0 0 .6rem;font-size:.8125rem}}
:root[data-theme="dark"] .nl-status.ok{color:#5fd38a}
:root[data-theme="dark"] .nl-status.err{color:#ff8a80}
