

/* scroll reveal */

.reveal{
    opacity:0;
    transform:translateY(30px);
    animation:revealUp .8s ease forwards;
}

@keyframes revealUp{
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.category-grid .reveal:nth-child(1){ animation-delay:.05s; }
.category-grid .reveal:nth-child(2){ animation-delay:.1s; }
.category-grid .reveal:nth-child(3){ animation-delay:.15s; }
.category-grid .reveal:nth-child(4){ animation-delay:.2s; }
.category-grid .reveal:nth-child(5){ animation-delay:.25s; }
.category-grid .reveal:nth-child(6){ animation-delay:.3s; }
.category-grid .reveal:nth-child(7){ animation-delay:.35s; }
.category-grid .reveal:nth-child(8){ animation-delay:.4s; }

.courses-grid .reveal:nth-child(1){ animation-delay:.05s; }
.courses-grid .reveal:nth-child(2){ animation-delay:.15s; }
.courses-grid .reveal:nth-child(3){ animation-delay:.25s; }
.courses-grid .reveal:nth-child(4){ animation-delay:.35s; }
.courses-grid .reveal:nth-child(5){ animation-delay:.45s; }
.courses-grid .reveal:nth-child(6){ animation-delay:.55s; }

.reviews-grid .reveal:nth-child(2){ animation-delay:.15s; }
.reviews-grid .reveal:nth-child(3){ animation-delay:.3s; }

.hero-features-grid .reveal:nth-child(2){ animation-delay:.15s; }
.hero-features-grid .reveal:nth-child(3){ animation-delay:.3s; }

.learning-statistics .reveal:nth-child(2){ animation-delay:.1s; }
.learning-statistics .reveal:nth-child(3){ animation-delay:.2s; }
.learning-statistics .reveal:nth-child(4){ animation-delay:.3s; }


/* hero */

.home-hero{
    position:relative;
    width:100%;
    min-height:90vh;
    
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}

.hero-slider{
    position:absolute;
    inset:0;
}

.hero-slide{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    opacity:0;
    transition:opacity 1.2s ease;
    animation:heroZoom 12s linear infinite;
}

.hero-slide.active{
    opacity:1;
}

@keyframes heroZoom{
    from{ transform:scale(1); }
    to{ transform:scale(1.12); }
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(rgba(0,0,0,.3),rgba(0,0,0,.3));
    z-index:1;
}

.home-hero-content{
    position:relative;
    z-index:5;
    width:min(900px,90%);
    text-align:center;
    color:var(--white);
}

.home-hero-content .subtitle,
.newsletter .subtitle,
.featured-content .subtitle{
    display:inline-flex;
    align-items:center;
    gap:10px;
    background:rgba(255,255,255,.15);
    backdrop-filter:blur(10px);
    padding:12px 22px;
    border-radius:50px;
    margin-bottom:30px;
    font-weight:600;
    color:var(--white);
}

.home-hero-content .subtitle i{
    color:#FFD54A;
}

.home-hero h1{
    font-size:clamp(32px,5.5vw,68px);
    line-height:1.15;
    margin-bottom:20px;
    font-weight:800;
    color: var(--white);
}

.home-hero-content p{
    max-width:700px;
    margin:auto;
    font-size:clamp(15px,1.8vw,19px);
    line-height:1.8;
    color:rgba(255,255,255,.85);
}


/* search bar */

.home-search{
    width:100%;
    max-width:700px;
    margin:40px auto;
    display:flex;
    align-items:center;
    background:var(--white);
    border-radius:30px;
    overflow:hidden;
   
}

.home-search i{
    padding-left:25px;
    color:var(--gray);
    font-size:18px;
}

.home-search input{
    flex:1;
    border:none;
    outline:none;
    padding:22px;
    font-size:17px;
    color:var(--text);
    background:none;
    font-family:inherit;
}

.home-search button{
    border:4px solid var(--primary);
    background:var(--primary);
    color:var(--white);
    padding:22px 40px;
    cursor:pointer;
    font-weight:600;
    font-family:inherit;
    transition:var(--transition);
}

.home-search button:hover{
    background:var(--secondary);
    border:4px solid var(--secondary);
}


/* hero buttons */

.home-hero-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
}

.btnD,
.btnC{
    padding:18px 36px;
    border-radius:50px;
    font-weight:700;
    text-decoration:none;
    transition:var(--transition);
}

