/* Page d'accueil — styles premium */

.page-home .sc-hero {
    min-height: clamp(620px, 88vh, 900px);
    align-items: center;
    padding-bottom: 2rem;
    background: none;
}

.page-home .sc-hero__bg::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 140px;
    background: linear-gradient(to top, rgba(245, 247, 250, 1) 0%, transparent 100%);
    pointer-events: none;
}

.page-home .sc-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(115deg, rgba(10, 20, 30, 0.55) 0%, rgba(10, 20, 30, 0.3) 55%, rgba(10, 20, 30, 0.2) 100%),
        var(--img-home-hero, linear-gradient(135deg, #0B1D3A 0%, #1a3a6b 40%, #2d4a6e 100%)) center center / cover no-repeat;
    transform: scale(1.02);
    animation: heroKenBurns 18s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
    from { transform: scale(1.02); }
    to { transform: scale(1.08); }
}

.page-home .sc-hero__content {
    max-width: 860px;
    padding: 6rem 1.5rem 2rem;
    position: relative;
    z-index: 1;
}

.page-home .sc-hero .sc-hero__content.ek-animate {
    opacity: 1;
    transform: none;
}

.sc-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.sc-hero__kicker i { color: var(--sc-orange); }

.page-home .sc-hero__title {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.sc-hero__lead {
    font-size: clamp(1.0625rem, 2.2vw, 1.3125rem);
    color: rgba(255, 255, 255, 0.92);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.65;
}

.sc-hero__lead strong { color: var(--sc-orange); font-weight: 800; }

.page-home .sc-hero__btns .btn-lg {
    padding: 0.85rem 1.75rem;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.page-home .sc-hero__btns .btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

/* ─── Bandeau stats (hors hero, contraste net) ─── */
.sc-hero-stats-band {
    position: relative;
    z-index: 20;
    margin-top: -3.5rem;
    padding-bottom: 0.5rem;
}

.sc-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 166, 81, 0.22);
    border-top: 4px solid var(--sc-green);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 24px 48px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.sc-hero__stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.35rem;
    text-align: left;
    border-right: 1px solid var(--line);
    transition: background 0.2s;
}

.sc-hero__stat:hover {
    background: var(--sc-green-light);
}

.sc-hero__stat:last-child { border-right: none; }

.sc-hero__stat-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sc-green-light), #fff);
    border: 1px solid rgba(0, 166, 81, 0.2);
    color: var(--sc-green);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}

.sc-hero__stat-body strong {
    display: block;
    font-size: clamp(1.625rem, 3vw, 2.125rem);
    font-weight: 800;
    color: var(--sc-green-dark);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.sc-hero__stat-body span {
    display: block;
    font-size: 0.8125rem;
    color: var(--ink);
    font-weight: 600;
    margin-top: 0.2rem;
    opacity: 0.75;
}

.sc-hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1.5rem;
    margin-top: 1.25rem;
    padding: 0 0.5rem;
}

.sc-hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
}

.sc-hero-trust i {
    color: var(--sc-green);
    font-size: 0.875rem;
}

.sc-hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    animation: heroBounce 2s ease-in-out infinite;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: grid;
    place-items: center;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.08);
}

@keyframes heroBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

.page-home .sc-section--after-hero {
    padding-top: 3rem;
}

.page-home .sc-cta-band {
    background: linear-gradient(135deg, #fff 0%, var(--sc-green-light) 100%);
    border: 1px solid rgba(0, 166, 81, 0.25);
    box-shadow: var(--shadow);
}

.sc-section__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sc-green);
    margin-bottom: 0.5rem;
}

/* Features */
.sc-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.sc-feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.75rem 1.35rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    height: 100%;
}

.sc-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 166, 81, 0.35);
}

.sc-feature-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 14px;
    background: var(--sc-green-light);
    color: var(--sc-green);
    display: grid;
    place-items: center;
    font-size: 1.35rem;
}

.sc-feature-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.sc-feature-card p {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.55;
}

