/* ===================================
   STYLES GÉNÉRAUX ET CONFIGURATION
   =================================== */

/* Configuration de base pour la section */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Style de base du body */
body {
    font-family: 'Arial', sans-serif;
    color: white;
}

/* ===================================
   SECTION PRINCIPALE - BACKGROUND
   =================================== */

/* Section principale avec dégradé animé */
.new-version-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0a0a1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
    position: relative;
}

/* ===================================
   CONTENEUR PRINCIPAL DU BOUTON
   =================================== */

/* Conteneur centralisé pour tous les éléments du bouton */
.button-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

/* ===================================
   CERCLE DE FLÈCHES ANIMÉES
   =================================== */

/* Conteneur pour le cercle de flèches */
.arrow-circle {
    position: absolute;
    width: 350px;
    height: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Style des flèches individuelles */
.arrow {
    position: absolute;
    font-size: 2.5rem;
    color: #4fc3f7;
    text-shadow: 0 0 15px rgba(79, 195, 247, 0.9);
    animation: arrowPulse 2s ease-in-out infinite;
    transform-origin: center;
}

/* Positionnement et rotation de chaque flèche */
.arrow:nth-child(1) { 
    top: 0; 
    left: 50%; 
    transform: translateX(-50%) rotate(180deg);
    animation-delay: 0s;
}
.arrow:nth-child(2) { 
    top: 10%; 
    right: 10%; 
    transform: rotate(225deg);
    animation-delay: 0.25s;
}
.arrow:nth-child(3) { 
    top: 50%; 
    right: 0; 
    transform: translateY(-50%) rotate(270deg);
    animation-delay: 0.5s;
}
.arrow:nth-child(4) { 
    bottom: 10%; 
    right: 10%; 
    transform: rotate(315deg);
    animation-delay: 0.75s;
}
.arrow:nth-child(5) { 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%) rotate(0deg);
    animation-delay: 1s;
}
.arrow:nth-child(6) { 
    bottom: 10%; 
    left: 10%; 
    transform: rotate(45deg);
    animation-delay: 1.25s;
}
.arrow:nth-child(7) { 
    top: 50%; 
    left: 0; 
    transform: translateY(-50%) rotate(90deg);
    animation-delay: 1.5s;
}
.arrow:nth-child(8) { 
    top: 10%; 
    left: 10%; 
    transform: rotate(135deg);
    animation-delay: 1.75s;
}

/* ===================================
   BOUTON PRINCIPAL 3D
   =================================== */

