/* ========================================
   IMPORTS & FONTS
======================================== */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700&display=swap');

@font-face {
    font-family: 'Bakso Menu';
    src: url('../fonts/BaksoMenu-7O82B.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* ========================================
   VARIABLES CSS
======================================== */
:root {
    --neon-pink: #EE087A;
    --neon-purple: #611EA2;
    --neon-blue: #0EA1AE;
    --accent-gradient: linear-gradient(135deg, #FF10F0, #0EA1AE);
    --spring-easing: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Espacements responsives */
    --spacing-xs: clamp(0.5rem, 1vw, 1rem);
    --spacing-sm: clamp(1rem, 2vw, 1.5rem);
    --spacing-md: clamp(1.5rem, 3vw, 2.5rem);
    --spacing-lg: clamp(2rem, 4vw, 4rem);
    --spacing-xl: clamp(3rem, 6vw, 6rem);
    
    /* Tailles de texte */
    --text-xs: clamp(0.7rem, 1.5vw, 0.9rem);
    --text-sm: clamp(0.8rem, 1.8vw, 1rem);
    --text-md: clamp(1rem, 2.2vw, 1.2rem);
    --text-lg: clamp(1.2rem, 2.5vw, 1.5rem);
    --text-xl: clamp(1.5rem, 3vw, 2rem);
    --text-xxl: clamp(1.8rem, 4vw, 3rem);
}

/* ========================================
   RESET & BASE
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -webkit-touch-callout: none;
}

img, a {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: auto;
}

h1, h2, h3, h4, h5, h6, p, span:not(.emoji) {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

html {
    scroll-behavior: auto;
    font-size: 16px;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Sora', 'Bakso Menu', sans-serif;
    background: #FDA0CE;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 16, 240, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 255, 240, 0.1) 0%, transparent 50%);
    animation: floatingParticles 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes floatingParticles {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2vw, -2vh) rotate(120deg); }
    66% { transform: translate(-1.5vw, 1.5vh) rotate(240deg); }
}

/* ========================================
   SCROLL HORIZONTAL & PAGES
======================================== */
.horizontal-scroll {
    display: flex;
    height: 100vh;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: auto;
    background-color: #FDA0CE;
    -webkit-overflow-scrolling: touch;
    scroll-snap-stop: always;
    will-change: scroll-position;
    transform: translateZ(0);
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.page {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.container {
    width: 100%;
    height: 100vh;
    background-color: #FDA0CE;
    position: relative;
    overflow: visible;
}

/* ========================================
   ÉLÉMENTS COMMUNS - LOGO
======================================== */
.logo-fixed {
    position: fixed;
    width: clamp(2.5rem, 6vw + 0.5rem, 5rem);
    height: auto;
    top: clamp(1rem, 2vh + 0.5rem, 4rem);
    right: clamp(1rem, 2vw + 0.5rem, 2rem);
    opacity: 1;
    z-index: 10000;
    cursor: pointer;
    pointer-events: auto;
    filter: drop-shadow(0 0.625rem 1.25rem rgba(0, 0, 0, 0.15));
    transition: all 0.4s var(--spring-easing);
}

.logo-fixed img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.logo-fixed:hover {
    transform: scale(1.08) rotate(3deg);
    filter: drop-shadow(0 0.9375rem 1.875rem rgba(238, 8, 122, 0.3));
}

.logo-fixed:active {
    transform: scale(0.98);
}

/* ========================================
   ÉLÉMENTS COMMUNS - TITRES DES SECTIONS
======================================== */
.page h1 {
    position: absolute;
    top: clamp(1rem, 2vh + 0.5rem, 4rem);
    left: clamp(1rem, 2vw + 0.5rem, 2rem);
    padding: 0 !important;
    margin: 0 !important;
    font-family: 'Bakso Menu', sans-serif;
    font-size: clamp(1.4rem, 3vw + 0.5rem, 3rem);
    color: #000000;
    z-index: 10;
    animation: titleSlideIn 1s var(--spring-easing);
    max-width: calc(100vw - clamp(2rem, 4vw + 1rem, 4rem) - clamp(2.5rem, 6vw + 0.5rem, 5rem) - clamp(1rem, 2vw, 2rem));
    word-wrap: break-word;
}

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-3vw);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   ÉLÉMENTS COMMUNS - MENU NAVIGATION
======================================== */
.top-menu {
    position: absolute;
    top: clamp(1rem, 2vh + 0.5rem, 4rem);
    left: clamp(1rem, 2vw + 0.5rem, 2rem);
    display: flex;
    gap: clamp(0.5rem, 1vw + 0.2rem, 1.5625rem);
    z-index: 10;
    align-items: center;
    animation: menuAppear 1s var(--spring-easing) 0.1s backwards;
    flex-wrap: wrap;
    max-width: calc(100vw - clamp(2rem, 4vw + 1rem, 4rem) - clamp(2.5rem, 6vw + 0.5rem, 5rem) - clamp(1rem, 2vw, 2rem));
}

@keyframes menuAppear {
    0% {
        opacity: 0;
        transform: translateY(-2.5rem) scale(0.8);
    }
    60% {
        transform: translateY(0.3125rem) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.menu-btn {
    background: linear-gradient(135deg, rgba(14, 161, 174, 0.95), rgba(10, 130, 140, 0.95));
    backdrop-filter: blur(0.625rem);
    -webkit-backdrop-filter: blur(0.625rem);
    border: 0.0625rem solid rgba(255, 255, 255, 0.3);
    border-radius: clamp(0.625rem, 1vw + 0.25rem, 0.9375rem);
    box-shadow: 0.25rem 0.25rem 0.125rem 0 #EE087ACC;
    padding: clamp(0.5em, 1vw + 0.1em, 0.8em) clamp(0.8em, 1.5vw + 0.2em, 1.5em);
    font-size: clamp(0.7rem, 1.5vw + 0.2rem, 1rem);
    font-family: 'Bakso Menu', sans-serif;
    font-weight: 400;
    color: #FFFFFF;
    text-decoration: none;
    text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--spring-easing);
    will-change: transform;
    white-space: nowrap;
}

.menu-btn:hover {
    transform: translateY(-0.5rem) scale(1.1);
    box-shadow: 0.375rem 0.375rem 0.25rem 0 #EE087ACC;
}

.menu-btn:active {
    transform: translateY(-0.125rem) scale(1.05);
    box-shadow: 0.125rem 0.125rem 0.0625rem 0 #EE087ACC;
}

.menu-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

.menu-btn[href="#jeu"] {
    background: linear-gradient(135deg, rgba(97, 30, 162, 0.95), rgba(77, 24, 130, 0.95));
    box-shadow: 0.25rem 0.25rem 0.125rem 0 #FBCC3C;
}

.menu-btn[href="#jeu"]:hover {
    box-shadow: 0.375rem 0.375rem 0.25rem 0 #FBCC3C;
}

.menu-btn[href="#jeu"]:active {
    box-shadow: 0.125rem 0.125rem 0.0625rem 0 #FBCC3C;
}

.jeu-buttons .menu-btn:last-child {
    background: #EE087A;
    box-shadow: 0.25rem 0.25rem 0.125rem 0 #FBCC3C;
}

.jeu-buttons .menu-btn:last-child:hover {
    background: #d10769;
    box-shadow: 0.375rem 0.375rem 0.25rem 0 #FBCC3C;
}

.jeu-buttons .menu-btn:last-child:active {
    background: #EE087A;
    box-shadow: 0.125rem 0.125rem 0.0625rem 0 #FBCC3C;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* ========================================
   ÉLÉMENTS COMMUNS - FLÈCHES NAVIGATION
======================================== */
.arrow-nav {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(2.5rem, 8vw + 0.5rem, 4.375rem);
    height: clamp(1.5rem, 4vw + 0.3rem, 2.375rem);
    bottom: clamp(3vh, 4vh + 1rem, 6vh);
    background: linear-gradient(135deg, rgba(14, 161, 174, 0.95), rgba(10, 130, 140, 0.95));
    backdrop-filter: blur(0.625rem);
    -webkit-backdrop-filter: blur(0.625rem);
    border: 0.0625rem solid rgba(255, 255, 255, 0.3);
    border-radius: 6.25rem;
    box-shadow: 0.25rem 0.25rem 0.125rem 0 #EE087ACC;
    opacity: 1;
    cursor: pointer;
    text-decoration: none;
    z-index: 10000;
    overflow: hidden;
    pointer-events: auto;
    transition: all 0.4s var(--spring-easing);
    will-change: transform;
}

.arrow-back-fixed {
    left: clamp(3vw, 4vw + 0.5rem, 5vw);
    opacity: 0;
    pointer-events: none;
}

.arrow-back-fixed.visible {
    opacity: 1;
    pointer-events: auto;
}

.arrow-next-fixed {
    right: clamp(3vw, 4vw + 0.5rem, 5vw);
}

.arrow-next-fixed.hidden {
    opacity: 0;
    pointer-events: none;
}

.arrow-nav:hover {
    box-shadow: 0.375rem 0.375rem 0.25rem 0 #EE087ACC;
}

.arrow-nav:active {
    transform: scale(0.95);
    box-shadow: 0.125rem 0.125rem 0.0625rem 0 #EE087ACC;
}

.arrow-nav::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shine 4s ease-in-out infinite;
}

.arrow-nav svg {
    display: block;
    width: clamp(1.2rem, 3vw + 0.3rem, 2rem);
    height: clamp(0.6rem, 1.5vw + 0.15rem, 1rem);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0.125rem 0.25rem rgba(0, 0, 0, 0.3));
    transition: all 0.3s var(--spring-easing);
}

/* ========================================
   SECTION 1 - PAGE D'ACCUEIL
======================================== */

/* Titre principal */
.main-title {
    position: absolute;
    width: clamp(18rem, 50vw + 5rem, 47.5rem);
    height: auto;
    aspect-ratio: 760 / 493;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    display: block;
    z-index: 5;
    filter: drop-shadow(0 0.625rem 1.875rem rgba(238, 8, 122, 0.3));
    animation: titleAppear 1.2s var(--spring-easing), 
               titleFloat 4s ease-in-out infinite 1.2s;
    object-fit: contain;
    object-position: center;
}

@keyframes titleAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(3rem) scale(0.9);
    }
    60% {
        transform: translate(-50%, -50%) translateY(-0.625rem) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0) scale(1);
    }
}

@keyframes titleFloat {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-0.5rem);
    }
}

