/* ==========================================
   INDEX.CSS - PAGE D'ACCUEIL
========================================== */

:root {
    --bleu-primary: #173F8A;   /* ✅ Bleu du logo */
    --bleu-dark: #0F2D5E;
    --orange-accent: #F39C12;
    --rouge-esprit: #E60023;   /* ✅ ROUGE VIF pour l'accueil */
    --blanc: #FFFFFF;
    --blanc-casse: #F7F9FB;    /* ✅ Fond du logo */
    --noir: #101828;
    --gris-text: #667085;
    --gris-clair: #F7F9FB;
    --border: #E4E7EC;
    --font-titres: 'Cabinet Grotesk', 'Montserrat', sans-serif; /* ✅ Nouvelle police */
    --font-corps: 'Georgia', serif;
    --shadow-soft: 0 10px 40px rgba(16, 24, 40, 0.08);
    --shadow-card: 0 18px 50px rgba(23, 63, 138, 0.12);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   1. HERO BANNER - SPLIT PREMIUM + BANDEAU DÉFILANT
========================================== */
.hero-banner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 92vh;
    background: var(--gris-clair);
    overflow: hidden;
}

/* --- Partie gauche : texte --- */
.hero-left {
    display: flex;
    align-items: center;
    padding: 70px 60px 130px max(40px, calc((100vw - 1200px) / 2 + 24px));
    position: relative;
    z-index: 2;
}

.hero-left-content { max-width: 620px; }

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-titres);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bleu-primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.hero-label::before {
    content: "";
    flex-shrink: 0;
    width: 42px;
    height: 2px;
    background: var(--orange-accent);
    border-radius: 5px;
}

.hero-left h1 {
    font-family: var(--font-titres);
    font-size: clamp(2.2rem, 4.2vw, 3.8rem);
    font-weight: 900;
    line-height: 1.12;
    color: var(--noir);
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.hero-highlight {
    color: var(--bleu-primary);
    position: relative;
    display: inline-block;
    z-index: 1;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 100%;
    height: 12px;
    background: rgba(243, 156, 18, 0.35);
    z-index: -1;
    border-radius: 4px;
}

/* ✅ SLOGAN SUR UNE SEULE LIGNE - ROUGE VIF */
.hero-slogan {
    font-family: var(--font-corps);
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    font-style: italic;
    color: var(--gris-text);
    margin-bottom: 16px;
    white-space: nowrap;
}

.hero-slogan strong {
    display: inline-block;
    font-family: var(--font-titres);
    font-style: normal;
    font-size: clamp(1.05rem, 2vw, 1.5rem);
    font-weight: 900;
    color: var(--rouge-esprit);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-left: 6px;
    text-shadow: 0 4px 18px rgba(230, 0, 35, 0.35);
    animation: pulseRed 2s ease-in-out infinite;
}

@keyframes pulseRed {
    0%, 100% { transform: scale(1); text-shadow: 0 4px 18px rgba(230, 0, 35, 0.35); }
    50% { transform: scale(1.05); text-shadow: 0 6px 26px rgba(230, 0, 35, 0.7); }
}
/* Boutons */
.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background: var(--bleu-primary);
    color: var(--blanc);
    text-decoration: none;
    border-radius: 8px;
    font-family: var(--font-titres);
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.35s ease;
    box-shadow: 0 12px 28px rgba(23, 63, 138, 0.25);
    white-space: nowrap;
}

.btn-solid:hover {
    background: var(--bleu-dark);
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(23, 63, 138, 0.35);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 26px;
    background: var(--blanc);
    color: var(--bleu-primary);
    border: 1px solid var(--border);
    text-decoration: none;
    border-radius: 8px;
    font-family: var(--font-titres);
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.35s ease;
    white-space: nowrap;
}

.btn-ghost i { font-size: 1.2rem; color: var(--orange-accent); }

