/* =====================================================================
   1. VARIABLES, RESET & CONFORT DE LECTURE (Identique au modèle validé)
   ===================================================================== */
:root {
    --night: #090d16;
    --surface: #101726;
    --surface-light: #162033;
    --border-blue: #1e293b;
    --accent: #38bdf8;
    --accent-soft: #60a5fa;
    --text-main: #e2e8f0;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--night);
    background-image:
        linear-gradient(rgba(125, 211, 252, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 211, 252, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.readable-text {
    color: var(--text-muted);
    max-width: 65ch;
    line-height: 1.8;
}

::selection {
    background-color: rgba(56, 189, 248, 0.22);
    color: #e0f2fe;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--night);
}
::-webkit-scrollbar-thumb {
    background: var(--border-blue);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* =====================================================================
   2. BARRE DE PROGRESSION & FOND BLEU ANIMÉ (HALOS + CANVAS)
   ===================================================================== */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(15, 23, 42, 0.8);
    z-index: 50;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0ea5e9, #22d3ee, #60a5fa);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
    transition: width 75ms linear;
}

#ambient-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.ambient-orb-1 {
    position: fixed;
    top: -10%;
    left: 15%;
    width: 650px;
    height: 650px;
    border-radius: 9999px;
    background: radial-gradient(ellipse, rgba(56, 189, 248, 0.12) 0%, rgba(56, 189, 248, 0.035) 40%, transparent 72%);
    pointer-events: none;
    z-index: 0;
    animation: floatOrbOne 22s ease-in-out infinite alternate;
}

.ambient-orb-2 {
    position: fixed;
    bottom: -15%;
    right: 10%;
    width: 700px;
    height: 700px;
    border-radius: 9999px;
    background: radial-gradient(ellipse, rgba(96, 165, 250, 0.09) 0%, rgba(96, 165, 250, 0.025) 40%, transparent 72%);
    pointer-events: none;
    z-index: 0;
    animation: floatOrbTwo 28s ease-in-out infinite alternate;
}

@keyframes floatOrbOne {
    0% { transform: translate(0px, 0px) scale(1); }
    100% { transform: translate(90px, 60px) scale(1.1); }
}

@keyframes floatOrbTwo {
    0% { transform: translate(0px, 0px) scale(1); }
    100% { transform: translate(-80px, -70px) scale(1.08); }
}

/* =====================================================================
   3. BARRE DE NAVIGATION FLOTTANTE EN VERRE DÉPOLI
   ===================================================================== */
.header-wrapper {
    position: sticky;
    top: 16px;
    z-index: 40;
    padding: 0 24px;
}

.navbar-floating {
    max-width: 1040px;
    margin: 0 auto;
    height: 56px;
    padding: 0 24px;
    border-radius: 16px;
    background: rgba(13, 20, 36, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.15);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.brand-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: var(--text-light);
}

.brand-accent {
    color: var(--accent);
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-light);
}

.nav-link.active-section {
    color: var(--accent);
    background-color: rgba(56, 189, 248, 0.12);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
}

.mobile-menu {
    max-width: 1040px;
    margin: 8px auto 0;
    border-radius: 16px;
    background: rgba(13, 20, 36, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.15);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 8px;
}

.mobile-link:hover {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
}

.hidden {
    display: none !important;
}

/* =====================================================================
   4. CONTENEUR PRINCIPAL & CARTES SPOTLIGHT
   ===================================================================== */
.main-container {
    position: relative;
    z-index: 10;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-block {
    padding: 96px 0;
    border-bottom: 1px solid rgba(30, 41, 59, 0.8);
    scroll-margin-top: 80px;
}

.section-block.no-border {
    border-bottom: none;
}

.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}

.section-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.6rem, 3vw, 1.95rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-light);
    margin-bottom: 12px;
}

.spotlight-card {
    position: relative;
    background: rgba(16, 23, 38, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(56, 189, 248, 0.12);
    border-radius: 16px;
    transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
    overflow: hidden;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        550px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(56, 189, 248, 0.08),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.spotlight-card:hover {
    border-color: rgba(56, 189, 248, 0.38);
    box-shadow: 0 12px 40px -15px rgba(2, 132, 199, 0.2);
}

.spotlight-card:hover::before {
    opacity: 1;
}

.card-inner {
    position: relative;
    z-index: 2;
}

/* Emplacements d'images [À REMPLIR] */
.image-slot {
    background: linear-gradient(145deg, rgba(13, 19, 33, 0.9), rgba(20, 30, 48, 0.75));
    border: 1px dashed rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: border-color 0.35s ease;
}

.spotlight-card:hover .image-slot {
    border-color: rgba(56, 189, 248, 0.5);
}

.aspect-square {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.aspect-video {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.slot-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 12px;
}

.slot-svg {
    color: rgba(56, 189, 248, 0.7);
    margin-bottom: 10px;
}

.slot-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #e2e8f0;
    font-weight: 500;
}

.slot-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* =====================================================================
   5. HERO SECTION (#accueil)
   ===================================================================== */
.hero-section {
    padding: 112px 0 128px;
    border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}

.hero-content {
    max-width: 768px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-light);
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.btn-primary-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    background: var(--accent);
    color: #020617;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.28);
    transition: all 0.2s ease;
}

.btn-primary-glow:hover {
    background: #7dd3fc;
}

.btn-surface {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    background: var(--surface);
    color: #e2e8f0;
    border: 1px solid rgba(56, 189, 248, 0.2);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-surface:hover {
    background: var(--surface-light);
}

.btn-dark-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--night);
    color: #e2e8f0;
    border: 1px solid rgba(51, 65, 85, 0.8);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-dark-outline:hover {
    background: var(--surface-light);
    border-color: rgba(56, 189, 248, 0.35);
}

.scroll-indicator {
    margin-top: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.mouse-icon {
    width: 20px;
    height: 32px;
    border-radius: 9999px;
    border: 1px solid #334155;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4px;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    border-radius: 9999px;
    background: var(--accent);
    animation: bounce 1.6s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* =====================================================================
   6. SECTION 01 // PRÉSENTATION (Même forme exacte que la capture)
   ===================================================================== */
.presentation-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 48px;
    align-items: center;
}

.presentation-left {
    grid-column: span 5;
    display: grid;
    place-items: center;
}

.studio-identity {
    width: min(100%, 252px);
    margin: 0;
    text-align: center;
}

.studio-logo-frame {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 32px;
    background: #020315;
    box-shadow: 0 12px 32px -24px rgba(0, 0, 0, 0.7);
}

.studio-logo-frame::after {
    content: '';
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(56, 189, 248, 0.1);
    border-radius: 23px;
    pointer-events: none;
}

.studio-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.18);
}

.studio-logo-name {
    display: block;
    margin-top: 18px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-light);
}

