/* ==========================================================================
   Base Styles
   ========================================================================== */
body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

/* Police élégante pour les éléments spéciaux */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #073659; /* Bleu */
    padding: 15px 5%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo {
    margin-right: 15px;
}

.logo img {
    height: 80px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-text {
    font-size: 1.2em;
    font-weight: 600;
    color: #fff; /* Texte blanc */
    white-space: nowrap;
    margin-left: 5px;
}

nav {
    flex: 1 1 auto;
    text-align: right;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}

nav li {
    margin-left: 25px;
}

nav a {
    text-decoration: none;
    color: #fff; /* Texte blanc */
    font-weight: 600;
    font-size: 1.1em;
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover {
    color: red;
}

/* Effet de soulignement au survol */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: red;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* ==========================================================================
   Dropdown Menu
   ========================================================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 1;
    top: 100%;
    left: 0;
    margin-top: 5px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 0.95em;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:hover {
    background-color: #f8f8f8;
}

.dropdown-content a::after {
    display: none;
}

.dropdown:hover .dropdown-content,
.dropdown-content:hover {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Carousel Styles
   ========================================================================== */
.activity-section { 
    display: flex; 
    flex-direction: row; 
    background: #f7f7f7; 
    margin-bottom: 32px; 
    border-radius: 12px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.07); 
    overflow: hidden; 
}

.activity-desc { 
    flex: 1; 
    padding: 32px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.activity-carousel { 
    width: 400px; 
    min-width: 300px; 
    background: #fff; 
    overflow: hidden; 
    position: relative; 
}

.carousel-track { 
    display: flex; 
    transition: transform 0.5s ease-in-out; 
}

.carousel-img { 
    width: 100%; 
    flex-shrink: 0; 
    height: 300px; 
    object-fit: cover; 
    object-position: center center; 
    border-radius: 8px; 
    box-shadow: 0 1px 4px rgba(0,0,0,0.08); 
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
}

.carousel-btn:hover { 
    background: #d32f2f; 
    color: #fff; 
    opacity: 1; 
}

.carousel-btn.left { left: 10px; }
.carousel-btn.right { right: 10px; }

/* Carousel dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #fff;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-carousel {
    position: relative;
    width: 80%;
    max-width: 900px;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* ==========================================================================
   Welcome Section
   ========================================================================== */
.welcome-section {
    padding: 60px 5%;
    background-color: #fff;
}

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

.welcome-section h1 {
    font-size: 2.4em;
    color: #e41c1c;
    margin-bottom: 10px;
    text-align: center;
}

.welcome-section h2 {
    font-size: 1.5em;
    color: #073659;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
}

/* Style harmonisé pour les titres des pôles */
h2.text-primary {
    font-family: 'Roboto', Arial, sans-serif; /* Assure une cohérence avec le reste du site */
    font-size: 1.8em;
    font-weight: 700;
    color: #e41c1c; /* Rouge principal utilisé sur le site */
    text-align: center;
    margin-bottom: 20px;
}

/* Centrage des titres de pôle */
.pole-title {
    text-align: center;
    margin: 5px 0 3px 0;
    font-size: 1.8em;
    color: #e41c1c;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    margin-bottom: 5px; /* Réduit de 10px à 5px */
}

/* Mission block */
.mission-block {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.mission-text {
    flex: 3;
    min-width: 300px;
}

.mission-text h3 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 20px;
    position: relative;
}

.mission-text h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #e41c1c;
}

.mission-text p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
}

.mission-text strong {
    color: #333;
}

/* Statistics */
.mission-stats {
    flex: 1;
    min-width: 250px;
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
    margin-bottom: 25px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-number {
    display: block;
    font-size: 2.8em;
    color: #e41c1c;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 1.1em;
    color: #555;
}


/* Actions overview */
.actions-overview {
    margin-bottom: 20px; /* Réduit de 60px à 40px */
}

.actions-overview h3, .federation-block h3 {
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 20px; /* Réduit de 30px à 20px */
    color: #333;
    position: relative;
}

.actions-overview h3:after, .federation-block h3:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e41c1c;
}

.action-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Réduit de 30px à 20px */
    justify-content: center;
}