.btnD{
    background:var(--secondary);
    color:var(--white);
}

.btnD:hover{
    transform:translateY(-5px);
    background: var(--primary);
}

.btnC{
  
     background:var(--white);
        color:var(--text);
}

.btnC:hover{
     transform:translateY(-5px);
    background: var(--primary);
}

@media(max-width:900px){
    .home-hero h1{
        font-size:clamp(32px,7vw,48px);
    }
}

@media(max-width:768px){
    .home-search{
        flex-direction:column;
        border-radius:25px;
    }

    .home-search i{
        display:none;
    }

    .home-search input,
    .home-search button{
        width:100%;
    }

    .home-hero-buttons{
        flex-direction:column;
    }
}


/* shared section intro used across categories, courses, team, gallery, faq... */

section:not(.home-hero){
    scroll-margin-top:90px;
}

.section-intro{
    text-align:center;
    max-width:720px;
    margin:0 auto clamp(40px,5vw,60px);
}

.section-intro h4,
.section-intro .subtitle{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:12px 25px;
    border-radius:50px;
    background:var(--gray-soft);
    color:var(--primary);
    font-weight:700;
    font-size:13px;
    letter-spacing:.5px;
    margin-bottom:18px;
}

.section-intro h2{
    font-size:clamp(26px,3vw,34px);
    font-weight:800;
    color:var(--primary);
    line-height:1.3;
    margin-bottom:14px;
}

.section-intro p,
.section-intro .description{
    color:var(--text-light);
    line-height:1.8;
    font-size:15px;
}


/* even section rhythm */

.categories-section,
.popular-courses,
.hero-features,
.events-section,
.galerie-section,
.reviews-section,
.faq-section,
.learning-statistics,
.newsletter{
    padding-block:clamp(80px,9vw,130px);
    padding-inline:clamp(20px,4vw,90px);
}

.choisir{
    padding:clamp(80px,9vw,130px) clamp(20px,4vw,90px);
}

.category-card,
.course-card,
.event-card,
.hero-feature-card,
.review-card,
.faq-item,
.stat-box{
    position:relative;
    overflow:hidden;
    will-change:transform;
}


/* horizontal scroll for card rows on small screens */

@media (max-width:768px){
    .courses-grid,
    .events-grid,
    .equipe-items,
    .reviews-grid{
        display:flex;
        overflow-x:auto;
        gap:20px;
        padding:6px 2px 16px;
        scroll-snap-type:x proximity;
    }

    .courses-grid::-webkit-scrollbar,
    .events-grid::-webkit-scrollbar,
    .equipe-items::-webkit-scrollbar,
    .reviews-grid::-webkit-scrollbar{
        display:none;
    }

    .courses-grid .course-card,
    .events-grid .event-card,
    .reviews-grid .review-card{
        flex:0 0 min(86vw,320px);
        max-width:min(86vw,320px);
        scroll-snap-align:start;
    }

    .equipe-items .membre-item{
        flex:0 0 min(78vw,280px);
        max-width:min(78vw,280px);
        scroll-snap-align:start;
    }
}


/* categories */

.categories-section{
    background:var(--bg-section);
}

.category-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
}

.category-card{
    display:flex;
    flex-direction:column;

    background:var(--white);
    border:1px solid var(--border);
    border-radius:15px;

    overflow:hidden;
    text-decoration:none;

    box-shadow:var(--shadow-sm);
    transition:var(--transition);
}

.category-card:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadow-lg);
    border-color:var(--border);
}

.category-image{
    position:relative;
    height:200px;
    overflow:hidden;
}

.category-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .6s ease;
}

.category-card:hover .category-image img{
    transform:scale(1.12);
}

.category-image::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to top, rgba(16,36,75,.55) 0%, rgba(16,36,75,0) 60%);
}

.category-icon{
    position:absolute;
    left:20px;
    bottom:5px;

    width:52px;
    height:52px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:15px;
    border:3px solid var(--white);

    background:var(--primary);
    color:var(--white);

    font-size:19px;

    box-shadow:var(--shadow-md);
    transition:var(--transition);

    z-index:2;
}

.category-card:hover .category-icon{
    background:var(--secondary);
    transform:rotate(-8deg) scale(1.05);
}

.category-body{
    padding:34px 20px 22px;
}