/* Steps */
.sc-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    counter-reset: step;
}

.sc-step-card {
    position: relative;
    text-align: center;
    padding: 1.5rem 1rem;
}

.sc-step-card::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sc-green), var(--sc-green-dark));
    color: #fff;
    font-weight: 800;
    font-size: 1.125rem;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.sc-step-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.sc-step-card p {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0;
}

/* Steps connectés */
.sc-steps--connected {
    position: relative;
}

.sc-steps--connected::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--sc-green-light), var(--sc-green), var(--sc-green-light));
    z-index: 0;
}

.sc-steps--connected .sc-step-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}

.sc-steps--connected .sc-step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Testimonials */
.sc-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.sc-testimonial-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s, box-shadow 0.25s;
    border-left: 4px solid var(--sc-green);
    position: relative;
}

.sc-testimonial-card::after {
    content: '\f10e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 2rem;
    color: var(--sc-green);
    opacity: 0.12;
    line-height: 1;
}

.sc-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.sc-testimonial-card__stars {
    color: var(--sc-orange);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.sc-testimonial-card__quote {
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.sc-testimonial-card__quote::before {
    content: '\201C';
    font-size: 2rem;
    color: var(--sc-green);
    line-height: 0;
    display: block;
    margin-bottom: 0.5rem;
    font-style: normal;
}

.sc-testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.sc-testimonial-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sc-green-light), #fff);
    border: 2px solid var(--sc-green);
    color: var(--sc-green-dark);
    font-weight: 800;
    font-size: 0.875rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.sc-testimonial-card__avatar--photo {
    padding: 0;
    background: #e2e8f0;
    font-size: 0;
    object-fit: cover;
    display: block;
}

.sc-testimonial-card__name {
    font-weight: 800;
    font-size: 0.9375rem;
    color: var(--ink);
    display: block;
}

.sc-testimonial-card__role {
    font-size: 0.8125rem;
    color: var(--muted);
}

/* Partners */
.sc-partners {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 2rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.sc-partners__label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* Partners marquee */
.sc-partners--marquee {
    overflow: hidden;
    padding: 1.75rem 0;
}

.sc-partners--marquee .sc-partners__track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem 2.5rem;
}

.sc-partner-logo {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--ink);
    opacity: 0.5;
    transition: opacity 0.2s, color 0.2s, transform 0.2s;
    letter-spacing: -0.01em;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--gray);
}

.sc-partner-logo:hover {
    opacity: 1;
    color: var(--sc-green);
    transform: translateY(-2px);
    background: var(--sc-green-light);
}

/* Articles home — badge date */
.page-home .sc-article-card__body {
    position: relative;
}

.page-home .sc-article-card__title {
    transition: color 0.2s;
}

.page-home .sc-article-card:hover .sc-article-card__title {
    color: var(--sc-green-dark);
}

/* Destinations — zoom */
.page-home .sc-dest-card__bg {
    transition: transform 0.5s ease;
}

.page-home .sc-dest-card:hover .sc-dest-card__bg {
    transform: scale(1.08);
}

.page-home .sc-dest-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* FAQ home */
.sc-faq-home .accordion-item {
    border: 1px solid var(--line);
    border-radius: var(--r) !important;
    margin-bottom: 0.65rem;
    overflow: hidden;
}

.sc-faq-home .accordion-button {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--ink);
    background: #fff;
    box-shadow: none !important;
}

.sc-faq-home .accordion-button:not(.collapsed) {
    background: var(--sc-green-light);
    color: var(--sc-green-dark);
}

.sc-faq-home .accordion-body {
    font-size: 0.9375rem;
    color: var(--muted);
    line-height: 1.6;
}

/* Newsletter band */
.sc-newsletter {
    background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
    border-radius: var(--r-lg);
    padding: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.sc-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 166, 81, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.sc-newsletter h3 {
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    font-weight: 800;
    margin-bottom: 0.65rem;
    position: relative;
}

.sc-newsletter p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.sc-newsletter__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    position: relative;
}