.action-card {
    flex: 1 1 calc(33.333% - 30px);
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 10px; /* Réduit de 20px à 15px */
}

.action-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.action-card img {
    width: 100%;
    height: 300px; /* Hauteur fixe */
    object-fit: cover; /* Recadre l'image pour remplir l'espace */
    border-radius: 10px; /* Coins arrondis */
}
/* Pour les images spécifiques */
.img-bottom {
    object-position: bottom;
}
.action-card h4 {
    font-size: 1.3em;
    margin-bottom: 5px; /* Réduit de 10px à 5px */
    color: #e41c1c;
}

.action-card p {
    color: #555;
    margin-bottom: 15px;
}

.action-card .btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    background-color: #e41c1c;
    color: white; 
    transition: all 0.3s ease;
}

.action-card .btn:hover {
    background-color: #c01616;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(228, 28, 28, 0.4);
}

/* Federation block */
.federation-block {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 60px;
    text-align: center;
}

.federation-block p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA block */
.cta-block {
    background: linear-gradient(135deg, #f8f8f8 0%, #e6e6e6 100%);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-block h3 {
    font-size: 1.6em;
    margin-bottom: 25px;
    color: #333;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #e41c1c;
    color: white;
    box-shadow: 0 4px 10px rgba(228, 28, 28, 0.3);
}

.btn-primary:hover {
    background-color: #c01616;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(228, 28, 28, 0.4);
}

.btn-secondary {
    background-color: white;
    color: #333;
    border: 2px solid #ccc;
}

.btn-secondary:hover {
    color: #e41c1c;
    border-color: #e41c1c;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
    .inspiring-quote span {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    /* Header */
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 5%;
    }

    .logo-container {
        margin-bottom: 10px;
    }

    .logo img {
        height: 60px;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    nav li {
        margin-left: 0;
    }

    /* Carousel */
    #image-carousel,
    #image-carousel .carousel-container,
    #image-carousel .carousel-slides,
    #image-carousel .slide,
    #image-carousel .slide img {
        height: 50vh;
        min-height: 200px;
        max-height: 300px;
    }

    #image-carousel .carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    /* Welcome Section */
    .welcome-section {
        padding: 30px 10px;
    }

    .welcome-section h1 {
        font-size: 1.8em;
    }

    .welcome-section h2 {
        font-size: 1.2em;
        margin-bottom: 20px;
    }

    .mission-block {
        flex-direction: column;
        gap: 20px;
    }

    .mission-text {
        text-align: center;
    }

    .mission-stats {
        padding: 20px;
    }

    /* Action Cards */
    .action-cards {
        flex-direction: column;
        gap: 20px;
    }

    .action-card {
        flex: 1 1 100%;
    }

    /* Team Grid */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-member {
        padding: 10px;
    }

    .team-photo {
        width: 80px;
        height: 80px;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-logo img {
        height: 40px;
    }

    .footer-links {
        text-align: center;
    }

    .footer-social {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Header */
    .logo img {
        height: 50px;
    }

    nav ul {
        gap: 5px;
    }

    /* Carousel */
    #image-carousel,
    #image-carousel .carousel-container,
    #image-carousel .carousel-slides,
    #image-carousel .slide,
    #image-carousel .slide img {
        height: 40vh;
        min-height: 150px;
    }

    /* Welcome Section */
    .welcome-section h1 {
        font-size: 1.5em;
    }

    .welcome-section h2 {
        font-size: 1em;
    }

    /* Action Cards */
    .action-card {
        padding: 10px;
    }

    .action-card h4 {
        font-size: 1.1em;
    }

    .action-card p {
        font-size: 0.9em;
    }

    /* Footer */
    .footer-container {
        gap: 10px;
    }

    .footer-logo img {
        height: 30px;
    }
}
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6); /* Fond semi-transparent pour le texte */
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 1.2em;
    margin: 0;
}

