.image-section {
    background-image: url('../images/tache.png');
    background-size: cover;
    height: 400px;
}

/* Media query pour responsive */
@media (max-width: 768px) {
    .image-section {
        order: -1;
        /* Met l'image en haut sur mobile */
        height: 250px;
        /* Ajuste la hauteur pour mobile si nécessaire */
    }

    .image-section img {
        max-width: 100%;
        height: auto;
    }

    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .mobile-main-header-text {
        display: block;
    }

    /* Cache le h1 sur mobile */
    .main-header-text {
        display: none;
    }
}

/* Presentation Section - Apple Inspired Style */
.presentation-section {
    background-color: #fbfbfd;
    /* Fond gris très clair style Apple */
    font-family: "Muli", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin-bottom: 60px;
    /* Espace avant la vidéo */
}

.presentation-section .section-title-underline.style-2,
.mvv-section .section-title-underline.style-2,
.coverflow-section .section-title-underline.style-2 {
    color: #000;
}

/* Le titre est maintenant géré par .section-title-underline, on supprime le style custom .section-title */

.presentation-section .section-desc {
    font-size: 1.1rem;
    /* Taille matchant 'Nos Cours récents' */
    color: #000;
    margin: 0 auto 40px;
    /* Ajuste la marge après la description */
    line-height: 1.7;
    /* Standard de la page */
    font-weight: 300;
    /* Standard de la page */
    text-align: justify;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mission-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    /* Assure le centrage du contenu */
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.mission-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.mission-icon.icon-orange {
    color: #f05a28;
}

.mission-icon.icon-blue {
    color: #00A651;
}

.mission-icon.icon-salmon {
    color: #ff9800;
}

.mission-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.mission-card p {
    font-size: 1.1rem;
    color: #000;
    line-height: 1.5;
}

/* Responsive pour Mission Section */
@media (max-width: 991px) {
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mission-section .section-title {
        font-size: 2.5rem;
    }

    .mission-section .section-desc {
        font-size: 1.2rem;
        padding: 0 20px;
    }
}

/* Navbar Custom Styling */
.social-wrap a {
    color: #00A651 !important;
    font-size: 1.2rem;
    padding-left: 15px;
    transition: .3s all ease;
}

.social-wrap a:hover {
    color: #ffc714 !important;
}

.site-navbar .site-navigation .site-menu {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.site-navbar .site-navigation .site-menu>li {
    display: flex;
    align-items: center;
}

.site-navbar .site-navigation .site-menu>li>a {
    padding: 10px 15px;
}

@media (max-width: 991.98px) {
    .site-navbar .container>.d-flex {
        justify-content: space-between !important;
        width: 100% !important;
    }

    .site-logo {
        flex: 0 0 auto;
    }

    .social-wrap {
        flex: 0 0 auto;
        margin-left: auto;
        display: flex;
        align-items: center;
    }

    .site-mobile-menu .site-nav-wrap {
        display: block !important;
        padding-top: 20px;
    }

    .site-mobile-menu .site-nav-wrap ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .site-mobile-menu .site-nav-wrap li {
        display: block !important;
    }

    .site-mobile-menu .site-nav-wrap li a {
        padding: 10px 20px !important;
        display: block !important;
        color: #000 !important;
        font-size: 1rem !important;
    }
}

/* Retire le background des boutons connexion et inscription */
a[href="login.html"],
.btn-primary {
    background-color: transparent !important;
    border: none !important;
    color: #000 !important;
}

a[href="login.html"]:hover,
.btn-primary:hover {
    background-color: transparent !important;
    color: #ffc714 !important;
}

/* Contact Page Redesign - Merged Layout */
.contact-main-wrap {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.contact-form-wrap {
    background: #fff;
    padding: 3rem;
    border-radius: 20px 0 0 20px;
    /* Only outer-left borders after column swap */
    height: 100%;
}

.contact-form-wrap .form-group label {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.contact-form-wrap .form-control {
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fbfbfd;
    height: auto;
}

.contact-form-wrap .form-control:focus {
    border-color: #ffc714;
    background: #fff;
    box-shadow: 0 5px 15px rgba(255, 199, 20, 0.1);
    outline: none;
}

.contact-form-wrap .btn-submit {
    background: #ffc714 !important;
    color: #000 !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 40px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none !important;
    display: inline-block;
    cursor: pointer;
}

.contact-form-wrap .btn-submit:hover {
    background: #000 !important;
    color: #ffc714 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.map-container {
    height: 100%;
    min-height: 500px;
    border-radius: 0;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Newsletter Section - Afrikacademy Style */
.newsletter-section {
    padding: 120px 0;
    /* Increase padding for separation */
    background: #f8f9fa;
    /* Light background to separate from white content */
    border-top: 1px solid #eee;
}

.newsletter-section .section-title-underline {
    margin-bottom: 30px;
}

.newsletter-section .section-title-underline span {
    color: #1a1a1a;
}

.newsletter-section .section-desc {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 1rem;
    /* Further reduced from 2rem */
    line-height: 1.7;
}

.newsletter-form-row {
    display: flex;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    gap: 10px;
    background: #fff;
    padding: 8px;
    border-radius: 50px;
    /* More modern pill shape */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.newsletter-form-row .form-control {
    flex: 1;
    height: 55px;
    border: none;
    padding: 0 30px;
    font-size: 1rem;
    background: transparent;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.newsletter-form-row .form-control:focus {
    outline: none;
    box-shadow: none;
}

.newsletter-form-row .btn-subscribe {
    background: #ffc714;
    /* Brand yellow */
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 0 40px;
    font-size: 1rem;
    font-weight: 800;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-form-row .btn-subscribe:hover {
    background: #000;
    color: #ffc714;
    transform: translateX(3px);
}

.privacy-text {
    color: #888;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

@media (max-width: 991px) {
    .contact-form-wrap {
        border-radius: 0;
    }

    .contact-main-wrap {
        border-radius: 0;
    }

    .newsletter-form-row {
        flex-direction: column;
        background: transparent;
        padding: 0;
        box-shadow: none;
        border: none;
        border-radius: 0;
    }

    .newsletter-form-row .form-control {
        background: #fff;
        border-radius: 10px;
        margin-bottom: 10px;
        height: 60px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        border: 1px solid #eee;
    }

    .newsletter-form-row .btn-subscribe {
        height: 60px;
        border-radius: 10px;
    }
}

/* News Section Styling */
.news-section {
    padding: 80px 0;
}

.news-item {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.news-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.news-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
    margin-bottom: 30px;
}

.news-images {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

/* Grid layout based on number of images */
.news-images.images-1 {
    grid-template-columns: 1fr;
}

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

.news-images.images-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {

    .news-images.images-2,
    .news-images.images-3 {
        grid-template-columns: 1fr;
    }
}

.news-img-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-img-wrap:hover img {
    transform: scale(1.05);
}

.news-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-img-wrap:hover .news-img-overlay {
    opacity: 1;
}

.news-img-overlay i {
    color: #fff;
    font-size: 2rem;
}