:root{
  --bg:#0b0f14;
  --panel:#0f1620;
  --ink:#e6edf3;
  --muted:#9fb0c0;
  --brand:#ff1f8f;   /* magenta du logo */
  --brand2:#ff4b3e;  /* rouge/orange du logo */
  --line:rgba(255,255,255,.08);
  --radius:18px;
  --shadow:0 14px 40px rgba(0,0,0,.5);
  /* NEW */
  --ok:#2ecc71;
  --bad:#ff6b6b;
}

/* Reset de base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(1000px 500px at 100% -10%, rgba(255,31,143,.12), transparent 60%),
    radial-gradient(900px 400px at -10% 10%, rgba(255,75,62,.12), transparent 60%),
    var(--bg);
  color:var(--ink); line-height:1.6;
}
.wrap{width:min(1200px, 92%); margin-inline:auto}
a{color:#ff78c5; text-decoration:none}
a:hover{opacity:.9}
img{max-width:100%; display:block}
.muted{color:var(--muted)}

/* ========================
   Header
======================== */
.site-header{
  position:sticky; top:0; z-index:10;
  background:rgba(11,15,20,.65); backdrop-filter:saturate(160%) blur(6px);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.7rem 0}
.brand{display:flex; align-items:center; gap:.7rem}
.logo{height:52px; width:auto; object-fit:contain; display:block}
.brand-text{display:flex; flex-direction:column; font-weight:800}
.brand-text span{color:var(--muted); font-weight:600; font-size:.85rem}

/* Nav */
.top-nav{display:flex; align-items:center; gap:1rem}
.top-nav a{color:var(--muted); margin-left:1rem; font-weight:700}
.top-nav a:hover{color:var(--ink)}
.top-nav .cta{
  color:#fff;
  background:linear-gradient(135deg, rgba(255,31,143,.3), rgba(255,75,62,.25));
  padding:.6rem .9rem; border-radius:999px; border:1px solid var(--line)
}
.mobile-toggle{display:none; background:none; color:var(--ink); border:1px solid var(--line); border-radius:999px; padding:.45rem .8rem}

/* ===== Nav mobile (animé) ===== */
/* état de base (caché) */
#mobile-nav{
  display:none;
  overflow:hidden;
  max-height:0;
  opacity:0;
  transform:translateY(-6px);
  transition:max-height .35s ease, opacity .25s ease, transform .25s ease;
  border-top:1px solid var(--line);
  background:rgba(11,15,20,.75);
  backdrop-filter:saturate(160%) blur(6px);
  padding:0 4%;               /* padding horizontal gardé fermé */
  padding-bottom:0;           /* pas d'espace quand fermé */
}

/* état ouvert */
#mobile-nav.open{
  display:flex;
  flex-direction:column;
  gap:.6rem;
  padding:0 4% .8rem;
  max-height:480px; /* assez grand pour tous les liens */
  opacity:1;
  transform:translateY(0);
}

#mobile-nav a{
  padding:.55rem .8rem;
  border:1px solid var(--line);
  border-radius:10px;
  color:var(--muted);
}

/* accessibilité : réduit les animations si demandé */
@media (prefers-reduced-motion: reduce){
  #mobile-nav{ transition:none; transform:none; }
}

/* ===== Nav : lien actif (style "comme Discord") ===== */
.top-nav a.active,
.top-nav a[aria-current="page"]{
  color:#fff !important;
  background:linear-gradient(135deg, rgba(255,31,143,.30), rgba(255,75,62,.25));
  padding:.6rem .9rem;
  border-radius:999px;
  border:1px solid var(--line);
  box-shadow:0 8px 24px rgba(255,31,143,.25), inset 0 0 0 1px rgba(255,255,255,.06);
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.top-nav a.active:hover,
.top-nav a[aria-current="page"]:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 28px rgba(255,31,143,.32), inset 0 0 0 1px rgba(255,255,255,.08);
}
.top-nav a{
  transition:color .2s ease, opacity .2s ease, background .2s ease;
}