/* Section détaillée des événements */
.event-detail {
    display: flex;
    align-items: center;
    gap: 30px; /* Espacement entre la galerie et la description */
    margin-bottom: 50px;
}

.event-gallery {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    justify-content: center;
}

.carousel {
    width: 100%;
    max-width: 350px;
    min-width: 220px;
    position: relative;
}

.carousel-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    display: none; /* Masquer par défaut */
}
.carousel-img.active {
    display: block; /* Afficher seulement l'image active */
}

.event-description {
    flex: 1 1 60%;
    max-width: 60%;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    font-size: 1.1em;
    color: #333;
}

/* Responsive */
@media (max-width: 900px) {
    .event-detail {
        flex-direction: column;
        gap: 20px;
    }
    .event-gallery, .event-description {
        max-width: 100%;
        width: 100%;
    }
    .carousel {
        max-width: 100%;
    }
    .carousel-img {
        height: 160px;
    }
}

/* Lightbox */
.lightbox {
  display: none; /* Caché par défaut */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Fond semi-transparent */
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Au-dessus des autres éléments */
}

.lightbox .lightbox-carousel {
  position: relative;
  width: 90%;
  max-width: 800px;
  height: 80%;
  display: flex;
  align-items: center;
}

.lightbox .carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.lightbox .carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.lightbox .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
}

.lightbox .carousel-btn.left {
  left: 10px;
}

.lightbox .carousel-btn.right {
  right: 10px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2em;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.lightbox .close:hover {
  color: #ff0000; /* Changement de couleur au survol */
}

/* Container des cartes d'évènements en grille à trois colonnes */
.event-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Style de chaque carte d'évènement */
/* Remplacer ou supprimer la largeur fixe en flexbox */
.event-card {
    position: relative;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    width: 100%; /* occupe toute la largeur de la cellule */
    transition: transform 0.3s;
}

/* Animation de survol: vague qui monte (utilisation de ::before) */
.event-card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, rgba(0, 123, 255, 0.5), transparent);
    transition: height 0.3s;
    z-index: 1;
}

.event-card:hover::before {
    height: 100%;
}

/* Pour faire en sorte que le contenu reste au-dessus de la vague */
.event-card * {
    position: relative;
    z-index: 2;
}

/* Style de l'image */
.event-card .event-image {
    width: 100%;
    height: auto;
}

/* Contenu de la carte */
.event-card .event-info {
    padding: 15px;
}

/* Titre, description et date */
.event-card .event-title {
    margin: 0 0 10px;
    font-size: 1.2em;
}
.event-card .event-description,
.event-card .event-date {
    margin: 0 0 10px;
    font-size: 0.9em;
    color: #555;
}

/* Lien "En savoir plus" */
.event-card .event-link {
    font-size: 0.9em;
    color: #007bff;
    text-decoration: none;
}

.event-card .event-link:hover {
    text-decoration: underline;
}

/* Styles pour la grille des membres de l'équipe */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  justify-content: center;
}

.team-member {
    text-align: center;
    background: transparent; /* Suppression du rectangle */
    padding: 0;              /* Suppression de l'espace interne */
    border-radius: 0;        /* Suppression de l'arrondi */
    box-shadow: none;        /* Suppression de l'ombre */
    transition: none;
}
.team-member:hover {
    transform: none;
    box-shadow: none;
}
.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.team-photo:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(228, 28, 28, 0.2);
}

.team-member h4 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 5px;
}

.team-role {
    font-size: 0.9em;
    color: #555;
}

/* Affichage horizontal des membres pour les pôles Communication et Tech */
.team-row {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
}

/* Responsive : empile sur mobile */
@media (max-width: 700px) {
    .team-row {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

/* Animations pour l'accueil */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-250px);}
    to { opacity: 1; transform: translateX(0);}
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(250px);}
    to { opacity: 1; transform: translateX(0);}
}

.animated-slide-left,
.animated-slide-right {
    opacity: 0;
}

