/* ===== Variables CSS - Style Épuré ===== */
:root {
    /* Colors - Palette du site (conservée) */
    --beige: #F5F1E8;
    --beige-cream: #FFFBF5;
    --beige-dark: #E8E3D8;
    --dark-green: #2D5016;
    --lavender: #E8D5FF;
    --lime-green: #B8FF9F;
    --white: #FFFFFF;
    --black: #000000;
    --gray: #666666;
    
    /* Fonts */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

video {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    display: block;
    line-height: 0 !important;
    font-size: 0 !important;
}

html {
    scroll-behavior: auto;
    background-color: transparent;
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-green);
    background-color: #A8D5E2;
    overflow: hidden;
    margin: 0;
    padding: 0;
    height: 100vh;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background-color: transparent;
    z-index: 1000;
    border-bottom: none;
    padding-top: 20px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
    opacity: 1;
}

/* Effet d'explosion du header */
.navbar.exploded {
    animation: navbarExplode 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes navbarExplode {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    30% {
        transform: translateY(-20px) scale(1.05);
        opacity: 0.9;
    }
    60% {
        transform: translateY(-100px) scale(0.8) rotate(5deg);
        opacity: 0.3;
    }
    100% {
        transform: translateY(-150px) scale(0.3) rotate(15deg);
        opacity: 0;
        pointer-events: none;
    }
}

/* Réapparition du header */
.navbar:not(.exploded) {
    animation: navbarReappear 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes navbarReappear {
    0% {
        transform: translateY(-150px) scale(0.3) rotate(15deg);
        opacity: 0;
    }
    50% {
        transform: translateY(-50px) scale(0.9) rotate(-5deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
        pointer-events: auto;
    }
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 80px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-logo a {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #FFFFFF;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 80px;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    text-shadow: none;
    padding-bottom: 8px;
    text-decoration: none;
}


.btn-nav {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 32px;
    border: 1px solid #FFFFFF;
    border-radius: 50px;
    transition: var(--transition);
    text-decoration: none;
    background-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    position: absolute;
    right: 80px;
}

.btn-nav:hover {
    background-color: #FFFFFF;
    color: #000000;
    text-shadow: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: #FFFFFF;
    transition: var(--transition);
}

/* ===== Hero Section - Split Layout ===== */
.hero-split {
    display: flex;
    min-height: 100vh;
    max-height: 100vh;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.hero-image-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #A8D5E2 0%, #C8E5F0 50%, #E0F2F8 100%);
    background-image: url('de697e396d7b3c0403fc03154d2d3679_1767129571.jpeg');
    background-size: 150% 150%;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    transform-origin: center center;
    animation: imageMorphContinuous 15s linear infinite;
    will-change: transform, filter;
    /* Optimisations pour chargement instantané */
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    transform: translateZ(0);
    /* Forcer le préchargement */
    content: '';
}

/* Effet de lumière/glow incroyable */
.hero-image-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(168, 213, 226, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(200, 229, 240, 0.3) 0%, transparent 50%);
    animation: lightMove 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes lightMove {
    0%, 100% {
        opacity: 0.6;
        transform: translate(0, 0) scale(1);
    }
    25% {
        opacity: 0.8;
        transform: translate(50px, -30px) scale(1.1);
    }
    50% {
        opacity: 0.7;
        transform: translate(0, -50px) scale(1.2);
    }
    75% {
        opacity: 0.8;
        transform: translate(-50px, -30px) scale(1.1);
    }
}

/* Animation continue avec vitesse constante - déformations et rotations très importantes */
@keyframes imageMorphContinuous {
    0% {
        transform: scale(1.2) rotate(8deg) skew(12deg, 6deg) translate(20px, -15px);
        filter: brightness(1.15) contrast(1.1) saturate(1.2) hue-rotate(5deg) drop-shadow(0 0 20px rgba(168, 213, 226, 0.3));
    }
    12.5% {
        transform: scale(1.28) rotate(13deg) skew(16deg, 8deg) translate(25px, -20px);
        filter: brightness(1.2) contrast(1.14) saturate(1.25) hue-rotate(7.5deg) drop-shadow(0 0 25px rgba(168, 213, 226, 0.4));
    }
    25% {
        transform: scale(1.35) rotate(18deg) skew(20deg, 10deg) translate(30px, -25px);
        filter: brightness(1.25) contrast(1.18) saturate(1.3) hue-rotate(10deg) drop-shadow(0 0 30px rgba(168, 213, 226, 0.5));
    }
    37.5% {
        transform: scale(1.4) rotate(22deg) skew(23deg, 13deg) translate(35px, -30px);
        filter: brightness(1.28) contrast(1.22) saturate(1.35) hue-rotate(12.5deg) drop-shadow(0 0 35px rgba(168, 213, 226, 0.6));
    }
    50% {
        transform: scale(1.4) rotate(25deg) skew(25deg, 15deg) translate(40px, -35px);
        filter: brightness(1.3) contrast(1.25) saturate(1.4) hue-rotate(15deg) drop-shadow(0 0 40px rgba(168, 213, 226, 0.7));
    }
    62.5% {
        transform: scale(1.35) rotate(20deg) skew(18deg, 10deg) translate(32px, -28px);
        filter: brightness(1.25) contrast(1.2) saturate(1.3) hue-rotate(12deg) drop-shadow(0 0 30px rgba(168, 213, 226, 0.5));
    }
    75% {
        transform: scale(1.25) rotate(12deg) skew(10deg, 5deg) translate(22px, -18px);
        filter: brightness(1.18) contrast(1.15) saturate(1.25) hue-rotate(8deg) drop-shadow(0 0 25px rgba(168, 213, 226, 0.4));
    }
    87.5% {
        transform: scale(1.15) rotate(4deg) skew(4deg, 2deg) translate(10px, -8px);
        filter: brightness(1.1) contrast(1.08) saturate(1.15) hue-rotate(4deg) drop-shadow(0 0 20px rgba(168, 213, 226, 0.3));
    }
    100% {
        transform: scale(1.2) rotate(8deg) skew(12deg, 6deg) translate(20px, -15px);
        filter: brightness(1.15) contrast(1.1) saturate(1.2) hue-rotate(5deg) drop-shadow(0 0 20px rgba(168, 213, 226, 0.3));
    }
}

/* Left Section (55-60%) */
.hero-left {
    flex: 0 0 58%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 80px;
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    animation: slideInFromLeft3D 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideInFromLeft3D {
    0% {
        opacity: 0;
        transform: translateX(-100px) rotateY(-30deg) translateZ(-200px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg) translateZ(0);
    }
}

.hero-content {
    max-width: 100%;
    position: relative;
    width: 100%;
    min-height: 100%;
    /* Conteneur pour les pages en position absolute */
}

/* Pages système - toutes les pages dans le même conteneur */
.page-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    will-change: opacity;
    /* Pas de transition CSS - GSAP gère tout */
}

/* Page HOME - positionnement correct pour YUKO CODE */
#page-home {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 140px; /* Déplace YUKO CODE vers le bas */
}

.hero-intro {
    position: relative;
    width: 100%;
}

.hero-name {
    font-family: var(--font-serif);
    font-size: clamp(72px, 12vw, 180px);
    font-weight: 900;
    color: #FFFFFF;
    line-height: 0.85;
    letter-spacing: -2px;
    margin-bottom: 0;
    text-transform: uppercase;
    margin-left: 4cm;
    transform-style: preserve-3d;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.name-line {
    display: block;
    white-space: nowrap;
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: translate(0, 0) scale(1);
    animation: letterArrive 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    will-change: transform;
    pointer-events: auto;
}

/* Ordre désordonné : C, O, Y, D, U, E, K, O */
/* C - arrive en premier */
.hero-name .name-line:nth-child(2) .letter:nth-child(1) {
    animation-delay: 0.1s;
    animation-name: letterArriveC;
    animation-duration: 1.2s;
}

/* O (deuxième) - arrive en deuxième */
.hero-name .name-line:nth-child(2) .letter:nth-child(2) {
    animation-delay: 0.2s;
    animation-name: letterArriveO2;
    animation-duration: 1.2s;
}

/* Y - arrive en troisième */
.hero-name .name-line:nth-child(1) .letter:nth-child(1) {
    animation-delay: 0.3s;
    animation-name: letterArriveY;
    animation-duration: 1.2s;
}

/* D - arrive en quatrième */
.hero-name .name-line:nth-child(2) .letter:nth-child(3) {
    animation-delay: 0.4s;
    animation-name: letterArriveD;
    animation-duration: 1.2s;
}

/* U - arrive en cinquième */
.hero-name .name-line:nth-child(1) .letter:nth-child(2) {
    animation-delay: 0.5s;
    animation-name: letterArriveU;
    animation-duration: 1.2s;
}

/* E - arrive en sixième */
.hero-name .name-line:nth-child(2) .letter:nth-child(4) {
    animation-delay: 0.6s;
    animation-name: letterArriveE;
    animation-duration: 1.2s;
}

/* K - arrive en septième */
.hero-name .name-line:nth-child(1) .letter:nth-child(3) {
    animation-delay: 0.7s;
    animation-name: letterArriveK;
    animation-duration: 1.2s;
}

/* O (premier) - arrive en dernier */
.hero-name .name-line:nth-child(1) .letter:nth-child(4) {
    animation-delay: 0.8s;
    animation-name: letterArriveO1;
    animation-duration: 1.2s;
}

/* Animations pour chaque lettre - arrivée depuis les bords de l'écran */
@keyframes letterArriveY {
    0% {
        opacity: 0;
        transform: translate(-100vw, -50vh) rotate(-180deg) scale(0.3);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

@keyframes letterArriveU {
    0% {
        opacity: 0;
        transform: translate(100vw, -50vh) rotate(180deg) scale(0.3);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

@keyframes letterArriveK {
    0% {
        opacity: 0;
        transform: translate(-50vw, -100vh) rotate(90deg) scale(0.3);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

@keyframes letterArriveO1 {
    0% {
        opacity: 0;
        transform: translate(50vw, -100vh) rotate(-90deg) scale(0.3);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

@keyframes letterArriveC {
    0% {
        opacity: 0;
        transform: translate(-100vw, 50vh) rotate(180deg) scale(0.3);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

@keyframes letterArriveO2 {
    0% {
        opacity: 0;
        transform: translate(100vw, 50vh) rotate(-180deg) scale(0.3);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

@keyframes letterArriveD {
    0% {
        opacity: 0;
        transform: translate(-50vw, 100vh) rotate(-90deg) scale(0.3);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

@keyframes letterArriveE {
    0% {
        opacity: 0;
        transform: translate(50vw, 100vh) rotate(90deg) scale(0.3);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

.hero-list {
    list-style: none;
    margin-top: 32px;
    margin-left: 10cm;
    padding: 0;
}

.hero-list li {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    transform-style: preserve-3d;
    animation: moduleCompose 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation-fill-mode: both;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Effet escalier - chaque élément décalé vers la droite */
.hero-list li:nth-child(1) {
    animation-delay: 1s;
    margin-left: 0;
    animation-name: moduleComposeFromLeft;
}

.hero-list li:nth-child(2) {
    animation-delay: 1.2s;
    margin-left: 40px;
    animation-name: moduleComposeFromRight;
}

.hero-list li:nth-child(3) {
    animation-delay: 1.4s;
    margin-left: 80px;
    animation-name: moduleComposeFromLeft;
}

.hero-list li:nth-child(4) {
    animation-delay: 1.6s;
    margin-left: 120px;
    animation-name: moduleComposeFromRight;
}

@keyframes moduleCompose {
    0% {
        opacity: 0;
        transform: translateX(-30px) rotateY(-45deg) translateZ(-50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg) translateZ(0) scale(1);
    }
}

@keyframes moduleComposeFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px) rotateY(-45deg) translateZ(-50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg) translateZ(0) scale(1);
    }
}

@keyframes moduleComposeFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px) rotateY(45deg) translateZ(-50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg) translateZ(0) scale(1);
    }
}

.hero-list li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: #FFFFFF;
    font-weight: 700;
}

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

/* Animations au scroll 3D */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(50px) rotateX(-20deg) translateZ(-100px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) translateZ(0);
}

/* Right Section (40-45%) */
.hero-right {
    flex: 0 0 42%;
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    animation: slideInFromRight3D 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 10;
    min-height: 500px;
}

/* Triangle décoratif en bas à droite */
.hero-triangle {
    position: fixed !important;
    bottom: 0 !important;
    right: 0 !important;
    top: auto !important;
    left: auto !important;
    width: 500px;
    height: 500px;
    background: var(--white);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 8;
    opacity: 1;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    transition: opacity 1.5s ease-in-out, transform 1.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Vagues sur le côté intérieur du triangle */
.triangle-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
    pointer-events: none;
    overflow: hidden;
}

.triangle-waves::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: 
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 2px,
            rgba(168, 213, 226, 0.15) 2px,
            rgba(168, 213, 226, 0.15) 4px
        ),
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 3px,
            rgba(200, 229, 240, 0.1) 3px,
            rgba(200, 229, 240, 0.1) 6px
        );
    background-size: 200px 200px, 300px 300px;
    animation: waveMove 20s linear infinite;
    transform: rotate(-45deg);
    transform-origin: bottom right;
}

.triangle-waves::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;
    height: 300%;
    background-image: 
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 4px,
            rgba(168, 213, 226, 0.08) 4px,
            rgba(168, 213, 226, 0.08) 8px
        );
    background-size: 400px 400px;
    animation: waveMove 30s linear infinite reverse;
    transform: rotate(-45deg);
    transform-origin: bottom right;
}

@keyframes waveMove {
    0% {
        transform: rotate(-45deg) translate(0, 0);
    }
    100% {
        transform: rotate(-45deg) translate(100px, -100px);
    }
}

.video-container-triangle {
    position: fixed !important;
    bottom: 0 !important;
    right: 0 !important;
    top: auto !important;
    left: auto !important;
    width: 500px;
    height: 500px;
    display: block !important;
    overflow: visible;
    z-index: 10;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    clip-path: none;
    font-size: 0 !important;
    line-height: 0 !important;
}

video.hero-video {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    width: 100%;
    height: 100%;
    min-width: 300px;
    min-height: 300px;
    object-fit: contain;
    object-position: bottom right !important;
    z-index: 10;
    background: transparent;
    transform: translate(0, 0) !important;
    display: block !important;
    line-height: 0 !important;
    font-size: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 1.5s ease-in-out;
}

/* Video Overlay avec transparence alpha */
.video-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    pointer-events: none;
    z-index: 2;
}

/* Fallback pour navigateurs ne supportant pas WebM alpha */
.video-overlay:not(:has(source[type="video/webm"])) {
    mix-blend-mode: multiply;
}

/* Détection de support WebM - fallback CSS */
@supports not (background: url(test.webm)) {
    .video-overlay.fallback {
        mix-blend-mode: multiply;
    }
}

/* Canvas pour le chroma key en JavaScript */
#video-canvas {
    position: absolute;
    top: 50%;
    right: -50px;
    transform: translateY(-50%) translateX(0);
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    min-width: 300px;
    min-height: 300px;
    z-index: 3;
    pointer-events: none;
    background: transparent;
}

@keyframes slideInFromRight3D {
    0% {
        opacity: 0;
        transform: translateX(100px) rotateY(30deg) translateZ(-200px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg) translateZ(0);
    }
}

/* ===== About Section ===== */
.about {
    display: none; /* Masquée car affichée dans le hero maintenant */
    padding: var(--spacing-xxl) 0;
    background-color: transparent;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

.section-title {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--spacing-xl);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.about-content {
    max-width: 700px;
}

/* Styles pour le contenu DERRIÈRE L'ÉCRAN dans le hero */
/* Styles pour la page DERRIÈRE L'ÉCRAN */
#page-about {
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Centrage parfait au milieu de l'écran */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
}

#page-about .section-title {
    margin-bottom: var(--spacing-xl);
}

#page-about .about-text {
    max-width: 900px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
}

/* Styles pour les pages */
#page-about .section-title,
#page-projects .section-title,
#page-contact .section-title {
    font-size: 20px;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    width: 100%;
}

#page-about .about-intro {
    font-size: 22px;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    text-align: center;
    max-width: 100%;
}

#page-about .expertise-title {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
}

#page-about .expertise-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-md) 0;
    text-align: center;
    max-width: 100%;
}

