/* ====================================================================
   FLORIAN SIRIEIX — Keynote
   Style : Apple keynote moderne, images XL, parallax
   ==================================================================== */

:root {
    --bg:         #f5f5f7;
    --bg-deep:    #ffffff;
    --bg-dark:    #0a0a0c;
    --ink:        #1d1d1f;
    --ink-mute:   #6e6e73;
    --ink-faint:  #a1a1a6;
    --accent:     #ff5d3b;
    --accent-2:   #2563eb;

    --max:        1400px;
    --gutter:     clamp(1.5rem, 4vw, 4rem);

    --shadow-card:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 12px 32px rgba(0, 0, 0, 0.06),
        0 32px 64px rgba(0, 0, 0, 0.04);
    --shadow-card-hover:
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 24px 48px rgba(0, 0, 0, 0.12),
        0 48px 96px rgba(0, 0, 0, 0.08);

    --t-fast:     280ms cubic-bezier(.2,.7,.2,1);
    --t-base:     480ms cubic-bezier(.2,.7,.2,1);
    --t-slow:     900ms cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   Navbar sticky discrète
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1rem var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--ink);
    transition: backdrop-filter var(--t-fast), background var(--t-base);
}
.navbar.scrolled {
    background: rgba(245, 245, 247, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.navbar-brand {
    font-weight: 700;
    color: white;
    font-size: 0.95rem;
    transition: color var(--t-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    min-width: 0;
    flex: 0 1 auto;
}
.navbar-brand-img {
    width: 2em;
    height: 2em;
    border-radius: 50%;
    object-fit: cover;
}
.navbar.scrolled .navbar-brand { color: var(--ink); }
.navbar-links {
    display: flex;
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: center;
}
.navbar-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: color var(--t-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.navbar-links a svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}
.navbar-links a:hover { color: white; }
.navbar.scrolled .navbar-links a { color: var(--ink-mute); }
.navbar.scrolled .navbar-links a:hover { color: var(--ink); }

/* Sélecteur de langue */
.navbar-lang {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.15rem 0.35rem;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}
.navbar-lang .lang-link {
    color: rgba(255,255,255,0.7);
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    font-weight: 600;
    line-height: 1;
    transition: background var(--t-fast), color var(--t-fast);
}
.navbar-lang .lang-link:hover { color: #fff; }
.navbar-lang .lang-link.is-active {
    background: rgba(255,255,255,0.18);
    color: #fff;
}
.navbar.scrolled .navbar-lang { border-color: rgba(15,23,42,0.18); }
.navbar.scrolled .navbar-lang .lang-link { color: var(--ink-mute); }
.navbar.scrolled .navbar-lang .lang-link:hover { color: var(--ink); }
.navbar.scrolled .navbar-lang .lang-link.is-active {
    background: rgba(15,23,42,0.1);
    color: var(--ink);
}

/* Bouton burger (mobile uniquement) */
.navbar-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.navbar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform .25s, opacity .25s, background var(--t-fast);
}
.navbar.scrolled .navbar-toggle span { background: var(--ink); }
.navbar-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Bouton de fermeture du menu mobile (masqué sur desktop) */
.navbar-close { display: none; }

@media (max-width: 820px) {
    .navbar-toggle { display: flex; }
    .navbar-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        width: 80vw;
        max-width: 320px;
        box-sizing: border-box;
        flex-direction: column;
        gap: 0;
        padding: 5rem 2rem 2rem;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        transform: translateX(100%);
        transition: transform .3s cubic-bezier(.4,0,.2,1);
        box-shadow: -10px 0 40px rgba(0,0,0,.3);
        align-items: stretch;
        z-index: 60; /* au-dessus de l'overlay (49) et du contenu */
        overflow-x: hidden;
        overflow-y: auto;
    }
    .navbar-links.is-open { transform: translateX(0); }
    .navbar-links a {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        color: rgba(255,255,255,.85);
        padding: .9rem 0;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .navbar.scrolled .navbar-links a { color: rgba(255,255,255,.85); }
    body.navbar-open { overflow: hidden; }
    body.navbar-open::after {
        content: '';
        position: fixed; inset: 0;
        background: rgba(0,0,0,.4);
        z-index: 49;
    }
    /* Bouton de fermeture (croix) en haut à droite du panneau */
    .navbar-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 2.4rem;
        height: 2.4rem;
        border: none;
        background: rgba(255,255,255,.08);
        color: rgba(255,255,255,.9);
        border-radius: 50%;
        cursor: pointer;
        transition: background var(--t-fast), color var(--t-fast);
        padding: 0;
    }
    .navbar-close:hover,
    .navbar-close:focus-visible {
        background: rgba(255,255,255,.18);
        color: white;
        outline: none;
    }
    .navbar-close svg { width: 1.1rem; height: 1.1rem; }
    /* Sur mobile, on cache le sélecteur de langue normal et on en met une copie
       en bas du panneau via le même bloc — la version dans le menu reste lisible. */
    .navbar-lang { align-self: flex-start; margin-top: .9rem; }
}

/* ============================================================
   HERO plein écran sombre, type Apple event
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--bg-dark);
    color: white;
    overflow: hidden;
    padding: 8rem var(--gutter) 6rem;
}

.hero-bg {
    position: absolute;
    inset: -10%;
    z-index: 0;
    will-change: transform;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1800ms ease-in-out;
    will-change: opacity;
    transform: scale(1.05);
}
.hero-slide.active {
    opacity: 1;
    animation: kenburns 8s ease-out forwards;
}
@keyframes kenburns {
    from { transform: scale(1.05); }
    to   { transform: scale(1.12); }
}

/* Overlay sombre par-dessus les images pour la lisibilité */
.hero-darken {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(10, 10, 12, 0.55) 0%,
            rgba(10, 10, 12, 0.40) 50%,
            rgba(10, 10, 12, 0.75) 100%),
        radial-gradient(ellipse at 20% 30%, rgba(255, 93, 59, 0.20), transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(37, 99, 235, 0.15), transparent 50%);
    pointer-events: none;
}
@keyframes bgDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(2%, -3%) scale(1.05); }
    66%      { transform: translate(-3%, 2%) scale(1.02); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1100px;
}

.hero-eyebrow {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: heroFade 700ms cubic-bezier(.2,.7,.2,1) 100ms forwards;
}