/* ========================
   Hero
======================== */
.hero{padding:84px 0 56px}
.hero-grid{display:grid; grid-template-columns:1.05fr .95fr; gap:2rem; align-items:center}
.hero-copy{text-align:left}
.hero h1{font-size:clamp(2.2rem, 5vw, 3.4rem); line-height:1.1; letter-spacing:-0.01em; margin:0 0 10px}
.lead{color:var(--muted); font-size:1.05rem; margin:0 0 14px}
.badges{display:flex; gap:.5rem; flex-wrap:wrap; margin:1rem 0 1.1rem}
.chip{border:1px solid var(--line); padding:.35rem .65rem; border-radius:999px; color:var(--muted); font-weight:700; font-size:.85rem}

.btn{
  display:inline-flex; align-items:center; gap:.6rem;
  padding:.8rem 1.1rem; border-radius:999px; font-weight:800;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow:var(--shadow)
}
.btn.primary{background:linear-gradient(135deg, rgba(255,31,143,.25), rgba(255,75,62,.2)); color:#fff}
.btn.ghost{background:transparent}
.hero-actions{display:flex; gap:.6rem; flex-wrap:wrap; margin-top:1rem}

/* Bouton alternatif */
.btn.primary.alt{
  background:linear-gradient(135deg, rgba(255,75,62,.35), rgba(255,31,143,.30));
  color:#fff;
}

/* Visuel logo hero */
.logo-hero{
  display:grid; place-items:center;
  border:1px solid var(--line); border-radius:16px; overflow:hidden; box-shadow:var(--shadow);
  background:
    radial-gradient(600px 300px at 60% -10%, rgba(255,31,143,.18), transparent 60%),
    radial-gradient(600px 300px at -10% 60%, rgba(255,75,62,.18), transparent 60%);
  padding:20px;
}
.logo-hero img{width:100%; max-width:520px; height:auto}

/* ========================
   Sections / Cards
======================== */
.section{padding:48px 0}
.section-head{display:flex; align-items:center; justify-content:center; margin-bottom:1rem}
.section-head h2{margin:0; font-size: clamp(1.6rem, 2.5vw, 2.2rem)}

.card{
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid var(--line); border-radius:18px; padding:1rem; box-shadow:var(--shadow)
}

/* About */
.about-grid{display:grid; grid-template-columns:1fr 1fr; gap:1rem; align-items:start}
.kv{display:grid; grid-template-columns:1fr 1fr; gap:.6rem}
.kv span:nth-child(odd){color:var(--muted)}
.glass{backdrop-filter: blur(6px); background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02))}

/* ========================
   À propos premium
======================== */
.section--feature{
  position:relative;
  padding:56px 0;
}
.section--feature::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(700px 350px at 20% -10%, rgba(255,31,143,.10), transparent 60%),
    radial-gradient(700px 350px at 120% 40%, rgba(255,75,62,.10), transparent 60%);
  pointer-events:none;
}

.about-flex{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);
  gap:1.2rem;
  align-items:stretch;
}

.card--feature{
  padding:1.4rem 1.6rem 1.2rem;
  border-radius:20px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.card--feature h2{
  display:flex; align-items:center; gap:.6rem;
  font-size:clamp(1.4rem,2.2vw,1.9rem);
  margin:.2rem 0 1rem;
}
.card--feature .dot{
  width:10px; height:10px; border-radius:50%;
  background:linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow:0 0 14px rgba(255,31,143,.6);
}

.card--side{
  padding:1.1rem 1.2rem;
  border-radius:18px;
  border:1px solid var(--line);
  background:linear-gradient(135deg, rgba(255,31,143,.08), rgba(255,75,62,.06));
  backdrop-filter:blur(6px);
}
.card--side h3{ margin:.2rem 0 .8rem; }

.list{ list-style:none; margin:0; padding:0; }
.list li{
  display:flex; gap:.6rem; align-items:flex-start;
  padding:.45rem 0;
  border-bottom:1px dashed rgba(255,255,255,.08);
}
.list li:last-child{ border-bottom:0; }

.actions{ display:flex; gap:.6rem; flex-wrap:wrap; margin-top:1rem; }

/* ========================
   Features / Rules / Status
======================== */
.grid.features{display:grid; grid-template-columns:repeat(3, 1fr); gap:1rem}
.feature h3{margin:.2rem 0 .2rem}

.rules details{background:rgba(255,255,255,.04); border:1px solid var(--line); border-radius:12px; padding:.7rem .9rem; margin:.6rem 0}
.rules summary{cursor:pointer; font-weight:800}

.status-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:1rem}
.placeholder{height:200px; display:grid; place-items:center; border:1px dashed var(--line); border-radius:12px; color:var(--muted)}
.tiny{padding:.5rem .8rem; font-size:.9rem}

