/* ==========================================================================
   Site vitrine
   ========================================================================== */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Aucune barre de défilement horizontale (clip ne crée pas de conteneur de
   scroll : l’épinglage GSAP et position:sticky continuent de fonctionner). */
.site-root, .site { overflow-x: clip; }
.site.is-loading { overflow: hidden; }

.btn-sm { min-height: 40px; padding: .4em 1.1em .35em; font-size: 1rem; }
.btn-xl { min-height: 68px; padding: .6em 2.2em .55em; font-size: 1.6rem; }

.section-title { font-size: clamp(3.2rem, 9vw, 8.5rem); margin: .15em 0 .2em; }
.section-lead { max-width: 34em; color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.3rem); margin: 0; }

/* ---------------- INTRO ---------------- */
.intro {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: var(--ink);
    pointer-events: none;
}
.intro-sun {
    position: absolute;
    width: 46vmin;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--sun), var(--pink));
    transform: scale(0);
    filter: blur(.5px);
}
.intro-logo { position: relative; opacity: 0; }
.site:not(.has-js) .intro { display: none; }

/* ---------------- HEADER ---------------- */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px var(--gutter);
    transition: background .4s, padding .4s, backdrop-filter .4s;
}
.header.is-solid {
    background: rgba(10, 6, 16, .78);
    backdrop-filter: blur(14px);
    padding-block: 8px;
    box-shadow: 0 1px 0 var(--line);
}
.header-logo { text-decoration: none; transition: opacity .35s, transform .35s var(--ease-out); }
.header-logo .logo { font-size: 17px; }
/* Logo masqué tant que le grand titre du hero est visible (doublon). */
.site.has-js .header:not(.show-logo) .header-logo { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.header-nav { display: flex; gap: 28px; margin-left: auto; }
.header-nav a {
    position: relative;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1rem;
}
.header-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 3px;
    background: var(--sunset-x);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .35s var(--ease-out);
}
.header-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 14px; }

