/* Reset and Body */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #002F5F;
    width: 100%;
    overflow-x: hidden;
    height: 100%;
}

/* Header */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #d1d1d1;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo img {
    height: 90px;
    margin-left : 40px;
    margin-right: 40px;
}

/* Menu principal */
.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.navbar .nav-links a {
    text-decoration: none;
    color: #002F5F;
    font-weight: bold;
    font-size: 16px;
}

.navbar .nav-links a:hover {
    color: #0056b3;
}

/* Bouton Agence ( PAS TOUCHER )*/

.cta .btn-agence {
    text-decoration: none;
    color: #002F5F;
    border: 2px solid #002F5F;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    margin-right: 40px;
}

.cta .btn-agence:hover {
    background-color: #002F5F;
    color: white;
}

/* Bouton Menu Burger */
.navbar-toggle {
    display: none; /* Par défaut, masqué sur desktop */
    font-size: 24px;
    color: #002F5F;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 135px;
    right: 0;
    background-color: #003366;
    width: 100%;
    padding: 10px 0;
}


/* Section Introduction --- Page d'accueil */
.introduction {
    padding: 20px;
    background-color: #f9f9f9;
}

.intro-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.intro-image {
    max-width: 40%;
    height: auto;
}

.intro-text {
    max-width: 50%;
}

.intro-text h2 {
    font-size: 1.8em;
    color: #002F5F;
    margin-bottom: 10px;
}

.intro-text p {
    font-size: 16px;
    margin-bottom: 10px;
}

/* Section Prestations --- Page d'accueil */

.prestations-accueil {
    background-color: #002F5F;
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    align-items: center;
}

.prestations-accueil h3 {
    font-size: 2em;
    margin-bottom: 20px;
}

.prestations-container-accueil {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes en largeur égale */
    gap: 20px; /* Espacement entre les cartes */
    justify-items: center; /* Centre les cartes dans la grille */
}

.prestations-container-accueil a {
    text-decoration: none;
    color: #002F5F;
}

.prestation-accueil a {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding: 10px;
    color: #002F5F;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Espace entre image et texte */
    align-items: center; /* Centre les éléments horizontalement */
    height: 300px; /* Taille fixe uniforme pour toutes les cartes */
    width: 300px; /* Largeur fixe uniforme */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre pour un meilleur visuel */
}

.prestation-accueil img {
    max-width: 100%; /* Adapte la taille pour ne pas dépasser la carte */
    max-height: 70%; /* Limite la hauteur de l'image */
    object-fit: contain; /* Maintient les proportions sans déformation */
    flex-grow: 1; /* Force l'image à remplir l'espace restant au centre */
    margin: 0 auto; /* Centre l'image horizontalement */
}

.prestation-accueil p {
    font-size: 1em;
    font-weight: bold;
    margin: 0; /* Évite tout espacement inutile autour du texte */
    text-align: center;
    align-self: stretch; /* Étire le texte horizontalement */
    margin-top: 10px; /* Ajoute un espacement au-dessus si nécessaire */
}

/* Effet au survol des cartes */
.prestation-accueil:hover {
    transform: scale(1.05); /* Légère augmentation de la taille */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Ombre plus prononcée */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation fluide */
}

/* Section Slider --- Page d'accueil */

.logo-slider-section h3 {
    text-align: center;
    font-size: 1.5em;
    color: #002F5F;
    margin-bottom: 50px;
}

.logo-slider-section {
    width: 100%;
    padding: 40px 0;
    background-color: #fff;
    overflow: hidden;
  }
  
  .slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
  }
  
  .slider-track {
    display: flex;
    width: fit-content;
    animation: scroll 40s linear infinite;
    align-items: center;
  }
  
  .slide {
    flex: 0 0 auto;
    padding: 0 30px;
  }
  
  .slide img {
    width: 120px;
    height: auto;
    transition: transform 0.3s ease;
  }
  
  .slide img:hover {
    transform: scale(1.1);
  }
  
  @keyframes scroll {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-50%);
    }
  }




