/* --- 1. VARIABLES ET RÉINITIALISATION DE BASE --- */
:root {
    --primary-color: #003366; /* Bleu Marine/Aéronautique */
    --secondary-color: #CC0000; /* Rouge Vif/Élément d'accent */
    --accent-color: #ecda92; /* Jaune ou Or (optionnel pour les boutons) */
    --text-color: #333;
    --light-bg: #f4f4f4;
    --dark-bg: #222;
    --font-family: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: rgb(199, 195, 195);
}
ul{
    display:flex;
    justify-content: center;
    width: 100%;
    list-style: none;
}
ul li{
    padding: 10px 30px;
    justify-content: center; 
}
ul li a{
    text-decoration: none ;
    color:#1e054c99;
    transition: 0.5s;
    font-size: 20px;
    padding:5px;
    border-radius:5px;
}
ul li a:hover{
    background-color: bisque;
    padding:15px;
    font-family:black;
    font-weight: bold;
    border-radius: 20px;
}

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

/* --- 2. EN-TÊTE ET NAVIGATION --- */
.main-header {
    background-color: var(--primary-color);
    font-family: white;
    padding: 15px 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex; /* Flexbox pour l'alignement du Header (Logo à gauche, Nav à droite) */
    justify-content: space-between;
    align-items: center;
}

.main-header .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    display: flex; /* Pour aligner l'image du logo et le texte si présent */
    align-items: center;
    gap: 10px; /* Espace entre l'image et le texte du logo */
}
.logo-img {
    height: 50px; /* Taille du logo */
    width: auto;
}

.main-nav ul {
    display: flex; /* Utilise Flexbox pour aligner les éléments */
    align-items: center;
    justify-content: flex-end; /* Aligne les liens à droite */
}

.main-nav ul li a {
    display: block;
    padding: 10px 15px;
    color: white;
    font-weight:bold;
}
.main-nav ul li :hover{
    color:#222;
    font-weight: bold;
}
/* --- 5. SECTION MISSION --- */
.mission-section {
    padding: 60px 0;
    text-align: center;
}

.mission-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.mission-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap; /* Important pour le responsive */
}

.mission-item {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    flex: 1;
    min-width: 280px; /* Minimum width for flex items */
    max-width: 350px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.mission-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.mission-item h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* --- 6. SECTION GALERIE D'IMAGES --- */
.gallery-section {
    background-color: var( --light-bg);
    padding: 60px 0;
    text-align: center;
}

.gallery-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 400px 300px 200px; /* Responsive grid */
    gap: 30px;
    justify-content: center;
}

.gallery-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Pour que l'image ne dépasse pas les bords arrondis */
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Hauteur fixe pour les images */
    object-fit: cover; /* Recadre les images pour qu'elles remplissent l'espace sans les déformer */
    display: block;
}

.gallery-item p {
    padding: 15px;
    font-size: 1rem;
    color: var(--text-color);
}

/* --- 8. PIED DE PAGE --- */
.main-footer {
    background:#003366;
    color: var(--light-bg);
    padding: 20px 0;
    font-size: 0.9rem;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-footer a {
    color: var(--light-bg);
    margin-left: 20px;
}

.main-footer a:hover {
    color: var(--secondary-color);
}

/* --- 9. RESPONSIVE DESIGN (Pour Mobile) --- */
@media (max-width: 768px) 
    .main-header {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }