/* 1. VARIABLES ET COULEURS */
:root {
    --fond: #0c021a;
    --carte-bg: rgba(255, 255, 255, 0.05);
    --texte: #f5f6f7;
    --accent: #4dadff;
}

    :root[data-theme="light"] {
    /* Couleurs de fond */
    --bg-color: #dbd5aedc;             /* Un gris très léger pour reposer les yeux */
    --card-bg: #d3d0a79f;              /* Cartes bien blanches pour trancher */
    
    /* Couleurs de texte (Le secret de la lisibilité) */
    --text-main: #1a1a1a;            /* Presque noir pour le texte important */
    --text-secondary: #4a4a4a;       /* Gris foncé pour les slogans */
    
    /* Accents et contrastes */
    --accent-color: #2575fc;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Ombre plus douce mais visible */
    --border-color: #e0e0e0;
}


body.light-mode {
    --fond: #C9C8C7;
    --carte-bg: rgba(255, 255, 255, 0.8);
    --texte: #1c1e21;
    --accent: #1a73e8;
}

/* 2. BASE */
body {
    margin: 0;
    padding: 0;
    background-color: var(--fond);
    color: var(--texte);
    font-family: 'Segoe UI', Tahoma, sans-serif;
    transition: background-color 0.5s ease, color 0.5s ease;
    min-height: 100vh;
    overflow-x: hidden; /* Empêche le scroll horizontal dû au parallaxe */
}

/* 3. STRUCTURE ET PARALLAXE (CORRIGÉ) */
.main-content {
    position: relative;
    left: 50%;
    /* On utilise translate3d pour forcer l'accélération de la carte graphique */
    transform: translate3d(-50%, 0, 0); 
    will-change: transform;
    /* Transition très courte pour lisser le mouvement sans créer de retard (lag) */
    transition: transform 0.15s ease-out;
}

/* 4. NAVIGATION */
.navbar {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.navbar a {
    text-decoration: none;
    color: gray;
    font-weight: bold;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.navbar a:hover {
    color: var(--accent) !important;
    text-shadow: 0 0 8px rgba(77, 173, 219, 0.6);
}

.navbar a.active {
    color: var(--accent) !important;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 5px;
}

/* 5. CARTES ET LOOK "GLASSMORPHISM" */
.carte, .item-card {
    /* Utilise rgba pour la transparence */
    background: rgba(255, 255, 255, 0.05) !important; 
    backdrop-filter: blur(12px); /* Très important pour l'effet de flou */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
}

.carte {
    text-align: center;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    animation: slideDown 1s ease-out;
    border-radius: 40px !important; /* Augmente à 50px ou 60px pour un effet encore plus rond */
    overflow: hidden;               /* S'assure que le contenu ne dépasse pas des bords arrondis */
}

/* 6. TYPOGRAPHIE ET INTERLIGNES (RÉDUITS) */
h1 {
    color: var(--accent);
    margin-bottom: 5px; /* Rapproché de la tagline */
    font-size: 2.5rem;
    transition: all 0.4s ease;
}

h1:hover {
    color: #fff;
    text-shadow: 0 0 15px var(--accent);
    transform: scale(1.02);
}

.h1-copyright {
    font-size: 0.5em;
    vertical-align: super;
    opacity: 0.7;
    font-weight: normal;
}

.tagline {
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 25px;
}

.tagline strong {
    font-weight: 700;
    color: #ffffff;
}

/* 7. GRILLE DE CARTES */
.container-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    width: 100%;
    max-width: 1100px;
    
    /* MODIFIE CETTE VALEUR ICI */
    margin-top: 80px; 

    padding-bottom: 50px;
    animation: slideUp 1s ease-out;
}

.item-card {
    width: 280px;
    padding: 30px;
    border-radius: 25px;
    /* ... tes styles actuels (width, padding, etc.) ... */

    /* LA CLÉ EST ICI : On définit la durée et la courbe de l'effet */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                background-color 0.4s ease, 
                border-color 0.4s ease,
                box-shadow 0.4s ease;
    
    /* Optionnel : prépare le GPU pour un mouvement plus fluide */
    will-change: transform;
}

.item-card:hover {
transform: translateY(-12px) scale(1.03); /* Un peu plus haut et un peu plus gros */
    background: rgba(255, 255, 255, 0.1);    /* Brille un peu plus */
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.item-card h3 { 
    color: var(--accent); 
    margin-top: 0;
    transition: 0.3s;
}

.item-card:hover h3 {
    color: #fff;
    text-shadow: 0 0 10px var(--accent);
}

/* 8. BOUTON AVEC GLOW */
#monBouton {
    margin-top: 10px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: var(--accent);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(77, 173, 219, 0.3);
    animation: pulseGlow 3s infinite ease-in-out;
    transition: all 0.3s ease;
}

#monBouton:hover {
    transform: translateY(-3px) scale(1.05);
    background: #5dc0eb;
    box-shadow: 0 0 25px rgba(77, 173, 219, 0.8);
}

