/* --------------------------------- */
/* style.css (Style Pinkite Amélioré) */
/* --------------------------------- */

:root {
    --pink-primary: #FF149C;
    --pink-accent: #ff85c0;
    --color-text: white;
    --color-background: black;
    --color-dark-grey: #1a1a1a;
    --color-light-grey: #333;
}

/* Styles généraux */
body {
    color: var(--color-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    /* IMPORTANT : Ajout de padding-bottom pour l'espace du bandeau fixe de cookies (ex: 100px) */
    padding: 20px 20px 100px 20px; 
    border: 5px solid var(--pink-primary);
    min-height: 95vh;
    box-sizing: border-box;

    /* === IMAGE DE FOND (bg_site.png) à 25% de visibilité === */
    background-color: var(--color-background);
    background-image: url('bg_site.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* Pseudo-élément pour la surcouche noire à 75% */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: -1;
}

/* Conteneur principal pour centrer le contenu */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* En-tête */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--color-light-grey);
}

/* GROUPE Logo + H1 Titre */
.logo-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.logo { height: 50px; width: auto; margin-bottom: 5px; }
.logo-group h1 {
    color: var(--pink-primary); margin: 0; font-size: 2.8em;
    text-transform: uppercase; letter-spacing: 3px;
    text-shadow: 0 0 10px var(--pink-accent);
}
.logo-group .url {
    color: var(--pink-accent); font-size: 0.9em; margin-top: -5px; font-style: italic;
}

/* Menu de navigation */
.nav-menu { list-style: none; padding: 0; margin: 0; display: flex; }
.nav-menu li { margin-left: 30px; }
.nav-menu a {
    color: var(--pink-primary); text-decoration: none; font-weight: 600;
    padding: 8px 15px; border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
}
.nav-menu a:hover {
    color: var(--color-background);
    background-color: var(--pink-primary);
    box-shadow: 0 0 10px var(--pink-accent);
}
.nav-menu a.active-page {
    color: var(--color-background) !important;
    background-color: var(--pink-primary) !important;
    border-color: var(--pink-accent);
    box-shadow: 0 0 5px var(--pink-accent);
    cursor: default;
}

/* --------------------------------- */
/* NOUVEAU : Style pour le bouton Admin dans le header */
/* --------------------------------- */

.admin-login {
    /* Marge pour le séparer du menu de navigation */
    margin-left: 20px; 
}

/* Style du bouton lui-même (l'ancre a) */
.admin-button {
    text-decoration: none;
    background-color: #333; /* Gris sombre pour la discrétion */
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 600; 
    transition: background-color 0.3s, color 0.3s;
    border: 1px solid var(--color-light-grey);
}

.admin-button:hover {
    background-color: var(--pink-primary); /* Devient rose au survol */
    color: #000;
    border-color: var(--pink-primary);
}

/* --------------------------------- */

/* Section Héro (Introduction) */
.hero-section {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); 
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* NOUVEAU : Styles pour les éléments H2 et P dans la section Hero */
.hero-section h2 {
    color: var(--pink-primary);
    text-align: center;
    font-size: 2em;
}
.hero-section p {
    text-align: center;
    font-size: 1.1em;
    max-width: 800px;
    margin: 10px auto 0 auto;
    color: var(--pink-accent);
}


/* Nouveautés Section (Effet Flou) */
.new-features {
    margin-top: 50px;
    padding: 30px;
    border: 1px solid var(--pink-primary);
    border-radius: 12px;
    background-color: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 25px rgba(255, 20, 156, 0.5);
    transition: transform 0.3s;
}
.new-features:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 30px rgba(255, 20, 156, 0.8);
}
.new-features h2 {
    color: var(--pink-accent);
    text-align: center;
    border-bottom: 2px solid var(--pink-primary);
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-size: 1.8em;
}

/* Styles pour les autres pages (e.g. stats) */
.content-box {
    padding: 30px;
    border: 1px solid var(--pink-primary);
    border-radius: 12px;
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 25px rgba(255, 20, 156, 0.5);
    margin-bottom: 30px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}
.stat-card {
    background-color: var(--color-dark-grey);
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--pink-primary);
    transition: background-color 0.3s;
}
.stat-card:hover {
    background-color: #2c2c2c;
}
.stat-card h3 {
    color: var(--pink-accent);
    margin-top: 0;
    font-size: 1.1em;
}
.stat-card p {
    font-size: 2.2em;
    font-weight: bold;
    margin: 5px 0 0 0;
    color: var(--pink-primary);
}


