/* ==========================================
   STYLE COMPACT & PROFESSIONNEL (THÈME BLANC)
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #ffffff; /* Fond blanc pur */
    color: #2d3748; /* Texte gris très foncé (plus doux que le noir) */
    line-height: 1.6;
}

/* --- BARRE DE NAVIGATION INSTITUTIONNELLE --- */
header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #edf2f7; /* Ligne de séparation fine */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
}

nav .logo {
    font-size: 20px;
    font-weight: 700;
    color: #1a365d; /* Bleu marine institutionnel */
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: #2b6cb0; /* Bleu focus */
}

/* Ligne d'accentuation sous l'onglet actif */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2b6cb0;
    transition: width 0.2s ease;
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

/* --- STRUCTURE DES PAGES --- */
section {
    padding: 60px 20px;
    max-width: 1140px;
    margin: 0 auto;
}

.title {
    font-size: 28px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 40px;
    position: relative;
}

/* --- COMPOSANTS DE LA PAGE D'ACCUEIL --- */
#hero {
    background-color: #f7fafc; /* Gris très clair professionnel */
    border-left: 5px solid #2b6cb0; /* Ligne d'accentuation gauche */
    padding: 60px 40px;
    margin-top: 20px;
}

#hero h1 {
    font-size: 38px;
    color: #1a365d;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

#hero p {
    font-size: 18px;
    color: #4a5568;
    max-width: 800px;
}

.welcome-text {
    margin-top: 40px;
    padding: 20px 0;
}

.welcome-text h2 {
    color: #1a365d;
    font-size: 24px;
    margin-bottom: 15px;
}

/* --- GRILLES ET CARTES PRO (Actualités, Équipes, Infos) --- */
.news-grid, .team-grid, .contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.news-card, .team-member, .info-box, form {
    background: #ffffff;
    border: 1px solid #e2e8f0; /* Bordure fine grise */
    padding: 30px;
    border-radius: 4px; /* Coins très légèrement arrondis pour le sérieux */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Effet de survol discret */
.news-card:hover, .team-member:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.news-card .date {
    color: #718096;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.news-card h3, .team-member h4, .info-box h3, form h3 {
    color: #2d3748;
    font-size: 19px;
    margin-bottom: 12px;
}

.team-member .avatar {
    width: 65px;
    height: 65px;
    background-color: #ebf8ff; /* Fond bleu très clair */
    color: #2b6cb0;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.team-member p {
    color: #718096;
    font-size: 14px;
    font-weight: 500;
}

/* --- FORMULAIRES DE CONTACT ET BOUTONS --- */
form input, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    background-color: #f7fafc;
    border-radius: 4px;
    font-size: 15px;
    color: #2d3748;
    transition: all 0.2s ease;
}

form input:focus, form textarea:focus {
    border-color: #2b6cb0;
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

form button {
    background-color: #1a365d; /* Bouton bleu nuit */
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

form button:hover {
    background-color: #2b6cb0; /* Devient bleu plus vif au survol */
}

/* --- PIED DE PAGE --- */
footer {
    background-color: #f7fafc;
    color: #718096;
    text-align: center;
    padding: 30px;
    margin-top: 80px;
    border-top: 1px solid #edf2f7;
    font-size: 14px;
}

.news-card {
    margin-bottom: 20px; /* Crée un espace vide de 20 pixels sous chaque carte */
}

p {
    text-align: center;
}

.titre-souligne {
    text-decoration: underline;
}