/* =================================================================
   AFRIGESTION — FEUILLE DE STYLE DU SITE PUBLIC
   Emplacement : static/front/css/afrigestion.css
   ================================================================= */


/* =================================================================
   1. VARIABLES & BASE
   ================================================================= */
:root {
    --afri-teal-dark: #0b3d3a;
    --afri-teal-mid: #0f5c56;
    --afri-teal: #12766e;
    --afri-orange: #e5a13d;
    --afri-line: #edf1f0;
    --afri-muted: #5c6b69;
    --afri-soft: #fbfcfc;
    --afri-whatsapp: #25d366;
}

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }


/* =================================================================
   2. ÉLÉMENTS COMMUNS
   ================================================================= */
.afri-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--afri-teal);
    margin-bottom: 0.6rem;
}

.afri-section-title {
    font-weight: 800;
    letter-spacing: -0.01em;
}

.afri-section-lead {
    color: var(--afri-muted);
    max-width: 640px;
    margin: 0 auto;
}

.afri-bg-soft { background: var(--afri-soft); }

.afri-btn-cta {
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease;
}
.afri-btn-cta:hover { transform: translateY(-2px); }


/* =================================================================
   3. HERO
   ================================================================= */
.afri-hero-section {
    background: linear-gradient(135deg, var(--afri-teal-dark) 0%, var(--afri-teal-mid) 45%, var(--afri-teal) 100%);
    min-height: 88vh;
    position: relative;
    overflow: hidden;
    padding-bottom: 3rem;
}

.afri-hero-circle-1 {
    position: absolute;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    top: -200px; right: -140px;
}

.afri-hero-circle-2 {
    position: absolute;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: rgba(229,161,61,0.12);
    bottom: -130px; left: -90px;
}

.afri-hero-badge {
    background: rgba(229,161,61,0.15);
    color: #f5d19a;
    padding: 0.5rem 1.15rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    border: 1px solid rgba(229,161,61,0.3);
}

