/*
  THEME.CSS — Lysmera (look TEST appliqué partout)
  - Thèmes: Nala (bleu), Leya (rouge), Fusion (dégradé)
  - Header fixe 80px, bouton or (menu)
  - Hero royal, sections, cartes, bouton or
  - Cookiebar incluse
*/

/* ============================================================================
   0) Reset
============================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

/* ============================================================================
   1) Tokens de base (comme TEST)
============================================================================ */
:root{
  /* Typo & gabarits */
  --header-h:80px;
  --container:1200px;
  --radius:12px;

  /* Couleurs or */
  --gold:#c9ab72;
  --gold-strong:#d7bc83;

  /* Texte (mode sombre par défaut, surchargé par thèmes) */
  --text-primary:#eaeff3;
  --text-dark:#1a2730;

  /* Ombres */
  --shadow:0 10px 30px rgba(0,0,0,.35);

  /* Surfaces (surchargées par data-theme) */
  --surface-body:#000;
  --surface-header:#000;
  --surface-hero:#000;
  --surface-section-dark:#000;
  --surface-card-dark:rgba(0,0,0,.35);
  --surface-footer:#000;

  /* Bouton or (défaut) */
  --btn-gold-1:#e8d6a5;
  --btn-gold-2:#dcbc7e;
  --btn-gold-3:#caa666;
  --btn-gold-outline: rgba(120,84,35,.35);

  /* Cartes — valeurs de repli (écrasées par thème) */
  --card-bg: linear-gradient(180deg, rgba(20,28,36,.52) 0%, rgba(12,18,24,.46) 100%);
  --card-bg-alt: linear-gradient(180deg, rgba(20,28,36,.28) 0%, rgba(12,18,24,.22) 100%);
  --card-stroke: rgba(201,171,114,.28);
  --card-outline: rgba(201,171,114,.20);
  --card-shadow: 0 18px 40px rgba(0,0,0,.32);
}

/* ============================================================================
   2) Thèmes (TEST)
============================================================================ */