/* Boutons page d'accueil */
.btn-primary,
.btn-secondary {
    position: absolute;
    width: clamp(7rem, 12vw + 2rem, 8.125rem);
    height: auto;
    padding: clamp(0.7em, 1.5vh + 0.2em, 1.125em) clamp(0.9em, 1.5vw + 0.3em, 1.25em);
    background: linear-gradient(135deg, rgba(14, 161, 174, 0.95), rgba(10, 130, 140, 0.95));
    backdrop-filter: blur(0.625rem);
    -webkit-backdrop-filter: blur(0.625rem);
    border: 0.0625rem solid rgba(255, 255, 255, 0.3);
    border-radius: clamp(0.625rem, 1vw + 0.25rem, 0.9375rem);
    box-shadow: 0 0.5rem 1.25rem rgba(238, 8, 122, 0.3),
                0 0.125rem 0.5rem rgba(0, 0, 0, 0.1),
                inset 0 0.0625rem 0 rgba(255, 255, 255, 0.3);
    opacity: 1;
    cursor: pointer;
    overflow: hidden;
    font-family: 'Bakso Menu', sans-serif;
    font-weight: 400;
    font-size: clamp(0.7rem, 1.5vw + 0.2rem, 0.9rem);
    color: #FFFFFF;
    text-decoration: none;
    text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--spring-easing);
    will-change: transform;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

.btn-primary {
    top: clamp(60vh, 65vh, 70vh);
    animation: slideUp 1s var(--spring-easing) 0.2s backwards;
}

.btn-secondary {
    top: clamp(70vh, 75vh, 80vh);
    animation: slideUp 1s var(--spring-easing) 0.4s backwards;
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(2.5rem) scale(0.8);
    }
    60% {
        transform: translateX(-50%) translateY(-0.3125rem) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateX(-50%) translateY(-0.5rem) scale(1.08);
    box-shadow: 0 0.9375rem 2.1875rem rgba(238, 8, 122, 0.5),
                0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.2),
                inset 0 0.0625rem 0 rgba(255, 255, 255, 0.5);
}

.btn-primary:active,
.btn-secondary:active {
    transform: translateX(-50%) translateY(-0.125rem) scale(1.02);
}

/* Émojis flottants - Page d'accueil */
.circle-1, .circle-2, .circle-3, .circle-4 {
    position: absolute;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.circle-1 {
    width: clamp(5rem, 10vw + 1rem, 9.5625rem);
    height: clamp(5rem, 10vw + 1rem, 9.5625rem);
    top: clamp(8vh, 20vh + 2rem, 28vh);
    left: clamp(2vw, 8vw + 1rem, 12vw);
}

.circle-2 {
    width: clamp(5rem, 10vw + 1rem, 9.5625rem);
    height: clamp(5rem, 10vw + 1rem, 9.5625rem);
    top: clamp(5vh, 8vh + 1rem, 10vh);
    right: clamp(4vw, 12vw + 1rem, 15vw);
}

.circle-3 {
    width: clamp(5.5rem, 11vw + 1rem, 10.625rem);
    height: clamp(5.5rem, 11vw + 1rem, 10.625rem);
    bottom: clamp(12vh, 18vh + 2rem, 20vh);
    left: clamp(2vw, 6vw + 1rem, 8vw);
}

.circle-4 {
    width: clamp(5.5rem, 11vw + 1rem, 10.625rem);
    height: clamp(5.5rem, 11vw + 1rem, 10.625rem);
    bottom: clamp(10vh, 12vh + 2rem, 14vh);
    right: clamp(4vw, 15vw + 1rem, 18vw);
}

.circle-1 .emoji,
.circle-2 .emoji,
.circle-3 .emoji,
.circle-4 .emoji {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0.5rem 1rem rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.circle-1:hover,
.circle-2:hover,
.circle-3:hover,
.circle-4:hover {
    transform: scale(1.1);
}

.circle-1:hover .emoji,
.circle-2:hover .emoji,
.circle-3:hover .emoji,
.circle-4:hover .emoji {
    filter: drop-shadow(0 0.625rem 1.25rem rgba(238, 8, 122, 0.4));
}

.circle-star {
    position: relative;
    width: clamp(4.5rem, 8vw + 1rem, 7.5rem);
    height: clamp(4.5rem, 8vw + 1rem, 7.5rem);
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.circle-star .emoji {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0.5rem 1rem rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.circle-star:hover {
    transform: scale(1.15);
}

.circle-star:hover .emoji {
    filter: drop-shadow(0 0.625rem 1.25rem rgba(238, 8, 122, 0.4));
}

/* ========================================
   SECTION 2 - PAGE JEU
======================================== */

#jeu .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(6rem, 12vh, 10rem) clamp(1.5rem, 3vw, 2.5rem) clamp(3rem, 6vh, 5rem);
}

#jeu h1 {
    position: absolute;
    top: clamp(1rem, 2vh + 0.5rem, 4rem);
    left: clamp(1rem, 2vw + 0.5rem, 2rem);
    padding: 0;
    animation: titleSlideIn 1s var(--spring-easing);
}

.jeu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 4vh, 3.5rem);
    width: 100%;
    max-width: min(90vw, 50rem);
    height: 100%;
}