.animated-slide-left.in-view {
    animation: slideInLeft 1.7s ease-out forwards;
}

.animated-slide-right.in-view {
    animation: slideInRight 1.7s ease-out forwards;
}

.animated-delay-1 {
    animation-delay: 0.2s;
}
.animated-delay-2 {
    animation-delay: 0.4s;
}
.animated-delay-3 {
    animation-delay: 0.6s;
}

/* Grille pour deux pôles côte à côte */
.pole-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}
.pole-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Responsive : empile les pôles sur mobile */
@media (max-width: 900px) {
    .pole-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Deux cartes côte à côte pour la page projets */
.action-cards.two-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    justify-content: center;
}
@media (max-width: 900px) {
    .action-cards.two-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Statistiques côte à côte */
.mission-stats.stats-row {
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: center;
    align-items: stretch;
}
.mission-stats.stats-row .stat-item {
    flex: 1 1 0;
    margin-bottom: 0;
}

/* Taille des images du carrousel projet */
.carousel-img {
    width: 100%;
    max-width: 500px;
    height: 300px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

/* Responsive : adapte la taille sur mobile */
@media (max-width: 700px) {
    .carousel-img {
        max-width: 100%;
        height: 180px;
    }
}
/* ----------------------------------
   Classes de recadrage (object-position)
---------------------------------- */
.crop-top            { object-position: center top; }
.crop-bottom         { object-position: center bottom; }
.crop-left           { object-position: left center; }
.crop-right          { object-position: right center; }
.crop-nw             { object-position: left top; }
.crop-ne             { object-position: right top; }
.crop-sw             { object-position: left bottom; }
.crop-se             { object-position: right bottom; }
/* Exemple d’un recadrage personnalisé */
.crop-custom-30-20   { object-position: 30% 20%; }
/* Footer général */
.footer {
  background: #073659;    /* bleu site */
  color: #fff;            /* texte blanc */
}
.footer a {
  color: #d32f2f;         /* rouge site */
  text-decoration: none;
}
.footer a:hover {
  color: #fff;            /* blanc au survol */
  text-decoration: underline;
}

/* Conteneur principal */
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
  align-items: start;
}

/* Titres de section */
.footer-section h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #fff;
}

/* Liens */
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li + li {
  margin-top: 0.5rem;
}

/* Logo */
.footer-logo img {
  max-width: 150px;
}

/* Réseaux sociaux */
.footer-social .social-links {
  display: flex;
  flex-direction: column;
}
.footer-social a + a {
  margin-top: 0.5rem;
}

/* Bas de footer */
.footer-bottom {
  background: #062d4b;    /* nuance plus foncée du bleu */
  border-top: 1px solid #d32f2f; /* ligne rouge */
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   Footer modernisé
   ========================================================================== */
.footer {
  background: #073659;      /* bleu du site */
  color: #fff;              /* texte blanc */
  font-size: 0.9rem;
}
.footer a {
  color: #e41c1c;           /* rouge du site */
  text-decoration: none;
}
.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 2rem 5%;
  align-items: start;
}

.footer-section h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #fff;
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li + li {
  margin-top: 0.5rem;
}

.footer-logo img {
  max-width: 140px;
}

.footer-social .social-links,
.footer-contact {
  display: flex;
  flex-direction: column;
}
.footer-social a + a,
.footer-contact p + p {
  margin-top: 0.5rem;
}

.footer-bottom {
  background: #062d4b;                    /* bleu foncé */
  border-top: 1px solid #e41c1c;         /* ligne rouge */
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
}


.pole-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    padding: 20px 20px;
    margin: 30px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 1100px;
}

.pole-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.pole-title {
    text-align: center;
    font-size: 1.8rem;
    color: #073659;
    margin-bottom: 5px; /* Réduit de 10px à 5px */
}

.pole-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #e41c1c;
    margin: 12px auto 0;
    border-radius: 2px;
}



.team-member {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);

  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


.team-member:hover {
    transform: translateY(-5px);
}

.team-photo {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.team-role {
    color: #555;
    font-size: 0.95rem;
}
/* Cacher le menu déroulant par défaut */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
}