.hero-name {
    font-family: 'Fraunces', -apple-system, sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 11vw, 9rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
    margin: 0;
    background: linear-gradient(180deg, #ffffff 0%, #b0b0b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    animation: heroFade 900ms cubic-bezier(.2,.7,.2,1) 200ms forwards;
}
.hero-name em {
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(180deg, var(--accent) 0%, #f93b85 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-tagline {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 640px;
    margin: 2rem auto 0;
    line-height: 1.5;
    opacity: 0;
    animation: heroFade 700ms cubic-bezier(.2,.7,.2,1) 500ms forwards;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    opacity: 0;
    animation: heroFade 700ms cubic-bezier(.2,.7,.2,1) 700ms forwards;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.scroll-cue {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.5);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: heroFade 700ms cubic-bezier(.2,.7,.2,1) 900ms forwards;
}
.scroll-cue::after {
    content: '';
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%, 100% { transform: scaleY(0.5); transform-origin: top; }
    50%      { transform: scaleY(1);   transform-origin: top; }
}

@keyframes heroFade {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   MANIFESTO plein écran — version améliorée
   ============================================================ */
.manifesto {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(6rem, 12vw, 10rem) var(--gutter);
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255, 93, 59, 0.04), transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(37, 99, 235, 0.04), transparent 50%),
        var(--bg);
    position: relative;
    overflow: hidden;
}
.manifesto::before,
.manifesto::after {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 900;
    font-size: clamp(10rem, 28vw, 24rem);
    line-height: 0.8;
    color: var(--ink);
    opacity: 0.05;
    position: absolute;
    pointer-events: none;
    user-select: none;
}
.manifesto::before {
    content: '\201C';
    top: clamp(2rem, 5vw, 5rem);
    left: clamp(1rem, 4vw, 4rem);
}
.manifesto::after {
    content: '\201D';
    bottom: clamp(0rem, 1vw, 1rem);
    right: clamp(1rem, 4vw, 4rem);
}

.manifesto-content {
    position: relative;
    max-width: 1100px;
    text-align: center;
    z-index: 2;
}

.manifesto-line {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(1.8rem, 4.5vw, 4rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin: 0 0 0.5rem;
    color: var(--ink-faint);
    transition: color 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
    transform: translateY(15px);
}
.manifesto-line.lit {
    color: var(--ink);
    transform: translateY(0);
}
.manifesto-line strong {
    background: linear-gradient(120deg, var(--accent), #f93b85);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
    font-weight: 700;
}
.manifesto-line em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.manifesto-signature {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    color: var(--ink-mute);
    margin: 2.5rem 0 0;
    opacity: 0;
    transition: opacity 800ms 500ms ease;
}
.manifesto-signature::before {
    content: '— ';
    color: var(--accent);
}
.manifesto.is-revealed .manifesto-signature { opacity: 1; }

/* ============================================================
   STATS animées + frise chronologique
   ============================================================ */
.stats-section {
    padding: clamp(5rem, 10vw, 9rem) var(--gutter) clamp(3rem, 6vw, 6rem);
    background: var(--bg);
    text-align: center;
    position: relative;
}
.stats-eyebrow {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: var(--bg-deep);
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.stats-title {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 7vw, 6rem);
    line-height: 1;
    letter-spacing: -0.035em;
    margin: 0 0 4rem;
}
.stats-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--ink-mute);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    max-width: 900px;
    margin: 0 auto 5rem;
}
.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    position: relative;
}
.stat-card .stat-num {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, var(--ink) 0%, var(--ink-mute) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-feature-settings: "tnum" 1, "lnum" 1;
}
.stat-card .stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
    font-weight: 600;
}
.stat-card.is-accent .stat-num {
    background: linear-gradient(135deg, var(--accent), #f93b85);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Frise chronologique */
.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}
.timeline-track {
    position: relative;
    height: 2px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 1px;
}
.timeline-track::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--accent), #f93b85, var(--accent-2));
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.8s cubic-bezier(.2,.7,.2,1);
}
.stats-section.is-revealed .timeline-track::after {
    transform: scaleX(1);
}

.timeline-dot {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--accent);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 400ms cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 2px 8px rgba(255, 93, 59, 0.3);
}
.timeline-dot.highlight {
    background: var(--accent);
    box-shadow: 0 4px 16px rgba(255, 93, 59, 0.5);
}
.stats-section.is-revealed .timeline-dot {
    transform: translate(-50%, -50%) scale(1);
}
.stats-section.is-revealed .timeline-dot:nth-child(2) { transition-delay: 800ms; }
.stats-section.is-revealed .timeline-dot:nth-child(3) { transition-delay: 1000ms; }
.stats-section.is-revealed .timeline-dot:nth-child(4) { transition-delay: 1200ms; }
.stats-section.is-revealed .timeline-dot:nth-child(5) { transition-delay: 1400ms; }
.stats-section.is-revealed .timeline-dot:nth-child(6) { transition-delay: 1600ms; }
.stats-section.is-revealed .timeline-dot:nth-child(7) { transition-delay: 1800ms; }

.timeline-years {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink-mute);
}
.timeline-years span.highlight { color: var(--accent); }

/* ============================================================
   MES JEUX — style index.php (a-intro / boites-intro)
   ============================================================ */
.games-classic {
    background: var(--bg);
    padding: clamp(5rem, 10vw, 8rem) var(--gutter) clamp(3rem, 6vw, 5rem);
    text-align: center;
}
.games-classic > * {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
}
.classic-header {
    margin-bottom: clamp(2rem, 5vw, 4rem);
}
.classic-eyebrow {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: var(--bg-deep);
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.classic-title {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 7vw, 6rem);
    line-height: 1;
    letter-spacing: -0.035em;
    margin: 0;
}
.classic-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--ink-mute);
}

.classic-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem 0.25rem;
}

.a-intro {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem;
    text-align: center;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform var(--t-base), box-shadow var(--t-base);
    width: 200px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    padding: 1rem 0.75rem 0.85rem;
    box-shadow: 0 4px 14px rgba(21, 23, 43, 0.06);
}
.a-intro br { display: none; }
.a-intro small {
    display: block;
    color: var(--ink-faint);
    font-weight: 500;
    font-size: 0.75rem;
    margin-top: 0.15rem;
    letter-spacing: 0.05em;
}
.a-intro:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(21, 23, 43, 0.14);
}
.a-intro:hover small { color: var(--ink-mute); }

.boites-intro {
    width: 80%;
    height: 136px;
    object-fit: contain;
    object-position: center center;
    transition: filter var(--t-base), transform var(--t-base);
}
.a-intro:hover .boites-intro {
    transform: scale(1.04) rotate(-1.5deg);
}

