:root {
    --gold-primary: #FFD700;
    --gold-secondary: #FFA500;
    --gold-dark: #B8860B;
    --dark-bg: #0a0a0a;
    --dark-secondary: #1a1a1a;
    --dark-tertiary: #2a2a2a;
}

* { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
    overflow-x: hidden;
}

.orbitron { font-family: 'Orbitron', monospace; }

.hero-bg {
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%),
                linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
    position: relative;
}

.hero-bg::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 165, 0, 0.05) 0%, transparent 50%), radial-gradient(circle at 40% 80%, rgba(184, 134, 11, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float { 0%, 100% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-20px) rotate(1deg); } }

.glow-text { text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.3); }

.gold-gradient {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.card-hover:hover {
    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.1);
}

.pulse-ring { position: relative; }
.pulse-ring::before {
    content: ''; position: absolute; top: 50%; left: 50%; width: 100%; height: 100%;
    border: 2px solid rgba(255, 215, 0, 0.6); border-radius: 50%;
    transform: translate(-50%, -50%); animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring { 0% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } }

.btn-glow {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); transition: all 0.3s ease; position: relative; overflow: hidden;
}
.btn-glow::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.5s;
}
.btn-glow:hover::before { left: 100%; }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4); }

.scroll-indicator {
    position: fixed; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-secondary));
    transform-origin: left; z-index: 1000;
}

.music-wave { display: inline-block; width: 4px; height: 25px; background: var(--gold-primary); margin: 0 1px; animation: wave 1s ease-in-out infinite; transform-origin: bottom; }
.music-wave:nth-child(2) { animation-delay: 0.1s; } .music-wave:nth-child(3) { animation-delay: 0.2s; } .music-wave:nth-child(4) { animation-delay: 0.3s; } .music-wave:nth-child(5) { animation-delay: 0.4s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

.section-bg { background: linear-gradient(135deg, var(--dark-secondary) 0%, var(--dark-tertiary) 100%); border: 1px solid rgba(255, 215, 0, 0.1); }
.nav-blur { backdrop-filter: blur(20px); background: rgba(10, 10, 10, 0.9); border-bottom: 1px solid rgba(255, 215, 0, 0.2); }

/* === NOUVEAU MENU MOBILE (PANNEAU LATÉRAL) === */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 80%;
    max-width: 320px;
    background-color: var(--dark-secondary);
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.mobile-menu-panel.is-open {
    transform: translateX(0);
}

/* Style pour le lien de navigation actif */
nav a.active {
    color: var(--gold-primary);
    font-weight: 700;
}

.gradient-border { position: relative; background: var(--dark-secondary); }
.gradient-border::before {
    content: ''; position: absolute; inset: 0; padding: 2px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
}

.typewriter { overflow: hidden; border-right: 3px solid var(--gold-primary); white-space: nowrap; animation: typing 3s steps(30) 1s both, blink 1s infinite; }
@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes blink { 50% { border-color: transparent; } }

.floating-element { animation: floating 6s ease-in-out infinite; }
@keyframes floating { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-15px); } }


/* === 3D TILT EFFECT STYLING === */
.tilt-card {
    /* La transition est maintenant gérée par le JavaScript */
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.tilt-card > * {
    transform-style: preserve-3d;
}

.tilt-card .w-16, .tilt-card .w-20, .tilt-card img {
    transform: translateZ(50px);
}

.tilt-card h3 {
    transform: translateZ(40px);
}

.tilt-card p, .tilt-card ul, .tilt-card .text-sm {
    transform: translateZ(20px);
}

.tilt-card button, .tilt-card .bg-dark-tertiary {
    transform: translateZ(30px);
}

/* === NOUVEAU STYLE DE CARTE SERVICE === */
.service-card-modern {
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
    overflow: hidden; /* Pour s'assurer que les enfants ne dépassent pas les coins arrondis */
}

.service-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(255, 215, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.5);
}

.service-card-modern .fa-check {
    transition: color 0.3s ease;
}

.service-card-modern:hover .fa-check {
    color: #fff; /* Optionnel: changer la couleur des checks au survol */
}

/* === MODAL STYLES === */
.modal-hidden {
    display: none;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1010;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

#modal-close-button {
    font-size: 2.5rem;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-body p {
    line-height: 1.6;
}

.modal-input {
    background-color: var(--dark-tertiary);
    border: 1px solid #4a4a4a;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    transition: border-color 0.3s ease;
}

.modal-input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.modal-input {
    transition: border-color 0.3s ease;
}

/* === ANIMATIONS MODALE === */
@keyframes modal-in {
    from {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes modal-out {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.95);
    }
}

.modal-container.is-opening {
    animation: modal-in 0.3s ease-out forwards;
}

.modal-container.is-closing {
    animation: modal-out 0.3s ease-in forwards;
}

#cookie-banner.is-visible {
    transform: translateY(0);
}

/* === ANIMATIONS ICÔNES & BOUTONS === */

/* Lueur sur les icônes de la section Communauté */
.section-bg.card-hover:hover .w-12 {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    transition: all 0.3s ease;
}
.section-bg.card-hover .w-12 {
    transition: all 0.3s ease;
}

/* Animation de l'icône du bouton "Soumettre" */
.btn-glow:hover .fa-paper-plane {
    animation: fly-plane 0.5s ease-in-out;
}

@keyframes fly-plane {
    0% { transform: translateX(0) rotate(0); }
    50% { transform: translateX(5px) rotate(-5deg); }
    100% { transform: translateX(0) rotate(0); }
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 280px;
}

.button-container a, .button-container button {
    width: 100%; /* Les boutons prendront toute la largeur du conteneur */
    min-height: 60px; /* Hauteur minimale pour tous les boutons */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.button-description {
    font-size: 0.875rem; 
    line-height: 1.25rem; 
    color: #9CA3AF; 
    margin-top: 1rem; /* Espace entre le bouton et la description */
    max-width: 240px;
    text-align: center;
}

.btn-breathing {
    animation: breathing 2.5s ease-in-out infinite;
}

@keyframes breathing {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5);
    }
}

.coming-soon-blur {
    filter: grayscale(60%) blur(2px);
}

.animate-spin-slow {
  animation: spin-slow 10s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