.studio-logo-caption {
    display: block;
    margin-top: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.presentation-right {
    grid-column: span 7;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.presentation-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.presentation-paragraphs p {
    text-indent: 1.5em;
}

.studio-facts {
    list-style: none;
    margin: 0;
    padding: 22px 0 0;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.studio-facts li {
    min-width: 0;
}

.studio-fact-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.69rem;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}

.studio-fact-value {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* =====================================================================
   7. SECTION 02 // CATALOGUE DES JEUX & CARROUSEL ROBUSTE
   ===================================================================== */
.section-intro {
    margin-bottom: 48px;
}

.games-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.featured-game-card {
    padding: 32px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
}

.featured-media {
    grid-column: span 7;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.featured-info {
    grid-column: span 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

/* --- CARROUSEL MULTI-PHOTOS --- */
.carousel-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #070b13;
}

.carousel-stage--portrait {
    aspect-ratio: 4 / 3;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.carousel-slide img,
img.carousel-slide {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(9, 13, 22, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--text-light);
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.carousel-arrow:hover {
    background: var(--accent);
    color: #020617;
}

.carousel-arrow:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

.carousel-timer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 5;
}

.carousel-timer-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
}

.carousel-status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Vue agrandie : même image, entièrement visible sur ordinateur et mobile. */
.carousel-stage--zoomable {
    cursor: zoom-in;
}

.image-viewer {
    width: min(1280px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 16px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 16px;
    background: #090d16;
    color: var(--text-main);
    overflow: hidden;
}

.image-viewer[open] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.image-viewer::backdrop {
    background: rgba(3, 7, 15, 0.94);
}

.image-viewer-header,
.image-viewer-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.image-viewer-header {
    justify-content: space-between;
    flex-shrink: 0;
}

.image-viewer-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-viewer-count {
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
}

.image-viewer-close {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-blue);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text-light);
    font-size: 1.7rem;
    cursor: pointer;
}

.image-viewer-close:hover {
    background: var(--surface-light);
}

.image-viewer-close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.image-viewer-frame {
    position: relative;
    width: 100%;
    height: calc(100vh - 122px);
    height: calc(100dvh - 122px);
    min-height: 0;
}

.image-viewer-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- DÉTAILS DES JEUX (Badges, Date, Genre, Tags, Boutiques) --- */
.meta-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.badge-accent {
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    background: rgba(14, 165, 233, 0.15);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-dark {
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    background: rgba(9, 13, 22, 0.8);
    color: var(--text-muted);
    border: 1px solid #1e293b;
}

.game-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 12px;
}

.game-desc {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.game-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(22, 32, 51, 0.75);
    color: #cbd5e1;
    border: 1px solid rgba(56, 189, 248, 0.14);
}

/* Boutons des Stores avec les icônes PNG */
.stores-block {
    padding-top: 18px;
    border-top: 1px solid rgba(30, 41, 59, 0.9);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.stores-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.69rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.stores-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* Boutiques du jeu principal : séparation et boutons sur toute la fiche. */
.featured-grid > .stores-block {
    grid-column: 1 / -1;
    margin-top: 0;
    padding-top: 22px;
}

.featured-grid > .stores-block .stores-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.featured-grid > .stores-block .stores-buttons a {
    justify-content: center;
    min-height: 54px;
    padding: 12px 20px;
    gap: 10px;
    font-size: 0.95rem;
}

.featured-grid > .stores-block .stores-buttons img {
    width: 22px;
    height: 22px;
}

.btn-store-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--accent);
    color: #020617;
    font-weight: 600;
    font-size: 0.78rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-store-primary:hover {
    background: #7dd3fc;
}

.btn-store-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--night);
    color: #e2e8f0;
    border: 1px solid rgba(51, 65, 85, 0.8);
    font-weight: 500;
    font-size: 0.78rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-store-dark:hover {
    background: var(--surface-light);
    border-color: rgba(56, 189, 248, 0.4);
}

/* Adaptation des icônes noires PNG de ton dossier Images/ */
.store-icon-dark {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.store-icon-light {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Grille 2 colonnes pour les jeux secondaires */
.secondary-games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.secondary-game-card {
    padding: 24px;
}

.secondary-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.mb-sm { margin-bottom: 10px; }
.mt-sm { margin-top: 14px; }

.game-title-sm {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
}

.game-desc-sm {
    font-size: 0.9rem;
}

/* =====================================================================
   8. SECTION 03 // CONTACT (Même forme exacte que la capture, sans bas)
   ===================================================================== */
.contact-intro {
    margin-bottom: 40px;
}

.contact-horizontal-card {
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-small-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    display: block;
    margin-bottom: 4px;
}

.contact-email-address {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--text-light);
    word-break: break-all;
}

.contact-email-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

/* =====================================================================
   9. FOOTER DÉVELOPPÉ & MODALE MENTIONS LÉGALES
   ===================================================================== */
.site-footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(30, 41, 59, 0.8);
    padding: 56px 0 36px;
    background: rgba(9, 13, 22, 0.9);
}

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

.footer-columns {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 12px;
    max-width: 34ch;
}

.footer-col-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 14px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links-list a,
.footer-text-btn {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s ease;
}

.footer-links-list a:hover,
.footer-text-btn:hover {
    color: var(--accent);
}

.footer-apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.footer-app-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(16, 23, 38, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.14);
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-app-btn:hover {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

/* Modale Mentions Légales */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(5, 8, 15, 0.82);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-card {
    max-width: 580px;
    width: 100%;
    padding: 28px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}

.modal-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    color: var(--text-light);
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
}

.modal-content p {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* =====================================================================
   10. BOUTON RETOUR EN HAUT, TOAST & ANIMATIONS DE RÉVÉLATION
   ===================================================================== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 40;
    padding-top: 12px;
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 4px;
    border-radius: 12px;
    background: rgba(16, 23, 38, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--accent);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    color: #020617;
}

.copy-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 10px);
    z-index: 50;
    padding: 10px 18px;
    border-radius: 12px;
    background: #0ea5e9;
    color: #020617;
    font-weight: 600;
    font-size: 0.78rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.copy-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================================
   11. RESPONSIVE MOBILE & TABLETTE
   ===================================================================== */
@media (min-width: 961px) {
    /* Même hauteur de média : titres et descriptions commencent au même niveau. */
    .secondary-games-grid .carousel-stage {
        aspect-ratio: 4 / 3;
        flex-shrink: 0;
    }

    .secondary-card-body > div:first-child {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .secondary-card-body .tags-row {
        margin-top: auto;
        padding-top: 16px;
    }
}

@media (max-width: 960px) {
    .presentation-grid,
    .featured-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .presentation-left,
    .presentation-right,
    .featured-media,
    .featured-info {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .studio-identity {
        width: 200px;
        max-width: 100%;
    }

    .secondary-games-grid,
    .footer-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .featured-grid > .stores-block .stores-buttons {
        grid-template-columns: minmax(0, 1fr);
    }

    .image-viewer {
        width: calc(100vw - 16px);
        padding: 10px;
        border-radius: 12px;
    }

    .image-viewer-title {
        font-size: 0.8rem;
    }

    .image-viewer-header,
    .image-viewer-heading {
        gap: 8px;
    }

    .carousel-stage--portrait {
        aspect-ratio: 3 / 4;
    }

    .nav-desktop {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .footer-apps-grid {
        grid-template-columns: 1fr;
    }
    .studio-identity {
        width: 168px;
    }
    .studio-logo-frame {
        border-radius: 24px;
    }
    .studio-logo-frame::after {
        inset: 7px;
        border-radius: 17px;
    }
    .studio-facts {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
    .studio-facts li {
        display: grid;
        grid-template-columns: minmax(100px, 0.85fr) minmax(0, 1.4fr);
        align-items: start;
        gap: 16px;
    }
    .studio-fact-label {
        margin-bottom: 0;
        padding-top: 3px;
    }
    .studio-fact-value {
        overflow-wrap: anywhere;
    }
    .contact-horizontal-card {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .carousel-slide {
        transition: none;
    }
}