#page-about .expertise-list li {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.8;
    color: #FFFFFF;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
}

#page-about .about-approach {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.8;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
    max-width: 100%;
}

/* Styles pour la page PROJETS */
#page-projects {
    width: 100%;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 60px 40px;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#page-projects .section-title {
    width: 100%;
    margin-bottom: var(--spacing-sm);
    text-align: center;
    font-size: 18px;
}

/* Masquer les carrousels sur desktop */
.projects-carousel-wrapper {
    display: none;
}

.projects-grid-inline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    align-content: center;
}

.projects-grid-inline .project-item {
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
}

.projects-grid-inline .project-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: transparent;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
                0 4px 12px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.projects-grid-inline .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 8px;
    will-change: transform;
    border: none;
    outline: none;
}

.projects-grid-inline .project-item:hover {
    z-index: 9999;
    position: relative;
}

.projects-grid-inline .project-item:hover .project-image {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4),
                0 8px 20px rgba(0, 0, 0, 0.3);
}

.projects-grid-inline .project-item:hover .project-image img {
    transform: scale(1.1);
    filter: brightness(1.15) contrast(1.1) saturate(1.2);
}

.projects-grid-inline .project-info {
    padding: 8px 0;
}

.projects-grid-inline .project-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.projects-grid-inline .project-description {
    font-family: var(--font-sans);
    font-size: 12px;
    color: #FFFFFF;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Styles pour la page CONTACT */
#page-contact {
    text-align: center;
    align-items: center;
    justify-content: center;
}

