/* =====================================================
   PHOENIX STUDIO - PAGE SERVICE JEUX VIDEO 2D
   Fichier : ser_jeux_video.css
===================================================== */

:root {
    --game-bg: #060814;
    --game-bg-soft: #0b1020;
    --game-card: rgba(255, 255, 255, 0.065);
    --game-card-strong: rgba(255, 255, 255, 0.1);
    --game-border: rgba(255, 255, 255, 0.12);
    --game-text: #f8fafc;
    --game-muted: #a8b3c7;
    --game-orange: #ff7a18;
    --game-red: #ff2e63;
    --game-violet: #7c3cff;
    --game-cyan: #00d4ff;
    --game-green: #35ff9f;
    --game-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

body.game-service-page {
    background:
        radial-gradient(circle at top left, rgba(255, 122, 24, 0.14), transparent 32%),
        radial-gradient(circle at top right, rgba(124, 60, 255, 0.15), transparent 35%),
        var(--game-bg);
    color: var(--game-text);
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
}

/* ================= HEADER HERO ================= */

.game-service-header {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(6, 8, 20, 0.96), rgba(8, 12, 30, 0.86)),
        url("images/services/game-dev-bg.jpg");
    background-position: center;
    background-size: cover;
}

.game-service-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    pointer-events: none;
}

.game-service-header::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    right: -160px;
    top: 140px;
    background: radial-gradient(circle, rgba(255, 122, 24, 0.28), transparent 68%);
    filter: blur(8px);
    pointer-events: none;
}

.game-hero {
    width: min(1180px, 92%);
    min-height: calc(100vh - 90px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
    padding: 80px 0 70px;
}

.game-hero-content {
    max-width: 680px;
}

.game-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 122, 24, 0.35);
    border-radius: 999px;
    color: #ffd7bd;
    background: rgba(255, 122, 24, 0.08);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--game-orange);
    box-shadow: 0 0 18px rgba(255, 122, 24, 0.9);
}

.game-hero h1 {
    margin: 22px 0 20px;
    font-size: clamp(2.5rem, 6vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.08em;
    color: #ffffff;
}

.game-hero h1::selection,
.game-hero p::selection {
    background: var(--game-orange);
    color: #fff;
}

.game-hero p {
    max-width: 620px;
    color: var(--game-muted);
    font-size: 1.05rem;
    line-height: 1.85;
}

.game-hero-actions,
.game-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.game-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.game-btn:hover {
    transform: translateY(-3px);
}

.game-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--game-orange), var(--game-red));
    box-shadow: 0 18px 45px rgba(255, 75, 55, 0.32);
}

.game-btn-primary:hover {
    box-shadow: 0 24px 60px rgba(255, 75, 55, 0.45);
}

.game-btn-outline {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
}

.game-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.game-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.game-hero-tags span {
    padding: 9px 13px;
    border-radius: 999px;
    color: #dfe7ff;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
}

/* ================= HERO VISUAL ================= */

.game-hero-visual {
    display: flex;
    justify-content: center;
}

.game-device-card {
    width: min(430px, 100%);
    min-height: 540px;
    border-radius: 34px;
    padding: 18px;
    position: relative;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04)),
        rgba(11, 16, 32, 0.86);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: var(--game-shadow);
    backdrop-filter: blur(18px);
    transform: rotate(2deg);
}

.game-device-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--game-orange), var(--game-violet), var(--game-cyan));
    opacity: 0.5;
    filter: blur(14px);
}

.game-device-top {
    display: flex;
    gap: 8px;
    margin: 4px 0 14px;
}

.game-device-top span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
}

.game-device-top span:nth-child(1) { background: #ff5f57; }
.game-device-top span:nth-child(2) { background: #ffbd2e; }
.game-device-top span:nth-child(3) { background: #28c840; }

.game-screen {
    min-height: 410px;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.18), transparent 24%),
        radial-gradient(circle at 80% 15%, rgba(255, 46, 99, 0.2), transparent 28%),
        linear-gradient(180deg, #101936, #080b18 58%, #070914);
    border: 1px solid rgba(255,255,255,0.12);
}

.game-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 28px 28px;
}

.game-player {
    position: absolute;
    left: 54px;
    bottom: 98px;
    width: 48px;
    height: 64px;
    border-radius: 18px 18px 10px 10px;
    background: linear-gradient(180deg, #35ff9f, #00d4ff);
    box-shadow: 0 0 35px rgba(0, 212, 255, 0.65);
    animation: playerFloat 2.2s ease-in-out infinite;
}

.game-player::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffd7bd;
}

.game-enemy {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, #ff2e63, #ff7a18);
    box-shadow: 0 0 28px rgba(255, 46, 99, 0.6);
}

.enemy-one {
    right: 76px;
    bottom: 160px;
    animation: enemyMove 3.2s ease-in-out infinite;
}

.enemy-two {
    right: 142px;
    top: 96px;
    width: 32px;
    height: 32px;
    animation: enemyMove 2.7s ease-in-out infinite reverse;
}

.game-platform {
    position: absolute;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--game-orange), var(--game-violet));
    box-shadow: 0 0 18px rgba(124, 60, 255, 0.45);
}

.platform-one {
    width: 150px;
    left: 32px;
    bottom: 72px;
}

.platform-two {
    width: 130px;
    right: 42px;
    bottom: 130px;
}

.platform-three {
    width: 120px;
    left: 88px;
    top: 128px;
}

.game-orb {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--game-green);
    box-shadow: 0 0 22px rgba(53, 255, 159, 0.85);
}

