/* ==========================================================================
   Rob Run France – feuille de style
   Mise en page épurée : un fond sombre, un seul accent (Discord),
   la France en touches discrètes (logo, drapeau, filet tricolore).
   Titres dans la police du logo du jeu, texte en Inter.
   Polices auto-hébergées (aucun appel à Google Fonts, compatible RGPD).
   ========================================================================== */

@font-face {
    font-family: "Kanit";
    font-style: italic;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/kanit-latin-800-italic.woff2") format("woff2");
}
@font-face {
    font-family: "Kanit";
    font-style: italic;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/kanit-latin-900-italic.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
}

:root {
    --bg: #0a0b10;
    --surface: #11131b;
    --surface-2: #171a25;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);

    --text: #f4f5f9;
    --muted: #a6abbb;
    --subtle: #7d8396;

    --accent: #5865f2;
    --accent-hover: #4752c4;
    --accent-soft: rgba(88, 101, 242, .14);
    --accent-text: #aeb6ff;

    --bleu: #2f5fe3;
    --rouge: #e63329;

    --radius: 18px;
    --radius-lg: 28px;

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Kanit", "Arial Black", Impact, sans-serif;

    --header-h: 60px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --wrap: 1160px;
    --section: clamp(4.5rem, 10vw, 8.5rem);

    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 2rem);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    counter-reset: section;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
/* Évite les mots ou la ponctuation isolés en fin de paragraphe */
p, h3, dd { text-wrap: pretty; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, iframe { max-width: 100%; }
button { font: inherit; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
    outline: 2px solid var(--accent-text);
    outline-offset: 3px;
    border-radius: 8px;
}

a, button, summary { -webkit-tap-highlight-color: rgba(88, 101, 242, .2); }

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin-inline: auto;
    /* iPhone avec encoche, en paysage : on évite la zone de l'encoche */
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.skip {
    position: absolute;
    left: 1rem;
    top: -5rem;
    z-index: 100;
    padding: .65rem 1.1rem;
    font-weight: 700;
    text-decoration: none;
    background: #fff;
    color: var(--bg);
    border-radius: 999px;
}
.skip:focus { top: 1rem; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Barre de progression tricolore ---------- */

.progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, var(--bleu) 0 33.3333%, #fff 33.3333% 66.6666%, var(--rouge) 66.6666% 100%);
    transform: scaleX(var(--p, 0));
    transform-origin: left;
}

/* ---------- En-tête flottant ---------- */

.header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 50;
    padding-top: max(.75rem, env(safe-area-inset-top));
    pointer-events: none;
}
/* Fondu sous l'en-tête une fois la page défilée : le contenu s'efface proprement */
.header::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    height: calc(100% + 1.75rem);
    pointer-events: none;
    background: linear-gradient(180deg, var(--bg) 35%, rgba(10, 11, 16, 0));
    opacity: 0;
    transition: opacity .25s ease;
}
.header.is-scrolled::before { opacity: 1; }
.header__inner { position: relative; }

