/* =====================================================================
   ELI Sénégal — Feuille de style principale
   Palette : bleu profond, rouge accent, blanc, gris clair
   ===================================================================== */

:root {
    /* Palette inspirée du thème Inglis (Language Course) */
    --eli-blue: #07083C;        /* primaire — navy profond */
    --eli-blue-dark: #050529;   /* navy le plus sombre */
    --eli-blue-light: #2A2B8E;  /* accent indigo */
    --eli-cyan: #00B4D8;        /* secondaire — cyan */
    --eli-gold: #F2C94C;        /* highlight — jaune doré (CTA) */
    --eli-gold-dark: #e0b32f;
    /* "red" conservé comme nom mais remappé sur le cyan pour les accents/icônes */
    --eli-red: #00B4D8;
    --eli-red-dark: #0094b3;
    --eli-gray: #F7F7F7;
    --eli-gray-dark: #6b7280;
    --eli-text: #07083C;
    --eli-radius: 18px;
    --eli-shadow: 0 18px 40px rgba(7, 8, 60, .10);
    --eli-shadow-sm: 0 8px 22px rgba(7, 8, 60, .07);
}

* { scroll-behavior: smooth; }

body {
    font-family: 'Fira Sans', system-ui, -apple-system, sans-serif;
    color: var(--eli-text);
    background: #fff;
    padding-bottom: 0;
}

h1, h2, h3, h4, h5, .display-1, .display-2, .display-3, .display-4 {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    color: var(--eli-blue);
    letter-spacing: -.01em;
}

a { color: var(--eli-blue-light); text-decoration: none; }
a:hover { color: var(--eli-red); }

.text-eli-blue { color: var(--eli-blue) !important; }
.text-eli-red { color: var(--eli-red) !important; }
.bg-eli-blue { background: var(--eli-blue) !important; }
.bg-eli-gray { background: var(--eli-gray) !important; }

.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.section-title { position: relative; margin-bottom: 2.5rem; }
.section-title .eyebrow {
    display: inline-block; font-family: 'Rubik'; font-weight: 600;
    text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
    color: var(--eli-red); margin-bottom: .5rem;
}

.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }

/* ---- Boutons ---- */
.btn-eli-primary {
    background: var(--eli-blue); border: 2px solid var(--eli-blue);
    color: #fff; font-weight: 600; border-radius: 50px; padding: .6rem 1.5rem;
    transition: all .2s ease;
}
.btn-eli-primary:hover { background: var(--eli-blue-dark); border-color: var(--eli-blue-dark); color: #fff; transform: translateY(-2px); }
.btn-eli-accent {
    background: var(--eli-gold); border: 2px solid var(--eli-gold);
    color: var(--eli-blue); font-weight: 700; border-radius: 50px; padding: .6rem 1.5rem;
    transition: all .2s ease;
}
.btn-eli-accent:hover { background: var(--eli-gold-dark); border-color: var(--eli-gold-dark); color: var(--eli-blue); transform: translateY(-2px); }
.btn-eli-outline {
    background: transparent; border: 2px solid #fff; color: #fff;
    font-weight: 600; border-radius: 50px; padding: .6rem 1.5rem; transition: all .2s ease;
}
.btn-eli-outline:hover { background: #fff; color: var(--eli-blue); }
.btn-eli-ghost {
    background: transparent; border: 2px solid var(--eli-blue); color: var(--eli-blue);
    font-weight: 600; border-radius: 50px; padding: .6rem 1.5rem;
}
.btn-eli-ghost:hover { background: var(--eli-blue); color: #fff; }

/* ---- Topbar ---- */
.topbar { background: var(--eli-blue-dark); color: #cdd8ef; font-size: .85rem; padding: .4rem 0; }
.topbar a { color: #cdd8ef; margin-right: 1.4rem; }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--eli-red); margin-right: .25rem; }

/* ---- Navbar ---- */
.eli-navbar { background: #fff; box-shadow: var(--eli-shadow-sm); padding: .7rem 0; }
.navbar-brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark {
    background: var(--eli-blue); color: #fff; font-family: 'Rubik'; font-weight: 800;
    padding: .35rem .6rem; border-radius: 10px; font-size: 1.2rem; line-height: 1;
    border-bottom: 3px solid var(--eli-red);
}
.brand-text { font-family: 'Rubik'; font-weight: 700; color: var(--eli-blue); line-height: 1.1; display: flex; flex-direction: column; }
.brand-text small { font-size: .6rem; font-weight: 500; color: var(--eli-gray-dark); letter-spacing: .02em; }
.navbar-logo { height: 48px; width: auto; display: block; }
.logo-chip { display: inline-flex; background: #fff; padding: .45rem .65rem; border-radius: 12px; line-height: 0; box-shadow: var(--eli-shadow-sm); }
.logo-chip img { height: 40px; width: auto; }
@media (max-width: 575.98px) { .navbar-logo { height: 40px; } }
.eli-navbar .nav-link { font-weight: 600; color: var(--eli-text); padding: .5rem .9rem; border-radius: 8px; }
.eli-navbar .nav-link:hover, .eli-navbar .nav-link.active { color: var(--eli-blue); }
.eli-navbar .nav-link.active { position: relative; }
.eli-navbar .nav-link.active::after {
    content: ''; position: absolute; left: .9rem; right: .9rem; bottom: 2px; height: 3px;
    background: var(--eli-red); border-radius: 3px;
}

/* ---- Hero ---- */
.hero {
    position: relative; color: #fff; overflow: hidden;
    /* Ordre des couches : voile dégradé (dessus) > photo hero.jpg (si présente)
       > illustration hero.svg (repli) > couleur unie. Déposez votre propre photo
       dans assets/images/hero.jpg : elle s'appliquera automatiquement. */
    background:
        linear-gradient(120deg, rgba(7,8,60,.88) 0%, rgba(7,8,60,.72) 50%, rgba(42,43,142,.60) 100%),
        url('../images/hero.jpg') center/cover no-repeat,
        url('../images/hero.svg') center/cover no-repeat,
        var(--eli-blue);
    padding: 5.5rem 0 5rem;
}
.hero::after {
    content: ''; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(0,180,216,.40), transparent 70%); border-radius: 50%;
}
.hero .badge-season {
    display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.3); border-radius: 50px; padding: .4rem 1rem;
    font-weight: 600; font-size: .85rem; margin-bottom: 1.2rem;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; }
.hero h1 .accent { color: var(--eli-gold); }
.hero .lead { color: #dde6f7; font-size: 1.15rem; max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* ---- Bandeau de points clés ---- */
.keyfacts { margin-top: 2.5rem; }
.keyfact {
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--eli-radius); padding: 1.1rem 1rem; text-align: center; height: 100%;
    backdrop-filter: blur(4px);
}
.keyfact .kf-num { font-family: 'Rubik'; font-weight: 800; font-size: 1.5rem; color: var(--eli-gold); }
.keyfact .kf-label { font-size: .85rem; color: #e7eefb; }

/* ---- Cards génériques ---- */
.feature-card, .program-card, .session-card {
    background: #fff; border: 1px solid #eef1f7; border-radius: var(--eli-radius);
    padding: 1.6rem; height: 100%; transition: all .25s ease; box-shadow: var(--eli-shadow-sm);
}
.feature-card:hover, .program-card:hover, .session-card:hover { transform: translateY(-5px); box-shadow: var(--eli-shadow); border-color: #dbe3f4; }
.feature-icon {
    width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--eli-blue), var(--eli-blue-light)); margin-bottom: 1rem;
}
.feature-card.accent .feature-icon { background: linear-gradient(135deg, var(--eli-cyan), var(--eli-blue-light)); }
.feature-card h5, .program-card h5 { margin-bottom: .5rem; }

/* ---- Stat blocks (50 000 FCFA, 24h, etc.) ---- */
.stat-strip { background: var(--eli-blue); border-radius: var(--eli-radius); color: #fff; padding: 2rem 1rem; }
.stat-block { text-align: center; padding: .5rem; }
.stat-block .stat-num { font-family: 'Rubik'; font-weight: 800; font-size: 1.8rem; color: var(--eli-gold); line-height: 1; }
.stat-block .stat-label { font-size: .9rem; color: #dbe3f4; margin-top: .3rem; }

/* ---- Badges de session ---- */
.badge-session {
    display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .78rem;
    padding: .35rem .75rem; border-radius: 50px;
}
.badge-ouverte  { background: #e6f7ee; color: #18794e; }
.badge-limite   { background: #fff4e0; color: #b45309; }
.badge-bientot  { background: #e8f0fe; color: #1c4ba3; }
.badge-complete { background: #f1f3f7; color: #5b6577; }
.badge-cloturee { background: #fdecec; color: #b91c1c; }
.badge-session::before { content: '\F287'; font-family: 'bootstrap-icons'; font-size: .6rem; }

/* ---- Session cards ---- */
.session-card { display: flex; flex-direction: column; }
.session-card .session-code {
    font-family: 'Rubik'; font-weight: 700; color: var(--eli-red); letter-spacing: .04em; font-size: .85rem;
}
.session-card .session-dates { font-weight: 600; color: var(--eli-blue); font-size: 1.05rem; margin: .3rem 0 .6rem; }
.session-card .session-meta { color: var(--eli-gray-dark); font-size: .88rem; }
.session-card .session-meta li { margin-bottom: .3rem; }
.session-card .session-foot { margin-top: auto; padding-top: 1rem; }
.session-progress { height: 7px; border-radius: 5px; background: #eef1f7; overflow: hidden; margin: .6rem 0; }
.session-progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--eli-blue), var(--eli-blue-light)); }

/* ---- Timeline des sessions ---- */
.timeline { position: relative; padding-left: 0; }
.timeline::before {
    content: ''; position: absolute; left: 19px; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(var(--eli-blue), var(--eli-blue-light));
}
.timeline-item { position: relative; padding: 0 0 1.6rem 3rem; }
.timeline-item .tl-dot {
    position: absolute; left: 8px; top: 4px; width: 24px; height: 24px; border-radius: 50%;
    background: #fff; border: 4px solid var(--eli-blue); z-index: 1;
}
.timeline-item .tl-card { background: var(--eli-gray); border-radius: 12px; padding: 1rem 1.2rem; }
.timeline-month { font-family: 'Rubik'; font-weight: 700; color: var(--eli-red); text-transform: capitalize; }

/* ---- Filtres ---- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-btn {
    border: 2px solid #dbe3f4; background: #fff; color: var(--eli-blue); font-weight: 600;
    border-radius: 50px; padding: .4rem 1.1rem; cursor: pointer; transition: all .2s;
}
.filter-btn:hover { border-color: var(--eli-blue); }
.filter-btn.active { background: var(--eli-blue); color: #fff; border-color: var(--eli-blue); }

/* ---- Témoignages ---- */
.testimonial { background: var(--eli-gray); border-radius: var(--eli-radius); padding: 1.6rem; height: 100%; }
.testimonial .stars { color: #ffb300; margin-bottom: .6rem; }
.testimonial .who { font-weight: 600; color: var(--eli-blue); margin-top: .8rem; }

/* ---- Bloc CTA final ---- */
.cta-final {
    background: linear-gradient(120deg, var(--eli-blue-dark), var(--eli-blue-light));
    color: #fff; border-radius: 22px; padding: 3rem; text-align: center; position: relative; overflow: hidden;
}
.cta-final h2 { color: #fff; }

/* ---- Section À propos / méthode ---- */
.about-media { position: relative; padding: 18px; }
.about-img { border-radius: 24px; width: 100%; object-fit: cover; box-shadow: var(--eli-shadow); position: relative; z-index: 1; }
.about-blob {
    position: absolute; inset: 0; z-index: 0; border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%;
    background: linear-gradient(135deg, var(--eli-cyan), var(--eli-blue-light)); opacity: .18;
    transform: scale(1.04) rotate(-4deg);
}
.about-badge {
    position: absolute; right: 0; bottom: 6px; z-index: 2; background: var(--eli-gold);
    color: var(--eli-blue); border-radius: 16px; padding: .8rem 1.1rem; box-shadow: var(--eli-shadow-sm);
    display: flex; flex-direction: column; line-height: 1; text-align: center;
}
.about-badge .ab-num { font-family: 'Rubik'; font-weight: 800; font-size: 1.5rem; }
.about-badge .ab-label { font-size: .72rem; font-weight: 600; margin-top: .25rem; }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0; }
.check-list li { padding: .35rem 0; font-weight: 500; }
.check-list i { color: var(--eli-cyan); margin-right: .5rem; }

/* ---- Étapes méthode ---- */
.step-card {
    background: #fff; border: 1px solid #eef1f7; border-radius: var(--eli-radius);
    padding: 1.6rem; height: 100%; box-shadow: var(--eli-shadow-sm); position: relative;
}
.step-card .step-num {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
    border-radius: 14px; background: linear-gradient(135deg, var(--eli-blue), var(--eli-blue-light));
    color: #fff; font-family: 'Rubik'; font-weight: 800; font-size: 1.3rem; margin-bottom: .9rem;
}
.step-card:nth-child(n) h5 { margin-bottom: .4rem; }

/* ---- Tarifs ---- */
.price-card {
    background: #fff; border: 2px solid var(--eli-blue-light); border-radius: var(--eli-radius);
    padding: 2rem 1.6rem; height: 100%; box-shadow: var(--eli-shadow-sm); text-align: center;
    transition: all .25s ease; position: relative;
}
.price-card::before {
    content: ''; position: absolute; inset: 6px; border: 1px dashed rgba(42,43,142,.30);
    border-radius: calc(var(--eli-radius) - 8px); pointer-events: none;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--eli-shadow); border-color: var(--eli-cyan); }
.price-card.featured { border: 3px solid var(--eli-gold); box-shadow: var(--eli-shadow); }
.price-card.featured::before { border-color: rgba(242,201,76,.55); }
.price-tag {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--eli-gold);
    color: var(--eli-blue); font-weight: 700; font-size: .72rem; padding: .25rem .9rem; border-radius: 50px;
}
.price-name { color: var(--eli-blue); }
.price-amount { font-family: 'Rubik'; font-weight: 800; font-size: 2.3rem; color: var(--eli-blue); line-height: 1; margin: .4rem 0; }
.price-amount span { font-size: .9rem; font-weight: 600; color: var(--eli-gray-dark); margin-left: .25rem; }
.price-sub { color: var(--eli-gray-dark); font-size: .9rem; }
.price-feats { list-style: none; padding: 0; margin: 1rem 0 1.4rem; text-align: left; }
.price-feats li { padding: .35rem 0; font-size: .92rem; }
.price-feats i { color: var(--eli-cyan); margin-right: .5rem; }

/* ---- Enseignants ---- */
.teacher-card {
    background: #fff; border: 1px solid #eef1f7; border-radius: var(--eli-radius);
    padding: 1.6rem 1rem; text-align: center; height: 100%; box-shadow: var(--eli-shadow-sm); transition: all .25s ease;
}
.teacher-card:hover { transform: translateY(-5px); box-shadow: var(--eli-shadow); }
.teacher-avatar {
    width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 50%;
    background: linear-gradient(135deg, var(--eli-blue), var(--eli-blue-light)); color: #fff;
    display: flex; align-items: center; justify-content: center; font-family: 'Rubik'; font-weight: 700; font-size: 1.4rem;
    border: 3px solid var(--eli-gold);
}

/* ---- FAQ accordéon ---- */
.accordion-eli .accordion-item { border: 1px solid #eef1f7; border-radius: var(--eli-radius) !important; margin-bottom: .8rem; overflow: hidden; box-shadow: var(--eli-shadow-sm); }
.accordion-eli .accordion-button { font-family: 'Rubik'; font-weight: 600; color: var(--eli-blue); background: #fff; }
.accordion-eli .accordion-button:not(.collapsed) { color: var(--eli-blue); background: var(--eli-gray); box-shadow: none; }
.accordion-eli .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(0,180,216,.18); }
.accordion-eli .accordion-button:not(.collapsed)::after { filter: hue-rotate(160deg); }

/* ---- Formulaires ---- */
.form-card { background: #fff; border-radius: var(--eli-radius); box-shadow: var(--eli-shadow); padding: 2rem; }
.form-label { font-weight: 600; color: var(--eli-blue); font-size: .92rem; }
.form-control, .form-select { border-radius: 10px; border: 1.5px solid #dbe3f4; padding: .6rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--eli-blue-light); box-shadow: 0 0 0 .2rem rgba(28,75,163,.12); }
.required::after { content: ' *'; color: var(--eli-red); }
.session-choice {
    border: 2px solid #eef1f7; border-radius: 12px; padding: .9rem 1rem; cursor: pointer; transition: all .2s; height: 100%;
}
.session-choice:hover { border-color: var(--eli-blue-light); }
.session-choice input:checked ~ .sc-body { color: var(--eli-blue); }
.session-choice:has(input:checked) { border-color: var(--eli-blue); background: #f5f8ff; }

/* ---- Encart paiement ---- */
.pay-card { border: 2px dashed #dbe3f4; border-radius: var(--eli-radius); padding: 1.4rem; background: var(--eli-gray); }
.pay-pill { display: inline-block; padding: .15rem .55rem; border-radius: 6px; font-weight: 700; font-size: .75rem; color: #fff; }
.pay-wave { background: #1dc4f0; }
.pay-om { background: #ff7900; }

/* ---- Footer ---- */
.eli-footer { background: var(--eli-blue-dark); color: #cdd8ef; padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.eli-footer h6, .footer-title { color: #fff; font-family: 'Rubik'; font-weight: 600; margin-bottom: 1rem; font-size: 1rem; }
.eli-footer a { color: #cdd8ef; }
.eli-footer a:hover { color: #fff; }
.text-light-50 { color: #9fb0d4 !important; }
.footer-brand { display: flex; align-items: center; gap: .6rem; }
.footer-brand .brand-text { color: #fff; font-family: 'Rubik'; font-weight: 700; font-size: 1.3rem; }
.footer-links, .footer-contact, .footer-pay { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li, .footer-pay li { margin-bottom: .55rem; font-size: .9rem; }
.footer-contact i, .footer-pay i { color: var(--eli-red); margin-right: .4rem; }
.footer-social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; background: rgba(255,255,255,.1); border-radius: 50%; margin-right: .5rem; }
.footer-social a:hover { background: var(--eli-red); color: #fff; }
.footer-divider { border-color: rgba(255,255,255,.12); margin: 2rem 0 1rem; }

/* ---- Boutons flottants ---- */
.float-whatsapp {
    position: fixed; right: 18px; bottom: 18px; z-index: 1040;
    width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
    box-shadow: 0 8px 22px rgba(37,211,102,.45); transition: transform .2s;
}
.float-whatsapp:hover { transform: scale(1.08); color: #fff; }

.mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
    display: flex; gap: .5rem; padding: .6rem .8rem; background: var(--eli-blue);
    box-shadow: 0 -6px 20px rgba(0,0,0,.18);
}
@media (max-width: 991.98px) {
    body { padding-bottom: 72px; }
    .float-whatsapp { bottom: 80px; }
}

/* ---- Page header générique ---- */
.page-head { background: var(--eli-blue); color: #fff; padding: 3rem 0; position: relative; }
.page-head h1 { color: #fff; }
.page-head .breadcrumb { --bs-breadcrumb-divider-color: #9fb0d4; }
.page-head .breadcrumb a { color: #cdd8ef; }
.page-head .breadcrumb-item.active { color: #fff; }

/* ---- Tables responsive admin ---- */
.table-eli thead { background: var(--eli-blue); color: #fff; }
.table-eli th, .table-eli td { vertical-align: middle; }

@media (max-width: 575.98px) {
    .hero { padding: 3.5rem 0; }
    .cta-final { padding: 2rem 1.2rem; }
    .topbar { display: none; }
}