@media (max-width: 600px) {
    .classic-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    .a-intro {
        width: auto;
        margin: 0;
        padding: 0.7rem 0.5rem 0.6rem;
    }
    .boites-intro { height: 104px; }
}

/* ============================================================
   BADGE PRIMÉ sur les cartes jeu de la grille (héritage)
   ============================================================ */
.game-award {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    background: linear-gradient(135deg, #ffd166, #f4a460);
    color: #4d2f10;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 12px rgba(244, 164, 96, 0.4);
}
.game-award svg { width: 12px; height: 12px; }

/* ============================================================
   SECTION TITLE (sticky-ish)
   ============================================================ */
.section-intro {
    padding: clamp(6rem, 12vw, 10rem) var(--gutter) clamp(2rem, 5vw, 4rem);
    max-width: var(--max);
    margin: 0 auto;
    text-align: center;
}
.section-eyebrow {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: var(--bg-deep);
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.section-title {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 7vw, 6rem);
    line-height: 1;
    letter-spacing: -0.035em;
    margin: 0 0 1rem;
    color: var(--ink);
}
.section-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--ink-mute);
}
.section-sub {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--ink-mute);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   GRILLE DES JEUX (images XL)
   ============================================================ */
.games-grid {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter) clamp(4rem, 8vw, 7rem);
}

.year-divider {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: clamp(3rem, 6vw, 5rem) 0 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, var(--bg) 70%, transparent);
    z-index: 10;
    padding-top: 5rem;
    margin-top: -1.5rem;
}
.year-divider .year {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--ink);
    font-feature-settings: "tnum" 1, "lnum" 1;
}
.year-divider .year-count {
    font-size: 0.8rem;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
}

.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

/* Carte jeu avec image XL */
.game {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: transform var(--t-base);
}
.game:hover { transform: translateY(-8px); }

.game-cover {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-deep);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--t-base);
}
.game:hover .game-cover {
    box-shadow: var(--shadow-card-hover);
}

.game-cover .cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16%;
    will-change: transform;
    transition: transform var(--t-slow);
}
.game-cover.is-photo .cover-img {
    object-fit: contain;
    padding: 12%;
    inset: 0;
    width: 100%;
    height: 100%;
}
.game:hover .cover-img { transform: scale(1.04) translateY(-2%); }

.game-cover .cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.5));
    opacity: 0;
    transition: opacity var(--t-base);
}
.game:hover .cover-overlay { opacity: 1; }

.game-cover .play {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    background: white;
    color: var(--ink);
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateY(8px);
    opacity: 0;
    transition: transform var(--t-base), opacity var(--t-base);
}
.game:hover .play {
    transform: translateY(0);
    opacity: 1;
}
.game-cover .play svg { width: 16px; height: 16px; }

.game-info {
    padding: 0 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}
.game-name {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 1.6vw, 1.5rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0;
    color: var(--ink);
}
.game-meta {
    font-size: 0.85rem;
    color: var(--ink-mute);
    margin: 0.3rem 0 0;
}
.game-tag {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

/* ============================================================
   SPOTLIGHT (sections plein écran pour les best-sellers)
   ============================================================ */
.spotlight {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 6rem);
    align-items: center;
    padding: clamp(5rem, 10vw, 8rem) var(--gutter);
    overflow: hidden;
}

.spotlight-media {
    position: relative;
    aspect-ratio: 4 / 5;
    max-height: 80vh;
    border-radius: 32px;
    overflow: hidden;
    will-change: transform;
}
.spotlight-bg {
    position: absolute;
    inset: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    object-fit: cover;
    will-change: transform;
    transition: transform var(--t-slow);
}
.spotlight-media:hover .spotlight-bg { transform: scale(1.04); }
.spotlight-media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.spotlight-award {
    position: absolute;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 3;
    width: clamp(120px, 16vw, 180px);
    height: clamp(120px, 16vw, 180px);
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5));
    transition: transform var(--t-base);
    animation: medalIn 1s cubic-bezier(.34,1.56,.64,1) 0.3s both;
}
.spotlight-award img { width: 100%; height: 100%; object-fit: contain; }
.spotlight-award.secondary {
    right: auto;
    left: 1.75rem;
    animation-delay: 0.5s;
}
.spotlight-award.kinderspiel {
    width: clamp(84px, 11.2vw, 126px);
    height: clamp(84px, 11.2vw, 126px);
}
.spotlight:hover .spotlight-award {
    transform: scale(1.08) rotate(-6deg);
}
.spotlight:hover .spotlight-award.secondary {
    transform: scale(1.08) rotate(6deg);
}
@keyframes medalIn {
    from { opacity: 0; transform: scale(0.3) rotate(-30deg); }
    to   { opacity: 1; transform: scale(1)   rotate(0deg); }
}

.spotlight-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 560px;
}

.spotlight-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    align-self: flex-start;
}
.spotlight-eyebrow .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px currentColor;
    opacity: 0.25;
}
.spotlight-eyebrow .dot::after {
    content: '';
    display: block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 4;
}

.spotlight-title {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: clamp(2.8rem, 7vw, 6rem);
    line-height: 0.92;
    letter-spacing: -0.035em;
    margin: 0;
}
.spotlight-title em {
    font-style: italic;
    font-weight: 400;
}

.spotlight-tagline {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    line-height: 1.4;
    margin: 0;
    opacity: 0.85;
}

.spotlight-desc {
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    line-height: 1.65;
    margin: 0;
    opacity: 0.75;
    max-width: 480px;
}

.spotlight-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0.5rem 0 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    border-color: rgba(255, 255, 255, 0.1);
}
.spotlight-stats .stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.spotlight-stats .stat .v {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1;
    letter-spacing: -0.02em;
}
.spotlight-stats .stat .l {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    opacity: 0.6;
}

.spotlight-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    align-self: flex-start;
    transition: transform var(--t-fast), box-shadow var(--t-base);
}
.spotlight-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px currentColor;
}
.spotlight-cta svg { width: 18px; height: 18px; }

