/* --- BASE --- */
body {
    background: radial-gradient(circle at center, rgba(0, 100, 0, 0.4) 0%, #000 70%);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* --- HEADER & LANGUE --- */
.site-header {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000;
}

/* NOUVEAU : Conteneur flex pour bien aligner les boutons */
#language-switcher {
    display: flex;
    align-items: center;
}

#language-switcher button {
    padding: 8px 16px;
    border: 1px solid rgba(0, 143, 57, 0.8);
    border-radius: 20px;
    background-color: rgba(0, 143, 57, 0.25);
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin-left: 5px;
    
    /* Pour aligner icône et texte si besoin */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#language-switcher button:hover,
#language-switcher button.active {
    background-color: #008f39;
    color: #ffffff;
}

/* NOUVEAU : Style pour le bouton d'installation */
#install-btn {
    display: none; /* Caché par défaut, le JS le rendra visible */
    background-color: #008f39; /* Couleur plus vive pour attirer l'oeil */
    border-color: #008f39;
    gap: 8px; /* Espace entre l'icône et le texte */
}

#install-btn:hover {
    background-color: #006400; /* Un vert plus foncé au survol */
}


/* --- CONTENEUR PRINCIPAL (MODIFIÉ) --- */
.card-container {
    text-align: center;
    position: relative;
    z-index: 4;
    padding: 30px 20px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    
    /* Ajout pour cacher la barre sur Firefox */
    scrollbar-width: none;
    
    /* Ajout pour cacher la barre sur IE et Edge */
    -ms-overflow-style: none;
}

/* Ajout pour cacher la barre sur Chrome, Safari, et Opera */
.card-container::-webkit-scrollbar {
    display: none;
}


/* --- LOGO --- */
.logo {
    max-width: 640px;
    max-height: 480px;
    width: 100%;
    height: auto;
    margin-bottom: 25px;
    animation: heartbeat 1.5s infinite ease-in-out;
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    20%, 60% { transform: scale(1.05); }
    40%, 80% { transform: scale(1); }
}

/* --- NAVIGATION PAR BULLES --- */
.navigation-bubbles {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}
.bubble-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* --- STYLE GÉNÉRAL DES BOUTONS & LIENS --- */
.bubble-link {
    background-color: rgba(0, 143, 57, 0.25);
    border: 1px solid rgba(0, 143, 57, 0.5);
    border-radius: 50px;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.bubble-link:hover {
    background-color: rgba(0, 143, 57, 0.5);
    transform: translateY(-5px);
}
.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}
.contact-links a {
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8em;
    transition: color 0.3s ease, transform 0.3s ease;
}
.contact-links a:hover {
    color: #008f39;
    transform: translateY(-5px);
}
.contact-links i {
    font-size: 2em;
    margin-bottom: 5px;
}

/* --- BOUTON LIVE --- */
.live-bubble {
    background-color: rgba(204, 0, 0, 0.4);
    border-color: rgba(255, 20, 20, 0.7);
    text-shadow: 0 0 5px #fff;
    animation: pulse 2s infinite;
}
.live-bubble:hover {
    background-color: rgba(255, 0, 0, 0.6);
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 20, 20, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 20, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 20, 20, 0); }
}

/* --- BOUTON D'ACTIVATION --- */
.controls-container {
    margin-top: 20px;
    margin-bottom: 20px;
}
#activate-features-btn {
    background-color: rgba(46, 204, 113, 0.25);
    border-color: rgba(46, 204, 113, 0.5);
}
#activate-features-btn:hover {
    background-color: rgba(46, 204, 113, 0.5);
}

/* --- MODALES --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}
.modal-content {
    background-color: #1a1a1a;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #008f39;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    position: relative;
    color: #fff;
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-button:hover,
.close-button:focus {
    color: #fff;
}
.modal-content h2 {
    text-align: center;
    color: #00ff88;
    margin-bottom: 25px;
}
.modal-content form label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
    text-align: left;
}
.modal-content form input[type="text"],
.modal-content form input[type="date"],
.modal-content form input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #333;
    color: #fff;
    font-size: 1em;
}
.modal-content .checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}
.modal-content .checkbox-container input {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

/* --- STYLE POUR MODALE DE DEMANDE DE TÉLÉCHARGEMENT --- */
.choice-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}
.choice-link {
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.choice-link:hover {
    transform: translateY(-5px);
    color: #fff;
}
.choice-link i {
    font-size: 1.5em;
}
.choice-link.whatsapp { background-color: #25D366; border-color: #1DAA53; }
.choice-link.whatsapp:hover { background-color: #1DAA53; }
.choice-link.email { background-color: #EA4335; border-color: #C23021; }
.choice-link.email:hover { background-color: #C23021; }
.choice-link.sms { background-color: #4A90E2; border-color: #2F72C3; }
.choice-link.sms:hover { background-color: #2F72C3; }

/* --- PIED DE PAGE --- */
.sharethis-inline-share-buttons {
    margin-top: 40px;
}
.footer-copyright {
    margin-top: 20px;
    padding-bottom: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8em;
}

/* --- ANIMATIONS DE FOND --- */
.waves-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 1;
    overflow: hidden;
}
.waves > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.waves > use:nth-child(1) { fill: rgba(0, 100, 0, 0.7); animation-delay: -2s; animation-duration: 7s; }
.waves > use:nth-child(2) { fill: rgba(0, 80, 0, 0.5); animation-delay: -3s; animation-duration: 10s; }
.waves > use:nth-child(3) { fill: rgba(0, 60, 0, 0.3); animation-delay: -4s; animation-duration: 13s; }
.waves > use:nth-child(4) { fill: rgba(0, 50, 0, 0.2); animation-delay: -5s; animation-duration: 20s; }
@keyframes move-forever {
    0% { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}

.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}
.star {
    position: absolute;
    top: -10px;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: fall linear infinite;
}
@keyframes fall {
    to { transform: translateY(100vh); opacity: 0; }
}
.star:nth-child(1){left:10%;animation-duration:10s;animation-delay:0s}
.star:nth-child(2){left:80%;animation-duration:8s;animation-delay:1s}
.star:nth-child(3){left:90%;animation-duration:12s;animation-delay:3s}
.star:nth-child(4){left:25%;animation-duration:7s;animation-delay:4s}
.star:nth-child(5){left:55%;animation-duration:15s;animation-delay:5s}
.star:nth-child(6){left:40%;animation-duration:9s;animation-delay:7s}
.star:nth-child(7){left:70%;animation-duration:11s;animation-delay:8s}
.star:nth-child(8){left:5%;animation-duration:6s;animation-delay:9s}
.star:nth-child(9){left:50%;animation-duration:13s;animation-delay:11s}
.star:nth-child(10){left:95%;animation-duration:10s;animation-delay:12s}

.flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    z-index: 3;
    pointer-events: none;
    animation: sparkle 40s infinite;
}
@keyframes sparkle {
    10% { opacity: 0 }
    10.1% { opacity: .3 }
    10.2% { opacity: 0 }
    25% { opacity: 0 }
    25.1% { opacity: .2 }
    25.2% { opacity: 0 }
    45% { opacity: 0 }
    45.1% { opacity: .4 }
    45.2% { opacity: 0 }
    70% { opacity: 0 }
    70.1% { opacity: .3 }
    70.2% { opacity: 0 }
}