/* 9. LOGO FIXE */
.header-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.main-logo {
    width: 45px;
    transition: transform 0.3s ease;
}

.main-logo:hover { transform: scale(1.1); }

/* 10. THEME SWITCHER */
.switch-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.slider-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    width: 60px;
    height: 34px;
    background-color: #333;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
}

.ball {
    position: absolute;
    left: 4px;
    top: 4px;
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.checkbox:checked ~ .slider-label .ball { transform: translateX(42px); }

/* 11. BLOBS ET ANIMATIONS */
.blob-2 {
    position: absolute;
    width: 950px;
    height: 950px;
    background: var(--accent);
    filter: blur(100px);
    opacity: 0.1;
    border-radius: 90%;
    
    /* Position de départ */
    top: -10%;
    left: -10%;

    /* On lance l'animation sur 30 secondes pour que ce soit fluide */
    animation: moveEverywhere 70s infinite alternate ease-in-out;
}

@keyframes moveEverywhere {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        /* En haut à droite */
        transform: translate(80vw, 10vh) rotate(90deg) scale(1.2);
    }
    50% {
        /* En bas à droite */
        transform: translate(70vw, 70vh) rotate(180deg) scale(1);
    }
    75% {
        /* En bas à gauche */
        transform: translate(10vw, 80vh) rotate(270deg) scale(1.3);
    }
    100% {
        /* Retour vers le haut mais décalé */
        transform: translate(40vw, 40vh) rotate(360deg) scale(1);
    }
}
/* Cache la case à cocher par défaut sans casser la logique */
#theme-slider {
    display: none;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 15px;
}

.card-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit le cadre sans déformation */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* L'overlay qui apparaît au hover */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0; /* Caché par défaut */
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1; /* Apparaît doucement */
}

.video-card:hover .card-video {
    opacity: 1;
}

.social-icon {
    background: var(--accent);
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}
/* Conteneur de la galerie */
.video-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    max-width: 1100px;
    margin-bottom: 50px;
    margin-top: 80px;
}

/* Gestion du cadre vidéo */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 350px; /* Format un peu haut pour le style "Reels/TikTok" */
    overflow: hidden;
    border-radius: 15px;
    background: #000;
}

.card-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Important : remplit le cadre sans déformer */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* L'overlay avec les liens (caché par défaut) */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Filtre sombre au survol */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.video-card:hover .card-video {
    opacity: 1;
}

/* Style des boutons YT/TK */
.social-icon {
    text-decoration: none;
    color: white;
    background: var(--accent);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    background: #fff;
    color: var(--accent);
}
/* Style de la fenêtre modale */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000; /* Au-dessus de tout */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Fond noir semi-transparent */
    backdrop-filter: blur(10px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 1000px;
}