/* ===== Variante DARK : La Planche (océan, dorée) ===== */
.spotlight.dark {
    background:
        radial-gradient(ellipse at 30% 60%, rgba(244, 164, 96, 0.08), transparent 60%),
        radial-gradient(ellipse at 70% 40%, rgba(70, 130, 180, 0.10), transparent 60%),
        linear-gradient(180deg, var(--bg-dark) 0%, #0e0e18 100%);
    color: white;
}
.spotlight.dark .spotlight-eyebrow {
    background: rgba(255, 230, 150, 0.18);
    color: #ffd166;
    border: 1px solid rgba(255, 209, 102, 0.45);
}
.spotlight.dark .spotlight-title {
    color: #ffffff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}
.spotlight.dark .spotlight-title em { color: #ffd166; }
.spotlight.dark .spotlight-tagline {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}
.spotlight.dark .spotlight-desc { color: rgba(255, 255, 255, 0.85); }
.spotlight.dark .spotlight-stats {
    border-color: rgba(255, 255, 255, 0.12);
}
.spotlight.dark .spotlight-stats .stat .l {
    color: rgba(255, 255, 255, 0.5);
}
.spotlight.dark .spotlight-cta {
    background: #f4a460;
    color: var(--bg-dark);
}
.spotlight.dark .spotlight-cta:hover {
    box-shadow: 0 12px 32px rgba(244, 164, 96, 0.3);
}

/* ===== Variante LIGHT : L'Île des Mookies (tropical) ===== */
.spotlight.light {
    background:
        radial-gradient(ellipse at 70% 40%, rgba(255, 105, 180, 0.10), transparent 60%),
        radial-gradient(ellipse at 30% 70%, rgba(100, 220, 160, 0.10), transparent 60%),
        linear-gradient(180deg, #fffaf2 0%, #fff5e6 100%);
    color: var(--ink);
}
.spotlight.light .spotlight-eyebrow {
    background: rgba(236, 72, 153, 0.10);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.25);
}
.spotlight.light .spotlight-title em { color: #ec4899; }
.spotlight.light .spotlight-tagline { color: var(--ink-mute); }
.spotlight.light .spotlight-desc { color: var(--ink-mute); }
.spotlight.light .spotlight-stats {
    border-color: rgba(0, 0, 0, 0.10);
}
.spotlight.light .spotlight-stats .stat .l {
    color: var(--ink-faint);
}
.spotlight.light .spotlight-cta {
    background: #ec4899;
    color: white;
}
.spotlight.light .spotlight-cta:hover {
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.3);
}

/* Image à droite par défaut, inversée pour la 2e */
.spotlight.reverse {
    direction: rtl;
}
.spotlight.reverse > * { direction: ltr; }

/* Responsive */
@media (max-width: 900px) {
    .spotlight {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        min-height: auto;
    }
    .spotlight.reverse { direction: ltr; }
    .spotlight-media { max-height: 70vh; aspect-ratio: 4/4; }
}

/* ============================================================
   BEST-SELLERS (ancien layout cards, conservé en fallback)
   ============================================================ */
.bestsellers {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(5rem, 10vw, 8rem) var(--gutter) clamp(2rem, 5vw, 4rem);
}
.bestsellers-intro {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.bestsellers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
}
.bestseller {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-deep);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--t-base), box-shadow var(--t-base);
    color: var(--ink);
    isolation: isolate;
}
.bestseller:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-hover);
}
.bestseller-media {
    position: relative;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    background: var(--bg);
}
.bestseller-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    transition: transform var(--t-slow);
}
.bestseller:hover .bestseller-media img { transform: scale(1.05); }
.bestseller-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.45) 100%);
}
.bestseller-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.bestseller-badge .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 93, 59, 0.25);
}

/* Médaille As d'Or en overlay sur l'image best-seller */
.bestseller-award {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 2;
    width: clamp(80px, 12vw, 130px);
    height: clamp(80px, 12vw, 130px);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
    transition: transform var(--t-base);
}
.bestseller-award img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.bestseller:hover .bestseller-award {
    transform: scale(1.08) rotate(-5deg);
}
.bestseller-content {
    padding: clamp(1.5rem, 3vw, 2rem);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.bestseller-name {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--ink);
}
.bestseller-meta {
    font-size: 0.85rem;
    color: var(--ink-mute);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}
.bestseller-desc {
    font-size: 1rem;
    color: var(--ink-mute);
    margin: 0;
    line-height: 1.55;
    flex: 1;
}
.bestseller-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-top: 0.5rem;
}
.bestseller-stat .num {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.02em;
}
.bestseller-stat .lbl {
    font-size: 0.85rem;
    color: var(--ink-mute);
    font-weight: 500;
}
.bestseller-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.7rem 1.3rem;
    background: var(--ink);
    color: white;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    align-self: flex-start;
    transition: background var(--t-fast), transform var(--t-fast);
}
.bestseller:hover .bestseller-cta {
    background: var(--accent);
    transform: translateX(4px);
}
.bestseller-cta svg { width: 14px; height: 14px; }

/* En mobile : empilé */
@media (max-width: 720px) {
    .bestsellers-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   CTA finale full-screen — version améliorée avec cards
   ============================================================ */
.final {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(5rem, 10vw, 8rem) var(--gutter);
    background: var(--bg-dark);
    color: white;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.final::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(255, 93, 59, 0.18), transparent 60%),
        radial-gradient(ellipse at 70% 70%, rgba(37, 99, 235, 0.15), transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 215, 100, 0.08), transparent 70%);
    filter: blur(40px);
    animation: bgDrift 24s ease-in-out infinite;
}
.final-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* CARDS finales */
.final-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.5vw, 1.75rem);
    margin: clamp(2rem, 5vw, 4rem) auto 0;
    max-width: 1100px;
}
.final-card {
    position: relative;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    text-align: left;
    transition: transform var(--t-base), background var(--t-base),
                border-color var(--t-base), box-shadow var(--t-base);
    overflow: hidden;
    isolation: isolate;
}
.final-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg,
        rgba(255, 93, 59, 0) 0%,
        rgba(255, 93, 59, 0.12) 100%);
    opacity: 0;
    transition: opacity var(--t-base);
}
.final-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 93, 59, 0.4);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 93, 59, 0.2);
}
.final-card:hover::before { opacity: 1; }

.final-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 93, 59, 0.12);
    border: 1px solid rgba(255, 93, 59, 0.2);
    color: var(--accent);
    transition: transform var(--t-base);
}
.final-card:hover .icon {
    transform: rotate(-6deg) scale(1.08);
}
.final-card h3 {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    color: white;
}
.final-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1.25rem;
}
.final-card .arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 600;
    transition: gap var(--t-fast);
}
.final-card:hover .arrow-link { gap: 0.8rem; }
.final-card .arrow-link svg { width: 14px; height: 14px; }