.orb-one {
    left: 190px;
    bottom: 155px;
    animation: orbPulse 1.6s ease-in-out infinite;
}

.orb-two {
    right: 70px;
    top: 70px;
    animation: orbPulse 2s ease-in-out infinite;
}

.game-device-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 16px;
    color: #fff;
}

.game-device-info strong {
    font-size: 0.95rem;
}

.game-device-info small {
    color: var(--game-muted);
}

/* ================= SECTIONS ================= */

main {
    background:
        radial-gradient(circle at 15% 20%, rgba(124, 60, 255, 0.08), transparent 30%),
        radial-gradient(circle at 90% 45%, rgba(255, 122, 24, 0.08), transparent 28%),
        var(--game-bg);
}

.game-intro-section,
.game-services-section,
.game-process-section,
.game-tech-section,
.game-platform-section,
.game-pricing-section,
.game-faq-section,
.game-cta-section {
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: 95px 0;
}

.game-section-heading {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
}

.game-section-heading h2,
.game-tech-content h2,
.game-cta-box h2 {
    margin: 18px 0 14px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.game-section-heading p,
.game-tech-content p,
.game-cta-box p {
    color: var(--game-muted);
    line-height: 1.8;
}

/* ================= STATS ================= */

.game-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.game-stat-card {
    padding: 28px 20px;
    min-height: 150px;
    border-radius: 26px;
    background: var(--game-card);
    border: 1px solid var(--game-border);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}

.game-stat-card strong {
    display: block;
    margin-bottom: 28px;
    font-size: 2.2rem;
    color: var(--game-orange);
}

.game-stat-card span {
    color: #fff;
    font-weight: 700;
}

/* ================= SERVICE CARDS ================= */

.game-services-grid,
.game-platform-grid,
.game-pricing-grid {
    display: grid;
    gap: 24px;
}

.game-services-grid {
    grid-template-columns: repeat(4, 1fr);
}

.game-service-card,
.game-platform-card,
.game-price-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: 30px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
    border: 1px solid var(--game-border);
    backdrop-filter: blur(16px);
    box-shadow: 0 22px 60px rgba(0,0,0,0.28);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.game-service-card::before,
.game-platform-card::before,
.game-price-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 122, 24, 0.16), transparent 38%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-service-card:hover,
.game-platform-card:hover,
.game-price-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 122, 24, 0.42);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.045));
}

.game-service-card:hover::before,
.game-platform-card:hover::before,
.game-price-card:hover::before {
    opacity: 1;
}

.game-card-icon,
.game-platform-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 18px;
    background: rgba(255, 122, 24, 0.12);
    border: 1px solid rgba(255, 122, 24, 0.22);
    font-size: 1.7rem;
}

.game-service-card h3,
.game-platform-card h3,
.game-price-card h3,
.game-process-step h3 {
    position: relative;
    z-index: 2;
    color: #fff;
    margin-bottom: 14px;
    font-size: 1.22rem;
}

.game-service-card p,
.game-platform-card p,
.game-process-step p {
    position: relative;
    z-index: 2;
    color: var(--game-muted);
    font-size: 0.92rem;
    line-height: 1.75;
}

.game-service-card ul,
.game-price-card ul {
    position: relative;
    z-index: 2;
    padding: 0;
    margin: 22px 0 0;
    list-style: none;
}

.game-service-card li,
.game-price-card li {
    color: #dce5f8;
    font-size: 0.88rem;
    margin-bottom: 10px;
}

.game-service-card li::before,
.game-price-card li::before {
    content: "✓";
    color: var(--game-green);
    font-weight: 800;
    margin-right: 8px;
}

/* ================= PROCESS ================= */

.game-process-timeline {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
}

.game-process-timeline::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 29px;
    width: 2px;
    background: linear-gradient(var(--game-orange), var(--game-violet), transparent);
}

.game-process-step {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 24px;
    margin-bottom: 26px;
}

.game-process-step > span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--game-orange), var(--game-red));
    box-shadow: 0 14px 34px rgba(255, 75, 55, 0.28);
    position: relative;
    z-index: 2;
}

.game-process-step > div {
    padding: 26px;
    border-radius: 26px;
    background: var(--game-card);
    border: 1px solid var(--game-border);
}

/* ================= TECH SECTION ================= */

.game-tech-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 34px;
    align-items: center;
}

.game-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.game-tech-list span {
    padding: 10px 14px;
    border-radius: 999px;
    color: #eaf1ff;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 0.84rem;
    font-weight: 700;
}

.code-window {
    overflow: hidden;
    border-radius: 28px;
    background: #070a13;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: var(--game-shadow);
}