.img-jeu {
    display: block;
    width: 100%;
    max-width: min(85vw, 28rem);
    height: auto;
    max-height: clamp(18rem, 45vh, 32rem);
    aspect-ratio: 1 / 1;
    object-fit: cover; /* ⬅️ CHANGÉ DE "contain" À "cover" */
    border-radius: clamp(1rem, 2vw, 1.5rem);
    overflow: hidden; /* ⬅️ AJOUTÉ */
    box-shadow: none;
    transition: transform 0.3s ease;
    animation: fadeInScale 1s var(--spring-easing) 0.3s backwards;
    flex-shrink: 0;
    background: #FDA0CE; /* ⬅️ AJOUTÉ (couleur de fond pour voir les coins) */
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }
    60% {
        transform: scale(1.03);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.img-jeu:hover {
    transform: scale(1.02);
}

.jeu-buttons {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    width: 100%;
    max-width: min(85vw, 28rem);
    animation: slideUpFade 1s var(--spring-easing) 0.5s backwards;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(2rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.jeu-buttons .menu-btn {
    flex: 1;
    max-width: clamp(8rem, 40vw, 15rem);
    min-height: clamp(2.8rem, 6vh, 4rem);
    position: relative;
    overflow: hidden;
    font-size: clamp(0.85rem, 2.5vw, 1.1rem);
    padding: clamp(0.7em, 2vh, 1em) clamp(1em, 2.5vw, 1.5em);
    display: flex;
    align-items: center;
    justify-content: center;
}

.jeu-buttons .menu-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

.jeu-buttons .menu-btn:hover {
    transform: translateY(-0.5rem) scale(1.05);
}

.jeu-buttons .menu-btn:active {
    transform: translateY(-0.125rem) scale(1.02);
}

.jeu-buttons .menu-btn:first-child {
    background: linear-gradient(135deg, rgba(97, 30, 162, 0.95), rgba(77, 24, 130, 0.95));
    box-shadow: 0.25rem 0.25rem 0.125rem 0 #FBCC3C;
}

.jeu-buttons .menu-btn:first-child:hover {
    box-shadow: 0.375rem 0.375rem 0.25rem 0 #FBCC3C;
}

.jeu-buttons .menu-btn:first-child:active {
    box-shadow: 0.125rem 0.125rem 0.0625rem 0 #FBCC3C;
}

.jeu-buttons .menu-btn:last-child {
    background: #EE087A;
    box-shadow: 0.25rem 0.25rem 0.125rem 0 #FBCC3C;
}

.jeu-buttons .menu-btn:last-child:hover {
    background: #d10769;
    box-shadow: 0.375rem 0.375rem 0.25rem 0 #FBCC3C;
}

.jeu-buttons .menu-btn:last-child:active {
    background: #EE087A;
    box-shadow: 0.125rem 0.125rem 0.0625rem 0 #FBCC3C;
}

.site-link:hover {
    color: #611EA2;
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE JEU - MOBILE
======================================== */

@media screen and (max-width: 48rem) {
    #jeu .container {
        padding: clamp(5rem, 10vh, 8rem) clamp(1rem, 3vw, 1.5rem) clamp(2.5rem, 5vh, 4rem);
    }
    
    .jeu-content {
        gap: clamp(1.5rem, 4vh, 2.5rem);
    }
    
    .img-jeu {
        max-width: min(80vw, 24rem);
        max-height: clamp(16rem, 40vh, 24rem);
    }
    
    .jeu-buttons {
        max-width: min(80vw, 24rem);
        gap: clamp(0.8rem, 2vw, 1.5rem);
    }
    
    .jeu-buttons .menu-btn {
        font-size: clamp(0.75rem, 3.5vw, 1rem);
        padding: clamp(0.65em, 2.5vh, 0.9em) clamp(0.8em, 3vw, 1.2em);
        min-height: clamp(2.5rem, 7vh, 3.5rem);
    }
}

/* Très petits mobiles */
@media screen and (max-width: 23.4375rem) {
    #jeu .container {
        padding: clamp(4.5rem, 9vh, 7rem) clamp(0.8rem, 2vw, 1.2rem) clamp(2rem, 4vh, 3rem);
    }
    
    .jeu-content {
        gap: clamp(1.2rem, 3vh, 2rem);
    }
    
    .img-jeu {
        max-width: 88vw;
        max-height: clamp(14rem, 35vh, 20rem);
    }
    
    .jeu-buttons {
        max-width: 88vw;
        gap: clamp(0.6rem, 1.5vw, 1rem);
        flex-direction: row;
    }
    
    .jeu-buttons .menu-btn {
        font-size: clamp(0.7rem, 4vw, 0.9rem);
        padding: clamp(0.6em, 2vh, 0.8em) clamp(0.7em, 2.5vw, 1em);
        min-height: clamp(2.3rem, 6vh, 3rem);
        white-space: nowrap;
    }
}

/* ========================================
   RESPONSIVE JEU - MODE PAYSAGE MOBILE
======================================== */

@media screen and (max-height: 30rem) and (orientation: landscape) {
    #jeu .container {
        padding: clamp(0.8rem, 2vh, 1.5rem) clamp(1.5rem, 4vw, 3rem);
        min-height: auto;
        height: 100vh;
    }

    #jeu h1 {
        top: clamp(0.5rem, 1.5vh, 1rem);
        left: clamp(0.5rem, 1.5vw, 1rem);
        font-size: clamp(0.9rem, 3vh, 1.3rem);
    }

    .jeu-content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: clamp(2rem, 5vw, 4rem);
        max-width: none;
        width: 100%;
    }

    .img-jeu {
        max-width: clamp(12rem, 35vw, 20rem);
        max-height: clamp(12rem, 60vh, 18rem);
        width: auto;
        height: auto;
        flex-shrink: 1;
    }

    .jeu-buttons {
        flex-direction: column;
        max-width: clamp(9rem, 25vw, 14rem);
        gap: clamp(0.6rem, 2vh, 1rem);
        flex-shrink: 0;
    }

    .jeu-buttons .menu-btn {
        max-width: 100%;
        width: 100%;
        padding: clamp(0.5em, 1.5vh, 0.7em) clamp(0.8em, 2vw, 1.2em);
        font-size: clamp(0.65rem, 2vh, 0.85rem);
        min-height: clamp(2rem, 5vh, 2.8rem);
        white-space: nowrap;
    }
}

/* Paysage très petite hauteur */
@media screen and (max-height: 25rem) and (orientation: landscape) {
    #jeu .container {
        padding: clamp(0.5rem, 1.5vh, 1rem) clamp(1rem, 3vw, 2rem);
    }

    #jeu h1 {
        font-size: clamp(0.8rem, 2.5vh, 1.1rem);
    }

    .jeu-content {
        gap: clamp(1.5rem, 4vw, 3rem);
    }

    .img-jeu {
        max-width: clamp(10rem, 30vw, 16rem);
        max-height: clamp(10rem, 55vh, 15rem);
    }

    .jeu-buttons {
        max-width: clamp(8rem, 22vw, 12rem);
        gap: clamp(0.5rem, 1.5vh, 0.8rem);
    }

    .jeu-buttons .menu-btn {
        padding: clamp(0.4em, 1.2vh, 0.6em) clamp(0.7em, 1.8vw, 1em);
        font-size: clamp(0.6rem, 1.8vh, 0.75rem);
        min-height: clamp(1.8rem, 4.5vh, 2.5rem);
    }
}

