/* =======================================================
   ILLUSION — PUBLIC UI (FROM SCRATCH)
   Théâtre moderne, premium, responsive
   Thème clair/sombre via html.dark
======================================================= */

/* ---------------------------
   1) TOKENS
--------------------------- */
:root{
  --bg: #fbf5ea;
  --bg2:#f1e8da;
  --ink:#13131a;
  --muted: rgba(19,19,26,.70);

  --card: rgba(255,255,255,.62);
  --stroke: rgba(19,19,26,.12);

  --gold:#c7a24b;
  --gold2:#f0d37a;
  --rose:#e11d48;

  --accent:#7a1020; /* rouge nuit */
  --accent2:#b0172d;
  --navy:#071a2f; /* bleu nuit */
  --navy2:#051224;

  --shadow: 0 24px 70px rgba(0,0,0,.18);
  --shadow2: 0 14px 34px rgba(0,0,0,.14);

  --r: 24px;
  --r2: 16px;

  --wrap: 1120px;
  --blur: 18px;

  --ring: 0 0 0 4px rgba(199,162,75,.22);
}

html.dark{
  --bg: var(--navy);
  --bg2: var(--navy2);
  --ink:#f4efe6;
  --muted: rgba(244,239,230,.74);

  --card: rgba(8,18,32,.62);
  --stroke: rgba(255,255,255,.10);

  --gold:#0e3a66;
  --gold2:#1a5a8f;

  --shadow: 0 28px 85px rgba(0,0,0,.55);
  --shadow2: 0 18px 48px rgba(0,0,0,.42);

  --ring: 0 0 0 4px rgba(176,23,45,.22);
}

/* ---------------------------
   2) BASE
--------------------------- */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1000px 520px at 14% -6%, rgba(225,29,72,.14), transparent 62%),
    radial-gradient(1100px 650px at 86% 0%, rgba(199,162,75,.22), transparent 65%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  transition: background .25s ease, color .25s ease;
  overflow-x:hidden;
  background-attachment: fixed, fixed, fixed;
  background-repeat: no-repeat, no-repeat, no-repeat;
  /* Fond "fixe" sur toute la page, sans répétition */
  background-position: center top, center top, center top;
  background-size: cover, cover, cover;
}

html.dark body{
  background:
    radial-gradient(1000px 520px at 14% -6%, rgba(176,23,45,.16), transparent 62%),
    radial-gradient(1100px 650px at 86% 0%, rgba(26,90,143,.28), transparent 65%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  background-attachment: fixed, fixed, fixed;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center top, center top, center top;
  background-size: cover, cover, cover;
}

/* Grain très subtil */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background:
    radial-gradient(1200px 650px at 50% -12%, rgba(240,211,122,.16), transparent 62%),
    linear-gradient(to bottom, rgba(0,0,0,.10), transparent 22%),
    linear-gradient(to top, rgba(0,0,0,.10), transparent 22%);
  opacity:.55;
}
html.dark body::before{ opacity:.75; }

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.97; }
img{ max-width:100%; display:block; }

.muted{ color: var(--muted); line-height:1.7; }

:focus-visible{
  outline:none;
  box-shadow: var(--ring);
  border-radius: 12px;
}

/* ---------------------------
   3) TOPBAR
--------------------------- */
.topbar{
  position: sticky;
  top:0;
  z-index:20;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;

  padding: 14px 22px;
  margin: 16px auto 0;
  width: min(var(--wrap), calc(100% - 24px));

  background: rgba(255,255,255,.52);
  border: 1px solid rgba(19,19,26,.10);
  border-radius: 999px;
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow2);
}
html.dark .topbar{
  background: rgba(14,12,18,.58);
  border: 1px solid rgba(255,255,255,.08);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight: 950;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.brand-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background: radial-gradient(circle at 30% 30%, var(--gold2), var(--gold));
  box-shadow: 0 14px 26px rgba(199,162,75,.22);
}