/* Afficher le menu lorsqu'on survole la zone */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Assure que le lien parent n’a pas besoin d’être cliqué */
.dropdown {
    position: relative;
}

/* Style des liens dans le menu déroulant */
.dropdown-content a {
    color: #073659;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Optionnel : effet au survol des liens */
.dropdown-content a:hover {
    background-color: #f0f0f0;
}
.nav-icon {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    filter: brightness(0) invert(1); /* pour afficher en blanc si barre foncée */
    transition: transform 0.2s ease;
}
.nav-icon:hover {
    transform: scale(1.1);
}
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: px;
  width: 100%;
  max-width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  width: 100%;
}

.carousel-img {
  min-width: 100%;
  object-fit: cover;
  height: 250px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
}
.carousel-btn.left {
    left: 10px;
}
.carousel-btn.right {
    right: 10px;
}


.don-options {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.don-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: #333;
  width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.don-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.don-button img {
  width: 50px;
  height: auto;
  margin-bottom: 10px;
}
.footer {
  background-color: #f9f9f9;
  padding: 20px 40px;
  font-size: 0.95em;
  color: #333;
  border-top: 1px solid #ddd;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

.footer-logo-img {
  height: 50px;
}

.footer-social,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-social h4,
.footer-contact h4 {
  margin-bottom: 8px;
  color: #e41c1c;
}

.footer-icon {
  width: 28px;
  height: 28px;
  margin-right: 10px;
}

.footer-social a {
  display: inline-block;
  margin-right: 10px;
}

.footer-contact a {
  color: #333;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 15px;
  font-size: 0.9em;
  color: #666;
}


/* Footer simple et élégant */
.footer-simple {
  background-color: #073659; /* bleu site */
  color: #fff;
  padding: 20px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

.footer-logo img {
  height: 50px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95em;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-social a {
  margin-left: 12px;
}

.footer-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: none; /* garde les couleurs naturelles */
}


.footer-icon:hover {
  transform: scale(1.15);
}

.footer-bottom {
  text-align: center;
  font-size: 0.85em;
  margin-top: 10px;
  color: #ddd;
}

/* --- Header responsive --- */
.menu-toggle {
  display: none; /* caché par défaut */
  font-size: 28px;
  background: none;
  border: none;
  color: #ffffff; /* bleu du site */
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
  .logo-text {
    display: none; /* cache le texte du logo */
  }

  nav.nav-links {
    display: none; /* cache le menu par défaut */
    background: #073659;
    position: absolute;
    top: 70px; /* juste sous le header */
    right: 0;
    width: 150px;
    padding: 15px;
    border-radius: 0 0 8px 8px;
  }

 nav.nav-links ul {
    flex-direction: column;
    align-items: flex-end;   /* ✅ aligne les liens à droite */
    gap: 10px;
    text-align: right;       /* ✅ texte des liens à droite */
    width: 100%;
  }

  nav.nav-links a {
    color: #fff;
  }

  nav.nav-links.active {
    display: block; /* montre le menu quand actif */
  }

  .menu-toggle {
    display: block; /* bouton hamburger visible en mobile */
  }
}
/* Justifier tout le texte des paragraphes */
p {
  text-align: justify;
}
.menu-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
}
header {
  position: relative;
}
/* --- Correction du menu déroulant en mobile --- */
@media (max-width: 768px) {
  nav .dropdown-content {
    background-color: #fff;   /* fond blanc pour bien voir */
  }
  nav .dropdown-content a {
    color: #073659;           /* texte bleu */
    display: block;
    padding: 8px 12px;
  }
  nav .dropdown-content a:hover {
    background-color: #f0f0f0; /* effet hover gris clair */
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 par ligne */
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr; /* 1 par ligne en très petit écran */
  }
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.team-member {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);

  width: 140px;   /* largeur fixe que tu peux modifier */
  height: 260px;  /* hauteur fixe si tu veux homogénéiser */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
/* Marges latérales sur mobile */
@media (max-width: 768px) {
  p, .container, .mission-text, .federation-block, .action-card {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Lightbox */
.lightbox {
  display: none; /* caché par défaut */
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 par ligne */
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr; /* 1 par ligne en très petit écran */
  }
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.team-member {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);

  width: 140px;   /* largeur fixe que tu peux modifier */
  height: 260px;  /* hauteur fixe si tu veux homogénéiser */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
/* Marges latérales sur mobile */
@media (max-width: 768px) {
  body {
    padding-left: 15px;
    padding-right: 15px;
  }
}
/* Lightbox */
.lightbox {
  display: none; /* caché par défaut */
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}
#image-carousel .carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

#image-carousel .carousel-slide {
  flex: 0 0 100%;   /* chaque slide prend 100% */
  max-width: 100%;
}

#image-carousel .carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
#image-carousel .carousel-slide {
  flex: 0 0 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000; /* fond noir pour combler autour de l’image */
  aspect-ratio: 16/9; /* impose un format 16:9 responsive */
}

#image-carousel .carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* garde l’image entière sans déformation */
}

/* Grille équipe responsive */
@media (max-width: 768px) {
  .team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 par ligne */
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr; /* 1 par ligne sur très petit écran */
  }
}
.team-member {
  width: auto;   /* au lieu de width: 140px */
  height: auto;  /* enlève la hauteur figée */
}

/* === Correction carousel accueil === */
#image-carousel .carousel-slide img,
.carousel-img {
  width: 100%;
  height: 100vh;           /* prend toute la hauteur de la fenêtre */
  object-fit: cover;       /* remplit l'écran en zoomant si nécessaire */
  object-position: center; /* centre l'image */ /* supprime les coins arrondis */
}
/* === Sticky footer global === */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* hauteur minimale = hauteur de l'écran */
}

