
/* ================================================================
   BASE
================================================================ */

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    color: #222222;
    background-color: #F2F2F2;
    line-height: 1.6;
}

* {
    box-sizing: border-box;
}


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

header {
    position: sticky;
    top: 0;
    background-color: #8DEBED;
    border-bottom: 4px solid #000000;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    padding: 16px;
}

nav a {
    text-decoration: none;
    color: #222222;
    font-weight: 900;
    transition:
        color 0.3s ease,
        border-bottom-color 0.3s ease,
        transform 0.3s ease;
}

nav a:hover {
    color: #0077B6;
    transform: translateY(-2px);
}

nav a.active {
    color: #0077B6;
    border-bottom: 2px solid #0077B6;
}

#menuButton {
    display: none;
}


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

section {
    min-height: 900px;
    padding: 80px 48px;
    max-width: 1920px;
    margin: 0 auto;
    box-shadow: 0 3px 10px #999999;
    scroll-margin-top: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: visible;

    opacity: 1;
    transform: none;
}

.section-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    min-width: 0;
}

section:nth-of-type(even) {
    background-color: #FFF3B0;
}

section.visible {
    opacity: 1;
    transform: none;
}

section .section-content {
    opacity: 1;
}

section.visible .section-content {
    animation: contentAppear 0.6s ease both;
}

@keyframes contentAppear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


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

#hero {
    text-align: center;
    min-height: 900px;
    padding: 80px 24px;
    overflow: hidden;
}

#hero .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-100px);
}

#hero h1 {
    font-size: 48px;
    line-height: 1.1;
    margin: 0 0 2px 0;
    color: #222222;
    position: relative;
    z-index: 2;
    transform: scale(1);
    transform-origin: center center;
    opacity: 1;
    letter-spacing: 0;

    animation:
        heroTitleGrow 2.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#hero p {
    font-size: 20px;
    line-height: 1.2;
    margin: 0;
    color: #555555;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    transform: translateY(28px) scale(0.92);
    opacity: 0;
    filter: blur(6px);
    transform-origin: center center;

    animation:
        heroSloganEnter 2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}


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

@keyframes heroTitleGrow {
    from {
        transform: scale(1);
        opacity: 1;
        letter-spacing: 0;
    }

    to {
        transform: scale(1.45);
        opacity: 1;
        letter-spacing: 1.5px;
    }
}

@keyframes heroSloganEnter {
    from {
        transform: translateY(28px) scale(0.92);
        opacity: 0;
        filter: blur(6px);
        letter-spacing: 2px;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: blur(0);
        letter-spacing: 3px;
    }
}


/* ================================================================
   GAME CAROUSEL
================================================================ */

.game-slider {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) 45px;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    overflow: visible;
}

.game-grid {
    display: flex;
    flex: none;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 30px 0;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.7s ease-in-out;
}


/* ================================================================
   GAME CARDS
================================================================ */

.game-card {
    background-color: #E8F7F8;
    border: 2px solid #0077B6;
    border-radius: 10px;
    padding: 0;
    width: 300px;
    min-width: 0;
    flex: 1 1 300px;
    min-height: 430px;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease,
        box-shadow 0.25s ease;
}

.game-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid #0077B6;
}

.game-card h3,
.game-card p {
    margin-left: 12px;
    margin-right: 12px;
    overflow-wrap: anywhere;
}

.game-price {
    font-weight: 700;
    color: #0077B6;
    margin-top: 12px;
}


/* Cartes sur les côtés */

.side-card {
    width: 300px;
    min-width: 0;
    flex: 1 1 300px;
    opacity: 0.55;
    transform: scale(0.9);
}


/* Carte centrale */

.current-card {
    width: 300px;
    min-width: 0;
    flex: 1 1 300px;
    opacity: 1;
    transform: scale(1.04);
    z-index: 2;
    margin: 0;
}

.side-card:hover {
    transform: scale(0.95);
}