.header__bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    height: var(--header-h);
    padding: 0 .5rem 0 1.35rem;
    pointer-events: auto;
    background: rgba(17, 19, 27, .74);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 12px 32px -14px rgba(0, 0, 0, .7);
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: .35rem;
    flex: 1 1 0;
    min-width: 0;
    padding-block: .6rem;
    white-space: nowrap;
    text-decoration: none;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 900;
    font-size: 1.3rem;
    line-height: 1;
}
.brand__rob { color: #fff; }
.brand__slash { color: var(--rouge); }
.brand__fr { color: #8fa8ff; }

.nav {
    display: flex;
    align-items: center;
    gap: .15rem;
    font-size: .92rem;
    font-weight: 500;
}
.nav a {
    padding: .5rem .9rem;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a.is-active { color: #fff; background: rgba(255, 255, 255, .08); }

.header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    flex: 1 1 0;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 1.2rem;
    font-size: .92rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    color: var(--bg);
    background: #fff;
    border-radius: 999px;
    transition: background-color .15s ease;
}
.nav-cta:hover { background: #dfe2ec; }

/* Bouton menu (mobile) : visible seulement si le script du menu est chargé */
.menu-btn {
    display: none;
    position: relative;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    cursor: pointer;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
    position: absolute;
    left: 50%;
    width: 18px;
    height: 2px;
    margin-left: -9px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .2s ease, background-color .2s ease;
}
.menu-btn span { top: 50%; margin-top: -1px; }
.menu-btn span::before,
.menu-btn span::after { content: ""; left: 0; margin-left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); background: #fff; }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); background: #fff; }

.menu-mobile {
    position: absolute;
    top: calc(100% + .5rem);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--header-h) - 3rem);
    padding: .5rem;
    overflow-y: auto;
    pointer-events: auto;
    background: #12141d;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85);
    animation: menu-in .22s var(--ease);
}
.menu-mobile[hidden] { display: none; }
.menu-mobile a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 1.1rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-radius: 16px;
}
.menu-mobile a:hover,
.menu-mobile a.is-active { background: rgba(255, 255, 255, .06); }

/* ---------- Boutons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 54px;
    padding: .8rem 1.6rem;
    font-family: var(--font);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: -.005em;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .2s ease, transform .15s ease;
}

.btn--discord {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 32px -12px rgba(88, 101, 242, .85), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn--discord:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 16px 38px -12px rgba(88, 101, 242, .95), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.btn--ghost {
    background: rgba(255, 255, 255, .04);
    color: #fff;
    border-color: var(--line-strong);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .3); }

.btn--light {
    background: #fff;
    color: #2a3190;
    box-shadow: 0 16px 36px -14px rgba(10, 11, 16, .6);
}
.btn--light:hover { background: #eef0ff; transform: translateY(-1px); }

.btn--large { min-height: 60px; padding-inline: 2rem; font-size: 1.06rem; }

.btn .discord-logo { flex: none; }
.btn .arrow { flex: none; opacity: .65; transition: transform .15s ease, opacity .15s ease; }
.btn:hover .arrow { opacity: 1; transform: translate(2px, -2px); }

/* ---------- Petits éléments ---------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .4rem 1rem .4rem .55rem;
    font-size: .84rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--muted);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
}

.flag {
    flex: none;
    width: 22px;
    height: 15px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--bleu) 0 33.3333%, #fff 33.3333% 66.6666%, var(--rouge) 66.6666% 100%);
}

/* Étiquette de section, numérotée automatiquement : « 01 / Présentation » */
.label {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.1rem;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.label::before {
    content: counter(section, decimal-leading-zero) " /";
    color: var(--accent-text);
}

.live__dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 2s ease-out infinite;
}

.card {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    isolation: isolate;
    padding-block: clamp(3rem, 8vw, 6rem) clamp(1rem, 3vw, 2rem);
}

/* Halo bleu / rouge très léger, comme le drapeau du visuel */
.hero__glow {
    position: absolute;
    z-index: -1;
    top: -6rem;
    left: 0;
    right: 0;
    height: 48rem;
    pointer-events: none;
    background:
        radial-gradient(42% 60% at 22% 8%, rgba(47, 95, 227, .22), transparent 70%),
        radial-gradient(42% 60% at 78% 8%, rgba(230, 51, 41, .13), transparent 70%),
        radial-gradient(50% 55% at 50% 30%, rgba(88, 101, 242, .16), transparent 70%);
}

.hero__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero h1 {
    margin: 1.5rem 0 1.4rem;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 800;
    font-size: clamp(2rem, 9.2vw, 4.75rem);
    line-height: .98;
    letter-spacing: -.01em;
    text-transform: uppercase;
    color: #fff;
}
.h1__main,
.h1__sub { display: block; }
.h1__sub { color: #8e9bff; }

.hero__lede {
    max-width: 58ch;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin-top: 2.25rem;
}

/* Visuel + chiffres clés dans un même cadre */
.showcase {
    margin-top: clamp(3rem, 7vw, 5rem);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .95), 0 0 120px -30px rgba(88, 101, 242, .3);
}

.showcase__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--surface-2);
}
.showcase__media picture { display: block; width: 100%; height: 100%; }
.showcase__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 64%;
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}
.facts li {
    padding: 1.4rem 1rem;
    text-align: center;
}
.facts li + li { border-left: 1px solid var(--line); }
.facts strong {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 800;
    font-size: clamp(1.25rem, 2.6vw, 1.7rem);
    line-height: 1.1;
    text-transform: uppercase;
    color: #fff;
}
.facts span {
    display: block;
    margin-top: .3rem;
    font-size: .88rem;
    color: var(--subtle);
}

