/* RESET DE BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* POLICES ET COULEURS GÉNÉRALES */
body {
    font-family: 'Manrope', sans-serif;
    font-size: 1em;
    background-color: #1f2039;
    color: #f9f8ff;
}

h1 {
    font-size: 2.5em;
    color: #a5b4fc;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

h2 {
    font-size: 1.5em;
    color: #a5b4fc;
    margin: 30px 0 10px;
}

p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #f9f8ff;
}

a {
    color: #242424;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== HEADER & FOOTER ===== */
header {
    position: fixed; /* Fixe le header en haut */
    top: 0; /* En haut de la page */
    width: 100%; /* S'étend sur toute la largeur */
    background-color: white; /* Fond blanc */
    z-index: 1000; /* Placer au-dessus du reste */
    padding: 1em 2em; /* Espacement interne */
  
  }
  
  .menu-deroulant {
    position: relative; /* Position relative pour le menu déroulant */
    display: inline-block; /* Affichage en ligne */
  }
  
  .menu-deroulant .sous-menu {
    display: none; /* Masque le sous-menu par défaut */
    position: absolute; /* Position absolue pour le sous-menu */
    background-color: white; /* Fond blanc */
    min-width: 180px; /* Largeur minimale du sous-menu */
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* Ombre portée */
    z-index: 1000; /* Placer au-dessus des autres éléments */
  }
  
  .menu-deroulant .sous-menu a {
    display: block; /* Affichage en bloc pour les liens du sous-menu */
    padding: 10px 15px; /* Espacement interne */
    text-decoration: none;  /* Pas de soulignement */
    color: #333; /* Couleur du texte */
  }
  
  .menu-deroulant .sous-menu a:hover {
    background-color: #f1f1f1; /* Fond gris clair au survol */
  }
  
  .menu-deroulant:hover .sous-menu {
    display: block; /* Affiche le sous-menu au survol */
  }
  
  
  .Logofooter {
    max-height: 50px; /* Ajuste la taille de l'image */
    height: 100%; /* S'adapte à la hauteur du header */
  }
  
  .Logoheader {
    max-height: 50px; /* Ajuste la taille de l'image */
    height: 100%; /* S'adapte à la hauteur du header */
  }
  
  footer {
    background-color: #03041b; /* Fond foncé pour le footer */
    padding: 1em 2em; /* Espacement interne */
    bottom: 0; /* Fixe le footer en bas */
    width: 100%; /* S'étend sur toute la largeur */
    max-height: 80px; /* Ajuste la hauteur maximale */
    height: 100px; /* Hauteur fixe */
  }
  
  /* ===== NAVIGATION ===== */
  footer,
  nav {
    display: flex; /* Utilisation de flexbox pour une disposition souple */
    flex-direction: row; /* Disposition horizontale des éléments */
    align-items: center; /* Centrage vertical des éléments */
    justify-content: space-between; /* Espacement entre les éléments */
  }
  
  nav a {
    margin-right: 2em; /* Espacement à droite des liens */
    margin-left: 2em; /* Espacement à gauche des liens */
  }
  
  .lien-icone {
    margin-left: 0.1em; /* Espacement spécifique pour les icônes */
  }
  
  .lien-icone:hover {
    opacity: 0.7; /* Effet de transparence au survol */
  }
  
  /* ===== SECTIONS GÉNÉRALES ===== */
  section {
    padding: 0.8em; /* Espacement interne des sections */
  }

/* CONTENU PRINCIPAL */
main {
    padding: 120px 2rem 2rem; /* Ajout de padding pour le contenu principal */
    max-width: 65%; /* Limite la largeur du contenu principal */
    margin: 0 auto;
}

/* STRUCTURE DE CHAQUE BLOC TEXTE + IMAGE/VIDÉO */
.section-pair {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.section-pair.reverse {
    flex-direction: row-reverse;
}

.section-pair img,
.section-pair video {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.section-pair .texte {
    flex: 1 1 45%;
}

.section-pair .media {
    flex: 1 1 50%;
}

/* BOUTON RETOUR EN HAUT */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #a5b4fc;
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 20px;
    text-decoration: none;
    z-index: 999;
    transition: background 0.3s;
}

.back-to-top:hover {
    background: #8788ba;
}

.copyright {
    color: white; /* Couleur du texte */
    text-align: center; /* Centrer le texte */
    margin-top: 3em; /* Espacement au-dessus du texte */
    margin-right: 42%; /* Espacement à droite */
    font-size: 0.8em; /* Taille du texte */
    display: flex; /* Active flexbox */
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
  }

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .section-pair {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .section-pair.reverse {
        flex-direction: column;
    }

    nav {
        flex-direction: column;
    }

    nav a {
        margin: 10px 0;
    }

    .section-pair .media img {
        width: 100%;         /* Agrandit l'image à la taille maximale de son conteneur */
        max-width: 100%;      /* Les images s'adaptent parfaitement */
        height: auto;
    }
}

.section-pair .media img {
    width: 50%;         /* Agrandit l'image à la taille maximale de son conteneur */
    max-width: 600px;    /* Limite la taille de l'image pour éviter les débordements */
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.zoom-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.zoom-container img {
    width: auto;
    height: auto;
    transition: transform 0.3s ease;
}

.zoom-container:hover img {
    transform: scale(1.05); /* Agrandir l'image au survol */
}

.overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 0px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 0 20px;
    font-size: 1.1rem;
    text-align: center;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 48%; /* Limite la largeur de l'overlay pour éviter les débordements */
}

.zoom-container:hover .overlay {
    opacity: 1;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
  }
  
  .lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    animation: zoomIn 0.3s ease;
  }
  
  
  .close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3em;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 1002;
  }
  
  .close:hover {
    color: #a5b4fc;
  }


/* Bloc 5 : texte centré avec un léger décalage vers le haut */
.texte-bloc5 {
    text-align: center;        /* Centrer le texte */
    max-width: 1500px;         /* Limiter la largeur du texte pour une meilleure lisibilité */
    margin: 40px auto;         /* Centrer horizontalement et ajouter de l'espace au-dessus et en dessous */
    margin-top: 20px;          /* Remonter le bloc de 20px (ajuster cette valeur à ton goût) */
    padding: 20px;             /* Espacement interne */
}

/* Accessibilité - liens */
a {
    color: #242424;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #a5b4fc; /* Change la couleur du lien lors du survol */
}

/* Accessibilité - Contraste amélioré pour les éléments de navigation */
nav a {
    color: #1f2039;  /* Assure que le texte des liens est assez contrasté */
}

nav a:hover {
    color: #a5b4fc;  /* Change la couleur lors du survol */
}

/* Footer : espace et alignement */
footer {
    background-color: #03041b;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    box-sizing: border-box;
}

/* Ajouter un peu plus de padding dans le footer pour éviter la surcharge */
footer .Logoheader, footer .Logofooter {
    height: 45px;
    object-fit: contain;
}

nav a.active {
    font-weight: bold;
    color: #a5b4fc; /* couleur douce ou personnalisée */
}