.afri-hero-title {
    font-size: 2.9rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.afri-hero-sub {
    color: rgba(255,255,255,0.82);
    font-size: 1.2rem;
    max-width: 660px;
}

.afri-hero-points {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
}
.afri-hero-points li {
    color: rgba(255,255,255,0.88);
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.afri-hero-points i { color: var(--afri-orange); }

/* ---------- Carrousel du hero ---------- */
.afri-hero-carousel {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
}
.afri-hero-carousel .carousel-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.afri-hero-carousel .carousel-caption {
    left: 0; right: 0; bottom: 0;
    padding: 2.5rem 1.25rem 1rem;
    text-align: left;
    background: linear-gradient(to top, rgba(11,61,58,0.92), rgba(11,61,58,0));
}
.afri-hero-carousel .carousel-caption h6 { font-weight: 700; margin-bottom: 0.15rem; }
.afri-hero-carousel .carousel-caption p { font-size: 0.82rem; margin: 0; opacity: 0.85; }
.afri-hero-carousel .carousel-indicators { margin-bottom: 0.4rem; }
.afri-hero-carousel .carousel-indicators [data-bs-target] {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: 0;
}

/* ---------- Bandeau promo défilant (en bas du hero) ---------- */
.afri-promo-bar {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 3;
    background: var(--afri-orange);
    color: var(--afri-teal-dark);
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
}
.afri-promo-track {
    display: inline-flex;
    gap: 3rem;
    padding: 0.6rem 0;
    animation: afri-defilement 35s linear infinite;
}
.afri-promo-bar:hover .afri-promo-track { animation-play-state: paused; }
.afri-promo-track span { display: inline-flex; align-items: center; gap: 0.4rem; }

@keyframes afri-defilement {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


/* =================================================================
   4. PROMOTIONS & NOUVEAUTÉS
   ================================================================= */
.afri-countdown {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    background: #fff7ea;
    border: 1px solid #fbe3b8;
    border-radius: 14px;
    padding: 0.8rem 1.2rem;
    margin-top: 1.25rem;
}
.afri-countdown-label { font-weight: 600; color: #92400e; font-size: 0.9rem; }
.afri-countdown-box {
    min-width: 56px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    padding: 0.35rem 0.5rem;
    border: 1px solid #fbe3b8;
}
.afri-countdown-box strong { display: block; font-size: 1.3rem; color: var(--afri-teal-dark); line-height: 1.1; }
.afri-countdown-box small { font-size: 0.68rem; color: #92400e; text-transform: uppercase; }

.afri-news-card {
    border: 1px solid var(--afri-line);
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 18px -14px rgba(11,61,58,0.15);
    transition: transform .2s ease, box-shadow .2s ease;
}
.afri-news-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -18px rgba(15,92,86,0.25); }

.afri-news-img { position: relative; aspect-ratio: 16 / 9; background: #e6f5f2; overflow: hidden; }
.afri-news-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.afri-news-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem;
    color: var(--afri-teal);
}

.afri-news-tag {
    position: absolute;
    top: 12px; left: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}
.afri-news-tag.promo   { background: var(--afri-orange); color: var(--afri-teal-dark); }
.afri-news-tag.nouveau { background: var(--afri-teal); color: #fff; }
.afri-news-tag.news    { background: #fff; color: var(--afri-teal-dark); }

.afri-news-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.afri-news-date { font-size: 0.75rem; color: #8a9997; margin-bottom: 0.4rem; }
.afri-news-body h5 { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem; }
.afri-news-body p { font-size: 0.88rem; color: var(--afri-muted); margin-bottom: 1rem; }

.afri-news-prix { margin-top: auto; margin-bottom: 0.9rem; }
.afri-news-prix .ancien { text-decoration: line-through; color: #9aa6a4; font-size: 0.9rem; margin-right: 0.5rem; }
.afri-news-prix .nouveau { font-size: 1.25rem; font-weight: 800; color: var(--afri-teal-dark); }

.afri-news-link { margin-top: auto; font-weight: 600; color: var(--afri-teal); text-decoration: none; }
.afri-news-link:hover { color: var(--afri-teal-dark); }


/* =================================================================
   5. POURQUOI AFRIGESTION
   ================================================================= */
.afri-why-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    height: 100%;
    background: #fff;
    border: 1px solid var(--afri-line);
    border-radius: 16px;
    padding: 1.4rem;
    box-shadow: 0 6px 16px -12px rgba(11,61,58,0.12);
    transition: transform .2s ease, box-shadow .2s ease;
}
.afri-why-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(15,92,86,0.18); }
.afri-why-icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    background: rgba(229,161,61,0.14);
    color: #b45309;
}
.afri-why-card h6 { font-weight: 700; margin-bottom: 0.25rem; }
.afri-why-card p { font-size: 0.88rem; color: var(--afri-muted); margin: 0; }


/* =================================================================
   6. VIDÉO DE DÉMONSTRATION
   ================================================================= */
.afri-video-frame {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(11,61,58,0.35);
    border: 1px solid var(--afri-line);
    background: var(--afri-teal-dark);
}
.afri-video-frame video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--afri-teal-dark);
}
.afri-video-fallback {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 3.5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--afri-teal-dark) 0%, var(--afri-teal) 100%);
    color: #fff;
}
.afri-video-fallback i { font-size: 2.8rem; color: var(--afri-orange); margin-bottom: 1rem; }


/* =================================================================
   7. PACKS EXCEL
   ================================================================= */
.afri-pack-card {
    border: 1px solid var(--afri-line);
    border-radius: 20px;
    height: 100%;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 6px 18px -12px rgba(11,61,58,0.15);
}
.afri-pack-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px -16px rgba(15,92,86,0.22);
    border-color: rgba(18,118,110,0.25);
}
.afri-pack-card.afri-pack-featured {
    border: 2px solid var(--afri-orange);
    box-shadow: 0 10px 26px -14px rgba(229,161,61,0.4);
}
.afri-pack-recommended-badge {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: var(--afri-orange);
    color: var(--afri-teal-dark);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    box-shadow: 0 6px 14px -6px rgba(229,161,61,0.6);
    white-space: nowrap;
}
.afri-pack-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.afri-pack-icon.bleu   { background: #e8f1fd; color: #2563eb; }
.afri-pack-icon.vert   { background: #e6f5f2; color: #12766e; }
.afri-pack-icon.orange { background: #fdeceb; color: #c2410c; }

.afri-pack-screenshot { border-radius: 14px; overflow: hidden; margin-bottom: 1rem; border: 1px solid var(--afri-line); }
.afri-pack-screenshot img { width: 100%; display: block; }
.afri-pack-price { font-size: 1.55rem; font-weight: 800; color: var(--afri-teal-dark); }
.afri-pack-list li {
    padding: 0.25rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--afri-muted);
}
.afri-pack-list i { color: var(--afri-teal); margin-top: 0.2rem; font-size: 0.85rem; }
.afri-pack-footer { margin-top: auto; }


/* =================================================================
   8. COMMENT COMMANDER
   ================================================================= */
.afri-step { text-align: center; position: relative; padding: 0 0.5rem; }
.afri-step-num {
    width: 64px; height: 64px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--afri-teal);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 10px 24px -10px rgba(18,118,110,0.6);
    position: relative;
    z-index: 1;
}
.afri-step h6 { font-weight: 700; margin-bottom: 0.35rem; }
.afri-step p { font-size: 0.88rem; color: var(--afri-muted); margin: 0; }

@media (min-width: 992px) {
    .afri-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 32px;
        left: calc(50% + 40px);
        width: calc(100% - 80px);
        border-top: 2px dashed rgba(18,118,110,0.3);
    }
}


