/* ===========================================================
   ÉCOLE RAFIKI
   style.css
   Version : 1.0
   =========================================================== */

/* ==========================
   VARIABLES
========================== */

:root{

    --primary:#0A4DA2;
    --primary-dark:#07326B;

    --secondary:#F4B400;
    --secondary-dark:#D69C00;

    --white:#FFFFFF;
    --light:#F8FAFC;
    --text:#1F2937;
    --muted:#6B7280;

    --radius:14px;

}

/* ==========================
   GÉNÉRAL
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:Arial,Helvetica,sans-serif;
    color:var(--text);
    background:#fff;
    overflow-x:hidden;

}

img{

    max-width:100%;
    display:block;

}

a{

    text-decoration:none;

}

.section{

    padding:100px 0;

}

/* ==========================
   NAVBAR
========================== */

.navbar{

    padding:18px 0;
    transition:.3s;

}

.navbar-brand{

    font-size:30px;
    font-weight:700;

}

.brand-primary{

    color:var(--primary-dark);

}

.brand-accent{

    color:var(--secondary);

}

.nav-link{

    font-weight:600;
    margin-left:10px;

}

.btn-erp{

    background:var(--primary);
    color:#fff;
    border-radius:10px;
    padding:12px 22px;

}

.btn-erp:hover{

    background:var(--primary-dark);
    color:#fff;

}

/* ==========================
   HERO
========================== */

.hero-section{

    position:relative;

    min-height:100vh;

    display:flex;

    align-items:center;

    background-image:

        linear-gradient(
            rgba(0,0,0,.55),
            rgba(0,0,0,.55)
        ),

        url("../images/hero.jpg");

    background-size:cover;

    background-position:center;

    background-repeat:no-repeat;

}

.hero-overlay{

    position:absolute;

    inset:0;

}

.hero-content{

    position:relative;
    z-index:2;

}

.hero-badge{

    display:inline-block;

    background:rgba(255,255,255,.18);

    color:#fff;

    padding:10px 20px;

    border-radius:40px;

    margin-bottom:20px;

    font-weight:bold;

}

.hero-title{

    color:#fff;

    font-size:68px;

    font-weight:800;

    line-height:1.1;

    margin-bottom:25px;

}

.hero-text{

    color:#fff;

    font-size:22px;

    max-width:650px;

    margin-bottom:35px;

}

.hero-actions{

    display:flex;

    gap:15px;

    flex-wrap:wrap;

}

.btn-primary-custom{

    background:var(--primary);

    color:#fff;

    padding:16px 30px;

    border-radius:10px;

    font-weight:bold;

}

.btn-primary-custom:hover{

    background:var(--primary-dark);

    color:#fff;

}

.btn-secondary-custom{

    background:var(--secondary);

    color:#222;

    padding:16px 30px;

    border-radius:10px;

    font-weight:bold;

}

.btn-secondary-custom:hover{

    background:var(--secondary-dark);

    color:#222;

}

/* ==========================
   RESPONSIVE
========================== */

@media(max-width:992px){

    .hero-title{

        font-size:48px;

    }

    .hero-text{

        font-size:18px;

    }

}

@media(max-width:768px){

    .hero-section{

        text-align:center;

    }

    .hero-actions{

        justify-content:center;

    }

    .hero-title{

        font-size:38px;

    }

    .hero-text{

        font-size:17px;

    }

}
/* ===========================================================
   SECTION NOS CYCLES
   =========================================================== */

.section-padding {
    padding: 100px 0;
}

.section-heading {
    max-width: 760px;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-heading h2 {
    margin-bottom: 18px;
    color: var(--primary-dark);
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
}

.section-heading p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.cycle-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    box-shadow: 0 14px 35px rgba(7, 50, 107, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cycle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(7, 50, 107, 0.18);
}

.cycle-image {
    position: relative;
    min-height: 270px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.cycle-image-maternelle {
    background-image:
        linear-gradient(
            rgba(7, 50, 107, 0.12),
            rgba(7, 50, 107, 0.12)
        ),
        url("../images/maternelle.jpg");
}

.cycle-image-primaire {
    background-image:
        linear-gradient(
            rgba(7, 50, 107, 0.12),
            rgba(7, 50, 107, 0.12)
        ),
        url("../images/primaire.jpg");
}

.cycle-image-secondaire {
    background-image:
        linear-gradient(
            rgba(7, 50, 107, 0.12),
            rgba(7, 50, 107, 0.12)
        ),
        url("../images/secondaire.jpg");
}

.cycle-icon {
    position: absolute;
    right: 22px;
    bottom: -28px;
    display: grid;
    width: 58px;
    height: 58px;
    color: #ffffff;
    background: var(--primary);
    border: 5px solid #ffffff;
    border-radius: 50%;
    font-size: 22px;
    place-items: center;
}

.cycle-content {
    padding: 38px 28px 30px;
}

.cycle-content h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
    font-size: 28px;
    font-weight: 800;
}

.cycle-content p {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.card-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--primary);
    font-weight: 800;
    transition: 0.25s ease;
}

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