.final-signature {
    margin-top: clamp(3rem, 6vw, 5rem);
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    color: rgba(255, 255, 255, 0.5);
}
.final-signature strong {
    color: white;
    font-weight: 500;
}

@media (max-width: 720px) {
    .final-cards {
        grid-template-columns: 1fr;
    }
}
.final-eyebrow {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
}
.final-title {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0 0 2.5rem;
    background: linear-gradient(180deg, white, #b0b0b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.final-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.8rem;
    background: white;
    color: var(--ink);
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform var(--t-fast), background var(--t-base);
}
.btn-pill:hover {
    transform: translateY(-3px);
    background: var(--accent);
    color: white;
}
.btn-pill.outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-pill.outline:hover {
    background: white;
    color: var(--ink);
    border-color: white;
}

/* ============================================================
   Colophon
   ============================================================ */
.colophon {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.5);
    padding: 2rem var(--gutter);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}
.colophon .socials { display: flex; gap: 1.25rem; }
.colophon a { transition: color var(--t-fast); }
.colophon a:hover { color: white; }

/* ============================================================
   Reveal au scroll
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 900ms cubic-bezier(.2,.7,.2,1),
        transform 900ms cubic-bezier(.2,.7,.2,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }

/* ============================================================
   MES JEUX EN DÉTAIL (chaque jeu en card large)
   ============================================================ */
.games-detail-section {
    padding: clamp(4rem, 8vw, 6rem) var(--gutter);
    background:
        radial-gradient(ellipse at 70% 40%, rgba(255, 105, 180, 0.10), transparent 60%),
        radial-gradient(ellipse at 30% 70%, rgba(100, 220, 160, 0.10), transparent 60%),
        linear-gradient(180deg, #fffaf2 0%, #fff5e6 100%);
}
.games-detail-section > * {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
}
.games-detail-header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}
.games-detail-header .section-eyebrow {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: var(--bg-deep);
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.games-detail-header .section-title {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1;
    letter-spacing: -0.035em;
    margin: 0;
    color: var(--ink);
}
.games-detail-header .section-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--ink-mute);
}
.games-detail-header .section-sub {
    color: var(--ink-mute);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    margin: 1rem auto 0;
    max-width: 640px;
}

.game-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding: clamp(2rem, 5vw, 4rem) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    scroll-margin-top: 80px;
}
.game-detail.reverse { direction: rtl; }
.game-detail.reverse > * { direction: ltr; }

.game-detail-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--bg-deep);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.game-detail-media img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 600ms cubic-bezier(.2,.7,.2,1);
    mix-blend-mode: multiply;
}
.game-detail:hover .game-detail-media img {
    transform: scale(1.05) rotate(-2deg);
}
.game-detail-award {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    width: clamp(70px, 10vw, 110px);
    height: clamp(70px, 10vw, 110px);
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.25));
}
.game-detail-award img { width: 100%; height: 100%; object-fit: contain; }
.game-detail-award.secondary {
    right: auto;
    left: 1.25rem;
}
.game-detail-award.kinderspiel {
    width: clamp(49px, 7vw, 77px);
    height: clamp(49px, 7vw, 77px);
}

.game-detail-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.game-detail-title {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.025em;
    margin: 0 0 1rem;
    color: var(--ink);
}
.game-detail-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}
.game-detail-tagline {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--ink-mute);
    margin: 0 0 1rem;
    line-height: 1.4;
}
.game-detail-desc {
    color: var(--ink-mute);
    line-height: 1.6;
    margin: 0 0 1.25rem;
}
.game-detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: var(--bg);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--ink-mute);
}
.stat-chip strong { color: var(--ink); font-weight: 700; }

/* Sous-titre du jeu (h2 original) */
.game-detail-subtitle {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: var(--ink-mute);
    margin: -0.5rem 0 1rem;
}

/* Co-auteur bouton cliquable */
.game-detail-coauthor {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    background: var(--bg);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--ink-mute);
    margin: 0 0 1rem;
    border: 1px solid rgba(0,0,0,0.08);
    text-decoration: none;
    transition: all var(--t-fast);
    /* Garde une hauteur constante (avec ou sans avatar) pour éviter le décalage
       de baseline entre boutons voisins. */
    min-height: 2.4rem;
    vertical-align: middle;
    box-sizing: border-box;
}
.game-detail-coauthor strong { color: var(--ink); font-weight: 600; }
.game-detail-coauthor svg {
    flex-shrink: 0;
    transition: transform var(--t-fast);
}
.game-detail-coauthor:hover {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
    transform: translateY(-2px);
}
.game-detail-coauthor:hover strong { color: white; }
.game-detail-coauthor:hover svg { transform: translateX(3px); }
/* Mini-portrait (ou initiales) dans les boutons co-auteur / illustrateur */
.game-detail-person-avatar {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin: 0 0.15rem 0 -0.4rem;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
    box-sizing: border-box;
    display: block;
    vertical-align: middle;
}
.game-detail-person-avatar.is-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.08);
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
}
.game-detail-coauthor:hover .game-detail-person-avatar.is-initials {
    background: rgba(255,255,255,0.18);
    color: white;
}

/* Texte de présentation : plusieurs paragraphes */
.game-detail-text {
    margin: 0 0 1.25rem;
}
.game-detail-text p {
    color: var(--ink);
    line-height: 1.65;
    margin: 0 0 0.85rem;
}
.game-detail-text p:last-child { margin-bottom: 0; }
.game-detail-text strong { color: var(--ink); font-weight: 700; }
.game-detail-text em { color: var(--accent); font-style: italic; }

/* Boutons règles + ressources */
.game-detail-resources {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}
.rule-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    background: var(--ink);
    color: white;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--t-fast), transform var(--t-fast);
}
.rule-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}
.rule-btn svg { flex-shrink: 0; }

/* Bouton vidéo : variante accent pour se distinguer des règles */
.rule-btn.video-btn {
    background: linear-gradient(135deg, var(--accent), #f93b85);
    box-shadow: 0 8px 20px rgba(255, 93, 59, 0.25);
}
.rule-btn.video-btn:hover {
    background: linear-gradient(135deg, #f93b85, var(--accent));
    box-shadow: 0 12px 28px rgba(255, 93, 59, 0.35);
    transform: translateY(-2px);
}

@media (max-width: 820px) {
    .game-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .game-detail.reverse { direction: ltr; }
    .game-detail-media { aspect-ratio: 4/3; }
}

/* ============================================================
   CO-AUTEURS
   ============================================================ */
.coauthors-section {
    background: var(--bg);
    padding: clamp(4rem, 8vw, 6rem) var(--gutter);
}
.coauthors-section .games-detail-header { max-width: 800px; margin: 0 auto clamp(2rem, 4vw, 3rem); }

.coauthors-list {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    max-width: var(--max);
    margin: 0 auto;
}

.coauthor-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: var(--bg-deep);
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: transform var(--t-fast), box-shadow var(--t-base);
}
.coauthor-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.08);
}

