/* Unanim RP — site vitrine. Theme « Los Santos au crepuscule » (11/2026).
   Noir et or du logo, ciel de coucher de soleil, titres en italique condense,
   boutons inclines comme le bandeau du logo.
   Regle : l'or ne porte jamais de texte blanc ; sur fond or, texte fonce. */

:root {
    --bg-900: #0b0a08;
    --bg-850: #100e0b;
    --bg-800: #14110c;
    --bg-700: #221c14;
    --line: #3d3427;
    --line-soft: rgba(255, 255, 255, 0.07);
    --line-gold: rgba(229, 171, 76, 0.38);

    --gold: #e5ab4c;          /* or principal du logo */
    --gold-hi: #f8cc6b;       /* or vif */
    --gold-pale: #fce697;     /* or clair */
    --bronze: #a56c27;
    --amber: #c88935;
    /* anciens noms, encore lus par certaines regles */
    --orange: var(--gold);
    --orange-400: #f0bf5f;
    --orange-700: var(--bronze);
    --gold-300: var(--gold-pale);

    --text: #f6f1e6;
    --text-2: #d9d1c1;
    --muted: #a39d92;
    --success: #3cb371;
    --on-accent: #120e08;
    --accent-soft: rgba(229, 171, 76, 0.14);

    --font-display: 'Anton', Impact, 'Arial Narrow', sans-serif;
    --font-cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --skew: -12deg;
    --radius: 4px;
    --radius-card: 6px;
    --gutter: clamp(16px, 4vw, 32px);
    --maxw: 1240px;
    --header-h: 72px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-900);
    color: var(--text-2);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { color: var(--text); margin: 0; line-height: 1.1; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 2px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
    position: fixed; left: 16px; top: -60px; z-index: 100;
    padding: 10px 16px; border-radius: var(--radius);
    background: var(--gold); color: var(--on-accent); font-weight: 700; text-decoration: none;
    transition: top 160ms var(--ease-out);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 20px; height: 20px; flex-shrink: 0; }

/* Titre condense en italique, base de tous les grands titres */
.display {
    font-family: var(--font-display); font-weight: 400; font-style: italic;
    text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.98;
}

/* ------------------------------------------------------------ Boutons (inclines) */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 26px;
    border-radius: 0; border: 2px solid transparent;
    font-family: var(--font-cond); font-size: 19px; font-weight: 800; font-style: italic;
    text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none;
    cursor: pointer; white-space: nowrap;
    transform: skewX(var(--skew));
    transition: transform 160ms var(--ease-out), box-shadow 200ms, background-color 200ms, border-color 200ms, color 200ms;
}
.btn:hover { transform: skewX(var(--skew)) translateY(-2px); }
.btn:active { transform: skewX(var(--skew)) translateY(1px); }
.btn-primary {
    background: linear-gradient(100deg, var(--gold-hi) 0%, var(--gold) 100%);
    color: var(--on-accent);
    box-shadow: 0 10px 28px rgba(229, 171, 76, 0.32);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(229, 171, 76, 0.5); }
.btn-ghost { background: rgba(11, 10, 8, 0.45); border-color: var(--text); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold-hi); color: var(--gold-pale); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 16px; }
.btn .ic { width: 18px; height: 18px; }
.btn .ic-discord { width: 20px; height: 20px; }

/* Etiquette inclinee (sur-titres) */
.kicker, .eyebrow {
    display: inline-block; margin-bottom: 16px;
    padding: 6px 14px;
    transform: skewX(var(--skew));
    background: rgba(11, 10, 8, 0.72); border-left: 4px solid var(--gold);
    font-family: var(--font-cond); font-size: 15px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-pale);
}