.menu{
  display:flex;
  gap: 18px;
  align-items:center;
}
.menu-link{
  font-weight: 850;
  font-size:.92rem;
  opacity:.90;
  padding: 8px 10px;
  border-radius: 999px;
  transition: background .18s ease, opacity .18s ease;
}
.menu-link:hover{
  opacity:1;
  background: rgba(199,162,75,.14);
}

.top-actions{ display:flex; gap:10px; }

.chip{
  border: 1px solid rgba(19,19,26,.12);
  background: rgba(255,255,255,.55);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0,0,0,.10);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
html.dark .chip{
  background: rgba(18,16,22,.62);
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 14px 30px rgba(0,0,0,.34);
}
.chip:hover{ transform: translateY(-1px); border-color: rgba(199,162,75,.30); }
.chip-ghost{ padding: 10px 14px; }

/* Mobile nav */
@media (max-width: 820px){
  .menu{ display:none; }
}

/* ---------------------------
   4) STAGE + HERO
--------------------------- */
.stage{
  width: min(var(--wrap), calc(100% - 24px));
  margin: 18px auto 0;
}

.hero{
  position:relative;
  overflow:hidden;
  border-radius: calc(var(--r) + 8px);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  min-height: 62vh;

  background:
    radial-gradient(900px 520px at 18% 20%, rgba(225,29,72,.32), transparent 62%),
    radial-gradient(1000px 650px at 82% 10%, rgba(199,162,75,.44), transparent 62%),
    linear-gradient(135deg, rgba(14,12,18,.78), rgba(0,0,0,.92));
  color:#fff;
}

/* rideaux latéraux */
.hero::before,
.hero::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width: 18vw;
  max-width: 260px;
  opacity:.55;
  background:
    linear-gradient(180deg, rgba(225,29,72,.60), rgba(120,10,30,.58)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,.10) 2px, transparent 2px, transparent 11px);
}
.hero::before{ left:-2vw; border-right: 1px solid rgba(240,211,122,.22); }
.hero::after{ right:-2vw; border-left: 1px solid rgba(240,211,122,.22); }

.hero-inner{
  position:relative;
  z-index:2;
  padding: 72px 26px 34px;
  max-width: 860px;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(240,211,122,.22);
  background: rgba(240,211,122,.10);
  font-weight: 950;
  letter-spacing: .9px;
  text-transform: uppercase;
  font-size: .82rem;
}

.title{
  margin: 18px 0 0;
  font-size: clamp(2.2rem, 4.4vw, 3.7rem);
  font-weight: 1000;
  letter-spacing: .8px;
  text-transform: uppercase;
  text-shadow: 0 18px 45px rgba(0,0,0,.35);
}

.lead{
  margin: 14px 0 0;
  max-width: 62ch;
  color: rgba(255,255,255,.84);
  line-height:1.8;
  font-weight: 650;
}

/* CTA */
.cta{
  margin-top: 22px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  font-weight: 950;
  cursor:pointer;
  transition: transform .16s ease, opacity .16s ease, border-color .16s ease;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); opacity:.98; }

.btn-gold{
  color:#1a1408;
  border-color: rgba(19,19,26,.18);
  background: radial-gradient(circle at 30% 30%, var(--gold2), var(--gold));
  box-shadow: 0 18px 40px rgba(199,162,75,.22);
}
.btn-ghost{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
  color:#fff;
}

/* Light mode fixes (le public est “dark-first”, donc on corrige les contrastes) */
html:not(.dark) .btn{
  border-color: rgba(15,23,42,.14);
}
html:not(.dark) .btn-ghost{
  background: rgba(15,23,42,.06);
  border-color: rgba(15,23,42,.14);
  color: rgba(15,23,42,.92);
}
html:not(.dark) .btn-ghost:hover{
  border-color: rgba(56,189,248,.35);
}

