/* =====================================================================
   SITE PUBLIC – Mafia Airsoft Team
   Même langage visuel que le panel admin (ui.css) : cartes sombres,
   bordures fines, accents rouges, boutons sobres, icônes au trait.
   - En-tête et pied de page : utilisés aussi sur les pages admin.
   - Tout le reste est limité aux pages publiques (body.s-site).
   ===================================================================== */

/* Polices hébergées sur le site (pas d'appel à Google : RGPD + rapidité). Licence : css/fonts/OFL-*.txt */
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('fonts/orbitron-variable.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/rajdhani-regular.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/rajdhani-medium.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/rajdhani-semibold.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/rajdhani-bold.woff2') format('woff2'); }

:root {
    --primary: #dc2626;
    --primary-dark: #991b1b;
    --primary-light: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --info: #06b6d4;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 8px;
    --s-bg: #0a0a0a;
    --s-surface: #151515;
    --s-border: #2a2a2a;
    --s-text: #e5e5e5;
    --s-muted: #a3a3a3;
    --s-dim: #8a8a8a;
    --s-header-h: 64px;
}

/* =====================================================================
   EN-TÊTE (toutes les pages)
   ===================================================================== */
.s-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.s-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(10, 10, 10, 0.94);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(220, 38, 38, 0.35);
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
}
.s-header-inner { display: flex; align-items: center; gap: 1rem; height: var(--s-header-h); }
.s-header *, .s-footer * { box-sizing: border-box; }

.s-brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; min-width: 0; flex-shrink: 0; }
.s-brand img { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.55), 0 0 18px rgba(220, 38, 38, 0.25); display: block; }
.s-brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.s-brand-name {
    font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 0.92rem; letter-spacing: 1.5px;
    text-transform: uppercase; color: #fff; white-space: nowrap;
}
.s-brand-tag { font-size: 0.72rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--primary-light); font-weight: 600; }