/* ------------------------------------------------------------ En-tete */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    height: var(--header-h);
    transition: background-color 240ms, border-color 240ms, box-shadow 240ms;
    border-bottom: 1px solid transparent;
}
.site-header.solid,
.page-inner .site-header {
    background: rgba(11, 10, 8, 0.94);
    border-bottom-color: var(--line-gold);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { height: 44px; width: auto; }
.brand span {
    font-family: var(--font-display); font-style: italic; font-size: 26px; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--text); line-height: 1;
}
.brand em { color: var(--gold); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; padding: 0 12px;
    color: var(--text-2); font-family: var(--font-cond); font-size: 18px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none;
    transition: color 160ms, box-shadow 160ms;
}
.nav a:not(.btn):hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -3px 0 var(--gold); }
.nav a .ic { width: 15px; height: 15px; opacity: 0.7; }
.nav .btn { margin-left: 12px; }

.menu-btn {
    display: none; width: 44px; height: 44px; border-radius: var(--radius);
    background: rgba(11, 10, 8, 0.5); border: 1px solid var(--line-gold); color: var(--text);
    align-items: center; justify-content: center; cursor: pointer;
}
.menu-btn .ic { width: 22px; height: 22px; }
.menu-btn .ic-close { display: none; }

@media (max-width: 960px) {
    .menu-btn { display: inline-flex; }
    .nav {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        padding: 12px var(--gutter) 22px;
        background: rgba(11, 10, 8, 0.98); border-bottom: 1px solid var(--line-gold);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
    }
    .nav a:not(.btn) { min-height: 50px; font-size: 20px; }
    .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); padding-left: 16px; }
    .nav .btn { margin: 12px 8px 0; }
    .site-header.open { background: rgba(11, 10, 8, 0.98); border-bottom-color: var(--line-gold); }
    .site-header.open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .site-header.open .menu-btn .ic-menu { display: none; }
    .site-header.open .menu-btn .ic-close { display: block; }
}

/* ------------------------------------------------------------ Hero : Los Santos au crepuscule */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: min(100svh, 920px);
    display: flex; align-items: center;
    padding: calc(var(--header-h) + 48px) 0 250px;
    background: linear-gradient(180deg, #07060a 0%, #1c1209 36%, #6e4313 64%, #c88935 82%, var(--gold) 100%);
}
.hero-sun { /* soleil couchant derriere la ville */
    position: absolute; z-index: -1; left: 64%; bottom: 120px;
    width: min(420px, 70vw); aspect-ratio: 1; transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-pale) 0%, var(--gold-hi) 38%, rgba(248, 204, 107, 0) 70%);
    animation: sunGlow 8s ease-in-out infinite;
}
@keyframes sunGlow { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }

.skyline { position: absolute; left: 0; right: 0; bottom: -1px; z-index: -1; width: 100%; height: 260px; }
.skyline .far { fill: #2a1c0e; }
.skyline .near, .skyline .palms path { fill: var(--bg-900); }
.skyline .palms path[fill="none"] { fill: none; stroke: var(--bg-900); }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; z-index: -1; background: linear-gradient(180deg, rgba(11, 10, 8, 0), var(--bg-900)); }

.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; }
.hero-text { flex: 999 1 560px; min-width: 0; }
.hero .eyebrow { animation: rise 800ms var(--ease-out) both; }
.hero-title {
    font-family: var(--font-display); font-weight: 400; font-style: italic;
    text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.95;
    font-size: clamp(52px, 7.2vw, 108px); color: var(--text);
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.5); text-wrap: balance;
    animation: rise 800ms 100ms var(--ease-out) both;
}
.hero-title span { display: block; color: var(--gold-hi); }
.hero-lead {
    max-width: 560px; margin-top: 22px;
    font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: #ece4d3; text-wrap: pretty;
    animation: rise 800ms 200ms var(--ease-out) both;
}
.hero-cta {
    display: flex; flex-wrap: wrap; gap: 16px;
    margin-top: 34px; padding-left: 8px;
    animation: rise 800ms 300ms var(--ease-out) both;
}
.hero-cta .btn { min-height: 58px; padding: 0 30px; font-size: 21px; }
.hero-logo {
    flex: 1 1 320px; width: min(420px, 80vw); max-width: 100%; height: auto;
    filter: drop-shadow(0 22px 50px rgba(0, 0, 0, 0.6));
    animation: rise 900ms 150ms var(--ease-out) both;
}

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ Bandeau en direct */
.stats-band { position: relative; z-index: 3; margin-top: -54px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat-card {
    display: block; padding: 22px 28px;
    transform: skewX(-8deg);
    background: var(--bg-800); border: 1px solid var(--line-gold);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    text-decoration: none; transition: border-color 200ms, transform 200ms var(--ease-out);
}
a.stat-card:hover { border-color: var(--gold-hi); transform: skewX(-8deg) translateY(-2px); }
.stat-value, .stat-label { display: flex; transform: skewX(8deg); }
.stat-value {
    font-family: var(--font-display); font-style: italic; font-size: clamp(32px, 3.4vw, 42px);
    line-height: 1.05; color: var(--gold-hi); font-variant-numeric: tabular-nums;
}
.stat-label {
    align-items: center; gap: 10px; margin-top: 6px;
    font-family: var(--font-cond); font-size: 16px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-2);
}
.stat-label .dot { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(60, 179, 113, 0.2); }
.stat-label .dot.off { background: var(--muted); box-shadow: 0 0 0 4px rgba(163, 157, 146, 0.18); }