.category-body h3{
    font-size:17px;
    font-weight:700;
    color:var(--text);
    margin-bottom:10px;
    transition:var(--transition);
}

.category-card:hover .category-body h3{
    color:var(--primary);
}

.category-link{
    display:inline-flex;
    align-items:center;
    gap:8px;

    font-size:13px;
    font-weight:600;
    color:var(--text-light);

    transition:var(--transition);
}

.category-card:hover .category-link{
    color:var(--primary);
    gap:12px;
}

@media(max-width:1200px){
    .category-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:768px){
    .category-grid{
        grid-template-columns:1fr 1fr;
        gap:16px;
    }
}

@media(max-width:480px){
    .category-grid{
        grid-template-columns:1fr;
    }
}


/* why choose us — intro band with photo */

.choisir{
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    gap:clamp(30px,5vw,60px);
    background:linear-gradient(180deg,var(--white) 0%,var(--bg-section) 100%);
    overflow:hidden;
}

.choisir img{
    width:100%;
    height:520px;
    max-height:66vh;
    object-fit:cover;
    border-radius:28px;
    box-shadow:var(--shadow-lg);
    animation:slideInLeft .7s ease-out;
}

.propos-contain{
    max-width:620px;
    display:flex;
    flex-direction:column;
    gap:10px;
    animation:slideInRight .7s ease-out;
}

.propos-contain h4{
    color:var(--secondary);
    text-transform:uppercase;
    letter-spacing:.2em;
    font-size:14px;
    font-weight:700;
}

.propos-contain h2{
    color:var(--primary);
    font-size:clamp(28px,2.4vw,39px);
    line-height:1.2;
    margin:4px 0 4px;
}

.propos-contain .description{
    color:var(--text-light);
    font-size:16px;
    line-height:1.8;
    margin-bottom:6px;
}

.propos-contain .liste{
    display:grid;
    gap:12px;
    list-style:none;
}

.propos-contain .liste li{
    display:flex;
    align-items:flex-start;
    gap:10px;
    color:var(--text);
    font-size:15.5px;
    line-height:1.6;
    padding:10px 0;
    border-bottom:1px solid var(--border);
    opacity:0;
    animation:slideInUp .5s ease-out forwards;
}

.propos-contain .liste li::before{
    content:"\f00c";
    font-family:"Font Awesome 6 Free";
    font-weight:900;
    color:var(--secondary);
    margin-top:2px;
}

.propos-contain .liste li:nth-child(1){ animation-delay:.2s; }
.propos-contain .liste li:nth-child(2){ animation-delay:.3s; }
.propos-contain .liste li:nth-child(3){ animation-delay:.4s; }
.propos-contain .liste li:nth-child(4){ animation-delay:.5s; }

.propos-contain .savoir{
    align-self:flex-start;
    margin-top:12px;
}

@keyframes slideInLeft{
    from{ opacity:0; transform:translateX(-50px); }
    to{ opacity:1; transform:translateX(0); }
}

@keyframes slideInRight{
    from{ opacity:0; transform:translateX(50px); }
    to{ opacity:1; transform:translateX(0); }
}

@keyframes slideInUp{
    from{ opacity:0; transform:translateY(20px); }
    to{ opacity:1; transform:translateY(0); }
}

.savoir{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:15px 34px;
    border-radius:12px;
    border:2px solid var(--primary);
    color:var(--primary);
    font-weight:700;
    font-size:14px;
    text-decoration:none;
    transition:var(--transition);
}

.savoir:hover{
    background:var(--primary);
    color:var(--white);
    transform:translateY(-3px);
    box-shadow:var(--shadow-md);
}

@media (max-width:992px){
    .choisir{
        grid-template-columns:1fr;
    }

    .choisir img{
        height:min(48vh,360px);
    }

    .propos-contain{
        max-width:100%;
    }
}

@media (max-width:600px){
    .choisir img{
        height:min(38vh,280px);
    }
}


/* popular courses */

.popular-courses{
    background:var(--bg);
}

.courses-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:32px;
    margin-bottom:50px;
}

.course-card{
    background:var(--white);
    border:1px solid var(--border);
    border-radius:20px;
    overflow:hidden;
    box-shadow:var(--shadow-sm);
    transition:var(--transition);
    display:flex;
    flex-direction:column;
}