/* ========================
   Contact & Footer
======================== */
.contact-grid{display:grid; grid-template-columns:1.3fr .7fr; gap:1rem}
.card.big{padding:1.2rem 1.4rem}

.site-footer{border-top:1px solid var(--line); padding:24px 0; background:rgba(0,0,0,.25); text-align:center; color:var(--muted)}

/* ========================
   Responsive
======================== */
@media (max-width: 980px){
  .top-nav{display:none}           /* cache nav desktop */
  .mobile-toggle{display:inline-flex} /* affiche le bouton burger */
  .hero-grid{grid-template-columns:1fr}
  .about-grid{grid-template-columns:1fr}
  .about-flex{grid-template-columns:1fr}
  .grid.features{grid-template-columns:repeat(2, 1fr)}
  .status-grid{grid-template-columns:1fr}
  .apply-grid{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
}
@media (max-width: 560px){
  .btn{width:100%; justify-content:center}
  .grid.features{grid-template-columns:1fr}
}

/* ===== RÈGLEMENT — cartes premium en grille ===== */
.rules{ max-width:1100px; margin-inline:auto; }
.rules-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(300px, 1fr));
  gap:14px;
}

.rule{
  border:1px solid var(--line);
  border-radius:14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)),
    radial-gradient(800px 300px at 120% 50%, rgba(255,31,143,.08), transparent 60%),
    radial-gradient(800px 300px at -20% 10%, rgba(255,75,62,.06), transparent 60%);
  overflow:hidden;
  transition:border-color .25s ease, box-shadow .25s ease, transform .06s ease;
}
.rule:hover{ border-color:rgba(255,255,255,.16); }
.rule:active{ transform:translateY(1px); }

.rule[open]{
  border-color:rgba(255,31,143,.35);
  box-shadow:0 6px 30px rgba(0,0,0,.35), 0 0 0 2px rgba(255,31,143,.12) inset;
}

/* Sommaire */
.rule summary{
  list-style:none;
  display:flex; align-items:center; gap:.8rem;
  padding:.85rem 1rem;
  cursor:pointer; user-select:none;
}
.rule summary::-webkit-details-marker{ display:none; }
.rule summary::after{
  content:"▾";
  margin-left:auto;
  opacity:.75;
  transition:transform .25s ease, opacity .2s ease;
}
.rule[open] summary::after{ transform:rotate(180deg); opacity:1; }

/* N° et titre */
.rule .num{
  font-weight:900; font-size:.9rem;
  color:#fff; letter-spacing:.02em;
  padding:.22rem .5rem; border-radius:999px;
  background:linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow:0 2px 10px rgba(255,31,143,.35);
}
.rule .title{ font-weight:800; }

/* Contenu */
.rule .content{
  border-top:1px dashed var(--line);
  padding: .75rem 1rem 1rem;
  color:var(--ink);
}
.rule .content p{ margin:.2rem 0 .6rem; color:var(--muted); }
.rule .content ul{ margin:.4rem 0 0 1.1rem; }
.rule .content li{ margin:.2rem 0; color:var(--ink); }

/* Pleine largeur sur mobile */
@media (max-width: 820px){
  .rules-grid{ grid-template-columns:1fr; }
}

/* ========================
   NEW — Widget FiveM
======================== */
.fivem{ display:flex; flex-direction:column; gap:.7rem; }
.frow{
  display:flex; align-items:center; gap:.6rem;
  font-weight:800;
}
.f-dot{
  width:10px; height:10px; border-radius:50%;
  box-shadow:0 0 14px rgba(0,0,0,.3);
}
.f-dot.on{ background:var(--ok); }
.f-dot.off{ background:var(--bad); opacity:.9; }

