/* ---- styles.css ---- */

/* Définition des variables de couleurs pour la cohérence */
:root {
    --color-cream: #FAF9F6; /* Fond crème */
    --color-forest-green: #1B5E20; /* Vert Forêt pour texte et boutons */
    --color-light-green: #388E3C; /* Vert Clair pour le survol */
    --color-text-light: #555;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-cream);
    color: var(--color-forest-green);
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Permet au footer de rester en bas */
}

/* Conteneur principal (Landing Page) */
.landing-container {
    flex-grow: 1; /* Prend l'espace restant pour centrer le contenu verticalement */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* Style du Logo (Si c'est du texte) */
.logo {
    font-size: 4em;
    font-weight: 800; /* Extra gras pour l'impact */
    color: var(--color-forest-green);
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.slogan {
    font-size: 1.2em;
    font-weight: 400;
    color: var(--color-text-light);
    margin-bottom: 40px;
}

/* Groupement des Boutons */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espacement entre les boutons */
    width: 100%;
    max-width: 350px; /* Taille maximale pour les boutons */
    margin-left: auto;
    margin-right: auto;
}

/* Style commun des Boutons */
.btn {
    display: block;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px; /* Coins légèrement arrondis */
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    border: 2px solid var(--color-forest-green); /* Bordure pour effet visuel */
}

/* Style des Boutons actifs (Discord) */
.btn-discord {
    background-color: var(--color-forest-green);
    color: white;
}

.btn-discord:hover {
    background-color: var(--color-light-green); /* Vert clair au survol */
    border-color: var(--color-light-green);
}

/* Style du Bouton Serveur (Désactivé) */
.btn-server {
    background-color: transparent;
    color: var(--color-forest-green);
    cursor: not-allowed;
    position: relative;
    opacity: 0.7; /* Légèrement estompé pour indiquer qu'il est désactivé */
}

.coming-soon {
    display: block;
    font-size: 0.8em;
    font-weight: 400;
    margin-top: 3px;
    color: var(--color-text-light); /* Texte plus subtil */
}

/* Footer (Pied de Page) */
.main-footer {
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
    background-color: transparent; /* Fond transparent comme demandé */
    color: var(--color-text-light); /* Texte subtil */
}

.main-footer p {
    margin: 5px 0;
}

.main-footer a {
    color: var(--color-text-light);
    text-decoration: none;
    border-bottom: 1px dotted var(--color-text-light);
    transition: color 0.3s;
}

.main-footer a:hover {
    color: var(--color-forest-green);
    border-bottom: 1px dotted var(--color-forest-green);
}

/* Media Query pour mobile */
@media (max-width: 600px) {
    .logo {
        font-size: 3em;
    }
}

/* ---- STYLES POUR LA MODALE (POP-UP) NEWSLETTER ---- */

.modal-overlay {
    /* Caché par défaut */
    visibility: hidden;
    opacity: 0;
    
    /* Apparence */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fond sombre semi-transparent */
    
    /* Centrage */
    display: flex;
    justify-content: center;
    align-items: center;
    
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 2000;
}

/* Classe ajoutée par JavaScript pour montrer la Pop-up */
.modal-overlay.is-visible {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background-color: var(--color-cream); /* Fond crème */
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
}

/* Style du titre et texte de la modale */
.modal-content h3 {
    color: var(--color-forest-green);
    margin-top: 0;
    font-size: 1.8em;
}
.modal-content p {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

/* Style du bouton "Fermer" (le X) */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5em;
    font-weight: bold;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-text-dark);
}

/* Le conteneur du formulaire Mailjet */
.mailjet-embedded-form {
    width: 100%;
    margin-top: 15px;
}

/* ---- STYLES POUR LE CARROUSEL D'IMAGES ---- */

.carousel-container {
    max-width: 800px; /* Ajustez la largeur maximale */
    width: 90%;
    margin: 30px auto;
    border-radius: 8px;
    overflow: hidden; /* C'est la clé : cache les autres images */
    position: relative; /* Pour positionner les boutons */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out; /* L'animation de slide */
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-item img {
    width: 100%;
    display: block; /* Supprime l'espace sous l'image */
}

/* Boutons Précédent/Suivant */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5em;
    line-height: 1;
    z-index: 10;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Points de navigation (Dots) */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--color-forest-green); /* Utilise votre couleur principale */
}