.contact-content-inline {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.8;
    color: #FFFFFF;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* ===== Projects Section ===== */
.projects {
    padding: var(--spacing-xxl) 0;
    background-color: transparent;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.project-item {
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
}

.project-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--lavender), var(--lime-green));
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(45, 80, 22, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-image:hover .project-overlay {
    opacity: 1;
}

.project-link {
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--beige-cream);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info {
    padding: var(--spacing-sm) 0;
}

.project-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: var(--spacing-xs);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.project-description {
    font-family: var(--font-sans);
    font-size: 16px;
    color: #FFFFFF;
    line-height: 1.6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* ===== Contact Section ===== */
.contact {
    padding: var(--spacing-xxl) 0;
    background-color: transparent;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

.contact-content {
    max-width: 700px;
}

.contact-text {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.8;
    color: #FFFFFF;
    margin-bottom: var(--spacing-lg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.contact-email {
    font-family: var(--font-sans);
    font-size: 18px;
    color: #FFFFFF;
    text-decoration: none;
    border-bottom: 1px solid #FFFFFF;
    transition: var(--transition);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.contact-email:hover {
    border-bottom-color: transparent;
}

/* ===== Footer ===== */
.footer {
    padding: var(--spacing-lg) 0;
    background-color: transparent;
    border-top: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
    text-align: center;
}

.footer p {
    font-family: var(--font-sans);
    font-size: 14px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* ===== Bouton Remonter en haut ===== */
.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.95));
    color: #000000;
    border: 3px solid #000000;
    border-radius: 12px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.7) rotate(-10deg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 
                0 0 0 0 rgba(168, 213, 226, 0.4);
    /* Style bouton d'ascenseur */
    font-weight: 900;
    font-size: 28px;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1) rotate(0deg);
    animation: elevatorPulse 2s ease-in-out infinite;
}

@keyframes elevatorPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 
                    0 0 0 0 rgba(168, 213, 226, 0.4);
    }
    50% {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 
                    0 0 0 8px rgba(168, 213, 226, 0);
    }
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: #FFFFFF;
    transform: translateY(-8px) scale(1.15) rotate(5deg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4),
                0 0 0 4px rgba(168, 213, 226, 0.6);
    border-color: rgba(168, 213, 226, 0.8);
}

.scroll-to-top:active {
    transform: translateY(-4px) scale(1.1) rotate(2deg);
}

/* Le contenu du bouton est maintenant du texte (↑) */

/* ===== Bouton "PORTE DE SORTIE" ===== */
.do-not-press {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    border-radius: 8px;
    padding: 15px 18px;
    font-size: 16px;
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.do-not-press:hover {
    opacity: 0.7;
}

.do-not-press:active {
    opacity: 0.5;
}

.do-not-press svg {
    width: 32px;
    height: 32px;
    display: block;
}

/* ===== Page de Jeu ===== */
.game-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #1a0033 0%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.game-page::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(138, 43, 226, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 20, 147, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 191, 255, 0.2) 0%, transparent 50%);
    animation: nebulaMove 20s ease-in-out infinite;
}

@keyframes nebulaMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-10%, -10%) rotate(180deg); }
}