/* =================================================================
   9. APPLICATIONS SUR MESURE
   ================================================================= */
.afri-sm-card {
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    background: #fff;
    border: 1px solid var(--afri-line);
    transition: all .2s ease;
    box-shadow: 0 6px 16px -12px rgba(11,61,58,0.12);
}
.afri-sm-card:hover {
    box-shadow: 0 14px 30px -14px rgba(15,92,86,0.18);
    border-color: rgba(18,118,110,0.2);
    transform: translateY(-3px);
}
.afri-sm-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: rgba(18,118,110,0.08);
    color: var(--afri-teal);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.9rem;
}


/* =================================================================
   10. PROJETS RÉALISÉS
   ================================================================= */
.afri-project-card {
    border-radius: 18px;
    padding: 1.75rem;
    height: 100%;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 10px 26px -16px rgba(0,0,0,0.35);
}
.afri-project-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -16px rgba(0,0,0,0.4); }
.afri-project-card::before {
    content: "";
    position: absolute;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    top: -80px; right: -60px;
}

/* Dégradés des cartes projets */
.afri-project-card.gescom  { background: linear-gradient(160deg, #0f5c56, #0b3d3a); }
.afri-project-card.fleet   { background: linear-gradient(160deg, #2d3436, #14171a); }
.afri-project-card.qse     { background: linear-gradient(160deg, #d97706, #92400e); }
.afri-project-card.medi    { background: linear-gradient(160deg, #2563eb, #1e3a8a); }

.afri-project-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255,255,255,0.15);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
    position: relative;
    z-index: 1;
}
.afri-project-card h5 { font-weight: 800; margin-bottom: 0.6rem; position: relative; z-index: 1; color: inherit; }
.afri-project-card p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.82);
    margin: 0 0 1rem;
    position: relative;
    z-index: 1;
    line-height: 1.55;
}
.afri-project-more {
    position: relative;
    z-index: 1;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.afri-project-more i { transition: transform .15s ease; }
.afri-project-card:hover .afri-project-more i { transform: translateX(3px); }


/* =================================================================
   11. NOTRE ÉQUIPE
   ================================================================= */
.afri-team-card {
    border: 1px solid var(--afri-line);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    height: 100%;
    text-align: center;
    background: #fff;
    transition: all .2s ease;
    box-shadow: 0 6px 18px -14px rgba(11,61,58,0.15);
}
.afri-team-card:hover {
    box-shadow: 0 16px 34px -16px rgba(15,92,86,0.2);
    border-color: rgba(18,118,110,0.2);
    transform: translateY(-4px);
}
.afri-team-photo {
    width: 110px; height: 110px;
    border-radius: 50%;
    margin: 0 auto 1.1rem;
    background: #f0f3f2;
    border: 2px dashed #c9d6d4;
    display: flex; align-items: center; justify-content: center;
    color: #8a9997;
    font-size: 1.9rem;
    overflow: hidden;
}
.afri-team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.afri-team-role-icon {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--afri-teal);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    margin: -2.6rem auto 0.9rem;
    position: relative;
    border: 3px solid #fff;
}


/* =================================================================
   12. NOS SPÉCIALITÉS
   ================================================================= */
.afri-expertise-banner {
    border-radius: 20px;
    padding: 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 14px 30px -18px rgba(0,0,0,0.35);
}
.afri-expertise-banner.orange { background: linear-gradient(135deg, var(--afri-orange) 0%, #c2410c 100%); }
.afri-expertise-banner.teal   { background: linear-gradient(135deg, var(--afri-teal) 0%, var(--afri-teal-dark) 100%); }
.afri-expertise-banner::before {
    content: "";
    position: absolute;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    top: -120px; right: -80px;
}
.afri-expertise-banner .icon-wrap {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.afri-expertise-banner h4 { font-weight: 800; position: relative; z-index: 1; }
.afri-expertise-banner p { color: rgba(255,255,255,0.9); position: relative; z-index: 1; margin: 0; }

.afri-training-card {
    border: 1px solid var(--afri-line);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    text-align: center;
    transition: all .2s ease;
    background: #fff;
    box-shadow: 0 6px 16px -12px rgba(11,61,58,0.12);
}
.afri-training-card:hover {
    box-shadow: 0 14px 30px -14px rgba(15,92,86,0.18);
    border-color: rgba(18,118,110,0.2);
    transform: translateY(-4px);
}
.afri-training-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.45rem;
    background: rgba(18,118,110,0.08);
    color: var(--afri-teal);
}


/* =================================================================
   13. EN CHIFFRES
   ================================================================= */
.afri-stats { background: linear-gradient(135deg, var(--afri-teal-dark) 0%, var(--afri-teal) 100%); }
.afri-stat-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin: 0 auto 1rem;
}


/* =================================================================
   14. TÉMOIGNAGES
   ================================================================= */
.afri-testimonial-card {
    border-radius: 18px;
    padding: 2rem;
    height: 100%;
    background: #fff;
    border: 1px solid var(--afri-line);
    position: relative;
    box-shadow: 0 6px 18px -14px rgba(11,61,58,0.15);
}
.afri-testimonial-quote {
    font-size: 2.2rem;
    color: rgba(18,118,110,0.15);
    line-height: 1;
    position: absolute;
    top: 1.2rem; right: 1.5rem;
}
.afri-testimonial-stars { color: var(--afri-orange); font-size: 0.9rem; margin-bottom: 0.6rem; }


/* =================================================================
   15. FAQ
   ================================================================= */
.afri-faq .accordion-item {
    border: none;
    border-bottom: 1px solid var(--afri-line);
    border-radius: 0 !important;
    background: transparent;
}
.afri-faq .accordion-button {
    font-weight: 600;
    color: var(--afri-teal-dark);
    padding: 1.35rem 0.25rem;
    background: transparent;
    box-shadow: none !important;
}
.afri-faq .accordion-button:not(.collapsed) { color: var(--afri-teal); background: transparent; }
.afri-faq .accordion-button::after { flex-shrink: 0; }
.afri-faq .accordion-body { padding: 0 0.25rem 1.5rem; color: var(--afri-muted); }


/* =================================================================
   16. CTA FINAL
   ================================================================= */
.afri-cta-final {
    background: linear-gradient(135deg, var(--afri-teal-dark) 0%, var(--afri-teal) 100%);
    position: relative;
    overflow: hidden;
}
.afri-cta-final::before {
    content: "";
    position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    top: -160px; left: -120px;
}


/* =================================================================
   17. BOUTONS FLOTTANTS
   ================================================================= */
.afri-float-wa {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 1040;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--afri-whatsapp);
    color: #fff;
    font-size: 1.8rem;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 24px -6px rgba(37,211,102,0.6);
    transition: transform .15s ease;
}
.afri-float-wa:hover { color: #fff; transform: scale(1.06); }
.afri-float-wa::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--afri-whatsapp);
    animation: afri-pulse 2s ease-out infinite;
}

@keyframes afri-pulse {
    from { transform: scale(1);   opacity: 0.8; }
    to   { transform: scale(1.6); opacity: 0; }
}

.afri-back-top {
    position: fixed;
    right: 27px; bottom: 92px;
    z-index: 1040;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--afri-teal-dark);
    color: #fff;
    font-size: 1.3rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px -8px rgba(11,61,58,0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.afri-back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }


/* =================================================================
   18. ACCESSIBILITÉ & RESPONSIVE
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .afri-promo-track,
    .afri-float-wa::after { animation: none; }
}

@media (max-width: 991.98px) {
    .afri-hero-title { font-size: 2.2rem; }
    .afri-hero-section { min-height: auto; padding: 4rem 0 5rem; }
    .afri-hero-points { justify-content: center; }
}

/* =================================================================
   19. PACK SAGE
   ================================================================= */
.afri-sage-section {
    background: linear-gradient(180deg, #eef6f5 0%, #ffffff 100%);
    border-top: 1px solid var(--afri-line);
    border-bottom: 1px solid var(--afri-line);
}

/* 4e couleur d'icône (Sage Gestion Commerciale) */
.afri-pack-icon.violet { background: #f1ebfb; color: #6d28d9; }

/* Mention de marque sous le bouton */
.afri-sage-note {
    font-size: 0.78rem;
    color: #8a9997;
}

/* =================================================================
   AJOUTS PACK SAGE — à coller à la fin de afrigestion.css
   ================================================================= */

/* Visuel réel du Pack Sage */
.afri-sage-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px -24px rgba(11,61,58,0.35);
    border: 1px solid var(--afri-line);
}
.afri-sage-visual img {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    display: block;
}
.afri-sage-visual-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 3rem 1.5rem 1.25rem;
    background: linear-gradient(to top, rgba(11,61,58,0.9), rgba(11,61,58,0));
}
.afri-sage-visual-caption span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}
.afri-sage-visual-caption i { color: var(--afri-orange); }

@media (max-width: 767.98px) {
    .afri-sage-visual img { aspect-ratio: 4 / 3; }
    .afri-sage-visual-caption { padding: 2rem 1rem 1rem; }
}

/* =================================================================
   20. PROGRAMME DE FORMATION SAGE
   ================================================================= */

/* Onglets de choix du module */
.afri-formation-tabs {
    gap: 0.5rem;
    flex-wrap: wrap;
}
.afri-formation-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--afri-line);
    background: #fff;
    color: var(--afri-teal-dark);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.6rem 1.15rem;
    border-radius: 999px;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.afri-formation-tabs .nav-link:hover { border-color: rgba(18,118,110,0.35); }
.afri-formation-tabs .nav-link.active {
    background: var(--afri-teal);
    border-color: var(--afri-teal);
    color: #fff;
}
.afri-formation-tabs .nav-link:focus-visible {
    outline: 3px solid rgba(229,161,61,0.6);
    outline-offset: 2px;
}

/* Panneau d'un module : infos à gauche, déroulé à droite */
.afri-formation-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 2fr;
    gap: 2rem;
    background: #fff;
    border: 1px solid var(--afri-line);
    border-radius: 20px;
    padding: 2rem;
}
.afri-formation-info p {
    font-size: 0.9rem;
    color: var(--afri-muted);
    margin-bottom: 1rem;
}
.afri-formation-info strong { color: var(--afri-teal-dark); }
.afri-formation-duree {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(229,161,61,0.15);
    color: #92400e !important;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
}

