:root {
    --bg: #0b0e0c;
    --bg-2: #10140f;
    --surface: #151a13;
    --surface-2: #1b2118;
    --text: #e9ece6;
    --muted: #99a091;
    --accent: #9bbb45;
    --accent-2: #d7a13a;
    --border: #262c20;
    --font-display: "Oswald", "Segoe UI", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
    --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navbar ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    z-index: 100;
    background: transparent;
    transition: background .3s ease, border-color .3s ease;
    border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
    background: rgba(11, 14, 12, 0.9);
    border-bottom-color: var(--border);
    backdrop-filter: blur(8px);
}
.nav__inner {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav__brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 2px;
    color: var(--text);
    text-decoration: none;
}
.nav__brand span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: .5px;
    transition: color .2s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__left { display: flex; align-items: center; gap: 14px; }

/* ---------- Bouton hamburger ---------- */
.nav__burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 9px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}
.nav__burger:hover { background: rgba(255, 255, 255, 0.05); }
.nav__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Menu lateral (drawer) ---------- */
.drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 280px;
    max-width: 82vw;
    background: var(--surface);
    border-right: 1px solid var(--border);
    z-index: 1200;
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.16, .84, .44, 1);
    display: flex;
    flex-direction: column;
    padding: 20px;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.drawer__title {
    font-family: var(--font-display);
    letter-spacing: 4px;
    color: var(--accent);
    font-size: 1.2rem;
}
.drawer__close {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
}
.drawer__close:hover { color: var(--text); }
.drawer__nav { display: flex; flex-direction: column; gap: 4px; }
.drawer__nav a {
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-display);
    letter-spacing: 1px;
    padding: 14px 12px;
    border-radius: 6px;
    transition: background .2s ease, color .2s ease;
}
.drawer__nav a:hover { background: var(--surface-2); color: var(--accent); }

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

body.drawer-open { overflow: hidden; }

/* ---------- Bouton Compte (haut a droite) ---------- */
.nav__account {
    font-family: var(--font-display);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color .2s ease, color .2s ease;
}
.nav__account:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Page compte ---------- */
.account { max-width: 520px; }
.account__card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
}
.account__hello { font-size: 1.1rem; }
.account__row { color: var(--muted); margin-bottom: 20px; }
.account__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }

.account__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.account__infos { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.account__infos li { display: flex; align-items: center; gap: 10px; color: var(--text); flex-wrap: wrap; }
.account__label {
    min-width: 140px;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 1px;
}
.account__infos a { color: var(--accent); }

/* Badge de role */
.role {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
}
.role--visiteur { color: var(--muted); }
.role--candidat_refuse { color: #e05f5f; border-color: #e05f5f; }
.role--candidat { color: var(--accent-2); border-color: var(--accent-2); }
.role--membre { color: var(--accent); border-color: var(--accent); background: rgba(155, 187, 69, 0.12); }
.role--recruteur { color: #63b3ed; border-color: #63b3ed; background: rgba(99, 179, 237, 0.12); }
.role--admin { color: #f6c453; border-color: #f6c453; background: rgba(246, 196, 83, 0.14); }

/* Lien discret facon texte (ex : "Mot de passe oublie ?") */
.account__link {
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    margin-top: 16px;
    color: var(--accent-2);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}
.account__link:hover { color: var(--accent); }

/* Lien retour (pages changer email / mot de passe) */
.account__back {
    display: inline-block;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 18px;
    transition: color .2s ease;
}
.account__back:hover { color: var(--accent); }

/* Sections depliables (ancien, conserve au cas ou) */
.account__section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 22px;
    margin-top: 16px;
}
.account__section summary {
    cursor: pointer;
    padding: 18px 0;
    font-family: var(--font-display);
    letter-spacing: 1px;
    color: var(--text);
    list-style: none;
}
.account__section summary::-webkit-details-marker { display: none; }
.account__section summary::before { content: "+ "; color: var(--accent); font-weight: 700; }
.account__section[open] summary::before { content: "\2212 "; }
.account__section .form { padding-bottom: 22px; max-width: 100%; }

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.badge--ok { background: rgba(155, 187, 69, 0.18); color: var(--accent); }
.badge--warn { background: rgba(224, 122, 95, 0.18); color: #e07a5f; }
.badge--discord { background: rgba(88, 101, 242, 0.2); color: #8b94f5; }

.account__tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.account__tab {
    background: transparent;
    border: none;
    color: var(--muted);
    font-family: var(--font-display);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.account__tab:hover { color: var(--text); }
.account__tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }

.form-msg { margin-top: 16px; color: #e07a5f; font-size: 0.9rem; }
.form-msg--ok { color: var(--accent); }

/* Separateur "ou" (entre connexion classique et Discord) */
.account__or {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 18px 0;
}
.account__or::before, .account__or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Champ verrouille (ex : pseudo Discord recupere automatiquement) */
input.is-locked {
    background: rgba(88, 101, 242, 0.08) !important;
    border-color: #5865F2 !important;
    color: var(--muted);
    cursor: not-allowed;
}

/* ---------- Page admin : liste des candidatures ---------- */
.admin-key {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    max-width: 520px;
    margin-bottom: 8px;
}
.admin-key .field { flex: 1; min-width: 220px; }

.cand-list {
    margin-top: 28px;
    display: grid;
    gap: 18px;
}
.cand-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px 24px;
}
.cand-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.cand-card__head h3 {
    font-family: var(--font-display);
    letter-spacing: 1px;
    font-size: 1.2rem;
    color: var(--accent);
}
.cand-card__date { color: var(--muted); font-size: 0.85rem; }
.cand-card__email { color: var(--muted); font-size: 0.9rem; margin: 4px 0 16px; }
.cand-card__body {
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}
.cand-field {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
}
.cand-field__key {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding-top: 2px;
}
@media (max-width: 620px) {
    .cand-field { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Espaces recrutement / gestion des comptes ---------- */
.mod-count { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }

.mod-search { max-width: 460px; margin-top: 22px; }

.mod-list {
    margin-top: 22px;
    display: grid;
    gap: 12px;
}

/* Chaque candidature / compte : ligne cliquable qui se deplie. */
.mod-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.mod-item[open] { border-color: var(--accent); }

.mod-item__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.mod-item__head::-webkit-details-marker { display: none; }
.mod-item__head:hover { background: rgba(255, 255, 255, 0.02); }

.mod-item__pseudo {
    font-family: var(--font-display);
    letter-spacing: 1px;
    font-size: 1.1rem;
    color: var(--accent);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mod-item__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.mod-item__email { color: var(--muted); font-size: 0.9rem; }
.mod-item__date { color: var(--muted); font-size: 0.85rem; }

.mod-item__chevron {
    color: var(--muted);
    font-size: 1.5rem;
    line-height: 1;
    transition: transform .2s ease;
}
.mod-item[open] .mod-item__chevron { transform: rotate(90deg); color: var(--accent); }

.mod-item__body {
    display: grid;
    gap: 10px;
    padding: 4px 20px 20px;
    border-top: 1px solid var(--border);
}

/* Bloc "espaces reserves" sur la page compte */
.account__mod {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.account__mod-title {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 12px;
}

@media (max-width: 620px) {
    .mod-item__head { flex-wrap: wrap; }
    .mod-item__meta { width: 100%; justify-content: flex-start; }
}

/* Boutons Accepter / Refuser / Supprimer sous une candidature */
.cand-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
/* "Supprimer" : neutre, puis rouge une fois arme (confirmation en deux temps). */
.cand-delete.is-armed { background: #e05f5f; color: #fff; border-color: #e05f5f; }

/* ---------- Candidature A&R (acceptes vert / refuses rouge) ---------- */
.ar-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.ar-dot--ok { background: var(--accent); }
.ar-dot--ko { background: #e05f5f; }

.ar-filters { display: flex; gap: 8px; margin: 20px 0 6px; flex-wrap: wrap; }
.ar-filter {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: var(--font-display);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}
.ar-filter:hover { color: var(--text); }
.ar-filter.is-active { color: var(--accent); border-color: var(--accent); }

/* Bord de couleur selon la decision */
.ar-item--ok { border-left: 3px solid var(--accent); }
.ar-item--ko { border-left: 3px solid #e05f5f; }
.ar-item--ok[open] { border-color: var(--accent); }
.ar-item--ko[open] { border-color: #e05f5f; }

.ar-badge {
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 4px;
}
.ar-item--ok .ar-badge { background: rgba(155, 187, 69, 0.18); color: var(--accent); }
.ar-item--ko .ar-badge { background: rgba(224, 95, 95, 0.18); color: #e05f5f; }

/* ---------- Gestion d'un compte (admin) ---------- */
.account-manage {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}
.account-manage__role { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.account-manage__role label {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    color: var(--muted);
}
.role-select {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
}
.role-select:focus { outline: none; border-color: var(--accent); }
.account-self { color: var(--muted); font-size: 0.85rem; font-style: italic; }
.account-msg { margin-top: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 26px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
    border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 8px 18px; font-size: 0.8rem; }
.btn--lg { padding: 15px 36px; font-size: 1rem; }
.btn--primary {
    background: var(--accent);
    color: #10140f;
    box-shadow: 0 6px 20px rgba(155, 187, 69, 0.25);
}
.btn--primary:hover { background: #aecb54; }
.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--accept {
    background: rgba(155, 187, 69, 0.15);
    color: var(--accent);
    border-color: var(--accent);
}
.btn--accept:hover { background: var(--accent); color: #10140f; }
.btn--refuse {
    background: rgba(224, 95, 95, 0.14);
    color: #e05f5f;
    border-color: #e05f5f;
}
.btn--refuse:hover { background: #e05f5f; color: #fff; }
.btn--refuse.is-armed { background: #e05f5f; color: #fff; }
.btn--discord {
    background: #5865F2;
    color: #fff;
    border-color: #5865F2;
    width: 100%;
    text-align: center;
}
.btn--discord:hover { background: #4752c4; border-color: #4752c4; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    top: -10%; left: 0;
    width: 100%; height: 120%;
    will-change: transform;
    z-index: 1;
}
.hero__svg { width: 100%; height: 100%; display: block; }
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse at 50% 60%, transparent 0%, rgba(11,14,12,0.55) 100%),
        linear-gradient(180deg, rgba(11,14,12,0.6) 0%, transparent 30%, rgba(11,14,12,0.85) 100%);
}
.hero__content { position: relative; z-index: 3; padding: 0 24px; }
.hero__tag {
    font-family: var(--font-display);
    letter-spacing: 5px;
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 18px;
}
.hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3rem, 9vw, 6.5rem);
    letter-spacing: 6px;
    line-height: 1;
    text-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.hero__slogan {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #cfd4c8;
    margin: 20px 0 36px;
    font-weight: 300;
    font-style: italic;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
    position: absolute;
    bottom: 26px; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ---------- Stats strip ---------- */
.stats {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--accent);
}
.stat__label { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Sections ---------- */
.section {
    position: relative;
    padding: 110px 0;
    overflow: hidden;
}
.section--alt { background: var(--bg-2); }
.section__bg {
    position: absolute;
    top: -15%; left: 0;
    width: 100%; height: 130%;
    z-index: 0;
    will-change: transform;
    background:
        radial-gradient(circle at 80% 20%, rgba(155,187,69,0.06), transparent 40%),
        radial-gradient(circle at 15% 80%, rgba(215,161,58,0.05), transparent 40%);
}
.section .container { position: relative; z-index: 1; }
.section__kicker {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 10px;
}
.section__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: 2px;
    margin-bottom: 26px;
}
.lead { font-size: 1.25rem; color: var(--text); max-width: 720px; margin-bottom: 16px; }
.muted { color: var(--muted); max-width: 720px; }

/* ---------- Cards ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px 26px;
    transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); }
.card__icon { font-size: 2rem; color: var(--accent); margin-bottom: 14px; }
.card h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 1.25rem;
    margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Objective / progress ---------- */
.objective {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 32px;
    max-width: 760px;
}
.objective__head {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    font-family: var(--font-display);
    letter-spacing: 1px;
}
.objective__vehicle { color: var(--text); }
.objective__vehicle strong { color: var(--accent); }
.objective__pts { color: var(--accent-2); font-size: 1.1rem; }
.progress {
    height: 14px;
    background: #0c0f0b;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
}
.progress__fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 20px;
    transition: width 1.4s cubic-bezier(.16,.84,.44,1);
}

/* ---------- Join CTA ---------- */
.join {
    position: relative;
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
    border-top: 1px solid var(--border);
}
.join__bg {
    position: absolute;
    top: -15%; left: 0;
    width: 100%; height: 130%;
    z-index: 0;
    will-change: transform;
    background: radial-gradient(ellipse at 50% 50%, rgba(155,187,69,0.10), transparent 60%);
}
.join .container { position: relative; z-index: 1; }
.join__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: 2px;
}
.join__text { color: var(--muted); margin: 14px 0 32px; font-size: 1.1rem; }
.join__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.join__note { color: var(--muted); font-size: 0.85rem; margin-top: 26px; }

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
}
.footer__brand {
    font-family: var(--font-display);
    letter-spacing: 2px;
    font-weight: 600;
}
.footer__brand span { color: var(--accent); }
.footer__muted { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }

/* ---------- Reveal on scroll ---------- */
/* Masque uniquement si le JS est actif : sinon tout reste visible. */
.js .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
    .nav__links a:not(.btn) { display: none; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .cards { grid-template-columns: 1fr; }
}

/* ---------- Transition entre pages ---------- */
/* Etat de repos = cache. L'animation d'entree est un bonus : si elle ne joue
   pas (JS off, navigateur limite), le contenu reste visible. */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pageIn .7s ease;
}
.page-transition::after {
    content: "=PYTON=";
    font-family: var(--font-display);
    letter-spacing: 8px;
    color: var(--accent);
    font-size: 1.6rem;
}
@keyframes pageIn {
    0% { transform: translateY(0); opacity: 1; pointer-events: all; }
    100% { transform: translateY(-100%); opacity: 0; }
}
.page-transition.is-active {
    animation: pageOut .55s ease forwards;
}
@keyframes pageOut {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; pointer-events: all; }
}

/* ---------- Page candidature (/rejoindre) ---------- */
.apply { padding: calc(var(--nav-h) + 60px) 0 100px; min-height: 100vh; }
.apply__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 2px;
    margin: 6px 0 30px;
}
.step { display: none; }
.step.step--active { display: block; animation: stepIn .5s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.apply__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 30px; }
.apply__block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 26px;
}
.apply__block h2 {
    font-family: var(--font-display);
    letter-spacing: 1px;
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 18px;
}
.checklist, .rules { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.rules { counter-reset: r; }
.checklist li, .rules li { color: var(--muted); padding-left: 30px; position: relative; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.rules li { counter-increment: r; }
.rules li::before { content: counter(r) "."; position: absolute; left: 0; color: var(--accent); font-family: var(--font-display); font-weight: 600; }

/* Blocs prerequis / reglement empiles (remplacent apply__cols quand le
   contenu est long) */
.apply__blocks { display: flex; flex-direction: column; gap: 24px; margin-bottom: 30px; }

/* Sous-titre dans un bloc (ex : "Prerequis techniques") */
.rule-sub {
    font-family: var(--font-display);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text);
    font-size: 0.95rem;
    margin: 22px 0 12px;
}
.rule-sub:first-of-type { margin-top: 0; }

/* Une categorie du reglement : titre + lignes */
.rule-group { margin-bottom: 20px; }
.rule-group:last-of-type { margin-bottom: 0; }
.rule-group h3 {
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    color: var(--accent);
    font-size: 1.05rem;
    margin-bottom: 6px;
    padding-left: 14px;
    border-left: 3px solid var(--accent);
}
.rule-group p { color: var(--muted); line-height: 1.55; margin: 2px 0; }

/* Liste des warns */
.warns { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.warns li { color: var(--muted); display: flex; align-items: center; gap: 12px; }
.warn-tag {
    display: inline-block;
    min-width: 74px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(224, 161, 95, 0.18);
    color: #e0a15f;
}
.warn-tag--ban { background: rgba(224, 60, 60, 0.2); color: #e05f5f; }

/* Lignes de cloture + encadre d'avertissement */
.rule-closing { color: var(--text); margin-top: 18px; line-height: 1.55; }
.rule-warning {
    margin-top: 22px;
    padding: 16px 18px;
    border: 1px solid #e05f5f;
    border-radius: 8px;
    background: rgba(224, 60, 60, 0.1);
    color: #f0a0a0;
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    line-height: 1.45;
}

.agree {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    margin: 6px 0 26px;
    cursor: pointer;
    user-select: none;
}
.agree input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }

/* Formulaire */
.form { display: grid; gap: 20px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-display); letter-spacing: .5px; font-size: .95rem; }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 14px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: .95rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
.draft-note { color: var(--muted); font-size: .85rem; margin-bottom: 6px; }

/* ---------- Questions du formulaire de candidature ---------- */
.q {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.q__title { font-family: var(--font-display); letter-spacing: .5px; font-size: 1rem; color: var(--text); }
.q__title .req { color: var(--accent); }
.q__hint { color: var(--muted); font-weight: 400; font-size: .85rem; letter-spacing: 0; }
.q input[type="text"] {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 11px 14px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: .95rem;
}
.q input[type="text"]:focus { outline: none; border-color: var(--accent); }

.opts { display: flex; flex-direction: column; gap: 8px; }
.opt {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    cursor: pointer;
    padding: 4px 0;
}
.opt input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.opt:hover { color: var(--text); }
.opt input:checked ~ span { color: var(--text); }
.form__actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* Modale de confirmation */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    padding: 20px;
}
.modal[hidden] { display: none; }
.modal__box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    max-width: 460px;
    width: 100%;
    text-align: center;
}
.modal__box h3 { font-family: var(--font-display); letter-spacing: 1px; font-size: 1.4rem; margin-bottom: 12px; }
.modal__box p { color: var(--muted); margin-bottom: 26px; }
.modal__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Ecran de succes */
.success { text-align: center; max-width: 660px; margin: 0 auto; }
.success__badge {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--accent);
    color: #10140f;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
}
.success h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: 2px;
    margin-bottom: 14px;
    color: var(--accent);
}
.success p { color: var(--muted); }
.steps-list {
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 26px 28px;
    margin: 30px 0;
    counter-reset: s;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.steps-list li { counter-increment: s; padding-left: 44px; position: relative; color: var(--muted); }
.steps-list li strong { color: var(--text); }
.steps-list li::before {
    content: counter(s);
    position: absolute;
    left: 0; top: 0;
    width: 28px; height: 28px;
    background: var(--accent);
    color: #10140f;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-family: var(--font-display);
}

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

/* ---------- Reveal on scroll ---------- */
/* Masque uniquement si le JS est actif : sinon tout reste visible. */
.js .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero__scroll { animation: none; }
    .page-transition, .step.step--active { animation: none; }
    .drawer, .drawer-backdrop { transition: none; }
    html { scroll-behavior: auto; }
}