.modal-content video {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover { color: var(--accent); }

.main-content {
    position: absolute;
    top: 0;
    left: 50%; /* On le place au milieu */
    transform: translateX(-50%); /* On le décale de sa propre moitié vers la gauche */
    width: 100%;
    max-width: 1200px; /* Optionnel : pour éviter que ce soit trop large */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 20px;
    z-index: 10;
    /* Supprime toute autre transition sur le transform ici pour éviter les saccades */
}
/* Couleur de l'accent sur les contrôles (Chrome/Safari) */
#fullVideo::-webkit-media-controls-play-button,
#fullVideo::-webkit-media-controls-timeline {
    filter: hue-rotate(280deg); /* Ajuste selon ta couleur violette/bleue */
}

/* On s'assure que la vidéo prend bien toute la place dans la modale */
.modal-content video {
    width: 100%;
    max-height: 80vh; /* Évite que la vidéo ne dépasse de l'écran en hauteur */
    border-radius: 12px;
    outline: none;
    background: #000;
}
/* On centre le bouton dans l'overlay */
.video-overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.fullscreen-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.fullscreen-btn:hover {
    background: var(--accent); /* Ta couleur violette/bleue */
    transform: scale(1.1);
    border-color: transparent;
}

/* Petit ajustement pour les icônes sociales en dessous */
.social-icons-mini {
    display: flex;
    gap: 10px;
}
.btn-scroll {
    background: var(--accent); /* Ton violet/bleu actuel */
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

.btn-scroll:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
    background: white;
    color: var(--accent);
}

/* Animation de pulsation douce */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-scroll {
    animation: pulse 2s infinite ease-in-out;
}
/* État caché par défaut */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* État quand l'élément devient visible */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* Le curseur personnalisé */
.custom-cursor {
    width: 30px !important;
    height: 30px !important;
    background-color: red !important; /* Rouge flash pour le test */
    border-radius: 50% !important;
    position: fixed !important; 
    top: 0 !important;
    left: 0 !important;
    display: block !important; /* On force l'affichage */
    pointer-events: none !important;
    z-index: 999999 !important; /* Au-dessus de ABSOLUMENT tout */
    transition: none !important; /* On retire les transitions pour le test */
}

/* Effet quand on survole un élément cliquable */
.custom-cursor.grow {
    width: 60px;
    height: 60px;
    background-color: rgba(77, 173, 255, 0.2); /* Utilise ta variable --accent */
    border-color: white;
}
/* Style du conteneur de formulaire */
.contact-form-container {
    max-width: 550px;
    margin-top: -30px; /* <--- Il manquait le point-virgule ici */
    margin-left: auto;
    margin-right: auto;
}

/* Style des champs de saisie */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    font-size : 0.9rem;
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-weight: 600;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
}

/* On change la couleur du texte pour le mode clair */
body.light-mode .form-group input {
    color: #1c1e21;
    background: rgba(0, 0, 0, 0.05);

body.light-mode .form-group select {
    border: 1px solid rgba(0, 0, 0, 0.2); /* Plus visible */
}    
}
/* Style du conteneur de formulaire */
.contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 25px;
    max-width: 600px;
    width: 90%;
    margin: 40px auto;
}

/* Style des champs de saisie */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-weight: 600;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
}

/* On change la couleur du texte pour le mode clair */
body.light-mode .form-group input {
    color: #1c1e21;
    background: rgba(0, 0, 0, 0.05);
}
select option {
    background-color: #1a1a2e; /* Couleur sombre pour correspondre à ton site */
    color: white;
}
/* Style du bouton envoyer */
#submitBtn {
    width: 100%;
    padding: 12px 25px;
    background: linear-gradient(135deg, #6e8efb, #a777e3); /* Dégradé moderne */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease; /* Transition fluide pour les effets */
    box-shadow: 0 4px 15px rgba(110, 142, 251, 0.3);
    margin-top: 10px;
}

/* Pour être sûr que le bouton capte le clic */
#submitBtn, .popup-content button {
    position: relative;
    z-index: 1000001 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Effet au survol (Hover) */
