:root{
  --bg:#0b0f14;
  --bg2:#0f1620;
  --card:rgba(255,255,255,.06);
  --stroke:rgba(255,255,255,.10);
  --text:#e9eef5;
  --muted:rgba(233,238,245,.72);
  --gold:#f2b544;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius:18px;
}

*{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 600px at 20% 0%, rgba(242,181,68,.12), transparent 60%),
              radial-gradient(900px 500px at 90% 20%, rgba(97,215,255,.10), transparent 60%),
              var(--bg);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
.container{width:min(1120px, calc(100% - 40px)); margin:0 auto}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(11,15,20,.65);
  border-bottom: 1px solid var(--stroke);
}
.topbar__inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:16px}

.brand{display:flex; align-items:baseline; gap:10px}
.brand__dot{width:10px; height:10px; border-radius:999px; background:var(--gold); box-shadow:0 0 0 6px rgba(242,181,68,.14)}
.brand__name{font-weight:800; letter-spacing:.2px}
.brand__tag{font-size:12px; color:var(--muted); margin-left:6px}

.nav{display:flex; gap:18px; align-items:center}
.nav a{color:var(--muted); font-weight:600; font-size:14px}
.nav a:hover{color:var(--text)}

.burger{display:none; width:44px; height:44px; border-radius:12px; border:1px solid var(--stroke); background:transparent}
.burger span{display:block; height:2px; margin:7px 10px; background:var(--text); opacity:.9}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(242,181,68,.45);
  background: linear-gradient(180deg, rgba(242,181,68,.20), rgba(242,181,68,.10));
  color:var(--text);
  font-weight:800;
  box-shadow: 0 12px 30px rgba(242,181,68,.12);
}
.btn:hover{transform:translateY(-1px)}
.btn--ghost{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  box-shadow:none;
  font-weight:700;
}

.hero{position:relative; padding:72px 0 30px}
.hero__bg{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 55%);
  pointer-events:none;
}
.hero__inner{display:grid; grid-template-columns: 1.15fr .85fr; gap:26px; align-items:center}
.pill{
  display:inline-flex; gap:8px; align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color:var(--muted);
  font-weight:600;
  font-size:12px;
}
h1{margin:14px 0 12px; font-size:44px; line-height:1.05}
.lead{color:var(--muted); font-size:16px; line-height:1.6; max-width:54ch}
.hero__cta{display:flex; gap:12px; margin-top:18px; flex-wrap:wrap}

.hero__stats{display:flex; gap:14px; margin-top:22px; flex-wrap:wrap}
.stat{
  padding:12px 14px; border-radius:14px; border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  min-width:120px;
}
.stat__num{font-weight:800; font-size:18px}
.stat__label{color:var(--muted); font-size:12px; margin-top:2px}

.card{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}
.card--glass{background: rgba(255,255,255,.06)}
.card__title{font-weight:800; margin-bottom:10px}

.copyline{display:flex; align-items:center; justify-content:space-between; gap:10px}
code{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.25);
  color: #d7e6ff;
  width:100%;
  overflow:auto;
}
.iconbtn{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color:var(--text);
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
}
.iconbtn:hover{background: rgba(255,255,255,.06)}
.muted{color:var(--muted)}
.small{font-size:12px}

.split{height:1px; background:var(--stroke); margin:16px 0}

.grid2{display:grid; grid-template-columns: 1fr 1fr; gap:10px}
.quick{
  padding:12px 14px; border-radius:14px; border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  font-weight:700;
}
.quick:hover{background: rgba(255,255,255,.06)}

.section{padding:56px 0}
.section--alt{background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01))}
.section__head{margin-bottom:18px}
.section__head h2{margin:0; font-size:28px}
.section__head p{margin:8px 0 0}