.current-card:hover {
    transform: scale(1.07);
}

.game-card:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}


/* ================================================================
   BOUTON BUY NOW DES JEUX
================================================================ */

.game-buy-button {
    display: block;
    width: fit-content;
    max-width: calc(100% - 20px);
    min-width: 115px;
    margin: 18px auto 20px;
    padding: 8px 18px;

    background-color: #0077B6;
    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: center;

    border: 2px solid #0077B6;
    border-radius: 8px;

    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.game-buy-button:hover {
    background-color: #005F8F;
    border-color: #005F8F;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.18);
}

.game-buy-button:active {
    transform: scale(0.97);
}

.game-buy-button:focus-visible {
    outline: 3px solid #8DEBED;
    outline-offset: 3px;
}


/* ================================================================
   BOUTONS DU CAROUSEL
================================================================ */

.slider-button {
    background-color: #8DEBED;
    border: 2px solid #0077B6;
    border-radius: 50%;

    width: 45px;
    height: 45px;
    flex: 0 0 45px;

    padding: 0;
    margin: 0;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    position: relative;
    z-index: 10;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.slider-button span {
    font-size: 24px;
    line-height: 1;
    position: relative;
    top: -2px;
}

.slider-button:hover {
    background-color: #0077B6;
    color: white;
    transform: translateY(-3px) scale(1.1);
}


/* ================================================================
   ABOUT
================================================================ */

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 2.1fr;
    gap: 32px;
    align-items: center;
    margin-top: 32px;
    min-width: 0;
}

.about-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.20);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.about-photo:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.about-text {
    background-color: #E8F7F8;
    border: 2px solid #0077B6;
    border-radius: 10px;
    padding: 36px;
    text-align: center;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

    min-width: 0;
}

.about-text:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.about-text p {
    margin: 0 0 20px 0;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-intro {
    color: #0077B6;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 12px !important;
}

.about-main {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.7;
}

.about-slogan {
    margin-top: 30px !important;
    padding-top: 22px;
    border-top: 2px solid #0077B6;
    color: #0077B6;
    font-size: 20px;
    letter-spacing: 0.5px;
}


/* ================================================================
   DEV PROGRESS
================================================================ */

#progress .section-content {
    transform: translateY(-100px);
}

#progress h2 {
    transform: translateY(-30px);
}

#progress .section-content > p {
    transform: translateY(-45px);
}

.video-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.video-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    min-width: 0;
    overflow: visible;
    opacity: 1;
    transition: opacity 0.7s ease-in-out;
}

.video-wrapper {
    position: relative;
    background-color: #E8F7F8;
    border: 2px solid #0077B6;
    border-radius: 10px;

    width: 800px;
    min-width: 800px;
    aspect-ratio: 16 / 9;

    padding: 0;
    overflow: hidden;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);

    flex-shrink: 0;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease,
        box-shadow 0.25s ease;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-click-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: pointer;
}


/* Vidéos sur les côtés */

.video-side {
    width: 650px;
    min-width: 650px;
    opacity: 0.55;
    transform: scale(0.9);
}


/* Vidéo centrale */

.video-current {
    width: 800px;
    min-width: 800px;
    opacity: 1;
    transform: scale(1.10);
    z-index: 2;
    margin-left: 40px;
    margin-right: 40px;
}

.video-side:hover {
    transform: scale(0.95);
}

.video-current:hover {
    transform: scale(1.13);
}

.video-wrapper:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}


/* ================================================================
   DONATIONS
================================================================ */

#donations {
    text-align: center;
}

.donation-card {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;

    background-color: #E8F7F8;
    border: 3px solid #0077B6;
    border-radius: 14px;

    padding: 60px 40px;

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.20);
}

.donation-label {
    margin: 0 0 8px 0;
    color: #0077B6;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 2px;
}

.donation-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 36px;
}

.donation-description {
    max-width: 650px;
    margin: 0 auto 18px auto;
    font-size: 20px;
    font-weight: 600;
}