.lang { position: relative; }
.lang summary {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    padding: 8px 12px;
    box-shadow: inset 0 0 0 2px var(--line);
}
.lang summary::-webkit-details-marker { display: none; }
.lang ul {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--ink-2);
    box-shadow: 0 0 0 1px var(--line), 0 20px 40px rgba(0, 0, 0, .5);
    min-width: 150px;
}
.lang a { display: block; padding: 8px 12px; text-decoration: none; }
.lang a:hover, .lang a[aria-current] { background: var(--pink); color: #fff; }

/* ---------------- HERO ---------------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: center;
    padding: 120px var(--gutter) 80px;
    overflow: hidden;
    isolation: isolate;
}
.hero-sky {
    position: absolute;
    inset: -10% -10% 0;
    z-index: -5;
    background:
        radial-gradient(ellipse 60% 40% at 70% 62%, rgba(255, 122, 26, .55), transparent 70%),
        var(--sunset);
}
.hero-sky::after { /* étoiles en haut du ciel */
    content: '';
    position: absolute;
    inset: 0 0 50%;
    background-image:
        radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent),
        radial-gradient(1px 1px at 32% 8%, #fff 50%, transparent),
        radial-gradient(1.5px 1.5px at 58% 22%, #fff 50%, transparent),
        radial-gradient(1px 1px at 76% 12%, #fff 50%, transparent),
        radial-gradient(1px 1px at 88% 30%, #fff 50%, transparent),
        radial-gradient(1.5px 1.5px at 22% 34%, #fff 50%, transparent),
        radial-gradient(1px 1px at 46% 4%, #fff 50%, transparent);
    opacity: .7;
}
.hero-sun {
    position: absolute;
    z-index: -4;
    left: 62%;
    bottom: 30%;
    width: min(56vw, 700px);
    aspect-ratio: 1;
    translate: -50% 50%;
}
/* Halo hors du masque (un box-shadow sur l'élément masqué serait rogné en carré). */
.hero-sun::before {
    content: '';
    position: absolute;
    inset: -25%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 26, .5) 35%, rgba(255, 46, 136, .18) 55%, transparent 70%);
}
.hero-sun span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(180deg, #fff3a8 0%, var(--sun) 30%, var(--orange) 58%, var(--pink) 100%);
    /* bandes horizontales "synthwave" dans la moitié basse */
    -webkit-mask: linear-gradient(#000 52%, transparent 52%, transparent 55%, #000 55%, #000 61%, transparent 61%, transparent 65%, #000 65%, #000 70%, transparent 70%, transparent 75%, #000 75%, #000 79%, transparent 79%, transparent 85%, #000 85%, #000 88%, transparent 88%, transparent 95%, #000 95%);
            mask: linear-gradient(#000 52%, transparent 52%, transparent 55%, #000 55%, #000 61%, transparent 61%, transparent 65%, #000 65%, #000 70%, transparent 70%, transparent 75%, #000 75%, #000 79%, transparent 79%, transparent 85%, #000 85%, #000 88%, transparent 88%, transparent 95%, #000 95%);
}
.hero-sea {
    position: absolute;
    inset: auto 0 0;
    height: 30%;
    z-index: -3;
    background: linear-gradient(180deg, #2b0f3f 0%, #120820 60%, var(--ink) 100%);
    box-shadow: 0 -1px 0 rgba(255, 197, 49, .6);
}
.hero-reflect {
    position: absolute;
    left: 62%;
    top: 0;
    width: min(40vw, 520px);
    height: 100%;
    translate: -50% 0;
    background: repeating-linear-gradient(180deg, rgba(255, 197, 49, .85) 0 3px, transparent 3px 11px);
    -webkit-mask: radial-gradient(ellipse 50% 100% at 50% 0, #000 20%, transparent 75%);
            mask: radial-gradient(ellipse 50% 100% at 50% 0, #000 20%, transparent 75%);
    animation: shimmer 3.5s ease-in-out infinite alternate;
}
@keyframes shimmer { to { transform: scaleX(1.25); opacity: .6; } }

.hero-palm { position: absolute; z-index: -2; fill: #0b0412; bottom: 18%; }
.hero-palm--l { left: -4%; height: 92%; transform: rotate(-6deg); transform-origin: bottom; }
.hero-palm--r { right: -6%; height: 74%; transform: scaleX(-1) rotate(-4deg); transform-origin: bottom; }

.hero-art {
    position: absolute;
    z-index: -1;
    right: 2vw;
    bottom: 0;
    width: min(64vw, 900px);
}
.hero-art img {
    width: 100%;
    height: auto;
    /* Pas d'ombre floue ici : le mask la couperait net (rectangle visible). */
    filter: drop-shadow(-12px 0 0 rgba(255, 46, 136, .55));
    -webkit-mask: linear-gradient(#000 82%, transparent);
            mask: linear-gradient(#000 82%, transparent);
}

.hero-copy { position: relative; max-width: 640px; }
.hero-title { margin: .1em 0 0; font-size: clamp(5rem, 15vw, 13rem); }
.hero-line { display: block; }
.hero-line i { color: var(--pink); font-style: italic; }
.hero-line--sun {
    background: linear-gradient(180deg, #fff3a8 0%, var(--sun) 35%, var(--orange) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    /* Texte transparent : le contour et l'ombre passent par des drop-shadow
       (sinon text-shadow se dessine PAR-DESSUS le dégradé). */
    -webkit-text-stroke: 0;
    text-shadow: none;
    filter: drop-shadow(.035em 0 0 #000) drop-shadow(-.035em 0 0 #000) drop-shadow(0 .035em 0 #000) drop-shadow(0 -.035em 0 #000) drop-shadow(.06em .07em 0 #000);
}
.hero-stamp {
    display: inline-block;
    margin: 14px 0 0;
    padding: 6px 14px 4px;
    background: var(--sun);
    color: var(--ink);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    transform: rotate(-3deg);
    box-shadow: 5px 5px 0 #000;
}
.hero-sub {
    max-width: 30em;
    margin: 26px 0 30px;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.hero-sub em, .pitch-text em { font-style: normal; color: var(--sun); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .9rem;
}
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts .ico { color: var(--teal); font-size: 1.05em; }

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 24px;
    translate: -50% 0;
    display: grid;
    justify-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
}
.hero-scroll::after {
    content: '';
    width: 2px;
    height: 44px;
    background: linear-gradient(var(--paper), transparent);
    animation: drip 1.8s var(--ease-snap) infinite;
    transform-origin: top;
}
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------------- BANDEAUX ---------------- */
.tapes { position: relative; z-index: 2; height: 190px; margin-top: -60px; }
.tape {
    position: absolute;
    left: -5vw;
    width: 110vw;
    overflow: hidden;
    padding: 14px 0 10px;
    box-shadow: 0 10px 0 rgba(0, 0, 0, .35);
}
.tape--hot { top: 30px; background: var(--pink); transform: rotate(-3deg); }
.tape--ink { top: 90px; background: var(--ink); color: var(--sun); transform: rotate(2deg); box-shadow: 0 0 0 2px var(--sun); }
.tape-track { display: flex; align-items: center; gap: 28px; width: max-content; will-change: transform; }
.tape-track span { font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1; white-space: nowrap; }
.tape--hot .tape-track span { color: #fff; -webkit-text-stroke: 2px #000; paint-order: stroke fill; }
.tape-ico { width: 1.5rem; height: 1.5rem; }
.tape--hot .tape-ico { color: var(--ink); }
.tape--ink .tape-ico { color: var(--pink); }

/* ---------------- PITCH ---------------- */
.pitch {
    padding: clamp(100px, 16vw, 220px) var(--gutter);
    max-width: 1400px;
    margin: 0 auto;
}
.pitch-text {
    margin: 24px 0 0;
    font-weight: 800;
    font-size: clamp(2rem, 5.2vw, 5rem);
    line-height: 1.02;
    text-transform: uppercase;
}
.pitch-text .word { color: rgba(255, 246, 236, .14); }

/* ---------------- VILLES ---------------- */
.cities { position: relative; overflow: hidden; background: var(--ink-2); }
.cities-track { display: flex; width: max-content; }
.cities-intro, .city {
    flex: 0 0 auto;
    width: 100vw;
    min-height: 100svh;
    padding: 120px var(--gutter) 80px;
    display: grid;
    align-content: center;
}
.cities-intro { width: 70vw; }
.city {
    --accent: var(--pink);
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5vw;
    position: relative;
    isolation: isolate;
}
.city::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse 70% 60% at 30% 50%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%);
}
.city--summercity { --accent: #ff3d8b; }
.city--havanacity { --accent: #ffb627; }
.city--soon { --accent: var(--teal); grid-template-columns: 1fr; }
.city-map { color: var(--accent); }
.city-map svg { width: min(100%, 560px); margin: 0 auto; overflow: visible; }
.city-shape {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px var(--accent)) drop-shadow(0 0 22px var(--accent));
}
.city-shape-fill { fill: var(--accent); opacity: .1; }
.city-ping { fill: #fff; filter: drop-shadow(0 0 10px #fff); animation: ping 1.6s ease-out infinite; transform-origin: 200px 200px; }
@keyframes ping { 0% { transform: scale(.6); } 50% { transform: scale(1.4); } 100% { transform: scale(.6); } }
.city-num { font-weight: 900; font-style: italic; font-size: 1.4rem; color: var(--accent); }
.city-name { font-size: clamp(3.6rem, 10vw, 9.5rem); margin: .05em 0 .1em; }
.city-tag { margin: 0 0 14px; font-weight: 700; font-style: italic; font-size: clamp(1.2rem, 2vw, 1.8rem); color: var(--accent); text-transform: uppercase; }
.city-desc { max-width: 30em; margin: 0 0 28px; color: var(--muted); font-size: 1.15rem; }

/* ---------------- CREW (écran de chargement) ---------------- */
.crew { padding: clamp(100px, 12vw, 180px) var(--gutter); }
.crew-head { max-width: 1400px; margin: 0 auto 56px; }
.crew-grid {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: clamp(220px, 24vw, 340px);
    grid-auto-flow: dense;
    gap: 14px;
}
.card {
    --tone: var(--pink);
    position: relative;
    margin: 0;
    overflow: hidden;
    background:
        repeating-linear-gradient(135deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 9px),
        linear-gradient(160deg, color-mix(in srgb, var(--tone) 85%, #fff) 0%, var(--tone) 55%, color-mix(in srgb, var(--tone) 55%, #000) 100%);
    box-shadow: inset 0 0 0 4px #000;
    transform: skewY(-2deg);
}
.card--pink { --tone: var(--pink); }
.card--violet { --tone: var(--violet); }
.card--orange { --tone: var(--orange); }
.card--teal { --tone: #12b8a5; }
.card--sun { --tone: var(--sun); }
.card--1 { grid-row: span 2; }
.card--4 { grid-column: span 2; }
.card--6 { grid-row: span 2; }
.card--8 { grid-column: span 2; }
.card-art { position: absolute; inset: 8% 0 0; transform: skewY(2deg); }
.card-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(8px 8px 0 rgba(0, 0, 0, .35));
    transition: transform .8s var(--ease-out);
}
.card:hover .card-art img { transform: scale(1.07) translateY(-2%); }
.card figcaption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: grid;
    gap: 4px;
    transform: skewY(2deg);
}
.card strong {
    justify-self: start;
    padding: 4px 10px 2px;
    background: #000;
    color: #fff;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    font-size: clamp(1.1rem, 1.6vw, 1.5rem);
}
.card figcaption span {
    justify-self: start;
    padding: 3px 8px 2px;
    background: var(--paper);
    color: var(--ink);
    font-size: .92rem;
    font-weight: 500;
    max-width: 26ch;
}

/* ---------------- BUSINESS ---------------- */
.biz {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 6vw;
    padding: clamp(100px, 12vw, 180px) var(--gutter);
    max-width: 1500px;
    margin: 0 auto;
}
.biz-head { position: sticky; top: 120px; align-self: start; }
.biz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.biz-item {
    position: relative;
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 22px;
    align-items: start;
    padding: 30px 30px 30px 26px;
    background: var(--ink-2);
    box-shadow: inset 4px 0 0 var(--pink), inset 0 0 0 1px var(--line);
}
.biz-num {
    font-weight: 900;
    font-style: italic;
    font-size: 3.4rem;
    line-height: .8;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--pink);
}
.biz-icon { width: 38px; height: 38px; fill: var(--sun); }
.biz-item h3 { text-wrap: balance; margin: 0 0 6px; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 1.7rem; line-height: 1; }
.biz-item p { margin: 0; color: var(--muted); }

/* ---------------- FINAL ---------------- */
.final {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: end;
    min-height: 92svh;
    padding: 0 var(--gutter);
    overflow: hidden;
    isolation: isolate;
    background: var(--sunset);
}
.final-sun {
    position: absolute;
    z-index: -1;
    left: 30%;
    top: 55%;
    width: 70vmin;
    aspect-ratio: 1;
    translate: -50% -50%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 243, 168, .9), rgba(255, 197, 49, .4) 40%, transparent 70%);
}
.final-art { width: min(100%, 400px); height: auto; justify-self: center; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45)); }
.final-copy { align-self: center; padding: 80px 0; }
.final-title { font-size: clamp(3.4rem, 8vw, 7.5rem); margin: 0 0 20px; }
.final-copy p { max-width: 28em; font-size: 1.3rem; margin: 0 0 32px; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }

/* ---------------- FOOTER ---------------- */
.footer {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 60px var(--gutter) 40px;
    text-align: center;
    color: var(--muted);
    font-size: .95rem;
}
.footer-slogan { margin: -6px 0 0; font-weight: 700; font-style: italic; text-transform: uppercase; color: var(--sun); }
.footer-adult { display: flex; align-items: center; gap: 10px; margin: 0; max-width: 40em; }
.badge-age {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid var(--danger);
    color: var(--paper);
    font-weight: 900;
}
.footer-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.footer-langs a { text-decoration: none; }
.footer-langs a:hover { color: var(--pink); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: .82rem; }
.footer-legal a { color: rgba(255, 255, 255, .6); text-decoration: none; }
.footer-legal a:hover { color: var(--pink); }
.footer-copy { margin: 0; font-size: .85rem; color: var(--dim); }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1000px) {
    .header-nav { display: none; }
    .header-actions { margin-left: auto; }
    .hero { align-items: start; padding-top: 110px; }
    .hero-art { width: 112vw; right: -30vw; opacity: .5; }
    /* Voile sombre derrière le texte : lisible même devant le soleil. */
    .hero-copy::before {
        content: '';
        position: absolute;
        inset: -30px -40px;
        z-index: -1;
        background: radial-gradient(ellipse 70% 60% at 40% 62%, rgba(10, 6, 16, .78), transparent 75%);
        pointer-events: none;
    }
    .hero-sub { text-shadow: 0 1px 2px #000, 0 0 14px rgba(0, 0, 0, .9); }
    .hero-sun { left: 70%; width: 90vw; }
    .hero-reflect { left: 70%; }
    .cities-track { display: block; width: auto; }
    .cities-intro, .city { width: auto; min-height: 0; padding-block: 80px; }
    .city { grid-template-columns: 1fr; }
    .crew-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 300px; }
    .card--4, .card--8 { grid-column: span 2; }
    .card--1, .card--6 { grid-row: span 1; }
    .biz { grid-template-columns: 1fr; }
    .biz-head { position: static; }
    .final { grid-template-columns: 1fr; }
    .final-art { order: 2; width: 70%; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .header-logo .logo { font-size: 15px; }
    .lang summary { padding: 6px 9px; }
    .hero-palm--r { display: none; }
    .tapes { height: 150px; }
    .tape--ink { top: 76px; }
    .crew-grid { grid-template-columns: 1fr; grid-auto-rows: 340px; }
    .card--4, .card--8 { grid-column: span 1; }
    .biz-item { grid-template-columns: auto 1fr; padding: 22px; }
    .biz-icon { display: none; }
    .btn-xl { font-size: 1.25rem; padding-inline: 1.4em; }
}

/* ==========================================================================
   DA « CLASH × GTA » (alignée sur le jeu) — dernière couche, surcharge.
   Boutons 3D à tranche, textes blancs à gros contour, cartes biseautées,
   principal orange solaire, rose réservé aux accents.
   ========================================================================== */
.site {
    --edge: #1a0d22;
    --sun-btn: linear-gradient(180deg, #ffd56a 0%, #ffa726 48%, #f57c00 100%);
    --sun-btn-hover: linear-gradient(180deg, #ffe08a 0%, #ffb547 48%, #ff8a1a 100%);
    --panel: linear-gradient(180deg, #3a2156 0%, #1d1030 100%);
}

/* Boutons 3D */
.site .btn {
    clip-path: none;
    border: 3px solid var(--edge);
    border-radius: 16px;
    background: linear-gradient(180deg, #6a5a9a 0%, #3c2d66 100%);
    color: #fff;
    font-style: normal;
    font-weight: 900;
    -webkit-text-stroke: 4px var(--edge);
    paint-order: stroke fill;
    text-shadow: 0 2px 0 var(--edge);
    box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .22), inset 0 3px 0 rgba(255, 255, 255, .35), 0 5px 0 var(--edge), 0 10px 18px rgba(0, 0, 0, .45);
    transition: transform .12s, box-shadow .12s, filter .2s;
}
.site .btn::after { content: none; }
.site .btn::before {
    content: '';
    position: absolute;
    left: 8px; right: 8px; top: 4px;
    height: 34%;
    border-radius: 10px 10px 40% 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
    pointer-events: none;
}
.site .btn:hover { filter: brightness(1.08); transform: translateY(-2px); color: #fff; }
.site .btn:active { transform: translateY(4px); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22), inset 0 3px 0 rgba(255, 255, 255, .35), 0 1px 0 var(--edge), 0 3px 6px rgba(0, 0, 0, .45); }
.site .btn-hot { background: var(--sun-btn); }
.site .btn-hot:hover { background: var(--sun-btn-hover); color: #fff; }
.site .btn-ghost { background: linear-gradient(180deg, #6a5a9a 0%, #3c2d66 100%); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .25), inset 0 3px 0 rgba(255, 255, 255, .3), 0 5px 0 var(--edge), 0 10px 18px rgba(0, 0, 0, .45); }

/* Titres de section : droits, gros contour (plus "jeu"). */
.site .section-title, .site .final-title, .site .city-name { font-style: normal; -webkit-text-stroke-width: .09em; text-shadow: 0 .07em 0 #000; }
.site .kicker { color: #ffb547; }
.site .kicker::before { background: linear-gradient(90deg, #ffd56a, #f57c00); border-radius: 3px; }

/* Étiquette du slogan : badge Clash. */
.site .hero-stamp {
    border: 3px solid var(--edge);
    border-radius: 12px;
    background: var(--sun-btn);
    color: #fff;
    font-style: normal;
    -webkit-text-stroke: 4px var(--edge);
    paint-order: stroke fill;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 5px 0 var(--edge);
}

/* Bandeau défilant : orange solaire au lieu du rose. */
.site .tape--hot { background: linear-gradient(180deg, #ffb547, #f57c00); box-shadow: 0 0 0 3px var(--edge), 0 10px 0 rgba(0, 0, 0, .35); }
.site .tape--hot .tape-track span { -webkit-text-stroke: 4px var(--edge); }

/* Cartes du crew : cadre épais et étiquettes 3D. */
.site .card { border: 4px solid var(--edge); border-radius: 22px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 6px 0 var(--edge), 0 14px 26px rgba(0, 0, 0, .45); transform: none; }
.site .card-art, .site .card figcaption { transform: none; }
.site .card strong {
    border: 3px solid var(--edge);
    border-radius: 10px;
    background: var(--sun-btn);
    font-style: normal;
    -webkit-text-stroke: 4px var(--edge);
    paint-order: stroke fill;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 3px 0 var(--edge);
}
.site .card figcaption span { border: 2px solid var(--edge); border-radius: 8px; font-weight: 700; }

/* Business : panneaux biseautés, numéros en blason. */
.site .biz-item {
    border: 3px solid var(--edge);
    border-radius: 20px;
    background: var(--panel);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), 0 5px 0 var(--edge), 0 12px 22px rgba(0, 0, 0, .4);
}
.site .biz-item h3 { font-style: normal; -webkit-text-stroke: 4px var(--edge); paint-order: stroke fill; text-shadow: 0 2px 0 var(--edge); }
.site .biz-num { color: #fff; -webkit-text-stroke: 3px var(--edge); paint-order: stroke fill; text-shadow: 0 3px 0 var(--edge); font-style: normal; background: var(--sun-btn); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 var(--edge)); }
.site .biz-icon { fill: #ffb547; filter: drop-shadow(0 2px 0 var(--edge)); }

/* Villes : CTA et chiffres plus "jeu". */
.site .city-num, .site .city-tag { font-style: normal; }

/* En-tête : sélecteur de langue en pastille 3D. */
.site .lang summary { border: 3px solid var(--edge); border-radius: 12px; background: var(--panel); box-shadow: 0 3px 0 var(--edge); }
.site .lang ul { border: 3px solid var(--edge); border-radius: 14px; }
.site .lang a { border-radius: 8px; }
.site .lang a:hover, .site .lang a[aria-current] { background: var(--sun-btn); }

/* Numéros du Business : orange plein + contour (le texte en dégradé se masquait). */
.site .biz-num { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #ffb547; -webkit-text-stroke: 4px var(--edge); filter: none; text-shadow: 0 3px 0 var(--edge); }

/* Dernière diapo (« D'autres villes ») : même colonne de texte que les villes
   (2e colonne de la grille), une colonne vide tient la place de la carte. */
.city--soon { grid-template-columns: 1fr 1fr; }
.city--soon .city-copy { grid-column: 2; }
@media (max-width: 900px) {
    .city--soon { grid-template-columns: 1fr; }
    .city--soon .city-copy { grid-column: auto; }
}

/* Final : Carla (buste) posée sur le bas de la section, plus grande, sous le soleil. */
.final { align-items: end; }
.final-art {
    align-self: end;
    width: min(100%, 520px);
    margin-bottom: -2px;
    justify-self: end;
    margin-right: 2vw;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .4));
}
.final-sun { left: 28%; top: 50%; width: 80vmin; }
@media (max-width: 1000px) {
    .final-art { justify-self: center; margin-right: 0; width: min(80%, 420px); }
}
/* Carla vraiment posée sur le bas : le buste remplit la hauteur de la section. */
@media (min-width: 1001px) {
    .final { align-items: stretch; }
    .final-art { align-self: end; width: auto; height: min(88svh, 760px); max-width: 100%; margin-bottom: -3%; object-fit: contain; object-position: bottom; }
}
/* « D'autres villes » : texte calé là où commence celui des villes (colonne 2 de la grille 1fr 1fr). */
.city--soon { grid-template-columns: 1fr; }
.city--soon .city-copy { grid-column: auto; justify-self: start; }
/* Les colonnes des villes se dimensionnent sur leur contenu (texte à ~39 % de la largeur) : on s'y cale. */
@media (min-width: 1001px) { .city--soon .city-copy { margin-left: calc(39vw - var(--gutter)); } }

/* Business : sans pictos ; colonne gauche plus consistante (accroche + illustration). */
.biz-item { grid-template-columns: auto 1fr; }
.biz-head .section-lead { max-width: 26em; margin: 18px 0 0; }
.biz-art {
    display: block;
    width: min(100%, 420px);
    height: auto;
    margin-top: 28px;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .5));
}
@media (max-width: 1000px) { .biz-art { display: none; } }
.biz-list { align-content: start; align-self: start; }
.biz-item { align-items: start; }
/* Accueil (bureau) : le titre suit aussi la HAUTEUR d'écran, pour que tout le premier
   écran (titre 3 lignes, slogan, texte, boutons, badges) tienne sans défiler. */
@media (min-width: 900px) {
    .hero-title { font-size: min(15vw, 13rem, calc((100svh - 420px) / 3.1)); }
}
@media (min-width: 900px) {
    /* … sans descendre sous 80 px (écrans très bas : on accepte de défiler un peu). */
    .hero-title { font-size: max(80px, min(15vw, 13rem, calc((100svh - 420px) / 3.1))); }
}

/* En-tête : sélecteur de langue et bouton Jouer de même hauteur et même arrondi. */
.header-actions { display: flex; align-items: center; gap: 12px; }
.site .lang summary,
.site .header-actions .btn-play {
    display: inline-flex;
    align-items: center;
    height: 44px;
    border: 3px solid var(--edge);
    border-radius: 12px;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .14), 0 3px 0 var(--edge);
}
.site .lang summary { gap: 6px; padding: 0 10px 0 14px; }
.lang-arrow { font-size: 14px; rotate: 90deg; transition: rotate .2s; opacity: .8; }
.lang[open] .lang-arrow { rotate: -90deg; }
/* Jouer : vert « action » (comme Recruter / Construire dans le jeu), distinct des CTA orange. */
.site .header-actions .btn-play {
    padding: 0 20px;
    background: linear-gradient(115deg, #1fae6a 0%, #34c76f 34%, #7fdc4e 72%, #c8f05a 100%);
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    -webkit-text-stroke: 4px var(--edge);
    paint-order: stroke fill;
    text-decoration: none;
    transition: transform .15s, filter .15s;
}
.site .header-actions .btn-play:hover { transform: translateY(-2px); filter: brightness(1.06); }
.site .header-actions .btn-play:active { transform: translateY(1px); }
@media (max-width: 560px) {
    .site .lang summary, .site .header-actions .btn-play { height: 40px; }
    .site .header-actions .btn-play { padding: 0 14px; }
}

/* Menu des langues : panneau du jeu (dégradé, bordure épaisse), code en pastille,
   coche sur la langue active, ouverture en « pop ». */
.site .lang ul {
    top: calc(100% + 10px);
    min-width: 200px;
    padding: 6px;
    border: 3px solid var(--edge);
    border-radius: 14px;
    background: linear-gradient(180deg, #2f1a46, #1c0f2c);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .1), 0 4px 0 var(--edge), 0 22px 44px rgba(0, 0, 0, .55);
    transform-origin: top right;
    animation: lang-pop .22s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes lang-pop { from { opacity: 0; scale: .9; translate: 0 -6px; } }
.site .lang li + li { margin-top: 2px; }
.site .lang a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 9px;
    color: #e8ddf5;
    font-weight: 800;
    background: none;
    transition: background .12s, color .12s;
}
.site .lang a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.site .lang a[aria-current] { background: rgba(255, 181, 71, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .4); }
.lang-code {
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 24px;
    border: 2px solid var(--edge);
    border-radius: 7px;
    background: rgba(0, 0, 0, .35);
    font-size: .72rem;
    font-weight: 900;
    color: #cdbbe6;
}
.site .lang a[aria-current] .lang-code { background: var(--sun-btn); color: #fff; -webkit-text-stroke: 2.5px var(--edge); paint-order: stroke fill; }
.lang-name { flex: 1; }
.lang-check { font-size: 15px; color: #ffb547; filter: drop-shadow(0 1px 0 var(--edge)); }
@media (prefers-reduced-motion: reduce) { .site .lang ul { animation: none; } }

/* Palette orange / rouge du jeu (dégradé corail → or) sur toute la vitrine. */
.site {
    --sun-btn: linear-gradient(115deg, #ff4f7e 0%, #ff7352 28%, #ff9a2e 62%, #ffc531 100%);
    --sun-btn-hover: linear-gradient(115deg, #ff6290 0%, #ff8462 28%, #ffa940 62%, #ffd04d 100%);
}
/* Boutons orange : le dégradé suit la souris (comme dans le jeu). */
@property --mx { syntax: '<percentage>'; inherits: false; initial-value: 30%; }
@property --my { syntax: '<percentage>'; inherits: false; initial-value: 30%; }
.site .btn-hot, .site .btn-hot:hover {
    background: var(--sun-btn);
    background-size: 150% 150%;
    background-position: var(--mx) var(--my);
    transition: --mx .45s cubic-bezier(.22, 1, .36, 1), --my .45s cubic-bezier(.22, 1, .36, 1), transform .2s, filter .2s;
}
.site .btn-hot:hover { filter: brightness(1.05); }
/* Liens de l'en-tête : contour sombre (lisibles sur le soleil comme sur la nuit). */
.site .header-nav a { -webkit-text-stroke: 3.5px var(--edge); paint-order: stroke fill; text-shadow: 0 2px 0 var(--edge); }

/* Slogan : signature manuscrite en biais, pas un bouton (ni fond, ni bordure, ni tranche). */
.site .hero-stamp {
    position: relative;
    margin: 18px 0 0 4px;
    padding: 0 0 8px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #ffd27a;
    font-style: italic;
    font-weight: 900;
    font-size: clamp(1.15rem, 1.9vw, 1.6rem);
    -webkit-text-stroke: 4px var(--edge);
    paint-order: stroke fill;
    text-shadow: 0 3px 0 var(--edge);
    transform: rotate(-3deg);
}
/* Trait de pinceau sous le slogan. */
.site .hero-stamp::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -6px;
    bottom: 0;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff4f7e, #ff9a2e 60%, rgba(255, 197, 49, 0));
    box-shadow: 0 2px 0 var(--edge);
}

/* Slogan : tampon sur pastille noire à 80 % (pas de tranche 3D : rien d'un bouton). */
.site .hero-stamp {
    display: inline-block;
    margin: 16px 0 0 2px;
    padding: 7px 16px 6px;
    border: 2px dashed rgba(255, 210, 122, .55);
    border-radius: 10px;
    background: rgba(0, 0, 0, .8);
    box-shadow: none;
    color: #ffd27a;
    font-style: normal;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    -webkit-text-stroke: 0;
    text-shadow: none;
    transform: rotate(-4deg);
}
.site .hero-stamp::after { content: none; }
/* Inclinaison du tampon : transform (GSAP l'anime depuis -12° jusqu'à -4°). */
.site .hero-stamp { transform: rotate(-4deg); }
/* Tampon proportionnel au logo (même formule que .hero-title, ~14 %), avec un minimum. */
.site .hero-stamp { font-size: max(.95rem, calc(min(15vw, 13rem) * .14)); }
@media (min-width: 900px) {
    .site .hero-stamp { font-size: max(.95rem, calc(max(80px, min(15vw, 13rem, calc((100svh - 420px) / 3.1))) * .14)); }
}

/* ==========================================================================
   Refonte 15/10/2026 : navigation (Règles, menu mobile, progression), accueil
   resserré (pitch, villes), « Le jeu » en 8 piliers, encart « Rejoins la ville ».
   ========================================================================== */
/* Couleurs des chapitres / piliers. */
.tone-sun { --tone: #ffc531; }
.tone-orange { --tone: #ff8a2e; }
.tone-violet { --tone: #a77bff; }
.tone-pink { --tone: #ff4f9a; }
.tone-teal { --tone: #19e3cb; }

/* En-tête : lien courant, barre de progression, menu mobile. */
.site .header-nav a[aria-current]::after { transform: scaleX(1); }
.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 3px; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: var(--sun-btn); transform: scaleX(0); transform-origin: left; }
.burger { display: none; position: relative; }
.burger summary { display: grid; place-items: center; width: 44px; height: 44px; border: 3px solid var(--edge); border-radius: 12px; background: var(--panel); box-shadow: 0 3px 0 var(--edge); cursor: pointer; list-style: none; }
.burger summary::-webkit-details-marker { display: none; }
.burger-bars { display: grid; gap: 4px; width: 20px; }
.burger-bars i { display: block; height: 3px; border-radius: 3px; background: #fff; transition: transform .25s, opacity .2s; }
.burger[open] .burger-bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[open] .burger-bars i:nth-child(2) { opacity: 0; }
.burger[open] .burger-bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.burger-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 70; display: grid; gap: 4px; min-width: 220px; padding: 8px; border: 3px solid var(--edge); border-radius: 14px; background: linear-gradient(180deg, #2f1a46, #1c0f2c); box-shadow: 0 4px 0 var(--edge), 0 22px 44px rgba(0, 0, 0, .55); animation: lang-pop .22s cubic-bezier(.34, 1.56, .64, 1); transform-origin: top right; }
.burger-panel a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px; border-radius: 10px; color: #fff; font-weight: 900; text-transform: uppercase; text-decoration: none; }
.burger-panel a:hover, .burger-panel a[aria-current] { background: rgba(255, 181, 71, .16); }
.burger-panel .ico { font-size: 14px; opacity: .7; }
@media (max-width: 1000px) { .burger { display: block; } }
@media (max-width: 560px) { .burger summary { width: 40px; height: 40px; } .header-actions { gap: 8px; } }

/* Pitch : moins d'espace vide. */
.pitch { padding-block: clamp(70px, 9vw, 130px) clamp(60px, 8vw, 110px); }

/* Villes (bureau) : panneaux plus étroits (la ville suivante apparaît déjà) → défilement plus court ;
   nom de ville jamais coupé. */
@media (min-width: 1001px) {
    .cities-intro { width: 52vw; }
    .city { width: 82vw; gap: 3vw; }
    .city-name { font-size: min(8vw, 8.5rem); overflow-wrap: anywhere; }
    .city--soon { width: 60vw; }
    .city--soon .city-copy { margin-left: 0; }
}

/* « Le jeu » : 8 piliers en grille, chacun mène au chapitre des règles. */
.site .biz { display: block; max-width: 1400px; }
.site .biz-head { position: static; max-width: 900px; margin: 0 0 40px; }
.site .biz-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.site .biz-item { display: block; padding: 0; border: 3px solid var(--edge); border-radius: 20px; background: var(--panel); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), 0 5px 0 var(--edge), 0 12px 22px rgba(0, 0, 0, .4); overflow: hidden; transition: transform .25s var(--ease-out), box-shadow .25s; }
.biz-link { display: grid; align-content: start; gap: 10px; height: 100%; padding: 22px 22px 18px; color: inherit; text-decoration: none; }
.biz-top { display: flex; align-items: center; justify-content: space-between; }
.biz-ico { display: grid; place-items: center; width: 52px; height: 52px; border: 3px solid var(--edge); border-radius: 14px; background: var(--sun-btn); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 3px 0 var(--edge); color: #fff; }
.biz-ico .ico { width: 26px; height: 26px; filter: drop-shadow(0 2px 0 var(--edge)); }
.site .biz-item .biz-num { font-size: 2rem; line-height: 1; opacity: .9; }
.site .biz-item h3 { font-size: 1.35rem; margin: 4px 0 0; }
.site .biz-item p { font-size: .95rem; line-height: 1.45; }
@media (max-width: 1100px) { .site .biz-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .site .biz-list { grid-template-columns: 1fr; } .biz-link { padding: 18px; } }


/* ==========================================================================
   Page des règles (wiki)
   ========================================================================== */
.rules { position: relative; }
.rules-hero { position: relative; overflow: hidden; isolation: isolate; padding: 130px var(--gutter) 40px; background: linear-gradient(180deg, #24093a 0%, #3d1250 55%, var(--ink) 100%); }
.rules-hero-sun { position: absolute; z-index: -1; right: -8vw; top: 40px; width: min(46vw, 560px); aspect-ratio: 1; border-radius: 50%; background: linear-gradient(180deg, #fff3a8 0%, var(--sun) 30%, var(--orange) 58%, var(--pink) 100%); opacity: .35; filter: blur(2px); -webkit-mask: linear-gradient(#000 52%, transparent 52%, transparent 56%, #000 56%, #000 64%, transparent 64%, transparent 69%, #000 69%, #000 76%, transparent 76%, transparent 82%, #000 82%); mask: linear-gradient(#000 52%, transparent 52%, transparent 56%, #000 56%, #000 64%, transparent 64%, transparent 69%, #000 69%, #000 76%, transparent 76%, transparent 82%, #000 82%); }
.rules-hero-copy { max-width: 1400px; margin: 0 auto; }
.rules-title { font-size: clamp(3.6rem, 10vw, 8rem); margin: .1em 0 .15em; }
.site .rules-title { font-style: normal; -webkit-text-stroke-width: .09em; text-shadow: 0 .07em 0 #000; }
.rules-search { display: flex; align-items: center; gap: 10px; max-width: 620px; margin: 26px 0 0; padding: 0 16px; height: 56px; border: 3px solid var(--edge); border-radius: 16px; background: rgba(10, 6, 16, .72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 4px 0 var(--edge); }
.rules-search:focus-within { box-shadow: inset 0 0 0 2px #ffb547, 0 4px 0 var(--edge); }
.rules-search .ico { flex: none; width: 20px; height: 20px; color: #ffb547; }
.rules-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: #fff; font: inherit; font-size: 1.05rem; outline: none; }
.rules-search input::placeholder { color: rgba(255, 255, 255, .45); }
.rules-search-count { flex: none; color: #ffb547; font-size: .85rem; font-weight: 800; white-space: nowrap; }
.rules-chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 1400px; margin: 30px auto 0; padding: 0; list-style: none; }
.rules-chips a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 9px; border: 2px solid rgba(255, 255, 255, .1); border-radius: 999px; background: rgba(0, 0, 0, .35); color: #fff; font-size: .85rem; font-weight: 800; text-decoration: none; transition: border-color .2s, background .2s; }
.rules-chips a:hover { border-color: var(--tone); background: color-mix(in srgb, var(--tone) 16%, rgba(0, 0, 0, .35)); }
.rules-chips span { color: var(--tone); font-variant-numeric: tabular-nums; }
.rules-chips .ico { width: 15px; height: 15px; color: var(--tone); }

/* Corps : sommaire collant + contenu. */
.rules-body { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); max-width: 1400px; margin: 0 auto; padding: 40px var(--gutter) 80px; }
.rules-toc { position: sticky; top: 90px; align-self: start; }
.rules-toc nav { max-height: calc(100svh - 150px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.rules-toc-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #ffb547; font-size: .8rem; font-weight: 900; text-transform: uppercase; }
.rules-toc-title .ico { width: 16px; height: 16px; }
.rules-toc ol { margin: 0; padding: 0; list-style: none; }
.toc-ch { margin-bottom: 2px; }
.toc-ch-link { display: flex; align-items: baseline; gap: 8px; padding: 7px 10px; border-radius: 10px; color: rgba(255, 255, 255, .78); font-weight: 800; font-size: .93rem; text-decoration: none; transition: background .2s, color .2s; }
.toc-ch-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.toc-num { flex: none; color: var(--tone, #ffb547); font-size: .78rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.toc-ch.is-open > .toc-ch-link { background: color-mix(in srgb, var(--tone) 14%, transparent); color: #fff; }
.toc-ch > ol { display: none; margin: 2px 0 8px 22px; padding-left: 10px; border-left: 2px solid rgba(255, 255, 255, .08); }
.toc-ch.is-open > ol { display: block; }
.toc-ch > ol a { display: block; padding: 4px 8px; border-radius: 8px; color: rgba(255, 255, 255, .6); font-size: .86rem; text-decoration: none; }
.toc-ch > ol a:hover { color: #fff; }
.toc-ch > ol a.is-on { color: #fff; background: rgba(255, 255, 255, .07); box-shadow: inset 3px 0 0 #ffb547; }

/* Chapitres et sections. */
.rules-content { min-width: 0; }
.rules-empty { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border: 2px dashed rgba(255, 255, 255, .2); border-radius: 16px; color: var(--muted); }
.rules-empty .ico { width: 20px; height: 20px; color: #ffb547; }
.r-chapter { margin: 0 0 56px; scroll-margin-top: 90px; }
.r-chapter[hidden], .r-section[hidden], .rules-empty[hidden] { display: none; }
.r-chapter-head { display: flex; align-items: flex-start; gap: 18px; margin: 0 0 22px; padding: 22px 24px; border: 3px solid var(--edge); border-radius: 22px; background: radial-gradient(ellipse 80% 120% at 0% 0%, color-mix(in srgb, var(--tone) 22%, transparent), transparent 65%), linear-gradient(180deg, #2a1640, #170c25); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .1), 0 5px 0 var(--edge); }
.r-chapter-ico { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border: 3px solid var(--edge); border-radius: 16px; background: var(--tone); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 3px 0 var(--edge); color: #fff; }
.r-chapter-ico .ico { width: 28px; height: 28px; filter: drop-shadow(0 2px 0 var(--edge)); }
.r-chapter-num { margin: 0; color: var(--tone); font-size: .82rem; font-weight: 900; text-transform: uppercase; }
.r-chapter-title { margin: .05em 0 .2em; font-size: clamp(2rem, 4vw, 3.2rem); }
.site .r-chapter-title { font-style: normal; -webkit-text-stroke-width: .08em; text-shadow: 0 .06em 0 #000; }
.r-chapter-lead { margin: 0; max-width: 60ch; color: var(--muted); font-size: 1.05rem; line-height: 1.5; }
.r-section { margin: 0 0 30px; padding: 0 0 0 4px; scroll-margin-top: 90px; }
.r-section-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 1.4rem; font-weight: 900; text-transform: uppercase; }
.r-section-title::before { content: ""; flex: none; align-self: center; width: 14px; height: 4px; border-radius: 3px; background: var(--tone); }
.r-anchor { position: relative; color: rgba(255, 255, 255, .25); font-size: 1rem; text-decoration: none; opacity: 0; transition: opacity .2s, color .2s; }
.r-section:hover .r-anchor, .r-anchor:focus-visible { opacity: 1; }
.r-anchor:hover { color: #ffb547; }
.r-anchor[data-done]::after { content: attr(data-done); position: absolute; left: 100%; top: -4px; margin-left: 8px; padding: 3px 8px; border-radius: 8px; background: #ffb547; color: var(--ink); font-size: .72rem; font-weight: 900; white-space: nowrap; }
.r-section p, .r-section li { color: rgba(255, 246, 236, .86); font-size: 1.02rem; line-height: 1.65; }
.r-section p { margin: 0 0 12px; max-width: 72ch; }
.r-section strong { color: #fff; font-weight: 800; }
.r-list, .r-steps { margin: 0 0 14px; padding-left: 0; list-style: none; max-width: 72ch; }
.r-list li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.r-list li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 7px; height: 7px; border-radius: 2px; background: var(--tone); transform: rotate(45deg); }
.r-steps { counter-reset: step; }
.r-steps li { position: relative; padding-left: 44px; margin-bottom: 10px; counter-increment: step; }
.r-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--edge); border-radius: 50%; background: var(--sun-btn); color: #fff; font-weight: 900; font-size: .9rem; -webkit-text-stroke: 2.5px var(--edge); paint-order: stroke fill; }
.r-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 4px 0 16px; }
.r-fact { display: grid; gap: 2px; padding: 12px 14px; border: 2px solid var(--edge); border-radius: 14px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 35%, transparent); }
.r-fact b { color: var(--tone); font-size: 1.5rem; font-weight: 900; line-height: 1.1; }
.r-fact span { color: var(--muted); font-size: .85rem; line-height: 1.3; }
.r-table-wrap { margin: 4px 0 16px; overflow-x: auto; border: 2px solid var(--edge); border-radius: 14px; background: rgba(0, 0, 0, .3); }
.r-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.r-table th, .r-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255, 255, 255, .07); color: rgba(255, 246, 236, .86); line-height: 1.45; }
.r-table thead th { background: color-mix(in srgb, var(--tone) 18%, rgba(0, 0, 0, .3)); color: #fff; font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.r-table tbody th { color: #fff; font-weight: 800; white-space: nowrap; }
.r-table tbody tr:last-child > * { border-bottom: 0; }
.r-table tbody tr:hover > * { background: rgba(255, 255, 255, .03); }
.r-note { display: flex; gap: 10px; max-width: 72ch; padding: 12px 14px; border-radius: 12px; background: rgba(255, 181, 71, .1); box-shadow: inset 3px 0 0 #ffb547; }
.r-note .ico { flex: none; width: 18px; height: 18px; margin-top: 3px; color: #ffb547; }
.r-note.is-warn { background: rgba(255, 79, 126, .1); box-shadow: inset 3px 0 0 #ff4f7e; }
.r-note.is-warn .ico { color: #ff4f7e; }
mark.r-hit { padding: 0 2px; border-radius: 4px; background: #ffc531; color: var(--ink); }
.rules-cta { display: grid; justify-items: start; gap: 12px; margin-top: 30px; padding: clamp(28px, 4vw, 48px); border: 4px solid var(--edge); border-radius: 26px; background: var(--sunset); box-shadow: 0 8px 0 var(--edge); }
.rules-cta h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4rem); }
.site .rules-cta h2 { font-style: normal; -webkit-text-stroke-width: .09em; text-shadow: 0 .07em 0 #000; }
.rules-cta p { margin: 0 0 8px; font-size: 1.2rem; text-shadow: 0 2px 8px rgba(0, 0, 0, .4); }

/* Bouton flottant « Sommaire » + panneau (mobile / tablette), « Revenir en haut ». */
.rules-toc-btn { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 55; display: none; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border: 3px solid var(--edge); border-radius: 999px; background: var(--sun-btn); color: #fff; font: inherit; font-weight: 900; text-transform: uppercase; -webkit-text-stroke: 3.5px var(--edge); paint-order: stroke fill; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 4px 0 var(--edge), 0 12px 24px rgba(0, 0, 0, .45); translate: -50% 0; cursor: pointer; }
.rules-toc-btn .ico { width: 18px; height: 18px; filter: drop-shadow(0 1px 0 var(--edge)); }
.rules-sheet { position: fixed; inset: 0; z-index: 120; }
.rules-sheet[hidden] { display: none; }
.rules-sheet-backdrop { position: absolute; inset: 0; background: rgba(5, 2, 10, .7); backdrop-filter: blur(4px); }
.rules-sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82svh; overflow-y: auto; padding: 20px 18px max(20px, env(safe-area-inset-bottom)); border-top: 3px solid var(--edge); border-radius: 24px 24px 0 0; background: linear-gradient(180deg, #2f1a46, #170c25); box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); animation: sheet-up .3s var(--ease-out); }
@keyframes sheet-up { from { translate: 0 30%; opacity: 0; } }
.rules-sheet-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.rules-sheet-close .ico { width: 36px; height: 36px; }
.rules-sheet-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rules-sheet-list a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .3); color: #fff; font-weight: 800; text-decoration: none; }
.rules-sheet-list .ico { width: 18px; height: 18px; color: var(--tone); }
.rules-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 55; display: grid; place-items: center; width: 46px; height: 46px; border: 3px solid var(--edge); border-radius: 50%; background: var(--panel); box-shadow: 0 3px 0 var(--edge); color: #fff; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease-out); transform: translateY(10px); }
.rules-top.is-on { opacity: 1; pointer-events: auto; transform: none; }
.rules-top .ico { width: 18px; height: 18px; rotate: -90deg; }
html.rules-sheet-open { overflow: hidden; }
@media (max-width: 1000px) {
    .rules-body { grid-template-columns: 1fr; padding-top: 24px; }
    .rules-toc { display: none; }
    .rules-toc-btn { display: inline-flex; }
    .rules-chips { display: none; }
    .rules-top { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 60px); }
}
@media (max-width: 560px) {
    .rules-hero { padding-top: 104px; }
    .r-chapter-head { flex-direction: column; gap: 12px; padding: 18px; }
    .r-chapter-ico { width: 48px; height: 48px; }
    .r-section-title { font-size: 1.2rem; }
    .r-table th, .r-table td { padding: 8px 10px; font-size: .9rem; }
    .r-table tbody th { white-space: normal; }
}
.site .biz { padding-block: clamp(70px, 8vw, 120px) clamp(50px, 6vw, 90px); }
.site .biz-head .section-title { margin-top: .1em; }

/* Règles : texte courant plus grand, toute la largeur de la colonne (largeur constante d’un chapitre à l’autre). */
.r-section p, .r-list, .r-steps, .r-note, .r-chapter-lead { max-width: none; }
.r-section p, .r-section li { font-size: 1.12rem; line-height: 1.65; }
.r-chapter-lead { font-size: 1.12rem; }
.r-table { font-size: 1.02rem; }
.r-fact span { font-size: .92rem; }
@media (max-width: 560px) { .r-section p, .r-section li { font-size: 1.02rem; } }

/* Crew : bulles blanches un peu plus larges (sans jamais dépasser la carte). */
.site .card figcaption { right: 14px; }
.site .card figcaption span { max-width: min(34ch, 100%); }

/* ---------------- FOOTER (menu en colonnes) ---------------- */
.footer { display: grid; justify-items: stretch; gap: 0; max-width: 1400px; margin: 0 auto; padding: clamp(50px, 6vw, 80px) var(--gutter) 34px; text-align: left; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: clamp(30px, 5vw, 80px); padding-bottom: 34px; }
.footer-brand { display: grid; justify-items: start; align-content: start; gap: 14px; }
.footer-brand .footer-slogan { margin: 0; }
.footer-play { margin-top: 6px; }
.footer-menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-col-title { margin: 0 0 12px; color: #fff; font-size: .82rem; font-weight: 900; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.footer-col a { color: rgba(255, 255, 255, .62); font-size: .92rem; text-decoration: none; transition: color .2s; }
.footer-col a:hover, .footer-col a[aria-current] { color: var(--pink); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .08); }
/* Mention 16+ : encart à bordure légère, badge séparé du texte par un filet, texte à gauche. */
.footer-adult { display: flex; align-items: center; gap: 14px; max-width: 46em; margin: 0; padding: 12px 18px 12px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; background: rgba(255, 255, 255, .03); text-align: left; font-size: .85rem; line-height: 1.45; }
.footer-adult-text { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .16); }
.footer-copy { margin: 0; }
@media (max-width: 1000px) {
    .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .footer-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
    .footer-bottom { flex-direction: column; align-items: stretch; }
}

/* ---------------- REJOINDRE (inscription) : accroche + avantages + 3 étapes ---------------- */
.join { padding: 0 var(--gutter) clamp(90px, 10vw, 150px); }
.join-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 64px); max-width: 1400px; margin: 0 auto; padding: clamp(28px, 4vw, 60px); border: 4px solid var(--edge); border-radius: 28px; background: radial-gradient(ellipse 70% 80% at 0% 0%, rgba(255, 79, 126, .3), transparent 60%), radial-gradient(ellipse 60% 70% at 100% 100%, rgba(255, 197, 49, .2), transparent 60%), linear-gradient(180deg, #2a1640, #160c24); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), 0 8px 0 var(--edge), 0 30px 60px rgba(0, 0, 0, .45); }
.join-copy { align-self: center; }
.join-copy .section-title { font-size: clamp(2.8rem, 6vw, 5.6rem); }
.join-perks { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; padding: 0; list-style: none; }
.join-perks li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(0, 0, 0, .3); color: #fff; font-size: .9rem; font-weight: 700; }
.join-perks .ico { width: 16px; height: 16px; color: var(--sun); }
.join-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.join-login { color: rgba(255, 255, 255, .7); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.join-login:hover { color: var(--pink); }
.join-steps { position: relative; display: grid; gap: 14px; align-content: center; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.join-steps::before { content: ""; position: absolute; left: 29px; top: 34px; bottom: 34px; border-left: 2px dashed rgba(255, 197, 49, .35); }
.join-step { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: center; gap: 18px; padding: 18px 20px 18px 0; }
.join-num { position: relative; z-index: 1; display: grid; place-items: center; width: 60px; height: 60px; border: 3px solid var(--edge); border-radius: 50%; background: var(--cta, linear-gradient(115deg, #ff4f7e, #ff9a2e, #ffc531)); color: #fff; font-size: 1.7rem; font-weight: 900; font-style: italic; -webkit-text-stroke: 4px var(--edge); paint-order: stroke fill; box-shadow: 0 4px 0 var(--edge); }
.join-step h3 { margin: 0 0 4px; color: #fff; font-size: 1.3rem; font-weight: 900; font-style: italic; text-transform: uppercase; }
.join-step p { margin: 0; color: rgba(255, 255, 255, .72); font-size: .98rem; line-height: 1.45; }
@media (max-width: 1000px) { .join-card { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
    .join-step { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 10px 0; }
    .join-num { width: 48px; height: 48px; font-size: 1.35rem; }
    .join-steps::before { left: 23px; }
    .join-ctas .btn { width: 100%; justify-content: center; }
    .join-ctas { justify-content: center; }
}

/* Final : jamais plus haut que 820 px, contenu recentré sur les très grands écrans. */
.final { min-height: min(92svh, 820px); padding-inline: max(var(--gutter), calc((100% - 1500px) / 2)); }
@media (min-width: 1001px) { .final-art { height: min(88svh, 740px); } }

/* Jouer quand on est connecté : son avatar dans le bouton (débordant à gauche). */
.site .header-actions .btn-play.is-me { gap: 9px; padding-left: 5px; }
.btn-play-ava { position: relative; display: grid; flex: none; width: 32px; height: 32px; -webkit-text-stroke: 0; }
.btn-play-ava .pava-in { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; border: 2px solid var(--edge); border-radius: 50%; background: linear-gradient(135deg, #ffc531, #ff4f7e); color: #1a0f22; font-size: 1rem; font-weight: 900; font-style: italic; }
.btn-play-ava img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .site .header-actions .btn-play.is-me { padding-left: 4px; } .btn-play-ava { width: 28px; height: 28px; } }

/* Villes : plus de défilement horizontal plein écran — section normale, une carte par ville
   (+ « bientôt »), nom dimensionné sur la largeur de SA carte (jamais coupé). */
.cities { padding: clamp(80px, 9vw, 140px) var(--gutter); }
.cities-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); width: auto; max-width: 1400px; margin: 0 auto; }
.cities-intro { grid-column: 1 / -1; width: auto; min-height: 0; padding: 0 0 clamp(14px, 2vw, 26px); }
.city { container-type: inline-size; width: auto; min-height: 0; grid-template-columns: 1fr; align-content: start; gap: 14px; padding: clamp(20px, 2.4vw, 32px); overflow: hidden; border: 4px solid var(--edge); border-radius: 24px; background: linear-gradient(180deg, #24123a, #140a22); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .1), 0 8px 0 var(--edge), 0 24px 50px rgba(0, 0, 0, .4); }
.city::before { background: radial-gradient(ellipse 80% 55% at 50% 28%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 72%); }
.city-map svg { display: block; width: 100%; max-width: 340px; max-height: 240px; }
.city-name { font-size: clamp(2rem, 14cqi, 4.4rem); overflow-wrap: normal; word-break: keep-all; margin: .05em 0 .12em; }
.city-tag { font-size: clamp(1rem, 6cqi, 1.4rem); }
.city-desc { font-size: 1rem; margin-bottom: 22px; }
.city .btn { justify-self: start; }
.city--soon { width: auto; grid-template-columns: 1fr; align-content: center; justify-items: start; border-style: dashed; border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .03); box-shadow: none; }
.city--soon .city-copy { grid-column: auto; margin-left: 0; }
@media (max-width: 1000px) {
    .cities-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .city--soon { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .cities-track { grid-template-columns: 1fr; }
}
.footer-col-title { font-size: .9rem; font-weight: 700; color: var(--sun); }

/* Villes : cartes au même gabarit (carte de hauteur fixe, texte dessous, bouton calé en bas) → tout est aligné. */
.city { grid-template-rows: auto 1fr; align-content: stretch; }
.city-map { display: grid; place-items: center; height: 240px; }
.city-map svg { max-height: 240px; }
.city-copy { display: flex; flex-direction: column; align-items: flex-start; height: 100%; }
.city .city-copy .btn { margin-top: auto; }
/* « D'autres villes » : fausse carte (ville inconnue en pointillés + « ? »), texte aligné sur les autres. */
.city--soon { align-content: stretch; justify-items: stretch; }
.city-shape--soon { stroke-dasharray: 10 9; }
.city-soon-q { fill: var(--accent); font-family: var(--font); font-size: 120px; font-weight: 900; opacity: .85; filter: drop-shadow(0 0 14px var(--accent)); }
@media (max-width: 1000px) { .city--soon .city-map { height: 180px; } }

/* Mots mis en avant de l'accroche : plus lisibles sur le ciel (gras, jaune soutenu, contour sombre). */
.hero-sub em { color: #ffd23f; font-weight: 800; -webkit-text-stroke: 3px #1a0d22; paint-order: stroke fill; text-shadow: none; }

/* Bouton « Jouer » de l'en-tête : « Jouer gratuitement » pour un visiteur, « Jouer » seul quand la place manque. */
.btn-play .btn-play-short { display: none; }
@media (max-width: 1100px) and (min-width: 1001px), (max-width: 620px) {
    .btn-play .btn-play-long { display: none; }
    .btn-play .btn-play-short { display: inline; }
}
/* Trait plein qui se dessine (JS) avant de laisser place aux pointillés ; invisible sans animation. */
.city-soon-trace { opacity: 0; }

/* Sous la grille du crew : « …et bien d'autres encore » (il y a beaucoup d'autres personnages). */
.crew-more { max-width: 46em; margin: clamp(22px, 3vw, 36px) auto 0; padding: 0 var(--gutter); color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 700; font-style: italic; text-align: center; }
.crew-more em { font-style: normal; color: #ffd23f; font-weight: 800; }
.crew-more { text-wrap: balance; }

/* ---------- Bêta (is_beta de env.php) : pastille du haut de page + encart de « Rejoins la ville » ---------- */
.hero-beta { display: flex; width: max-content; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 14px 6px 10px; border: 2px solid rgba(255, 197, 49, .7); border-radius: 999px; background: rgba(10, 6, 16, .55); color: #ffc531; font-weight: 800; font-size: .85rem; text-transform: uppercase; text-decoration: none; }
.hero-beta .ico { width: 18px; height: 18px; }
.hero-beta:hover { background: rgba(255, 197, 49, .15); }
.join-beta { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; padding: 14px 16px; border: 2px dashed rgba(255, 197, 49, .6); border-radius: 14px; background: rgba(0, 0, 0, .35); text-align: left; }
.join-beta > .ico { flex: none; width: 26px; height: 26px; color: #ffc531; }
.join-beta p { display: grid; gap: 4px; margin: 0; line-height: 1.4; }
.join-beta b { color: #ffc531; font-weight: 800; text-transform: uppercase; }
.join-beta span { color: rgba(255, 255, 255, .82); font-size: .92rem; }