.code-window-top {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.code-window-top span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-window-top span:nth-child(1) { background: #ff5f57; }
.code-window-top span:nth-child(2) { background: #ffbd2e; }
.code-window-top span:nth-child(3) { background: #28c840; }

.code-window pre {
    margin: 0;
    padding: 26px;
    overflow-x: auto;
}

.code-window code {
    color: #d9e6ff;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.88rem;
    line-height: 1.75;
}

/* ================= PLATFORM ================= */

.game-platform-grid {
    grid-template-columns: repeat(3, 1fr);
}

.game-platform-card a {
    display: inline-flex;
    margin-top: 20px;
    color: #ffd7bd;
    font-weight: 700;
    text-decoration: none;
}

.game-platform-card a:hover {
    color: #fff;
}

/* ================= PRICING ================= */

.game-pricing-grid {
    grid-template-columns: repeat(4, 1fr);
}

.game-price-card {
    display: flex;
    flex-direction: column;
}

.game-price-card.featured {
    border-color: rgba(255, 122, 24, 0.55);
    transform: translateY(-14px);
    background:
        linear-gradient(145deg, rgba(255, 122, 24, 0.16), rgba(255,255,255,0.06));
}

.game-price-tag {
    width: fit-content;
    margin-bottom: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 122, 24, 0.14);
    border: 1px solid rgba(255, 122, 24, 0.32);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.game-price {
    color: var(--game-muted);
    line-height: 1.55;
}

.game-price strong {
    display: block;
    color: #fff;
    font-size: 1.45rem;
    margin-top: 4px;
}

.game-price-card .game-btn {
    margin-top: auto;
}

/* ================= FAQ ================= */

.game-faq-list {
    max-width: 880px;
    margin: 0 auto;
}

.game-faq-item {
    margin-bottom: 16px;
    border-radius: 22px;
    overflow: hidden;
    background: var(--game-card);
    border: 1px solid var(--game-border);
}

.game-faq-question {
    width: 100%;
    min-height: 68px;
    padding: 20px 24px;
    border: none;
    outline: none;
    color: #fff;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.game-faq-question span {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 122, 24, 0.14);
    border: 1px solid rgba(255, 122, 24, 0.28);
    transition: transform 0.25s ease;
}

.game-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
}

.game-faq-answer p {
    margin: 0;
    padding: 0 24px 22px;
    color: var(--game-muted);
    line-height: 1.75;
}

.game-faq-item.active .game-faq-answer {
    max-height: 200px;
}

.game-faq-item.active .game-faq-question span {
    transform: rotate(45deg);
}

/* ================= CTA ================= */

.game-cta-section {
    padding-top: 40px;
}

.game-cta-box {
    position: relative;
    overflow: hidden;
    border-radius: 38px;
    padding: clamp(34px, 7vw, 70px);
    text-align: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 122, 24, 0.24), transparent 32%),
        radial-gradient(circle at 80% 30%, rgba(124, 60, 255, 0.24), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: var(--game-shadow);
}

.game-cta-actions {
    justify-content: center;
}

.copy-message {
    display: none;
    margin-top: 18px;
    color: var(--game-green);
    font-weight: 700;
}

/* ================= ANIMATIONS ================= */

.animate-fade {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.animate-fade.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes playerFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes enemyMove {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    50% {
        transform: translateX(-22px) rotate(8deg);
    }
}

@keyframes orbPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.35);
        opacity: 1;
    }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1080px) {
    .game-hero,
    .game-tech-section {
        grid-template-columns: 1fr;
    }

    .game-hero {
        text-align: center;
    }

    .game-hero-content {
        margin: 0 auto;
    }

    .game-hero-actions,
    .game-hero-tags {
        justify-content: center;
    }

    .game-services-grid,
    .game-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-price-card.featured {
        transform: translateY(0);
    }
}

@media (max-width: 760px) {
    .game-service-header {
        min-height: auto;
    }

    .game-hero {
        padding-top: 55px;
        gap: 40px;
    }

    .game-hero h1 {
        letter-spacing: -0.055em;
    }

    .game-hero p {
        font-size: 0.96rem;
    }

    .game-hero-actions,
    .game-cta-actions {
        flex-direction: column;
    }

    .game-btn {
        width: 100%;
    }

    .game-device-card {
        min-height: 460px;
        transform: none;
    }

    .game-screen {
        min-height: 335px;
    }

    .game-intro-section,
    .game-services-section,
    .game-process-section,
    .game-tech-section,
    .game-platform-section,
    .game-pricing-section,
    .game-faq-section,
    .game-cta-section {
        padding: 70px 0;
    }

    .game-services-grid,
    .game-platform-grid,
    .game-pricing-grid,
    .game-stats-grid {
        grid-template-columns: 1fr;
    }

    .game-section-heading {
        margin-bottom: 36px;
    }

    .game-process-step {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .game-process-timeline::before {
        display: none;
    }

    .game-process-step > span {
        width: 48px;
        height: 48px;
    }

    .game-service-card,
    .game-platform-card,
    .game-price-card {
        padding: 24px;
    }

    .code-window pre {
        padding: 20px;
    }

    .code-window code {
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .game-hero {
        width: 90%;
    }

    .game-kicker {
        font-size: 0.68rem;
    }

    .game-device-card {
        padding: 12px;
        border-radius: 26px;
    }

    .game-device-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .game-faq-question {
        font-size: 0.92rem;
        padding: 18px;
    }
}
/* =====================================================================
   CORRECTIF LOCAL — ser_jeux_video.html UNIQUEMENT
   - Ne modifie ni style.css, ni Portfolio.css, ni les autres pages.
   - Corrige le chevauchement du header mobile, le menu fixe, la scrollbar,
     les tailles 13/14/16 pouces et le panneau burger tablette/mobile.
   ===================================================================== */

:root {
    --game-nav-height: 78px;
    --game-menu-breakpoint: 1080px;
}

/* Stabilise la largeur du document : le menu fixe ne recouvre plus
   la barre de défilement sur Chrome / Firefox. */
html {
    scrollbar-gutter: stable;
}

body.game-service-page {
    min-width: 0;
    overflow-x: clip;
}

/* Réinitialisation limitée à la page jeu : Portfolio.css applique une marge
   globale aux paragraphes, ce qui décalait plusieurs blocs sur petit écran. */
body.game-service-page .game-service-header p,
body.game-service-page main p {
    margin-left: 0;
    padding: 0;
}

/* ========================= NAVIGATION FIXE ========================= */

body.game-service-page .sticky-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: var(--site-scrollbar-width, 0px);
    width: calc(100% - var(--site-scrollbar-width, 0px));
    min-height: var(--game-nav-height);
    padding: 10px clamp(18px, 3vw, 42px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background:
        linear-gradient(135deg, rgba(12, 15, 25, 0.98), rgba(18, 20, 31, 0.96));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 13000 !important;
}

body.game-service-page .sticky-nav > a {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 0;
}

body.game-service-page .sticky-nav #logoNav {
    width: clamp(118px, 9vw, 142px);
    height: auto;
    max-height: 56px;
    object-fit: contain;
}

body.game-service-page .sticky-nav .nav-links {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
}

body.game-service-page .sticky-nav .nav-links > ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.game-service-page .sticky-nav .nav-links > ul > li {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 5px 7px;
}

body.game-service-page .sticky-nav .nav-links > ul > li::after {
    bottom: 0;
    background: linear-gradient(90deg, var(--game-orange), var(--game-red));
}

body.game-service-page .sticky-nav .nav-links > ul > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 5px;
    color: #dfe7ff;
    font-size: clamp(0.66rem, 0.78vw, 0.8rem);
    font-weight: 600;
    letter-spacing: 0.025em;
    white-space: nowrap;
    transition: color 0.22s ease, text-shadow 0.22s ease;
}

