* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* VARIABLES */
:root {
    --violet: #6B2D8F;
    --jaune: #FFD700;
    --rouge: #DC143C;
    /* tu utilises var(--violet-clair) plus bas, on le définit ici */
    --violet-clair: #9B59B6;
}


/* GLOBAL */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--violet) 0%, var(--violet-clair) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* NAVIGATION */
nav {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}


.menu {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 3rem;
    list-style: none;
    padding: 0 2rem;
}


/* LIENS NAVBAR : rouge + soulignement jaune par défaut, violet au survol */
.menu a {
    text-decoration: none;
    color: var(--rouge);              /* Rouge au repos */
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 1rem;
}

/* Trait jaune toujours visible */
.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;                      /* Soulignement permanent */
    height: 3px;
    background: var(--jaune);         /* Jaune */
}

/* Au survol : texte violet (soulignement reste jaune) */
.menu a:hover {
    color: var(--violet);
}

/* Si tu veux forcer les liens actifs à rester violets même sans survol */
.menu a.active {
    color: var(--violet);
}


/* MAIN CONTENT (Accueil) */
.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    min-height: calc(100vh - 80px);
    flex: 1;
}


.welcome-text {
    color: white;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInDown 1s ease-out forwards;
    text-align: center;
}


.logo-container {
    width: 350px;
    height: 350px;
    background: white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    opacity: 0;
    animation: fadeInBlur 2s ease-out 0.5s forwards;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}


.logo-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    animation: shine 4s infinite;
}


.logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    z-index: 1;
}


.subtitle {
    color: white;
    font-size: 2rem;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}


/* PAGE HEADER (pour les autres pages) */
.page-header {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


.page-header h1 {
    color: var(--violet);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}


.page-header p {
    color: #666;
    font-size: 1.2rem;
    line-height: 1.6;
}


/* CONTENT SECTIONS */
.content-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


.content-section h2 {
    color: var(--violet);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--jaune);
    padding-bottom: 0.5rem;
}


.content-section h3 {
    color: var(--rouge);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
}


.content-section p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 1rem;
}


/* STATS BLOCKS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}


.stat-card {
    background: linear-gradient(135deg, var(--violet) 0%, var(--violet-clair) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    color: white;
}


.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--jaune);
}


.stat-label {
    font-size: 1rem;
    margin-top: 0.5rem;
}


/* FOOTER */
footer {
    background: #000;
    color: white;
    padding: 3rem 2rem 1.5rem 2rem;
    margin-top: auto;
    width: 100%;
}


.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}


.footer-section h3 {
    color: var(--jaune);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}


.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}


.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}


.footer-section a:hover {
    color: var(--jaune);
}


.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}


/* ANIMATIONS */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes fadeInBlur {
    from {
        opacity: 0;
        filter: blur(20px);
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .menu {
        flex-wrap: wrap;
        gap: 1rem;
    }


    .welcome-text {
        font-size: 2rem;
    }


    .logo-container {
        width: 250px;
        height: 250px;
    }


    .subtitle {
        font-size: 1.5rem;
    }


    .page-header h1 {
        font-size: 2rem;
    }


    .content-section h2 {
        font-size: 1.5rem;
    }
}