.course-card:hover{
    transform:translateY(-10px);
    box-shadow:var(--shadow-lg);
}

.course-image{
    position:relative;
    overflow:hidden;
}

.course-image img{
    width:100%;
    height:210px;
    object-fit:cover;
    transition:.5s;
}

.course-card:hover .course-image img{
    transform:scale(1.08);
}

.course-category{
    position:absolute;
    top:16px;
    left:16px;
    background:var(--white);
    color:var(--primary);
    font-size:12px;
    font-weight:700;
    padding:6px 16px;
    border-radius:40px;
    box-shadow:var(--shadow-sm);
}

.instructor{
    display:flex;
    align-items:center;
    gap:14px;
    padding:20px 20px 0;
}

.instructor img{
    width:42px;
    height:42px;
    min-width:42px;
    border-radius:50%;
    object-fit:cover;
}

.instructor h4{
    font-size:15px;
    margin-bottom:2px;
    color:var(--text);
}

.instructor span{
    font-size:13px;
    color:var(--text-light);
}

.course-content{
    padding:16px 20px 24px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.course-content h3{
    font-size:18px;
    line-height:1.4;
    margin-bottom:10px;
    color:var(--text);
    transition:.3s;
}

.course-card:hover .course-content h3{
    color:var(--primary);
}

.rating{
    display:flex;
    align-items:center;
    gap:8px;
    color:#FFC107;
    font-size:14px;
    margin-bottom:14px;
}

.rating span{
    color:var(--text-light);
    font-size:13px;
}

.course-info{
    display:flex;
    align-items:center;
    gap:18px;
    padding:14px 0;
    border-top:1px solid var(--border);
    border-bottom:1px solid var(--border);
    margin-bottom:16px;
    font-size:13px;
    color:var(--text-light);
}

.course-info span{
    display:flex;
    align-items:center;
    gap:8px;
}

.course-info i{
    color:var(--primary);
}

.price{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:18px;
}

.price del{
    color:var(--gray);
    font-size:15px;
}

.price strong{
    color:var(--primary);
    font-size:22px;
    font-weight:800;
}

.course-content .button{
    margin-top:auto;
}

.course-content .button a{
    display:block;
    text-align:center;
    background:var(--primary);
    color:var(--white);
    padding:14px;
    border-radius:12px;
    font-weight:700;
    font-size:14px;
    text-decoration:none;
    transition:var(--transition);
}

.course-content .button a:hover{
    background:var(--secondary);
    transform:translateY(-3px);
    box-shadow:var(--shadow-md);
}

.section-cta{
    text-align:center;
}

@media(max-width:1200px){
    .courses-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:768px){
    .courses-grid{
        grid-template-columns:1fr;
    }
}


/* why choose us — feature cards */

.hero-features{
    background:var(--bg-section);
}

.hero-features-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.hero-feature-card{
    background:var(--white);
    border:1px solid var(--border);
    border-radius:20px;
    padding:36px;
    transition:var(--transition);
    box-shadow:var(--shadow-sm);
}

.hero-feature-card:hover{
    transform:translateY(-10px);
    box-shadow:var(--shadow-lg);
}

.hero-feature-card>i{
    width:60px;
    height:60px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,var(--primary),var(--primary-light));
    color:var(--white);
    font-size:24px;
    margin-bottom:22px;
}

.hero-feature-card h3{
    font-size:13px;
    font-weight:700;
    letter-spacing:.5px;
    text-transform:uppercase;
    color:var(--secondary);
    margin-bottom:8px;
}

.hero-feature-card h2{
    font-size:22px;
    color:var(--primary);
    margin-bottom:14px;
}

.hero-feature-card p{
    color:var(--text-light);
    line-height:1.8;
    font-size:14px;
    margin-bottom:20px;
}

.hero-feature-card a{
    color:var(--primary);
    font-weight:700;
    font-size:14px;
    text-decoration:none;
}

.hero-feature-card a:hover{
    color:var(--secondary);
    text-decoration:underline;
}

@media(max-width:1200px){
    .hero-features-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:768px){
    .hero-features-grid{
        grid-template-columns:1fr;
    }
}


/* featured course banner */

.featured-course{
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    gap:60px;
    margin:0 8%;
    padding:60px;
    border-radius:30px;
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    box-shadow:var(--shadow-lg);
}

