/* Variables de couleurs */
:root {
    --primary-color: #f59a8c;
    --secondary-color: #fce7f3;
    --accent-color: #E68B8B;
    --text-color: #333333;
    --light-text-color: #F8F8F8;
    --background-color: #F8F8F8;
    --white: #FFFFFF;
    --light-gray: #F8F8F8;
    --dark-gray: #333333;
    --dark:#191717;
    --gray:#5e5a5a;
    

    
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 15px 30px rgba(0, 0, 0, 0.08);

    --transition: all 0.3s ease;
}

/* Base et typographie */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark-gray);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #e68b8b;
    box-shadow: 0 5px 15px rgba(245, 154, 140, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 4rem;
}

/* Préchargeur */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #191717;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    width: 500px;
    height: 500px;
    position: relative;
    overflow: hidden;
}

#preloader-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Boutons flottants */
.floating-contacts {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 35px;
    height: 35px;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.floating-btn .icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.floating-btn:hover {
    transform: scale(1.1);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Barre de navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 15px 0;
    z-index: 999;
    transition: var(--transition);
}

.main-header.scrolled {
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
    height: 100px;
    width: 150px; 
}

.main-nav {
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    padding-bottom: 5px;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

/* Styles pour le sous-menu déroulant (dropdown) */
.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-weight: 400;
}

.dropdown-menu a:hover {
    color: var(--primary-color);
    background-color: var(--light-gray);
}

.nav-links .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links .dropdown .fas {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-links .dropdown:hover .fas {
    transform: rotate(180deg);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 4px 0;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu {
    display: none;
}

/* Section Hero avec slider vidéo */
.hero-video-slider {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.slider {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    width: 100%;
    padding: 0 20px;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Sections générales */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.bg-light-gray {
    background-color: var(--light-gray);
}

/* Section À propos */
/* Nouveaux styles pour la section À propos basés sur l'image */
#about.section {
    padding: 80px 0;
    background-color: var(--light-gray); /* Fond clair */
    color: var(--text-color);
    text-shadow: none; /* Supprime l'ombre du texte */
}

#about::before {
    display: none; /* Supprime l'overlay si vous l'aviez défini précédemment */
}

#about .container {
    text-align: left; /* Réinitialise l'alignement du texte */
}

#about .section-title {
    color: var(--gray); /* Couleur du titre comme dans l'image */
    text-align: left;
    margin-left: 20px; /* Aligner avec le texte de gauche */
    margin-bottom: 3rem;
}

#about .section-title::after {
    margin: 15px 0 0 0; /* Aligner le soulignement à gauche */
}

.about-content-new {
    display: flex;
    flex-wrap: wrap; /* Permet le retour à la ligne sur petits écrans */
    align-items: center;
    gap: 40px; /* Espacement entre le texte et l'image */
    justify-content: center;
}

.about-text-new {
    flex: 1; /* Prend l'espace disponible */
    min-width: 300px; /* Largeur minimale sur petits écrans */
    max-width: 50%; /* Limite la largeur du texte pour qu'il ne soit pas trop étendu */
    padding-left: 20px; /* Espacement à gauche */
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text-new p {
    margin-bottom: 1.5rem;
}

.about-image-new {
    flex: 0 0 auto; /* Ne s'étire pas, garde sa taille définie */
    width: 400px; /* Largeur fixe pour l'image comme dans l'exemple */
    height: 500px; /* Hauteur fixe pour l'image */
    position: relative;
    background-color: var(--secondary-color); /* Couleur de fond pour la forme arrondie */
    border-radius: 40% 10% 40% 10% / 10% 40% 10% 40%; /* Forme arrondie complexe */
    overflow: hidden; /* Cache les débordements de l'image */
    box-shadow: var(--shadow-xl); /* Ombre portée */
}

.about-image-new img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que l'image couvre toute la zone sans déformation */
    display: block;
    border-radius: inherit; /* Hérite la forme arrondie du conteneur */
}

/* Responsive pour la nouvelle section À propos */
@media (max-width: 992px) {
    .about-content-new {
        flex-direction: column; /* Empile les éléments sur petits écrans */
        text-align: center;
    }

    .about-text-new {
        max-width: 100%; /* Prend toute la largeur */
        padding: 0 20px;
        text-align: center;
    }

    #about .section-title {
        text-align: center;
        margin-left: 0;
    }

    #about .section-title::after {
        margin: 15px auto 0; /* Centre le soulignement */
    }

    .about-image-new {
        width: 300px; /* Ajuste la taille de l'image sur les écrans plus petits */
        height: 380px;
    }
}

@media (max-width: 768px) {
    .about-image-new {
        width: 250px;
        height: 320px;
    }
}


/* Section Cours */
/* Styles pour la nouvelle section Cours */
.courses-new-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* Permet aux cartes de s'aligner sur plusieurs lignes sur les petits écrans */
}