/* stats */
.stats{
  margin-top: 26px;
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
}
.stat{
  flex: 0 0 auto;
  min-width: 170px;
  padding: 14px 16px;
  border-radius: var(--r2);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(var(--blur));
}
.stat-n{ font-size: 1.25rem; font-weight: 1000; }
.stat-t{ margin-top: 6px; color: rgba(255,255,255,.86); font-weight: 800; }

/* ---------------------------
   5) PANEL + CARDS
--------------------------- */
.panel{
  margin-top: 18px;
  padding: 22px;
  border-radius: calc(var(--r) + 6px);
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(var(--blur));
}

.panel-head{ padding: 6px 6px 16px; }
.h2{
  margin:0;
  font-size: 1.25rem;
  font-weight: 1000;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.h3{
  margin: 10px 0 0;
  font-size: 1.05rem;
  font-weight: 1000;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 980px){
  .cards{ grid-template-columns: 1fr; }
  .hero-inner{ padding: 62px 20px 30px; }
}

.cardx{
  padding: 18px;
  border-radius: var(--r);
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(19,19,26,.10);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
  position:relative;
  overflow:hidden;
}
html.dark .cardx{
  background: rgba(18,16,22,.62);
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 18px 42px rgba(0,0,0,.40);
}

/* liseré premium */
.cardx::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: inherit;
  pointer-events:none;
  background: linear-gradient(135deg, rgba(240,211,122,.55), transparent 35%, rgba(225,29,72,.18));
  opacity:.55;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}

.cardx-top{
  display:flex;
  justify-content:flex-start;
  margin-bottom: 8px;
}

.tag{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 950;
  font-size: .78rem;
  border: 1px solid rgba(19,19,26,.12);
  background: rgba(255,255,255,.55);
}
html.dark .tag{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
}
.tag-gold{
  border-color: rgba(199,162,75,.30);
  background: rgba(199,162,75,.14);
}
.tag-rose{
  border-color: rgba(225,29,72,.28);
  background: rgba(225,29,72,.12);
}

/* ---------------------------
   HOME – 3 derniers articles
--------------------------- */
.news-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 980px){
  .news-grid{ grid-template-columns: 1fr; }
}

.news-card{
  border-radius: 18px;
  border: 1px solid rgba(19,19,26,.10);
  background: rgba(255,255,255,.52);
  box-shadow: var(--shadow2);
  padding: 16px;
  overflow:hidden;
}
html.dark .news-card{
  background: rgba(14,12,18,.58);
  border-color: rgba(255,255,255,.10);
}

.news-img{
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 14px;
  display:block;
  margin-bottom: 12px;
}

.cardx-actions{ margin-top: 14px; }

/* ---------------------------
   6) FOOTER
--------------------------- */
.footer{
  width: min(var(--wrap), calc(100% - 24px));
  margin: 18px auto 24px;
  padding: 18px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.52);
  border: 1px solid rgba(19,19,26,.10);
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow2);
}
html.dark .footer{
  background: rgba(14,12,18,.58);
  border-color: rgba(255,255,255,.08);
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap:wrap;
}

.brand-footer{ font-size:.92rem; }
.foot-links{ display:flex; gap: 14px; }
.foot-links a{ font-weight: 850; opacity:.9; }
.foot-links a:hover{ opacity:1; }

/* Motion */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; }
}
/* Permet d’avoir le bouton collé en bas à droite */
.panel-copy{
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* La zone texte prend toute la hauteur */
.panel-copy > *:not(.panel-actions){
  flex-shrink: 0;
}

/* Le bouton descend en bas */
.panel-actions{
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}
.panel-split{
  align-items: stretch; /* force les colonnes à même hauteur */
}

.panel-aside,
.panel-copy{
  min-height: 100%;
}
.menu-link.active{
  background: rgba(199,162,75,.18);
  border: 1px solid rgba(199,162,75,.30);
}
.menu-link.active{
  background: rgba(199,162,75,.18);
  border: 1px solid rgba(199,162,75,.30);
}
/* =======================================================
   DROPDOWN MENU (À propos)
======================================================= */

.menu-item{
  position: relative;
}

.dropdown-toggle{
  display:flex;
  align-items:center;
  gap:6px;
  background:none;
  border:none;
  cursor:pointer;
  font: inherit;
  color: inherit;
}

.caret{
  font-size:.7rem;
  transition: transform .2s ease;
}

/* Menu déroulant */
.dropdown-menu{
  position:absolute;
  top: calc(100% + 10px);
  left: 0;

  display:flex;
  flex-direction:column;
  min-width: 200px;

  background: rgba(20,18,25,.95);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);

  padding: 10px;
  opacity:0;
  pointer-events:none;
  transform: translateY(10px);
  transition: all .22s ease;
  z-index: 50;
}