.game-page.visible {
    opacity: 1;
    visibility: visible;
}

.game-container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 30px;
    width: 90%;
    max-width: 900px;
}

.game-header {
    margin-bottom: 20px;
}

.game-title {
    font-family: var(--font-serif);
    font-size: 56px;
    background: linear-gradient(135deg, #FF00FF, #00FFFF, #FF00FF);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(255, 0, 255, 0.8);
    animation: gradientShift 3s ease infinite;
    letter-spacing: 4px;
}

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

.game-info {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-bottom: 20px;
}

.score-display, .high-score-display {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 15px 30px;
    min-width: 150px;
}

.score-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.score-value {
    display: block;
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 900;
    color: #FFFFFF;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.canvas-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

#game-canvas {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    background: radial-gradient(ellipse at center, #0a0a2e 0%, #000000 100%);
    box-shadow: 
        0 0 50px rgba(138, 43, 226, 0.5),
        inset 0 0 100px rgba(0, 0, 0, 0.5);
    display: block;
    cursor: none;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.game-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay-content {
    text-align: center;
}

#overlay-title {
    font-family: var(--font-serif);
    font-size: 64px;
    color: #FFFFFF;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(255, 0, 255, 1);
    animation: pulse 2s ease-in-out infinite;
}

#overlay-text {
    font-family: var(--font-sans);
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 3px;
}

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