.f-addr{ color:var(--muted); font-weight:600; }
.f-name{ color:#fff; font-weight:900; }

.f-bar{
  position:relative; height:10px; border-radius:999px;
  background:rgba(255,255,255,.06); overflow:hidden; border:1px solid var(--line);
}
.f-bar > span{
  display:block; height:100%; width:0%;
  background:linear-gradient(135deg, var(--brand), var(--brand2));
  transition:width .35s ease;
}

.f-list{ margin:0; padding-left:1rem; color:var(--ink); }
.f-list li{ margin:.2rem 0; color:var(--muted); }

/* ========================
   NEW — Carte Discord “live”
======================== */
.discord-live .dc-meta{
  display:flex; align-items:center; gap:.8rem; margin-bottom:.6rem;
}
.discord-live #dc-icon{
  width:42px; height:42px; border-radius:10px; object-fit:cover;
  border:1px solid var(--line);
}
.discord-live #dc-name{
  font-weight:800; display:block;
}



/* ========================
   Patch Notes (long texte)
======================== */
.patch-note {
  position: relative;
  max-height: 280px; /* hauteur visible par défaut */
  overflow: hidden;
  padding-bottom: 2.5rem;
  transition: max-height 0.4s ease;
}

.patch-note.expanded {
  max-height: 2000px; /* version ouverte */
}

.patch-note::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, var(--panel), transparent);
  pointer-events: none;
  transition: opacity 0.3s;
}

.patch-note.expanded::after {
  opacity: 0;
}

/* Bouton voir plus */
.btn-more {
  display: inline-block;
  margin-top: 1rem;
  background: linear-gradient(135deg, rgba(255,31,143,.35), rgba(255,75,62,.25));
  color: #fff;
  font-weight: 700;
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  box-shadow: var(--shadow);
}


/* ========================
   PAGE JOBS — look propre
======================== */
.jobs-hero .badges li{ font-weight:800; }

.job-tabs .btn{
  padding:.55rem .9rem;
  border-radius:999px;
  font-weight:800;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.job-tabs .btn[aria-selected="true"]{
  background:linear-gradient(135deg, var(--brand), var(--brand2));
  color:#fff; border-color:transparent;
  box-shadow:0 8px 24px rgba(255,31,143,.35);
}

/* Grille cards + cartes nuancées */
.job-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}
@media (max-width:980px){ .job-grid{ grid-template-columns:1fr; } }

.job-card{
  border:1px solid var(--line);
  border-radius:16px;
  padding:1rem 1.1rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02)),
    radial-gradient(900px 360px at 120% 20%, rgba(255,31,143,.06), transparent 60%),
    radial-gradient(900px 360px at -20% 120%, rgba(255,75,62,.05), transparent 60%);
  box-shadow:0 12px 32px rgba(0,0,0,.35);
}

.job-card__head{
  display:flex; align-items:center; justify-content:space-between; gap:.6rem;
  margin-bottom:.35rem;
}
.job-card h3{ margin:0; font-size:1.05rem; }

/* Chips d’état */
.chip{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.28rem .55rem; border-radius:999px;
  border:1px solid var(--line); color:#fff; font-weight:800; font-size:.8rem;
  background:linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}
.chip--green{
  background:linear-gradient(135deg, #2ecc71, #20c659);
  color:#0b0f14; border-color:transparent;
}
.chip--amber{
  background:linear-gradient(135deg, #ffbd2e, #ff9a1f);
  color:#0b0f14; border-color:transparent;
}

/* Listes propres (sans pointillés) */
.list--soft li{ border:0; padding:.2rem 0; }
.list--bullets{ list-style:none; padding:0; margin:.4rem 0 0; }
.list--bullets li{
  position:relative; padding-left:1rem; margin:.25rem 0; border:0;
}
.list--bullets li::before{
  content:""; position:absolute; left:0; top:.6rem;
  width:6px; height:6px; border-radius:50%;
  background:linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow:0 0 8px rgba(255,31,143,.45);
}

/* Tips */
.tip{ margin-top:.6rem; text-align:left; }

/* Harmonise margin & tailles */
.panel .wrap h2{ margin-bottom:.6rem; }
.job-card p.muted{ margin:.2rem 0 .4rem; }



/* ========================
   JOBS — HERO AGRANDI
======================== */
.jobs-hero {
  background: radial-gradient(circle at 30% 20%, rgba(255,31,143,.06), transparent 60%), 
              linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  padding: 6rem 0 5rem;
  text-align: left;
}

.jobs-hero .wrap {
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.jobs-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.jobs-hero .lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 1.2rem;
  max-width: 700px;
}

.jobs-hero .badges {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1rem;
}

.jobs-hero .badges li {
  font-weight: 700;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: .4rem .8rem;
  font-size: .95rem;
  backdrop-filter: blur(4px);
}

.jobs-hero .glow-card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.08);
  color: #eee;
}

