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

/* --------------------------------------------------
   VARIABLES — Identité graphique EVV
-------------------------------------------------- */
:root {
    --violet: #6B2D8F;
    --violet-clair: #8E44AD;
    --jaune: #FFD700;
    --rouge: #DC143C;
    --fond-clair: #ffffff;
    --ombre: rgba(0,0,0,0.18);
}

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

/* Containers centrés */
.wrapper {
    width: min(1200px, 95%);
    margin: auto;
}

/* --------------------------------------------------
   NAVIGATION — Moderne, propre
-------------------------------------------------- */
nav {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px var(--ombre);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: background 0.3s;
}

.menu {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
}

.menu a {
    color: var(--violet);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
    transition: 0.3s;
}

.menu a:hover,
.menu a.active {
    color: var(--rouge);
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 3px;
    background: var(--jaune);
    border-radius: 3px;
    transition: 0.3s;
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

/* --------------------------------------------------
   PAGE D’ACCUEIL — Animation & logo
-------------------------------------------------- */
.main-content {
    text-align: center;
    padding: 3rem 1rem;
    flex: 1;
}

.welcome-text {
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeDown 1s ease-out forwards;
}

.logo-container {
    width: 320px;
    height: 320px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 15px 40px var(--ombre);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    padding: 2rem;
    opacity: 0;
    animation: fadeUp 1.3s ease-out 0.4s forwards;
    position: relative;
    overflow: hidden;
}

.logo-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255,215,0,0.2), transparent);
    animation: shine 4s infinite;
}

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

.subtitle {
    color: #fff;
    margin-top: 1.5rem;
    font-size: 1.7rem;
    opacity: 0;
    animation: fadeIn 1.2s ease-out 1s forwards;
}

/* --------------------------------------------------
   PAGES INTERNES — Header moderne
-------------------------------------------------- */
.page-header {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 12px 35px var(--ombre);
    margin: 2rem auto;
    width: min(1000px, 95%);
}

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

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

/* --------------------------------------------------
   CONTENT BLOCKS — Sections élégantes
-------------------------------------------------- */
.content-section {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    margin: 2rem auto;
    width: min(1000px, 95%);
    box-shadow: 0 12px 35px var(--ombre);
}

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

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

/* --------------------------------------------------
   STATISTIQUES — Cartes modernes
-------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--violet) 0%, var(--violet-clair) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px var(--ombre);
    transition: transform 0.25s, box-shadow 0.25s;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.25);
}

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

.stat-label {
    opacity: 0.9;
    margin-top: 0.3rem;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
footer {
    background: #111;
    color: white;
    padding: 3rem 1rem 2rem 1rem;
    margin-top: auto;
}

.footer-content {
    width: min(1200px, 95%);
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

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

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

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

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.6;
}

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

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes shine {
    0%   { transform: translate(-120%, -120%); }
    100% { transform: translate(120%, 120%); }
}

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

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

    .content-section {
        padding: 1.5rem;
    }

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