/* Style principal du bouton avec effet 3D */
.main-button {
    position: relative;
    background: linear-gradient(145deg, #4fc3f7, #03a9f4);
    border: none;
    border-radius: 20px;
    padding: 20px 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a0a1a;
    cursor: pointer;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(15deg);
    box-shadow: 
        0 10px 20px rgba(79, 195, 247, 0.3),
        0 0 40px rgba(79, 195, 247, 0.2),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: buttonFloat 3s ease-in-out infinite;
    overflow: hidden;
}

/* Effet de brillance au survol */
.main-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

/* Animation de brillance au survol */
.main-button:hover::before {
    animation: shine 0.6s ease-in-out;
    opacity: 1;
}

/* Effet de survol du bouton */
.main-button:hover {
    transform: perspective(1000px) rotateX(15deg) translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(79, 195, 247, 0.4),
        0 0 60px rgba(79, 195, 247, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.4);
}

/* Effet de clic du bouton */
.main-button:active {
    transform: perspective(1000px) rotateX(15deg) translateY(-5px);
    box-shadow: 
        0 5px 15px rgba(79, 195, 247, 0.3),
        0 0 30px rgba(79, 195, 247, 0.2);
}

/* ===================================
   TEXTE DU BOUTON ANIMÉ
   =================================== */

/* Conteneur du texte avec animation */
.button-text {
    display: inline-block;
    animation: textGlow 2s ease-in-out infinite alternate;
}

/* Animation individuelle des caractères */
.button-text .char {
    display: inline-block;
    animation: charDance 2s ease-in-out infinite;
}

/* Délai d'animation pour les caractères impairs */
.button-text .char:nth-child(odd) {
    animation-delay: 0.1s;
}

/* Délai d'animation pour les caractères pairs */
.button-text .char:nth-child(even) {
    animation-delay: 0.2s;
}

/* ===================================
   ANNEAU D'EMOJIS ROTATIFS
   =================================== */

/* Conteneur de l'anneau d'emojis */
.emoji-ring {
    position: absolute;
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotateEmojis 8s linear infinite;
}

/* Style des emojis individuels */
.emoji {
    position: absolute;
    font-size: 2.8rem;
    animation: emojiFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* Positionnement de chaque emoji autour du cercle */
.emoji:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.emoji:nth-child(2) { top: 7%; right: 7%; animation-delay: 0.5s; }
.emoji:nth-child(3) { top: 25%; right: 0; animation-delay: 1s; }
.emoji:nth-child(4) { top: 50%; right: 0; animation-delay: 1.5s; }
.emoji:nth-child(5) { bottom: 25%; right: 0; animation-delay: 2s; }
.emoji:nth-child(6) { bottom: 7%; right: 7%; animation-delay: 2.5s; }
.emoji:nth-child(7) { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 3s; }
.emoji:nth-child(8) { bottom: 7%; left: 7%; animation-delay: 3.5s; }
.emoji:nth-child(9) { bottom: 25%; left: 0; animation-delay: 4s; }
.emoji:nth-child(10) { top: 50%; left: 0; animation-delay: 4.5s; }
.emoji:nth-child(11) { top: 25%; left: 0; animation-delay: 5s; }
.emoji:nth-child(12) { top: 7%; left: 7%; animation-delay: 5.5s; }

/* ===================================
   FLOCONS DE NEIGE ANIMÉS
   =================================== */

/* Style des flocons de neige */
.snowflake {
    position: fixed;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    animation: snowfall linear infinite;
    pointer-events: none;
    z-index: 1;
    top: -100px;
}

/* ===================================
   TEXTE D'ENCOURAGEMENT
   =================================== */

/* Style du texte sous le bouton */
.encouragement-text {
    margin-top: 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #4fc3f7;
    text-align: center;
    animation: textPulse 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
}

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

/* Animation de pulsation des flèches */
@keyframes arrowPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.7; 
    }
    50% { 
        transform: scale(1.4); 
        opacity: 1; 
    }
}

/* Animation de flottement du bouton */
@keyframes buttonFloat {
    0%, 100% { transform: perspective(1000px) rotateX(15deg) translateY(0px); }
    50% { transform: perspective(1000px) rotateX(15deg) translateY(-5px); }
}

/* Animation de brillance */
@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Animation de lueur du texte */
@keyframes textGlow {
    0% { text-shadow: 0 0 5px rgba(10, 10, 26, 0.5); }
    100% { text-shadow: 0 0 15px rgba(10, 10, 26, 0.8), 0 0 25px rgba(10, 10, 26, 0.6); }
}

/* Animation de danse des caractères */
@keyframes charDance {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(1deg); }
    50% { transform: translateY(-6px) rotate(0deg); }
    75% { transform: translateY(-3px) rotate(-1deg); }
}

/* Animation de rotation des emojis */
@keyframes rotateEmojis {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* Animation de flottement des emojis */
@keyframes emojiFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.2); }
}

/* Animation de chute des flocons */
@keyframes snowfall {
    0% { 
        transform: translateY(0) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { 
        transform: translateY(calc(100vh + 200px)) translateX(var(--drift, 0px)) rotate(360deg);
        opacity: 0;
    }
}

/* Animation de pulsation du texte */
@keyframes textPulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Animation des particules de célébration */
@keyframes celebrationParticles {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(
            calc(-50% + cos(var(--angle)) * var(--velocity)),
            calc(-50% + sin(var(--angle)) * var(--velocity))
        ) scale(1);
        opacity: 0;
    }
}

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

/* Adaptation pour les écrans mobiles */
@media (max-width: 768px) {
    .arrow-circle { width: 280px; height: 280px; }
    .emoji-ring { width: 380px; height: 380px; }
    .main-button { font-size: 1.2rem; padding: 15px 30px; }
    .encouragement-text { font-size: 1rem; }
    .arrow { font-size: 2rem; }
    .emoji { font-size: 2.2rem; }
}
