:root {
    --primary: #6D28D9; /* Violet */
    --secondary: #EC4899; /* Rose */
    --accent: #3B82F6; /* Bleu */
    --light: #F5F3FF;
    --dark: #1F2937;

        --font-primary: 'Poppins', sans-serif;
        --font-headings: 'Righteous', cursive;
    
        --color-bg: #f8f9fa; /* Blanc cassé / gris très clair */
        --color-text: #333;
        --color-primary: #8A2BE2; /* Violet vibrant */
        --color-secondary: #FF69B4; /* Rose doux/festif */
        --color-accent: #00BFFF; /* Bleu ciel/cyan */
        --color-card-bg: #ffffff;
        --color-dark-purple: #4b0082; /* Pour dégradés ou textes foncés */
    
        --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.08); /* Ombre plus douce */
        --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
        --shadow-hard: 0 10px 20px rgba(0,0,0,0.15), 0 6px 6px rgba(0,0,0,0.18);
    
        --border-radius-sm: 4px;
        --border-radius-md: 8px; /* Utilisé par hero-content et maintenant cover-card */
        --border-radius-lg: 16px;
    }
    
    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }
    
    html {
        scroll-behavior: smooth;
    }
    
body {
    font-family: var(--font-primary);
    color: var(--color-text);
    /* background-color: var(--color-bg); */ /* Let hero or overlay define initial bg */
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #0a0110; /* Fallback if hero is not full screen initially */
    color: #FCFCFC; /* Default text color */
    font-family: 'Montserrat', sans-serif;
}
    
body.cover-active { /* This class is added by ouverture.js when overlay is active */
    overflow: hidden;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%); /* Your existing hero background */
    overflow: hidden;
    position: relative;
 /* Added to help center content if needed, works with child's h-full */
    justify-content: center;
}

/* ADDED: Styles for the hero stars background container */
.hero-stars-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1; /* Behind hero content (z-20) and balloons (z-10) */
}

/* Your existing star styles are good, ensure they are correctly scoped or global */
/* .hero-stars-background .star { ... } */
/* .hero-stars-background .star.type2 { ... } */
/* .hero-stars-background .star.type3 { ... } */
/* @keyframes star-scintillate { ... } */
/* These seem to be correctly defined in your provided style.css already */


/* Conteneur des ballons dans la section hero */
.hero {
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 100vh; /* Prend toute la hauteur de l'écran */
}

#balloons-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden; /* Empêche les ballons de déborder */
}

/* Compteur de ballons éclatés */
.balloon-counter {
    position: absolute;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 15px;
    border-radius: 12px;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 100; /* Plus bas que les ballons (1000) mais au-dessus du contenu */
    opacity: 0; 
    font-size: 0.8em;
    pointer-events: none; /* Permettre les clics à travers le compteur */
}



/* Style des confettis */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    background-color: #f00;
    opacity: 0.8;
    z-index: 10000;
    animation: confetti-fall 5s linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(calc(100vh + 20px)) rotate(720deg);
        opacity: 0;
    }
}

.balloon {
    position: absolute; /* Positioned relative to #balloons-container */
    /* width and height are set in JS or can be set here if consistent */
    /* e.g., width: 120px; height: 150px; */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: auto; /* Balloons themselves should be interactive */
    will-change: transform; /* Performance hint for animations */
    /* Ensure your balloon images have appropriate dimensions,
       or adjust width/height here/in JS accordingly. */
}

/* Style pour la section hero */
section.hero {
    position: relative;
    min-height: 100vh;
    height: auto;
    overflow: visible;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    z-index: 5; /* S'assure que le contenu est au-dessus des ballons */
    pointer-events: none; /* Désactive les événements sur la section */
}



.glass-text-wrapper p {
    position: relative; /* Ensure text is above the backdrop */
    z-index: 16; 
    /* Text color is white by default from parent, text-shadow already inline */
}