@media (max-width: 767.98px) {
    .section-padding {
        padding: 75px 0;
    }

    .section-heading h2 {
        font-size: 34px;
    }

    .section-heading p {
        font-size: 16px;
    }

    .cycle-image {
        min-height: 240px;
    }
}
/* ===========================================================
   CORRECTION ESPACEMENT : HERO → NOS CYCLES
   =========================================================== */

/*
|--------------------------------------------------------------------------
| La section Nos Cycles commence immédiatement après le Hero.
| On réduit uniquement son espace supérieur sans toucher aux autres sections.
|--------------------------------------------------------------------------
*/
#cycles.section-padding {
    padding-top: 40px;
    padding-bottom: 80px;
}

/*
|--------------------------------------------------------------------------
| Réduction de l’espace entre l’introduction et les trois cartes.
| Le HTML contient déjà la classe Bootstrap mt-4.
|--------------------------------------------------------------------------
*/
#cycles .row.mt-4 {
    margin-top: 32px !important;
}

/*
|--------------------------------------------------------------------------
| Titre légèrement plus compact pour éviter une section trop haute.
|--------------------------------------------------------------------------
*/
#cycles .section-heading h2 {
    margin-bottom: 14px;
    line-height: 1.12;
}

#cycles .section-heading p {
    margin-bottom: 0;
}

/*
|--------------------------------------------------------------------------
| Ajustement mobile.
|--------------------------------------------------------------------------
*/
@media (max-width: 767.98px) {
    #cycles.section-padding {
        padding-top: 45px;
        padding-bottom: 65px;
    }

    #cycles .row.mt-4 {
        margin-top: 24px !important;
    }
}
/* ===========================================================
   POURQUOI CHOISIR RAFIKI
   =========================================================== */

#ecole {
    background: #ffffff;
}

#ecole .section-title {
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
}

#ecole .section-description {
    max-width: 560px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.advantage-card {
    padding: 28px;
    background: #f7f9fc;
    border: 1px solid #e5e9f1;
    border-radius: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.advantage-card:hover {
    background: #ffffff;
    box-shadow: 0 16px 35px rgba(7, 50, 107, 0.12);
    transform: translateY(-5px);
}

.advantage-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    color: #ffffff;
    background: var(--primary);
    border-radius: 15px;
    font-size: 22px;
    place-items: center;
}

.advantage-card h3 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
}


/* ===========================================================
   GALERIE
   =========================================================== */

.gallery-section {
    background: var(--primary-dark);
}

.gallery-section .section-kicker {
    color: var(--secondary);
}

.gallery-section .section-heading h2 {
    color: #ffffff;
}

.gallery-grid {
    display: grid;
    min-height: 620px;
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    background-color: #dfe7f2;
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.015);
}

.gallery-item::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.02),
        rgba(0, 0, 0, 0.18)
    );
}

.gallery-large {
    grid-row: span 2;
}

.gallery-wide {
    grid-column: span 2;
}

.gallery-photo-1 {
    background-image: url("../images/galerie-1.jpg");
}

.gallery-photo-2 {
    background-image: url("../images/galerie-2.jpg");
}

.gallery-photo-3 {
    background-image: url("../images/galerie-3.jpg");
}

.gallery-photo-4 {
    background-image: url("../images/galerie-4.jpg");
}

.gallery-photo-5 {
    background-image: url("../images/galerie-5.jpg");
}


/* ===========================================================
   VIE SCOLAIRE
   =========================================================== */

#vie-scolaire {
    background: #f7f9fc !important;
}

.activity-card {
    padding: 30px 18px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e9f1;
    border-radius: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.activity-card:hover {
    box-shadow: 0 15px 35px rgba(7, 50, 107, 0.12);
    transform: translateY(-6px);
}

.activity-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    color: var(--primary-dark);
    background: var(--secondary);
    border-radius: 16px;
    font-size: 23px;
    place-items: center;
}