html:not(.dark) .dropdown-menu{
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.08);
}

/* Items */
.dropdown-menu a{
  padding: 10px 14px;
  border-radius: 12px;
  font-weight:600;
  text-decoration:none;
  color: inherit;
  transition: background .15s ease;
}

.dropdown-menu a:hover{
  background: rgba(199,162,75,.18);
}

/* Hover activation */
.menu-item.dropdown:hover .dropdown-menu{
  opacity:1;
  pointer-events:auto;
  transform: translateY(0);
}

.menu-item.dropdown:hover .caret{
  transform: rotate(180deg);
}

/* Active état */
.menu-item.active > .dropdown-toggle{
  background: rgba(199,162,75,.18);
  border-radius: 999px;
  padding: 6px 12px;
}
.dropdown-toggle{
  font: inherit; /* hérite de .menu-link */
  font-weight: 900;
}
.dropdown-toggle{
  font: inherit; /* hérite de .menu-link */
  font-weight: 900;
}
/* =======================================================
   DROPDOWN MENU (STABLE HOVER)
======================================================= */
.menu-item{ position: relative; }

.menu-item.dropdown{
  position: relative;
  display: inline-flex; /* garde la zone hover solide */
  align-items: center;
}

/* Le bouton */
.dropdown-toggle{
  display:flex;
  align-items:center;
  gap:6px;
  background:none;
  border:none;
  cursor:pointer;

  font: inherit;
  color: inherit;

  font-weight: 900;           /* ✅ gras */
  padding: 8px 10px;          /* ✅ zone hover plus grande */
  border-radius: 999px;
}

/* Flèche */
.caret{
  font-size:.7rem;
  transition: transform .2s ease;
}

/* Menu */
.dropdown-menu{
  position:absolute;
  top: 100%;                  /* ✅ collé au bouton (pas de gap) */
  left: 0;

  margin-top: 10px;           /* espace visuel, mais zone tampon gère le hover */
  min-width: 220px;

  display:flex;
  flex-direction:column;

  background: rgba(20,18,25,.95);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);

  padding: 10px;
  opacity:0;
  pointer-events:none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 9999;
}

html:not(.dark) .dropdown-menu{
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.08);
}

/* ✅ Zone tampon invisible pour ne pas perdre le hover */
.dropdown-menu::before{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

/* Items */
.dropdown-menu a{
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  color: inherit;
  transition: background .15s ease;
}

.dropdown-menu a:hover{
  background: rgba(199,162,75,.18);
}

/* ✅ Ouverture stable: hover sur le parent OU sur le menu */
.menu-item.dropdown:hover .dropdown-menu,
.menu-item.dropdown:focus-within .dropdown-menu{
  opacity:1;
  pointer-events:auto;
  transform: translateY(0);
}

.menu-item.dropdown:hover .caret,
.menu-item.dropdown:focus-within .caret{
  transform: rotate(180deg);
}

/* Active état */
.menu-item.active > .dropdown-toggle{
  background: rgba(199,162,75,.18);
  border: 1px solid rgba(199,162,75,.30);
}
/* =======================================================
   ARTICLE PAGE (ABOUT)
======================================================= */
.article-page{
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.article-head{ padding: 6px 6px 14px; }
.article-title{
  margin: 8px 0 0;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 1000;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.article-lead{
  margin-top: 12px;
  max-width: 72ch;
}

.article-figure{
  margin: 16px 6px 8px;
  padding: 16px;
  border-radius: var(--r);
  background: rgba(255,255,255,.55);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow2);
  text-align: center;
}
html.dark .article-figure{
  background: rgba(18,16,22,.62);
}

.article-figure img{
  width: min(260px, 80%);
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
}

.article-figure figcaption{
  margin-top: 10px;
  font-size: .92rem;
}

.article-section{
  margin-top: 18px;
  padding: 6px;
}

.article-highlight{
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--r2);
  border: 1px solid rgba(199,162,75,.25);
  background: rgba(199,162,75,.12);
}

.article-grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
@media (max-width: 980px){
  .article-grid{ grid-template-columns: 1fr; }
}

.article-card{
  padding: 16px;
  border-radius: var(--r);
  background: rgba(255,255,255,.55);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow2);
}
html.dark .article-card{
  background: rgba(18,16,22,.62);
}