.featured-image{
    border-radius:20px;
    overflow:hidden;
    box-shadow:var(--shadow-lg);
}

.featured-image img{
    width:100%;
    height:100%;
    max-height:420px;
    object-fit:cover;
    display:block;
    transition:.6s;
}

.featured-image:hover img{
    transform:scale(1.06);
}

.featured-content h2{
    font-size:clamp(26px,3.4vw,36px);
    font-weight:800;
    line-height:1.3;
    color:var(--white);
    margin-bottom:18px;
}

.featured-content>p{
    color:rgba(255,255,255,.75);
    line-height:1.9;
    font-size:15px;
    margin-bottom:25px;
}

.featured-info{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    margin-bottom:30px;
}

.featured-info div{
    display:flex;
    align-items:center;
    gap:10px;
    background:rgba(255,255,255,.1);
    color:var(--white);
    padding:12px 20px;
    border-radius:12px;
    font-size:14px;
    font-weight:600;
}

.featured-info i{
    color:var(--secondary-light);
}

.btn-cta{
    display:inline-flex;
    align-items:center;
    gap:10px;
    background:var(--white);
    color:var(--primary);
    padding:16px 34px;
    border-radius:12px;
    font-weight:700;
    font-size:15px;
    text-decoration:none;
    transition:var(--transition);
}

.btn-cta:hover{
    background:var(--secondary);
    color:var(--white);
    transform:translateY(-4px);
    box-shadow:var(--shadow-lg);
}

@media(max-width:1200px){
    .featured-course{
        grid-template-columns:1fr;
        padding:40px;
    }

    .featured-image img{
        max-height:320px;
    }
}

@media(max-width:768px){
    .featured-course{
        margin:0 20px;
        padding:30px 22px;
    }
}


/* team */

.equipe{
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:clamp(80px,9vw,130px) clamp(20px,4vw,90px);
    background:var(--bg-section);
}

.equipe-items{
    width:100%;
    max-width:1300px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:35px;
}

.membre-item{
    border-radius:24px;
    overflow:hidden;
    position:relative;
    text-align:center;
    transition:.4s;
    opacity:0;
    animation:teamCardIn .8s ease forwards;
}

.membre-item:hover{
    transform:translateY(-12px);
}

.membre-item img{
    width:100%;
    height:330px;
    object-fit:cover;
    transition:.5s;
}

.membre-item:hover img{
    transform:scale(1.08);
}

.membre-item::before{
    content:"";
    position:absolute;
    top:0;
    left:-100%;
    width:70%;
    height:100%;
    background:linear-gradient(120deg,transparent,rgba(255,255,255,.5),transparent);
    transition:.6s;
    z-index:2;
}


.membre-item h3{
    color:var(--primary);
    font-size:22px;
    font-weight:700;
    margin:20px 0 6px;
}

.membre-item p{
    color:var(--text-light);
    font-size:15px;
    margin-bottom:22px;
}

@keyframes teamCardIn{
    from{ opacity:0; transform:translateY(50px); }
    to{ opacity:1; transform:translateY(0); }
}

.membre-item:nth-child(1){ animation-delay:.1s; }
.membre-item:nth-child(2){ animation-delay:.2s; }
.membre-item:nth-child(3){ animation-delay:.3s; }
.membre-item:nth-child(4){ animation-delay:.4s; }
.membre-item:nth-child(5){ animation-delay:.5s; }
.membre-item:nth-child(6){ animation-delay:.6s; }

@media(max-width:1100px){
    .equipe-items{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:700px){
    .equipe-items{
        grid-template-columns:1fr;
        gap:25px;
    }

    .membre-item img{
        height:280px;
    }
}


/* events */

.events-section{
    background:var(--bg-section);
}

.events-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:35px;
}

.event-card{
    background:var(--white);
    border:1px solid var(--border);
    border-radius:22px;
    overflow:hidden;
    box-shadow:var(--shadow-md);
    transition:.45s;
}

.event-card:hover{
    transform:translateY(-12px);
    box-shadow:var(--shadow-lg);
}

.event-image{
    position:relative;
    overflow:hidden;
}

.event-image img{
    width:100%;
    height:260px;
    object-fit:cover;
    transition:.6s;
}

.event-card:hover img{
    transform:scale(1.1);
}