#submitBtn:hover {
    transform: translateY(-2px); /* Petit saut vers le haut */
    box-shadow: 0 6px 20px rgba(110, 142, 251, 0.5);
    filter: brightness(1.1);
}

/* Effet quand on clique (Active) */
#submitBtn:active {
    transform: translateY(0);
}

/* Style quand le bouton est désactivé (pendant l'envoi) */
#submitBtn:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

/* Adaptation pour le mode clair */
body.light-mode #submitBtn {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.2);
}
/* 1. Harmonisation de tous les champs de saisie */
.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;             /* Force les champs à prendre toute la largeur */
    box-sizing: border-box;  /* Inclut le padding dans la largeur totale pour éviter qu'ils ne dépassent */
    padding: 12px 15px;      /* Marge interne uniforme */
    margin-bottom: 20px;     /* Espace entre chaque bloc de saisie */
    
    background-color: rgba(255, 255, 255, 0.05); /* Fond sombre transparent */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

/* 2. Correction spécifique pour le Select (Image 4) */
/* Pour éviter que la flèche ne soit trop collée au bord droit */
.form-group select {
    appearance: none;        /* Retire le style par défaut du navigateur */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    padding-right: 40px;     /* Laisse de la place pour la flèche */
}

/* 3. Style au focus (clic) pour un effet pro */
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #6e8efb;    /* Bordure bleue au clic */
    background-color: rgba(255, 255, 255, 0.1);
}
/* Style du bouton "En savoir plus" */
.learn-more-btn {
    background: transparent;
    color: #6e8efb;
    border: 1px solid #6e8efb;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.learn-more-btn:hover {
    background: #6e8efb;
    color: white;
}

.close-popup {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 30px; color: white;
    cursor: pointer;
}

/* Style des avantages dans la popup */
#popupBenefits {
    padding-left: 0;
    list-style: none;
}

#popupBenefits li {
    margin: 12px 0;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

#popupBenefits li::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
}

.popup-cta {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border: none; color: white; font-weight: bold;
    border-radius: 8px; cursor: pointer;
}
/* Conteneur principal des services */
.services-container {
    display: flex !important;
    flex-direction: row !important; /* Force la ligne */
    justify-content: center !important; /* Centre les cartes */
    align-items: stretch !important; /* Donne la même hauteur à toutes les cartes */
    gap: 20px !important; /* Espace entre les cartes */
    flex-wrap: wrap; /* Permet de passer à la ligne sur mobile */
    margin: 40px auto;
    width: 95%;
    max-width: 1200px;
}

.services-container, .contact-form-container, .video-gallery {
    position: relative !important;
    margin-bottom: 80px !important; /* Espace entre les blocs */
    width: 90% !important;
    max-width: 1100px !important;
    z-index: 5 !important;
}


/* Style individuel des cartes */
.service-card {
    flex: 1; /* Les cartes se partagent l'espace équitablement */
    min-width: 280px; /* Largeur minimale pour éviter qu'elles soient trop fines */
    max-width: 350px;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pousse le bouton vers le bas */
    text-align: center;
}

/* On s'assure que les titres et paragraphes suivent l'alignement */
.service-card h3, .service-card p {
    margin-bottom: 15px;
}

/* Style du bouton "En savoir plus" */
.btn-savoir-plus {
    display: block !important;
    width: 100% !important;
    background: transparent !important;
    color: #6e8efb !important;
    border: 1px solid #6e8efb !important;
    padding: 10px 25px !important;
    
    /* L'ARRONDI PILULE */
    border-radius: 50px !important; 
    
    cursor: pointer !important;
    font-weight: 500 !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    
    /* On retire les styles par défaut qui bloquent l'arrondi */
    -webkit-appearance: none;
    appearance: none;
}

/* LE HOVER DOIT ÊTRE À PART (Pas à l'intérieur) */
.btn-savoir-plus:hover {
    background: #6e8efb !important;
    color: white !important;
    transform: scale(1.02);
}