.btn-ghost:hover {
    border-color: var(--bleu-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

/* Mini stats */
.hero-mini-stats { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.mini-stat strong {
    display: block;
    font-family: var(--font-titres);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--bleu-primary);
    line-height: 1.2;
}

.mini-stat span {
    font-family: var(--font-titres);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gris-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mini-divider { width: 1px; height: 40px; background: var(--border); }

/* --- Partie droite : image --- */
.hero-right {
    position: relative;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-right img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ✅ CARTE FLOTTANTE SUPPRIMÉE (plus de répétition) */

/* --- Bandeau défilant --- */
.hero-marquee {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bleu-dark);
    padding: 16px 0;
    overflow: hidden;
    z-index: 5;
}

.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marquee 50s linear infinite;
}

.marquee-track span {
    font-family: var(--font-titres);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--blanc);
    margin-right: 40px;
    white-space: nowrap;
}

.marquee-track i {
    color: var(--orange-accent);
    font-size: 0.7rem;
    margin-right: 40px;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Animations d'entrée */
.animate-up { opacity: 0; transform: translateY(30px); animation: fadeUp 0.9s ease forwards; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   RESPONSIVE DU HERO
========================================== */

/* ✅ MOBILE : l'image passe EN FOND derrière le texte */
@media (max-width: 992px) {
    .hero-banner {
        grid-template-columns: 1fr;
        min-height: 88vh;
    }

    .hero-right {
        position: absolute;
        inset: 0;
        clip-path: none;
        z-index: 0;
    }

    /* Voile clair pour garder le texte lisible sur l'image */
    .hero-right::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg,
            rgba(248, 249, 250, 0.94) 0%,
            rgba(248, 249, 250, 0.88) 55%,
            rgba(248, 249, 250, 0.72) 100%);
    }

    .hero-left {
        padding: 80px 24px 120px;
        align-items: flex-start;
    }
}

/* ✅ Boutons SUR LA MÊME LIGNE + tailles ajustées */
@media (max-width: 560px) {
    .hero-left h1 { font-size: 2rem; }
    .hero-label { font-size: 0.68rem; letter-spacing: 1.5px; }
    .hero-label::before { width: 28px; }

    .hero-buttons {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .btn-solid,
    .btn-ghost {
        padding: 12px 16px;
        font-size: 0.8rem;
    }

    .btn-ghost i { font-size: 1rem; }

    .hero-mini-stats { gap: 14px; }
    .mini-stat strong { font-size: 1.2rem; }
    .mini-divider { height: 32px; }
}

@media (max-width: 400px) {
    .hero-buttons { gap: 8px; }

    .btn-solid,
    .btn-ghost {
        padding: 10px 12px;
        font-size: 0.72rem;
    }

    .hero-slogan { font-size: 0.78rem; }
    .hero-slogan strong { font-size: 0.95rem; letter-spacing: 1px; }
}
/* ==========================================
   2. SECTION CHIFFRES
========================================== */

.chiffres-section {
    padding: 90px 0;
    background: var(--blanc);
}

.chiffres-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 55px;
}

.chiffres-header h2 {
    font-family: var(--font-titres);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--noir);
    margin-bottom: 16px;
    letter-spacing: -0.8px;
}

.chiffres-header h2 span {
    color: var(--orange-accent);
}

.chiffres-header p {
    font-family: var(--font-titres);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gris-text);
}

.chiffres-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.chiffre-card {
    background: var(--blanc);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 34px 24px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(16, 24, 40, 0.04);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.chiffre-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bleu-primary), var(--orange-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.chiffre-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: transparent;
}

.chiffre-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    width: 68px;
    height: 68px;
    background: rgba(23, 63, 138, 0.08);
    color: var(--bleu-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.7rem;
}

.chiffre-card .number {
    font-family: var(--font-titres);
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--bleu-primary);
    line-height: 1;
    margin-bottom: 12px;
}

.chiffre-card .label {
    font-family: var(--font-titres);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gris-text);
    line-height: 1.5;
}

/* ==========================================
   3. ACTUALITÉS
========================================== */

.actualites-section {
    padding: 90px 0;
    background: var(--gris-clair);
}

.section-title {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 55px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-titres);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--bleu-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-title h2 {
    font-family: var(--font-titres);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--noir);
    margin-bottom: 16px;
}

.section-title h2 span {
    color: var(--orange-accent);
}

.divider {
    width: 76px;
    height: 4px;
    background: linear-gradient(90deg, var(--bleu-primary), var(--orange-accent));
    border-radius: 10px;
    margin: 0 auto 18px;
}