body.game-service-page .sticky-nav .nav-links > ul > li > a:hover,
body.game-service-page .sticky-nav .nav-links > ul > li.active-menu > a,
body.game-service-page .sticky-nav .nav-links > ul > li.active-parent > a {
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.38);
}

body.game-service-page .sticky-nav .nav-links > ul > li.active-menu::after,
body.game-service-page .sticky-nav .nav-links > ul > li.active-parent::after {
    width: 100%;
    background: linear-gradient(90deg, var(--game-orange), var(--game-red));
}

body.game-service-page .sticky-nav > .fa-bars,
body.game-service-page .nav-links .fa-close {
    display: none;
}

/* Les sous-menus desktop conservent le design du site mais gagnent une
   lecture plus nette, sans étendre la largeur de la navigation. */
body.game-service-page .sticky-nav .services-dropdown-content,
body.game-service-page .sticky-nav .portfolio-dropdown-content {
    margin-top: 12px;
    background: linear-gradient(145deg, rgba(16, 20, 35, 0.98), rgba(8, 11, 22, 0.98));
    border-color: rgba(255, 255, 255, 0.13);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
}

/* ========================= HERO / EMPILAGE ========================= */

/* Remplace le height:50vh de .sub-header, responsable du rognage mobile. */
body.game-service-page .game-service-header {
    height: auto !important;
    min-height: 100svh;
    padding: 0;
    overflow: hidden;
}

body.game-service-page .game-hero {
    width: min(1180px, 92%);
    min-height: 100svh;
    margin: 0 auto;
    padding: calc(var(--game-nav-height) + 42px) 0 72px;
    position: relative;
    z-index: 2;
}

body.game-service-page .game-service-header::before,
body.game-service-page .game-service-header::after {
    z-index: 0;
}

body.game-service-page .game-hero-content,
body.game-service-page .game-hero-visual {
    position: relative;
    z-index: 2;
}

body.game-service-page main,
body.game-service-page .main-footer {
    position: relative;
    z-index: 1;
}

/* La navbar est volontairement au-dessus de tous les contenus ;
   les sections défilent donc sous elle sans passer devant. */
body.game-service-page .sticky-nav {
    z-index: 13000 !important;
}

/* ========================= BOUTONS MODERNES ========================= */

body.game-service-page .game-btn {
    position: relative;
    isolation: isolate;
    min-height: 52px;
    padding: 0 24px;
    overflow: hidden;
    border-radius: 16px;
    letter-spacing: -0.01em;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

body.game-service-page .game-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.22), transparent 42%);
    transition: opacity 0.22s ease;
}

body.game-service-page .game-btn:hover::before,
body.game-service-page .game-btn:focus-visible::before {
    opacity: 1;
}

body.game-service-page .game-btn:focus-visible,
body.game-service-page .sticky-nav > .fa-bars:focus-visible,
body.game-service-page .nav-links .fa-close:focus-visible {
    outline: 3px solid rgba(0, 212, 255, 0.8);
    outline-offset: 3px;
}

body.game-service-page .game-btn-primary {
    background: linear-gradient(135deg, #ff8718 0%, #ff5743 48%, #ff2e63 100%);
    box-shadow: 0 16px 34px rgba(255, 64, 74, 0.32);
}

body.game-service-page .game-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(255, 64, 74, 0.46);
}

body.game-service-page .game-btn-outline {
    border-color: rgba(214, 227, 255, 0.24);
    background: linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

body.game-service-page .game-btn-outline:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 212, 255, 0.65);
    background: linear-gradient(135deg, rgba(0,212,255,0.14), rgba(124,60,255,0.15));
}

/* ========================= 13 / 14 / 16 POUCES ========================= */