main {
  flex: 1; /* occupe tout l’espace dispo */
}

footer {
  margin-top: auto; /* pousse le footer en bas */
}

@media (max-width: 768px) {
  .carousel-img {
    height: 70vh;
    max-height: 70vh;
  }
}
/* Correction : le menu reste ouvert même si on survole la zone du dropdown */
.dropdown:hover .dropdown-content,
.dropdown-content:hover {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
/* Supprime les "trous" entre le bouton et le menu déroulant */
.dropdown {
  position: relative;
}

.dropdown-content {
  top: 100%;   /* colle juste sous le bouton */
  left: 0;
  margin-top: 0;   /* supprime tout écart vertical */
  padding-top: 0;
}
/* En-tête : supprime le soulignement du titre du site */
header h1 a {
  text-decoration: none;
  color: inherit; /* garde la même couleur que le texte */
}

header h1 a:hover {
  text-decoration: none; /* même au survol */
}
/* ==== Améliorations responsive mobile ==== */
@media (max-width: 768px) {
  /* Réduire marges/paddings globaux */
  .container, .activity-section, .contact-section, .pole-card, .actions-overview {
    padding: 12px !important;
    margin: 12px auto !important;
    width: 95% !important; /* prend presque toute la largeur */
  }

  /* Réduire la taille des paddings dans les descriptions */
  .activity-desc {
    padding: 16px !important;
  }

  /* Adapter les images de carrousel */
  .carousel-img, .activity-carousel img {
    height: auto !important;
    max-height: 220px;
    object-fit: cover;
  }

  /* Centrer et élargir le formulaire de contact */
  .contact-section {
    max-width: 95% !important;
    border-radius: 8px;
    padding: 20px !important;
  }

  /* Titres un peu plus petits pour éviter qu'ils débordent */
  h1, h2 {
    font-size: 1.6em !important;
  }

  h3, h4 {
    font-size: 1.2em !important;
  }
}
@media (max-width: 768px) {
  body {
    display: block; /* désactive le flex sur mobile */
    min-height: auto;
  }

  main {
    flex: unset;
  }

  footer {
    margin-top: 40px; /* un peu d’espace sous le contenu */
  }
}
