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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

main {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

:root {
    --divine-gold: #ffd700;
    --divine-orange: #ffa500;
    --divine-text: linear-gradient(45deg, #ffd700, #ffa500);
    --divine-blue: #4a90e2;
    --divine-dark-blue: #2c3e50;
    --divine-white: #ffffff;
    --cloud-color: rgba(255, 255, 255, 0.9);
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800&display=swap');

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #87ceeb, #e0f7ff);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    transition: background 0.3s ease;
    cursor: url('assets/cursor.png'), auto;
}

.clouds {
    display: none;
}

.ascending-particle {
    position: fixed;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    border-radius: 50%;
    animation: ascend 8s linear infinite;
}

@keyframes ascend {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    20% {
        opacity: 0.5;
    }
    80% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-20vh) scale(1);
        opacity: 0;
    }
}

main {
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
}

h1 {
    font-size: 4.5rem;
    background: var(--divine-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 15px rgba(255, 215, 0, 0.5);
    animation: glow 2s infinite alternate;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.social-links {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 2rem;
}

.social-icon {
    color: var(--divine-gold);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0 0.5rem;
}

.social-icon:hover {
    color: rgba(255, 255, 255, 0.85);
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(232, 240, 255, 0.8);
    }
    to {
        text-shadow: 0 0 20px rgba(232, 240, 255, 1);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    .social-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .social-icon {
        font-size: 1.2rem;
    }
}

.hero {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 2;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem;
    z-index: 3;
}

.cursor-particles {
    pointer-events: none;
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    opacity: 0.6;
    z-index: 9999;
    animation: particleFade 1s forwards;
}

@keyframes particleFade {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.play-button {
    display: none;
}
  
@keyframes textAnimation {
    0% {
        transform: scale(1);
        color: var(--divine-gold);
        text-shadow: 2px 2px 15px rgba(255, 215, 0, 0.5);
    }
    50% {
        transform: scale(1.1);
        color: #ffffff;
        text-shadow: 2px 2px 15px rgba(255, 255, 255, 0.8);
    }
    100% {
        transform: scale(1);
        color: var(--divine-gold);
        text-shadow: 2px 2px 15px rgba(255, 215, 0, 0.5);
    }
}

.animate-text {
    animation: textAnimation 1s ease-in-out;
}

.background-particle {
    position: fixed;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: sparkle 5s linear infinite;
}

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

.left-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2;
    display: flex;
    flex-direction: row;
    gap: 35px; /* Augmentation de l'espacement à 35px */
}

.nav-icon {
    color: var(--divine-gold);
    font-size: 1.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-icon:hover {
    color: var(--divine-white);
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .left-nav {
        gap: 25px; /* Espacement réduit mais toujours confortable sur mobile */
    }
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
    .nav-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-icon {
        font-size: 1.2rem;
    }
}