/* ------------------------------------------------------------ Sections */
.section { padding: clamp(72px, 9vw, 112px) 0; position: relative; }
.section-alt { background: var(--bg-850); }
.section-head { max-width: 820px; margin: 0 auto clamp(36px, 5vw, 52px); text-align: center; }
.section-head-left { margin-left: 0; text-align: left; }
.section-head h2 {
    font-family: var(--font-display); font-weight: 400; font-style: italic; text-transform: uppercase;
    font-size: clamp(42px, 6vw, 76px); letter-spacing: 0.01em; line-height: 0.98; text-wrap: balance;
}
.section-head h2 span { color: var(--gold-hi); }
.section-head p { max-width: 620px; margin: 16px auto 0; font-size: 18px; text-wrap: pretty; }
.section-head-left p { margin-left: 0; }

/* Etapes pour rejoindre */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step {
    position: relative; display: flex; flex-direction: column;
    padding: 26px 28px 28px;
    background: var(--bg-800); border: 1px solid var(--line-soft); border-top: 3px solid var(--gold);
}
.step-num { font-family: var(--font-display); font-style: italic; font-size: 72px; line-height: 0.9; color: var(--gold-hi); }
.step h3 { margin-top: 12px; font-family: var(--font-cond); font-size: 27px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.02em; }
.step p { margin-top: 8px; flex: 1; }
.step .step-link {
    display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
    min-height: 44px; margin-top: 18px; padding: 0 2px;
    font-family: var(--font-cond); font-size: 18px; font-weight: 800; font-style: italic;
    text-transform: uppercase; letter-spacing: 0.04em; color: var(--text); text-decoration: none;
    border-bottom: 2px solid var(--gold);
    transition: border-color 160ms, gap 160ms, color 160ms;
}
.step .step-link:hover { color: var(--gold-pale); border-color: var(--gold-hi); gap: 12px; }
.step .step-link .ic { width: 17px; height: 17px; }

/* Choisis ta voie */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.path {
    background: var(--bg-800); border: 1px solid var(--line-soft); overflow: hidden;
    transition: border-color 200ms, transform 200ms var(--ease-out);
}
.path:hover { border-color: var(--line-gold); transform: translateY(-3px); }
.path-head {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 40px 18px 24px;
    background: linear-gradient(100deg, var(--gold-hi) 0%, var(--gold) 45%, var(--bronze) 100%);
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
    color: var(--on-accent);
}
.path-head .ic { width: 24px; height: 24px; }
.path-head h3 { font-family: var(--font-cond); font-size: 25px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.02em; color: var(--on-accent); }
.path p { padding: 18px 24px 26px; font-size: 16px; }