.activity-card h3 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 17px;
    font-weight: 800;
}


/* ===========================================================
   CHIFFRES CLÉS
   =========================================================== */

.statistics-section {
    padding: 75px 0;
    color: #ffffff;
    background:
        linear-gradient(
            rgba(7, 50, 107, 0.93),
            rgba(7, 50, 107, 0.93)
        ),
        url("../images/statistiques.jpg") center center / cover no-repeat;
}

.stat-item {
    padding: 15px;
}

.stat-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--secondary);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1;
}

.stat-item span {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
}


/* ===========================================================
   ACTUALITÉS
   =========================================================== */

#actualites {
    background: #ffffff;
}

.news-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e9f1;
    border-radius: 20px;
    box-shadow: 0 14px 35px rgba(7, 50, 107, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
    box-shadow: 0 20px 45px rgba(7, 50, 107, 0.15);
    transform: translateY(-7px);
}

.news-image {
    display: flex;
    min-height: 230px;
    padding: 20px;
    background:
        linear-gradient(
            135deg,
            rgba(10, 77, 162, 0.96),
            rgba(7, 50, 107, 0.96)
        );
    align-items: end;
}

.news-image span {
    padding: 8px 13px;
    color: var(--primary-dark);
    background: var(--secondary);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.news-content {
    padding: 28px;
}

.news-content time {
    display: block;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 14px;
}

.news-content h3 {
    margin-bottom: 14px;
    color: var(--primary-dark);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
}

.news-content p {
    color: var(--muted);
    line-height: 1.75;
}


/* ===========================================================
   ADMISSIONS
   =========================================================== */

.admission-section {
    padding: 100px 0;
    background:
        linear-gradient(
            rgba(7, 50, 107, 0.86),
            rgba(7, 50, 107, 0.86)
        ),
        url("../images/admissions.jpg") center center / cover no-repeat;
}

.admission-box {
    max-width: 850px;
    margin: auto;
    color: #ffffff;
}

.admission-box h2 {
    margin-bottom: 20px;
    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.15;
}

.admission-box p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    line-height: 1.75;
}


/* ===========================================================
   CONTACT
   =========================================================== */

#contact {
    background: #f7f9fc !important;
}

.contact-card,
.map-placeholder {
    padding: 42px;
    background: #ffffff;
    border: 1px solid #e5e9f1;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(7, 50, 107, 0.08);
}

.contact-list {
    display: grid;
    margin: 30px 0 0;
    padding: 0;
    gap: 18px;
    list-style: none;
}

.contact-list li {
    display: flex;
    gap: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.contact-list i {
    color: var(--primary);
    font-size: 20px;
}

.map-placeholder {
    display: grid;
    min-height: 440px;
    color: var(--muted);
    text-align: center;
    place-items: center;
}

.map-placeholder i {
    color: var(--secondary);
    font-size: 58px;
}

.map-placeholder h3 {
    margin-top: 15px;
    color: var(--primary-dark);
    font-size: 28px;
    font-weight: 800;
}


/* ===========================================================
   FOOTER
   =========================================================== */

.site-footer {
    padding: 75px 0 25px;
    color: rgba(255, 255, 255, 0.78);
    background: #041d40;
}

.footer-brand {
    color: #ffffff;
    font-size: 32px;
    font-weight: 900;
}

.footer-brand span {
    color: var(--secondary);
}

.site-footer h3 {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

.site-footer p {
    line-height: 1.7;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 10px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.76);
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: grid;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    place-items: center;
}

.social-links a:hover {
    color: var(--primary-dark);
    background: var(--secondary);
}

.site-footer hr {
    margin: 45px 0 22px;
    border-color: rgba(255, 255, 255, 0.16);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}


/* ===========================================================
   RESPONSIVE GLOBAL
   =========================================================== */

@media (max-width: 991.98px) {
    .gallery-grid {
        min-height: auto;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .gallery-large,
    .gallery-wide {
        grid-column: auto;
        grid-row: auto;
    }

    .gallery-item {
        min-height: 300px;
    }
}

@media (max-width: 767.98px) {
    #ecole .section-title {
        font-size: 34px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        min-height: 280px;
    }

    .admission-section {
        padding: 75px 0;
    }

    .contact-card,
    .map-placeholder {
        padding: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}