.event-date{
    position:absolute;
    top:18px;
    left:18px;
    width:70px;
    height:78px;
    background:var(--primary);
    color:var(--white);
    border-radius:18px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    font-weight:bold;
}

.event-date span{
    font-size:28px;
}

.event-date small{
    font-size:14px;
}

.event-category{
    position:absolute;
    bottom:18px;
    left:18px;
    background:var(--white);
    color:var(--primary);
    padding:8px 18px;
    border-radius:30px;
    font-size:13px;
    font-weight:700;
}

.event-content{
    padding:28px;
}

.event-meta{
    display:flex;
    justify-content:space-between;
    margin-bottom:18px;
    font-size:14px;
    color:var(--gray);
}

.event-meta span{
    display:flex;
    align-items:center;
    gap:8px;
}

.event-meta i{
    color:var(--primary);
}

.event-content h3{
    font-size:22px;
    color:var(--primary);
    margin-bottom:15px;
    line-height:1.4;
}

.event-content p{
    color:var(--text-light);
    line-height:1.8;
    margin-bottom:25px;
}

.event-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.speaker{
    display:flex;
    align-items:center;
    gap:12px;
}

.speaker img{
    width:45px;
    height:45px;
    border-radius:50%;
    object-fit:cover;
}

.speaker span{
    font-weight:600;
    color:var(--text);
}

.event-footer a{
    text-decoration:none;
    background:var(--primary);
    color:var(--white);
    padding:12px 22px;
    border-radius:10px;
    font-size:14px;
    transition:.35s;
}

.event-footer a:hover{
    background:var(--secondary);
}

@media(max-width:1100px){
    .events-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:768px){
    .events-grid{
        grid-template-columns:1fr;
    }

    .event-image img{
        height:220px;
    }
}


/* gallery */

.galerie-section{
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:clamp(80px,9vw,130px) clamp(20px,4vw,90px);
    background:var(--white);
}

.gallery-grid{
    max-width:1300px;
    margin:auto;
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    grid-template-rows:260px 260px 260px;
    gap:22px;
}

.gallery-item:nth-child(1){
    grid-column:1;
    grid-row:1 / 3;
}

.gallery-item:nth-child(2){
    grid-column:2;
    grid-row:1;
}

.gallery-item:nth-child(3){
    grid-column:3;
    grid-row:1;
}

.gallery-item:nth-child(4){
    grid-column:2;
    grid-row:2;
}

.gallery-item:nth-child(6){
    grid-column:3;
    grid-row:2;
}

.gallery-item.wide{
    grid-column:1 / 4;
    grid-row:3;
}

.gallery-card{
    width:100%;
    height:100%;
    position:relative;
    overflow:hidden;
    border-radius:25px;
    background:var(--white);
    box-shadow:var(--shadow-sm);
    cursor:pointer;
    transition:.5s;
}

.gallery-card:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadow-lg);
}

.gallery-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .8s cubic-bezier(.2,.8,.2,1);
}

.gallery-card:hover img{
    transform:scale(1.12);
}

.gallery-overlay{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:30px;
    color:var(--white);
    background:linear-gradient(to top,rgba(0,0,0,.85),transparent 70%);
    opacity:0;
    transition:.5s;
}

.gallery-card:hover .gallery-overlay{
    opacity:1;
}

.gallery-overlay span{
    color:var(--secondary);
    font-size:12px;
    letter-spacing:2px;
    font-weight:700;
    margin-bottom:10px;
    transform:translateY(20px);
    transition:.4s;
}

.gallery-overlay h3{
    color:var(--white);
    font-size:24px;
    margin:0 0 10px;
    transform:translateY(20px);
    transition:.4s;
}

.gallery-overlay p{
    color:#eee;
    line-height:1.6;
    margin:0;
    transform:translateY(20px);
    transition:.4s;
}

.gallery-card:hover .gallery-overlay span{ transition-delay:.1s; }
.gallery-card:hover .gallery-overlay h3{ transition-delay:.2s; }
.gallery-card:hover .gallery-overlay p{ transition-delay:.3s; }

.gallery-card:hover .gallery-overlay span,
.gallery-card:hover .gallery-overlay h3,
.gallery-card:hover .gallery-overlay p{
    transform:translateY(0);
}