.coauthor-avatar {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent), #f93b85);
    display: grid;
    place-items: center;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    flex-shrink: 0;
}
.coauthor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.coauthor-initials {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: 4rem;
    color: white;
    letter-spacing: -0.05em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.coauthor-info {
    min-width: 0;
}
.coauthor-name {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--ink);
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}
.coauthor-desc {
    color: var(--ink);
    line-height: 1.65;
    margin: 0 0 1.25rem;
    font-size: 1rem;
}
.coauthor-desc em { color: var(--accent); font-style: italic; }
.coauthor-desc strong { color: var(--ink); font-weight: 700; }

.coauthor-games {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.6rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(0,0,0,0.1);
}
.coauthor-games-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: var(--ink-mute);
    margin-right: 0.5rem;
}
.coauthor-game-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.95rem;
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--t-fast);
    text-decoration: none;
}
.coauthor-game-chip:hover {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
    transform: translateY(-2px);
}

@media (max-width: 720px) {
    .coauthor-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .coauthor-avatar {
        margin: 0 auto;
        width: 140px;
        height: 140px;
    }
    .coauthor-initials { font-size: 3rem; }
    .coauthor-games { justify-content: center; }
}

/* ============================================================
   À PROPOS (bio)
   ============================================================ */
.about-section {
    background: var(--bg-deep);
    padding: clamp(4rem, 8vw, 6rem) var(--gutter);
}
.about-inner {
    max-width: 800px;
    margin: 0 auto;
}
.about-header {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}
.about-header .section-eyebrow {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}
.about-header .section-title {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1;
    letter-spacing: -0.035em;
    margin: 0;
}
.about-header .section-title em { font-style: italic; font-weight: 400; color: var(--ink-mute); }

.about-portrait {
    text-align: center;
    margin: 0 auto 2rem;
}
.about-portrait img {
    width: clamp(140px, 18vw, 200px);
    height: clamp(140px, 18vw, 200px);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12), 0 0 0 8px white;
    display: inline-block;
}

.about-bio p {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.7;
    color: var(--ink);
    margin: 0 0 1rem;
}

.about-video {
    margin: 2.5rem 0;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}
.about-video img { width: 100%; height: auto; display: block; }
.about-video figcaption {
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    text-align: center;
}

.about-chapters {
    margin: 3rem 0;
}
.about-chapters h3 {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    color: var(--ink);
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.02em;
}
.about-chapters h4 {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent);
    margin: 2rem 0 0.5rem;
}
.about-chapters p {
    color: var(--ink);
    line-height: 1.7;
    margin: 0 0 1rem;
}

/* Accordéons des chapitres */
.about-chapter {
    border-top: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
}
.about-chapter:last-of-type {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.about-chapter > summary {
    list-style: none;
    cursor: pointer;
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--ink);
    letter-spacing: -0.015em;
    transition: color var(--t-fast);
    user-select: none;
}
.about-chapter > summary::-webkit-details-marker { display: none; }
.about-chapter > summary::after {
    content: '';
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid rgba(0,0,0,0.1);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
    transition: transform var(--t-base), background var(--t-fast);
}
.about-chapter > summary:hover { color: var(--accent); }
.about-chapter[open] > summary { color: var(--accent); }
.about-chapter[open] > summary::after {
    transform: rotate(180deg);
    background-color: var(--accent);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    border-color: var(--accent);
}
.about-chapter-body {
    padding-bottom: 2rem;
    animation: chapterReveal 400ms cubic-bezier(.2,.7,.2,1);
}
@keyframes chapterReveal {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Carnet d'auteur (accordéon dans la fiche d'un jeu) */
.game-detail-carnet {
    margin-top: 2rem;
}
.game-carnet-title {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    margin: 0 0 0.75rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.game-carnet-chapter {
    border-top: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
}
.game-carnet-chapter:last-of-type {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.game-carnet-chapter > summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--accent);
    letter-spacing: -0.01em;
    transition: color var(--t-fast);
    user-select: none;
}
.game-carnet-chapter > summary::-webkit-details-marker { display: none; }
.game-carnet-chapter > summary::after {
    content: '';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid rgba(0,0,0,0.1);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px;
    transition: transform var(--t-base), background var(--t-fast);
}
.game-carnet-chapter > summary:hover { color: var(--accent); }
.game-carnet-chapter[open] > summary { color: var(--accent); }
.game-carnet-chapter[open] > summary::after {
    transform: rotate(180deg);
    background-color: var(--accent);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    border-color: var(--accent);
}
.game-carnet-body {
    padding: 0 0 1.5rem;
    animation: chapterReveal 400ms cubic-bezier(.2,.7,.2,1);
}
.game-carnet-body p { margin: 0 0 1rem; }
.game-carnet-body ul { margin: 0 0 1rem 1.25rem; }
.game-carnet-body ul li { margin: 0.25rem 0; }
.game-carnet-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.25rem 0 0.25rem 1rem;
    margin: 0 0 1rem;
    font-style: italic;
    color: var(--ink);
    opacity: 0.85;
}
.carnet-figure {
    margin: 1.5rem 0;
    text-align: center;
}
.carnet-figure img {
    max-width: 100%;
    height: auto;
    max-height: 320px;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}
.carnet-figure figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.7;
}

/* Memes inline dans la bio */
.about-chapters .meme {
    margin: 1.75rem auto;
    text-align: center;
}
.about-chapters .meme img {
    max-width: 100%;
    max-height: 320px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    display: inline-block;
}

/* Liste à puces */
.about-chapters ul {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}
.about-chapters ul li {
    color: var(--ink);
    line-height: 1.7;
    margin-bottom: 0.3rem;
}

/* Citation imposteur */
.impostor-quote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.75rem;
    border-left: 4px solid var(--accent);
    background: var(--bg);
    border-radius: 0 12px 12px 0;
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--ink);
    line-height: 1.7;
}

