:root {
    --primary-blue: #003366;
    --secondary-blue: #006699;
    --text-light: #ffffff;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial;
    line-height: 1.6;
    color: #333;
}

h1 {
      font-size: 30px;
    }


h3 {
    font-size: 25px;
	color: var(--primary-blue);
	font-style: italic;
    }


.histoire {
      color: var(--primary-blue);
    }

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

/* Header & Nav */
/* --- Bloc Header & Nav mis à jour --- */
header {
    background-color: var(--primary-blue);
    color: white;
    height: 50px; /* Fixe la hauteur de la barre bleue */
    position: relative;
    z-index: 100;
}

.relative-container {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: flex-end; /* Aligne le menu à droite */
    align-items: center;
}

.logo {
    width: 200px;
    height: 200px; /* Garde sa hauteur totale */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    
    /* Positionnement à cheval */
    position: absolute;
    left: 25px; /* Aligné sur le bord gauche du container */
    top: 10px;     /* Commence en haut de la barre bleue */
    z-index: 101;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
	justify-content: flex-end;
}

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

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

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* --- Mise à jour du Header et Menu Hamburger --- */

.hamburger {
    display: none; /* Caché par défaut sur PC */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1000;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

/* Version Mobile (typiquement en dessous de 768px) */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* On l'affiche sur mobile */
    }

    nav ul {
        display: none; /* On cache le menu par défaut */
        flex-direction: column;
        position: absolute;
        top: 50px; /* Hauteur de la barre bleue */
        right: 0;
        background-color: var(--primary-blue);
        width: 100%;
        text-align: right;
        padding: 20px 10px 20px 0; /* 20px haut/bas, 10px à droite, 0 à gauche */
    }

    /* Classe ajoutée par le JS pour ouvrir le menu */
    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 15px 0;
    }

    /* Optionnel : Transformation du bouton en X quand actif */
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}


/* Hero Carousel */
.hero-carousel {
    height: 500px; /* Tu peux ajuster la hauteur selon tes besoins */
    overflow: hidden;
    position: relative;
    margin-bottom: 40px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Important pour que les photos remplissent l'espace */
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Effet de fondu doux */
    z-index: 1;
		border-bottom-left-radius: 15px;
	border-bottom-right-radius: 15px;

}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

/* About Section */
.about-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.about-image img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

/* Animations Section (Orange) */
.animations-section {
    background: linear-gradient(to bottom, #ff9900, #ff0000);
    padding: 20px 0; /* Padding vertical pour l'espace haut/bas */
    width: 100%;
}

/* Conteneur interne centré à 1200px */
.inner-container {
    max-width: 1200px;
    margin: 0 auto; /* Centre le bloc */
    padding: 0 15px; /* Sécurité pour les petits écrans */
}

.animations-section h1, h2 {
    color: white;
    margin-bottom: 10px;
	text-align: left; /* Ou center selon ta préférence */
}


.animations-section-groupe {
    background: linear-gradient(to bottom, #ff0000, #ff9900);
    padding: 20px 0; /* Padding vertical pour l'espace haut/bas */
    width: 100%;
}


.animations-section-groupe h1, h2 {
    color: white;
    margin-bottom: 10px;
	text-align: left; /* Ou center selon ta préférence */
}


.grid-animations {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Espacement de 20px entre les cartes */
    justify-content: center;
}

.card {
    background-color: var(--primary-blue);
    padding: 5px; /* Petit padding pour que l'image de 260px rentre dans 270px */
    text-align: center;
    color: white;
    text-decoration: none; /* Enlève le soulignement du lien */
    width: 270px; /* Largeur fixe demandée */
    flex-shrink: 0;
    transition: transform 0.3s ease;
    border-radius: 15px;

}

.card:hover {
    transform: scale(1.03); /* Petit effet de survol */
}

.card-img {
    background-color: #d3d3d3;
    width: 260px; /* Image de 260px */
    height: 260px;
    margin: 0 auto 10px auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
	border-radius: 15px;
}

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

.card h3 {
    margin: 10px 0;
    font-size: 1.1rem;
	color: var(--text-light);
	font-style: normal;
}

/* Contact Section */
.contact-section {
    padding: 40px 0;
	display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.contact-image img {
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}


/* Footer */
footer {
    background-color: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1200px) {
    .about-image img {
        width: 100%;
        height: auto;
    }
}

/* Style de la Modale */
.modal-overlay {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(to bottom, var(--secondary-blue), var(--primary-blue));
    padding: 30px;
    border-radius: 15px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: fadeIn 0.3s ease;
    font-size: 16px;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

#modal-body {
    text-align: left;
    color: white; /* Pour assurer la lisibilité sur ton fond dégradé bleu */
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.detail-gallery img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

    /* ============================================
       CONTACT (GRILLE HORIZONTALE)
       ============================================ */
.contact-grid {
    display: flex;
    flex-wrap: wrap; /* Autorise le passage à la ligne */
    gap: 20px;       /* Espace entre les cartes */
    justify-content: center; /* Centre les cartes si elles passent en colonne */
    width: 100%;
}
    
    .contact-card {
      background: var(--primary-blue);
	  flex: 1;          /* Les cartes tentent de prendre la même largeur */
      min-width: 300px; /* IMPORTANT : En dessous de 300px, la carte passera en dessous */
      max-width: 100%;  /* Empêche de déborder sur tout petit écran */
	  border-radius: 10px;
      padding: 16px;
    }
    
    .contact-card h3 {
      margin: 0 0 8px;	
    font-size: 1.1rem;
	  color: var(--text-light);
	  font-style: normal;
    }
    
    .contact-card p {
      margin: 0;
	color: var(--text-light);
    }
    
    .contact-card a {
	color: var(--text-light);
    }

@media (max-width: 768px) {
    .contact-card {
        flex: 1 1 100%; /* Force la carte à prendre 100% de la largeur */
    }
}