/* Réinitialisation de base */
body, h1, p, ul, li, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Style de base pour le body */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px; /* 1rem = 16px par défaut */
    background-color: #f4f4f4; /* Couleur de fond pour un meilleur contraste */
    color: #333; /* Couleur de texte foncée pour un meilleur contraste */
}

/* Style du header et du menu de navigation */
header {
    background-color: rgba(27, 83, 148, 0.8);
    padding: 1.5rem 0;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Assure que le header reste au-dessus des autres éléments */
}

header nav ul {
    list-style: none;
}

header nav ul li {
    display: inline-block;
    margin: 0 0.625rem; /* 10px -> 0.625rem */
    position: relative;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

header nav ul li a {
    color: #f0f0f0; /* Blanc cassé pour le texte non survolé */
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease-in-out;
}

header nav ul li:hover {
    transform: translateY(-3px); /* Légère élévation au survol */
}

header nav ul li a:hover {
    color: #00d9ff; /* Cyan clair pour le texte survolé */
}

header nav ul li::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background-color: #00d9ff; /* Ligne cyan clair */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}

header nav ul li:hover::after {
    transform: scaleX(1); /* Animation de la ligne sous l'élément */
}


/* Section héroïque */
.hero {
    background: url('/images/aaaa.jpeg') no-repeat center center/cover;
    background-attachment: fixed; /* Rend l'image de fond fixe */
    height: 100vh; /* Occupation totale de la hauteur de l'écran */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff; /* Texte blanc pour un meilleur contraste */
    background-color: #000; /* Couleur de fond de secours pour un meilleur contraste */
}

.hero-content {
    max-width: 100%; /* 600px -> 37.5rem */
}

.hero h1 {
    font-size: 3rem; /* 48px -> 3rem */
    margin-bottom: 1.25rem; /* 20px -> 1.25rem */
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000; /* Ombre pour simuler un contour noir */
}

.hero p {
    font-size: 1.5rem; /* 24px -> 1.5rem */
    margin-bottom: 1.875rem; /* 30px -> 1.875rem */
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000; /* Ombre pour simuler un contour noir */
}


/* Style pour le bouton */
.btn-facebook {
    display: inline-block;
    padding: 0.625rem 1.25rem; /* 10px 20px -> 0.625rem 1.25rem */
    background-color: #4267B2;
    color: #f0f0f0; /* Blanc cassé pour le texte du bouton */
    text-decoration: none;
    border-radius: 0.3125rem; /* 5px -> 0.3125rem */
    font-size: 1.125rem; /* 18px -> 1.125rem */
    outline: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-facebook:hover {
    background-color: #3d9fbd; /* Couleur du bouton lors du survol */
    transform: scale(1.05); /* Légère mise à l'échelle au survol */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); /* Ombre ajoutée */
}


/* Style de base pour le menu */
#nav-links {
    display: flex;
    justify-content: center;
    transition: transform 0.3s ease-in-out;
}

#nav-links li {
    margin: 0 0.625rem; /* 10px -> 0.625rem */
}

/* Icône du menu hamburger - cachée par défaut */
.menu-icon {
    display: none;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 30px;
    position: absolute;
    right: 1rem; /* Positionne l'icône à droite */
    top: 50%;
    transform: translateY(-50%); /* Centre verticalement l'icône dans le header */
    outline: none;
}

.menu-icon:focus {
    outline: 3px solid #00f0ff; /* Contour visible au focus */
    outline-offset: 2px;
}

.menu-bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* Transformation pour la croix */
.menu-icon.active .menu-bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.menu-icon.active .menu-bar:nth-child(2) {
    opacity: 0;
}

.menu-icon.active .menu-bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

footer {
    background-color: #555554;
    color: #fff;
    padding: 0px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.footer-section {
    margin: 10px;
}

.footer-section h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.footer-section p {
    margin: 0;
}

.social-icon {
    width: 30px;
    height: 30px;
}

.social-icon2 {
    width: 60px;
    height: 70px;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}

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

.footer-section p {
    margin-top: 15px;
    font-size: 0.9em;
}

/* Styles pour la popup */
.popup {
    display: none; /* Cachée par défaut */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Fond noir avec opacité */
}

.popup-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    text-align: left;
    text-align: center;
}

.close-popup {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.popup-content p {
    text-align: right;
    text-align: justify;
}

.close-popup:hover,
.close-popup:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Media Queries pour les tablettes et smartphones */
@media (max-width: 768px) {
    header {
        background-color: transparent; /* Rendre le header transparent */
    }

    .hero-content {
    max-width: 50rem; /* 600px -> 37.5rem */
    }

    .hero h1 {
    font-size: 1.9rem; /* 48px -> 3rem */
    }

    .hero p {
    font-size: 1.1rem; /* 24px -> 1.5rem */
    }

    .menu-icon {
        display: block;
    }

    #nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 3.75rem;
        right: 0;
        width: 100%;
        transform: translateY(-100%);
        top: 0rem; /* Ajustez cette valeur pour rapprocher le menu du haut */
    }

    #nav-links.active {
        display: flex;
        transform: translateY(0); /* Le menu apparaît du haut vers le bas */
    }

    #nav-links li {
        margin: 1.25rem 0;
    }

    #nav-links li a:focus, 
    #nav-links li a:hover {
        outline: 3px solid #00f0ff; /* Contour visible au focus */
        outline-offset: 2px;
    }
}