/* Paysage tablette */
@media screen and (max-height: 50rem) and (min-height: 30.0625rem) and (orientation: landscape) {
    #jeu .container {
        padding: clamp(1rem, 3vh, 2rem) clamp(2rem, 5vw, 4rem);
    }

    #jeu h1 {
        font-size: clamp(1.1rem, 3.5vh, 1.6rem);
    }

    .jeu-content {
        gap: clamp(2.5rem, 6vw, 5rem);
    }

    .img-jeu {
        max-width: clamp(16rem, 40vw, 24rem);
        max-height: clamp(14rem, 65vh, 20rem);
    }

    .jeu-buttons {
        max-width: clamp(12rem, 28vw, 16rem);
        gap: clamp(0.8rem, 2.5vh, 1.2rem);
    }

    .jeu-buttons .menu-btn {
        font-size: clamp(0.75rem, 2.2vh, 0.95rem);
        min-height: clamp(2.5rem, 6vh, 3.5rem);
    }
}
/* ========================================
   POP-UP CENTRÉE
======================================== */

.popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(0.25rem);
    -webkit-backdrop-filter: blur(0.25rem);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup-content {
    background-color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: clamp(1.5rem, 3vw + 1rem, 2.5rem);
    border-radius: clamp(0.875rem, 1.5vw, 1.25rem);
    width: clamp(85%, 90%, 95%);
    max-width: 25rem;
    text-align: center;
    box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.3);
    animation: popupAppear 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popupAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-3rem) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0) scale(1);
    }
}

.popup-content p {
    font-size: clamp(1.2rem, 3vw + 0.5rem, 1.875rem);
    font-weight: 800;
    margin: 0;
    color: #333;
    word-wrap: break-word;
}

.close {
    position: absolute;
    right: clamp(0.75rem, 2vw, 1.25rem);
    top: clamp(0.625rem, 1.5vh, 0.9375rem);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: bold;
    cursor: pointer;
    color: #333;
    transition: all 0.3s ease;
    line-height: 1;
    width: clamp(1.75rem, 4vw, 2rem);
    height: clamp(1.75rem, 4vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: #611EA2;
    background: rgba(97, 30, 162, 0.1);
    transform: rotate(90deg) scale(1.1);
}

.close:active {
    transform: rotate(90deg) scale(0.95);
}

.popup-content .jeu-link {
    text-align: center;
    margin-top: clamp(1.25rem, 2vh + 0.5rem, 1.875rem);
}

.popup-content .site-link {
    font-family: 'Bakso Menu', sans-serif;
    background: linear-gradient(135deg, rgba(97, 30, 162, 0.95), rgba(77, 24, 130, 0.95));
    border: 0.0625rem solid rgba(255, 255, 255, 0.3);
    border-radius: clamp(0.625rem, 1.5vw, 0.9375rem);
    box-shadow: 0.25rem 0.25rem 0.125rem 0 #FBCC3C;
    padding: clamp(0.75rem, 1.5vh + 0.25rem, 1rem) clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
    font-size: clamp(0.75rem, 1.8vw + 0.2rem, 1rem);
    font-weight: 400;
    color: #FFFFFF;
    text-decoration: none;
    text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
    display: inline-block;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    will-change: transform;
}

@supports (backdrop-filter: blur(0.625rem)) or (-webkit-backdrop-filter: blur(0.625rem)) {
    .popup-content .site-link {
        backdrop-filter: blur(0.625rem);
        -webkit-backdrop-filter: blur(0.625rem);
    }
}

.popup-content .site-link::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

.popup-content .site-link:hover {
    transform: translateY(-0.5rem) scale(1.1);
    box-shadow: 0.375rem 0.375rem 0.25rem 0 #FBCC3C;
}

.popup-content .site-link:active {
    transform: translateY(-0.125rem) scale(1.05);
    box-shadow: 0.125rem 0.125rem 0.0625rem 0 #FBCC3C;
}

/* ========================================
   SECTION 3 - QUI SOMMES-NOUS PARTIE 1
======================================== */

#qui-sommes-nous-1 h1 {
    position: absolute;
    top: clamp(1rem, 2vh, 2rem);
    left: clamp(1rem, 2vw, 2rem);
    padding: 0 !important;
    font-family: 'Bakso Menu', sans-serif;
    font-size: clamp(1.4rem, 3vw + 0.5rem, 3rem);
    color: #000000;
    z-index: 10;
    animation: titleSlideIn 1s var(--spring-easing);
}

#qui-sommes-nous-1 {
    overflow: hidden; /* ⬅️ AUCUN SCROLL */
}

#qui-sommes-nous-1 .container {
    position: relative;
    overflow: hidden;
    height: 100vh; /* ⬅️ EXACTEMENT LA HAUTEUR DE L'ÉCRAN */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.content-block {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: clamp(0.6rem, 1.2vh, 1.2rem); /* ⬅️ GAP ADAPTATIF */
    perspective: 62.5rem;
}

#qui-sommes-nous-1 .left-block {
    top: 50%;
    transform: translateY(-50%);
    left: clamp(1.5rem, 4vw, 5rem);
    width: clamp(18rem, 36vw, 34rem);
    max-height: 82vh; /* ⬅️ MAX 82% DE LA HAUTEUR */
    animation: slideFromLeft 1.5s var(--spring-easing);
}

#qui-sommes-nous-1 .right-block {
    top: 50%;
    transform: translateY(-50%);
    right: clamp(1.5rem, 4vw, 5rem);
    width: clamp(18rem, 36vw, 34rem);
    max-height: 82vh; /* ⬅️ MAX 82% DE LA HAUTEUR */
    animation: slideFromRight 1.5s var(--spring-easing) 0.3s backwards;
}

@keyframes slideFromLeft {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(-6.25rem);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes slideFromRight {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(6.25rem);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* ⬇️ IMAGE ADAPTATIVE */
#qui-sommes-nous-1 .content-img {
    width: 100%;
    height: auto;
    max-height: clamp(10rem, 30vh, 20rem); /* ⬅️ MAX 30% HAUTEUR ÉCRAN */
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: clamp(0.875rem, 1.5vw, 1.25rem);
    transition: all 0.5s var(--spring-easing);
    cursor: pointer;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    flex-shrink: 0;
}

#qui-sommes-nous-1 .content-img:hover {
    transform: scale(1.02) translateY(-0.5rem);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

/* ⬇️ TEXTE 100% ADAPTATIF (SANS SCROLL) */
#qui-sommes-nous-1 .content-text {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: clamp(0.65rem, 0.9vw + 0.15vh, 0.95rem); /* ⬅️ TAILLE ULTRA-ADAPTATIVE */
    line-height: clamp(1.3, 1.35, 1.5); /* ⬅️ INTERLIGNE ADAPTATIF */
    color: #000000;
    padding: clamp(0.6rem, 1vh, 1rem);
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.1) 0%, 
                rgba(255, 255, 255, 0.05) 100%);
    border: 0.0625rem solid rgba(255, 255, 255, 0.1);
    border-radius: clamp(0.75rem, 1.2vw, 0.9375rem);
    animation: fadeInUp 1s var(--spring-easing) 0.5s backwards;
    overflow: hidden; /* ⬅️ PAS DE SCROLL */
    max-height: clamp(8rem, 28vh, 16rem); /* ⬅️ S'ADAPTE À LA HAUTEUR DISPONIBLE */
    flex-shrink: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis; /* ⬅️ "..." SI VRAIMENT TROP LONG */
}