/* Animations */
.sc-feature-card,
.sc-step-card,
.sc-testimonial-card {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: var(--ek-delay, 0s);
}

.sc-feature-card.is-visible,
.sc-step-card.is-visible,
.sc-testimonial-card.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .page-home .sc-hero__bg { animation: none; transform: none; }
}

@media (max-width: 991px) {
    .sc-features,
    .sc-steps,
    .sc-testimonials { grid-template-columns: repeat(2, 1fr); }
    /* 3 statistiques toujours sur une seule ligne — compact, icône au-dessus du texte, description masquée */
    .sc-hero__stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .sc-hero__stat {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.35rem;
        padding: 1rem 0.5rem;
        border-bottom: none !important;
    }
    .sc-hero__stat:not(:last-child) { border-right: 1px solid var(--line) !important; }
    .sc-hero__stat:last-child { border-right: none !important; }
    .sc-hero__stat-body span { display: none; }
    .sc-steps--connected::before { display: none; }
    .sc-hero-stats-band { margin-top: -2rem; }
    .sc-hero-trust { gap: 0.5rem 1rem; }
    .sc-features > .sc-feature-card:last-child:nth-child(odd):not(:only-child),
    .sc-steps > .sc-step-card:last-child:nth-child(odd):not(:only-child) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: min(100%, 360px);
        width: 100%;
    }
}

@media (max-width: 575px) {
    .sc-testimonials {
        grid-template-columns: 1fr;
        max-width: min(100%, 380px);
        margin-inline: auto;
    }

    /* 2 cartes par ligne, titre seul (description masquée) — évite l'empilement en 1 colonne */
    .sc-features,
    .sc-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
    .sc-feature-card,
    .sc-steps--connected .sc-step-card {
        padding: 1rem 0.6rem;
    }
    .sc-feature-card__icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.6rem;
        font-size: 1rem;
    }
    .sc-step-card::before {
        width: 34px;
        height: 34px;
        margin-bottom: 0.6rem;
        font-size: 0.9375rem;
    }
    .sc-feature-card h3,
    .sc-step-card h3 {
        font-size: 0.8125rem;
        margin-bottom: 0;
    }
    .sc-feature-card p,
    .sc-step-card p {
        display: none;
    }
    .page-home .sc-hero__content { padding-top: 4rem; }
    .sc-hero__scroll { display: none; }
    .sc-hero__stat {
        padding: 0.85rem 0.35rem;
    }
    .sc-hero__stat-icon {
        width: 34px;
        height: 34px;
    }
    .sc-hero__stat-icon i { font-size: 0.85rem; }
    .sc-hero__stat-body strong { font-size: 1.0625rem; }
    .sc-hero-trust span { font-size: 0.75rem; }
}

/* Services à la une (accueil) — cartes alignées page services */
.page-home .sc-schools-scroll .sc-home-svc-card {
    min-height: 0;
}

.page-home .sc-schools-scroll .sc-svc-card__media {
    height: 120px;
}

.page-home .sc-schools-scroll .sc-svc-card__title {
    font-size: 0.9375rem;
    min-height: 2.6em;
}

.page-home .sc-schools-scroll .sc-svc-card__desc {
    font-size: 0.8125rem;
    -webkit-line-clamp: 2;
}

.page-home .sc-home-svc-card__footer .btn {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.8125rem;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
}

.sc-home-services-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.5rem 1.25rem;
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: var(--r-lg);
    color: var(--muted);
}

.sc-home-services-empty i {
    font-size: 2rem;
    color: var(--sc-green);
    opacity: 0.55;
    margin-bottom: 0.75rem;
}

.sc-home-services-empty p {
    margin-bottom: 1rem;
}

@media (max-width: 575px) {
    .page-home .sc-schools-scroll {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0 1.75rem;
        max-width: 100%;
    }

    .page-home .sc-schools-scroll .sc-home-svc-card {
        width: 100%;
        max-width: min(272px, calc(100vw - 3.5rem));
        margin-inline: auto;
    }
}