/* L'ombre qui prend TOUT l'écran - Fixée au navigateur, pas à la page */
.popup-overlay {
    display: none; /* Cache la popup par défaut */
    position: fixed !important;
    top: 0; 
    left: 0;
    width: 100vw; 
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

/* Empêcher le scroll du site quand la popup est ouverte (Optionnel) */
body.popup-active {
    overflow: hidden;
}
.popup-overlay.active {
    display: flex !important;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.popup-content {
    background: #1a1a2e;
    padding: 35px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    opacity: 0;
}

/* Animation d'ENTRÉE */
.popup-overlay.active .popup-content {
    animation: popupIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Animation de SORTIE (quand on ajoute la classe .closing) */
.popup-overlay.closing .popup-content {
    animation: popupOut 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes popupApparition {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes popupIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes popupOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(30px) scale(0.95); }
}

/* Effet sur les éléments de la liste (apparition en cascade) */
.popup-overlay.active li {
    animation: fadeInList 0.5s ease forwards;
    opacity: 0;
}

.popup-overlay.active li:nth-child(1) { animation-delay: 0.2s; }
.popup-overlay.active li:nth-child(2) { animation-delay: 0.3s; }
.popup-overlay.active li:nth-child(3) { animation-delay: 0.4s; }
.popup-overlay.active li:nth-child(4) { animation-delay: 0.5s; }

@keyframes fadeInList {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.popup-overlay.closing {
    animation: fadeOutOverlay 0.3s ease forwards;
    pointer-events: none; /* Empêche de recliquer pendant que ça ferme */
}

.popup-overlay.closing .popup-content {
    animation: smoothOut 0.3s ease forwards;
}
@keyframes popupSmoothIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1) !important;
    }
}
/* Redonner le skin au bouton (Accueil et Popup) */
#monBouton, #monBoutonAccueil, #decouvrirBtn {
    background: linear-gradient(135deg, #6e8efb, #a777e3) !important;
    color: white !important;
    padding: 15px 30px !important;
    border-radius: 50px !important;
    border: none !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.4) !important;
    display: inline-block !important;
    text-align: center !important;
    text-decoration: none !important;
}

#monBoutonAccueil:hover, #decouvrirBtn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(110, 142, 251, 0.6) !important;
}
#monBoutonAccueil, #decouvrirBtn {
    /* Colle ici le style de ton bouton d'origine */
    background-color: blue; 
    color: white;
    /* ... etc */
}
/* Conteneur de la flèche */
.scroll-down-container {
    margin-top: 0px;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

/* Dessin de la flèche */
.scroll-arrow {
    width: 30px;
    height: 30px;
    transform: rotate(45deg);
}

.scroll-arrow span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-bottom: 4px solid #a777e3; /* Couleur assortie à ton thème */
    border-right: 4px solid #a777e3;
    animation: arrowBounce 2s infinite;
    opacity: 0.8;
}

/* Deuxième partie de la flèche pour l'effet d'écho */
.scroll-arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

/* Animation de rebond */
@keyframes arrowBounce {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(15px, 15px);
        opacity: 0;
    }
}
/* Espace au-dessus du bloc de commande */
.contact-form-container {
    margin-top: 110px !important; /* Ajuste ce chiffre pour descendre plus ou moins */
    margin-bottom: 50px;         /* Espace avant le footer */
}

/* Optionnel : Ajoute un peu de padding interne pour aérer le contenu */
.contact-form-container.reveal {
    padding-top: 40px;
}
.transition-text {
    text-align: center;
    margin-top: 60px;       /* Espace sous la flèche */
    margin-bottom: -60px;   /* Rapproche un peu le texte du bloc formulaire */
    padding: 0 20px;
}

.transition-text h2 {
    font-size: 2.5rem;      /* Gros texte */
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a777e3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.transition-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .transition-text h2 {
        font-size: 1.8rem;
    }
}
/* Si ton bouton s'appelle #monBouton */
#monBouton {
    margin-top: 20px !important; /* Ajuste le chiffre pour plus ou moins d'espace */
    display: inline-block;
}