@supports (backdrop-filter: blur(1.25rem)) or (-webkit-backdrop-filter: blur(1.25rem)) {
    #qui-sommes-nous-1 .content-text {
        backdrop-filter: blur(1.25rem);
        -webkit-backdrop-filter: blur(1.25rem);
        transform: translateZ(0);
        will-change: backdrop-filter;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(1.875rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#qui-sommes-nous-1 .circle-star {
    position: relative;
    width: clamp(3rem, 5vh, 6rem);
    height: clamp(3rem, 5vh, 6rem);
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#qui-sommes-nous-1 .circle-star .emoji {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0.5rem 1rem rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

#qui-sommes-nous-1 .circle-star:hover {
    transform: scale(1.15);
}

#qui-sommes-nous-1 .circle-star:hover .emoji {
    filter: drop-shadow(0 0.625rem 1.25rem rgba(238, 8, 122, 0.4));
}

#qui-sommes-nous-1 .svg-between-blocks {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    max-width: clamp(5rem, 8vw, 8rem);
    height: auto;
    opacity: 0.8;
}

#qui-sommes-nous-1 .svg-right-image {
    position: absolute;
    right: clamp(-12rem, -10vw, -12.5rem);
    top: 60%;
    transform: translateY(-50%);
    z-index: 5;
    max-width: clamp(7rem, 10vw, 11rem);
    height: auto;
    opacity: 0.8;
}

#qui-sommes-nous-1 .svg-left-image {
    position: absolute;
    left: clamp(-12rem, -10vw, -12.5rem);
    top: -10%;
    transform: translateY(-50%) scaleX(-1);
    z-index: 5;
    max-width: clamp(7rem, 10vw, 11rem);
    height: auto;
    opacity: 0.8;
}

/* ========================================
   RESPONSIVE SECTION 3 - MOBILE (1 COLONNE)
======================================== */

@media screen and (max-width: 48rem) {
    #qui-sommes-nous-1 .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: clamp(3.5rem, 8vh, 5rem) clamp(1rem, 3vw, 1.5rem) clamp(1.5rem, 3vh, 2.5rem);
        gap: clamp(1.2rem, 2.5vh, 2.5rem);
        overflow-y: auto; /* ⬅️ SCROLL VERTICAL SI NÉCESSAIRE SUR MOBILE */
        height: 100vh;
    }

    #qui-sommes-nous-1 .left-block,
    #qui-sommes-nous-1 .right-block {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100%;
        max-width: min(85vw, 28rem);
        max-height: none;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: clamp(0.8rem, 1.5vh, 1.2rem);
    }

    #qui-sommes-nous-1 .content-img {
        max-width: 100%;
        max-height: clamp(12rem, 30vh, 18rem);
        aspect-ratio: 4 / 3;
        order: 0;
    }

    #qui-sommes-nous-1 .content-text {
        font-size: clamp(0.7rem, 2.2vw + 0.1vh, 0.9rem);
        line-height: clamp(1.35, 1.4, 1.5);
        padding: clamp(0.7rem, 1.5vh, 0.9rem);
        max-height: none; /* ⬅️ PAS DE LIMITE SUR MOBILE */
        overflow: visible;
        order: 1;
    }

    #qui-sommes-nous-1 .circle-star {
        width: clamp(3rem, 6vh, 5rem);
        height: clamp(3rem, 6vh, 5rem);
        order: 2;
    }

    /* Masquer tous les SVG sur mobile */
    #qui-sommes-nous-1 .svg-between-blocks,
    #qui-sommes-nous-1 .svg-right-image,
    #qui-sommes-nous-1 .svg-left-image {
        display: none !important;
    }
}

/* ========================================
   RESPONSIVE SECTION 3 - PAYSAGE MOBILE
======================================== */

@media screen and (max-height: 30rem) and (orientation: landscape) {
    #qui-sommes-nous-1 h1 {
        top: clamp(0.5rem, 1.5vh, 1rem);
        left: clamp(0.5rem, 1.5vw, 1rem);
        font-size: clamp(0.9rem, 3vh, 1.3rem);
    }

    #qui-sommes-nous-1 .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: clamp(2.5rem, 6vh, 3.5rem) clamp(1rem, 3vw, 2rem) clamp(1rem, 2vh, 1.5rem);
        gap: clamp(0.8rem, 1.8vh, 1.2rem);
        overflow-y: auto; /* ⬅️ SCROLL SI NÉCESSAIRE */
        height: 100vh;
    }

    #qui-sommes-nous-1 .left-block,
    #qui-sommes-nous-1 .right-block {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100%;
        max-width: min(90vw, 50rem);
        max-height: none;
        display: flex;
        flex-direction: row; /* ⬅️ CÔTE À CÔTE EN PAYSAGE */
        gap: clamp(0.8rem, 2vw, 1.5rem);
        align-items: center;
    }

    #qui-sommes-nous-1 .content-img {
        width: auto;
        max-width: clamp(12rem, 32vw, 20rem);
        max-height: clamp(9rem, 42vh, 13rem);
        aspect-ratio: 4 / 3;
        flex-shrink: 0;
        order: 0;
    }

    #qui-sommes-nous-1 .content-text {
        flex: 1;
        font-size: clamp(0.6rem, 1.5vh + 0.3vw, 0.8rem); /* ⬅️ ADAPTATIF */
        line-height: clamp(1.3, 1.35, 1.45);
        padding: clamp(0.5rem, 1vh, 0.7rem);
        max-height: clamp(7rem, 40vh, 11rem); /* ⬅️ S'ADAPTE */
        overflow: hidden; /* ⬅️ PAS DE SCROLL */
        order: 1;
    }

    #qui-sommes-nous-1 .circle-star {
        width: clamp(2.5rem, 5.5vh, 4rem);
        height: clamp(2.5rem, 5.5vh, 4rem);
        flex-shrink: 0;
        order: 2;
    }

    /* Masquer tous les SVG en paysage */
    #qui-sommes-nous-1 .svg-between-blocks,
    #qui-sommes-nous-1 .svg-right-image,
    #qui-sommes-nous-1 .svg-left-image {
        display: none !important;
    }
}

/* Paysage très petite hauteur */
@media screen and (max-height: 25rem) and (orientation: landscape) {
    #qui-sommes-nous-1 h1 {
        font-size: clamp(0.8rem, 2.5vh, 1.1rem);
    }

    #qui-sommes-nous-1 .container {
        padding: clamp(2rem, 5vh, 2.8rem) clamp(0.8rem, 2vw, 1.5rem) clamp(0.8rem, 1.5vh, 1.2rem);
        gap: clamp(0.6rem, 1.2vh, 0.9rem);
    }

    #qui-sommes-nous-1 .content-img {
        max-width: clamp(10rem, 28vw, 16rem);
        max-height: clamp(7rem, 38vh, 11rem);
    }

    #qui-sommes-nous-1 .content-text {
        font-size: clamp(0.55rem, 1.3vh + 0.25vw, 0.7rem);
        line-height: 1.3;
        padding: clamp(0.4rem, 0.8vh, 0.6rem);
        max-height: clamp(6rem, 36vh, 9rem);
    }

    #qui-sommes-nous-1 .circle-star {
        width: clamp(2rem, 5vh, 3.5rem);
        height: clamp(2rem, 5vh, 3.5rem);
    }
}

/* Masquer les SVG section 3 sur tablettes (≤ 80rem) */
@media screen and (max-width: 80rem) {
    #qui-sommes-nous-1 .svg-between-blocks,
    #qui-sommes-nous-1 .svg-right-image,
    #qui-sommes-nous-1 .svg-left-image {
        display: none !important;
    }
}