/* ---------- Sections ---------- */

.section {
    padding-block: var(--section);
    counter-increment: section;
}
.section + .section { padding-top: 0; }

.section__head {
    max-width: 46rem;
    margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}
.section__head--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-inline: auto;
    text-align: center;
}

.section h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 800;
    font-size: clamp(1.9rem, 5.2vw, 3.4rem);
    line-height: 1;
    letter-spacing: -.005em;
    text-transform: uppercase;
    color: #fff;
    text-wrap: balance;
}

.section__lead {
    margin-top: 1.2rem;
    max-width: 56ch;
    font-size: clamp(1.02rem, 1.4vw, 1.12rem);
    color: var(--muted);
}
.section__lead a { color: var(--accent-text); text-underline-offset: 3px; }

/* Le jeu */

.jeu {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}

.jeu__texte p { max-width: 62ch; color: var(--muted); }
.jeu__texte p + p { margin-top: 1.15rem; }
.jeu__texte .jeu__intro {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: -.01em;
    color: var(--text);
}
.jeu__texte .jeu__cta { margin-top: 2.25rem; }

.fiche { padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius-lg); }
.fiche__title {
    margin-bottom: .5rem;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1.1;
    text-transform: uppercase;
    color: #fff;
}
.fiche dl > div {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    padding-block: .9rem;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
}
.fiche dt { flex: none; color: var(--muted); }
.fiche dd { font-weight: 500; color: #fff; text-align: right; }
.fiche__note { margin-top: 1.1rem; font-size: .8rem; line-height: 1.5; color: var(--subtle); }

/* En vocal */

.vocal {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    padding: clamp(1.5rem, 5vw, 4rem);
    overflow: hidden;
    background:
        radial-gradient(60% 90% at 100% 0%, rgba(88, 101, 242, .2), transparent 65%),
        linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.vocal__intro {
    margin-top: 1.2rem;
    max-width: 48ch;
    font-size: clamp(1.02rem, 1.4vw, 1.12rem);
    color: var(--muted);
}
.vocal__cta { margin-top: 2rem; }

.vocal__widget {
    overflow: hidden;
    background: #1e1f22;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.vocal__iframe {
    display: block;
    width: 350px;
    height: 500px;
    border: 0;
}

/* La communauté */

.atouts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.atouts li {
    padding: 1.6rem;
    transition: border-color .2s ease, transform .2s ease;
}
.atouts li:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.atout__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    margin-bottom: 1.4rem;
    color: var(--accent-text);
    background: var(--accent-soft);
    border: 1px solid rgba(88, 101, 242, .28);
    border-radius: 14px;
}

.atouts h3 {
    margin-bottom: .5rem;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.015em;
    color: #fff;
}
.atouts p { font-size: .95rem; line-height: 1.6; color: var(--muted); }

/* Appel final */

.final {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: clamp(1rem, 2vw, 1.5rem);
    padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 5vw, 4rem);
    overflow: hidden;
    text-align: center;
    color: #fff;
    background: linear-gradient(160deg, #5865f2 0%, #4752c4 55%, #3b45ad 100%);
    border-radius: var(--radius-lg);
}
.final__mark {
    position: absolute;
    right: -4%;
    bottom: -32%;
    width: min(46%, 420px);
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: none;
    color: #fff;
    opacity: .09;
    transform: rotate(-14deg);
    pointer-events: none;
}
.final__text,
.final__action { position: relative; }
.final__title {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 800;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    line-height: 1;
    text-transform: uppercase;
    text-wrap: balance;
}
.final__sub { margin-top: .9rem; font-size: 1.05rem; color: #e9ebff; }
.final__action { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.final__url { font-size: .9rem; font-weight: 500; color: #e1e4ff; }

/* FAQ */

.faq-wrap { max-width: calc(820px + 2 * var(--gutter)); }

.faq { display: grid; gap: .75rem; }

.faq details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s ease, background-color .2s ease;
}
.faq details[open] { background: var(--surface-2); border-color: var(--line-strong); }

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 64px;
    padding: 1.1rem 1.25rem 1.1rem 1.5rem;
    cursor: pointer;
    list-style: none;
    border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    flex: none;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background:
        linear-gradient(#fff, #fff) center / 11px 1.5px no-repeat,
        linear-gradient(#fff, #fff) center / 1.5px 11px no-repeat;
    transition: transform .25s ease, background-color .2s ease, border-color .2s ease;
}
.faq details[open] summary::after {
    transform: rotate(45deg);
    background-color: var(--accent);
    border-color: var(--accent);
}

.faq h3 {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -.01em;
    color: #fff;
}

.faq details p { padding: 0 1.5rem 1.4rem; max-width: 68ch; color: var(--muted); }
.faq details a { color: var(--accent-text); text-underline-offset: 3px; overflow-wrap: anywhere; }

/* Ouverture en douceur, là où le navigateur le permet */
@supports (interpolate-size: allow-keywords) {
    .faq details { interpolate-size: allow-keywords; }
    .faq details::details-content {
        block-size: 0;
        overflow: hidden;
        transition: block-size .3s var(--ease), content-visibility .3s allow-discrete;
    }
    .faq details[open]::details-content { block-size: auto; }
}

/* ---------- Pied de page ---------- */

.footer { border-top: 1px solid var(--line); }

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    padding-block: 3rem;
}

.footer__brand {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 900;
    font-size: 1.3rem;
    line-height: 1;
    color: #fff;
}
.footer__brand span { color: var(--rouge); }
.footer__legal { margin-top: 1rem; max-width: 58ch; font-size: .85rem; line-height: 1.6; color: var(--subtle); }

.footer__links { display: flex; flex-wrap: wrap; gap: 0 1.75rem; font-size: .92rem; font-weight: 500; }
.footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--muted);
    text-decoration: none;
    transition: color .15s ease;
}
.footer__links a:hover { color: #fff; }

.tricolore { display: flex; height: 3px; padding-bottom: env(safe-area-inset-bottom); box-sizing: content-box; }
.tricolore i { flex: 1; display: block; height: 3px; }
.tricolore i:nth-child(1) { background: var(--bleu); }
.tricolore i:nth-child(2) { background: #fff; }
.tricolore i:nth-child(3) { background: var(--rouge); }

/* ==========================================================================
   Animations
   Les états « cachés » ne s'appliquent que si la classe .js est présente
   (JavaScript actif et animations non désactivées par le visiteur).
   ========================================================================== */

/* Titres : les mots montent depuis un masque */
.js [data-split] .w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding: .2em .16em .14em .06em;
    margin: -.2em -.16em -.14em -.06em;
}
.js [data-split] .w > span {
    display: inline-block;
    transform: translateY(125%);
    transition: transform .85s cubic-bezier(.2, .8, .2, 1);
    transition-delay: calc(var(--base, 0ms) + var(--w, 0) * 70ms);
}
.js [data-split].is-in .w > span { transform: none; }

/* Apparition au scroll */
.js [data-anim] {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity .7s var(--ease),
        transform .7s var(--ease),
        border-color .2s ease,
        background-color .2s ease;
    transition-delay: calc(var(--i, 0) * 80ms), calc(var(--i, 0) * 80ms), 0s, 0s;
}
.js [data-anim="side"] { transform: translateY(28px) scale(.98); }
.js [data-anim].is-in { opacity: 1; transform: none; }
/* Une fois apparues, les cartes retrouvent leur survol immédiat */
.js .atouts li.is-done { transition: border-color .2s ease, transform .2s ease; transition-delay: 0s; }
.js .atouts li.is-done:hover { transform: translateY(-3px); }

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); }
    70%  { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
@keyframes menu-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .live__dot, .menu-mobile { animation: none; }
    .btn, .btn .arrow, .atouts li, .faq summary::after, .menu-btn span,
    .menu-btn span::before, .menu-btn span::after { transition: none; }
    .faq details::details-content { transition: none; }
    .progress { display: none; }
}