/* — NALA (bleu) — */
html[data-theme="nala"]{
  --bg-dark:#0f1820; --bg-dark-2:#10212a; --bg-light:#ede4cf;
  --text-primary:#eaeff3;

  --surface-body: #0f1820;
  --surface-header: linear-gradient(180deg,#0b141a 0%,#0f1820 100%);
  --surface-hero: radial-gradient(1200px 400px at 50% -20%, #173244 0%, #0f1820 55%, #10212a 100%);
  --surface-section-dark: linear-gradient(180deg,#0f1820 0%,#10212a 100%);
  --surface-card-dark: rgba(15,24,32,.35);
  --surface-footer: #0b141a;

  /* Cartes (ton bleu) */
  --card-bg:     linear-gradient(180deg, rgba(23,50,68,.55) 0%, rgba(16,33,42,.48) 100%);
  --card-bg-alt: linear-gradient(180deg, rgba(23,50,68,.28) 0%, rgba(16,33,42,.22) 100%);
  --card-stroke: rgba(141,184,212,.28);
  --card-outline: rgba(201,171,114,.22);
  --card-shadow: 0 18px 40px rgba(0,0,0,.32);

  --btn-gold-1:#ead9ac; --btn-gold-2:#debf84; --btn-gold-3:#caa667;
  --btn-gold-outline: rgba(120,84,35,.35);
}

/* — LEYA (rouge) — */
html[data-theme="leya"]{
  --bg-dark:#4a0e0e; --bg-dark-2:#330a0a; --bg-light:#ede4cf;
  --text-primary:#f2e9e9;

  --surface-body: #4a0e0e;
  --surface-header: linear-gradient(180deg,#330a0a 0%,#4a0e0e 100%);
  --surface-hero: radial-gradient(1200px 400px at 50% -20%, #5b1414 0%, #4a0e0e 55%, #330a0a 100%);
  --surface-section-dark: linear-gradient(180deg,#4a0e0e 0%,#330a0a 100%);
  --surface-card-dark: rgba(74,14,14,.45);
  --surface-footer: #330a0a;

  /* Cartes (ton rouge) */
  --card-bg:     linear-gradient(180deg, rgba(91,20,20,.55) 0%, rgba(51,10,10,.48) 100%);
  --card-bg-alt: linear-gradient(180deg, rgba(91,20,20,.28) 0%, rgba(51,10,10,.22) 100%);
  --card-stroke: rgba(233,158,145,.30);
  --card-outline: rgba(201,171,114,.22);
  --card-shadow: 0 18px 44px rgba(0,0,0,.34);

  --btn-gold-1:#efd5a2; --btn-gold-2:#e0b571; --btn-gold-3:#c7934f;
  --btn-gold-outline: rgba(140,72,24,.38);
}

/* — FUSION (dégradés bleu↔rouge) — */
html[data-theme="fusion"]{
  --text-primary:#f3eae9;

  /* Même fond partout pour éviter la barre */
  --surface-body: linear-gradient(135deg, #0f1820 0%, #4a0e0e 100%);
  --surface-header: linear-gradient(135deg, #0b141a 0%, #330a0a 100%);
  --surface-hero: var(--surface-body);
  --surface-section-dark: var(--surface-body);
  --surface-footer: var(--surface-body);

  --surface-card-dark: linear-gradient(135deg, rgba(15,24,32,.35) 0%, rgba(74,14,14,.45) 100%);

  /* Cartes (mix) */
  --card-bg:     linear-gradient(135deg, rgba(23,50,68,.52) 0%, rgba(91,20,20,.52) 100%);
  --card-bg-alt: linear-gradient(135deg, rgba(23,50,68,.26) 0%, rgba(91,20,20,.26) 100%);
  --card-stroke: rgba(233,190,150,.30);
  --card-outline: rgba(201,171,114,.24);
  --card-shadow: 0 18px 44px rgba(0,0,0,.35);

  /* bouton plus ambré */
  --btn-gold-1:#ead9ac;
  --btn-gold-2:#d48a74;
  --btn-gold-3:#b24b4b;
  --btn-gold-outline: rgba(120,60,45,.4);
}


/* AUTH – couleurs opaques par thème */
html[data-theme="nala"]{
  --auth-card-bg: #173244;              /* bleu Nala */
  --auth-card-fg: #e9dec8;              /* texte crème lisible */
}
html[data-theme="leya"]{
  --auth-card-bg: #5b1414;              /* rouge Leya */
  --auth-card-fg: #f6e1df;
}
html[data-theme="fusion"]{
  --auth-card-bg: linear-gradient(135deg,#173244 0%,#5b1414 100%); /* mix */
  --auth-card-fg: #f3eae9;
}


/* ============================================================================
   3) Base typographique & liens
============================================================================ */
body{
  font-family:"Marcellus",serif;
  background: var(--surface-body);
  color:var(--text-primary);
  line-height:1.5;
  padding-top:var(--header-h);
}
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }
.container{ width:min(100% - 32px,var(--container)); margin-inline:auto; }

/* ============================================================================
   4) Header (look TEST)
============================================================================ */
.lysmera-header{
  position:fixed; inset:0 0 auto 0; height:var(--header-h);
  display:grid; align-items:center;
  background: var(--surface-header);
  border-bottom:1px solid rgba(255,255,255,.08);
  z-index:1000; box-shadow:0 6px 16px rgba(0,0,0,.18);
}
.lysmera-header .container{
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px;
}
.brand, .lysmera-link{ justify-self:center; font-size:22px; color:var(--gold-strong); }
.brand:hover, .lysmera-link:hover{ filter:brightness(1.08); text-decoration:none; }

/* Navs latérales (compat avec ton index.html actuel) */
.top-left, .top-right{ display:flex; gap:10px; align-items:center; }
.top-left a, .top-right a{
  padding:8px 12px; border-radius:12px; border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}
.top-left a:hover, .top-right a:hover{
  border-color: rgba(201,171,112,.45);
  box-shadow: 0 0 0 1px rgba(201,171,112,.18) inset;
}

/* Bouton or (menu) + dropdown */
.menu-wrap{ position: relative; justify-self: end; }
.menu-toggle{
  appearance:none; border:0; cursor:pointer;
  padding:10px 16px; border-radius:999px;
  font-family:"Marcellus",serif; font-size:16px; letter-spacing:.2px;
  color:#372a14;
  background:linear-gradient(180deg,var(--btn-gold-1) 0%,var(--btn-gold-2) 45%,var(--btn-gold-3) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 6px 16px rgba(0,0,0,.25);
  outline:1px solid var(--btn-gold-outline);
  transition: filter .15s ease, transform .04s ease;
}
.menu-toggle:hover{ filter:brightness(1.03) saturate(1.02); }
.menu-toggle:active{ transform:translateY(1px); }

.dropdown{
  position:absolute; top:calc(100% + 8px); right:0;
  background: var(--surface-card-dark);
  border:1px solid rgba(201,171,114,.45);
  border-radius:8px; min-width:220px;
  display:none; flex-direction:column;
  box-shadow:0 12px 28px rgba(0,0,0,.35);
  padding:8px; z-index:1001;
}
.dropdown.open{ display:flex; }
.dropdown::before{
  content:""; display:block; height:2px; border-radius:2px;
  background:linear-gradient(90deg,transparent,var(--gold-strong),transparent);
  margin:-4px -8px 6px; opacity:.9;
}
.dropdown h4{
  margin:0 0 6px; font-size:13px; color:var(--gold-strong);
  border-bottom:1px solid rgba(201,171,114,.25); padding-bottom:4px;
}
.dropdown button{
  text-align:left; background:none; border:none; padding:8px 8px;
  border-radius:6px; font-family:"Marcellus",serif; font-size:15px;
  color:var(--text-primary); cursor:pointer;
}
.dropdown button:hover{ background:rgba(201,171,114,.16); }

/* Variantes dropdown par thème (bg glass) */
html[data-theme="nala"] .dropdown{
  --dropdown-bg: linear-gradient(180deg, rgba(15,24,32,.92), rgba(16,33,42,.88));
}
html[data-theme="leya"] .dropdown{
  --dropdown-bg: linear-gradient(180deg, rgba(74,14,14,.92), rgba(51,10,10,.88));
}
html[data-theme="fusion"] .dropdown{
  --dropdown-bg: linear-gradient(135deg, rgba(15,24,32,.9) 0%, rgba(74,14,14,.9) 100%);
}

/* ============================================================================
   5) Hero royal (TEST)
============================================================================ */
.page-hero{ background: var(--surface-hero); padding:48px 16px 32px; }
.page-title-wrap{ text-align:center; color:var(--gold-strong); }
.page-title-wrap .ornament{
  display:flex; align-items:center; gap:16px; justify-content:center; opacity:.9;
}
.page-title-wrap .ornament::before,
.page-title-wrap .ornament::after{
  content:""; height:1px; flex:1;
  background:linear-gradient(90deg,transparent,var(--gold),transparent);
}
.page-title-wrap .fleur{ font-size:22px; color:var(--gold-strong); }
.page-title{ margin:10px 0; font-size:clamp(28px,4vw,48px); }

/* ============================================================================
   6) Sections & grilles (TEST)
============================================================================ */
.section{ padding:36px 0; }

/* Section claire — garde ton look crème pour le fond de section,
   MAIS sans imposer la crème aux cartes */
.section.light {
  background: linear-gradient(180deg, #e8dec4 0%, #e0d3b5 100%);
  color: #1f2124;
}
.section.dark{ background: var(--surface-section-dark); }

.grid{ display:grid; gap:20px; grid-template-columns:repeat(12,1fr); }
.col-6{ grid-column:span 6; } .col-12{ grid-column:span 12; }
@media(max-width:900px){ .col-6{ grid-column:span 12; } }

/* ============================================================================
   7) Cartes (TEST) — UNIFIÉES PAR THÈME
   (Seule modif fonctionnelle : pilotage par --card-* ; pas de crème forcée)
============================================================================ */
.royal-card{
  padding:20px 22px; border-radius:var(--radius);
  background: var(--card-bg);               /* <- au lieu de --surface-card-dark */
  color:var(--text-primary);
  box-shadow: var(--card-shadow);
  border:1px solid var(--card-stroke);
  outline:2px solid var(--card-outline); outline-offset:-6px;
}
.section.light .royal-card.auth-card{
  background: var(--card-bg-alt);      /* change avec Nala/Leya/Fusion */
  color: var(--text-dark, #1a2730);
  border: 1px solid var(--card-stroke);
  outline: 2px solid var(--card-outline);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.royal-card.auth-card{
  background: var(--card-bg);          /* au cas où page non “light” */
}
.royal-card h3{ margin:0 0 8px; font-size:22px; color:var(--gold-strong); }

/* ============================================================================
   8) Bouton or (TEST)
============================================================================ */
.btn-gold{
  display:inline-block; padding:10px 16px; border-radius:10px;
  border:1px solid rgba(201,171,114,.9);
  background:linear-gradient(180deg,#e3cc98 0%,#c9ab72 100%);
  color:#372a14; font-weight:600;
}

/* ============================================================================
   9) Footer (TEST)
============================================================================ */
footer{
  background: var(--surface-footer);
  padding:28px 0; text-align:center; color:#e9e1cf;
}
footer .fleur{ color:var(--gold-strong); }

.footer-nav{
  display:flex; flex-wrap:wrap; justify-content:center;
  gap:6px 14px; margin-top:10px;
}
.footer-nav a{
  font-size:12px; color:rgba(233,225,207,.5);
  text-decoration:none; transition:color .15s;
}
.footer-nav a:hover{ color:var(--gold-strong,#e0b884); }

@media (max-width:520px){
  .footer-nav{ gap:6px 10px; }
  .footer-nav a{ font-size:11px; }
}

/* ============================================================================
   10) Cookie bar (ex-index.css, portée globale)
============================================================================ */
.cookiebar{
  position:fixed; left:0; right:0; bottom:-200px; z-index:60;
  background:var(--surface-section-dark, #121e27); color:var(--text-primary);
  border-top:1px solid rgba(255,255,255,.08); padding:12px 16px;
  display:flex; gap:12px; align-items:center; justify-content:space-between;
  transition: bottom .35s ease;
}
.cookiebar.show{ bottom:0; }
.cookiebar .row{ display:flex; gap:8px; }

/* ============================================================================
   11) Menu or (rappel) + Dropdown harmonisé
   (bloc de compat avec tes pages qui l’appellent ailleurs)
============================================================================ */
.menu-wrap{ position:relative; justify-self:end; }
.menu-toggle{
  appearance:none; border:0; cursor:pointer;
  padding:10px 16px; border-radius:999px;
  font-family:"Marcellus",serif; font-size:16px; letter-spacing:.2px; color:#372a14;
  background:linear-gradient(180deg, var(--btn-gold-1,#ead9ac) 0%, var(--btn-gold-2,#debf84) 45%, var(--btn-gold-3,#caa667) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 6px 16px rgba(0,0,0,.25);
  outline:1px solid var(--btn-gold-outline, rgba(120,84,35,.35));
  transition: filter .15s ease, transform .04s ease;
}
.menu-toggle:hover{ filter:brightness(1.03) saturate(1.02); }
.menu-toggle:active{ transform: translateY(1px); }

.dropdown{
  position:absolute; top:calc(100% + 8px); right:0;
  background: var(--dropdown-bg, rgba(14,14,16,.88));
  border:1px solid rgba(201,171,114,.45);
  border-radius:8px; min-width:240px;
  display:none; flex-direction:column; gap:4px;
  box-shadow:0 12px 28px rgba(0,0,0,.35); padding:8px; z-index:1001;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dropdown.open{ display:flex; }
.dropdown::before{
  content:""; display:block; height:2px; border-radius:2px;
  background:linear-gradient(90deg,transparent,var(--gold-strong,#e0b884),transparent);
  margin:-4px -8px 6px; opacity:.9;
}
.dropdown h4{
  margin:2px 0 6px; font-size:13px; color:var(--gold-strong,#e0b884);
  border-bottom:1px solid rgba(201,171,114,.25); padding-bottom:4px;
}
.dropdown button,
.dropdown .dropdown-link{
  text-align:left; background:none; border:none; padding:8px 8px; border-radius:6px;
  font-family:"Marcellus",serif; font-size:15px; color:var(--text-primary,#eaeff3);
  cursor:pointer; text-decoration:none; display:block;
}
.dropdown button:hover,
.dropdown .dropdown-link:hover{ background:rgba(201,171,114,.16); }
.dropdown-hr{ border:0; height:1px; background:rgba(255,255,255,.08); margin:6px -8px; }

/* ── Sections accordion dans le dropdown ── */
.dropdown-section{
  display:flex; align-items:center; justify-content:space-between;
  width:100%; padding:8px 8px; border-radius:6px;
  font-family:"Marcellus",serif; font-size:15px;
  color:var(--text-primary,#eaeff3);
  background:none; border:none; cursor:pointer; text-align:left;
  gap:8px;
}
.dropdown-section:hover{ background:rgba(201,171,114,.16); }

.dropdown-section .chevron{
  font-style:normal; opacity:.55; font-size:11px; flex-shrink:0;
  transition:transform .2s ease;
  display:inline-block;
}
.dropdown-section[aria-expanded="true"] .chevron{ transform:rotate(180deg); opacity:.9; }

.dropdown-panel{
  display:none; flex-direction:column; gap:2px;
  padding-left:4px;
  margin:0 0 2px 4px;
  border-left:1px solid rgba(201,171,114,.2);
}
.dropdown-panel.is-open{ display:flex; }

.dropdown-panel .dropdown-link{
  font-size:14px;
  padding:6px 8px;
  opacity:.85;
}
.dropdown-panel .dropdown-link:hover{ opacity:1; }

/* ============================================================================
   12) SOCIAL SLIDER — VERSION NETTOYÉE
   (aligné au fichier original, sans imposer la crème aux cartes)
============================================================================ */

/* Slider + navigation */
.social-slider{
  position:relative; margin-top:16px;
  border:1px solid rgba(255,255,255,.12); border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  overflow:hidden; padding:10px 0 8px;
}
.social-slider .viewport{ overflow:hidden; }
.social-slider .slides{ display:flex; width:100%; transition: transform .4s ease; }
.social-slider .slide{ flex:0 0 100%; display:grid; place-items:center; padding:14px; }

/* Flèches + dots */
.social-slider .nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:999px; border:1px solid transparent;
  background:rgba(0,0,0,.18); color: rgba(255,255,255,.8);
  display:grid; place-items:center; cursor:pointer;
  opacity:.35; transition: opacity .2s ease, border-color .2s ease, background .2s ease;
  backdrop-filter: blur(4px) saturate(140%);
  z-index:5; pointer-events:auto;
}
.social-slider .prev{ left:10px; } .social-slider .next{ right:10px; }
.social-slider:hover .nav, .social-slider .nav:focus-visible{
  opacity:.95; border-color: rgba(255,255,255,.12); background: rgba(0,0,0,.28);
}
.social-dots{ display:flex; gap:8px; justify-content:center; padding:10px 0 4px; }
.social-dots button{ min-width:28px; height:22px; border-radius:999px; border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); opacity:.9; }
.social-dots button[aria-current="true"]{ background:#ead9ac; border-color:#ead9ac; color:#0a1318; transform: translateY(-1px); }

/* Cartes du slider (hauteur commune) */
.social-slider .social-card{
  --card-h: 600px;   /* format unifié */
  --head-h: 170px;   /* entête + texte au-dessus du “corps” */
  width:min(960px, 92%);
  min-height: var(--card-h);
  display:grid; grid-template-rows:auto auto 1fr;
  align-items:start; justify-items:center;
  background: var(--card-bg);                    /* <- thème, pas crème   */
  border:1px solid var(--card-stroke);
  border-radius:16px;
  padding:12px; box-shadow: var(--card-shadow);
  color:inherit; position:relative; overflow:hidden; isolation:isolate;
}
@media (max-width:1100px){ .social-slider .social-card{ --card-h: 560px; } }
@media (max-width:780px) { .social-slider .social-card{ --card-h: 500px; } }

.social-slider .clickbar{
  display:flex; flex-direction:column; align-items:center; gap:6px; width:100%;
  padding:12px; border:1px solid var(--gold-2, #c9ab72); border-radius:14px;
  background: color-mix(in srgb, var(--card-bg-alt) 60%, #ffffff 8%); /* petite brillance */
  text-align:center; margin-bottom:8px;
}
.social-slider .brand-ico{ width:64px; height:64px; border-radius:14px; display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.12); background: var(--bg-0,#0b1113);
}
.social-slider .title{ font-size:18px; text-align:center; }
.social-slider .subtitle{ font-size:14px; opacity:.8; text-align:center; }
.social-slider .card-body{ margin:10px 0 6px; text-align:center; opacity:.9; }

/* Corps de carte — 16:9 (Twitch / YouTube) */
.social-slider .slide .player{
  width:100%;
  height: calc(var(--card-h) - var(--head-h));
  aspect-ratio: 16 / 9;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  overflow:hidden;
  background:#000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.social-slider .slide .player iframe{ width:100%; height:100%; display:block; border:0; }

/* TikTok — grille 3 vignettes 9:16 */
.social-slider .slide.tiktok .player{ display:none !important; }
.social-slider .tt-grid{
  width:100%;
  max-width: 960px;
  margin: 10px auto 0;
  display:grid;
  gap:12px;
  grid-template-columns: repeat(3, minmax(0,1fr));
  max-height: calc(var(--card-h) - var(--head-h));
  overflow:hidden;
  align-content:start;
}
@media (max-width:980px){ .social-slider .tt-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width:640px){ .social-slider .tt-grid{ grid-template-columns: 1fr; } }
.social-slider .tt-thumb{
  position:relative; display:block;
  aspect-ratio: 9 / 16;
  border-radius:12px; overflow:hidden; background:#000;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
.social-slider .tt-thumb:hover{
  transform: translateY(-1px);
  border-color: rgba(201,171,112,.45);
  box-shadow: 0 0 0 1px rgba(201,171,112,.18) inset, 0 10px 24px rgba(0,0,0,.28);
}
.social-slider .tt-thumb img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit: cover; display:block;
}

/* Instagram — grille 3 vignettes 9:16 */
.social-slider .ig-grid{
  width:100%;
  max-width: 960px;
  margin: 10px auto 0;
  display:grid;
  gap:12px;
  grid-template-columns: repeat(3, minmax(0,1fr));
  max-height: calc(var(--card-h) - var(--head-h));
  overflow:hidden;
  align-content:start;
}
@media (max-width:980px){ .social-slider .ig-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width:640px){ .social-slider .ig-grid{ grid-template-columns: 1fr; } }
.social-slider .ig-thumb{
  position:relative; display:block;
  aspect-ratio: 9 / 16;
  border-radius:12px; overflow:hidden; background:#000;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
.social-slider .ig-thumb:hover{
  transform: translateY(-1px);
  border-color: rgba(201,171,112,.45);
  box-shadow: 0 0 0 1px rgba(201,171,112,.18) inset, 0 10px 24px rgba(0,0,0,.28);
}
.social-slider .ig-thumb img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit: cover; display:block;
}

/* ============================================================================
   13) Icône de marque (garde ton look d’origine)
============================================================================ */
.brand-ico{
  width:64px; height:64px; border-radius:14px;
  display:grid; place-items:center;
  background:#0b1113;
  border:1px solid rgba(0,0,0,.55);
  color: var(--gold-strong);
}
.brand-ico svg{ width:42px; height:42px; display:block; }

/* === CARTES : base unique, pilotée par le thème === */

/* Valeurs de repli (au cas où) */
:root{
  --card-bg:     linear-gradient(180deg, rgba(23,50,68,.55) 0%, rgba(16,33,42,.48) 100%);
  --card-bg-alt: linear-gradient(180deg, rgba(23,50,68,.28) 0%, rgba(16,33,42,.22) 100%);
  --card-stroke: rgba(201,171,114,.28);
  --card-outline:rgba(201,171,114,.20);
  --card-shadow: 0 18px 40px rgba(0,0,0,.32);
}

/* Base commune appliquée à toutes les cartes existantes */
:is(.card, .royal-card, .social-card){
  padding:20px 22px;
  border-radius: var(--radius, 12px);
  background: var(--card-bg);
  color: var(--text-primary);
  border:1px solid var(--card-stroke);
  outline:2px solid var(--card-outline);
  outline-offset:-6px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
:is(.card, .royal-card, .social-card):hover{
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(0,0,0,.36);
}
:is(.card, .royal-card, .social-card) h3{
  margin:0 0 8px; font-size:22px; color:var(--gold-strong);
}

/* Sur section claire : même ton, juste plus doux */
.section.light :is(.card, .royal-card, .social-card){
  background: var(--card-bg-alt);
  color: var(--text-dark, #1a2730);
  border-color: var(--card-stroke);
}

/* Donne la main aux thèmes (bleu = Nala, rouge = Leya, mix = Fusion) */
html[data-theme="nala"]{
  --card-bg:     linear-gradient(180deg, rgba(23,50,68,.55) 0%, rgba(16,33,42,.48) 100%);
  --card-bg-alt: linear-gradient(180deg, rgba(23,50,68,.28) 0%, rgba(16,33,42,.22) 100%);
  --card-stroke: rgba(141,184,212,.28);
  --card-outline:rgba(201,171,114,.22);
  --card-shadow: 0 18px 40px rgba(0,0,0,.32);
}
html[data-theme="leya"]{
  --card-bg:     linear-gradient(180deg, rgba(91,20,20,.55) 0%, rgba(51,10,10,.48) 100%);
  --card-bg-alt: linear-gradient(180deg, rgba(91,20,20,.28) 0%, rgba(51,10,10,.22) 100%);
  --card-stroke: rgba(233,158,145,.30);
  --card-outline:rgba(201,171,114,.22);
  --card-shadow: 0 18px 44px rgba(0,0,0,.34);
}
html[data-theme="fusion"]{
  --card-bg:     linear-gradient(135deg, rgba(23,50,68,.52) 0%, rgba(91,20,20,.52) 100%);
  --card-bg-alt: linear-gradient(135deg, rgba(23,50,68,.26) 0%, rgba(91,20,20,.26) 100%);
  --card-stroke: rgba(233,190,150,.30);
  --card-outline:rgba(201,171,114,.24);
  --card-shadow: 0 18px 44px rgba(0,0,0,.35);
}

/* === Lien actif avec lueur dorée === */
.dropdown .dropdown-link[aria-current="page"],
.top-left a[aria-current="page"],
.top-right a[aria-current="page"]{
  color: var(--gold-strong) !important;
  border-color: var(--gold-strong);
  box-shadow: 0 0 8px rgba(201,171,114,.6),
              0 0 16px rgba(201,171,114,.35);
  border-radius: 8px; /* pour un effet "pill" plus doux */
}

/* ===================== SELECTS — GLOBAL & CUSTOM (clean) ===================== */

/* Tokens */
:root{
  --select-h: 40px;
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* 1) Select natif (pour ceux NON enhancés) */
select{
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  min-height: var(--select-h);
  padding: 8px 42px 8px 12px;
  border-radius: 12px;
  color: var(--text-primary);
  background:
    var(--select-chevron) right 12px center / 16px 16px no-repeat,
    color-mix(in srgb, var(--card-bg) 30%, #000 40%);
  border: 1px solid color-mix(in srgb, var(--card-stroke) 65%, #000 35%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.section.light select{
  color: var(--text-dark);
  background:
    var(--select-chevron) right 12px center / 16px 16px no-repeat,
    var(--card-bg-alt);
  border-color: var(--card-stroke);
}
select:hover{ border-color: var(--gold-strong); }
select:focus{
  outline:0;
  border-color: var(--gold-strong);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold-strong) 35%, transparent 65%),
              inset 0 1px 0 rgba(255,255,255,.05);
}
select:disabled{ opacity:.6; cursor:not-allowed; }
select::-ms-expand{ display:none; } /* IE legacy */

/* 2) Cache total du natif quand on l’enhance (évite le doublon) */
select[data-enhance="select"],
.ui-select__native{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important; height:1px !important;
  margin:0 !important; opacity:0 !important;
  pointer-events:none !important; overflow:hidden !important;
}

/* 3) Composant custom */
.ui-select{ position:relative; width:100%; z-index:2; }

.ui-select__button{
  width:100%;
  min-height: var(--select-h);
  padding: 8px 42px 8px 12px;
  border-radius: 12px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  text-align:left; cursor:pointer;

  color: var(--text-primary);
  background: var(--card-bg);
  border: 1px solid var(--card-stroke);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ui-select__button:hover{ border-color: var(--gold-strong); }
.ui-select__button:focus-visible{
  outline:0;
  border-color: var(--gold-strong);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold-strong) 28%, transparent 72%),
              inset 0 1px 0 rgba(255,255,255,.05);
}

.ui-select__label{ flex:1 1 auto; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ui-select__chev{ width:16px; height:16px; flex:0 0 16px; opacity:.9;
  background: var(--select-chevron) center/contain no-repeat; }

/* Liste */
.ui-select__list{
  position:absolute; left:0; right:0; top:calc(100% + 6px);
  max-height:260px; overflow:auto; z-index:40;
  padding:6px; margin:0; list-style:none;
  background: var(--card-bg);
  border:1px solid var(--card-stroke);
  border-radius:12px;
  box-shadow: var(--card-shadow);
  display:none;
}
.ui-select--open .ui-select__list{ display:block; animation: uiSelIn .12s ease-out both; }
@keyframes uiSelIn{ from{ opacity:0; transform:translateY(-4px);} to{ opacity:1; transform:none;} }

.ui-select__option{ padding:8px 10px; border-radius:8px; cursor:pointer; line-height:1.25; }
.ui-select__option:hover{ background: color-mix(in srgb, #ffffff 6%, transparent 94%); }
.ui-select__option.is-active{
  background: color-mix(in srgb, var(--gold-strong) 22%, transparent 78%);
  border:1px solid color-mix(in srgb, var(--gold-strong) 45%, transparent 55%);
}
.ui-select__option[aria-selected="true"]{
  background: color-mix(in srgb, var(--gold-strong) 14%, transparent 86%);
  border:1px solid color-mix(in srgb, var(--gold-strong) 35%, transparent 65%);
}
.ui-select__option.is-disabled{ opacity:.5; cursor:not-allowed; }

/* Variante section claire */
.section.light .ui-select__button{
  color: var(--text-dark);
  background: var(--card-bg-alt);
  border-color: var(--card-stroke);
}
.section.light .ui-select__list{
  background: var(--card-bg-alt);
  border-color: var(--card-stroke);
}

/* Scrollbar douce */
.ui-select__list::-webkit-scrollbar{ width:8px; }
.ui-select__list::-webkit-scrollbar-thumb{
  background: color-mix(in srgb, var(--card-stroke) 70%, transparent 30%);
  border-radius:8px;
}

/* === Accent par thème (pilotera .btn-primary partout) ===================== */
:root{
  --accent-0:#0f4b49; /* hover haut */
  --accent-1:#0e5c59; /* fond haut */
  --accent-2:#0a3d3b; /* fond bas */
}
html[data-theme="leya"]{
  --accent-0:#6b1d1d;
  --accent-1:#8a2323;
  --accent-2:#4f1414;
}
html[data-theme="fusion"]{
  /* mix doux bleu↔rouge (tu pourras peaufiner) */
  --accent-0:#1b3c48;
  --accent-1:#264a56;
  --accent-2:#653131;
}

/* ============================================================================
   AUTH — shell centré + carte lisible (cohérent avec .section.light & .royal-card)
=============================================================================*/

/* 1) Shell de page (sous le hero) */
.auth-shell{
  min-height: 60vh;
  display: grid;
  place-content: start center; /* centre horizontalement, garde un top natural */
  padding: 32px 0 64px;
}
.auth-shell .container{
  width: 100%;
  display: grid;
  place-items: start center;
}

/* 2) Carte d’auth (réutilise la base .royal-card) */
.royal-card.auth-card{
  width: min(780px, 100% - 32px);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.royal-card.auth-card h3{
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--gold-strong);
}

/* 3) Variante claire : carte opaque (pas de glass) */
.section.light .royal-card.auth-card{
  background: var(--auth-card-bg);
  color: var(--auth-card-fg);
  border: 1px solid rgba(201,171,114,.55);
  outline: 2px solid rgba(201,171,114,.22);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 22px 50px rgba(0,0,0,.25);
}

/* 4) Champs / labels */
.royal-card.auth-card label{
  font-size: 14px;
  opacity: .9;
}
.royal-card.auth-card :where(input, select, textarea){
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--card-stroke);
  background: color-mix(in srgb, var(--card-bg) 60%, #000 18%); /* sombre */
  color: var(--text-primary);
}
.section.light .royal-card.auth-card :where(input, select, textarea){
  background: #f4ecd6;                 /* clair lisible */
  color: var(--text-dark, #1a2730);
  border: 1px solid rgba(0,0,0,.12);
}
.royal-card.auth-card :where(input, select, textarea)::placeholder{ opacity:.7; }
.section.light .royal-card.auth-card :where(input, select, textarea)::placeholder{ color: rgba(0,0,0,.55); }

/* Focus net et accessible */
.royal-card.auth-card :where(input, select, textarea):focus-visible{
  outline: 0;
  border-color: var(--gold-strong);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--gold-strong) 28%, transparent 72%),
    inset 0 1px 0 rgba(255,255,255,.05);
}

/* 5) Autofill Chromium */
.royal-card.auth-card input:-webkit-autofill,
.royal-card.auth-card input:-webkit-autofill:hover,
.royal-card.auth-card input:-webkit-autofill:focus{
  -webkit-text-fill-color: var(--text-primary) !important;
  box-shadow: 0 0 0 1000px #0b141a inset !important;
  caret-color: var(--text-primary) !important;
  transition: background-color 9999s ease-out 0s !important;
}
.section.light .royal-card.auth-card input:-webkit-autofill,
.section.light .royal-card.auth-card input:-webkit-autofill:hover,
.section.light .royal-card.auth-card input:-webkit-autofill:focus{
  -webkit-text-fill-color: var(--text-dark, #1a2730) !important;
  box-shadow: 0 0 0 1000px #f4ecd6 inset !important;
  caret-color: var(--text-dark, #1a2730) !important;
  color-scheme: light;
}

/* 6) Actions & Feedback */
.auth-actions{
  margin-top: 12px;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.form-errors{
  margin: 0 0 8px; padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, #e05555 45%, transparent 55%);
  background: color-mix(in srgb, #e05555 12%, transparent 88%);
}
.form-errors ul{ margin: 0; padding-left: 18px; }

/* 7) Boutons utilitaires (si pas déjà globaux) */
.btn{ display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:10px; border:1px solid transparent; cursor:pointer; text-decoration:none; }
.btn-ghost{
  color: var(--text-primary);
  background: transparent;
  border-color: rgba(255,255,255,.18);
}
.btn-ghost:hover{
  border-color: var(--gold-strong);
  box-shadow: 0 0 0 1px rgba(201,171,114,.18) inset;
}
.btn-gold{
  padding:10px 16px; border-radius:10px;
  border:1px solid rgba(201,171,114,.9);
  background: linear-gradient(180deg,#e3cc98 0%,#c9ab72 100%);
  color:#372a14; font-weight:600;
}