/* Déroulé jour par jour (vraie séquence : ligne verticale) */
.afri-formation-jours {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.75rem;
    position: relative;
}
.afri-formation-jours::before {
    content: "";
    position: absolute;
    left: 0.45rem;
    top: 0.4rem;
    bottom: 0.4rem;
    border-left: 2px dashed rgba(18,118,110,0.3);
}
.afri-formation-jours li {
    position: relative;
    padding-bottom: 1.4rem;
}
.afri-formation-jours li:last-child { padding-bottom: 0; }
.afri-formation-jours li::before {
    content: "";
    position: absolute;
    left: -1.75rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--afri-teal);
    box-shadow: 0 0 0 4px #e6f5f2;
}
.afri-jour {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--afri-teal);
}
.afri-formation-jours h6 {
    font-weight: 700;
    color: var(--afri-teal-dark);
    margin: 0.1rem 0 0.3rem;
}
.afri-formation-jours p {
    font-size: 0.9rem;
    color: var(--afri-muted);
    margin: 0;
}

/* Modalités communes */
.afri-formation-modalites {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.75rem;
    margin-top: 1.75rem;
}
.afri-formation-modalites div {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--afri-teal-dark);
}
.afri-formation-modalites i { color: var(--afri-orange); font-size: 1.1rem; }

@media (max-width: 767.98px) {
    .afri-formation-panel {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .afri-formation-tabs .nav-link { font-size: 0.85rem; padding: 0.5rem 0.9rem; }
}