.article-list{
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}
.article-list li{ margin: 6px 0; }

.article-foot{
  margin-top: 18px;
  padding: 14px 6px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
/* =======================================================
   PAGE — EN COURS DE CRÉATION
======================================================= */
.construction{
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 34px 22px;
}

.construction-badge{
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  border-radius: 999px;

  display:flex;
  align-items:center;
  justify-content:center;

  background: radial-gradient(circle at 30% 30%, var(--gold2), var(--gold));
  color: #1a1408;
  font-size: 34px;
  font-weight: 1000;
  box-shadow: 0 22px 55px rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.14);
}

.construction-title{
  margin: 8px 0 0;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 1000;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.construction-text{
  margin: 12px auto 0;
  max-width: 70ch;
  line-height: 1.9;
}

.construction-note{
  margin: 18px auto 0;
  max-width: 70ch;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(199,162,75,.12);
  border: 1px solid rgba(199,162,75,.25);
}

.construction-actions{
  margin-top: 18px;
  display:flex;
  justify-content:center;
}
/* =======================================================
   PUBLIC — ÉQUIPE
======================================================= */
.public-team-grid{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1100px){
  .public-team-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 850px){
  .public-team-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .public-team-grid{ grid-template-columns: 1fr; }
}

.public-team-card{
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 16px;
  border-radius: var(--r);
  background: rgba(255,255,255,.55);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow2);

  transition: transform .15s ease, border-color .15s ease;
}

html.dark .public-team-card{
  background: rgba(18,16,22,.62);
}

.public-team-card:hover{
  transform: translateY(-1px);
  border-color: rgba(199,162,75,.30);
}

.public-team-avatar{
  width: 64px;
  height: 64px;
  flex: 0 0 auto;

  border-radius: 18px;
  overflow: hidden;

  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);

  display:flex;
  align-items:center;
  justify-content:center;
}

.public-team-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.public-team-fallback{
  font-size: 26px;
  opacity: .9;
}

.public-team-info{
  min-width: 0;
  display:flex;
  flex-direction:column;
  gap: 4px;
}

.public-team-name{
  font-weight: 1000;
  letter-spacing: .2px;
  text-transform: uppercase;
  font-size: .95rem;
  line-height: 1.2;
}

.public-team-role{
  color: var(--muted);
  font-weight: 800;
  font-size: .9rem;
  line-height: 1.2;
}
/* =======================================================
   AGENDA (PUBLIC) — PRO
======================================================= */
.agenda-hero{
  max-width: 1120px;
  margin: 0 auto;
}

.agenda-panel{
  max-width: 1120px;
  margin: 14px auto 0;
}

.agenda-empty{
  text-align:center;
  padding: 26px 18px;
}

.agenda-empty-badge{
  width: 84px;
  height: 84px;
  margin: 0 auto;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: radial-gradient(circle at 30% 30%, var(--gold2), var(--gold));
  color:#1a1408;
  font-size: 34px;
  font-weight: 1000;
  box-shadow: 0 22px 55px rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.14);
}