@media(max-width:1100px){
    .gallery-grid{
        grid-template-columns:repeat(3,1fr);
        grid-template-rows:none;
        grid-auto-rows:230px;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(3){
        grid-column:span 2;
    }

    .gallery-item.wide{
        grid-column:1 / 4;
    }
}

@media(max-width:850px){
    .gallery-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(3),
    .gallery-item.wide{
        grid-column:span 2;
        grid-row:auto;
    }
}

@media(max-width:600px){
    .gallery-grid{
        grid-template-columns:1fr;
        grid-auto-rows:260px;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(3),
    .gallery-item.wide{
        grid-column:1;
    }

    .gallery-overlay{
        opacity:1;
        padding:20px;
        background:linear-gradient(to top,rgba(0,0,0,.85),transparent);
    }

    .gallery-overlay span,
    .gallery-overlay h3,
    .gallery-overlay p{
        transform:none;
    }

    .gallery-overlay h3{
        font-size:19px;
    }
}


/* statistics */

.learning-statistics{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
    background:var(--bg);
}

.stat-box{
    text-align:center;
    padding:42px 22px;
    background:var(--bg-section);
    border:1px solid var(--border);
    border-radius:20px;
    transition:var(--transition);
}

.stat-box:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadow-lg);
    background:var(--white);
}

.stat-box i{
    width:64px;
    height:64px;
    margin:0 auto 18px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,var(--primary),var(--primary-light));
    color:var(--white);
    font-size:26px;
}

.stat-box h2{
    font-size:36px;
    font-weight:800;
    color:var(--primary);
    margin-bottom:8px;
}

.stat-box p{
    color:var(--text-light);
    font-size:14px;
}