/* Section Contact --- Page d'accueil */

.contact {
    padding: 40px 20px;
    text-align: center;
    background-color: #f9f9f9;
    border-top: 2px solid #003366;
}

.contact p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.contact-button {
    background-color: #002F5F;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}

.contact-button:hover {
    background-color: #0056b3;
}


/* Section Prestations --- Page Prestations */

/* --- Section Prestations --- */
.prestations-prestation {
    display: grid;
    padding: 30px;
    grid-template-columns: 1fr 1fr; /* Deux colonnes : une pour l'image, l'autre pour le texte */
    gap: 20px; /* Espacement entre les colonnes */
    margin: 30px 0;
    align-items: center; /* Aligne verticalement texte et image */
    text-align: center;
}

.prestations-prestation img {
    max-width: 90%; /* Réduit la taille des images pour mieux les intégrer */
    height: auto;
    display: block;
    margin: 0 auto; /* Centre l'image dans sa colonne */
}


.prestations-prestation h3 {
    font-size: 1.4em;
    color: #002F5F;
}

.prestations-prestation p {
    font-size: 0.9em;
}

/* --- Section Bleue (Style Spécifique) --- */
.blue-section-prestation {
    background-color: #002F5F;
    padding: 30px;
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes : une pour l'image, l'autre pour le texte */
    gap: 20px; /* Espacement entre les colonnes */
    align-items: center; /* Aligne verticalement texte et image */
    text-align: center;
    padding: 20px;  
}

.blue-section-prestation h3 {
    font-size: 1.4em;
    color: white;
}

.blue-section-prestation p {
    font-size: 0.9em;
    color: white;
}

.blue-section-prestation img {
    max-width: 300px; /* Réduit la taille des images pour mieux les intégrer */
    height: auto;
    display: block;
    margin: 0 auto; /* Centre l'image dans sa colonne */
}
/* --- Images : Style Uniforme --- */
.prestations-prestation img{
    max-width: 300px;
    height: auto;
}

.prestations-prestation,
.blue-section-prestation {
    flex-direction: row-reverse; /* Inverse image et texte pour certaines sections */
}

/* Section Contact --- Page Contact */

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 60px 60px 60px;
    gap: 20px;
    background-color: #002F5F;
    color: #fff;
}

.form-container, .info-container {
    width: 48%;
}

.form-container textarea {
    height: 400px;
}

.form-container input, .form-container textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: Arial, sans-serif;
}

.form-container button {
    background-color: #1A73E8;
    color: white;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
}

.form-container button:hover {
    background-color: #1667C4;
}

.info-container {
    line-height: 1.8;
}

.info-container h3 {
    margin-bottom: 20px;
}

.info-container iframe {
    width: 100%;
    height: 200px;
    border: none;
    margin-bottom: 20px;
    border-radius: 4px;
}

.info-container p {
    margin: 10px 0;
    font-size: 14px;
}


contact-info, .hours {
    margin-bottom: 20px;
}

.contact-info p {
    margin: 5px 0;
    font-size: 14px;
    margin-left: 40px;
}

.icon {
    margin-right: 10px;
}

.horaires-container {
    width: 90%;
    max-width: 400px;
    background-color: #00264d;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    margin-left: 75px;
    margin-top: 40px;
}

.horaires-container h3 {
    text-align: center;
    font-size: 20px;
}

.horaires-table {
    width: 100%;
    border-collapse: collapse;
    margin-left: 30px; /* Décale tout vers la droite */
}

.horaires-table th {
    text-align: left;
    padding: 10px 0;
    font-weight: normal;
    font-size: 14px;
    width: 40%;
    margin-left: 30px; /* Ajoute un décalage supplémentaire */
}

.horaires-table td {
    text-align: left;
    padding: 10px 0;
    font-size: 14px;
    color: white;
}

.horaires-table .ferme {
    color: #aaa;
    font-style: italic;
}

.horaires-table td span {
    display: block;
    line-height: 1.6;
}



/* Section Mentions Légales --- Page Mentions Légales */

