/* Reset Some Default Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: rgb(156, 189, 174);
    margin: 0;
    padding: 0;
}

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

header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    padding: 40px 20px 20px 20px;
}

header img {
    width: 200px;
    object-fit: cover; /* Ensures the image fills the container without distortion */
    border: 5px solid white; /* White border */
    border-radius: 8px; /* Rounded corners for a softer look */
}

header h1 {
    margin-top: 20px;
    font-size: 3.5em;
}

.highlight {
    font-size: 2.5em;
    font-weight: bold;
    color: #16425B;
    text-align: center;
    margin: 20px 0;
}

.section {
    margin: 40px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.section h2 {
    color: #16425B;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service {
    background: #f9f9f9;
    padding: 20px;
    text-align: left;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.service img {
    display: block;
    margin: 0 auto 15px; /* Center and add bottom margin */
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

/* Listes principales */
.service ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.service ul li {
    display: block; /* S'assure que chaque point est sur une ligne séparée */
    font-size: 1em;
    color: #333;
    font-weight: 500;
    margin-bottom: 10px;
}

/* Icône de la liste principale */
.service ul li::before {
    content: "\f058"; /* Icône check de FontAwesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #16425B;
    margin-right: 10px;
    font-size: 1.2em;
}

/* Sous-listes */
.service ul ul {
    margin: 10px 0 10px 30px;
    padding-left: 15px;
    border-left: 3px solid #16425B;
}

.service ul ul li {
    display: list-item; /* Chaque point sur une ligne distincte */
    font-size: 0.95em;
    color: #444;
    margin-bottom: 5px;
}

/* Icône de la sous-liste */
.service ul ul li::before {
    content: "\f105"; /* Icône flèche de FontAwesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #16425B;
    margin-right: 8px;
    font-size: 1em;
}

.service h3 {
    font-size: 1.8em;
    margin-top: 15px;
    color: #16425B;
    text-align: center;
}

.service p {
    font-size: 1em;
    color: #555;
    line-height: 1.6em;
}



.about-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.about-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    background: white;
    color: black;
}

/* Horaires Section */
.section.horaires {
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
}

.horaires-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    align-items: center;
    text-align: center;
}

.horaire-item {
    background: #f9f9f9;
    padding: 20px 25px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.horaire-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.horaire-item i {
    font-size: 2.5em;
    color: #16425B;
}

.horaire-item p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.8em;
    color: #555;
}

.horaire-item strong {
    font-size: 1.2em;
    font-weight: bold;
    color: #16425B;
}



/* Contact Section Styling */
.section.contact {
    display: flex;
    flex-direction: column;
}

.contact-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

/* Logo Styling */
.contact-wrapper img {
    width: 150px;
    height: auto;
    border-radius: 8px;
}

/* Contact Details Styling */
.contact-details {
    text-align: left; /* Ensure left-alignment for contact details */
}

.contact-details p {
    font-size: 1.1em;
    color: #333;
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.contact-details i {
    font-size: 1.5em;
    color: #16425B;
    margin-right: 10px;
}


/* Map Styling */
.contact-map {
    width: 100%;
    height: 400px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-details {
        text-align: center;
    }
}



@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .highlight {
        font-size: 1.5em;
    }

    .services, .about-section {
        grid-template-columns: 1fr;
    }

    .section, .about-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    header img {
        width: 120px;
    }

    header h1 {
        font-size: 1.8em;
    }
    
    .highlight {
        font-size: 1.2em;
    }
}


@media (max-width: 768px) {
    .horaires-wrapper {
        flex-direction: column;
    }

    .horaire-item {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    .horaire-item p {
        text-align: center;
    }
}