/* CTA vidéo France 3 dans la bio */
.about-video-cta {
    text-align: center;
    margin: 2.5rem 0;
}

/* ============================================================
   EQUILIBRIUM
   ============================================================ */
.equilibrium-section {
    padding: clamp(4rem, 8vw, 6rem) var(--gutter);
    background: var(--bg);
}
.equilibrium-content {
    max-width: 800px;
    margin: 0 auto;
}
.equilibrium-lead {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    line-height: 1.5;
    color: var(--ink);
    margin: 0 0 1.5rem;
}
.equilibrium-lead strong { color: var(--accent); }
.equilibrium-content p {
    color: var(--ink);
    line-height: 1.65;
    margin: 0 0 1.5rem;
}
.equilibrium-content h3 {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    color: var(--ink);
    margin: 2.5rem 0 1rem;
}
.equilibrium-clients {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    gap: 0.6rem;
}
.equilibrium-clients li {
    padding: 0.85rem 1.25rem;
    background: var(--bg-deep);
    border-radius: 12px;
    border-left: 3px solid var(--accent);
}
.equilibrium-clients li strong { color: var(--accent); margin-right: 0.5rem; }

.equilibrium-games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}
.equilibrium-games a {
    padding: 0.85rem 1.25rem;
    background: var(--bg-deep);
    border-radius: 14px;
    color: var(--ink);
    transition: background var(--t-base), transform var(--t-fast), color var(--t-base);
    border: 1px solid rgba(0,0,0,0.04);
}
.equilibrium-games a:hover {
    background: var(--ink);
    color: white;
    transform: translateY(-2px);
}
.equilibrium-games a strong { font-weight: 700; }

/* ============================================================
   PAGES INTERNES (visions.php, auteur.php, contact.php, etc.)
   Charge le wrapper + .container/.intro/.weblinks/.learn-more/.a-intro
   pour qu'elles héritent du style keynote.
   ============================================================ */

/* Décale le contenu sous la navbar fixe */
body.page-internal { padding-top: 0; }

/* Quand un spotlight occupe le haut de page, on évite la duplication
   du nom/avatar et on réduit le padding-top du wrapper */
body.has-spotlight #wrapper { padding-top: 1rem; }
body.has-spotlight #wrapper .container,
body.has-spotlight #wrapper .intro,
body.has-spotlight #wrapper header.slideInUp,
body.has-spotlight #wrapper header.slideInUp2 {
    display: none;
}

/* Spotlight inséré dans une page interne : un peu moins haut que sur la home */
.spotlight.page-spotlight {
    min-height: 80vh;
    padding-top: clamp(6rem, 12vw, 9rem);
}

/* Wrapper + carte centrale */
#wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 1rem 0;
}
#main {
    background: var(--bg-deep);
    border-radius: var(--radius, 32px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 24px 60px rgba(0,0,0,0.08);
    margin: 2rem auto 0;
    overflow: hidden;
    position: relative;
    border-radius: 32px;
}
#main::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), #f93b85, var(--accent-2));
}
.inner { padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem); }

/* Petit en-tête en haut de chaque page (avatar + nom) */
.container {
    text-align: center;
    margin-bottom: 1.25rem;
}
.container a { display: inline-block; text-decoration: none; }
.container img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12), 0 0 0 6px rgba(255,255,255,0.4);
    transition: transform var(--t-base);
    margin-bottom: 0.75rem;
}
.container a:hover img { transform: scale(1.05) rotate(-3deg); }
.container h1 {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, var(--ink) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
    display: inline-block;
}
.icone {
    width: 0.55em !important;
    height: 0.55em !important;
    vertical-align: middle;
    margin-left: 0.2em;
    -webkit-text-fill-color: initial;
    display: inline-block;
}
.intro {
    text-align: center;
    color: var(--ink-mute);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
}
.intro img {
    height: 22px !important;
    width: auto !important;
    vertical-align: middle;
    margin-right: 0.3rem;
    display: inline-block;
}

/* Bandeau liens (weblinks) */
.weblinks {
    text-align: center;
    margin: 1.5rem 0;
}
.weblinks img {
    height: 22px;
    vertical-align: middle;
    margin: 0 4px;
    display: inline-block;
}
.weblinks a {
    color: var(--ink-mute);
    font-size: 0.95rem;
    margin: 0 0.75rem;
    text-decoration: none;
    transition: color var(--t-fast);
}
.weblinks a:hover { color: var(--accent); }

/* Header de page de jeu (h1 + h2) */
header.slideInUp,
header.slideInUp2 {
    text-align: center;
    margin: 2.5rem 0 1.5rem;
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    position: static;
    backdrop-filter: none;
}
header.slideInUp h1,
header.slideInUp2 h1,
section + header h1 {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--ink) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 0.5rem;
}
header.slideInUp h2,
header.slideInUp2 h2 {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--ink-mute);
    margin: 0 0 1.5rem;
}

/* h1/h2 dans le contenu */
.inner h2, section h2 {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    color: var(--ink);
    margin: 2rem 0 0.75rem;
    letter-spacing: -0.015em;
}
.inner h3 {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
    margin: 1.5rem 0 0.5rem;
}

/* Paragraphes & sections */
section { line-height: 1.65; }
section p, .inner p {
    font-size: 1rem;
    color: var(--ink);
    margin: 0 auto 1rem;
    max-width: 720px;
}
section p strong { color: var(--ink); font-weight: 700; }
section p a, .inner p a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color var(--t-fast);
}
section p a:hover { color: #f93b85; }

/* Bouton "learn-more" Phantom → CTA keynote */
.learn-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ink), #2a2a35);
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--t-fast), box-shadow var(--t-base);
    margin: 0.4rem;
    text-decoration: none;
    line-height: 1;
}
.learn-more::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), #f93b85);
    opacity: 0;
    transition: opacity var(--t-base);
    z-index: -1;
}
.learn-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(255, 93, 59, 0.3);
}
.learn-more:hover::before { opacity: 1; }
.learn-more .circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    flex-shrink: 0;
    transition: background var(--t-base), transform var(--t-fast);
}
.learn-more:hover .circle { background: rgba(255, 255, 255, 0.35); transform: translateX(4px); }
.learn-more .icon.arrow {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    margin-left: -2px;
}
.learn-more .button-text { color: white; font-weight: 600; }

/* Bouton Retour */
.page-back {
    text-align: center;
    padding: 2.5rem 1rem 3rem;
}

