/* Modern Home Hero Split */
.mobile-only {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
}

.home-hero-split {
    display: flex;
    min-height: 82vh;
    padding-top: 0;
    background: var(--gray-50);
    overflow: hidden;
    border-bottom: 1px solid var(--gray-200);
}

.home-hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 8%;
    margin-top: 0;
}

.home-hero-badge {
    display: inline-flex !important;
    padding: 5px 12px;
    background: transparent;
    border: 1px solid var(--gray-200);
    color: var(--navy-900);
    border-radius: 0;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
    line-height: 1.5 !important;
    width: fit-content;
}

.home-hero-main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--navy-900);
    margin-bottom: 16px;
    max-width: 640px;
}

.hero-highlight {
    color: var(--navy-900);
}

.home-hero-left p {
    font-size: 1.05rem;
    color: var(--gray-600);
    max-width: 520px;
    margin-bottom: 26px;
    line-height: 1.6;
}

.hero-cert-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    margin-bottom: 10px;
    display: block;
}

.hero-cert-logos {
    display: flex;
    gap: 18px;
    align-items: center;
}

.hero-cert-logo {
    height: 34px;
    filter: none;
    opacity: 1;
}

.hero-cert-logo-cnje {
    height: 42px;
}

.hero-l30-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 0 4px 20px;
    border: none;
    border-left: 1px solid var(--gray-300);
    background: transparent;
    border-radius: 0;
}

.l30-main {
    background: transparent;
    color: var(--navy-900);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    padding: 0;
    border-radius: 0;
    line-height: 1;
    letter-spacing: -0.04em;
    position: relative;
}

.l30-main::after {
    content: '';
    position: absolute;
    top: 4px;
    right: -8px;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

.l30-text {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.4;
    max-width: 110px;
}

.home-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.btn-primary-home {
    background: var(--navy-900);
    color: var(--white);
    padding: 13px 24px;
    border-radius: 0;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
    border: 1px solid var(--navy-900);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.btn-primary-home:hover {
    background: var(--navy-700);
    border-color: var(--navy-700);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.btn-secondary-home {
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--navy-900);
    padding: 13px 24px;
    border-radius: 0;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.btn-secondary-home:hover {
    border-color: var(--navy-900);
    background: var(--gray-50);
    transform: translateY(-1px);
}

.home-hero-right {
    flex: 1;
    position: relative;
    clip-path: none;
    background: var(--gray-100);
    border-left: 1px solid var(--gray-200);
}

.home-hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

@media (max-width: 1024px) {
    .home-hero-split {
        flex-direction: column;
        padding-top: 0;
    }

    .home-hero-left {
        padding: 44px 24px;
        margin-top: 0;
    }

    .home-hero-right {
        min-height: 500px;
        clip-path: none;
    }
}

@media (max-width: 768px) {
    .home-hero-left {
        padding: 36px 20px;
    }

    .home-hero-actions {
        width: 100%;
        gap: 10px;
    }

    .btn-primary-home,
    .btn-secondary-home {
        width: 100%;
        text-align: center;
    }

    .home-hero-certifications {
        margin-top: 4px;
    }

    .home-hero-right {
        min-height: 280px;
        height: 35vh;
    }
}

.home-stats-section {
    padding: 88px 48px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.home-stats-container {
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    z-index: 1; /* Solves mobile stacking context created by the left-scroll animation */
}

.home-stats-container>div {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    padding: 26px 22px;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2; /* Forces boxes to be clearly above background elements */
}

.home-stat-value {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.05;
    margin-bottom: 8px;
}

.home-stat-label {
    font-size: 0.78rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0;
    font-weight: 600;
}

@media (max-width: 768px) {
    .home-stats-section {
        padding: 44px 0;
        overflow: hidden;
    }

    .home-stats-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 16px;
        padding: 0 20px;
        width: max-content;
        animation: scroll-stats 35s linear infinite;
    }

    .home-stats-container > div {
        min-width: 160px;
        max-width: 180px;
        min-height: 108px;
        padding: 18px 14px;
    }

    .home-stat-label {
        font-size: 0.72rem;
    }

    @keyframes scroll-stats {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }
}


.home-section-block {
    padding: 140px 48px;
}

.home-section-alt {
    background: var(--gray-50);
}

.home-section-white {
    background: var(--white);
}

.home-container-wide {
    max-width: 1400px;
    margin: 0 auto;
}

.home-container-medium {
    max-width: 1200px;
    margin: 0 auto;
}

.home-section-intro {
    max-width: 600px;
    margin: 0 auto 64px;
}

.home-section-kicker {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(250, 184, 46, 0.15);
    color: var(--gold-dark);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.home-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 20px;
}

.home-section-text {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.home-section-footer {
    margin-top: 64px;
}

.home-btn-light {
    background: transparent;
    border: 2px solid var(--navy-900);
    color: var(--navy-900);
    padding: 16px 36px;
    border-radius: 0;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-btn-light::after {
    content: '→';
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.home-btn-light:hover {
    background: var(--navy-900);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(13, 14, 48, 0.15);
}

.home-btn-light:hover::after {
    transform: translateX(6px);
}

.home-grid-empty {
    text-align: center;
    color: var(--gray-500);
    grid-column: 1/-1;
}

.home-etude-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

/* Home Etudes Grid - Clean Style */
.home-etudes-clean-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 32px;
}

.home-etudes-clean-grid>a:first-child {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
}

@media (max-width: 768px) {
    .home-etudes-clean-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .home-etudes-clean-grid>a:first-child {
        flex-direction: column;
    }
}

.home-etude-clean-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
    min-height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-etude-clean-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--gray-300);
}

.home-etude-clean-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--gray-100);
}

.home-etudes-clean-grid>a:first-child .home-etude-clean-image {
    height: auto;
    width: 50%;
    min-height: 350px;
}

@media (max-width: 768px) {
    .home-etudes-clean-grid>a:first-child .home-etude-clean-image {
        width: 100%;
        min-height: 240px;
    }
}

.home-etude-clean-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.home-etude-clean-card:hover .home-etude-clean-image img {
    transform: scale(1.05);
}

.home-etude-clean-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--white);
    color: var(--navy-900);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.home-etude-clean-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 220px;
}