.s-nav { display: flex; align-items: center; gap: 0.15rem; margin-left: 1.25rem; }
.s-nav-link {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.45rem 0.8rem; border-radius: var(--radius-md); border: 1px solid transparent;
    color: #a3a3a3; text-decoration: none; font-weight: 600; font-size: 1rem; white-space: nowrap;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.s-nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.s-nav-link.is-active { color: #fff; background: rgba(220, 38, 38, 0.15); border-color: rgba(220, 38, 38, 0.45); }
.s-nav-link .a-ico { color: currentColor; opacity: 0.85; }
.s-nav-link.is-active .a-ico { color: var(--primary-light); opacity: 1; }

.s-header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.s-user {
    display: inline-flex; align-items: center; gap: 0.5rem; max-width: 220px;
    padding: 0.2rem 0.75rem 0.2rem 0.2rem; border-radius: 999px; border: 1px solid #333; background: #161616;
    color: #e5e5e5; text-decoration: none; font-weight: 700; font-size: 0.95rem;
}
.s-user:hover { border-color: rgba(220, 38, 38, 0.6); color: #fff; }
.s-user.is-active { border-color: rgba(220, 38, 38, 0.6); background: rgba(220, 38, 38, 0.12); }
.s-user span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-avatar {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
    background: #262626; color: var(--primary-light); font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 0.8rem;
}
.s-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.s-burger {
    display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center;
    border-radius: var(--radius-md); border: 1px solid #333; background: #161616; color: #fff; cursor: pointer; padding: 0;
}
.s-burger[aria-expanded="true"] { border-color: var(--primary); background: rgba(220, 38, 38, 0.15); }
.s-mobile-menu { display: none; }

@media (max-width: 960px) {
    .s-nav-link { padding: 0.45rem 0.6rem; }
    .s-user { max-width: 160px; }
}
@media (max-width: 900px) {
    .s-wrap { padding: 0 1rem; }
    .s-nav, .s-header-actions { display: none; }
    .s-burger { display: inline-flex; }
    .s-brand-name { font-size: 0.85rem; letter-spacing: 1.2px; }
    .s-mobile-menu:not([hidden]) {
        display: block; position: absolute; left: 0; right: 0; top: 100%;
        background: #0d0d0d; border-bottom: 1px solid rgba(220, 38, 38, 0.35);
        box-shadow: 0 18px 34px rgba(0, 0, 0, 0.7);
        max-height: calc(100vh - var(--s-header-h)); overflow-y: auto;
        padding: 0.6rem 1rem 1rem;
    }
    .s-mobile-links { display: flex; flex-direction: column; gap: 0.15rem; }
    .s-mobile-links a {
        display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 0.8rem;
        border-radius: var(--radius-md); color: #e5e5e5; text-decoration: none; font-weight: 600; font-size: 1.08rem;
    }
    .s-mobile-links a .a-ico { color: var(--primary-light); }
    .s-mobile-links a.is-active { background: rgba(220, 38, 38, 0.15); color: #fff; }
    .s-mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.6rem; padding-top: 0.8rem; border-top: 1px solid #222; }
    .s-mobile-actions .a-btn { min-height: 46px; font-size: 1rem; }
    .s-mobile-user { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.8rem 0.8rem; color: #fff; font-weight: 700; border-bottom: 1px solid #222; margin-bottom: 0.4rem; }
}
@media (max-width: 380px) {
    .s-brand-tag { display: none; }
    .s-brand-name { font-size: 0.78rem; }
}

/* =====================================================================
   PIED DE PAGE (toutes les pages)
   ===================================================================== */
.s-footer {
    margin-top: 3.5rem; background: #080808; border-top: 1px solid rgba(220, 38, 38, 0.35);
    color: #a3a3a3; font-family: 'Rajdhani', 'Segoe UI', sans-serif; font-size: 1rem; line-height: 1.55;
}
.s-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2rem; }
.s-footer h2 { margin: 0 0 0.8rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; font-family: 'Rajdhani', sans-serif; }
.s-footer p { margin: 0; }
.s-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.s-footer a { color: #d4d4d4; text-decoration: none; }
.s-footer a:hover { color: #fff; text-decoration: underline; }
.s-footer li { display: flex; align-items: center; gap: 0.55rem; }
.s-footer li .a-ico, .s-footer-note .a-ico { color: var(--primary-light); }
.s-footer-brand .s-brand { margin-bottom: 0.9rem; }
.s-footer-motto { color: var(--primary-light); font-family: 'Orbitron', sans-serif; font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; margin-top: 0.6rem !important; }
.s-footer-note { display: flex; gap: 0.55rem; align-items: flex-start; margin-top: 1rem !important; padding: 0.7rem 0.85rem; border: 1px solid #1f1f1f; border-radius: var(--radius-lg); background: #0e0e0e; font-size: 0.93rem; }
.s-footer-bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.5rem;
    border-top: 1px solid #1a1a1a; padding-top: 1.1rem; padding-bottom: 1.4rem; font-size: 0.9rem; color: #8a8a8a;
}
.s-footer-legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.s-footer-legal a { color: #a3a3a3; }
.s-footer-credit { display: inline-flex; align-items: center; gap: 0.45rem; }
.s-footer-credit img { width: 18px; height: auto; display: inline-block; border-radius: 2px; }
@media (max-width: 760px) {
    .s-footer { margin-top: 2.5rem; }
    .s-footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1.25rem; padding-top: 2rem; padding-bottom: 1.5rem; }
    .s-footer-brand { grid-column: 1 / -1; }
    .s-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   BASE DES PAGES PUBLIQUES
   ===================================================================== */
.s-site {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    font-family: 'Rajdhani', 'Segoe UI', 'Roboto Condensed', sans-serif; font-size: 17px; line-height: 1.55;
    color: var(--s-text); background-color: var(--s-bg);
    background-image:
        radial-gradient(1100px 500px at 15% -10%, rgba(220, 38, 38, 0.10), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(220, 38, 38, 0.05), transparent 60%);
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}
.s-site *, .s-site *::before, .s-site *::after { box-sizing: border-box; }
.s-site main { flex: 1 0 auto; padding-top: 2rem; }
:where(.s-site) :where(h1, h2, h3, h4) { margin: 0; color: #fff; line-height: 1.2; font-weight: 700; }
:where(.s-site) p { margin: 0; }
:where(.s-site) p + p { margin-top: 0.75rem; }
.s-site img { max-width: 100%; height: auto; }
:where(.s-site) a { color: var(--primary-light); text-underline-offset: 3px; }
:where(.s-site) a:hover { color: #f87171; }
.s-site :focus-visible { outline: 2px solid var(--primary-light); outline-offset: 2px; }
:where(.s-site) strong { color: #fff; font-weight: 700; }
.s-site ::selection { background: rgba(220, 38, 38, 0.45); color: #fff; }
.s-site [hidden] { display: none !important; }
.s-site .a-card-head h2 { font-size: 1.05rem; }
.s-site .a-page-head h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); letter-spacing: 0.3px; }
.s-site .a-page-head .a-sub { font-size: 1.02rem; }
.s-site .a-btn { text-decoration: none; }
.s-site .a-btn-primary, .s-site .a-btn-primary:hover { color: #fff; }
.s-site .a-btn:not(.a-btn-primary):not(.a-btn-danger):not(.a-btn-ok) { color: #e5e5e5; }
.a-btn-lg { min-height: 48px; padding: 0.7rem 1.35rem; font-size: 1.02rem; }
.a-btn[disabled], .a-btn.is-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.s-site .a-link { font-size: inherit; }
.s-site .a-meta { font-size: 1rem; }
/* Cartes rangées en grille : pas de marge en plus de l'espacement de la grille */
.s-site :is(.s-features, .s-blog-grid, .s-events, .s-kpis, .a-grid, .s-event-layout, .s-order-layout) > .a-card { margin-top: 0; }
.s-site .s-stack > * + * { margin-top: 1rem; }
.s-stack > * + * { margin-top: 1.25rem; }
.s-muted { color: var(--s-muted); }
.s-small { font-size: 0.9rem; }
.s-center { text-align: center; }
.s-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) {
    .s-site { font-size: 16.5px; }
    .s-site main { padding-top: 1.1rem; }
}

/* ---------- Messages ---------- */
.s-site .alert {
    display: block; position: relative; padding: 0.8rem 1rem; margin: 0 0 1rem;
    border: 1px solid; border-radius: var(--radius-lg); font-weight: 600; line-height: 1.45;
}
.s-site .alert-success { color: #bbf7d0; background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.4); }
.s-site .alert-error   { color: #fecaca; background: rgba(220, 38, 38, 0.1); border-color: rgba(220, 38, 38, 0.5); }
.s-site .alert-info    { color: #cffafe; background: rgba(6, 182, 212, 0.08); border-color: rgba(6, 182, 212, 0.35); }
.s-site .alert-warning { color: #fde68a; background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.4); }
.s-site .alert a { color: #fff; text-decoration: underline; }
.s-site .alert.has-close { padding-right: 2.6rem; }
.s-alert-close {
    position: absolute; top: 0.45rem; right: 0.45rem; width: 30px; height: 30px; border: 0; border-radius: var(--radius-md);
    background: transparent; color: inherit; opacity: 0.7; cursor: pointer; font-size: 1.2rem; line-height: 1;
}
.s-alert-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.06); }

/* ---------- Formulaires ---------- */
.s-form { display: block; }
.s-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; min-width: 0; }
.s-field > label, .s-label { font-weight: 700; color: #e5e5e5; font-size: 0.95rem; }
.s-field .s-req { color: var(--primary-light); }
.s-site input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="color"]),
.s-site select, .s-site textarea {
    width: 100%; min-height: 46px; padding: 0.65rem 0.85rem;
    background: #101010; color: #fff; border: 1px solid #353535; border-radius: var(--radius-md);
    font: inherit; font-size: 16px; line-height: 1.4;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.s-site textarea { min-height: 110px; resize: vertical; }
.s-site select { cursor: pointer; }
.s-site input:focus, .s-site select:focus, .s-site textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.22); }
.s-site input::placeholder, .s-site textarea::placeholder { color: #6b6b6b; }
.s-site input[disabled] { opacity: 0.6; cursor: not-allowed; }
.s-site input[type="file"] { color: #a3a3a3; font: inherit; max-width: 100%; }
.s-hint { color: var(--s-dim); font-size: 0.88rem; line-height: 1.4; }
.s-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.s-form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 0.75rem; }
@media (max-width: 600px) { .s-form-row, .s-form-row-3 { grid-template-columns: 1fr; } }
.s-check { display: flex; align-items: flex-start; gap: 0.65rem; margin: 0.25rem 0 1rem; }
.s-check input { width: 20px; height: 20px; margin: 0.15rem 0 0; flex-shrink: 0; accent-color: var(--primary); cursor: pointer; }
.s-check label { color: #d4d4d4; font-weight: 500; font-size: 0.97rem; line-height: 1.45; cursor: pointer; }
.s-form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 0.5rem; }
.s-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Titres de section ---------- */
.s-section { margin-top: 2.5rem; }
.s-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.s-section-head h2 {
    display: flex; align-items: center; gap: 0.55rem; font-size: 1.25rem; letter-spacing: 1px; text-transform: uppercase;
}
.s-section-head h2 .a-ico { color: var(--primary-light); }
.s-section-head .s-sub { color: var(--s-muted); margin-top: 0.2rem; width: 100%; }

/* ---------- Pastilles ---------- */
.s-chip {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.75rem; border-radius: 999px;
    background: #161616; border: 1px solid #2f2f2f; color: #e5e5e5; font-weight: 600; font-size: 0.95rem; text-decoration: none;
}
.s-chip .a-ico { color: var(--primary-light); }
a.s-chip:hover { border-color: rgba(220, 38, 38, 0.6); color: #fff; }

/* =====================================================================
   ACCUEIL
   ===================================================================== */
.s-hero {
    position: relative; overflow: hidden; border-radius: var(--radius-xl); border: 1px solid #262626;
    min-height: 440px; display: flex; align-items: flex-end; background: #111;
}
.s-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.s-hero-logo { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 460px; max-width: none; opacity: 0.12; filter: grayscale(0.2); }
.s-hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.6) 55%, rgba(10, 10, 10, 0.25) 100%),
                linear-gradient(0deg, rgba(10, 10, 10, 0.9) 0%, transparent 55%);
}
.s-hero-content { position: relative; z-index: 1; padding: 2.75rem; max-width: 720px; }
.s-kicker {
    display: inline-flex; align-items: center; gap: 0.45rem; color: var(--primary-light);
    font-weight: 700; text-transform: uppercase; letter-spacing: 1.8px; font-size: 0.82rem;
}
.s-hero h1 {
    font-family: 'Orbitron', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px;
    font-size: clamp(1.9rem, 6vw, 3.3rem); line-height: 1.08; margin: 0.6rem 0 0.8rem;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}
.s-lead { color: #d4d4d4; font-size: 1.18rem; max-width: 580px; }
.s-hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
@media (max-width: 760px) {
    .s-hero { min-height: 0; border-radius: var(--radius-lg); }
    .s-hero-content { padding: 1.6rem 1.25rem 1.4rem; }
    .s-hero-logo { width: 300px; right: -90px; top: 35%; }
    .s-hero::after { background: linear-gradient(0deg, rgba(10, 10, 10, 0.95) 20%, rgba(10, 10, 10, 0.55) 100%); }
    .s-hero-actions .a-btn { flex: 1 1 100%; }
    .s-lead { font-size: 1.05rem; }
}

/* Prochaine partie mise en avant */
.s-next { position: relative; overflow: hidden; border-color: rgba(220, 38, 38, 0.45); padding: 1.5rem; }
.s-next::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), transparent); }
.s-next-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.s-next-title { font-size: clamp(1.4rem, 4vw, 2rem); margin: 0.35rem 0 0.6rem; }
.s-next-title a { color: #fff; text-decoration: none; }
.s-next-title a:hover { color: var(--primary-light); }
.s-next-desc { color: #d4d4d4; margin-top: 0.75rem; }
.s-next-side { display: flex; flex-direction: column; gap: 0.75rem; }
@media (max-width: 860px) { .s-next-grid { grid-template-columns: 1fr; } .s-next { padding: 1.2rem; } }

/* Galerie défilante */
.s-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 31%); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.6rem; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.s-strip::-webkit-scrollbar { height: 6px; }
.s-strip::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
.s-photo { scroll-snap-align: start; margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid #262626; background: #111; display: flex; flex-direction: column; }
.s-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.s-photo figcaption { padding: 0.8rem 0.95rem 0.95rem; }
.s-photo figcaption strong { display: block; color: #fff; font-size: 1.02rem; }
.s-photo figcaption span { display: block; color: var(--s-muted); font-size: 0.93rem; margin-top: 0.2rem; }
.s-strip-nav { display: flex; gap: 0.4rem; }
@media (max-width: 760px) { .s-strip { grid-auto-columns: 82%; } }

/* L'association */
.s-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.s-feature { padding: 1.25rem; }
.s-feature-ico { width: 44px; height: 44px; border-radius: var(--radius-lg); display: inline-flex; align-items: center; justify-content: center; background: rgba(220, 38, 38, 0.12); border: 1px solid rgba(220, 38, 38, 0.35); color: var(--primary-light); margin-bottom: 0.8rem; }
.s-feature h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.s-feature p { color: var(--s-muted); }
.s-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
@media (max-width: 860px) { .s-features { grid-template-columns: 1fr; } }

/* =====================================================================
   PARTIES : liste
   ===================================================================== */
.s-events { display: flex; flex-direction: column; gap: 1rem; }
.s-event { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 1.25rem; align-items: start; padding: 1.25rem; }
.s-event:hover { border-color: #3a3a3a; }
.s-date {
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none;
    width: 86px; padding: 0.6rem 0.3rem; border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(220, 38, 38, 0.95), rgba(127, 29, 29, 0.95)); color: #fff;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.25);
}
.s-date-wd { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; font-weight: 700; }
.s-date-day { font-family: 'Orbitron', sans-serif; font-size: 1.9rem; font-weight: 800; line-height: 1.05; }
.s-date-month { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.s-site a.s-date, .s-site a.s-date:hover { color: #fff; }
.s-event-top { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem 0.75rem; margin-bottom: 0.35rem; }
.s-event-title { font-size: 1.35rem; }
.s-event-title a { color: #fff; text-decoration: none; }
.s-event-title a:hover { color: var(--primary-light); }
.s-event-desc { color: #c9c9c9; margin-top: 0.55rem; }
.s-event-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem 1rem; margin-top: 0.9rem; }
.s-team-mini { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.92rem; color: #d4d4d4; min-width: 0; }
.s-team-mini-name { display: flex; justify-content: space-between; gap: 0.5rem; }
.s-team-mini-name span:first-child { display: inline-flex; align-items: center; gap: 0.4rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; display: inline-block; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06); }
.s-event-cta { display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem; min-width: 190px; text-align: center; }
.s-price { font-family: 'Orbitron', sans-serif; font-weight: 800; color: #fff; font-size: 1.35rem; line-height: 1.1; }
.s-price small { display: block; font-family: 'Rajdhani', sans-serif; font-weight: 600; color: var(--s-muted); font-size: 0.85rem; }
.s-places { color: var(--s-muted); font-size: 0.92rem; }
@media (max-width: 860px) {
    .s-event { grid-template-columns: 64px minmax(0, 1fr); gap: 0.9rem; padding: 1rem; }
    .s-date { width: 64px; padding: 0.45rem 0.2rem; }
    .s-date-day { font-size: 1.45rem; }
    .s-date-wd, .s-date-month { font-size: 0.72rem; }
    .s-event-title { font-size: 1.18rem; }
    .s-event-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; min-width: 0; border-top: 1px solid #242424; padding-top: 0.8rem; }
    .s-event-cta .a-btn { flex: 0 0 auto; }
}
@media (max-width: 420px) { .s-event-cta { flex-wrap: wrap; } .s-event-cta .a-btn { flex: 1 1 100%; } }

.s-past { padding: 0.4rem 1.25rem; }
.s-past .a-row { padding: 0.75rem 0; }
.s-past-date { font-family: 'Orbitron', sans-serif; color: var(--primary-light); font-weight: 700; font-size: 0.9rem; min-width: 96px; }
.s-empty { text-align: center; padding: 2.25rem 1rem; color: var(--s-muted); }
.s-empty .a-ico { color: #4a4a4a; margin-bottom: 0.5rem; }
.s-empty p + .a-btn, .s-empty p + .s-form-actions { margin-top: 1rem; }

/* =====================================================================
   PARTIE : détail
   ===================================================================== */
.s-back { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--s-muted); text-decoration: none; font-weight: 600; margin-bottom: 0.9rem; }
.s-site a.s-back:hover { color: #fff; }
.s-event-hero { position: relative; overflow: hidden; padding: 1.75rem; border-color: rgba(220, 38, 38, 0.4); }
.s-event-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), transparent 80%); }
.s-event-hero h1 { font-size: clamp(1.7rem, 5.5vw, 2.6rem); margin: 0.4rem 0 1rem; }
.s-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.s-fact { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.8rem 0.9rem; background: #121212; border: 1px solid #262626; border-radius: var(--radius-lg); min-width: 0; }
.s-fact > .a-ico { color: var(--primary-light); margin-top: 0.15rem; }
.s-fact-label { display: block; color: var(--s-dim); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; }
.s-fact-value { display: block; color: #fff; font-weight: 700; font-size: 1.02rem; overflow-wrap: anywhere; }
.s-fact-value a { color: var(--primary-light); font-weight: 700; }
@media (max-width: 960px) { .s-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .s-event-hero { padding: 1.2rem; } .s-facts { gap: 0.5rem; } .s-fact { padding: 0.7rem; gap: 0.5rem; } .s-fact > .a-ico { display: none; } }
@media (max-width: 340px) { .s-facts { grid-template-columns: 1fr; } }

.s-event-layout {
    display: grid; gap: 1.25rem; margin-top: 1.25rem; align-items: start;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
    grid-template-areas: "main book" "main roster";
}
.s-area-main { grid-area: main; }
.s-area-book { grid-area: book; }
.s-area-roster { grid-area: roster; }
@media (min-width: 1025px) { .s-area-book { position: sticky; top: calc(var(--s-header-h) + 1rem); } }
@media (max-width: 1024px) {
    .s-event-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "book" "main" "roster"; }
}
.s-prose { color: #dcdcdc; font-size: 1.05rem; line-height: 1.7; overflow-wrap: anywhere; }
.s-prose p + p { margin-top: 0.9rem; }
.s-prose ul, .s-prose ol { padding-left: 1.3rem; margin: 0.6rem 0; }
.s-prose li + li { margin-top: 0.3rem; }
.s-prose h2 { margin: 1.4rem 0 0.6rem; font-size: 1.3rem; }
.s-prose h3 { margin: 1.1rem 0 0.4rem; font-size: 1.12rem; }
.s-quote { border-left: 3px solid var(--primary); padding: 0.2rem 0 0.2rem 1rem; }

/* Bloc de réservation */
.s-book { border-color: rgba(220, 38, 38, 0.4); }
.s-book-price { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.25rem; }
.s-book-price .s-price { font-size: 1.7rem; }
.s-book-note { display: flex; gap: 0.5rem; align-items: flex-start; color: var(--s-muted); font-size: 0.92rem; margin-top: 0.8rem; }
.s-book-note .a-ico { color: #4ade80; margin-top: 0.15rem; }
.s-status { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.9rem; border-radius: var(--radius-lg); border: 1px solid rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.07); margin-bottom: 1rem; }
.s-status > .a-ico { color: #4ade80; margin-top: 0.1rem; }
.s-status strong { display: block; }
.s-status .s-status-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.s-status.is-closed { border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.07); }
.s-status.is-closed > .a-ico { color: #fbbf24; }
.s-team-pick { display: flex; flex-direction: column; gap: 0.5rem; }
.s-team-btn {
    display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; align-items: center; gap: 0.35rem 0.8rem;
    width: 100%; padding: 0.75rem 0.9rem 0.75rem 0; border-radius: var(--radius-lg);
    border: 1px solid #333; background: #141414; color: #fff; font: inherit; text-align: left; cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.1s; overflow: hidden;
}
.s-team-btn:hover:not([disabled]) { border-color: var(--primary); background: rgba(220, 38, 38, 0.1); }
.s-team-btn:active:not([disabled]) { transform: scale(0.99); }
.s-team-btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.s-team-stripe { grid-row: 1 / span 2; align-self: stretch; border-radius: 0 3px 3px 0; margin: -0.75rem 0; }
.s-team-name { font-weight: 700; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-team-count { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 0.9rem; color: #fff; white-space: nowrap; }
.s-team-btn .a-progress { grid-column: 2 / span 2; }
.s-team-full { color: #fbbf24; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.5px; text-transform: uppercase; }

/* Joueurs inscrits */
.s-roster-team + .s-roster-team { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #222; }
.s-roster-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.6rem; font-weight: 700; color: #fff; }
.s-roster-head span:first-child { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; }
.s-roster-count { font-family: 'Orbitron', sans-serif; font-size: 0.85rem; color: var(--s-muted); }
.s-players { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.s-player { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.2rem 0.65rem 0.2rem 0.2rem; border-radius: 999px; background: #161616; border: 1px solid #2a2a2a; font-weight: 600; font-size: 0.93rem; color: #e5e5e5; max-width: 100%; }
.s-player .s-avatar { width: 26px; height: 26px; font-size: 0.7rem; }
.s-player-guest .s-avatar { color: #a3a3a3; }
.s-roster-empty { color: var(--s-dim); font-size: 0.93rem; font-style: italic; }

/* =====================================================================
   BLOG
   ===================================================================== */
.s-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.s-post { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s, transform 0.2s; }
.s-post:hover { border-color: rgba(220, 38, 38, 0.5); transform: translateY(-2px); }
.s-post-img { display: block; aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: #111; }
.s-placeholder {
    position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; width: 100%; overflow: hidden;
    background: radial-gradient(circle at 30% 20%, rgba(220, 38, 38, 0.35), transparent 55%), linear-gradient(135deg, #1c0a0a 0%, #0c0c0c 100%);
}
.s-placeholder img { width: 34%; max-width: 140px; opacity: 0.55; border-radius: 50%; }
.s-post-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.s-post-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; color: var(--s-dim); font-size: 0.9rem; }
.s-post-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.s-post h2 { font-size: 1.25rem; }
.s-post h2 a { color: #fff; text-decoration: none; }
.s-post h2 a::after { content: ''; position: absolute; inset: 0; }
.s-post { position: relative; }
.s-post p { color: #c9c9c9; }
.s-post-more { margin-top: auto; padding-top: 0.4rem; color: var(--primary-light); font-weight: 700; display: inline-flex; align-items: center; gap: 0.3rem; }

.s-article { max-width: 780px; margin: 0 auto; }
.s-article-head h1 { font-size: clamp(1.7rem, 5.5vw, 2.6rem); margin: 0.2rem 0 0.8rem; }
.s-article-cover { margin: 1.25rem 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid #262626; }
.s-article-cover img { width: 100%; display: block; }
.s-article .s-prose { font-size: 1.12rem; }
.s-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.6rem; }
.s-gallery button { padding: 0; border: 1px solid #262626; border-radius: var(--radius-md); overflow: hidden; background: #111; cursor: zoom-in; }
.s-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform 0.25s; }
.s-gallery button:hover img { transform: scale(1.04); }
.s-lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); max-height: 94vh; }
.s-lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
.s-lightbox img { max-width: 100%; max-height: 82vh; display: block; margin: 0 auto; border-radius: var(--radius-md); }
.s-lightbox p { color: #e5e5e5; text-align: center; margin-top: 0.6rem; }
.s-lightbox-bar { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.75rem; }

/* =====================================================================
   COMPTE : connexion, inscription, mots de passe
   ===================================================================== */
.s-auth { max-width: 480px; margin: 0 auto; }
.s-auth-wide { max-width: 620px; }
.s-auth .a-card { padding: 1.75rem; }
.s-auth-head { text-align: center; margin-bottom: 1.4rem; }
.s-auth-head img { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 0.75rem; display: block; box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.55), 0 0 24px rgba(220, 38, 38, 0.25); }
.s-auth-head h1 { font-size: 1.7rem; }
.s-auth-head p { color: var(--s-muted); margin-top: 0.3rem; }
.s-auth-links { text-align: center; margin-top: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; color: var(--s-muted); }
.s-auth-links a { font-weight: 700; }
.s-divider { border: 0; border-top: 1px solid #262626; margin: 1.25rem 0; }
@media (max-width: 520px) { .s-auth .a-card { padding: 1.25rem; } }

/* =====================================================================
   ESPACE JOUEUR, RÉSERVATION
   ===================================================================== */
.s-kv { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid #222; }
.s-kv:first-child { border-top: 0; padding-top: 0; }
.s-kv > span:first-child { color: var(--s-muted); flex-shrink: 0; }
.s-kv > span:last-child, .s-kv > strong { color: #fff; font-weight: 700; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.s-mygame { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 0.9rem 0; border-top: 1px solid #222; }
.s-mygame:first-child { border-top: 0; padding-top: 0; }
.s-mygame:last-child { padding-bottom: 0; }
.s-mygame .s-date { width: 64px; padding: 0.45rem 0.2rem; }
.s-mygame .s-date-day { font-size: 1.45rem; }
.s-mygame .s-date-wd, .s-mygame .s-date-month { font-size: 0.72rem; }
.s-mygame h3 { font-size: 1.12rem; }
.s-mygame h3 a { color: #fff; text-decoration: none; }
.s-mygame-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
    .s-mygame { grid-template-columns: 56px minmax(0, 1fr); }
    .s-mygame .s-date { width: 56px; }
    .s-mygame-actions { grid-column: 1 / -1; justify-content: stretch; }
    .s-mygame-actions .a-btn { flex: 1 1 0; }
}
.s-toggle-card { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.s-guest { padding: 1rem; border: 1px solid #262626; border-radius: var(--radius-lg); background: #121212; }
.s-guest + .s-guest { margin-top: 0.75rem; }
.s-guest-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.s-guest-head h3 { font-size: 1.08rem; display: flex; align-items: center; gap: 0.5rem; }
.s-guest .s-field { margin-bottom: 0.6rem; }
.s-actions-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 520px) { .s-actions-row .a-btn { flex: 1 1 100%; } }
.s-danger-zone { border-color: rgba(220, 38, 38, 0.35); }

/* Tableaux des pages publiques */
.s-site .rtable td, .s-site .rtable th { font-size: 0.97rem; }
@media (max-width: 860px) { .s-site .a-card:has(> .rtable) { background: none; border: 0; box-shadow: none; padding: 0; } }

/* =====================================================================
   PAGES LÉGALES, 404
   ===================================================================== */
.s-legal { max-width: 860px; margin: 0 auto; }
.s-legal .s-legal-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%); border: 1px solid #2a2a2a; border-radius: var(--radius-lg);
    padding: 1.4rem 1.5rem; margin-top: 1rem;
}
.s-legal .s-legal-section h2 { font-size: 1.15rem; margin-bottom: 0.7rem; color: #fff; }
.s-legal .s-legal-section h3 { font-size: 1.02rem; margin: 1rem 0 0.4rem; }
.s-legal .s-legal-section p, .s-legal .s-legal-section li { color: #d4d4d4; line-height: 1.7; }
.s-legal .s-legal-section ul, .s-legal .s-legal-section ol { padding-left: 1.3rem; margin: 0.5rem 0; }
.s-legal-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
@media (max-width: 520px) { .s-legal .s-legal-section { padding: 1.1rem; } }

.s-404 { text-align: center; padding: 3rem 0 1rem; max-width: 560px; margin: 0 auto; }
.s-404-code { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: clamp(4.5rem, 18vw, 8rem); line-height: 1; color: var(--primary); text-shadow: 0 0 40px rgba(220, 38, 38, 0.35); }
.s-404 h1 { margin: 0.5rem 0 0.6rem; font-size: 1.6rem; }
.s-404 p { color: var(--s-muted); }
.s-404 .s-form-actions { justify-content: center; margin-top: 1.5rem; }

/* Impression (billets, réservation) */
@media print {
    .s-header, .s-footer, .s-burger, .s-mobile-menu { display: none !important; }
    .s-site { background: #fff !important; color: #000 !important; }
}

/* Liens sous les formulaires de compte */
.s-auth-link { text-align: center; color: var(--s-muted); margin-top: 0.9rem; }
.s-auth-link a { font-weight: 700; }
.s-auth .s-form .a-btn-block { margin-top: 0.5rem; }

/* Réservation : récapitulatif à côté des participants (au-dessus sur mobile) */
.s-order-layout {
    display: grid; gap: 1.25rem; align-items: start;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
    grid-template-areas: "main side";
}
.s-order-layout > .s-area-main { grid-area: main; min-width: 0; }
.s-order-layout > .s-area-side { grid-area: side; min-width: 0; }
@media (max-width: 1024px) { .s-order-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; } }
.s-kv strong a { color: var(--primary-light); }
.s-kv .s-dot { vertical-align: middle; margin-right: 0.2rem; }

/* Chiffres clés sur petit écran (3 côte à côte) */
@media (max-width: 520px) {
    .s-site .a-kpi { padding: 0.7rem 0.75rem; }
    .s-site .a-kpi-label { font-size: 0.72rem; letter-spacing: 0.3px; }
    .s-site .a-kpi-label .a-ico { display: none; }
}

/* Bouton « Choisir un fichier » aux couleurs du site */
.s-site input[type="file"]::file-selector-button {
    margin-right: 0.75rem; padding: 0.5rem 0.9rem; border-radius: var(--radius-md); border: 1px solid #3a3a3a;
    background: #1c1c1c; color: #e5e5e5; font: inherit; font-weight: 600; cursor: pointer;
}
.s-site input[type="file"]::file-selector-button:hover { border-color: var(--primary); color: #fff; }