.agenda-grid{
  display:flex;
  flex-direction:column;
  gap: 14px;
  margin-top: 8px;
}

.agenda-card{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;

  padding: 16px;
  border-radius: var(--r);
  background: rgba(255,255,255,.55);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow2);

  transition: transform .15s ease, border-color .15s ease;
}

html.dark .agenda-card{
  background: rgba(18,16,22,.62);
}

.agenda-card:hover{
  transform: translateY(-1px);
  border-color: rgba(199,162,75,.30);
}

@media (max-width: 720px){
  .agenda-card{ grid-template-columns: 1fr; }
}

.agenda-date{
  border-radius: 18px;
  border: 1px solid rgba(199,162,75,.25);
  background: rgba(199,162,75,.12);
  padding: 14px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 6px;
  text-align:center;
}

.agenda-day{
  font-size: 2rem;
  font-weight: 1000;
  letter-spacing: .4px;
  line-height: 1;
}

.agenda-mon{
  font-weight: 950;
  letter-spacing: .8px;
  text-transform: uppercase;
  opacity: .9;
  font-size: .9rem;
}

.agenda-title{
  margin: 2px 0 0;
  font-size: 1.05rem;
  font-weight: 1000;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.agenda-meta{
  margin-top: 8px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 850;
  color: var(--muted);
}

.agenda-desc{
  margin-top: 10px;
  line-height: 1.85;
}
/* =======================================================
   CONTACT PAGE
======================================================= */

.contact-panel{
  max-width: 760px;
  margin: 0 auto;
}

.contact-form{
  margin-top: 18px;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.form-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}

@media(max-width: 700px){
  .form-row{
    grid-template-columns: 1fr;
  }
}

.contact-form label{
  display:block;
  margin-bottom:6px;
  font-weight:900;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.55);
  color: var(--text);
  outline:none;
  font-family: inherit;
}

html.dark .contact-form input,
html.dark .contact-form textarea{
  background: rgba(18,16,22,.62);
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199,162,75,.15);
}

.form-actions{
  display:flex;
  justify-content:flex-end;
}

.alert-success{
  margin-top:14px;
  padding:12px 16px;
  border-radius:14px;
  background: rgba(34,197,94,.12);
  border:1px solid rgba(34,197,94,.25);
  font-weight:900;
}

.alert-error{
  margin-top:14px;
  padding:12px 16px;
  border-radius:14px;
  background: rgba(239,68,68,.12);
  border:1px solid rgba(239,68,68,.25);
  font-weight:900;
}
/* ===== LAYOUT GLOBAL ===== */
html, body{
  height: 100%;
}

body{
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Le contenu principal prend toute la place */
.stage{
  flex: 1;
}

/* Footer collé en bas naturellement */
footer{
  margin-top: auto;
}/* =======================================================
   PUBLIC — PRÉ-INSCRIPTION (rejoindre.php)
======================================================= */
.form-apply{
  max-width: 900px;
  margin: 0 auto;
}

.apply-text p{ margin: 10px 0; }

.apply-box{
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(199,162,75,.12);
  border: 1px solid rgba(199,162,75,.25);
}

.apply-form{ margin-top: 18px; display:flex; flex-direction:column; gap: 14px; }

.apply-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media(max-width: 760px){
  .apply-grid{ grid-template-columns: 1fr; }
}

.apply-form label{ font-weight: 900; display:block; margin-bottom: 8px; }

.apply-form textarea.form-control{ resize: vertical; min-height: 130px; }

.apply-choice{
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.10);
  border: 1px solid var(--stroke);
}
html.dark .apply-choice{ background: rgba(18,16,22,.35); }

.radio{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 850;
  margin-top: 8px;
}
.radio input{ width: 16px; height: 16px; accent-color: var(--gold); }

.apply-actions{
  display:flex;
  justify-content:flex-end;
  margin-top: 4px;
}
/* =======================================================
   PUBLIC — PRÉ-INSCRIPTION (rejoindre.php)
======================================================= */
.form-apply{
  max-width: 900px;
  margin: 0 auto;
}