.donation-message {
    max-width: 600px;
    margin: 0 auto 32px auto;
    color: #555555;
    font-size: 16px;
}

.buy-button {
    display: inline-block;
    padding: 14px 30px;

    background-color: #0077B6;
    color: #ffffff;

    text-decoration: none;
    font-size: 17px;
    font-weight: 800;

    border: 2px solid #0077B6;
    border-radius: 8px;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.buy-button:hover {
    background-color: #005F8F;
    border-color: #005F8F;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.20);
}

.buy-button:active {
    transform: scale(0.97);
}

.donation-small-text {
    margin-top: 22px;
    margin-bottom: 0;
    color: #777777;
    font-size: 14px;
}


/* ================================================================
   CONTACT
================================================================ */

#contact {
    position: relative;
}

#contact .section-content {
    transform: translateY(-70px);
}

#contact h2 {
    text-align: center;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;

    width: 100%;
    max-width: 480px;

    margin: 32px auto 0 auto;

    background-color: #E8F7F8;
    border: 2px solid #0077B6;
    border-radius: 10px;

    padding: 24px;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px;

    border: 1px solid #cccccc;
    border-radius: 6px;

    font-family: inherit;
    font-size: 16px;

    background-color: #ffffff;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #0077B6;
}

#contact-form button {
    padding: 10px 20px;

    background-color: #0077B6;
    color: #ffffff;

    border: none;
    border-radius: 6px;

    font-weight: 600;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

#contact-form button:hover {
    background-color: #005F8F;
    transform: translateY(-2px);
}

.form-error {
    color: #B5651D;
    font-size: 14px;
    min-height: 20px;
}


/* ================================================================
   TABLETTE
================================================================ */

@media (max-width: 1200px) {

    .game-slider {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 10px;
    }

    .game-grid {
        width: 100%;
        min-width: 0;
        gap: 0;
        justify-content: center;
    }

    .game-grid .side-card {
        display: none;
    }

    .game-grid .game-card {
        width: 260px;
        min-width: 0;
        max-width: 100%;
        flex: 0 1 260px;
        min-height: 390px;
    }

    .game-grid .current-card {
        transform: scale(1.02);
    }

    .game-grid .current-card:hover {
        transform: scale(1.04);
    }

    .game-card img {
        height: 230px;
    }

    .video-grid {
        display: flex;
        flex-direction: row;
        gap: 20px;
    }

    .video-wrapper {
        width: 650px;
        min-width: 650px;
    }

    .video-side {
        width: 500px;
        min-width: 500px;
        transform: scale(0.9);
    }

    .video-current {
        width: 650px;
        min-width: 650px;
        transform: scale(1.05);
        margin-left: 20px;
        margin-right: 20px;
    }

    .video-current:hover {
        transform: scale(1.08);
    }
}


/* ================================================================
   MOBILE
================================================================ */