.jobs-hero .glow-card h3 {
  font-size: 1.4rem;
  margin-bottom: .8rem;
}

.jobs-hero .glow-card ul {
  margin: 0 0 1rem 0;
  padding: 0;
  list-style: none;
}

.jobs-hero .glow-card li {
  margin: .35rem 0;
  font-size: .95rem;
  opacity: .9;
}

.jobs-hero .status.ok {
  display: inline-block;
  margin-top: .8rem;
  padding: .4rem .9rem;
  background: linear-gradient(135deg, #2ecc71, #20c659);
  color: #0b0f14;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 0 15px rgba(46,204,113,.4);
}

@media (max-width:980px){
  .jobs-hero {
    padding: 4rem 0 3rem;
    text-align: center;
  }
  .jobs-hero .wrap {
    grid-template-columns: 1fr;
  }
  .jobs-hero .glow-card {
    margin-top: 2rem;
  }
}


/* ========================
   JOBS — CTA FINAL BOOSTÉ
======================== */
.jobs-cta {
  background: radial-gradient(circle at 70% 20%, rgba(255,31,143,.08), transparent 60%),
              linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.jobs-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 120%, rgba(255,75,62,.07), transparent 70%);
  z-index: 0;
}

.jobs-cta .wrap {
  position: relative;
  z-index: 1;
  max-width: 950px;
  margin: 0 auto;
}

.jobs-cta h2 {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.jobs-cta p {
  font-size: 1.15rem;
  color: #ccc;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

.jobs-cta .glow-card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,.5);
  padding: 2rem;
  margin: 0 auto;
  max-width: 600px;
}

.jobs-cta .glow-card h3 {
  font-size: 1.4rem;
  margin-bottom: .5rem;
  color: #fff;
}

.jobs-cta .glow-card p {
  font-size: 1rem;
  color: #bbb;
  margin-bottom: 1.2rem;
}

.jobs-cta .btn {
  font-size: 1rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 0 20px rgba(255,31,143,.45);
  transition: transform .2s ease, box-shadow .2s ease;
}

.jobs-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255,31,143,.6);
}

@media (max-width: 900px){
  .jobs-cta h2{ font-size: 1.9rem; }
  .jobs-cta p{ font-size: 1rem; }
  .jobs-cta .glow-card{ padding: 1.5rem; }
}


/* ========================
   ONGLET — styles génériques
======================== */
.tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .35rem;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.tab-btn {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  border-radius: 999px;
  padding: .55rem 1rem;
  color: var(--muted);
  background: transparent;
  transition: color .2s ease;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.tab-btn[aria-selected="true"] { color: #fff; }

/* Barre glissante sous l’onglet actif */
.tab-indicator {
  position: absolute;
  z-index: 0;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 26px rgba(255,31,143,.35);
  transition: transform .25s ease, width .25s ease, left .25s ease;
}

/* Panneaux */
.tab-panel[hidden] { display: none !important; }

/* Entrée douce des panneaux */
.tab-panel.fade-in { animation: fadeIn .22s ease both; }
@keyframes fadeIn { from {opacity:.6; transform:translateY(2px);} to {opacity:1; transform:none;} }




// ===== Accordéon Règlement (cartes) =====
document.addEventListener('DOMContentLoaded', () => {
  const cards = document.querySelectorAll('.rule-card');
  if (!cards.length) return;

  cards.forEach(card => {
    const btn = card.querySelector('.rule-toggle');
    const body = card.querySelector('.rule-body');
    if (!btn || !body) return;

    btn.addEventListener('click', () => {
      const isOpen = card.classList.contains('open');
      // fermer les autres (comportement "accordéon")
      cards.forEach(c => {
        if (c !== card) {
          c.classList.remove('open');
          const b = c.querySelector('.rule-body');
          if (b) b.style.maxHeight = null;
          const t = c.querySelector('.rule-toggle');
          if (t) t.setAttribute('aria-expanded','false');
        }
      });
      // toggle courant
      if (isOpen) {
        card.classList.remove('open');
        body.style.maxHeight = null;
        btn.setAttribute('aria-expanded','false');
      } else {
        card.classList.add('open');
        body.style.maxHeight = body.scrollHeight + 'px';
        btn.setAttribute('aria-expanded','true');
      }
    });

    // si carte marquée .open au chargement, fixe la hauteur
    if (card.classList.contains('open')) {
      body.style.maxHeight = body.scrollHeight + 'px';
      btn.setAttribute('aria-expanded','true');
    }
  });

  // recalcul après resize (évite un corps coupé si contenu reflow)
  window.addEventListener('resize', () => {
    document.querySelectorAll('.rule-card.open .rule-body').forEach(b => {
      b.style.maxHeight = b.scrollHeight + 'px';
    });
  });
});


/* ===========================
   Cartes du règlement (grille)
   =========================== */

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

@media (max-width: 980px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }
}

.rule-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.rule-card:hover {
  border-color: rgba(255, 31, 143, 0.25);
  box-shadow: 0 0 30px rgba(255,31,143,0.15);
}

/* Bouton du titre */
.rule-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
  position: relative;
}