/* ========================================
   SECTION 4 - QUI SOMMES-NOUS PARTIE 2
======================================== */

#qui-sommes-nous-2 h1 {
    position: absolute;
    top: clamp(1rem, 2vh + 0.5rem, 4rem);
    left: clamp(1rem, 2vw + 0.5rem, 2rem);
    padding: 0 !important;
    font-family: 'Bakso Menu', sans-serif;
    font-size: clamp(1.4rem, 3vw + 0.5rem, 3rem);
    color: #000000;
    animation: titleSlideIn 1s var(--spring-easing);
}

#qui-sommes-nous-2 {
    overflow-y: auto;
    overflow-x: hidden;
}

#qui-sommes-nous-2 .container {
    position: relative;
    overflow: visible;
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(5rem, 10vh, 8rem) clamp(2rem, 4vw, 4rem) clamp(4rem, 8vh, 6rem);
    gap: clamp(3rem, 6vh, 5rem);
}

/* Blocs de contenu en colonnes */
.qs2-block {
    position: relative;
    width: 100%;
    max-width: clamp(28rem, 60vw, 45rem);
    display: flex;
    flex-direction: column;
    gap: clamp(1.2rem, 2vh + 0.3rem, 1.5625rem);
    animation: fadeInUp 1s var(--spring-easing);
}

#qui-sommes-nous-2 .block-left,
#qui-sommes-nous-2 .block-right,
#qui-sommes-nous-2 .block-center {
    align-self: center;
}

/* ⬇️ IMAGE ADAPTATIVE COMME LE JEU */
#qui-sommes-nous-2 .content-img {
    width: 100%;
    height: auto;
    max-height: clamp(14rem, 32vh, 22rem); /* ⬅️ S'adapte à la hauteur écran */
    aspect-ratio: 4 / 3; /* ⬅️ Ratio cohérent */
    object-fit: cover;
    border-radius: clamp(0.875rem, 1.5vw, 1.25rem);
    transition: all 0.5s var(--spring-easing);
    cursor: pointer;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    order: 0;
}

#qui-sommes-nous-2 .content-img:hover {
    transform: scale(1.02) translateY(-0.5rem);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

#qui-sommes-nous-2 .content-text {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.3vw + 0.2rem, 1rem);
    line-height: 1.6;
    color: #000000;
    padding: clamp(1rem, 1.5vw + 0.3rem, 1.25rem);
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.1) 0%, 
                rgba(255, 255, 255, 0.05) 100%);
    border: 0.0625rem solid rgba(255, 255, 255, 0.1);
    border-radius: clamp(0.75rem, 1.2vw, 0.9375rem);
    animation: fadeInUp 1s var(--spring-easing) 0.5s backwards;
    order: 1;
}

@supports (backdrop-filter: blur(1.25rem)) or (-webkit-backdrop-filter: blur(1.25rem)) {
    #qui-sommes-nous-2 .content-text {
        backdrop-filter: blur(1.25rem);
        -webkit-backdrop-filter: blur(1.25rem);
        transform: translateZ(0);
        will-change: backdrop-filter;
    }
}

#qui-sommes-nous-2 .circle-star {
    order: 2;
}

#qui-sommes-nous-2 .svg-violet-image {
    position: absolute;
    left: clamp(6rem, 12vw + 1rem, 9.375rem);
    top: 80%;
    transform: translateY(-50%);
    z-index: 5;
    max-width: 100%;
    height: auto;
}

#qui-sommes-nous-2 .trait-jaune {
    position: absolute;
    left: clamp(16rem, 35vw + 2rem, 26.25rem);
    top: 73%;
    transform: translateY(-50%);
    z-index: 5;
    width: clamp(4rem, 8vw + 1rem, 5.9375rem);
    height: auto;
}

#qui-sommes-nous-2 .trait2-jaune {
    position: absolute;
    right: clamp(16rem, 30vw + 2rem, 21.875rem);
    top: 73%;
    transform: translateY(-50%);
    z-index: 5;
    width: clamp(6rem, 12vw + 2rem, 10.625rem);
    height: auto;
}

#qui-sommes-nous-2 .vert {
    position: absolute;
    right: 5rem;
    top: 15%;
    transform: translateY(-50%);
    z-index: 5;
    max-width: 100%;
    height: auto;
}

#qui-sommes-nous-2 .drolef {
    position: absolute;
    right: clamp(10rem, 20vw + 2rem, 15.625rem);
    top: 90%;
    transform: translateY(-50%);
    z-index: 5;
    max-width: 100%;
    height: auto;
}


/* ========================================
   SECTION 5 - NOS RÉSEAUX
======================================== */
#nos-reseaux .container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.video-block {
  position: absolute;
  width: clamp(12rem, 18vw + 3rem, 17.5rem);
  height: clamp(16rem, 35vh + 3rem, 31.25rem);
  top: 50%;
  transform: translateY(-50%);
}

.left-video {
  left: clamp(5rem, 10vw + 1rem, 9.375rem);
}

.right-video {
  right: clamp(5rem, 10vw + 1rem, 9.375rem);
}

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

.reseaux-logo {
  position: absolute;
  width: clamp(15rem, 25vw + 3rem, 25rem);
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  filter: drop-shadow(0 0.625rem 1.875rem rgba(238, 8, 122, 0.4));
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-0.625rem);
  }
}

.reseaux-footer {
  position: absolute;
  bottom: clamp(4rem, 10vh + 1rem, 8rem);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(1.5rem, 4vw + 0.5rem, 3.75rem);
  z-index: 100;
}

.footer-left {
  display: flex;
  gap: clamp(0.75rem, 2vw + 0.3rem, 1.875rem);
  align-items: center;
  margin-left: clamp(6rem, 12vw + 1rem, 12.5rem);
  margin-right: clamp(3rem, 6vw + 1rem, 6.25rem);
  flex-wrap: wrap;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1vw, 0.625rem);
  color: #000000;
  text-decoration: none;
  font-family: 'Sora', sans-serif;
  font-size: clamp(0.75rem, 1vw + 0.2rem, 1rem);
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-link:hover {
  transform: translateY(-0.1875rem);
  color: #EE087A;
}

.footer-icon {
  width: clamp(1.2rem, 2vw + 0.3rem, 1.875rem);
  height: clamp(1.2rem, 2vw + 0.3rem, 1.875rem);
  object-fit: contain;
}

.footer-right {
  display: flex;
  gap: clamp(0.5rem, 1vw + 0.2rem, 0.9375rem);
  align-items: center;
  margin-right: clamp(1rem, 2vw + 0.5rem, 2.5rem);
  flex-wrap: wrap;
}