@media (max-width: 900px) {

    section {
        min-height: calc(100vh - 60px);
        padding: 80px 24px;
        scroll-margin-top: 60px;
        overflow: visible;
    }

    /* MENU MOBILE */

    #menuButton {
        display: block;
        background-color: #8DEBED;
        border: none;
        font-size: 28px;
        padding: 10px 16px;
        cursor: pointer;
    }

    nav {
        display: none;
    }

    nav.open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    /* HERO MOBILE */

    #hero {
        overflow: hidden;
    }

    #hero .section-content {
        transform: translateY(-250px);
    }

    #hero h1 {
        font-size: 40px;
        margin-bottom: 2px;
        transform: scale(1);

        animation:
            heroTitleGrowMobile 2.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    #hero p {
        font-size: 18px;
        transform: translateY(18px) scale(0.92);

        animation:
            heroSloganEnterMobile 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    }

    /* DEVELOPMENT PROGRESS MOBILE */

    #progress .section-content {
        transform: translateY(0);
    }

    #progress h2,
    #progress .section-content > p {
        transform: translateY(0);
    }

    /* GAME CAROUSEL MOBILE */

    .game-slider {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 6px;
        width: 100%;
        min-width: 0;
        overflow: visible;
    }

    .game-grid {
        display: flex;
        flex: none;
        width: 100%;
        min-width: 0;
        gap: 0;
        padding: 12px 0;
        justify-content: center;
        overflow: hidden;
    }

    .game-grid .side-card {
        display: none;
    }

    .game-grid .game-card,
    .game-grid .current-card {
        display: block;
        width: 100%;
        max-width: 260px;
        min-width: 0;
        flex: 0 1 260px;
        min-height: 300px;
        opacity: 1;
        transform: scale(1);
        margin: 0;
    }

    .game-grid .current-card:hover {
        transform: scale(1.02);
    }

    .game-card img {
        height: 170px;
    }

    .game-card h3,
    .game-card p {
        margin-left: 10px;
        margin-right: 10px;
    }

    .game-buy-button {
        margin: 14px auto 16px;
        padding: 8px 16px;
        font-size: 14px;
    }

    /* BOUTONS MOBILE */

    .slider-button {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
        padding: 0;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .slider-button span {
        font-size: 20px;
        line-height: 1;
        position: relative;
        top: -2px;
    }

    .slider-button:hover {
        background-color: #0077B6;
        color: white;
        transform: translateY(-3px) scale(1.1);
    }

    /* ABOUT MOBILE */

    .about-grid {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .about-photo {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-text {
        padding: 28px 24px;
        min-width: 0;
    }

    .about-main {
        font-size: 18px;
    }

    /* VIDEO MOBILE */

    .video-slider {
        gap: 6px;
        overflow: visible;
    }

    .video-grid {
        display: flex;
        flex: 1 1 0;
        flex-direction: row;
        width: 0;
        min-width: 0;
        gap: 0;
        overflow: hidden;
        padding: 0;
        justify-content: center;
    }

    .video-grid .video-side {
        display: none;
    }

    .video-grid .video-current {
        display: block;
        width: 100%;
        max-width: 600px;
        min-width: 0;
        opacity: 1;
        transform: scale(1);
        margin-left: 0;
        margin-right: 0;
    }

    .video-grid .video-current:hover {
        transform: scale(1.02);
    }

    /* DONATIONS MOBILE */

    #donations {
        text-align: center;
    }

    .donation-card {
        padding: 45px 25px;
    }

    .donation-card h2 {
        font-size: 30px;
    }

    .donation-description {
        font-size: 18px;
    }

    .buy-button {
        padding: 13px 24px;
        font-size: 16px;
    }

    /* CONTACT MOBILE */

    #contact .section-content {
        transform: translateY(-70px);
    }

    #contact-form {
        width: 100%;
    }
}


/* ================================================================
   ANIMATIONS HERO MOBILE
================================================================ */

@keyframes heroTitleGrowMobile {
    from {
        transform: scale(1);
        opacity: 1;
        letter-spacing: 0;
    }

    to {
        transform: scale(1.23);
        opacity: 1;
        letter-spacing: 1px;
    }
}

@keyframes heroSloganEnterMobile {
    from {
        transform: translateY(18px) scale(0.92);
        opacity: 0;
        filter: blur(6px);
        letter-spacing: 1.5px;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: blur(0);
        letter-spacing: 2.3px;
    }
}


/* ================================================================
   PETIT ÉCRAN
================================================================ */

@media (max-width: 600px) {

    .about-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .about-text {
        padding: 24px 20px;
    }
}


/* ================================================================
   FOOTER
================================================================ */

footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 48px;
    border-top: 1px solid #e5e5e5;
    font-size: 14px;
    color: #777777;
}

footer a {
    color: #0077B6;
    text-decoration: none;
}


/* ================================================================
   ANIMATIONS DES CAROUSELS
================================================================ */