/* Ou plus simple, on cible le paragraphe du slogan pour pousser tout ce qui est en dessous */
.carte p {
    margin-bottom: 40px !important;
}

/* 1. On réduit l'espace sous le texte */
.carte p {
    margin-bottom: -20px !important; /* Réduit l'espace qui pousse le bouton vers le bas */
}

/* 2. On réduit l'espace au-dessus du bouton */
#decouvrirBtn {
    margin-top: -20px !important; /* Supprime toute marge supérieure restante */
    display: inline-block;
}
/* On cible le bouton par son ID */
#monBoutonAccueil {
    margin-top: 20px !important; /* Augmente ce chiffre (ex: 60px, 80px) pour plus d'écart */
    display: inline-block;       /* S'assure que la marge est bien prise en compte */
}

/* Si tu as un slogan avec une classe spécifique, tu peux aussi faire ceci */
.carte p {
    margin-bottom: 30px; /* Ajoute de l'espace sous le texte du slogan */
}
/* 1. On règle l'écart pour le bouton Contact */
#monBoutonContact {
    margin-top: 20px !important; /* Ajuste selon tes préférences */
    display: inline-block;
}

/* 2. On réduit l'espace du texte au-dessus (le slogan/phrase) */
.carte p {
    margin-bottom: 15px !important;
}

/* 3. Pour être sûr que tous tes boutons ont le même comportement */
#monBouton, 
#decouvrirBtn, 
#monBoutonContact {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Petit effet sympa au survol pour tes boutons */
#monBouton:hover, 
#decouvrirBtn:hover, 
#monBoutonContact:hover {
    transform: scale(1.05);
}

#monBoutonContact {
    /* Couleurs et Dégradé */
    background: linear-gradient(135deg, #a777e3 0%, #6e8efb 100%);
    color: white;
    
    /* Forme et Taille */
    border: none;
    padding: 12px 30px;
    border-radius: 50px; /* Pour l'aspect "pilule" très arrondi */
    font-weight: bold;
    font-size: 1rem;
    
    /* Positionnement */
    margin-top: 20px !important;
    display: inline-block;
    cursor: pointer;
    
    /* Effets de Style (Le "Skib") */
    box-shadow: 0 4px 15px rgba(167, 119, 227, 0.4);
    transition: all 0.3s ease;
    outline: none;
}

/* Effet au survol */
#monBoutonContact:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(110, 142, 251, 0.6);
    filter: brightness(1.1);
}
/* On s'assure que le texte de la carte est bien sombre */
[data-theme="light"] .carte h2 {
    color: var(--text-main) !important;
}

/* Style du bouton TikTok */
.tiktok-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #000000; /* Noir pur TikTok */
    color: white !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px; /* Forme pilule */
    font-weight: 600;
    font-size: 0.9rem;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tiktok-btn:hover {
    transform: scale(1.05);
    background-color: #111;
    border-color: #fe2c55; /* Petite touche de rouge TikTok au survol */
    box-shadow: 0 0 10px rgba(254, 44, 85, 0.5);
}

.tiktok-icon {
    width: 18px;
    height: 18px;
}

/* Ajustement de l'overlay pour empiler les boutons proprement */
.video-overlay {
    flex-direction: column; /* Boutons l'un au-dessus de l'autre */
    gap: 15px;
}

/* Effet de survol sur les cartes */
.item-card, .service-card, .video-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                background 0.3s ease !important;
    cursor: pointer;
}

.item-card:hover, .service-card:hover, .video-card:hover {
    transform: translateY(-12px) scale(1.03) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent) !important;
}

/* On s'assure que le contenu à l'intérieur réagit aussi */
.item-card:hover h3, .service-card:hover h3 {
    color: #fff !important;
    text-shadow: 0 0 10px var(--accent);
}

.video-card:hover .card-video {
    opacity: 1 !important;
    filter: brightness(1.2);
}