/* Vidéo (play button overlay) */
.img-play-video {
    position: relative;
    max-width: 820px;
    margin: 2rem auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.img-play-video .img-fluid {
    width: 100% !important;
    height: auto;
    display: block;
}
.video-play-button {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(7, 7, 13, 0.3);
    transition: background var(--t-base);
    z-index: 2;
}
.video-play-button:hover { background: rgba(7, 7, 13, 0.5); }
.video-play-button span {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
    position: relative;
    transition: transform var(--t-base);
}
.video-play-button:hover span { transform: scale(1.1); }
.video-play-button span::before {
    content: '';
    width: 0; height: 0;
    border-left: 22px solid var(--accent);
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    margin-left: 6px;
}
.rounded-20 { border-radius: 20px; }

/* Formulaire de commentaires */
form.form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 93, 59, 0.04), rgba(37, 99, 235, 0.04));
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
}
.input-container {
    position: relative;
    margin-bottom: 1.25rem;
}
.input-container .label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink-mute);
}
.input-container input[type="text"],
.input-container textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e6e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    color: var(--ink);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input-container textarea { min-height: 120px; resize: vertical; }
.input-container input:focus,
.input-container textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 93, 59, 0.12);
}
.input-container .underline { display: none; }

.Subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 2rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #f93b85);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 93, 59, 0.25);
    transition: transform var(--t-fast), box-shadow var(--t-base);
    margin-top: 0.5rem;
}
.Subscribe-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(255, 93, 59, 0.4);
}
.Subscribe-btn .arrow { width: 18px; height: 18px; }

/* Cards commentaires */
.card {
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    max-width: 680px;
    margin: 1rem auto;
    text-align: left;
    border-left: 4px solid var(--accent);
    transition: transform var(--t-fast), box-shadow var(--t-base);
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.message-text-container > * { margin: 0; }
.message-text {
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.15rem;
    font-size: 1.05rem;
}
.date-text {
    font-size: 0.8rem;
    color: var(--ink-mute);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.sub-text { color: var(--ink); line-height: 1.55; }

/* Message flash */
.message {
    max-width: 700px;
    margin: 1.5rem auto;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 93, 59, 0.08), rgba(249, 59, 133, 0.08));
    border: 1px solid rgba(255, 93, 59, 0.2);
    border-radius: 16px;
    color: var(--accent);
    text-align: center;
    font-weight: 600;
}

/* Carousel galerie */
.carousel {
    position: relative;
    max-width: 820px;
    margin: 2rem auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    background: var(--bg-dark);
}
.carousel-inner { position: relative; }
.carousel-item { display: none; }
.carousel-item.active { display: block; }
.carousel-item img { width: 100%; height: auto; display: block; }
.carousel .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 10;
    display: grid;
    place-items: center;
    transition: transform var(--t-fast), background var(--t-base);
}
.carousel .nav:hover {
    transform: translateY(-50%) scale(1.1);
    background: white;
}
.carousel .nav.prev { left: 1rem; }
.carousel .nav.next { right: 1rem; }
.carousel .nav img { width: 16px; height: auto; }

/* Article wrapping */
article { background: transparent; padding: 0; }

/* divs avec align attribute (HTML legacy) */
div[align="center"] { text-align: center; }
div[align="justify"] { text-align: justify; }
div[align="left"]   { text-align: left;   }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
    .row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; }
    .game.feature { grid-column: span 1; }
    .game.feature .game-cover { aspect-ratio: 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ───── Admin inline (édition des badges de stats depuis l'index) ───── */
.admin-bar {
    position: sticky; top: 0; z-index: 100;
    background: #1d1d1f; color: #fafafa;
    padding: .6rem 1.2rem; display: flex; gap: 1rem; align-items: center;
    font: 500 .85rem/1 system-ui, -apple-system, sans-serif;
    border-bottom: 2px solid var(--accent);
}
.admin-bar .admin-bar-flash { color: #6ee7a3; font-weight: 500; }
.admin-bar a, .admin-bar button {
    margin-left: auto; color: #fafafa; text-decoration: none;
    background: transparent; border: 1px solid rgba(255,255,255,.25);
    padding: .35rem .75rem; border-radius: 6px; cursor: pointer;
    font: inherit;
}
.admin-bar a + form button { margin-left: 0; }
.admin-bar a:hover, .admin-bar button:hover { background: rgba(255,255,255,.1); }
body.admin-mode { padding-top: 0; }

.admin-stats-editor {
    margin: 1rem 0 0;
    border: 1px dashed rgba(0,0,0,.15);
    border-radius: 8px;
    padding: .4rem .8rem;
    background: rgba(0,0,0,.02);
}
.admin-stats-editor > summary {
    cursor: pointer; list-style: none;
    font-size: .82rem; color: #666; font-weight: 500;
    padding: .3rem 0;
    user-select: none;
}
.admin-stats-editor > summary::-webkit-details-marker { display: none; }
.admin-stats-editor[open] > summary { color: var(--accent); }
.admin-stats-form { padding: .6rem 0 .4rem; }
.admin-stats-rows { display: grid; gap: .4rem; margin-bottom: .6rem; }
.admin-stats-row { display: grid; grid-template-columns: 110px 1fr 28px; gap: .4rem; align-items: center; }
.admin-stats-row input {
    padding: .35rem .55rem; border: 1px solid rgba(0,0,0,.15);
    background: white; border-radius: 5px; font: 13px/1.3 system-ui;
    width: 100%;
}
.admin-stats-row input:first-child { font-weight: 600; color: var(--accent); }
.admin-stats-row .admin-stats-remove {
    background: transparent; border: 1px solid rgba(0,0,0,.15);
    color: #999; border-radius: 5px; cursor: pointer;
    font-size: 1rem; line-height: 1; padding: 0; width: 28px; height: 28px;
}
.admin-stats-row .admin-stats-remove:hover { background: #fee; color: #c00; border-color: #c00; }
.admin-stats-actions { display: flex; gap: .5rem; justify-content: flex-end; }
.admin-stats-add, .admin-stats-save {
    padding: .4rem .9rem; border-radius: 6px; cursor: pointer;
    font: 600 .82rem system-ui; border: none;
}
.admin-stats-add { background: transparent; border: 1px dashed #999; color: #555; }
.admin-stats-add:hover { color: var(--accent); border-color: var(--accent); }
.admin-stats-save { background: var(--accent); color: white; }
.admin-stats-save:hover { background: #e64a2a; }