.footer-text-link {
  color: #000000;
  text-decoration: none;
  font-family: 'Sora', sans-serif;
  font-size: clamp(0.65rem, 0.8vw + 0.15rem, 0.875rem);
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-text-link:hover {
  color: #EE087A;
  text-decoration: underline;
}

.footer-separator {
  color: #000000;
  font-size: clamp(0.65rem, 0.8vw + 0.15rem, 0.875rem);
}

/* ========================================
   RESPONSIVE RÉSEAUX - TABLETTES
======================================== */
@media screen and (max-width: 64rem) {
  .video-block {
    width: clamp(10rem, 16vw + 2rem, 14rem);
    height: clamp(14rem, 32vh + 2rem, 24rem);
  }
  
  .left-video {
    left: clamp(3rem, 7vw + 0.5rem, 6rem);
  }
  
  .right-video {
    right: clamp(3rem, 7vw + 0.5rem, 6rem);
  }
  
  .reseaux-logo {
    width: clamp(13rem, 22vw + 2rem, 20rem);
  }
  
  .footer-left {
    margin-left: clamp(4rem, 9vw + 0.5rem, 8rem);
    margin-right: clamp(2rem, 5vw + 0.5rem, 4rem);
    gap: clamp(0.6rem, 1.8vw + 0.2rem, 1.4rem);
  }
  
  .footer-right {
    margin-right: clamp(0.8rem, 1.8vw + 0.3rem, 2rem);
  }
  
  .footer-link {
    font-size: clamp(0.7rem, 0.95vw + 0.15rem, 0.9rem);
  }
  
  .footer-icon {
    width: clamp(1.1rem, 1.9vw + 0.2rem, 1.6rem);
    height: clamp(1.1rem, 1.9vw + 0.2rem, 1.6rem);
  }
  
  .footer-text-link,
  .footer-separator {
    font-size: clamp(0.62rem, 0.78vw + 0.12rem, 0.8rem);
  }
}

/* ========================================
   RESPONSIVE RÉSEAUX - TABLETTES PETITES
======================================== */
@media screen and (max-width: 48rem) {
  .video-block {
    width: clamp(8rem, 14vw + 1.5rem, 12rem);
    height: clamp(12rem, 28vh + 1.5rem, 20rem);
  }
  
  .left-video {
    left: clamp(2rem, 5vw + 0.4rem, 4.5rem);
  }
  
  .right-video {
    right: clamp(2rem, 5vw + 0.4rem, 4.5rem);
  }
  
  .reseaux-logo {
    width: clamp(11rem, 20vw + 1.5rem, 17rem);
  }
  
  .reseaux-footer {
    bottom: clamp(3rem, 8vh + 0.8rem, 6rem);
    padding: 0 clamp(1rem, 3vw + 0.3rem, 2rem);
  }
  
  .footer-left {
    margin-left: clamp(2.5rem, 6vw + 0.4rem, 5rem);
    margin-right: clamp(1.5rem, 4vw + 0.3rem, 3rem);
    gap: clamp(0.5rem, 1.5vw + 0.15rem, 1rem);
  }
  
  .footer-right {
    margin-right: clamp(0.6rem, 1.5vw + 0.2rem, 1.5rem);
  }
  
  .footer-link {
    font-size: clamp(0.65rem, 0.9vw + 0.12rem, 0.82rem);
  }
  
  .footer-icon {
    width: clamp(1rem, 1.7vw + 0.18rem, 1.4rem);
    height: clamp(1rem, 1.7vw + 0.18rem, 1.4rem);
  }
  
  .footer-text-link,
  .footer-separator {
    font-size: clamp(0.58rem, 0.72vw + 0.1rem, 0.72rem);
  }
}

/* ========================================
   RESPONSIVE RÉSEAUX - MOBILE
======================================== */
@media screen and (max-width: 36rem) {
  .video-block {
    width: clamp(7rem, 12vw + 1rem, 10rem);
    height: clamp(10rem, 24vh + 1rem, 16rem);
  }
  
  .left-video {
    left: clamp(1.5rem, 4vw + 0.3rem, 3.5rem);
  }
  
  .right-video {
    right: clamp(1.5rem, 4vw + 0.3rem, 3.5rem);
  }
  
  .reseaux-logo {
    width: clamp(9rem, 18vw + 1rem, 14rem);
  }
  
  .reseaux-footer {
    bottom: clamp(2.5rem, 7vh + 0.5rem, 5rem);
    flex-direction: column;
    gap: clamp(0.8rem, 1.5vh, 1.2rem);
    padding: 0 clamp(0.8rem, 2vw, 1.5rem);
  }
  
  .footer-left {
    margin-left: 0;
    margin-right: 0;
    justify-content: center;
    gap: clamp(0.5rem, 1.2vw, 0.8rem);
  }
  
  .footer-right {
    margin-right: 0;
    justify-content: center;
    gap: clamp(0.35rem, 0.8vw, 0.5rem);
  }
  
  .footer-link {
    font-size: clamp(0.62rem, 1.8vw + 0.1rem, 0.75rem);
  }
  
  .footer-icon {
    width: clamp(0.95rem, 2.5vw + 0.15rem, 1.3rem);
    height: clamp(0.95rem, 2.5vw + 0.15rem, 1.3rem);
  }
  
  .footer-text-link,
  .footer-separator {
    font-size: clamp(0.55rem, 1.5vw + 0.08rem, 0.65rem);
  }
}

/* ========================================
   RESPONSIVE RÉSEAUX - PETITS MOBILES
======================================== */
@media screen and (max-width: 30rem) {
  .video-block {
    width: clamp(6rem, 11vw + 0.8rem, 8.5rem);
    height: clamp(8.5rem, 22vh + 0.8rem, 14rem);
  }
  
  .left-video {
    left: clamp(1rem, 3.5vw + 0.2rem, 2.5rem);
  }
  
  .right-video {
    right: clamp(1rem, 3.5vw + 0.2rem, 2.5rem);
  }
  
  .reseaux-logo {
    width: clamp(8rem, 16vw + 0.8rem, 12rem);
  }
  
  .reseaux-footer {
    bottom: clamp(2rem, 6vh + 0.4rem, 4rem);
    gap: clamp(0.7rem, 1.2vh, 1rem);
    padding: 0 clamp(0.6rem, 1.5vw, 1rem);
  }
  
  .footer-left {
    gap: clamp(0.45rem, 1vw, 0.7rem);
    flex-direction: row;
  }
  
  .footer-right {
    gap: clamp(0.3rem, 0.7vw, 0.45rem);
  }
  
  .footer-link {
    font-size: clamp(0.58rem, 1.6vw + 0.08rem, 0.68rem);
    white-space: nowrap;
  }
  
  .footer-icon {
    width: clamp(0.9rem, 2.2vw + 0.12rem, 1.15rem);
    height: clamp(0.9rem, 2.2vw + 0.12rem, 1.15rem);
  }
  
  .footer-text-link,
  .footer-separator {
    font-size: clamp(0.52rem, 1.3vw + 0.06rem, 0.6rem);
  }
}

/* ========================================
   RESPONSIVE RÉSEAUX - PAYSAGE MOBILE
======================================== */
@media screen and (max-height: 30rem) and (orientation: landscape) {
  .video-block {
    width: clamp(7rem, 13vw + 1rem, 11rem);
    height: clamp(10rem, 50vh, 16rem);
  }
  
  .left-video {
    left: clamp(2rem, 5vw + 0.5rem, 4rem);
  }
  
  .right-video {
    right: clamp(2rem, 5vw + 0.5rem, 4rem);
  }
  
  .reseaux-logo {
    width: clamp(10rem, 20vw + 1.5rem, 16rem);
  }
  
  .reseaux-footer {
    bottom: clamp(1.5rem, 4vh + 0.3rem, 2.5rem);
    flex-direction: row;
    gap: clamp(1rem, 3vw, 2rem);
    padding: 0 clamp(1rem, 3vw, 2rem);
  }
  
  .footer-left {
    margin-left: clamp(3rem, 7vw, 5rem);
    margin-right: clamp(1.5rem, 4vw, 3rem);
    gap: clamp(0.5rem, 1.5vw, 1rem);
  }
  
  .footer-right {
    margin-right: clamp(0.8rem, 2vw, 1.5rem);
  }
  
  .footer-link {
    font-size: clamp(0.6rem, 1.8vh + 0.3vw, 0.75rem);
  }
  
  .footer-icon {
    width: clamp(0.95rem, 2.5vh + 0.3vw, 1.2rem);
    height: clamp(0.95rem, 2.5vh + 0.3vw, 1.2rem);
  }
  
  .footer-text-link,
  .footer-separator {
    font-size: clamp(0.55rem, 1.5vh + 0.25vw, 0.65rem);
  }
}

/* ========================================
   RESPONSIVE RÉSEAUX - PAYSAGE TRÈS PETITE HAUTEUR
======================================== */
@media screen and (max-height: 25rem) and (orientation: landscape) {
  .video-block {
    width: clamp(6rem, 11vw + 0.8rem, 9rem);
    height: clamp(8rem, 45vh, 13rem);
  }
  
  .left-video {
    left: clamp(1.5rem, 4vw + 0.3rem, 3rem);
  }
  
  .right-video {
    right: clamp(1.5rem, 4vw + 0.3rem, 3rem);
  }
  
  .reseaux-logo {
    width: clamp(8rem, 18vw + 1rem, 13rem);
  }
  
  .reseaux-footer {
    bottom: clamp(1rem, 3vh + 0.2rem, 1.8rem);
    gap: clamp(0.8rem, 2.5vw, 1.5rem);
  }
  
  .footer-left {
    margin-left: clamp(2rem, 5vw, 3.5rem);
    margin-right: clamp(1rem, 3vw, 2rem);
    gap: clamp(0.4rem, 1.2vw, 0.8rem);
  }
  
  .footer-right {
    margin-right: clamp(0.6rem, 1.5vw, 1rem);
  }
  
  .footer-link {
    font-size: clamp(0.55rem, 1.5vh + 0.25vw, 0.68rem);
  }
  
  .footer-icon {
    width: clamp(0.85rem, 2vh + 0.25vw, 1.05rem);
    height: clamp(0.85rem, 2vh + 0.25vw, 1.05rem);
  }
  
  .footer-text-link,
  .footer-separator {
    font-size: clamp(0.5rem, 1.2vh + 0.2vw, 0.6rem);
  }
}
/* ========================================
   RESPONSIVE MOBILE - GLOBAL
======================================== */

@media screen and (max-width: 48rem) {
    html {
        font-size: 15px;
    }
    
    .page h1 {
        max-width: calc(100vw - 2rem - 3rem - 0.5rem);
    }
    
    .top-menu {
        max-width: calc(100vw - 2rem - 3rem - 0.5rem);
    }
}

@media screen and (max-width: 30rem) {
    html {
        font-size: 14px;
    }
}





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

@media screen and (max-height: 30rem) and (orientation: landscape) {
    /* Global */
    .page h1 {
        font-size: clamp(1.1rem, 3vh + 0.5rem, 1.6rem);
    }

    .menu-btn {
        padding: clamp(0.4em, 1vh + 0.1em, 0.6em) clamp(0.7em, 1.5vw + 0.2em, 1em);
        font-size: clamp(0.65rem, 1.2vw + 0.15rem, 0.8rem);
    }

    .arrow-nav {
        bottom: 2vh;
    }

    /* Section 1 - Accueil */
    .main-title {
        width: clamp(16rem, 40vw + 3rem, 25rem);
    }

    .btn-primary {
        top: 50%;
        left: 35%;
    }

    .btn-secondary {
        top: 50%;
        left: 65%;
    }

    .circle-1,
    .circle-2 {
        width: clamp(3.5rem, 8vh + 1rem, 5rem);
        height: clamp(3.5rem, 8vh + 1rem, 5rem);
        top: 18vh;
    }

    .circle-3,
    .circle-4 {
        width: clamp(4rem, 10vh + 1rem, 5.5rem);
        height: clamp(4rem, 10vh + 1rem, 5.5rem);
        bottom: 18vh;
    }

   

    

    

  
}

/* ========================================
   PAYSAGE TRÈS PETITE HAUTEUR (≤ 25rem)
======================================== */

@media screen and (max-height: 25rem) and (orientation: landscape) {
    /* Global */
    .page h1 {
        font-size: clamp(0.9rem, 2.5vh, 1.2rem);
    }

    /* Section 1 - Accueil */
    .main-title {
        width: clamp(14rem, 35vw + 2rem, 22rem);
    }

    .btn-primary,
    .btn-secondary {
        width: clamp(6rem, 10vw, 7rem);
        padding: clamp(0.4em, 1vh, 0.55em) clamp(0.7em, 1.2vw, 0.9em);
        font-size: clamp(0.6rem, 1.4vh, 0.75rem);
    }

    .circle-1,
    .circle-2 {
        width: clamp(3rem, 7vh, 4.5rem);
        height: clamp(3rem, 7vh, 4.5rem);
        top: 15vh;
    }

    .circle-3,
    .circle-4 {
        width: clamp(3.5rem, 8vh, 5rem);
        height: clamp(3.5rem, 8vh, 5rem);
        bottom: 15vh;
    }

   
   

    

  
}

/* ========================================
   PAYSAGE TABLETTE (hauteur ≤ 50rem)
======================================== */

@media screen and (max-height: 50rem) and (min-height: 30.0625rem) and (orientation: landscape) {
    /* Ajustements pour tablettes en paysage */
    .page h1 {
        font-size: clamp(1.3rem, 3.5vh, 2rem);
    }

    /* Section 1 */
    .main-title {
        width: clamp(20rem, 45vw, 35rem);
    }

    
   

   
   
}

/* ========================================
   DÉSACTIVATION HOVER TACTILE
======================================== */

@media (hover: none) and (pointer: coarse) {
    .logo-fixed:hover {
        transform: none;
        filter: drop-shadow(0 0.625rem 1.25rem rgba(0, 0, 0, 0.15));
    }

    .menu-btn:hover,
    .arrow-nav:hover {
        transform: none;
        box-shadow: 0.25rem 0.25rem 0.125rem 0 #EE087ACC;
    }

    .btn-primary:hover,
    .btn-secondary:hover {
        transform: translateX(-50%);
    }

    .circle-1:hover,
    .circle-2:hover,
    .circle-3:hover,
    .circle-4:hover,
    .circle-star:hover {
        transform: none;
    }

    .img-jeu:hover {
        transform: none;
    }

    #qui-sommes-nous-1 .content-img:hover,
    #qui-sommes-nous-2 .content-img:hover {
        transform: none;
        box-shadow: none;
    }

    .footer-link:hover,
    .footer-text-link:hover {
        transform: none;
        color: #000000;
    }

    .close:hover {
        transform: none;
        background: none;
        color: #333;
    }

    /* Garder les feedbacks :active */
    .logo-fixed:active {
        transform: scale(0.95);
    }

    .menu-btn:active,
    .arrow-nav:active {
        transform: scale(0.95);
    }

    .btn-primary:active,
    .btn-secondary:active {
        transform: translateX(-50%) scale(0.95);
    }

    .circle-1:active,
    .circle-2:active,
    .circle-3:active,
    .circle-4:active,
    .circle-star:active {
        transform: scale(0.95);
    }

    .img-jeu:active {
        transform: scale(0.98);
    }

    #qui-sommes-nous-1 .content-img:active,
    #qui-sommes-nous-2 .content-img:active {
        transform: scale(0.98);
    }

    .footer-link:active {
        color: #EE087A;
    }

    .close:active {
        transform: scale(0.9);
    }
}

/* ========================================
   OPTIMISATIONS PERFORMANCES & ACCESSIBILITÉ
======================================== */

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

@media (prefers-color-scheme: dark) {
    :root {
        --glass-white: rgba(0, 0, 0, 0.1);
        --glass-border: rgba(255, 255, 255, 0.1);
    }
}
 