/* Variables pour la charte graphique */
:root {
    --color-dark-grey: #1c1c1c; /* Gris foncé principal */
    --color-background: #0f0f0f; /* Fond très sombre */
    --color-white: #ffffff;
    --color-accent-violet: #8c4cff; /* Violet éclatant */
    --color-light-grey: #a0a0a0; /* Pour les textes secondaires */
    --font-family: 'Poppins', sans-serif;
}

/* Styles de base */
body {
    background-color: var(--color-background);
    color: var(--color-white);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--color-white);
}

a {
    color: var(--color-accent-violet);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-white);
}

/* Conteneurs de section */
section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ======================= HEADER / NAVIGATION ======================= */
header {
    background-color: var(--color-dark-grey);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--color-accent-violet);
}

nav a {
    margin-left: 25px;
    font-weight: 600;
    color: var(--color-light-grey);
}

nav a:hover {
    color: var(--color-white);
}

/* ======================= BOUTON D'INVITATION (CTA) ======================= */
.btn-invite {
    background-color: var(--color-accent-violet);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn-invite:hover {
    background-color: #6a39cc; /* Violet légèrement plus sombre au survol */
    transform: translateY(-2px);
    color: var(--color-white); /* Assurer que le texte reste blanc */
}

.btn-invite.large {
    font-size: 1.2em;
    padding: 15px 30px;
    margin-top: 30px;
}

/* ======================= SECTION ACCUEIL (HERO) ======================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    text-align: left;
}

.hero-content {
    max-width: 55%;
}

.hero h1 {
    font-size: 3.5em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    color: var(--color-light-grey);
}

.hero-visual img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ======================= SECTION STATISTIQUES ======================= */
.stats-section {
    text-align: center;
    background-color: var(--color-dark-grey);
    border-radius: 10px;
    margin-bottom: 50px;
    padding: 50px 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3em;
    font-weight: 700;
    color: var(--color-accent-violet);
}

.note {
    font-size: 0.8em;
    color: #6a6a6a;
    margin-top: 5px;
}

/* ======================= SECTION FONCTIONNALITÉS ======================= */
.features-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--color-dark-grey);
    padding: 30px;
    border-radius: 10px;
    border-top: 3px solid var(--color-accent-violet);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: var(--color-accent-violet);
    font-size: 1.4em;
    margin-top: 0;
}

/* ======================= SECTION ENGAGEMENTS ======================= */
.privacy-section {
    text-align: center;
}

.privacy-section .intro {
    font-size: 1.3em;
    margin-bottom: 50px;
}

.commitment-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
}

.commitment-item {
    flex: 1;
    text-align: center;
    padding: 20px;
    border: 1px solid var(--color-dark-grey);
    border-radius: 8px;
}

.commitment-item h3 {
    color: var(--color-accent-violet);
}

/* ======================= FOOTER ======================= */
footer {
    background-color: var(--color-dark-grey);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
    color: var(--color-light-grey);
}

.footer-links a {
    color: var(--color-light-grey);
    margin: 0 10px;
}

.footer-links a:hover {
    color: var(--color-accent-violet);
}

/* ======================= MEDIA QUERIES (pour l'adaptabilité mobile) ======================= */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        min-height: 90vh;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-visual {
        display: none; /* Cachez le visuel sur mobile pour simplifier */
    }

    .features-grid, .commitment-grid {
        grid-template-columns: 1fr;
        display: block; /* Force le retour à la colonne unique */
    }

    .stats-grid {
        flex-direction: column;
        gap: 40px;
    }
    
    header {
        flex-direction: column;
    }
    
    nav {
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    nav a {
        margin: 0 10px;
        display: inline-block;
    }
}