/* Gouvernance */
.civic {
    position: relative; padding: clamp(110px, 12vw, 150px) 0;
    background: var(--bg-800);
    clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
}
.civic-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; }
.civic-text { flex: 999 1 480px; min-width: 0; }
.civic-text h2 {
    font-family: var(--font-display); font-weight: 400; font-style: italic; text-transform: uppercase;
    font-size: clamp(46px, 6.4vw, 84px); line-height: 0.96; letter-spacing: 0.01em; text-wrap: balance;
}
.civic-text p { max-width: 520px; margin-top: 18px; font-size: 18px; }
.civic-text .btn { margin: 30px 0 0 8px; }
.civic-steps { flex: 1 1 380px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.civic-steps li {
    display: flex; align-items: center; gap: 20px;
    padding: 18px 24px; background: var(--bg-900); border: 1px solid var(--line-gold);
}
.civic-steps .n { font-family: var(--font-display); font-style: italic; font-size: 46px; line-height: 1; color: var(--gold-hi); }
.civic-steps b { display: block; font-family: var(--font-cond); font-size: 27px; font-weight: 800; font-style: italic; text-transform: uppercase; color: var(--text); line-height: 1.1; }
.civic-steps li > span:last-child { font-size: 15.5px; line-height: 1.45; }
.pillars-wrap { margin-top: clamp(56px, 7vw, 84px); }
.pillars-title {
    font-family: var(--font-display); font-weight: 400; font-style: italic; text-transform: uppercase;
    font-size: clamp(32px, 4vw, 46px); letter-spacing: 0.01em;
}
.pillars { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pillar {
    padding: 18px 18px 20px; background: var(--bg-900); border: 1px solid rgba(229, 171, 76, 0.25);
    font-family: var(--font-cond); font-size: 19px; font-weight: 700; line-height: 1.2;
    text-transform: uppercase; letter-spacing: 0.02em; color: var(--text);
}
.pillar .n { display: block; margin-bottom: 8px; font-family: var(--font-display); font-style: italic; font-size: 34px; line-height: 1; color: var(--gold-hi); }

/* Espace joueur */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature {
    padding: 26px 26px 28px;
    background: var(--bg-800); border: 1px solid var(--line-soft);
    transition: border-color 200ms, transform 200ms var(--ease-out);
}
.feature:hover { border-color: var(--line-gold); transform: translateY(-2px); }
.feature-ic {
    width: 50px; height: 50px; display: grid; place-items: center;
    transform: skewX(var(--skew));
    background: var(--accent-soft); color: var(--gold-hi);
    box-shadow: inset 0 0 0 1px var(--line-gold);
}
.feature-ic .ic { width: 24px; height: 24px; transform: skewX(12deg); }
.feature h3 { margin-top: 18px; font-family: var(--font-cond); font-size: 25px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.02em; }
.feature p { margin-top: 8px; font-size: 16px; }

.section-actions { display: flex; justify-content: center; margin-top: clamp(30px, 4vw, 44px); }

/* Appel final */
.finale { padding: clamp(72px, 9vw, 110px) 0 clamp(80px, 10vw, 120px); text-align: center; }
.finale-inner { display: flex; flex-direction: column; align-items: center; }
.finale img { width: 120px; height: 120px; filter: drop-shadow(0 14px 34px rgba(229, 171, 76, 0.3)); }
.finale h2 {
    margin-top: 18px; font-family: var(--font-display); font-weight: 400; font-style: italic; text-transform: uppercase;
    font-size: clamp(40px, 6vw, 72px); letter-spacing: 0.01em; line-height: 1; text-wrap: balance;
}
.finale p { margin-top: 12px; max-width: 520px; font-size: 18px; }
.finale .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 30px; }

/* Bandeau d'appel (autres pages) */
.cta-band {
    position: relative; overflow: hidden; isolation: isolate;
    padding: clamp(40px, 6vw, 60px) clamp(24px, 5vw, 56px);
    border: 1px solid var(--line-gold);
    background: linear-gradient(110deg, var(--bg-800) 0%, var(--bg-700) 60%, #3a2510 100%);
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-band h2 { font-family: var(--font-display); font-weight: 400; font-style: italic; text-transform: uppercase; font-size: clamp(34px, 4.6vw, 54px); letter-spacing: 0.01em; line-height: 1; text-wrap: balance; }
.cta-band p { margin-top: 10px; max-width: 460px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 16px; flex-shrink: 0; }

/* ------------------------------------------------------------ Pied de page */
.site-footer { background: #070605; border-top: 1px solid var(--line-gold); padding: 36px 0 30px; font-size: 15px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-nav a {
    display: inline-flex; align-items: center; min-height: 44px;
    font-family: var(--font-cond); font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-2); text-decoration: none;
}
.footer-nav a:hover { color: var(--gold-pale); }
.footer-bottom { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------ Page interne (reglement, VIP, 404) */
.page-hero {
    position: relative; isolation: isolate; overflow: hidden;
    padding: calc(var(--header-h) + clamp(48px, 7vw, 80px)) 0 clamp(44px, 6vw, 68px);
    background: linear-gradient(180deg, #07060a 0%, #1c1209 55%, #4a3014 100%);
    border-bottom: 3px solid var(--gold);
}
.page-hero h1 { font-family: var(--font-display); font-weight: 400; font-style: italic; text-transform: uppercase; font-size: clamp(50px, 8vw, 92px); letter-spacing: 0.01em; line-height: 0.95; }
.page-hero .meta { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--text-2); font-size: 16px; }
.page-hero .meta span { display: inline-flex; align-items: center; gap: 8px; }
.page-hero .meta .ic { width: 17px; height: 17px; color: var(--gold-hi); }

/* Reglement */
.rules-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 8vw, 96px); }
.rules-layout[hidden] { display: none; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
.toc-title { font-family: var(--font-cond); font-size: 14px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc a {
    display: flex; gap: 10px; align-items: baseline;
    padding: 9px 12px; border-radius: var(--radius);
    color: var(--text-2); font-size: 15.5px; text-decoration: none; line-height: 1.35;
    transition: color 160ms, background-color 160ms;
}
.toc a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.toc a.active { color: var(--text); background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--gold); }
.toc a .n { font-weight: 700; color: var(--gold-hi); font-variant-numeric: tabular-nums; min-width: 1.4em; }
.toc-mobile { display: none; }

.rules-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; }
.search { position: relative; flex: 1; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input {
    width: 100%; min-height: 50px; padding: 0 16px 0 44px;
    border-radius: var(--radius); border: 1px solid var(--line);
    background: var(--bg-800); color: var(--text); font-size: 16px;
    transition: border-color 160ms, box-shadow 160ms;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-count { font-size: 14px; color: var(--muted); white-space: nowrap; }

.rule-section { padding-bottom: 12px; margin-bottom: 40px; }
.rule-section[hidden] { display: none; }
.rule-section > h2 {
    display: flex; align-items: baseline; gap: 14px;
    font-family: var(--font-display); font-weight: 400; font-style: italic; text-transform: uppercase;
    font-size: clamp(32px, 4vw, 44px); letter-spacing: 0.01em; line-height: 1.05;
    padding-bottom: 14px; margin-bottom: 18px; border-bottom: 2px solid var(--line-gold);
}
.rule-section > h2 .n { color: var(--gold-hi); }
.rule-section > .intro { margin-bottom: 18px; }
.rule {
    position: relative;
    padding: 18px 20px; margin-bottom: 10px;
    border-radius: var(--radius-card); background: var(--bg-800); border: 1px solid var(--line-soft);
}
.rule[hidden] { display: none; }
.rule:target, .rule.targeted { border-color: var(--gold); box-shadow: 0 0 0 3px var(--accent-soft); }
.rule.preamble { margin-bottom: 36px; }
.rule h3 { display: flex; align-items: baseline; gap: 10px; padding-right: 44px; font-size: 18px; font-weight: 700; }
.rule h3 .n { color: var(--gold-hi); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.rule-body { margin-top: 8px; }
.rule-body > * + * { margin-top: 10px; }
.prose p { text-wrap: pretty; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; }
.prose li + li { margin-top: 4px; }
.prose li::marker { color: var(--gold-hi); }
.prose strong { color: var(--text); font-weight: 700; }
.prose code { padding: 1px 6px; border-radius: 4px; background: var(--bg-700); font-size: 0.92em; }
.prose a { color: var(--gold-pale); text-underline-offset: 3px; }
.prose blockquote { margin: 0; padding: 12px 16px; border-left: 3px solid var(--gold); background: rgba(248, 204, 107, 0.06); color: var(--text); }
.prose .small { font-size: 13px; color: var(--muted); }
.prose mark { background: rgba(248, 204, 107, 0.28); color: var(--text); border-radius: 3px; padding: 0 2px; }
.copy-link {
    position: absolute; top: 10px; right: 10px;
    width: 40px; height: 40px; display: grid; place-items: center;
    border-radius: var(--radius); border: 0; background: transparent; color: var(--muted); cursor: pointer;
    opacity: 0; transition: opacity 160ms, color 160ms, background-color 160ms;
}
.copy-link .ic { width: 17px; height: 17px; }
.rule:hover .copy-link, .copy-link:focus-visible { opacity: 1; }
.copy-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
@media (hover: none) { .copy-link { opacity: 1; } }

.no-results { padding: 40px 20px; text-align: center; border-radius: var(--radius-card); border: 1px dashed var(--line); }
.no-results[hidden] { display: none; }

/* Apercu du panel (page ouverte dans un cadre, ?apercu) : ni en-tete ni pied de page */
.is-preview .site-header, .is-preview .site-footer, .is-preview .to-top, .is-preview .skip { display: none; }
.is-preview .page-hero { padding-top: clamp(28px, 5vw, 48px); }
.is-preview .toc { top: 24px; max-height: calc(100vh - 48px); }
.is-preview .rule.editing { border-color: var(--gold); }

.empty-state {
    max-width: 560px; margin: clamp(48px, 8vw, 88px) auto clamp(72px, 10vw, 120px); text-align: center;
    display: flex; flex-direction: column; align-items: center;
}
.empty-state[hidden] { display: none; }
.empty-state .feature-ic { width: 64px; height: 64px; }
.empty-state .feature-ic .ic { width: 30px; height: 30px; }
.empty-state h2 { margin-top: 22px; font-size: 24px; font-weight: 700; }
.empty-state p { margin-top: 10px; }
.empty-state .btn { margin-top: 26px; }

.toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 80;
    transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    padding: 12px 18px; border-radius: var(--radius); background: var(--bg-700); border: 1px solid var(--line-gold);
    color: var(--text); font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    transition: opacity 200ms, transform 200ms var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 40;
    width: 48px; height: 48px; display: grid; place-items: center;
    border-radius: 50%; border: 1px solid var(--line-gold); background: var(--bg-800); color: var(--text); cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 200ms, transform 200ms var(--ease-out), visibility 0s linear 200ms, border-color 160ms;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { border-color: var(--gold-hi); }

/* Page 404 */
.notfound {
    min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center;
    padding: calc(var(--header-h) + 32px) var(--gutter) 64px;
    background: linear-gradient(180deg, #07060a 0%, #1c1209 60%, #4a3014 100%);
}
.notfound .code { font-family: var(--font-display); font-style: italic; font-size: clamp(110px, 22vw, 200px); line-height: 0.9; color: var(--gold-hi); text-shadow: 0 10px 40px rgba(229, 171, 76, 0.35); }
.notfound h1 { margin-top: 8px; font-family: var(--font-cond); font-size: 32px; font-weight: 800; font-style: italic; text-transform: uppercase; }
.notfound p { margin-top: 10px; }
.notfound .btn { margin-top: 30px; }

/* ------------------------------------------------------------ Apparition au defilement */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ Abonnement VIP (/boutique/vip) */
.wrap-narrow { max-width: 860px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.plan {
    display: flex; flex-direction: column; gap: 18px;
    padding: 28px 28px 26px;
    background: var(--bg-800); border: 1px solid var(--line-soft); border-top: 3px solid var(--line);
    transition: border-color 200ms, transform 200ms var(--ease-out);
}
.plan:hover { border-color: var(--line-gold); transform: translateY(-2px); }
.plan-featured { border-color: var(--line-gold); border-top-color: var(--gold); box-shadow: 0 0 40px rgba(229, 171, 76, 0.12); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan-head h3 { font-family: var(--font-display); font-weight: 400; font-style: italic; text-transform: uppercase; font-size: 40px; letter-spacing: 0.01em; line-height: 1; }
.plan-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
    transform: skewX(var(--skew));
    background: rgba(248, 204, 107, 0.14); color: var(--gold-pale);
    font-family: var(--font-cond); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.plan-badge .ic { width: 14px; height: 14px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price b { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 58px; line-height: 1; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--muted); font-size: 15px; }
.perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.perks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 16px; }
.perks .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--success); flex-shrink: 0; }
.plan-cta { width: 100%; }
.facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.facts li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: var(--bg-800); border: 1px solid var(--line-soft); font-size: 15px; color: var(--text-2); }
.facts .ic { width: 22px; height: 22px; flex-shrink: 0; color: var(--gold-hi); margin-top: 1px; }
.facts b { display: block; color: var(--text); margin-bottom: 4px; }
.already { margin-top: 28px; text-align: center; color: var(--text-2); }
.already a { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-pale); font-weight: 600; text-decoration: none; text-underline-offset: 3px; }
.already a:hover { text-decoration: underline; }
.already .ic { width: 17px; height: 17px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--bg-800); border: 1px solid var(--line-soft); }
.faq details[open] { border-color: var(--line-gold); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 700; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 18px; height: 18px; color: var(--gold-hi); flex-shrink: 0; transition: transform 200ms; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq p { padding: 0 20px 18px; color: var(--text-2); text-wrap: pretty; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1080px) {
    .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .steps { grid-template-columns: 1fr; }
    .paths, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta-band { flex-direction: column; align-items: flex-start; }
    .rules-layout { grid-template-columns: 1fr; }
    .toc { display: none; }
    .toc-mobile { display: block; margin-bottom: 20px; border-radius: var(--radius-card); border: 1px solid var(--line); background: var(--bg-800); }
    .toc-mobile summary {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        min-height: 52px; padding: 0 16px; cursor: pointer; list-style: none;
        font-weight: 700; color: var(--text);
    }
    .toc-mobile summary::-webkit-details-marker { display: none; }
    .toc-mobile summary .ic { transition: transform 200ms; }
    .toc-mobile[open] summary .ic { transform: rotate(180deg); }
    .toc-mobile ol { list-style: none; margin: 0; padding: 0 8px 10px; }
    .toc-mobile a { display: flex; gap: 10px; padding: 11px 10px; border-radius: var(--radius); color: var(--text-2); text-decoration: none; }
    .toc-mobile a .n { font-weight: 700; color: var(--gold-hi); min-width: 1.4em; }
    .plans, .facts { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .hero { padding-bottom: 210px; }
    .hero-logo { order: -1; width: min(260px, 64vw); flex-basis: auto; margin: 0 auto; }
    .stats { grid-template-columns: 1fr; gap: 10px; }
    .stats-band { margin-top: -40px; }
    .civic { clip-path: polygon(0 1.5%, 100% 0, 100% 98.5%, 0 100%); }
    .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .paths, .features { grid-template-columns: 1fr; }
    .skyline { height: 170px; }
    .hero-cta { flex-direction: column; align-items: stretch; padding: 0 8px; }
    .hero-cta .btn, .finale .actions .btn { width: 100%; }
    .finale .actions { align-self: stretch; flex-direction: column; padding: 0 8px; }
    .cta-band .actions { width: 100%; flex-direction: column; }
    .cta-band .actions .btn { width: 100%; }
    .footer-top { flex-direction: column; align-items: flex-start; }
    .rules-tools { flex-direction: column; align-items: stretch; gap: 8px; }
    .rule { padding: 16px; }
    .pillar { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}