@media (min-width: 1081px) and (max-width: 1480px) {
    body.game-service-page .sticky-nav {
        gap: 12px;
        padding-inline: 22px;
    }

    body.game-service-page .sticky-nav .nav-links > ul > li {
        padding-inline: 4px;
    }

    body.game-service-page .sticky-nav .nav-links > ul > li > a {
        font-size: 0.67rem;
    }

    body.game-service-page .game-hero {
        grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
        gap: clamp(28px, 3.5vw, 52px);
        padding-top: calc(var(--game-nav-height) + 30px);
        padding-bottom: 44px;
    }

    body.game-service-page .game-hero h1 {
        font-size: clamp(3.25rem, 4.5vw, 4.1rem);
        line-height: 1.01;
    }

    body.game-service-page .game-hero p {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    body.game-service-page .game-device-card {
        width: min(100%, 400px);
        min-height: 492px;
    }

    body.game-service-page .game-screen {
        min-height: 365px;
    }
}

/* ========================= TABLETTES / MENU BURGER ========================= */

@media (max-width: 1080px) {
    body.game-service-page .sticky-nav {
        min-height: 74px;
        padding: 8px 18px;
        gap: 14px;
    }

    body.game-service-page .sticky-nav #logoNav {
        width: 128px;
        max-height: 52px;
    }

    body.game-service-page .sticky-nav > .fa-bars {
        width: 46px;
        height: 46px;
        display: grid !important;
        place-items: center;
        flex: 0 0 46px;
        margin: 0;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 14px;
        color: #ffffff;
        background:
            linear-gradient(145deg, rgba(255, 122, 24, 0.18), rgba(124, 60, 255, 0.16)),
            rgba(255,255,255,0.055);
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.10),
            0 10px 22px rgba(0,0,0,0.26);
        font-size: 21px;
        line-height: 1;
        cursor: pointer;
        transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }

    body.game-service-page .sticky-nav > .fa-bars:hover {
        transform: translateY(-2px);
        border-color: rgba(0, 212, 255, 0.65);
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.14),
            0 14px 28px rgba(0,0,0,0.34),
            0 0 0 3px rgba(0, 212, 255, 0.08);
    }

    /* Le panneau est déplacé dans body par SmallResolution.js.
       Ces sélecteurs restent donc volontairement indépendants de nav. */
    body.game-service-page .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: min(-88vw, -380px) !important;
        width: min(88vw, 380px) !important;
        max-width: 380px !important;
        height: 100dvh !important;
        min-height: 100dvh;
        display: block !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding: 0 0 28px !important;
        background:
            radial-gradient(circle at 100% 0%, rgba(124,60,255,0.36), transparent 36%),
            radial-gradient(circle at 0% 100%, rgba(255,122,24,0.22), transparent 42%),
            linear-gradient(180deg, #111625 0%, #080b16 100%) !important;
        border-left: 1px solid rgba(255,255,255,0.13);
        box-shadow: -20px 0 54px rgba(0,0,0,0.52);
        text-align: left !important;
        z-index: 13020 !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        transition: none !important;
    }

    body.game-service-page .nav-links.menu-motion-ready {
        transition: right 0.34s cubic-bezier(.2,.75,.25,1) !important;
    }

    body.game-service-page .nav-links.menu-transition-disabled,
    body.game-service-page.is-resizing .nav-links {
        transition: none !important;
    }

    body.game-service-page .nav-links.menu-open {
        right: 0 !important;
    }

    body.game-service-page.menu-is-open,
    html.site-menu-locked {
        overflow: hidden !important;
    }

    body.game-service-page .nav-links .fa-close {
        width: 44px;
        height: 44px;
        position: absolute;
        top: 15px;
        right: 16px;
        left: auto;
        display: grid !important;
        place-items: center;
        margin: 0;
        border: 1px solid rgba(255,255,255,0.17);
        border-radius: 13px;
        color: #ffffff;
        background: rgba(255,255,255,0.08);
        font-size: 19px;
        line-height: 1;
        cursor: pointer;
        z-index: 2;
        transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    }

    body.game-service-page .nav-links .fa-close:hover {
        transform: rotate(90deg);
        border-color: rgba(255, 112, 91, 0.72);
        background: rgba(255, 80, 86, 0.18);
    }

    body.game-service-page .nav-links > ul {
        display: block !important;
        margin: 0 !important;
        padding: 82px 18px 24px !important;
        list-style: none;
    }

    body.game-service-page .nav-links > ul > li,
    body.game-service-page .nav-links .dropdown-content li {
        display: block !important;
        width: 100% !important;
        margin: 0 0 7px !important;
        padding: 0 !important;
    }

    body.game-service-page .nav-links > ul > li::after,
    body.game-service-page .nav-links .dropdown-content li::after {
        display: none !important;
    }

    body.game-service-page .nav-links > ul > li > a {
        width: 100%;
        min-height: 50px;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 13px 14px !important;
        border: 1px solid transparent;
        border-radius: 14px;
        color: rgba(255,255,255,0.96) !important;
        background: rgba(255,255,255,0.035);
        font-size: 0.86rem !important;
        font-weight: 650;
        text-decoration: none;
        white-space: normal;
        transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }

    body.game-service-page .nav-links > ul > li > a:hover,
    body.game-service-page .nav-links > ul > li.active-menu > a,
    body.game-service-page .nav-links > ul > li.active-parent > a {
        border-color: rgba(0,212,255,0.34);
        color: #ffffff !important;
        background: linear-gradient(135deg, rgba(0,212,255,0.14), rgba(124,60,255,0.15));
        text-shadow: none;
        transform: translateX(2px);
    }

    body.game-service-page .nav-links .dropdown-arrow {
        font-size: 0.84rem;
        color: #9dc4ff;
    }

    body.game-service-page .nav-links .dropdown-content,
    body.game-service-page .nav-links .services-dropdown-content,
    body.game-service-page .nav-links .portfolio-dropdown-content {
        position: static !important;
        display: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 8px 0 12px !important;
        padding: 8px !important;
        background: rgba(0,0,0,0.21) !important;
        border: 1px solid rgba(255,255,255,0.10) !important;
        border-radius: 14px !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    body.game-service-page .nav-links .dropdown.open > .dropdown-content {
        display: block !important;
    }

    body.game-service-page .nav-links .dropdown:hover > .dropdown-content,
    body.game-service-page .nav-links .services-dropdown:hover > .services-dropdown-content,
    body.game-service-page .nav-links .portfolio-dropdown:hover > .portfolio-dropdown-content {
        display: none !important;
    }

    body.game-service-page .nav-links .dropdown.open:hover > .dropdown-content {
        display: block !important;
    }

    body.game-service-page .nav-links .services-dropdown-content li a,
    body.game-service-page .nav-links .portfolio-dropdown-content li a {
        display: grid !important;
        grid-template-columns: 38px minmax(0, 1fr);
        align-items: start;
        gap: 11px;
        width: 100%;
        padding: 10px !important;
        border-radius: 11px;
        color: #ffffff !important;
        white-space: normal !important;
        transform: none !important;
    }

    body.game-service-page .nav-links .services-dropdown-content li a:hover,
    body.game-service-page .nav-links .portfolio-dropdown-content li a:hover {
        background: rgba(255,255,255,0.10) !important;
        padding-left: 10px !important;
    }

    body.game-service-page .nav-links .service-icon,
    body.game-service-page .nav-links .portfolio-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        display: grid;
        place-items: center;
        border-radius: 11px;
        background: rgba(255,255,255,0.10);
        border: 1px solid rgba(255,255,255,0.15);
        font-size: 16px;
    }

    body.game-service-page .nav-links .service-text,
    body.game-service-page .nav-links .portfolio-text {
        min-width: 0;
        display: block;
        text-align: left;
    }

    body.game-service-page .nav-links .service-text strong,
    body.game-service-page .nav-links .portfolio-text strong {
        display: block;
        margin: 0 0 3px;
        color: #ffffff !important;
        font-size: 0.78rem;
        line-height: 1.3;
    }

    body.game-service-page .nav-links .service-text small,
    body.game-service-page .nav-links .portfolio-text small {
        display: block;
        max-width: none !important;
        color: rgba(226,233,255,0.8) !important;
        font-size: 0.68rem;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    body.game-service-page .site-menu-backdrop {
        position: fixed;
        inset: 0;
        display: block;
        visibility: hidden;
        opacity: 0;
        background: rgba(2, 4, 11, 0.67);
        z-index: 13010;
        transition: opacity 0.24s ease, visibility 0s linear 0.24s;
    }

    body.game-service-page .site-menu-backdrop.is-visible {
        visibility: visible;
        opacity: 1;
        transition: opacity 0.24s ease;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    /* Empêche le titre et le badge « Service professionnel » de remonter
       derrière la barre fixe. */
    body.game-service-page .game-service-header {
        min-height: auto;
        height: auto !important;
        overflow: hidden;
    }

    body.game-service-page .game-hero {
        width: min(92%, 850px);
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 38px;
        padding-top: calc(var(--game-nav-height) + 36px);
        padding-bottom: 64px;
        text-align: center;
    }

    body.game-service-page .game-hero-content {
        width: 100%;
        max-width: 760px;
        margin: 0 auto;
    }

    body.game-service-page .game-hero-actions,
    body.game-service-page .game-hero-tags {
        justify-content: center;
    }

    body.game-service-page .game-hero-visual {
        width: 100%;
    }

    body.game-service-page .game-device-card {
        width: min(100%, 500px);
    }
}

/* ========================= MOBILES ========================= */

@media (max-width: 760px) {
    :root {
        --game-nav-height: 74px;
    }

    body.game-service-page .game-hero {
        width: min(100% - 30px, 560px);
        gap: 32px;
        padding-top: calc(var(--game-nav-height) + 28px);
        padding-bottom: 54px;
    }

    body.game-service-page .game-kicker {
        padding: 8px 13px;
        font-size: 0.68rem;
    }

    body.game-service-page .game-hero h1 {
        margin: 19px 0 17px;
        font-size: clamp(2.18rem, 10.4vw, 3.45rem);
        line-height: 0.99;
        letter-spacing: -0.065em;
    }

    body.game-service-page .game-hero p {
        max-width: 510px;
        margin: 0 auto;
        font-size: 0.96rem;
        line-height: 1.72;
    }

    body.game-service-page .game-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 12px;
        margin-top: 26px;
    }

    body.game-service-page .game-btn {
        width: 100%;
        min-height: 52px;
        padding-inline: 18px;
        border-radius: 15px;
    }

    body.game-service-page .game-hero-tags {
        width: 100%;
        gap: 8px;
        margin-top: 18px;
    }

    body.game-service-page .game-hero-tags span {
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        font-size: 0.73rem;
    }

    body.game-service-page .game-device-card {
        min-height: 0;
        padding: 13px;
        border-radius: 28px;
    }

    body.game-service-page .game-screen {
        min-height: 320px;
        border-radius: 20px;
    }

    body.game-service-page .game-device-info {
        margin-top: 13px;
    }
}