.rule-toggle:focus {
  outline: none;
  background: rgba(255,255,255,0.05);
}

.rule-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff1f8f, #ff5e62);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(255,31,143,0.3);
}

.rule-title {
  flex: 1;
  font-weight: 800;
  color: #fff;
}

.rule-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  opacity: 0.7;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.rule-card.open .rule-toggle svg {
  transform: rotate(180deg);
  opacity: 1;
}

/* Corps de la règle */
.rule-body {
  padding: 1rem 1.2rem 1.4rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  background: rgba(255,255,255,0.02);
  transition: all 0.25s ease;
}

.rule-body ul.list {
  padding-left: 1.1rem;
  list-style: disc;
}

.rule-body li + li {
  margin-top: 0.4rem;
}

/* Animation ouverture */
.rule-card:not(.open) .rule-body {
  display: none;
}

/* Petits ajustements mobiles */
@media (max-width: 600px) {
  .rule-toggle {
    padding: 0.9rem 1rem;
  }
  .rule-body {
    padding: 0.8rem 1rem 1rem;
  }
  .rule-num {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}


/* ===== Règlement – Bloc d’intro ===== */
.rules-intro {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
}

.rules-intro__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: .6rem;
}

.rules-intro__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1rem;
  margin-top: .4rem;
}

.rules-intro__cell {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .9rem;
}

.rules-intro__cell.note {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
}

.muted.sm { font-size: .92rem; opacity: .9; }

/* Responsive */
@media (max-width: 980px){
  .rules-intro__grid { grid-template-columns: 1fr; }
}


/* ===== Bloc contact règlement ===== */
.rules-contact {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 1.8rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--line);
}

.rules-contact__content h2 {
  margin: 0 0 .6rem;
}

.rules-contact__cta {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  text-align: center;
}

.rules-contact__cta .btn {
  margin-top: .6rem;
  display: inline-block;
}

@media (max-width: 980px){
  .rules-contact {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .rules-contact__cta { margin-top: 1rem; }
}


/* Accordéon Règlement – garde le body visible dès que "hidden" est retiré */
.rule-card .rule-body[hidden] { display: none !important; }
.rule-card .rule-body:not([hidden]) { display: block; }

/* (optionnel) un petit séparateur quand c’est ouvert */
.rule-card.open .rule-body { border-top: 1px solid var(--line); padding-top: .75rem; }


/* Listes classiques : évite que la puce chevauche le texte (Safari/iOS) */
.list,
.panel ul:not(.badges) {
  list-style: disc;
  list-style-position: outside;
  padding-left: 1.25rem;   /* espace pour la puce */
  margin: .4rem 0 .6rem;
}

/* Variante bullet custom (au cas où un parent aurait un overflow qui clippe la puce) */
.list--bullets { list-style: none; padding-left: 0; }
.list--bullets li {
  position: relative;
  padding-left: 1rem;
}
.list--bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1;
  transform: translateY(.2rem);
  color: var(--muted);
}