@media(max-width:992px){
    .learning-statistics{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:480px){
    .learning-statistics{
        grid-template-columns:1fr;
    }
}


/* testimonials */

.reviews-section{
    background:var(--bg-section);
}

.reviews-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.review-card{
    position:relative;
    text-align:center;
    background:var(--white);
    border:1px solid var(--border);
    border-radius:20px;
    padding:35px;
    box-shadow:var(--shadow-sm);
    transition:var(--transition);
    opacity:0;
    transform:translateY(40px);
    animation:revealUp .8s forwards;
}

.review-card:hover{
    transform:translateY(-10px);
    box-shadow:var(--shadow-lg);
}

.review-card::before{
    content:"\201C";
    position:absolute;
    top:10px;
    right:24px;
    font-size:80px;
    font-weight:800;
    color:rgba(16,36,75,.07);
    line-height:1;
}

.review-card img{
    width:75px;
    height:75px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid var(--white);
    box-shadow:var(--shadow-md);
    margin:0 auto 18px;
}

.review-card h3{
    font-size:19px;
    color:var(--primary);
    margin-bottom:10px;
}

.review-card .stars{
    color:#FFC107;
    font-size:16px;
    margin-bottom:16px;
}

.review-card p{
    color:var(--text-light);
    line-height:1.9;
    font-size:14px;
}

@media(max-width:1200px){
    .reviews-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:768px){
    .reviews-grid{
        grid-template-columns:1fr;
    }
}


/* faq */

.faq-section{
    display:flex;
    flex-direction:column;
    background:linear-gradient(180deg,var(--white) 0%,var(--bg-section) 100%);
}

.faq-container{
    max-width:950px;
    width:100%;
    margin:0 auto;
}

.faq-items{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.faq-item{
    background:var(--white);
    border:1px solid var(--border);
    border-radius:18px;
    overflow:hidden;
    box-shadow:var(--shadow-sm);
    transition:.35s ease;
}

.faq-item:hover{
    transform:translateY(-4px);
    box-shadow:var(--shadow-md);
}

.faq-item.active{
   
    box-shadow:var(--shadow-lg);
}

.faq-header{
    padding:22px 26px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    cursor:pointer;
}

.faq-header h3{
    color:var(--primary);
    font-size:clamp(16px,1.5vw,18px);
    margin:0;
}

.faq-header i{
    color:var(--primary);
    transition:.3s;
}

.faq-item.active .faq-header i{
    transform:rotate(180deg);
}

.faq-content{
    max-height:0;
    overflow:hidden;
    padding:0 26px;
    transition:.4s ease;
}

.faq-item.active .faq-content{
    padding:0 26px 24px;
    height: 10px;
    margin: 10px 0;
    justify-content: center;}

.faq-content p{
    color:var(--text-light);
    line-height:1.8;
    font-size:15px;
}


/* newsletter */

.newsletter{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:150px;
    margin:0 8% 100px;
    padding:60px 90px;
    border-radius:30px;
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    box-shadow:var(--shadow-lg);
}

.left{
    flex:1;
}

.left h2{
    color:var(--white);
    font-size:clamp(26px,3vw,34px);
    font-weight:800;
    line-height:1.2;
    margin-bottom:16px;
}

.left p{
    color:rgba(255,255,255,.75);
    font-size:15px;
    line-height:1.9;
}

.right{
    flex:0 0 320px;
}

.newsletter-form{
    display:flex;
    gap:10px;
}

.newsletter-form input{
    flex:1;
    height:52px;
    border:none;
    outline:none;
    border-radius:12px;
    background:var(--white);
    color:var(--text);
    padding:0 20px;
    font-size:15px;
    box-shadow:var(--shadow-sm);
    font-family:inherit;
}

.newsletter-form input::placeholder{
    color:var(--gray);
}

.newsletter-form input:focus{
    box-shadow:0 0 0 4px rgba(255,255,255,.15);
}

.newsletter-form button{
    height:52px;
    border:none;
    padding:0 26px;
    border-radius:12px;
    background:var(--white);
    color:var(--primary);
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    transition:var(--transition);
    box-shadow:var(--shadow-sm);
    font-family:inherit;
}

.newsletter-form button:hover{
    transform:translateY(-4px);
    background:var(--secondary);
    color:var(--white);
    box-shadow:var(--shadow-md);
}

@media(max-width:1200px){
    .newsletter{
        gap:60px;
        padding:50px 60px;
    }
}

@media(max-width:992px){
    .newsletter{
        flex-direction:column;
        text-align:center;
        padding:50px 35px;
        gap:35px;
    }

    .right{
        width:100%;
        flex:none;
    }

    .newsletter-form{
        max-width:500px;
        margin:auto;
    }
}

@media(max-width:768px){
    .newsletter{
        margin:0 20px 70px;
        padding:40px 24px;
    }
}


/* call to action band */

.rejoindre{
   
  
    padding:70px 60px;
   
    background:var(--primary-dark);
    position:relative;
    overflow:hidden;
    text-align:center;
}

.rejoindre::before{
    content:"";
    position:absolute;
    width:280px;
    height:280px;
    border-radius:50%;
    background:rgba(16,36,75,.18);
    top:-100px;
    right:-60px;
}

.rejoindre-content{
    position:relative;
    z-index:2;
}

.rejoindre-intro h2{
    font-size:clamp(26px,3vw,34px);
    font-weight:800;
    color:var(--white);
    max-width:650px;
    margin:0 auto 16px;
    line-height:1.3;
}

.rejoindre-intro p{
    color:rgba(255,255,255,.85);
    max-width:600px;
    margin:0 auto 36px;
    line-height:1.8;
    font-size:15px;
}

.rejoindre-actions{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:16px;
    margin-bottom:32px;
}

.btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:16px 30px;
    border-radius:12px;
    font-weight:700;
    font-size:14px;
    text-decoration:none;
    transition:var(--transition);
}

.btn-primary{
    background:var(--white);
    color:var(--primary);
}

.btn-primary:hover{
    transform:translateY(-4px);
    box-shadow:var(--shadow-lg);
}

.btn-secondary{
    background:var(--secondary);
    color:var(--white);
    border:2px solid var(--secondary);
}

.btn-secondary:hover{
  transform:translateY(-4px);
    box-shadow:var(--shadow-lg);
}

@media(max-width:992px){
    .rejoindre{
        padding:55px 35px;
    }
}

@media(max-width:768px){
    .rejoindre{
        margin:0 20px 70px;
        padding:45px 24px;
    }
}


/* back to top */

.back-to-top{
    position:fixed;
    bottom:30px;
    right:30px;
    width:48px;
    height:48px;
    border-radius:50%;
    background:var(--primary);
    color:var(--white);
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    box-shadow:var(--shadow-lg);
    transition:var(--transition);
    z-index:50;
}

.back-to-top:hover{
    background:var(--secondary);
    transform:translateY(-5px);
}

@media(max-width:480px){
    .back-to-top{
        width:42px;
        height:42px;
        bottom:20px;
        right:20px;
    }
}