.home-etudes-clean-grid>a:first-child .home-etude-clean-content {
    width: 50%;
    justify-content: center;
    padding: 48px;
}

@media (max-width: 768px) {
    .home-etudes-clean-grid>a:first-child .home-etude-clean-content {
        width: 100%;
        padding: 32px;
    }
}

.home-etude-clean-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-900);
    margin: 0 0 12px;
    line-height: 1.3;
}

.home-etudes-clean-grid>a:first-child .home-etude-clean-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.home-etude-clean-excerpt {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 24px;
    flex: 1;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-etudes-clean-grid>a:first-child .home-etude-clean-excerpt {
    font-size: 1.1rem;
    flex: none;
    margin-bottom: 32px;
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

.home-etude-clean-more {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold-dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-etude-clean-more svg {
    transition: transform 0.3s;
}

.home-etude-clean-card:hover .home-etude-clean-more svg {
    transform: translateX(4px);
}

/* Flèche reveal au hover (Style Études) */
.home-etude-clean-card::after {
    content: '→';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-900);
    font-size: 15px;
    z-index: 4;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.home-etude-clean-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Original CNE Team Grid details */
.cne-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.team-card-cne {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.home-team-card {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.home-team-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    font-size: 4rem;
}

.home-team-content {
    padding: 24px;
    text-align: center;
}

.home-team-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.home-team-role {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin: 0;
}

.team-card-cne:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.team-photo-cne {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    position: relative;
    overflow: hidden;
}

.team-photo-cne img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-linkedin-cne {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--navy-900);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.team-card-cne:hover .team-linkedin-cne {
    opacity: 1;
    transform: translateY(0);
}

.team-linkedin-cne:hover {
    background: var(--gold);
    color: var(--navy-900);
}

.text-center {
    text-align: center;
}

/* ============================================
   TÉMOIGNAGES V2 — Design Carte Premium
   ============================================ */

/* Section background: navy gradient */
.testimonials-section-v2 {
    background: linear-gradient(160deg, #0d0e30 0%, #171840 40%, #1c3a6e 100%) !important;
    padding: 120px 48px;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative shapes in the background */
.testimonials-section-v2::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: rgba(14, 116, 186, 0.15);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.testimonials-section-v2::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: rgba(250, 182, 0, 0.08);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

/* Geometric line pattern overlay (subtle) */
.testimonials-section-v2 .home-section-intro {
    position: relative;
    z-index: 2;
}

/* Light text variants for the dark section */
.home-section-kicker--light {
    color: var(--gold) !important;
    border-color: rgba(250, 182, 0, 0.25) !important;
    background: rgba(250, 182, 0, 0.08) !important;
}

.home-section-title--light {
    color: #fff !important;
}

.home-section-text--light {
    color: rgba(255, 255, 255, 0.65) !important;
}

/* Grid */
.temoignages-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    position: relative;
    z-index: 2;
}

/* Card */
.temoignage-card-v2 {
    position: relative;
    background: #fff;
    border-radius: 20px;
    border: 2px solid var(--navy-900);
    padding: 56px 36px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.temoignage-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.25);
}

/* Decorative large quote marks */
.temoignage-quote {
    position: absolute;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 4.5rem;
    line-height: 1;
    color: var(--gold);
    pointer-events: none;
    z-index: 1;
    font-weight: 700;
}

.temoignage-quote--open {
    top: 16px;
    left: 24px;
}

.temoignage-quote--close {
    bottom: -8px;
    right: 24px;
}

/* Logo CNE */
.temoignage-logo {
    width: 120px;
    height: auto;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.temoignage-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Titre encadré (framed title) */
.temoignage-title-frame {
    position: relative;
    z-index: 2;
    border: 2.5px solid var(--gold);
    padding: 12px 24px;
    margin: 4px 0 12px;
}

.temoignage-title-frame strong {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Commentaire texte */
.temoignage-comment {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--navy-800);
    position: relative;
    z-index: 2;
    margin: 0;
    flex: 1;
}

/* Secteur badge */
.temoignage-sector {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    background: rgba(250, 182, 0, 0.1);
    padding: 4px 14px;
    border-radius: 100px;
    margin-top: 4px;
    position: relative;
    z-index: 2;
}

/* Global Megaphones for the entire grid */
.temoignage-megaphone-global {
    position: absolute;
    width: 220px;
    height: 220px;
    opacity: 1;
    z-index: 5;
    pointer-events: none;
    transition: transform 0.4s ease;
}

.temoignage-megaphone-global--tl {
    top: -155px;
    left: -160px;
    transform: scaleX(-1) rotate(-15deg);
}

.temoignage-megaphone-global--br {
    bottom: -130px;
    right: -175px;
    transform: rotate(20deg);
}

/* Alternate cards: slightly warmer border */
.temoignages-grid-v2 .temoignage-card-v2:nth-child(3n) {
    border-color: #1c3a6e;
}

/* ============================================
   TÉMOIGNAGES V2 — Responsive
   ============================================ */

@media (max-width: 1024px) {
    .temoignages-grid-v2 {
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 0 24px 20px;
        margin: 0;
        scrollbar-width: none;
        height: auto;
    }

    .temoignages-grid-v2::-webkit-scrollbar {
        display: none;
    }

    .temoignage-card-v2 {
        flex: 0 0 85vw;
        max-width: 400px;
        scroll-snap-align: start;
    }

    .testimonials-section-v2 {
        overflow: hidden;
        padding: 84px 20px;
    }
}

@media (max-width: 768px) {
    .testimonials-section-v2 {
        padding: 60px 0 80px;
        overflow: hidden;
    }

    .testimonials-section-v2 .container {
        padding-left: 0;
        padding-right: 0;
        overflow: hidden;
    }

    .home-section-intro {
        margin-bottom: 42px;
    }

    .home-section-text {
        padding: 0 20px;
    }

    .temoignages-grid-v2 {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 0 16px 24px;
        margin: 0 -16px;
        gap: 16px;
        height: auto;
        scrollbar-width: none;
    }

    .temoignages-grid-v2::-webkit-scrollbar {
        display: none;
    }

    .temoignage-card-v2 {
        flex: 0 0 82vw;
        max-width: 340px;
        padding: 28px 18px 24px;
        scroll-snap-align: center;
        transform: none !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
        overflow: hidden;
    }

    .temoignage-card-v2:hover {
        transform: none !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }

    .temoignage-quote {
        font-size: 2.8rem;
    }

    .temoignage-quote--open {
        top: 8px;
        left: 12px;
    }

    .temoignage-quote--close {
        bottom: 0;
        right: 12px;
    }

    .temoignage-title-frame {
        padding: 8px 16px;
        margin: 0 0 8px;
    }

    .temoignage-title-frame strong {
        font-size: 0.9rem;
    }

    .temoignage-comment {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .temoignage-logo {
        width: 80px;
        margin-bottom: 6px;
    }

    .temoignage-sector {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    .temoignage-megaphone-global {
        display: none;
    }
}

    .temoignages-grid-v2::-webkit-scrollbar {
        display: none;
    }

    .temoignage-card-v2 {
        flex: 0 0 85vw;
        max-width: 400px;
        scroll-snap-align: start;
    }

    .testimonials-section-v2 {
        overflow: visible;
        padding: 84px 20px;
    }
}

@media (max-width: 768px) {
    .testimonials-section-v2 {
        padding: 60px 0 80px;
        overflow: hidden;
    }

    .testimonials-section-v2 .container {
        padding-left: 16px;
        padding-right: 16px;
        overflow: visible;
    }

    .home-section-text {
        padding: 0 20px;
    }

    .temoignages-grid-v2 {
        padding: 0 16px 24px;
        margin: 0;
        gap: 16px;
    }

    .temoignage-card-v2 {
        flex: 0 0 82vw;
        max-width: 340px;
        padding: 28px 18px 24px;
        scroll-snap-align: center;
        transform: none !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }

    .temoignage-card-v2:hover {
        transform: none !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }

    .temoignage-quote {
        font-size: 2.8rem;
    }

    .temoignage-quote--open {
        top: 8px;
        left: 12px;
    }

    .temoignage-quote--close {
        bottom: 0;
        right: 12px;
    }

    .temoignage-title-frame {
        padding: 8px 16px;
        margin: 0 0 8px;
    }

    .temoignage-title-frame strong {
        font-size: 0.9rem;
    }

    .temoignage-comment {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .temoignage-logo {
        width: 64px;
        margin-bottom: 4px;
    }

    .temoignage-sector {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    .temoignage-megaphone-global {
        display: block !important;
        width: 120px;
        height: 120px;
        opacity: 0.9;
    }

    .temoignage-megaphone-global--tl {
        top: -84px;
        left: -86px;
    }

    .temoignage-megaphone-global--br {
        bottom: -76px;
        right: -97px;
    }
}


.home-partners-section {
    padding: 64px 48px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.home-partners-title-wrap {
    margin-bottom: 36px;
}

.home-partners-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--navy-900);
}

.home-partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
}

/* Mobile: Horizontal auto-scrolling partners slider */
@media (max-width: 768px) {
    .home-partners-section {
        padding: 44px 0;
        overflow: hidden;
    }

    .home-partners-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 24px;
        padding: 0 20px;
        width: max-content;
        animation: scroll-partners 40s linear infinite;
    }

    .home-partners-grid .partner-logo {
        flex-shrink: 0;
        min-width: 140px;
        max-width: 160px;
    }

    .home-partners-grid .partners-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 24px;
    }

    @keyframes scroll-partners {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }
}

.home-cta-section {
    padding: 120px 48px;
    background: var(--gray-50);
    text-align: center;
}

.home-cta-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--navy-900); /* Inverted CTA: Bleu nuit */
    border: none;
    box-shadow: 0 24px 60px rgba(13, 14, 48, 0.25);
    padding: 90px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Internal glows for the inverted CTA */
.home-cta-container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(250, 182, 0, 0.25); /* Jaune orangé glow */
    filter: blur(80px);
    border-radius: 50%;
    pointer-events: none;
}

.home-cta-container::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: rgba(14, 116, 186, 0.3); /* Bleu azur glow */
    filter: blur(70px);
    border-radius: 50%;
    pointer-events: none;
}

.home-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--white); /* White title */
    margin-bottom: 24px;
    line-height: 1.15;
    position: relative;
    z-index: 2;
}