.game-controls {
    margin-top: 20px;
}

.controls-text {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-sans);
    font-size: 14px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.restart-btn, .back-btn {
    background: linear-gradient(135deg, #FF00FF, #00FFFF);
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 15px 35px;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 0, 255, 0.4);
    letter-spacing: 2px;
}

.restart-btn:hover, .back-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 0, 255, 0.6);
    background: linear-gradient(135deg, #FF00FF, #00FFFF, #FF00FF);
    background-size: 200% 200%;
    animation: gradientShift 1s ease infinite;
}

.back-btn {
    background: linear-gradient(135deg, #333333, #000000);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.back-btn:hover {
    background: linear-gradient(135deg, #555555, #222222);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 40px;
    }
    
    .hero-left {
        padding: 0 40px;
    }
    
    .about-container,
    .projects-container,
    .contact-container {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    /* Navigation mobile - Cascade verticale à gauche */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: auto;
        background-color: transparent;
        z-index: 1000;
        padding: 0;
    }
    
    .nav-container {
        padding: 0;
        justify-content: flex-start;
        height: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-menu {
        position: fixed;
        top: 20px;
        left: 20px;
        flex-direction: column;
        background-color: transparent;
        width: auto;
        padding: 0;
        z-index: 999;
        display: flex !important;
        gap: 12px;
    }

    .nav-menu li {
        margin: 0;
        transform: translateX(0);
        opacity: 1;
    }
    
    /* Effet cascade/escalier */
    .nav-menu li:nth-child(1) {
        transform: translateX(0);
    }
    
    .nav-menu li:nth-child(2) {
        transform: translateX(15px);
    }
    
    .nav-menu li:nth-child(3) {
        transform: translateX(30px);
    }
    
    .nav-menu li:nth-child(4) {
        transform: translateX(45px);
    }
    
    .nav-link {
        font-size: 18px;
        font-weight: 600;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        color: #FFFFFF;
    }

    .btn-nav {
        display: none;
    }

    .hamburger {
        display: none !important;
    }
    
    /* Hero Section mobile - Disposition verticale */
    .hero-split {
        flex-direction: column;
        min-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        padding-left: 0;
    }
    
    .hero-left {
        flex: 1;
        min-height: auto;
        padding: 30px 30px 100px 30px;
        order: 1;
        width: 100%;
        margin-left: 0;
    }
    
    /* YUKO CODE après la navigation */
    #page-home {
        padding-top: 30px;
        margin-top: 0;
        align-items: flex-start;
        justify-content: flex-start;
        min-height: auto;
    }
    
    .hero-content {
        padding-top: 0;
        margin-top: 0;
        width: 100%;
    }
    
    .hero-intro {
        margin-top: 0;
        padding-top: 0;
        width: 100%;
    }
    
    .hero-name {
        font-size: 56px;
        margin-left: 0;
        margin-top: 20px;
        margin-bottom: 0;
        padding-top: 0;
        text-align: left;
        line-height: 1.1;
    }
    
    /* Liste légèrement indentée */
    .hero-list {
        margin-left: 20px;
        margin-top: 24px;
        padding: 0;
    }
    
    .hero-list li {
        font-size: 14px;
        margin-bottom: 10px;
        padding-left: 0;
        text-align: left;
    }
    
    .hero-list li::before {
        content: '';
        display: none;
    }
    
    .hero-right {
        display: none !important;
    }
    
    /* Triangle et vidéo sur mobile - TOUT CACHÉ */
    .hero-triangle {
        display: none !important;
    }
    
    .triangle-waves {
        display: none !important;
    }
    
    .video-container-triangle {
        display: none !important;
    }
    
    video.hero-video {
        display: none !important;
    }
    
    /* Bouton PORTE DE SORTIE centré en bas */
    .do-not-press {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        padding: 12px 15px;
        z-index: 1001;
    }
    
    .do-not-press svg {
        width: 28px;
        height: 28px;
    }
    
    /* Page DERRIÈRE L'ÉCRAN sur mobile - Tout visible sans scroll */
    #page-about {
        padding-left: 20px;
        padding-top: 20px;
        padding-right: 20px;
        padding-bottom: 20px;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
        min-height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        margin-top: 0;
    }
    
    #page-about .section-title {
        font-size: 20px;
        margin-bottom: 12px;
        text-align: left;
        color: #FFFFFF;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        flex-shrink: 0;
    }
    
    #page-about .about-text {
        max-width: 100%;
        text-align: left;
        padding: 0;
        margin: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    #page-about .about-intro {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 12px;
        text-align: left;
        color: #FFFFFF;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        flex-shrink: 0;
    }
    
    #page-about .expertise-title {
        font-size: 14px;
        margin-bottom: 8px;
        text-align: left;
        color: #FFFFFF;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        flex-shrink: 0;
    }
    
    #page-about .expertise-list {
        text-align: left;
        margin-bottom: 12px;
        flex-shrink: 0;
    }
    
    #page-about .expertise-list li {
        font-size: 11px;
        line-height: 1.3;
        margin-bottom: 6px;
        text-align: left;
        color: #FFFFFF;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    #page-about .about-approach {
        font-size: 11px;
        line-height: 1.3;
        text-align: left;
        color: #FFFFFF;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        flex-shrink: 0;
    }
    
    /* Page PROJETS sur mobile - Carrousel horizontal */
    /* UNIQUEMENT la page PROJETS - ne pas toucher aux autres onglets */
    #page-projects {
        padding-left: 0;
        padding-top: 0;
        padding-right: 0;
        padding-bottom: 20px;
        margin-top: -25px;
        align-items: flex-start;
        justify-content: flex-start;
        min-height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    #page-projects .section-title {
        font-size: 20px;
        margin-bottom: 20px;
        margin-top: 0;
        padding-top: 20px;
        padding-left: 20px;
        text-align: left;
        color: #FFFFFF;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        flex-shrink: 0;
    }
    
    /* Masquer le grid sur mobile */
    .projects-grid-inline {
        display: none !important;
    }
    
    /* Wrapper pour les deux carrousels superposés */
    .projects-carousel-wrapper {
        display: block;
        position: relative;
        width: 100%;
        height: 100%;
        flex: 1;
        overflow: hidden;
    }
    
    /* Carrousels superposés - Animation automatique */
    .projects-carousel {
        position: absolute;
        top: 0;
        left: 0;
        width: max-content;
        height: 100%;
        display: flex;
        flex-direction: row;
        gap: 20px;
        will-change: transform;
    }
    
    /* Carrousel 1 - Sens horaire (vers la droite) */
    .projects-carousel-1 {
        animation: carouselScrollRight 40s linear infinite;
    }
    
    @keyframes carouselScrollRight {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-33.333%);
        }
    }
    
    .projects-carousel .project-item {
        width: 50vw;
        min-width: 50vw;
        max-width: 50vw;
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
    }
    
    .projects-carousel .project-image {
        aspect-ratio: 16/9;
        width: 100%;
        height: auto;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 12px;
    }
    
    .projects-carousel .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    /* Afficher les infos (titre et description) */
    .projects-carousel .project-info {
        display: flex !important;
        flex-direction: column;
        padding: 0;
    }
    
    .projects-carousel .project-title {
        font-size: 16px;
        margin-bottom: 8px;
        text-align: left;
        line-height: 1.3;
        color: #FFFFFF;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    .projects-carousel .project-description {
        font-size: 12px;
        line-height: 1.4;
        text-align: left;
        color: #FFFFFF;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        -webkit-line-clamp: 3;
        line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Page CONTACT sur mobile */
    #page-contact {
        padding-left: 20px;
        padding-top: 20px;
        padding-right: 20px;
        padding-bottom: 100px;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }
    
    #page-contact .section-title {
        font-size: 24px;
        margin-bottom: 24px;
        text-align: left;
        color: #FFFFFF;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    .contact-content-inline {
        text-align: left;
    }
    
    .contact-text {
        font-size: 16px;
        line-height: 1.6;
        color: #FFFFFF;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        margin-bottom: 16px;
    }
    
    .contact-email {
        font-size: 16px;
        color: #FFFFFF;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    /* Contact mobile */
    .contact-text {
        font-size: 16px;
        color: #000000 !important;
        text-shadow: none !important;
    }
    
    .contact-email {
        font-size: 16px;
        color: #000000 !important;
        text-shadow: none !important;
        border-bottom: 1px solid #000000 !important;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    /* Bouton remonter en haut mobile */
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 20px;
    }

    .hero-name {
        font-size: 56px;
    }

    .hero-left {
        padding: 40px 20px;
    }

    .about-container,
    .projects-container,
    .contact-container {
        padding: 0 20px;
    }
    
    .blob-container {
        padding: 20px;
    }
}

/* ===== Bouton "JE SUIS DÉSOLÉ" ===== */
.sorry-button {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #FFFFFF;
    border: 4px solid #2E7D32;
    border-radius: 20px;
    padding: 50px 100px;
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.5), 0 0 0 4px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    scale: 0.5;
}

.sorry-button:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 12px 48px rgba(76, 175, 80, 0.7), 0 0 0 6px rgba(76, 175, 80, 0.4);
}

.sorry-button:active {
    transform: translate(-50%, -50%) scale(1.02);
}