.cards3{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
.cards3 .card h3{margin:0 0 8px}
.cards3 .card p{margin:0; color:var(--muted); line-height:1.6}

.banner{
  margin-top:18px;
  display:flex; gap:16px; justify-content:space-between; align-items:center;
  padding:18px;
  border-radius: var(--radius);
  border:1px solid rgba(242,181,68,.25);
  background: linear-gradient(180deg, rgba(242,181,68,.10), rgba(255,255,255,.02));
}
.banner__text h3{margin:0}
.banner__text p{margin:6px 0 0; color:var(--muted)}
.banner__actions{display:flex; gap:10px; flex-wrap:wrap}

.rules{display:grid; grid-template-columns: repeat(3, 1fr); gap:12px}
.rule{
  display:flex; gap:12px;
  padding:14px;
  border-radius: var(--radius);
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
}
.rule span{
  width:34px; height:34px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(242,181,68,.35);
  background: rgba(242,181,68,.12);
  font-weight:900;
}

.note{
  margin-top:14px;
  padding:14px;
  border-radius: var(--radius);
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  color:var(--muted);
}

.staff{display:grid; grid-template-columns: repeat(3, 1fr); gap:12px}
.staffcard{
  display:flex; align-items:center; gap:12px;
  padding:14px;
  border-radius: var(--radius);
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
}
.avatar{
  width:44px; height:44px; border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
}
.staffname{font-weight:800}
.staffrole{color:var(--muted); font-size:13px}
.badge{
  margin-left:auto;
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid rgba(242,181,68,.35);
  background: rgba(242,181,68,.12);
  font-weight:900;
  font-size:12px;
}
.badge--soft{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  font-weight:800;
}

.form.card{max-width:820px}
label{display:flex; flex-direction:column; gap:8px; font-weight:700}
input, textarea{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.22);
  color:var(--text);
  outline:none;
}
input:focus, textarea:focus{border-color: rgba(242,181,68,.55)}
.form__actions{display:flex; align-items:center; gap:12px; margin-top:12px; flex-wrap:wrap}

.footer{
  border-top:1px solid var(--stroke);
  background: rgba(11,15,20,.6);
  padding:22px 0;
}
.footer__inner{display:flex; align-items:center; justify-content:space-between; gap:16px}
.footer__title{font-weight:900}
.footer__links{display:flex; gap:14px; color:var(--muted); font-weight:700; font-size:14px}
.footer__links a:hover{color:var(--text)}

@media (max-width: 980px){
  h1{font-size:36px}
  .hero__inner{grid-template-columns: 1fr; padding-top:10px}
  .cards3{grid-template-columns:1fr}
  .rules{grid-template-columns:1fr}
  .staff{grid-template-columns:1fr}
  .grid2{grid-template-columns:1fr}
  .burger{display:inline-block}
  .nav{
    display:none;
    position:absolute;
    top:64px;
    right:20px;
    left:20px;
    padding:12px;
    border:1px solid var(--stroke);
    background: rgba(11,15,20,.92);
    border-radius: 16px;
    flex-direction:column;
    align-items:stretch;
  }
  .nav.is-open{display:flex}
  .nav a{padding:10px 10px; border-radius:12px}
  .nav a:hover{background: rgba(255,255,255,.04)}
}

.map-preview {
  margin-top: 24px;
  text-align: center;
}

.map-preview img {
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}

.map-preview p {
  margin-top: 10px;
}

/* Animation apparition au scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect des préférences d’accessibilité */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__logo {
  max-height: 64px;
  width: auto;
}

/* Mobile */
@media (max-width: 768px) {
  .brand__logo {
    width: 56px;
    height: 56px;
  }
}

.brand__logo {
  filter: drop-shadow(0 0 8px rgba(242,181,68,0.35));
}

.ptable td {
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(233,238,245,.92);
}
.ptable th { color: rgba(233,238,245,.85); font-weight: 800; font-size: 13px; }
.ptable tr:hover td { background: rgba(255,255,255,.03); }

.userbox{
  display:flex;
  align-items:center;
  gap:10px;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.02);
}

.userbox__avatar{
  width:36px;
  height:36px;
  border-radius: 12px;
  object-fit: cover;
}

.userbox__meta{
  line-height: 1.1;
}

.userbox__name{
  font-weight: 900;
}

@media (max-width: 768px){
  .userbox__meta{ display:none; } /* garde juste l’avatar + bouton */
  .userbox__btn{ padding:10px 12px; }
}

.toast{
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(15,15,18,.95);
  color: #fff;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: all .35s ease;
  z-index: 9999;
}
.toast.show{ opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success{ border: 1px solid rgba(80,200,120,.5); }
.toast.error{ border: 1px solid rgba(220,80,80,.5); }