.home-cta-text {
    font-size: 1.25rem;
    color: var(--gray-300); /* Lighter gray text */
    margin-bottom: 48px;
    line-height: 1.6;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.home-cta-actions {
    display: inline-flex;
    gap: 16px;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.home-cta-button {
    background: var(--gold); /* Jaune orangé */
    color: var(--navy-900);
    padding: 18px 44px;
    border-radius: 0;
    font-weight: 800;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 8px 24px rgba(250, 182, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-cta-button:hover {
    background: var(--white);
    color: var(--navy-900);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(255, 255, 255, 0.25);
}

.btn-primary-home:focus-visible,
.btn-secondary-home:focus-visible,
.home-btn-light:focus-visible,
.home-cta-button:focus-visible,
.home-etude-clean-card:focus-visible,
.team-linkedin-cne:focus-visible {
    outline: 2px solid var(--navy-700);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .team-photo-cne {
        aspect-ratio: 1.15;
    }

    .home-section-block {
        padding: 84px 20px;
    }

    .home-section-intro {
        margin: 0 auto 42px;
    }

    .home-section-text {
        font-size: 1rem;
    }

    .home-partners-section {
        padding: 44px 20px;
    }


    .home-cta-section {
        padding: 74px 20px;
    }

    .home-cta-container {
        padding: 44px 24px;
    }

    .home-cta-title {
        font-size: 1.25rem;
    }

    .home-cta-text {
        font-size: 0.85rem;
    }
}

/* Style alignment with Contact page: avoid rounded corners on home (except team cards) */
.home-hero-badge,
.btn-primary-home,
.btn-secondary-home,
.home-section-kicker,
.home-btn-light,
.home-etude-clean-card,
.home-etude-clean-badge,
.home-etude-clean-card::after {
    border-radius: 0;
}

/* --- Arrière-plans et Reliefs (Brand Colors) --- */
/* Colors: Bleu nuit (#0d0e30), Jaune orangé (#Fab600), Bleu azur (#0e74ba) */

body {
    position: relative;
    overflow-x: hidden;
}

/* Hero Section Subtle Background and Relief Shapes */
.home-hero-split {
    position: relative;
    z-index: 1;
}

.home-hero-left {
    position: relative;
    z-index: 2;
}

/* Hero abstract modern blur glows (fixes banding/traits discontinus) */
.home-hero-split::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -15%;
    width: 50%;
    height: 60%;
    background: rgba(250, 182, 0, 0.45); /* Jaune orangé fort */
    filter: blur(120px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.home-hero-split::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: 20%;
    width: 45%;
    height: 55%;
    background: rgba(14, 116, 186, 0.40); /* Bleu azur fort */
    filter: blur(120px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* Abstract relief shapes on sections */
.home-section-block {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Floating Relief Shape 1 (Orange Solid) */
.home-section-white::before {
    content: '';
    position: absolute;
    top: 50px;
    right: -60px;
    width: 140px;
    height: 140px;
    border: 6px solid rgba(250, 182, 0, 0.85); /* Jaune orangé continu */
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    transform: translateY(-50%);
}

/* Floating Relief Shape 2 (Azure Solid filled) */
.home-section-alt::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    background: rgba(14, 116, 186, 0.18); /* Bleu azur en fond */
    border-radius: 30%;
    z-index: 0;
    pointer-events: none;
    transform: rotate(25deg);
}

/* Additional Relief Shape 3 (Bleu nuit thick outline) */
.home-partners-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.home-partners-section::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    border: 5px solid rgba(13, 14, 48, 0.85); /* Bleu nuit continu */
    border-radius: 12%;
    z-index: 0;
    pointer-events: none;
    transform: rotate(45deg);
}

/* Background elements for Stats Section */
.home-stats-section {
    position: relative;
    z-index: 1;
}

/* Grid pattern dot map taking the whole banner, kept behind the boxes by z-index */
.home-stats-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(rgba(13, 14, 48, 0.35) 2px, transparent 2px); /* Bleu nuit lisible */
    background-size: 28px 28px;
    pointer-events: none;
}

/* CTA glowing backdrop with blur instead of radial gradient */
.home-cta-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.home-cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: rgba(13, 14, 48, 0.25);
    filter: blur(140px);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

/* --- Ajustements Mobiles pour les nouveaux designs premium --- */
@media (max-width: 768px) {
    .home-btn-light {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }


    .home-cta-container::before {
        width: 150px;
        height: 150px;
        filter: blur(50px);
        top: -20px;
        right: -20px;
    }

    .home-cta-container::after {
        width: 150px;
        height: 150px;
        filter: blur(50px);
        bottom: -20px;
        left: -20px;
    }

    .home-cta-button {
        width: 100%;
        text-align: center;
        padding: 16px 24px;
    }
}