@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;700&display=swap');
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Ubuntu', sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #14a4ff;
    padding: 20px;
    height: 90px;
}

header .logo img {
    height: 150px;
}

nav {
    display: flex;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    font-family: 'University', sans-serif;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #bf106c;
}

/* Style pour l'onglet actif */
nav a.active {
    color: #bf106c; 
}

.container {
    padding: 20px;
}

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

.section p {
    text-align: justify;
}

.section-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-content.reverse {
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-content .text {
    flex: 1;
}

.section-content .image {
    flex: 1;
}

.section-content .image img {
    width: 100%;
    border-radius: 10px;
}

.section h2 {
    font-family: 'Ubuntu', sans-serif;
    color: #bf106c;
    font-size: 2em;
}

.section p {
    line-height: 2;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #14a4ff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #bf106c;
}

footer {
    background-color: #bf106c;
    color: white;
    text-align: center;
    padding: 10px;
    width: 100%;
}

.social-media img {
    width: 70px;
    margin: 0 2px;
}

/* Slider Styles */
.slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    box-sizing: border-box;
}

.slide-text h2 {
    font-family: 'Ubuntu', sans-serif;
    font-size: 3em;
    margin: 0;
}

.slide-text p {
    font-size: 1.5em;
    margin: 10px 0 0;
}



.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}





/* Styles pour les formulaires */
.inscription-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.inscription-form .form-group {
    margin-bottom: 15px;
}

.inscription-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.inscription-form input[type="text"],
.inscription-form input[type="int"],
.inscription-form select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.inscription-form .checkbox-group {
    display: flex;
    gap: 10px;
}

.inscription-form .checkbox-group label {
    margin-left: 5px;
}

.inscription-form .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #14a4ff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: #bf106c;
}




/* Styles pour la bannière de contact */
.contact-banner {
    height: 25vh; /* 1/4 de la hauteur du slider */
    background-image: url('images/_MG_0374-2.jpg'); 
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-overlay {
    position: absolute; /* Position absolue pour couvrir toute la bannière */
    top: 0;
    left: 0;
    width: 100%; /* Prend toute la largeur */
    height: 100%; /* Prend toute la hauteur */
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-banner h1 {
    color: white;
    font-family: 'University', sans-serif;
    font-size: 3em;
    margin: 0;
}

/* Styles pour la section contact */
.contact-info {
    flex: 1;
    padding-right: 40px;
}

.contact-map {
    flex: 1;
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border-radius: 10px;
}

.horaires {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.menu-toggle {
    display: none; /* Masqué sur les grands écrans */
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

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


/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    header .logo img {
        height: 80px; /* Taille réduite du logo */
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        display: block;
        margin: 10px 0;
    }
.nav-links.show {
    display: flex;
}

    .section-content {
        flex-direction: column;
        text-align: center;
    }

    .slider {
        height: 50vh; /* Réduction de la hauteur */
    }

    .testimonial {
        flex: 0 0 100%;
    }

    .contact-banner {
        height: 15vh;
    }

    .contact-banner h1 {
        font-size: 2em;
    }
}


/* Style pour le menu burger */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

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

/* Gestion de l'affichage du menu sur mobile */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Afficher le bouton hamburger */
    }

    .nav-links {
        display: none; /* Masquer le menu par défaut */
        flex-direction: column;
        position: absolute;
        top: 90px; /* Ajustez en fonction de la hauteur du header */
        left: 0;
        width: 100%;
        background-color: #14a4ff;
        padding: 10px 0;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 10px;
        font-size: 1.2em;
    }

    .nav-links.show {
        display: flex; /* Afficher le menu lorsqu'il est activé */
    }
}