/* --------------------------------- */
/* Styles pour le Contenu Général (content-box) */
/* --------------------------------- */

/* Ajuste l'encadrement des titres et sous-titres dans la boîte de contenu (RGPD, etc.) */
.content-box h2, .content-box h3 {
    color: var(--pink-primary);
    border-bottom: 1px solid var(--pink-accent);
    padding-bottom: 5px;
    margin-top: 30px;
    text-align: left; /* Assure que les titres RGPD ne sont pas tous centrés par défaut */
}
.content-box h4 {
    color: var(--pink-accent);
    margin-top: 20px;
}
/* Style les listes */
.content-box ul {
    list-style-type: disc;
    margin-left: 20px;
    padding-left: 0;
    margin-bottom: 20px;
}
/* Met en rose les mots en gras à l'intérieur de la boîte */
.content-box p strong {
    color: var(--pink-primary);
}

/* --------------------------------- */
/* NOUVEAU : Styles pour les Liens de Pied de Page */
/* --------------------------------- */

.footer-links {
    /* Centré horizontalement sous le contenu principal */
    max-width: 1200px;
    margin: 20px auto; 
    text-align: center;
    padding: 10px 20px;
    font-size: 0.9em;
    border-top: 1px solid var(--color-light-grey);
    padding-top: 15px;
}

.legal-link {
    color: var(--pink-accent); /* Couleur accent pour le texte du lien */
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.legal-link:hover {
    color: var(--pink-primary); /* Primaire au survol */
    text-decoration: underline;
}

.separator {
    color: var(--color-light-grey);
    margin: 0 10px;
}


/* ----------------------------------------------------
    SECTION CORRIGÉE : Styles de la Bannière de Cookies RGPD (TAILLE MODIFIÉE)
    ---------------------------------------------------- */

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 50%; /* Commence au milieu */
    transform: translateX(-50%); /* Décalage de la moitié de sa propre largeur pour centrer */
    
    max-width: 600px; 
    width: 90%; 

    background-color: #000000e0; 
    color: var(--color-text);
    padding: 25px 40px; 
    border-top: 6px solid var(--pink-primary);
    z-index: 1000; 
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0; 
}

/* Nouvelle classe pour cacher le bandeau avec JS */
.cookie-banner-hidden {
    display: none !important;
}

/* Texte de la bannière */
#cookie-banner p { 
    margin: 0; 
    flex-basis: 65%; 
    font-size: 1.2em; 
    padding-right: 20px; 
}

/* Conteneur des boutons */
.cookie-options { 
    flex-basis: 30%; 
    display: flex; 
    gap: 15px; 
    justify-content: flex-end; 
    margin-left: 10px;
}

/* Styles de base des boutons */
.cookie-options button { 
    padding: 15px 25px; 
    cursor: pointer; 
    border-radius: 8px; 
    font-weight: bold; 
    font-size: 1.2em; 
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    border: none;
}

/* Bouton "Accepter" */
.cookie-btn-accept {
    padding: 25px 60px; 
    background-color: var(--pink-primary);
    color: black;
    box-shadow: 0 0 15px rgba(255, 20, 156, 0.7); 
}

/* Bouton "Refuser" */
.cookie-btn-reject {
    background-color: transparent;
    color: var(--pink-primary);
    border: 3px solid var(--pink-primary); 
}

/* Amélioration de l'esthétique au survol */
.cookie-btn-accept:hover {
    background-color: var(--pink-accent); 
    box-shadow: 0 0 20px var(--pink-accent); 
}
.cookie-btn-reject:hover {
    background-color: var(--pink-primary);
    color: black;
}

/* Media Query pour les petits écrans (smartphones) */
@media (max-width: 768px) {
    body {
        /* Ajuste le padding-bottom pour le mobile (moins d'espace nécessaire) */
        padding-bottom: 120px; 
    }
    #cookie-banner {
        max-width: 100%; 
        width: 100%;
        left: 0;
        transform: translateX(0);
        flex-direction: column; 
        text-align: center;
        padding: 15px 10px; 
    }
    #cookie-banner p, .cookie-options {
        flex-basis: 100%;
        margin: 10px 0;
        padding-right: 0; 
        justify-content: center;
        font-size: 1em; 
    }
    .cookie-options button {
        padding: 12px 20px; 
        font-size: 1em;
        box-shadow: none; 
    }
    .cookie-btn-accept {
        padding: 12px 40px; 
    }
}