.game-grid.fade-out {
    opacity: 0;
}

.game-grid.fade-in {
    opacity: 1;
}

.video-grid.fade-out {
    opacity: 0;
}

.video-grid.fade-in {
    opacity: 1;
}


/* ================================================================
   BACK TO TOP
================================================================ */

#back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;

    width: 44px;
    height: 44px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #0077B6;
    border-radius: 50%;

    background-color: #8DEBED;
    color: #000000;

    font-family: inherit;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#back-to-top:hover {
    background-color: #0077B6;
    border-color: #0077B6;
    color: #FFFFFF;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

#back-to-top:active {
    transform: scale(0.95);
}

#back-to-top:focus-visible {
    outline: 3px solid #0077B6;
    outline-offset: 3px;
}


/* ================================================================
   RECHERCHE ET TRI DES JEUX
================================================================ */

/* Champ de recherche centré */

#game-search {
    display: block;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;

    padding: 10px;
    margin: 24px auto 16px;

    border: 1px solid #cccccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
}


/* Conteneur des deux boutons de tri */

.game-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    gap: 12px;
    width: 100%;
    margin: 0 auto 24px;
    flex-wrap: wrap;
}


/* Boutons de tri */

.game-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 160px;
    min-height: 44px;
    flex: 0 0 160px;
    box-sizing: border-box;

    padding: 10px 12px;

    background-color: #8DEBED;
    color: #000000;

    border: 2px solid #0077B6;
    border-radius: 6px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: center;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


/* Survol : bleu foncé */

.game-controls button:hover {
    background-color: #0077B6;
    color: #FFFFFF;
    border-color: #0077B6;
    transform: translateY(-2px);
}


/* Accessibilité au clavier */

.game-controls button:focus-visible {
    outline: 3px solid #0077B6;
    outline-offset: 3px;
}


/* Adaptation aux petits écrans */

@media (max-width: 480px) {

    .game-controls {
        gap: 8px;
        padding: 0 4px;
    }

    .game-controls button {
        width: auto;
        flex: 1 1 130px;
        max-width: 100%;
    }
}


/* ================================================================
   RÉDUCTION DES ANIMATIONS
================================================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    section {
        opacity: 1;
        transform: none;
        transition: none;
    }

    section .section-content {
        opacity: 1;
        animation: none;
    }

    nav a,
    .game-card,
    .game-buy-button,
    .slider-button,
    .about-photo,
    .about-text,
    .video-wrapper,
    .donation-card,
    .buy-button,
    #contact-form button,
    #back-to-top {
        transition: none;
    }

    #hero h1,
    #hero p {
        animation: none;
        opacity: 1;
        filter: none;
        transform: none;
    }
}


/* ================================================================
   GAMES - UNE SEULE CARTE SUR MOBILE
================================================================ */

@media (max-width: 900px) {

    .game-grid {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        overflow: hidden;
    }

    .game-grid .side-card {
        display: none;
    }

    .game-grid .current-card {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 420px;
        min-width: 0;
        margin: 0 auto;
        transform: none;
    }

    .game-grid .current-card img {
        width: 100%;
        height: auto;
        max-height: 260px;
        object-fit: cover;
    }
}


/* ================================================================
   ACCESSIBILITY - SKIP LINK
================================================================ */

.skip-link {
    position: fixed;
    top: -100px;
    left: 10px;
    z-index: 99999;

    padding: 12px 16px;
    background-color: #FFFFFF;
    color: #000000;

    text-decoration: none;
    border: 2px solid #000000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 10px;
}


        /* Correction : empêcher la carte de prendre toute la hauteur */
        main.payment-page {
            min-height: 100vh !important;
            height: auto !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

        main.payment-page > section.payment-card {
            display: block !important;
            width: 100% !important;
            max-width: 360px !important;
            height: auto !important;
            min-height: 0 !important;
            max-height: none !important;
            flex: 0 0 auto !important;
            padding: 26px 22px !important;
        }