.mentions-legales {
    padding: 30px 60px;
    background-color: #002F5F;
    
}

.mentions-legales h1 {
    color: #fff;
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
}

.mentions-legales h2 {
    color: #fff;
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.mentions-legales p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #fff;
}

.mentions-legales ul {
    padding-left: 20px;
    margin: 10px 0;
}

.mentions-legales ul li {
    margin-bottom: 8px;
    color: #fff;
}




/* Footer */
footer {
    font-family: Arial, sans-serif;
    font-size: 14px;
    background-color: #f4f4f4;
    color: #333;
    padding-top: 20px;
    border-top: 2px solid #003366;
}

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

.footer-logo,
.footer-contact,
.footer-nav,
.footer-members {
    flex: 1;
    padding: 10px;
    text-align: center;
}

.footer-logo img {
    width: 80%;
    margin-bottom: 10px;
}

.footer-contact h4,
.footer-nav h4,
.footer-members h4 {
    margin-bottom: 20px;
    font-size: 16px;
    color: #003366;
}

.footer-contact p,
.footer-nav ul {
    margin: 5px 0;
    padding-bottom: 5px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav ul li {
    margin: 10px 0;
}

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

.footer-nav a:hover {
    color: #0056b3;
}

.footer-members img {
    width: 100px;
    margin: 10px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.footer-social h4 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #002F5F;
}

.footer-social a {
    display: inline-block;
}

.footer-social a img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.footer-social a img:hover {
    transform: scale(1.2);
}

.footer-social img {
    width: 24px;
}

.footer-bottom {
    text-align: center;
    padding: 10px;
    background-color: #003366;
    color: #fff;
}

footer hr {
    margin: 20px 0;
    border: 1px solid #003366;
}

.hl {
    border-left: 2px solid #003366;
    height: 250px;
}

@media (max-width: 1080px) {

    /* Page Contact */

    .horaires-container {
        margin-left: 20px; /* Aligne à droite */
        margin-right: 20px; /* Bordure droite légèrement ajustée */
    }
    
    .map-container {
        margin-left: 20px; /* Aligne à gauche */
        margin-right: 20px; /* Bordure gauche légèrement ajustée */
    }

    /* Page d'accueil */

    .prestations-container-accueil {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes pour tablettes */
    }

    .prestation-accueil {
        width: 250px; /* Réduction de la largeur des cartes */
        height: 250px; /* Réduction de la hauteur des cartes */
        margin-bottom: 80px;
    }
    .intro-text p {
        font-size: 15px; /* Réduit la taille du texte */
    }

    .intro-text h2 {
        font-size: 1.6em; /* Augmente la taille du titre */
        margin-bottom: 20px;
    }

    .intro-image {
        max-width: 60%; /* Augmente la taille de l'image */
    }

    /* Prestations --- Page Prestations */

    .prestations-prestation,
    .blue-section-prestation {
        grid-template-columns: 1fr; /* Passe à une seule colonne */
        text-align: center;
    }

    .prestations-prestation img,
    .blue-section-prestation img {
        order : -1; /* Inverse l'ordre de l'image et du texte */
        max-width: 70%; /* Réduit légèrement les images */
        margin: 0 auto; /* Centre l'image */
    }
    
}

/* Responsiveness */
@media (max-width: 768px) {

   /* Header */
    .navbar-toggle {
        display: block; /* Affiche le burger menu */
    }

    .logo img {
        margin-left: 0px;
    }

    .navbar {
        padding: 20px;
        justify-content: space-between;
    }

    /* Masquer par défaut */
    .nav-links {
        display: none !important; /* Menu caché par défaut */
        position: absolute;
        top: 110px;
        right: 0;
        background-color: #003366;
        width: 100%;
        flex-direction: column;
        padding: 10px 0;
    }

    /* Style pour les liens dans le menu */
    .nav-links li {
        text-align: center;
        margin: 5px 0;
    }

    .nav-links.mobile-active li a {
        color: #ffffff; /* Couleur du texte activée */
    }
    .nav-links li a {
        font-size: 18px;
        padding: 10px;
        margin-right: 0;
    }

    /* Afficher le menu quand mobile-active est appliqué */
    .nav-links.mobile-active {
        display: flex !important; /* Rend le menu visible */
        align-items: center;
        text-align: center;
    }


    /* Introduction */

    .intro-container {
        flex-direction: column;
    }

    .prestations-container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-logo,
    .footer-contact,
    .footer-nav,
    .footer-members {
        flex: 100%;
        font-size: 10px;
    }

    .footer-container h4 {
        font-size: 14px;
    }

    .footer-container p {
        font-size: 12px;
    }

    .footer-container a {
        font-size: 12px;
    }

    .footer-logo img {
        width: 30%;
    }

    .footer-bottom {
        font-size: 12px;
    }

    .hl {
        border: none;           /* Supprime les bordures par défaut */
        height: 2px;            /* Épaisseur de la ligne */
        background-color: #003366; /* Couleur de la ligne */
        width: 70%;            /* Laisse la ligne s'étirer sur tout l'espace disponible */
        margin: 0 auto;         /* Centre la ligne horizontalement */
    }
    
    /* Contact */

    .contact-container {
        flex-direction: column; /* Les sections passent en colonne */
        padding: 20px 20px 40px 20px; /* Marges à gauche/droite ajustées */
    }

    .form-container, .info-container {
        width: 100%; /* Chaque section prend toute la largeur */
        padding-right: 20px; /* Ajout d'un padding interne à droite */
        box-sizing: border-box; /* Assure que le padding n'étend pas la largeur totale */
    }

    .horaires-container {
        margin: auto; /* Centre le bloc horaires */
        padding-right: 20px; /* Ajout de padding interne à droite */
    }

    .horaires-table th, .horaires-table td {
        margin-left: 0; /* Suppression du décalage */
    }

    /* Prestations */

    .prestations-container-accueil {
        grid-template-columns: 1fr; /* 1 colonne pour mobiles */
        gap: 15px; /* Espacement réduit entre les cartes */
    }

    .prestation-accueil {
        width: 90%; /* Prend presque toute la largeur disponible */
        max-width: 320px; /* Limite la largeur pour garder une bonne apparence */
        height: auto; /* Ajuste la hauteur en fonction du contenu */
    }

    /* Page Prestations */

    .prestations-prestation,
    .blue-section-prestation {
        grid-template-columns: 1fr; /* Une seule colonne */
        gap: 10px; /* Réduit l'espacement */
    }

    .prestations-prestation img,
    .blue-section-prestation img {
        max-width: 100%; /* L'image prend la pleine largeur de sa colonne */
    }

    .prestations-prestation,
    .blue-section-prestation {
        padding: 20px; /* Réduit les marges */
    }

    .prestations-prestation h3,
    .blue-section-prestation h3 {
        font-size: 1.2em; /* Réduit légèrement la taille du texte */
    }

    .prestations-prestation p,
    .blue-section-prestation p {
        font-size: 0.85em; /* Réduit un peu le texte pour les mobiles */
    }

}

@media (max-width: 480px) {
    .logo img {
        height: 90px;
    }

    .main-nav a {
        font-size: 14px;
    }

    .btn-agence {
        font-size: 14px;
        padding: 5px 10px;
    }

    /* Prestations --- Accueil */ 

    .prestations-container-accueil {
        grid-template-columns: 1fr;
    }


    /* Prestations */

    .prestations-container-prestation,
    .blue-section-container-prestation {
        grid-template-columns: 1fr;
    }

    /* Page Prestations */

    .prestations-prestation,
    .blue-section-prestation {
        padding: 15px; /* Réduction supplémentaire des marges */
        gap: 5px; /* Réduit encore l'espacement */
    }

    .prestations-prestation h3,
    .blue-section-prestation h3 {
        font-size: 1.1em;
    }

    .prestations-prestation p,
    .blue-section-prestation p {
        font-size: 0.8em;
    }

    
}