@media (max-width: 390px) {
    body.game-service-page .sticky-nav {
        padding-inline: 13px;
    }

    body.game-service-page .sticky-nav #logoNav {
        width: 112px;
    }

    body.game-service-page .game-hero {
        width: min(100% - 24px, 560px);
    }

    body.game-service-page .game-hero h1 {
        font-size: clamp(2rem, 10.2vw, 2.55rem);
    }

    body.game-service-page .game-hero-tags span {
        padding-inline: 10px;
    }

    body.game-service-page .game-screen {
        min-height: 290px;
    }

    body.game-service-page .platform-three {
        left: 48px;
    }

    body.game-service-page .platform-two {
        right: 24px;
    }

    body.game-service-page .enemy-one {
        right: 46px;
    }

    body.game-service-page .orb-one {
        left: 56%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.game-service-page *,
    body.game-service-page *::before,
    body.game-service-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   CORRECTIF V3 — UN SEUL SCROLL DOCUMENT + SCROLLBAR LIBRE
   ---------------------------------------------------------
   style.css déclare html ET body comme conteneurs défilables.
   Sur Firefox / certains écrans Windows, cela produit deux rails :
   un sur body et un sur html. Cette page délègue désormais tout le
   défilement vertical à html uniquement.
   ========================================================= */
html {
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    scrollbar-gutter: auto !important;
}

body.game-service-page {
    height: auto !important;
    min-height: 100svh;
    width: 100%;
    max-width: 100%;
    overflow: visible !important;
}

/* La barre native appartient à html : la navigation n'a plus de largeur
   artificiellement retirée, ce qui supprimait le second rail blanc. */
body.game-service-page .sticky-nav {
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
}


/* =========================================================
   CORRECTIF V4 — TEXTE MOBILE/TABLETTE + ANIMATIONS AU SCROLL
   ---------------------------------------------------------
   Ce bloc reste strictement local à ser_jeux_video.html.
   Il évite que le <pre> du panneau C# impose sa largeur minimale
   à la grille, phénomène qui coupait les titres sur mobile/tablette.
   ========================================================= */

/* Fallback fiable : sans JavaScript, le contenu reste lisible. */
body.game-service-page .animate-fade {
    opacity: 1;
    transform: none;
}

/* JavaScript ajoute cette classe uniquement quand IntersectionObserver
   est utilisable. Les éléments hors écran peuvent alors réapparaître
   progressivement au défilement, sans page noire si JS échoue. */
html.game-scroll-animations-ready body.game-service-page .animate-fade {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

html.game-scroll-animations-ready body.game-service-page .animate-fade.active {
    opacity: 1;
    transform: translateY(0);
}

/* Empêche le code C# de forcer la largeur de toute la section. */
body.game-service-page .game-tech-section,
body.game-service-page .game-tech-content,
body.game-service-page .game-tech-panel,
body.game-service-page .code-window,
body.game-service-page .code-window pre,
body.game-service-page .game-section-heading,
body.game-service-page .game-service-card,
body.game-service-page .game-platform-card,
body.game-service-page .game-price-card,
body.game-service-page .game-process-step > div,
body.game-service-page .game-faq-item {
    min-width: 0;
}

body.game-service-page .game-tech-panel,
body.game-service-page .code-window {
    width: 100%;
    max-width: 100%;
}

body.game-service-page .code-window pre {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
}

body.game-service-page .code-window code {
    display: block;
    width: max-content;
    min-width: 100%;
}

body.game-service-page .game-tech-content h2,
body.game-service-page .game-section-heading h2,
body.game-service-page .game-cta-box h2,
body.game-service-page .game-service-card h3,
body.game-service-page .game-platform-card h3,
body.game-service-page .game-price-card h3,
body.game-service-page .game-process-step h3,
body.game-service-page .game-faq-question {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
}

@media (max-width: 1080px) {
    body.game-service-page .game-tech-section {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 30px;
    }

    body.game-service-page .game-tech-content,
    body.game-service-page .game-tech-panel {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 760px) {
    body.game-service-page .game-tech-section {
        width: min(1180px, calc(100% - 30px));
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 26px;
    }

    body.game-service-page .game-tech-content h2,
    body.game-service-page .game-section-heading h2,
    body.game-service-page .game-cta-box h2 {
        font-size: clamp(1.72rem, 8vw, 2.2rem);
        line-height: 1.08;
        letter-spacing: -0.048em;
    }

    body.game-service-page .game-tech-content p,
    body.game-service-page .game-section-heading p,
    body.game-service-page .game-cta-box p {
        font-size: 0.94rem;
        line-height: 1.72;
    }

    body.game-service-page .game-tech-list {
        gap: 9px;
    }

    body.game-service-page .game-tech-list span {
        padding: 9px 12px;
        font-size: 0.76rem;
    }

    body.game-service-page .code-window {
        border-radius: 22px;
    }

    body.game-service-page .code-window pre {
        padding: 18px 16px;
    }

    body.game-service-page .code-window code {
        font-size: 0.73rem;
        line-height: 1.68;
    }
}

@media (max-width: 390px) {
    body.game-service-page .game-tech-section {
        width: min(1180px, calc(100% - 24px));
    }

    body.game-service-page .game-tech-content h2,
    body.game-service-page .game-section-heading h2,
    body.game-service-page .game-cta-box h2 {
        font-size: clamp(1.62rem, 8.7vw, 2rem);
    }
}


/* =========================================================
   CORRECTIF V5 — FAQ : TEXTE COMPLET + ANIMATION INDÉPENDANTE
   ---------------------------------------------------------
   L'ancienne classe .active était utilisée à la fois par les
   animations au scroll et par les questions FAQ. Les cartes FAQ
   passaient donc toutes à l'état ouvert puis disparaissaient dès
   qu'une question était cliquée. Cette version sépare les états :
   - .is-revealed : animation au scroll
   - .is-open     : question FAQ ouverte
   ========================================================= */

/* Les anciens états .active ne contrôlent plus les animations de cette page. */
html.game-scroll-animations-ready body.game-service-page .animate-fade.active:not(.is-revealed) {
    opacity: 0;
    transform: translateY(28px);
}

html.game-scroll-animations-ready body.game-service-page .animate-fade.is-revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* FAQ : aucune carte ne peut être masquée par l'animation au clic. */
body.game-service-page .game-faq-item {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

body.game-service-page .game-faq-question {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

body.game-service-page .game-faq-question span {
    flex: 0 0 34px;
}

/* style.css / Portfolio.css appliquent une marge et un padding globaux aux <p>.
   Cette règle restaure l'espace intérieur de la réponse, sans affecter les autres pages. */
body.game-service-page main .game-faq-answer p {
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 24px 24px !important;
    color: var(--game-muted);
    line-height: 1.75;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Neutralise les classes .active laissées par les versions précédentes. */
body.game-service-page .game-faq-item.active:not(.is-open) .game-faq-answer {
    max-height: 0 !important;
}

body.game-service-page .game-faq-item.active:not(.is-open) .game-faq-question span {
    transform: none !important;
}

body.game-service-page .game-faq-item.is-open .game-faq-question span {
    transform: rotate(45deg);
}

@media (max-width: 760px) {
    body.game-service-page .game-faq-question {
        align-items: flex-start;
        gap: 12px;
        padding: 18px;
        line-height: 1.42;
    }

    body.game-service-page .game-faq-question span {
        margin-top: -1px;
    }

    body.game-service-page main .game-faq-answer p {
        padding: 0 18px 20px !important;
        font-size: 0.92rem;
        line-height: 1.7;
    }
}

/* =========================================================
   CORRECTIF V6 — SURVOL NAVIGATION & SOUS-MENUS STABLES
   ---------------------------------------------------------
   Correctif strictement local à ser_jeux_video.html.
   - Restaure un état hover visible sur tous les liens desktop.
   - Supprime l'espace physique entre le lien parent et son sous-menu.
   - Empêche la fermeture du sous-menu lors du déplacement du curseur.
   ========================================================= */
@media (min-width: 1081px) {
    /* Base commune : le repère du sous-menu reste le li concerné. */
    body.game-service-page .sticky-nav .nav-links > ul > li {
        position: relative;
        isolation: isolate;
    }

    /* Highlight moderne et clairement perceptible au survol/focus. */
    body.game-service-page .sticky-nav .nav-links > ul > li > a {
        position: relative;
        z-index: 2;
        padding: 8px 9px;
        border: 1px solid transparent;
        border-radius: 10px;
        transition:
            color 0.22s ease,
            background 0.22s ease,
            border-color 0.22s ease,
            box-shadow 0.22s ease,
            text-shadow 0.22s ease;
    }

    body.game-service-page .sticky-nav .nav-links > ul > li:hover > a,
    body.game-service-page .sticky-nav .nav-links > ul > li:focus-within > a,
    body.game-service-page .sticky-nav .nav-links > ul > li.active-menu > a,
    body.game-service-page .sticky-nav .nav-links > ul > li.active-parent > a {
        color: #ffffff !important;
        background: linear-gradient(135deg, rgba(255, 122, 24, 0.17), rgba(124, 60, 255, 0.18));
        border-color: rgba(255, 255, 255, 0.13);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 8px 18px rgba(0, 0, 0, 0.22);
        text-shadow: 0 0 16px rgba(0, 212, 255, 0.45);
    }

    /* Soulignement actif/hover fiable, sans dépendre des styles globaux. */
    body.game-service-page .sticky-nav .nav-links > ul > li::after {
        position: absolute;
        left: 50%;
        bottom: -1px;
        width: 0;
        height: 2px;
        margin: 0;
        border-radius: 999px;
        transform: translateX(-50%);
        background: linear-gradient(90deg, var(--game-orange), var(--game-red), var(--game-violet));
        box-shadow: 0 0 10px rgba(255, 122, 24, 0.48);
        transition: width 0.22s ease;
    }

    body.game-service-page .sticky-nav .nav-links > ul > li:hover::after,
    body.game-service-page .sticky-nav .nav-links > ul > li:focus-within::after,
    body.game-service-page .sticky-nav .nav-links > ul > li.active-menu::after,
    body.game-service-page .sticky-nav .nav-links > ul > li.active-parent::after {
        width: calc(100% - 14px);
    }

    /*
       Le margin-top:12px appliqué plus haut créait une zone vide :
       au passage de la souris, le parent perdait :hover et le sous-menu
       disparaissait. Le menu est désormais joint au lien parent, avec un
       recouvrement de 1px pour une continuité de survol parfaite.
    */
    body.game-service-page .sticky-nav .services-dropdown-content,
    body.game-service-page .sticky-nav .portfolio-dropdown-content {
        top: calc(100% - 1px) !important;
        margin-top: 0 !important;
        z-index: 13030 !important;
        display: block !important;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(0);
        transition: opacity 0.18s ease, visibility 0s linear 0.18s;
    }

    body.game-service-page .sticky-nav .services-dropdown:hover > .services-dropdown-content,
    body.game-service-page .sticky-nav .services-dropdown:focus-within > .services-dropdown-content,
    body.game-service-page .sticky-nav .portfolio-dropdown:hover > .portfolio-dropdown-content,
    body.game-service-page .sticky-nav .portfolio-dropdown:focus-within > .portfolio-dropdown-content {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition: opacity 0.18s ease;
    }

    /* Les liens internes gardent un état hover lisible et stable. */
    body.game-service-page .sticky-nav .services-dropdown-content li a:hover,
    body.game-service-page .sticky-nav .services-dropdown-content li a:focus-visible,
    body.game-service-page .sticky-nav .portfolio-dropdown-content li a:hover,
    body.game-service-page .sticky-nav .portfolio-dropdown-content li a:focus-visible {
        outline: none;
        background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(124, 60, 255, 0.17));
        color: #ffffff !important;
    }
}