.course-new-card {
    flex: 1;
    min-width: 250px;
    max-width: 25%; /* Force les 4 cartes à être sur une seule ligne sur un grand écran */
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.course-new-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.course-image-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.course-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-new-card:hover .course-image-wrapper img {
    transform: scale(1.05);
}

.course-new-info {
    padding: 25px;
}

.course-new-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.primary-color-text {
    color: var(--primary-color);
}

/* Responsive pour la nouvelle grille de cours */
@media (max-width: 992px) {
    .courses-new-grid {
        justify-content: center;
    }

    .course-new-card {
        max-width: 45%;
    }
}

@media (max-width: 768px) {
    .course-new-card {
        max-width: 100%;
    }
}

/* Section Professeurs */
/* Nouveaux styles pour la section Professeurs */
.teachers-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.teachers-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: scroll;
    scroll-behavior: smooth;
    gap: 25px;
    padding: 20px 0;
}

/* Masquer la barre de défilement */
.teachers-slider::-webkit-scrollbar {
    display: none;
}

.teachers-slider {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.teacher-card-new {
    flex: 0 0 auto;
    width: 250px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    text-align: center;
}

.teacher-card-new:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.teacher-card-new img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.teacher-info {
    padding: 20px;
}

.teacher-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.teacher-info p {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 500;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    z-index: 100;
    transition: background-color 0.3s ease;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 1;
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

/* Responsive pour le slider */
@media (max-width: 992px) {
    .teachers-slider {
        justify-content: flex-start;
    }
    .slider-btn {
        display: none; /* Cache les boutons sur les petits écrans pour un défilement manuel */
    }
}

/* Section Planning */
/* Styles pour la nouvelle section Planning */
.planning-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.planning-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.planning-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.planning-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Styles pour la modale (pop-up) */
.modal {
    display: none; /* Cache par défaut */
    position: fixed; /* Reste en place */
    z-index: 1000; /* Se place au-dessus de tout le reste */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Permet le défilement si l'image est trop grande */
    background-color: rgba(0, 0, 0, 0.9); /* Fond semi-transparent */
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.visible {
    display: flex;
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
}


/* Responsive pour la galerie du planning */
@media (max-width: 992px) {
    .planning-image-wrapper {
        max-width: 45%; /* Affiche deux images par ligne sur tablettes */
    }
}

@media (max-width: 576px) {
    .planning-image-wrapper {
        max-width: 100%; /* Affiche une seule image par ligne sur mobiles */
    }
}

/* Section Tarifs */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.price-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.price-card:hover {
    transform: translateY(-10px);
}

.price-card.popular {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.price-card.popular h3,
.price-card.popular .price-value {
    color: var(--white);
}

.price-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.price-card .price-value {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--dark-gray);
}

.price-card ul {
    margin-bottom: 30px;
    text-align: left;
}

.price-card ul li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-card.popular ul li {
    color: var(--light-text-color);
}

.price-card i {
    color: var(--accent-color);
}

.price-card.popular i {
    color: var(--white);
}

/* Section Témoignages */
.testimonial-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: rgba(245, 154, 140, 0.2);
    position: absolute;
    top: -20px;
    left: -20px;
    z-index: 0;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* Section Événements */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.event-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
}

.event-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.event-info {
    padding: 25px;
}

.event-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.event-info p {
    color: var(--text-color);
}

/* Section Contact */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, .contact-form-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
    color: var(--accent-color);
}

.contact-form-container {
    flex: 2;
    min-width: 300px;
}

.contact-form-container h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
}

.map-container {
    margin-top: 4rem;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.map-container h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.map-container iframe {
    width: 100%;
    height: 450px;
}

/* Footer */
.main-footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 20px;
    font-size: 1rem;
}

.main-footer h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.main-footer p,
.main-footer li {
    color: var(--light-text-color);
    line-height: 1.8;
}

.main-footer a {
    color: var(--light-text-color);
    transition: color 0.3s ease;
}

.main-footer a:hover {
    color: var(--accent-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    padding: 0 10px;
}

.footer-about .logo-image {
    height: 100px;
    width: 150px;
    margin-bottom: 15px;
}

.footer-about p {
    margin-bottom: 20px;
}

.footer-about .social-links {
    display: flex;
    gap: 20px;
}

.footer-about .social-links a {
    font-size: 1.5rem;
    color: var(--light-text-color);
}

.footer-about .social-links a:hover {
    transform: scale(1.2);
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* Animations au défilement */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1000;
    }

    .mobile-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100%;
        background-color: var(--white);
        padding: 80px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 998;
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mobile-nav-link {
        display: block;
        padding: 15px 0;
        font-size: 1.2rem;
        font-weight: 600;
        border-bottom: 1px solid var(--light-gray);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-content,
    .contact-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        order: -1;
    }

    .about-text,
    .contact-info,
    .contact-form-container {
        text-align: left;
    }
}