.glass-backdrop {
    position: absolute;
    top: -5px; /* Optional: extend backdrop slightly beyond text */
    left: -10px;
    right: -10px;
    bottom: -5px;
    background-color: rgba(255, 255, 255, 0.08); /* Subtle white, adjust opacity as needed */
    backdrop-filter: blur(4px); /* The blur effect */
    -webkit-backdrop-filter: blur(4px); /* For Safari */
    border-radius: 10px; /* Slightly rounded corners for the glass pane */
    z-index: 15; /* Below text (z-16), above balloons (z-10) and hero stars (z-1) */
    pointer-events: none; /* So it doesn't interfere with text selection or links */
}



    
    #main-content.visible { /* Classe non utilisée actuellement, géré par style inline */
        opacity: 1;
        transform: translateY(0);
    }
    
    h1, h2, h3, h4 {
        font-family: var(--font-headings);
        color: var(--color-primary);
        margin-bottom: 0.5em;
    }
    
    h1.main-title {
        font-size: clamp(3rem, 10vw, 6rem);
        color: white;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
        margin-bottom: 0.1em;
    }
    
    .floating-title {
        animation: heroTitleFloat 5s ease-in-out infinite;
    }
    @keyframes heroTitleFloat {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-15px); }
    }
    
    
    h2 {
        font-size: clamp(2rem, 6vw, 3rem);
        text-align: center;
        margin-bottom: 1em;
    }
    h2 .highlight {
        color: var(--color-secondary);
    }
    
    p {
        margin-bottom: 1em;
    }
    
    a {
        color: var(--color-secondary);
        text-decoration: none;
    }
    a:hover {
        text-decoration: underline;
    }

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="20" cy="20" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="4" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="80" r="5" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.2;
}



/* Card effects */
.game-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* About Section - Pokemon Card Effect */
.pokemon-card {
    position: relative;
    background: linear-gradient(135deg, #f5f5f5 80%, #dadada 100%);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.3s ease; /* Transition plus rapide */
    cursor: pointer;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg); /* Start flat */
    border: 10px solid transparent;
    border-image: linear-gradient(90deg,
        rgba(236, 72, 153, 1) 0%,
        rgba(168, 85, 247, 1) 25%,
        rgba(99, 102, 241, 1) 50%,
        rgba(168, 85, 247, 1) 75%,
        rgba(236, 72, 153, 1) 100%);
    border-image-slice: 1;
    animation: holographicAnimation 10s ease-in-out infinite;
}


@keyframes holographicAnimation {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}



/* Section styling */
.section {
    min-height: 100vh;
    padding: 8rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Program Cards */
.program-card {
    background: white;
    border-radius: 16px;
    overflow: hidden; /* !! IMPORTANT pour confiner les particules !! */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative; /* !! IMPORTANT pour positionner les particules !! */
    z-index: 1;
}

.program-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.program-card .icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.program-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(10deg);
}

/* Emoji particles effect - MODIFIED */
.emoji-particle {
    position: absolute;
    font-size: 20px;
    opacity: 0.2;
    animation: emojiFloat 3s ease-out forwards;
    will-change: transform;
    pointer-events: none;
    z-index: -2;
    bottom: 00px;
    filter: opacity(0.2);
}

@keyframes emojiFloat {
    0% {
        transform: translateY(0) translateX(var(--tx-start)) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    20% {
        opacity: 1; /* Apparition rapide */
        transform: translateY(-20px) translateX(var(--tx-mid)) rotate(var(--rotate)) scale(1);
    }
    90% {
         opacity: 0.8; /* Commence à s'estomper */
         transform: translateY(-30px) translateX(var(--tx-end)) rotate(calc(var(--rotate) * 2)) scale(0.8); /* Monte presque en haut */
    }
    100% {
        transform: translateY(-25px) translateX(var(--tx-end)) rotate(calc(var(--rotate) * 2.5)) scale(0.7); /* Termine juste avant le bord */
        opacity: 0;
    }
}

/* Scroll indicator */
.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
    margin: 40px auto 0;
}

.scroll-indicator::after {
    content: '';
    width: 6px;
    height: 10px;
    background: white;
    border-radius: 3px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(20px); opacity: 0; }
}

/* Floating animation */
.floating {
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Button styles */
.main-button {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(109, 40, 217, 0.3); /* Ombre plus colorée */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.main-button:hover {
    transform: translateY(-5px) scale(1.03); /* Léger scale en plus */
    box-shadow: 0 15px 30px rgba(236, 72, 153, 0.4); /* Ombre rose au hover */
}

.main-button::before { /* Changed from ::after for better layering */
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Commence dehors */
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    transition: left 0.4s ease; /* Transition sur le 'left' */
    z-index: -1;
}
.main-button:hover::before {
    left: 0;
    transition: left 0.1s ease ; /* Transition sur le 'left' */
}

/* Pulsing effect for RSVP button */
.rsvp-button {
    animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 10px 20px rgba(109, 40, 217, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 12px 28px rgba(236, 72, 153, 0.5); /* Lueur plus intense et rose */
        transform: scale(1.02); /* Légère pulsation */
    }
}

/* Pricing section improvements */
.pricing-bg {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.pricing-bg:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
}