.apply-text p{ margin: 10px 0; }

.apply-box{
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(199,162,75,.12);
  border: 1px solid rgba(199,162,75,.25);
}

.apply-form{ margin-top: 18px; display:flex; flex-direction:column; gap: 14px; }

.apply-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media(max-width: 760px){
  .apply-grid{ grid-template-columns: 1fr; }
}

.apply-form label{ font-weight: 900; display:block; margin-bottom: 8px; }

.apply-form textarea.form-control{ resize: vertical; min-height: 130px; }

.apply-choice{
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.10);
  border: 1px solid var(--stroke);
}
html.dark .apply-choice{ background: rgba(18,16,22,.35); }

.radio{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 850;
  margin-top: 8px;
}
.radio input{ width: 16px; height: 16px; accent-color: var(--gold); }

.apply-actions{
  display:flex;
  justify-content:flex-end;
  margin-top: 4px;
}
/* =======================================================
   PUBLIC — PRÉ-INSCRIPTION (FORM) — FIX PRO
   (colle en fin de style.css)
======================================================= */

.form-apply{
  max-width: 980px;
  margin: 0 auto;
  padding: 26px;
}

.form-apply .panel-head{
  margin-bottom: 16px;
}

.form-apply .h2{
  letter-spacing: .6px;
  text-transform: uppercase;
}

/* Texte d'intro plus lisible */
.apply-text{
  margin-top: 12px;
  max-width: 85ch;
}
.apply-text p{
  margin: 10px 0;
  line-height: 1.85;
}

/* Encarts "stagiaire / adhérent" */
.apply-box{
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(199,162,75,.10);
  border: 1px solid rgba(199,162,75,.22);
}

/* FORM */
.apply-form{
  margin-top: 18px;
  display:flex;
  flex-direction:column;
  gap: 16px;
}

/* Grilles */
.apply-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 820px){
  .apply-grid{ grid-template-columns: 1fr; }
}

/* Labels */
.apply-form label{
  display:block;
  margin-bottom: 8px;
  font-weight: 950;
  letter-spacing: .2px;
}

/* Inputs/Textarea premium */
.apply-form .form-control{
  width:100%;
  padding: 12px 14px;
  border-radius: 14px;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text);

  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

/* Dark mode: encore plus clean */
html.dark .apply-form .form-control{
  background: rgba(18,16,22,.55);
  border: 1px solid rgba(255,255,255,.10);
  color: #f4efe6;
}

/* Placeholder */
.apply-form .form-control::placeholder{
  color: rgba(255,255,255,.55);
}
html:not(.dark) .apply-form .form-control::placeholder{
  color: rgba(15,23,42,.55);
}

/* Focus doré */
.apply-form .form-control:focus{
  border-color: rgba(199,162,75,.55);
  box-shadow: 0 0 0 4px rgba(199,162,75,.16);
  transform: translateY(-1px);
}

/* Textarea */
.apply-form textarea.form-control{
  min-height: 160px;
  resize: vertical;
  line-height: 1.7;
}

/* Choix engagement */
.apply-choice{
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
html.dark .apply-choice{
  background: rgba(18,16,22,.40);
}

.radio{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 850;
  margin-top: 10px;
}
.radio input{
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

/* Actions */
.apply-actions{
  display:flex;
  justify-content:flex-end;
  margin-top: 6px;
}

/* Harmonise le bouton (si ton .btn existe déjà) */
.apply-actions .btn{
  min-width: 240px;
  justify-content:center;
}

/* Alerts (si tu utilises alert-success / alert-error) */
.alert-success{
  margin-top:14px;
  padding:12px 16px;
  border-radius:14px;
  background: rgba(34,197,94,.12);
  border:1px solid rgba(34,197,94,.25);
  font-weight:900;
}

.alert-error{
  margin-top:14px;
  padding:12px 16px;
  border-radius:14px;
  background: rgba(239,68,68,.12);
  border:1px solid rgba(239,68,68,.25);
  font-weight:900;
}

html.dark .brand-dot{
  background: radial-gradient(circle at 30% 30%, var(--gold2), var(--gold));
  box-shadow: 0 14px 26px rgba(26,90,143,.28);
}

html.dark .btn-gold{
  color: #fff;
  border-color: rgba(255,255,255,.12);
  background: radial-gradient(circle at 30% 30%, var(--accent2), var(--accent));
  box-shadow: 0 18px 40px rgba(176,23,45,.22);
}
html.dark .menu-link:hover{ background: rgba(26,90,143,.22); }


/* ---------------------------
   SEARCH (PUBLIC)
--------------------------- */
.top-search{ flex:1 1 320px; display:flex; justify-content:center; }
.top-search form{ width: min(520px, 100%); }
.top-search-input{
  width:100%;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(19,19,26,.12);
  background: rgba(255,255,255,.55);
  color: var(--ink);
  font-weight: 800;
}
html.dark .top-search-input{
  border-color: rgba(255,255,255,.10);
  background: rgba(8,18,32,.58);
}
.top-search-input::placeholder{ color: rgba(19,19,26,.55); }
html.dark .top-search-input::placeholder{ color: rgba(244,239,230,.55); }
@media (max-width: 820px){
  .top-search{ display:none; }
}


/* Logo frame (about) */
.logo-frame{
  display:flex;
  justify-content:center;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(19,19,26,.10);
}
html.dark .logo-frame{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.14);
}
.logo-frame img{ width:min(260px, 70%); height:auto; }

/* En mode sombre, le logo (souvent noir) doit être lisible : on l'inverse en blanc */
html.dark .about-logo-img{
  filter: invert(1) brightness(1.8) contrast(1.05);
}

/* =====================================================
   Public — Article rich text (éditeur)
===================================================== */
.prose{ line-height: 1.85; }
.prose h1,.prose h2,.prose h3{ line-height: 1.25; margin: 18px 0 10px; }
.prose h1{ font-size: 1.9rem; }
.prose h2{ font-size: 1.55rem; }
.prose h3{ font-size: 1.25rem; }
.prose p{ margin: 12px 0; }
.prose ul,.prose ol{ margin: 12px 0 12px 22px; }
.prose li{ margin: 6px 0; }
.prose a{ text-decoration: underline; }
.prose blockquote{
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 3px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.06);
  border-radius: 14px;
}
html.light .prose blockquote{
  border-left-color: rgba(0,0,0,.18);
  background: rgba(0,0,0,.04);
}


.mobile-menu-toggle{
  display:none;
  border: 1px solid rgba(19,19,26,.12);
  background: rgba(255,255,255,.55);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0,0,0,.10);
}
html.dark .mobile-menu-toggle{
  background: rgba(18,16,22,.62);
  border-color: rgba(255,255,255,.10);
}
@media (max-width: 820px){
  .topbar{ display:grid; grid-template-columns: 1fr auto; align-items:center; border-radius: 28px; padding:14px; }
  .mobile-menu-toggle{ display:inline-flex; justify-content:center; align-items:center; }
  .top-search, .top-actions{ grid-column: 1 / -1; }
  .menu{ display:none; width:100%; grid-column: 1 / -1; flex-direction:column; align-items:stretch; gap:10px; padding-top:6px; }
  .menu.open{ display:flex; }
  .menu-link, .dropdown-toggle{ width:100%; justify-content:space-between; display:flex; }
  .dropdown-menu{ position:static; display:block; opacity:1; visibility:visible; transform:none; box-shadow:none; margin-top:8px; }
  .menu-item.dropdown .dropdown-menu{ display:none; }
  .menu-item.dropdown:focus-within .dropdown-menu,
  .menu-item.dropdown:hover .dropdown-menu,
  .menu-item.dropdown.active .dropdown-menu{ display:block; }
  .top-search-input{ width:100%; }
}