.section-subtitle {
    font-family: var(--font-titres);
    font-size: 1rem;
    color: var(--gris-text);
    line-height: 1.7;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.news-card {
    background: var(--blanc);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 8px 28px rgba(16, 24, 40, 0.05);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: transparent;
}

.card-image {
    width: 100%;
    height: 235px;
    overflow: hidden;
    background: #ddd;
}

.card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .card-image img {
    transform: scale(1.08);
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-body h3 {
    font-family: var(--font-titres);
    font-size: 1.12rem;
    font-weight: 850;
    color: var(--noir);
    line-height: 1.45;
    margin-bottom: 12px;
    word-break: normal;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-titres);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gris-text);
    margin-bottom: 20px;
}

.card-date i {
    color: var(--orange-accent);
}

.btn-voir-plus {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-family: var(--font-titres);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--bleu-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-voir-plus:hover {
    color: var(--orange-accent);
    gap: 12px;
}

/* ==========================================
   4. DÉCOUVERTE ESCA
========================================== */

.decouverte-section {
    padding: 90px 0 100px;
    background: var(--blanc);
    text-align: center;
}

.decouverte-container {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(23, 63, 138, 0.04), rgba(243, 156, 18, 0.06));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: 0 12px 45px rgba(16, 24, 40, 0.06);
}

.decouverte-icon {
    width: 86px;
    height: 86px;
    background: linear-gradient(135deg, var(--bleu-primary), var(--bleu-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 26px;
    box-shadow: 0 16px 35px rgba(23, 63, 138, 0.28);
}

.decouverte-icon i {
    font-size: 2.3rem;
    color: var(--blanc);
}

.decouverte-section h2 {
    font-family: var(--font-titres);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    color: var(--noir);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 22px;
}

.decouverte-section h2 span {
    color: var(--orange-accent);
}

.decouverte-section p {
    font-family: var(--font-titres);
    font-size: 1rem;
    color: var(--gris-text);
    line-height: 1.85;
    max-width: 720px;
    margin: 0 auto 34px;
}

.btn-decouverte {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 34px;
    background: var(--bleu-primary);
    color: var(--blanc);
    text-decoration: none;
    border-radius: 8px;
    font-family: var(--font-titres);
    font-weight: 800;
    font-size: 0.96rem;
    transition: all 0.35s ease;
    box-shadow: 0 12px 28px rgba(23, 63, 138, 0.25);
}

.btn-decouverte:hover {
    background: var(--orange-accent);
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(243, 156, 18, 0.35);
}

.btn-decouverte i {
    transition: transform 0.3s ease;
}

.btn-decouverte:hover i {
    transform: translateX(5px);
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1024px) {
    .hero-banner,
    .hero-content {
        min-height: 78vh;
    }

    .chiffres-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 18px;
    }

    .hero-banner,
    .hero-content {
        min-height: 82vh;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(248, 249, 250, 0.96) 0%,
                rgba(248, 249, 250, 0.9) 65%,
                rgba(248, 249, 250, 0.72) 100%
            );
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text .slogan strong {
        display: block;
        margin-left: 0;
        margin-top: 8px;
        font-size: 1.55rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn {
        width: 100%;
        max-width: 290px;
    }

    .chiffres-section,
    .actualites-section,
    .decouverte-section {
        padding: 70px 0;
    }

    .chiffres-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .news-card {
        width: 100%;
    }

    .card-image {
        height: 230px;
    }

    .card-body {
        padding: 22px;
    }

    .decouverte-container {
        padding: 44px 24px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .hero-label {
        font-size: 0.68rem;
        letter-spacing: 2px;
    }

    .hero-label::before {
        width: 28px;
    }

    .hero-text h1 {
        font-size: 2.15rem;
    }

    .hero-text .subtitle {
        font-size: 0.96rem;
    }

    .hero-text .slogan {
        font-size: 1.05rem;
    }

    .hero-text .slogan strong {
        font-size: 1.35rem;
        letter-spacing: 2px;
    }

    .card-image {
        height: 205px;
    }

    .card-body h3 {
        font-size: 1rem;
    }

    .decouverte-icon {
        width: 74px;
        height: 74px;
    }

    .decouverte-icon i {
        font-size: 2rem;
    }

    .btn-decouverte {
        width: 100%;
        justify-content: center;
    }
}