/* Configuration de base pour un footer collé */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    color: #2c2c2c;
    line-height: 1.6;
}

body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f4f4f4;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("assets/logo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.1;
    z-index: -1;
}

/* Navbar styling */
.navbar {
    height: 90px;
    background-color: rgba(44, 44, 44, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center; /* Centre les liens horizontalement */
    align-items: center; /* Centre verticalement le contenu */
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
    padding: 0 20px; /* Espacement interne gauche et droite */
}

/* Liste des liens */
.nav-links {
    display: flex; /* Les liens sont affichés en ligne */
    list-style: none; /* Supprime les puces */
    gap: 40px; /* Ajoute un espacement entre les liens */
    margin: 0; /* Supprime les marges par défaut */
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 400;
    padding: 10px 20px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-links li a:hover {
    color: #fff;
    border-bottom: 2px solid #ff9800;
}

/* Bouton toggle (hamburger) pour mobile */
.menu-toggle {
    display: none; /* Caché sur desktop */
    font-size: 2rem; /* Taille du bouton toggle */
    cursor: pointer;
}
/* Header d'accueil */
.header {
    background-image: url('https://source.unsplash.com/1600x900/?nature,relaxation');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #333;
    padding: 40px;
}

.header h1 {
    font-size: 4em;
    margin: 0;
    font-weight: 600;
}

.header h2 {
    font-size: 2.5em;
    margin-top: 15px;
    font-weight: 400;
}

.header p {
    font-size: 1.5em;
    max-width: 800px;
    line-height: 1.8;
    margin-top: 30px;
    font-weight: 300;
}

/* Section principale */
.services {
    padding: 70px 40px;
    text-align: center;
    color: #2c2c2c;
}

.service-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.service-item {
    text-align: center;
    max-width: 450px;
    background-color: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-item h3 {
    font-size: 1.6em;
    font-weight: 600;
    margin: 15px 0;
    color: #8b5e3c;
}

.service-item p {
    font-size: 1.2em;
    line-height: 1.8;
    padding: 20px;
    color: #2c2c2c;
}

/* Section de contact */
.contact-section {
    max-width: 1800px;
    margin: 70px auto;
    padding: 30px;
    text-align: center;
    width: 95%;
}

.contact-section h1 {
    font-size: 2.5em;
    color: #8b5e3c;
    margin-bottom: 30px;
}

.contact-info {
    list-style: none;
    padding: 0;
    font-size: 1.3em;
    color: #2c2c2c;
    text-align: center;
}

.contact-info li {
    margin-bottom: 15px;
}

.contact-info a {
    color: #8b5e3c;
    text-decoration: none;
}

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

/* Style pour le conteneur de la carte */
.map-container {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.map-container iframe {
    width: 100%;
    max-width: 1800px;
    height: 700px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 0;
}

/* Section des informations complémentaires */
.info-section {
    max-width: 1000px;
    margin: 70px auto;
    padding: 40px;
    text-align: center;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info-section h1 {
    font-size: 2.5em;
    color: #8b5e3c;
    margin-bottom: 30px;
}

.info-content {
    font-size: 1.3em;
    line-height: 1.8;
    color: #2c2c2c;
    text-align: center;
}

.info-content p {
    margin-bottom: 15px;
    padding-left: 10px;
}

/* Section Mon Parcours */
.parcour-section {
    max-width: 800px;
    margin: 70px auto;
    padding: 30px;
    text-align: center;
}

.parcour-section h1 {
    font-size: 2.5em;
    color: #8b5e3c;
    margin-bottom: 30px;
}

.parcour-section p {
    font-size: 1.3em;
    line-height: 1.8;
    color: #2c2c2c;
    text-align: left;
    margin-bottom: 20px;
}

/* Pied de page */
footer {
    background-color: #f8f8f8;
    padding: 20px;
    text-align: center;
    margin-top: auto;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #eee;
}

.social-links {
    margin-top: 40px;
}

.social-links a {
    display: inline-block;
    margin: 0 15px;
}

.social-links img {
    width: 40px;
    height: 40px;
    opacity: 0.8;
}

/* Section supplémentaire */
.additional-info {
    margin: 40px 0;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 12px;
}

.additional-info h2 {
    font-size: 1.8em;
    color: #2c2c2c;
    margin-bottom: 10px;
}

.additional-info p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #555;
}

.hours {
    margin: 40px 0;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 12px;
}

.hours h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #2c2c2c;
}

.hours ul {
    list-style: none;
    padding: 0;
    max-width: 400px;
    margin: 0 auto;
}

.hours li {
    font-size: 1.1em;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hours li:last-child {
    border-bottom: none;
}

/* Responsive design: Mobile menu */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none; /* Masquer le menu par défaut sur mobile */
        flex-direction: column; /* Empile les liens verticalement */
        position: absolute; /* Positionne sous la navbar */
        top: 100%; /* Positionne directement sous la navbar */
        right: 0; /* Aligné à droite */
        background-color: #2c2c2c;
        width: 100%;
        text-align: center;
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex; /* Affiche le menu lorsque la classe active est ajoutée */
    }

    .menu-toggle {
        display: block; /* Affiche le toggle (hamburger icon) sur mobile */
    }
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .contact-section {
        padding: 20px; /* Réduit les marges internes sur mobile */
        margin: 50px auto; /* Réduit les marges externes */
    }

    .contact-section h1 {
        font-size: 2em; /* Réduit la taille du titre sur mobile */
        margin-bottom: 20px; /* Réduit l'espace sous le titre */
    }

    .contact-info {
        font-size: 1em; /* Réduit légèrement la taille du texte */
    }

    .contact-info li {
        margin-bottom: 10px; /* Réduit l'espacement entre les éléments */
    }
}

@media screen and (max-width: 480px) {
    .contact-section {
        padding: 15px; /* Réduit encore plus les marges internes */
    }

    .contact-section h1 {
        font-size: 1.8em; /* Réduit davantage la taille du titre */
    }

    .contact-info {
        font-size: 0.9em; /* Réduit encore plus la taille du texte */
    }

    .contact-info li {
        margin-bottom: 8px; /* Réduit l'espacement pour les très petits écrans */
    }
}
@media screen and (max-width: 768px) {
    .map-container iframe {
        height: 500px;
    }
    
    .info-section {
        padding: 20px;
        margin: 40px auto;
    }
}

@media screen and (max-width: 480px) {
    .map-container iframe {
        height: 400px;
    }
}