/* ==========================================================================
   Tablette et mobile
   ========================================================================== */

/* Écrans tactiles : pas d'effet de survol qui reste « collé » après un tap */
@media (hover: none) {
    .atouts li:hover,
    .js .atouts li.is-done:hover,
    .btn--discord:hover,
    .btn--light:hover,
    .btn:hover .arrow { transform: none; }
    .atouts li:hover { border-color: var(--line); }
}

@media (max-width: 1080px) {
    .atouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablette */
@media (max-width: 900px) {
    .jeu,
    .vocal { grid-template-columns: minmax(0, 1fr); }

    .showcase__media { aspect-ratio: 4 / 3; }
    .showcase__media img { object-position: 50% 100%; }

    /* Le widget Discord prend toute la largeur du panneau */
    .vocal__widget { justify-self: stretch; }
    .vocal__iframe { width: 100%; height: 440px; }
}

/* Navigation : liens remplacés par le menu */
@media (max-width: 860px) {
    .nav { display: none; }
    .menu-ready .menu-btn { display: block; }
}
@media (min-width: 861px) {
    .menu-mobile { display: none !important; }
}

/* Mobile */
@media (max-width: 600px) {
    :root { --radius-lg: 22px; }

    .header__bar { padding-left: 1.1rem; }

    .atouts { grid-template-columns: minmax(0, 1fr); }
    .atouts li { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem; }
    .atout__icon { margin-bottom: 0; }
    .atout__body { min-width: 0; }

    .hero__actions { width: 100%; }
    .hero__actions .btn,
    .final .btn,
    .jeu__cta .btn,
    .vocal__cta .btn { width: 100%; }
    .final__action { width: 100%; }

    /* Le visuel carré s'affiche en entier */
    .showcase__media { aspect-ratio: 1 / 1; }

    .fiche dl > div { flex-direction: column; gap: .15rem; }
    .fiche dd { text-align: left; }

    .faq summary { padding: 1rem 1rem 1rem 1.15rem; }
    .faq details p { padding: 0 1.15rem 1.25rem; }

    .footer__inner { padding-block: 2.5rem; }
}

/* Très petits écrans */
@media (max-width: 400px) {
    .header__bar { gap: .4rem; padding-left: .95rem; padding-right: .4rem; }
    .brand { font-size: 1.1rem; gap: .25rem; }
    .nav-cta { padding: 0 .9rem; font-size: .86rem; }
    .header__actions { gap: .35rem; }

    .eyebrow { font-size: .78rem; }

    /* Chiffres clés en lignes plutôt qu'en colonnes */
    .facts { grid-template-columns: minmax(0, 1fr); }
    .facts li {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem 1.15rem;
        text-align: left;
    }
    .facts li + li { border-left: 0; border-top: 1px solid var(--line); }
    .facts span { margin-top: 0; text-align: right; }
}

/* Écrans de 320 px (anciens iPhone SE, petits Android) */
@media (max-width: 350px) {
    .header__bar { padding-left: .8rem; padding-right: .35rem; }
    .brand { font-size: 1rem; }
    .nav-cta { min-height: 40px; padding: 0 .75rem; font-size: .82rem; }
    .menu-btn { width: 40px; height: 40px; }

    .eyebrow { gap: .45rem; padding: .35rem .75rem .35rem .45rem; font-size: .72rem; }
    .flag { width: 19px; height: 13px; }
}

/* Téléphone en paysage : l'en-tête ne reste pas collé, pour garder de la place */
@media (max-height: 480px) and (orientation: landscape) {
    .header { position: relative; }
    html { scroll-padding-top: 1rem; }
    .hero { padding-top: 2rem; }
    .hero h1 { margin-block: 1rem; font-size: clamp(1.8rem, 5.4vw, 2.75rem); }
    .hero__actions { margin-top: 1.5rem; }
    .showcase__media { aspect-ratio: 16 / 9; }
    .showcase__media img { object-position: 50% 64%; }
}

/* Très grands écrans */
@media (min-width: 1800px) {
    :root { --wrap: 1280px; }
    html { font-size: 106.25%; }
}

/* Impression */
@media print {
    .header, .progress, .hero__glow, .vocal__widget, .menu-mobile { display: none !important; }
    body { background: #fff; color: #000; }
    .js [data-anim], .js [data-split] .w > span { opacity: 1 !important; transform: none !important; }
}
