/* Styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background: #ffffff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 10px rgba(28, 28, 28, 0.35);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
    position: relative;
}

nav ul li a:hover {
    background-color: #f4f7f6;
    color: #3A69FF;
}

nav ul li a {
    text-decoration: none;
    color: hsl(241, 71%, 25%); /* Bleu institutionnel */
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.2rem;
}

/* 2. Style du sous-menu (caché par défaut) */
nav ul li .dropdown {
    text-align: center;
    display: none;
    position: absolute;
    top: 100%;       /* Aligné exactement sous le header */
    left: 50%;       /* Se place au milieu de l'élément parent */
    transform: translateX(-50%); /* Se décale de sa propre moitié vers la gauche pour être parfaitement centré */
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    z-index: 1000;
    border-top: 3px solid #e63946; /* Optionnel : petite ligne rouge comme rappel d'accent */
}

/* 3. Style des liens à l'intérieur du sous-menu */
nav ul li .dropdown li {
    margin: 0;               /* Reset les marges pour le sous-menu */
    width: 100%;
}

nav ul li .dropdown li a {
    padding: 10px 20px;
    display: block;
    font-size: 1.2rem;       /* Un peu plus petit que le menu principal */
    text-transform: none;    /* Optionnel : pas de majuscules partout */
    color: #333;
}

/* 4. Effet de survol sur les liens du sous-menu */
nav ul li .dropdown li a:hover {
    background-color: #f4f7f6;
    color: #e63946;
}

/* 5. AFFICHER LE MENU AU SURVOL */
nav ul li:hover .dropdown {
    display: block;          /* Affiche le menu quand on survole le parent */
}


/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    overflow: hidden; /* Coupe ce qui dépasse */
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1; /* Place la vidéo derrière le texte */
    transform: translate(-50%, -50%);
    object-fit: cover; /* Remplit l'espace sans déformer */
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    padding: 40px;
    border-radius: 10px;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    color: white;
    font-size: 1.5rem;
}

.btn-main {
    display: inline-block;
    background: #e63946; /* Rouge d'accent */
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-main:hover {
    background: #c1121f;
}

/* Stats */
.stats {
    background: #003366;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

/* News Cards */
.news {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #003366;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    margin-bottom: 10px;
    color: #003366;
}

.link {
    display: inline-block;
    margin-top: 15px;
    color: #e63946;
    text-decoration: none;
    font-weight: bold;
}

/* Footer */
footer {
    background: #222;
    color: #ccc;
    text-align: center;
    padding: 40px 0;
    margin-top: 40px;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

/* Header & Nav */
.logo {
    width: 130px; /* Ajustez cette valeur pour réduire ou agrandir globalement */
    display: flex;
    align-items: center;
}

.logo img {
    width: 100%;  /* Force l'image à ne pas dépasser la largeur de la div parent */
    height: auto; /* Garde les proportions du logo intactes */
}

/* Contact form */
.contact {
    padding: 60px 0;
    background: #f9fbfb;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 28px;
    border-radius: 8px;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.form-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.contact-form label {
    margin-bottom: 6px;
    color: #003366;
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    border: 1px solid #000000;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 1rem;
    color: #333;
    background: #fff;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #5f7ca6;
    box-shadow: 0 0 0 6px rgba(95,124,166,0.08);
}

.contact-form .btn-main {
    margin-top: 6px;
}

.contact-msg {
    margin-top: 12px;
    color: #2f7a3b;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }

    .contact-form {
        padding: 22px;
    }
}

/* --- Styles de l'Organigramme --- */

.organigramme-section {
    padding: 40px 0;
}

.org-grid {
    display: grid;
    /* On définit 3 colonnes de taille égale (1fr) */
    grid-template-columns: repeat(3, 300px); 
    gap: 25px;
    margin: 40px auto;
    justify-content: center;
}

.org-card {
    background: #ffffff;
    border-radius: 8px;
    /* Reprise de ton ombre existante sur le header pour la cohérence */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-top: 4px solid #003366; /* Ton bleu institutionnel */
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.org-card:hover {
    transform: translateY(-5px);
}

/* Style spécifique pour le président (accentuation rouge comme tes boutons) */
.org-card.highlight {
    border-top: 4px solid #e63946; 
    grid-column: 1 / -1; 
    justify-self: center; /* Centre la carte horizontalement */
        
}

.org-card-body {
    padding: 15px;
    text-align: center;
}

.member-name {
    display: block;
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.member-role {
    display: block;
    color: #003366; /* Bleu */
    font-weight: 600;
    margin-bottom: 10px;
}

.member-mail {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

@media (max-width: 900px) {
    .org-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .org-grid {
        grid-template-columns: 1fr;
    }
}