/* ============================================
   JUNIOR CIS — Design Premium & Éditorial
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red:         #C41E3A;
    --red-dark:    #A0172E;
    --dark:        #111111;
    --mid:         #444444;
    --light:       #888888;
    --border:      #E2E2E2;
    --bg:          #F7F7F7;
    --white:       #FFFFFF;

    /* Legacy aliases (pour ne pas casser le HTML) */
    --primary-color:   var(--red);
    --primary-dark:    var(--red-dark);
    --primary-light:   #D63050;
    --secondary-color: #2C3E50;
    --text-dark:       var(--dark);
    --text-color:      var(--mid);
    --text-light:      var(--light);
    --text-muted:      #999;
    --bg-light:        var(--bg);
    --bg-ultra-light:  #FAFAFA;
    --shadow:          0 1px 4px rgba(0,0,0,0.08);
    --shadow-lg:       0 4px 20px rgba(0,0,0,0.08);
    --shadow-xl:       0 8px 40px rgba(0,0,0,0.10);
    --border-radius:   6px;
    --transition:      all 0.2s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    color: var(--mid);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.loading {
    overflow: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

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

.loading-logo {
    margin-bottom: 0;
}

.loading-logo-stack {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.loading-logo-stack img {
    height: clamp(160px, 28vw, 260px);
    width: auto;
    display: block;
}

.loading-logo-ghost {
    opacity: 0.14;
    filter: grayscale(1);
}

.loading-logo-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    height: 0%;
    transition: height 0.12s ease-out;
}

.loading-logo-fill img {
    position: absolute;
    bottom: 0;
    left: 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

/* Navbar transparente sur les pages à hero image */
.page-header-overlay .navbar {
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.page-header-overlay .navbar.navbar--solid {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.page-header-overlay .navbar:not(.navbar--solid) .logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
}

.page-home.page-header-overlay .navbar:not(.navbar--solid) .logo-img {
    filter: drop-shadow(0 1px 3px rgba(255, 255, 255, 0.55)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.page-header-overlay .navbar.navbar--solid .logo-img {
    filter: none;
}

/* Onglets principaux uniquement — pas les sous-menus */
.page-header-overlay .navbar:not(.navbar--solid) .nav-menu > li > a:not(.btn-devis-nav),
.page-header-overlay .navbar:not(.navbar--solid) .nav-menu > li > .dropdown-toggle {
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.page-header-overlay .navbar:not(.navbar--solid) .nav-menu > li > a:not(.btn-devis-nav):hover,
.page-header-overlay .navbar:not(.navbar--solid) .nav-menu > li > .dropdown-toggle:hover,
.page-header-overlay .navbar:not(.navbar--solid) .nav-menu > li > a:not(.btn-devis-nav).active,
.page-header-overlay .navbar:not(.navbar--solid) .nav-menu > li > .dropdown-toggle.active {
    color: var(--white);
}

.page-header-overlay .navbar:not(.navbar--solid) .nav-menu > li > a:not(.btn-devis-nav)::after,
.page-header-overlay .navbar:not(.navbar--solid) .nav-menu > li > .dropdown-toggle::after {
    background: var(--white);
}

/* Sous-menus toujours lisibles sur fond blanc */
.page-header-overlay .navbar .dropdown-menu a,
.page-header-overlay .navbar .mega-menu-col a {
    color: var(--mid);
    text-shadow: none;
}

.page-header-overlay .navbar .dropdown-menu a:hover,
.page-header-overlay .navbar .mega-menu-col a:hover,
.page-header-overlay .navbar .mega-menu-col a.active {
    color: var(--red);
}

.page-header-overlay .navbar .mega-menu-title {
    color: var(--dark);
    text-shadow: none;
}

.page-header-overlay .navbar .dropdown-menu {
    background: var(--white);
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
}

.page-header-overlay .navbar:not(.navbar--solid) .btn-devis-nav {
    background: var(--red) !important;
    color: var(--white) !important;
    border: 1.5px solid var(--red) !important;
    backdrop-filter: none;
    box-shadow: 0 4px 14px rgba(196, 30, 58, 0.35) !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem !important;
    padding: 0.6rem 1.25rem !important;
}

.page-header-overlay .navbar:not(.navbar--solid) .btn-devis-nav:hover {
    background: var(--red-dark) !important;
    border-color: var(--red-dark) !important;
    color: var(--white) !important;
}

.page-header-overlay .navbar.navbar--solid .nav-menu > li > a:not(.btn-devis-nav),
.page-header-overlay .navbar.navbar--solid .nav-menu > li > .dropdown-toggle {
    color: var(--mid);
    text-shadow: none;
}

.page-header-overlay .navbar.navbar--solid .nav-menu > li > a:not(.btn-devis-nav):hover,
.page-header-overlay .navbar.navbar--solid .nav-menu > li > .dropdown-toggle:hover,
.page-header-overlay .navbar.navbar--solid .nav-menu > li > a:not(.btn-devis-nav).active,
.page-header-overlay .navbar.navbar--solid .nav-menu > li > .dropdown-toggle.active {
    color: var(--dark);
}

.page-header-overlay .navbar.navbar--solid .nav-menu > li > a:not(.btn-devis-nav)::after,
.page-header-overlay .navbar.navbar--solid .nav-menu > li > .dropdown-toggle::after {
    background: var(--red);
}

.page-header-overlay .navbar:not(.navbar--solid) .mobile-menu-toggle span {
    background: var(--white);
}

.nav-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr 220px;
    align-items: center;
    height: 88px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    grid-column: 1;
    justify-self: start;
}

.logo:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.logo-img {
    height: 64px;
    width: auto;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.35rem;
    align-items: center;
    margin: 0;
    padding: 0;
    grid-column: 2;
    justify-self: center;
}

.nav-devis-slot {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
}

.nav-devis-mobile {
    display: none;
}

.nav-menu > li > a:not(.btn-devis-nav),
.nav-menu > li > .dropdown-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    border-radius: 0;
    border-bottom: none;
    transition: color 0.2s ease;
    font-size: 0.96rem;
}

.nav-menu > li > a:not(.btn-devis-nav)::after,
.nav-menu > li > .dropdown-toggle::after {
    content: '';
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.2rem;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-menu > li > a:not(.btn-devis-nav):hover,
.nav-menu > li > .dropdown-toggle:hover {
    color: var(--dark);
}

.nav-menu > li > a:not(.btn-devis-nav):hover::after,
.nav-menu > li > .dropdown-toggle:hover::after {
    transform: scaleX(1);
}

.nav-menu > li > a:not(.btn-devis-nav).active,
.nav-menu > li > .dropdown-toggle.active {
    color: var(--dark);
    font-weight: 600;
}

.nav-menu > li > a:not(.btn-devis-nav).active::after,
.nav-menu > li > .dropdown-toggle.active::after {
    transform: scaleX(0);
}

.nav-menu > li > a:not(.btn-devis-nav):active,
.nav-menu > li > .dropdown-toggle:active {
    transform: none;
}

.mobile-menu-toggle {
    display: none;
    grid-column: 3;
    justify-self: end;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    z-index: 1001;
}

.nav-menu li {
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--mid);
    font-weight: 500;
    font-size: 0.96rem;
    transition: color 0.2s;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--dark);
}

.btn-devis-nav {
    background: var(--red) !important;
    color: var(--white) !important;
    padding: 0.55rem 1.3rem !important;
    border-radius: 4px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
    letter-spacing: 0.01em;
    border-bottom: none !important;
}

.btn-devis-nav:hover {
    background: var(--red-dark) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(196, 30, 58, 0.35);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 6px 0;
    min-width: 210px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.18s ease;
    list-style: none;
    box-shadow: var(--shadow-lg);
    z-index: 200;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: var(--mid);
    font-size: 0.88rem;
    transition: all 0.15s;
}

.dropdown-menu a:hover {
    background: var(--bg);
    color: var(--red);
    padding-left: 1.5rem;
}

/* Mega menu — Nos offres */
.dropdown-mega {
    position: static;
}

.dropdown-mega .mega-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-6px);
    min-width: min(1100px, calc(100vw - 48px));
    padding: 1.25rem 1.5rem;
}

.dropdown-mega:hover .mega-menu {
    transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}

.mega-menu-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-menu-title {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dark);
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--red);
}

.mega-menu-col a {
    display: block;
    padding: 0.45rem 0;
    color: var(--mid);
    font-size: 0.86rem;
    line-height: 1.35;
    transition: color 0.15s, padding-left 0.15s;
}

.mega-menu-col a:hover,
.mega-menu-col a.active {
    color: var(--red);
    padding-left: 0.35rem;
    background: transparent;
}

/* Mobile toggle */
.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.25s;
}

/* ============================================
   HERO
   ============================================ */
.hero-modern {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    margin-top: 88px;
    background: #111;
    overflow: hidden;
}

.page-header-overlay .hero-modern {
    margin-top: 0;
    padding-top: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Hero landing — plein écran centré (inspiré modèle éditorial) */
.hero-modern--landing {
    display: block;
    padding: 0;
    align-items: stretch;
}

.hero-modern--landing .hero-image-bg img {
    object-position: center 40%;
}

.hero-landing-inner {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: calc(88px + 2rem) 1.5rem 2.5rem;
    text-align: center;
}

.hero-landing-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.hero-landing-logo {
    width: clamp(180px, 26vw, 300px);
    height: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1) drop-shadow(0 2px 14px rgba(0, 0, 0, 0.35));
}

.hero-landing-title-main {
    display: block;
    font-size: clamp(2rem, 5.5vw, 3.75rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.hero-landing-tagline {
    margin: 0;
    font-size: clamp(0.82rem, 1.8vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-landing-tagline--sub {
    font-size: clamp(0.78rem, 1.5vw, 0.92rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1.25rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.hero-mini-stats--hero {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(2rem, 5vw, 4rem);
    width: 100%;
    max-width: 820px;
    margin: 0.5rem auto 1.25rem;
    padding: 0;
}

.hero-mini-stats--hero .mini-stat {
    text-align: center;
    flex: 0 1 auto;
    min-width: 120px;
}

.hero-mini-stats--hero .mini-stat-value {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-mini-stats--hero .mini-stat-label {
    font-size: 0.82rem;
    color: var(--white) !important;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45), 0 0 8px rgba(0, 0, 0, 0.25);
}

.hero-scroll-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
    animation: heroScrollBounce 2s ease-in-out infinite;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
    opacity: 0.9;
}

.hero-landing-tagline.hero-badge {
    background: none;
    border: none;
    padding: 0;
    animation: none;
    margin-bottom: 0.65rem;
    font-size: clamp(0.95rem, 2.1vw, 1.2rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--white);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-landing-title {
    margin: 0 0 1.25rem;
    line-height: 1.05;
}

@keyframes heroScrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.85; }
    50% { transform: translateY(8px); opacity: 1; }
}

.hero-landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 0.5rem;
}

.btn-hero-landing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: min(100%, 280px);
    padding: 1rem 2rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-landing--primary,
.hero-landing-actions .btn-primary-modern {
    background: var(--red) !important;
    color: var(--white) !important;
    border: 2px solid var(--red) !important;
    box-shadow: 0 8px 28px rgba(196, 30, 58, 0.35);
}

.btn-hero-landing--primary:hover,
.hero-landing-actions .btn-primary-modern:hover {
    background: var(--red-dark) !important;
    border-color: var(--red-dark) !important;
    transform: translateY(-2px);
}

.btn-hero-landing--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
}

.btn-hero-landing--ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

/* Transition hero → contenu blanc */
.hero-intro-bridge {
    background: var(--white);
    padding: 1.25rem 0 0;
    text-align: center;
    border-top: none;
}

/* ============================================
   VAGUES DE SECTION — courbes logo JCS
   ============================================ */
.jcs-wave {
    display: block;
    width: 100%;
    line-height: 0;
    margin: 0;
    padding: 0;
    font-size: 0;
    overflow: hidden;
}

.jcs-wave svg {
    display: block;
    width: 100%;
    vertical-align: bottom;
}

.jcs-wave--hero {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 2;
    pointer-events: none;
}

.jcs-wave--hero svg {
    height: clamp(56px, 10vw, 130px);
}

.jcs-wave--soft svg {
    height: clamp(28px, 3.5vw, 48px);
}

.jcs-wave--to-gray svg,
.jcs-wave--to-cta svg {
    height: clamp(44px, 6.5vw, 96px);
}

.jcs-wave--to-gray-light svg {
    height: clamp(32px, 4.5vw, 64px);
}

.page-home .jcs-wave--soft {
    margin-top: -1px;
}

.page-home .jcs-wave--to-gray {
    margin-top: -1px;
}

.page-home .jcs-wave--to-cta {
    margin-top: -1px;
}

.page-home.page-header-overlay .hero-modern {
    min-height: 0;
}

.page-home .hero-modern--landing {
    min-height: 0;
}

.page-home .hero-landing-inner {
    position: relative;
    min-height: calc(100dvh - clamp(62px, 7.5vh, 92px));
    max-height: calc(100dvh - clamp(62px, 7.5vh, 92px));
    padding: calc(88px + 1.65rem) 1.5rem calc(clamp(56px, 10vw, 130px) + 4.5rem);
    justify-content: flex-start;
}

.page-home .hero-landing-center {
    justify-content: flex-start;
    flex: 0 1 auto;
    min-height: 0;
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
}

.page-home .hero-landing-logo {
    width: clamp(165px, 24vw, 280px);
    margin-top: 0.5rem;
    margin-bottom: 1.35rem;
}

.page-home .hero-landing-title {
    margin-bottom: 0.85rem;
}

.page-home .hero-landing-title-main {
    font-size: clamp(1.65rem, 4.5vw, 3rem);
}

.page-home .hero-mini-stats--hero {
    gap: clamp(1.25rem, 3vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.page-home .hero-scroll-hint {
    margin-top: 0.35rem;
}

.page-home .hero-landing-actions {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: clamp(56px, 10vw, 130px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    width: min(calc(100% - 3rem), 640px);
    margin: 0;
    padding: 0;
    z-index: 3;
}

.page-home .hero-landing-actions .btn-hero-landing {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    /* Ovales un peu plus bas qu’à l’origine, un peu plus hauts que la dernière version */
    padding: 0.72rem 1.25rem;
    min-height: 0;
    font-size: 0.8rem;
    line-height: 1.15;
    white-space: nowrap;
}

.page-home .hero-landing-actions .btn-hero-landing span {
    white-space: nowrap;
}

/*
 * Hors Mac (Windows, Linux…) : polices / DPI plus hauts → les CTA en absolute
 * chevauchaient les KPI. On les remet dans le flux flex (Mac inchangé).
 */
@media (min-width: 769px) {
    html.os-not-mac .page-home .hero-landing-inner,
    html.os-windows .page-home .hero-landing-inner {
        justify-content: flex-start;
        max-height: none;
        min-height: calc(100dvh - clamp(62px, 7.5vh, 92px));
        padding-bottom: calc(clamp(56px, 10vw, 130px) + 1.25rem);
    }

    html.os-not-mac .page-home .hero-landing-center,
    html.os-windows .page-home .hero-landing-center {
        flex: 1 1 auto;
        justify-content: center;
        padding-bottom: 1.25rem;
        min-height: 0;
    }

    html.os-not-mac .page-home .hero-mini-stats--hero,
    html.os-windows .page-home .hero-mini-stats--hero {
        margin-bottom: 0.85rem;
    }

    html.os-not-mac .page-home .hero-landing-actions,
    html.os-windows .page-home .hero-landing-actions {
        position: static;
        left: auto;
        bottom: auto;
        transform: none;
        margin-top: 1.5rem;
        margin-bottom: 0;
        width: min(100%, 560px);
        max-width: 560px;
        gap: 0.85rem;
    }

    html.os-not-mac .page-home .hero-landing-actions .btn-hero-landing,
    html.os-windows .page-home .hero-landing-actions .btn-hero-landing {
        padding: 0.65rem 1.1rem;
        font-size: 0.8rem;
    }
}

.page-home .hero-intro-bridge {
    padding-top: 0.35rem;
    padding-bottom: 1.75rem;
    text-align: center;
}

.page-home .clients-marquee-section {
    padding-top: 1.5rem;
}

.page-home .clients-marquee-label {
    font-size: clamp(0.92rem, 1.4vw, 1.05rem);
    letter-spacing: 0.14em;
    margin-bottom: 1rem;
}

.page-home .jcs-wave--soft + .distinctions-section {
    padding-top: 1.75rem;
}

.page-home .jcs-wave--soft + .excellence-section {
    padding-top: 1.75rem;
}

.page-home .jcs-wave--to-gray + .expertises-modern {
    padding-top: 2rem;
}

.page-home .jcs-wave--to-gray-light + .deroule-section {
    padding-top: 1.75rem;
}

.page-home .jcs-wave--to-cta + .cta-modern {
    padding-top: 4rem;
}

.page-home .deroule-section {
    margin-bottom: 0;
    border-top: none;
    border-bottom: none;
}

.page-home .distinctions-section {
    padding: 2rem 0 3rem;
}

.page-home .excellence-section {
    padding: 2rem 0 3.5rem;
}

.page-home .expertises-modern {
    padding: 2rem 0 4.5rem;
}

.page-home .deroule-section {
    padding: 2rem 0 3.5rem;
}

.page-home .section-heading {
    text-align: left;
    margin-bottom: 1.75rem;
    font-size: clamp(1.45rem, 2.6vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.page-home .section-heading--center {
    text-align: center;
}

.page-home .section-heading.reveal-on-scroll .section-heading-accent {
    color: var(--dark);
    transition: color 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.page-home .section-heading.reveal-on-scroll.is-visible .section-heading-accent {
    color: var(--red);
}

.page-home .hero-intro-bridge-title.section-heading {
    white-space: normal;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.5rem;
    max-width: 920px;
}

.page-home .distinctions-title.section-heading,
.page-home .excellence-title.section-heading,
.page-home .section-title-modern.section-heading {
    text-align: left;
    margin-bottom: 1.75rem;
}

.page-home .section-header-modern {
    margin-bottom: 2rem;
}

.page-home .deroule-section .section-heading--center {
    margin-bottom: 2rem;
}

/* Fonds alternés — blanc entre chaque section grise (pas de beige/rose) */
.page-home {
    --home-white: #FFFFFF;
    --home-gray:  #F7F7F7;
}

.page-home .hero-intro-bridge,
.page-home .clients-marquee-section {
    background: var(--home-white);
}

.page-home .distinctions-section {
    background: var(--home-gray);
}

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

.page-home .expertises-modern {
    background: var(--home-gray);
}

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

/* Fond du conteneur vague = couleur de la section au-dessus (évite la bande blanche) */
.page-home .jcs-wave--to-gray {
    background: var(--home-white);
}

.page-home .jcs-wave--to-white {
    background: var(--home-gray);
}

.page-home .jcs-wave--to-cta,
.page-home .jcs-wave--blush-to-cta {
    /* Même fond que le déroulé au-dessus (évite le trait droit blanc/gris) */
    background: var(--home-white);
    margin-bottom: -1px;
}

.page-home .excellence-section .excellence-item-compact {
    background: var(--home-gray);
}

.page-home .excellence-section .excellence-item-compact:hover {
    background: var(--home-white);
}

.hero-intro-bridge-title {
    font-size: clamp(0.72rem, 2.1vw, 1.55rem);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    white-space: normal;
}

.hero-intro-bridge-desc,
.hero-intro-bridge .hero-description {
    color: var(--dark);
    max-width: 620px;
    margin: 0 auto;
    text-shadow: none;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.65;
}

.hero-mini-stats--bridge {
    justify-content: center;
    margin: 0 auto;
    max-width: 720px;
}

.hero-mini-stats--bridge .mini-stat-value {
    color: var(--dark);
    font-size: 2.5rem;
}

.hero-mini-stats--bridge .mini-stat-label {
    color: var(--light);
}

.hero-mini-stats--bridge .mini-stat-divider {
    background: var(--border);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image-bg {
    position: absolute;
    inset: 0;
}

.hero-image-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    opacity: 1;
}

.hero-background::after {
    display: none;
}

.hero-content-modern {
    position: relative;
    z-index: 1;
    max-width: 720px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.92);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.22);
    letter-spacing: 0.04em;
    animation: badgePulse 3s ease-in-out infinite;
}

.hero-badge-featured {
    background: linear-gradient(135deg, rgba(196,30,58,0.35), rgba(255,255,255,0.12));
    border-color: rgba(255,255,255,0.35);
    box-shadow: 0 0 24px rgba(196,30,58,0.25);
}

.hero-badge-featured .badge-highlight {
    color: #fff;
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.hero-badge-sub {
    color: rgba(255,255,255,0.62);
    font-size: 0.82rem;
    font-weight: 500;
    margin: -1.25rem 0 2rem;
    letter-spacing: 0.04em;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 rgba(196,30,58,0); }
    50% { box-shadow: 0 0 20px rgba(196,30,58,0.2); }
}

.hero-badge svg {
    width: 14px;
    height: 14px;
    color: var(--red);
}

.hero-title-modern {
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.75rem;
    color: var(--white);
    letter-spacing: -0.03em;
}

.gradient-text {
    color: var(--red);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--red);
    background-clip: unset;
}

/* Dans le hero foncé, le texte gradient passe en blanc */
.hero-modern .gradient-text,
.offre-hero .gradient-text,
.cta-modern .gradient-text {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.75);
    margin-bottom: 2.5rem;
    max-width: 580px;
    font-weight: 400;
}

.hero-buttons-modern {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-mini-stats {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 3.5rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    max-width: 100%;
    width: auto;
}

.mini-stat {
    text-align: left;
    flex: 0 0 auto;
}

.mini-stat-value {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.35rem;
    letter-spacing: -0.03em;
}

.mini-stat-label {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.mini-stat-divider {
    width: 1px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    align-self: center;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.85rem 1.75rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn-primary-modern {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn-primary-modern:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

.btn-secondary-modern {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.35);
}

.btn-secondary-modern:hover {
    border-color: var(--white);
}

.btn-cta-modern {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
    font-size: 1rem;
    padding: 1rem 2rem;
}

.btn-cta-modern:hover {
    background: var(--bg);
}

/* ============================================
   DISTINCTIONS
   ============================================ */
.distinctions-section {
    padding: 5rem 0;
    background: var(--white);
}

.distinctions-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.distinctions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.distinction-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.distinction-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    background: var(--white);
}

.distinction-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(196, 30, 58, 0.25);
}

.distinction-card-featured {
    border-color: var(--red);
    box-shadow: 0 8px 32px rgba(196, 30, 58, 0.12);
}

.distinction-photo {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--bg) 0%, #ececec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

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

.distinction-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--light);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.distinction-photo-placeholder svg {
    opacity: 0.35;
}

.distinction-body {
    padding: 1.25rem 1.35rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.distinction-icon {
    flex-shrink: 0;
    color: var(--red);
    margin-top: 2px;
}

.distinction-icon svg {
    width: 20px;
    height: 20px;
}

.distinction-text h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 4px;
    line-height: 1.3;
}

.distinction-text p {
    font-size: 0.82rem;
    color: var(--red);
    font-weight: 600;
    margin: 0;
    line-height: 1.45;
}

.distinction-badge-new {
    display: inline-block;
    background: var(--red);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Legacy compact items (fallback) */
.distinction-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.distinction-item:hover {
    border-color: var(--red);
}

.distinction-icon {
    flex-shrink: 0;
    color: var(--red);
}

.distinction-icon svg {
    width: 18px;
    height: 18px;
}

.distinction-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.distinction-item h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    line-height: 1.2;
}

.distinction-item p {
    font-size: 0.78rem;
    color: var(--red);
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

/* ============================================
   EXCELLENCE / ATOUTS
   ============================================ */
.excellence-section {
    padding: 5rem 0 6rem;
    background: var(--white);
}

.excellence-title {
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.03em;
    margin-bottom: 2.75rem;
    text-align: center;
}

/* —— Bento : Nos atouts (rectangle panoramique) —— */
.atouts-bento {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 5 / 2.15;
    gap: 0.85rem;
    margin: 0 auto;
    overflow: visible;
}

.atout-bento-item {
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}

.atout-bento-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.atout-bento-item:nth-child(2) { grid-column: 3 / 4; grid-row: 1 / 2; }
.atout-bento-item:nth-child(3) { grid-column: 4 / 5; grid-row: 1 / 2; }
.atout-bento-item:nth-child(4) { grid-column: 5 / 6; grid-row: 1 / 2; }
.atout-bento-item:nth-child(5) { grid-column: 3 / 6; grid-row: 2 / 3; }

.atout-bento-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(196, 30, 58, 0.2);
}

.atout-bento-media {
    position: relative;
    flex: 1 1 76%;
    min-height: 0;
    overflow: hidden;
}

.atout-bento-body {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0.7rem 0.85rem 0.85rem;
    background: var(--white);
}

.atout-bento-item:nth-child(1) .atout-bento-body { padding: 0.85rem 1rem 1rem; }

.atout-bento-icon {
    position: absolute;
    bottom: 0.55rem;
    left: 0.55rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
}

.atout-bento-item:nth-child(1) .atout-bento-icon {
    width: 42px;
    height: 42px;
    bottom: 0.65rem;
    left: 0.65rem;
    border-radius: 12px;
}

.atout-bento-body h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.atout-bento-item:nth-child(1) .atout-bento-body h4 { font-size: 1.05rem; }

.atout-bento-body .atout-highlight {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--red);
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.atout-bento-item:nth-child(1) .atout-bento-body .atout-highlight { font-size: 0.78rem; }

.atout-bento-body p {
    font-size: 0.72rem;
    color: var(--light);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.atout-bento-item:nth-child(1) .atout-bento-body p {
    font-size: 0.78rem;
    -webkit-line-clamp: 3;
}

.atout-bento-item:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.atout-bento-item.is-expanded {
    z-index: 8;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16);
    border-color: rgba(196, 30, 58, 0.35);
    transform: translateY(-2px);
}

.atout-bento-item.is-expanded .atout-bento-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    max-height: 88%;
    overflow-y: auto;
    padding: 1rem 1.05rem 1.1rem;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.1);
}

.atout-bento-item.is-expanded .atout-bento-body p,
.atout-bento-item.is-expanded:nth-child(1) .atout-bento-body p {
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
    color: var(--mid, #444);
    font-size: 0.88rem;
    line-height: 1.55;
}

.bento-photo-slot {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #eceff1 0%, #cfd8dc 55%, #b0bec5 100%);
}

.bento-photo-slot::after {
    content: 'Photo à ajouter';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

.bento-photo-slot:has(.bento-photo-img)::after { display: none; }

.bento-photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.atout-bento-item:hover .bento-photo-img,
.offre-grid-item:hover .bento-photo-img {
    transform: scale(1.04);
    transition: transform 0.5s ease;
}

.excellence-grid-compact {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    max-width: 1280px;
    margin: 0 auto;
}

.excellence-item-compact {
    background: var(--bg);
    padding: 1.75rem 1.25rem 1.5rem;
    text-align: center;
    border-radius: 14px;
    border: 1px solid transparent;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease,
                background 0.35s ease;
}

.excellence-item-compact:hover {
    background: var(--white);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(196, 30, 58, 0.15);
}

.excellence-item-compact .stat-icon-small {
    margin: 0 auto 1.25rem;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    background: rgba(196, 30, 58, 0.08);
    border-radius: 18px;
    transition: transform 0.35s ease, background 0.35s ease;
}

.excellence-item-compact:hover .stat-icon-small {
    transform: scale(1.08);
    background: rgba(196, 30, 58, 0.14);
}

.excellence-item-compact .stat-icon-small svg {
    width: 40px;
    height: 40px;
}

.excellence-item-compact h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.excellence-item-compact .atout-highlight {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--red);
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.excellence-item-compact p {
    font-size: 0.78rem;
    color: var(--light);
    line-height: 1.45;
    margin: 0;
}

.excellence-item-compact p strong {
    color: var(--mid);
    font-weight: 600;
}

/* Entrée en scène — Atouts */
.cards-enter-atouts .excellence-item-compact {
    opacity: 0;
    transform: translateY(48px) scale(0.88);
    will-change: transform, opacity;
}

.cards-enter-atouts.is-entered .excellence-item-compact {
    animation: atoutCardIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(1) { animation-delay: 0.05s; }
.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(2) { animation-delay: 0.15s; }
.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(3) { animation-delay: 0.25s; }
.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(4) { animation-delay: 0.35s; }
.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(5) { animation-delay: 0.45s; }

.cards-enter-atouts .excellence-item-compact .stat-icon-small {
    transform: scale(0.4);
    opacity: 0;
}

.cards-enter-atouts.is-entered .excellence-item-compact .stat-icon-small {
    animation: atoutIconPop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(1) .stat-icon-small { animation-delay: 0.2s; }
.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(2) .stat-icon-small { animation-delay: 0.3s; }
.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(3) .stat-icon-small { animation-delay: 0.4s; }
.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(4) .stat-icon-small { animation-delay: 0.5s; }
.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(5) .stat-icon-small { animation-delay: 0.6s; }

.cards-enter-atouts .excellence-item-compact h4,
.cards-enter-atouts .excellence-item-compact .atout-highlight,
.cards-enter-atouts .excellence-item-compact p {
    opacity: 0;
    transform: translateY(10px);
}

.cards-enter-atouts.is-entered .excellence-item-compact h4,
.cards-enter-atouts.is-entered .excellence-item-compact .atout-highlight,
.cards-enter-atouts.is-entered .excellence-item-compact p {
    animation: atoutTextIn 0.55s ease both;
}

.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(1) h4,
.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(1) .atout-highlight,
.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(1) p { animation-delay: 0.28s; }
.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(2) h4,
.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(2) .atout-highlight,
.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(2) p { animation-delay: 0.38s; }
.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(3) h4,
.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(3) .atout-highlight,
.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(3) p { animation-delay: 0.48s; }
.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(4) h4,
.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(4) .atout-highlight,
.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(4) p { animation-delay: 0.58s; }
.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(5) h4,
.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(5) .atout-highlight,
.cards-enter-atouts.is-entered .excellence-item-compact:nth-child(5) p { animation-delay: 0.68s; }

@keyframes atoutCardIn {
    0% {
        opacity: 0;
        transform: translateY(48px) scale(0.88);
    }
    65% {
        opacity: 1;
        transform: translateY(-8px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes atoutIconPop {
    0% {
        opacity: 0;
        transform: scale(0.4) rotate(-12deg);
    }
    70% {
        opacity: 1;
        transform: scale(1.12) rotate(4deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes atoutTextIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   STATS
   ============================================ */
.stats-modern {
    padding: 7rem 0;
    background: var(--white);
}

.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.stat-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: background 0.2s;
    position: relative;
}

.stat-card::before {
    display: none;
}

.stat-card:hover {
    background: var(--bg);
    transform: none;
    box-shadow: none;
}

.stat-icon-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--red);
}

.stat-icon-modern svg {
    width: 28px;
    height: 28px;
}

.stat-content {
    flex: 1;
}

.stat-number-modern {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 0.75rem;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--dark);
    background-clip: unset;
}

.stat-label-modern {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-desc {
    font-size: 0.92rem;
    color: var(--light);
    line-height: 1.6;
}

/* ============================================
   EXPERTISES
   ============================================ */
.expertises-modern {
    padding: 7rem 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.expertises-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 10% 20%, rgba(196, 30, 58, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 50% 35% at 90% 80%, rgba(67, 97, 238, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.expertises-modern .container {
    position: relative;
    z-index: 1;
}

.expertises-modern .gradient-text {
    color: var(--red);
    -webkit-text-fill-color: var(--red);
}

.section-header-modern {
    text-align: left;
    max-width: 100%;
    margin: 0 0 3rem;
}

.section-title-modern {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-description-modern {
    font-size: 1rem;
    color: var(--light);
    line-height: 1.6;
    max-width: 560px;
}

.expertises-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
    background: transparent;
    border: none;
    perspective: 1100px;
}

/* —— Grille : Nos offres (2×3, photos en tête) —— */
.offres-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.offre-grid-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--mid);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    min-height: 340px;
    height: 100%;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease,
                border-color 0.3s ease;
}

.offre-grid-media {
    position: relative;
    flex: 0 0 52%;
    min-height: 175px;
    overflow: hidden;
}

.offre-grid-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, color-mix(in srgb, var(--card-accent, var(--red)) 20%, transparent), transparent 55%);
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.offre-grid-item:hover .offre-grid-media::after { opacity: 1; }

.offre-grid-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.4rem 1.35rem;
    position: relative;
    z-index: 1;
}

.offre-grid-body .expertise-header {
    margin-bottom: 0.55rem;
}

.offre-grid-body p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--light);
    margin: 0 0 0.75rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offre-grid-body .expertise-link {
    margin-top: auto;
    font-size: 0.88rem;
}

.offre-grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent, var(--red));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}

.offre-grid-item:hover::before,
.offre-grid-item:focus-visible::before {
    transform: scaleX(1);
}

.offre-grid-item::after {
    display: none;
}

.offre-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px color-mix(in srgb, var(--card-accent, var(--red)) 12%, rgba(0, 0, 0, 0.08));
    border-color: color-mix(in srgb, var(--card-accent, var(--red)) 28%, var(--border));
}

/* Entrée bento / grille — alternance gauche / droite */
.bento-enter-atouts .atout-bento-item,
.bento-enter-offres .offre-grid-item {
    opacity: 0;
    transform: translateX(var(--bento-shift, 0)) translateY(28px);
    will-change: transform, opacity;
}

.bento-enter-atouts [data-from="left"],
.bento-enter-offres [data-from="left"] { --bento-shift: -64px; }

.bento-enter-atouts [data-from="right"],
.bento-enter-offres [data-from="right"] { --bento-shift: 64px; }

.bento-enter-atouts.is-entered .atout-bento-item,
.bento-enter-offres.is-entered .offre-grid-item {
    animation: bentoSlideIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bento-enter-atouts.is-entered .atout-bento-item:nth-child(1) { animation-delay: 0.04s; }
.bento-enter-atouts.is-entered .atout-bento-item:nth-child(2) { animation-delay: 0.12s; }
.bento-enter-atouts.is-entered .atout-bento-item:nth-child(3) { animation-delay: 0.2s; }
.bento-enter-atouts.is-entered .atout-bento-item:nth-child(4) { animation-delay: 0.28s; }
.bento-enter-atouts.is-entered .atout-bento-item:nth-child(5) { animation-delay: 0.36s; }

.bento-enter-offres.is-entered .offre-grid-item:nth-child(1) { animation-delay: 0.05s; }
.bento-enter-offres.is-entered .offre-grid-item:nth-child(2) { animation-delay: 0.13s; }
.bento-enter-offres.is-entered .offre-grid-item:nth-child(3) { animation-delay: 0.21s; }
.bento-enter-offres.is-entered .offre-grid-item:nth-child(4) { animation-delay: 0.29s; }
.bento-enter-offres.is-entered .offre-grid-item:nth-child(5) { animation-delay: 0.37s; }
.bento-enter-offres.is-entered .offre-grid-item:nth-child(6) { animation-delay: 0.45s; }

@keyframes bentoSlideIn {
    0% {
        opacity: 0;
        transform: translateX(var(--bento-shift, 0)) translateY(28px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

.bento-enter-atouts.is-entered .atout-bento-item:hover,
.bento-enter-offres.is-entered .offre-grid-item:hover {
    transform: translateY(-3px);
}

.bento-enter-atouts.is-entered .atout-bento-item.is-expanded,
.bento-enter-atouts.is-entered .atout-bento-item.is-expanded:hover {
    transform: translateY(-2px) scale(1.01);
}

.bento-enter-offres.is-entered .offre-grid-item:hover {
    transform: translateY(-5px);
}

/* Entrée en scène — Offres (legacy grid) */
.cards-enter-offres .expertise-card {
    opacity: 0;
    transform: translateY(64px) rotateX(14deg) scale(0.92);
    transform-origin: center bottom;
    will-change: transform, opacity;
}

.cards-enter-offres.is-entered .expertise-card {
    animation: offreCardIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cards-enter-offres.is-entered .expertise-card:nth-child(1) { animation-delay: 0.06s; }
.cards-enter-offres.is-entered .expertise-card:nth-child(2) { animation-delay: 0.14s; }
.cards-enter-offres.is-entered .expertise-card:nth-child(3) { animation-delay: 0.22s; }
.cards-enter-offres.is-entered .expertise-card:nth-child(4) { animation-delay: 0.30s; }
.cards-enter-offres.is-entered .expertise-card:nth-child(5) { animation-delay: 0.38s; }
.cards-enter-offres.is-entered .expertise-card:nth-child(6) { animation-delay: 0.46s; }

.cards-enter-offres .expertise-card::before {
    transform: scaleX(0);
    opacity: 0;
}

.cards-enter-offres.is-entered .expertise-card::before {
    animation: offreBarIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cards-enter-offres.is-entered .expertise-card:nth-child(1)::before { animation-delay: 0.35s; }
.cards-enter-offres.is-entered .expertise-card:nth-child(2)::before { animation-delay: 0.43s; }
.cards-enter-offres.is-entered .expertise-card:nth-child(3)::before { animation-delay: 0.51s; }
.cards-enter-offres.is-entered .expertise-card:nth-child(4)::before { animation-delay: 0.59s; }
.cards-enter-offres.is-entered .expertise-card:nth-child(5)::before { animation-delay: 0.67s; }
.cards-enter-offres.is-entered .expertise-card:nth-child(6)::before { animation-delay: 0.75s; }

.cards-enter-offres .expertise-icon {
    transform: scale(0.5) rotate(-8deg);
    opacity: 0;
}

.cards-enter-offres.is-entered .expertise-icon {
    animation: offreIconIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.cards-enter-offres.is-entered .expertise-card:nth-child(1) .expertise-icon { animation-delay: 0.4s; }
.cards-enter-offres.is-entered .expertise-card:nth-child(2) .expertise-icon { animation-delay: 0.48s; }
.cards-enter-offres.is-entered .expertise-card:nth-child(3) .expertise-icon { animation-delay: 0.56s; }
.cards-enter-offres.is-entered .expertise-card:nth-child(4) .expertise-icon { animation-delay: 0.64s; }
.cards-enter-offres.is-entered .expertise-card:nth-child(5) .expertise-icon { animation-delay: 0.72s; }
.cards-enter-offres.is-entered .expertise-card:nth-child(6) .expertise-icon { animation-delay: 0.8s; }

@keyframes offreCardIn {
    0% {
        opacity: 0;
        transform: translateY(64px) rotateX(14deg) scale(0.92);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px) rotateX(-2deg) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
    }
}

@keyframes offreBarIn {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(0.15);
        opacity: 0.6;
    }
}

@keyframes offreIconIn {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-8deg);
    }
    70% {
        opacity: 1;
        transform: scale(1.15) rotate(3deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.expertise-card {
    background: var(--white);
    padding: 2rem 1.75rem;
    text-decoration: none;
    color: var(--mid);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease,
                border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    min-height: 200px;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent, var(--red));
    transform: scaleX(0.15);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0.6;
}

.expertise-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--card-accent, var(--red)) 6%, transparent), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.expertise-card:hover::before,
.expertise-card:focus-within::before {
    transform: scaleX(1);
    opacity: 1;
}

.expertise-card:hover::after,
.expertise-card:focus-within::after {
    opacity: 1;
}

.expertise-card:hover {
    background: var(--white);
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 48px color-mix(in srgb, var(--card-accent, var(--red)) 12%, rgba(0, 0, 0, 0.08));
    border-color: color-mix(in srgb, var(--card-accent, var(--red)) 25%, var(--border));
}

.expertise-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.expertise-toggle {
    display: none;
}

.expertise-content {
    max-height: none;
    overflow: visible;
    opacity: 1;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.expertise-card.active .expertise-content {
    max-height: none;
    opacity: 1;
    padding: 0;
}

.expertise-card h3 {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.25;
    flex: 1;
    margin: 0;
}

.expertise-icon-wrapper {
    flex-shrink: 0;
}

.expertise-icon {
    width: 56px;
    height: 56px;
    background: color-mix(in srgb, var(--card-accent, var(--red)) 10%, var(--bg));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--card-accent, var(--red));
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.expertise-icon svg {
    width: 28px;
    height: 28px;
}

.expertise-card:hover .expertise-icon {
    background: color-mix(in srgb, var(--card-accent, var(--red)) 18%, var(--bg));
    transform: scale(1.1) rotate(-4deg);
}

.expertise-content p {
    font-size: 0.84rem;
    color: var(--light);
    line-height: 1.55;
    margin-bottom: auto;
    padding-bottom: 0.75rem;
}

.expertise-link {
    margin-top: auto;
}

.expertise-content strong {
    color: var(--mid);
    font-weight: 600;
}

.expertise-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--red);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: gap 0.2s;
}

.expertise-link:hover {
    gap: 10px;
}

/* ============================================
   CTA
   ============================================ */
.cta-modern {
    padding: 7rem 0;
    background: #5A0F1C;
    position: relative;
    overflow: hidden;
}

.cta-modern::before,
.cta-modern::after {
    display: none;
}

.cta-content-modern {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 620px;
    margin: 0 auto;
}

.cta-modern h2 {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cta-modern p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.btn-cta-plaquette {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    padding: 1rem 2rem;
}

.btn-cta-plaquette:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: var(--white);
    color: var(--white);
}

.btn-hero-landing.btn-cta-plaquette,
.hero-landing-actions .btn-cta-plaquette {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.85);
    color: var(--white);
    justify-content: center;
}

@media (max-width: 768px) {
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-actions .btn-modern {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #3D0A13;
    color: rgba(255,255,255,0.6);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-col p {
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
    font-size: 0.88rem;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.78) !important;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-social-link svg {
    display: block;
    flex-shrink: 0;
}

.footer-social-link:hover {
    color: #fff !important;
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
}

.footer-bottom {
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.25);
}

.footer-bottom a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ============================================
   MENTIONS LÉGALES
   ============================================ */
.legal-page {
    padding: 2.5rem 0 4rem;
    background: #fff;
}

.legal-content {
    max-width: 820px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.legal-section p,
.legal-section li {
    color: rgba(20, 20, 20, 0.78);
    line-height: 1.7;
    font-size: 0.98rem;
}

.legal-section ul {
    margin: 0.75rem 0 1rem;
    padding-left: 1.1rem;
}

.legal-section a {
    color: var(--primary, #C41E3A);
}

.legal-note {
    font-size: 0.9rem;
    color: rgba(20, 20, 20, 0.6);
}

.legal-error {
    color: #a11;
}

/* ============================================
   PAGE HERO (pages internes)
   ============================================ */
.page-hero {
    background: var(--white);
    color: var(--dark);
    padding: 5.5rem 0 2.5rem;
    text-align: center;
    margin-top: 88px;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
    color: var(--dark);
}

.page-hero p {
    font-size: 1.05rem;
    color: var(--light);
    font-weight: 400;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   ONGLETS / TABS
   ============================================ */
.tabs-section {
    padding: 5rem 0 7rem;
    background: var(--white);
}

.tabs-nav {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border);
}

.tab-button {
    background: none;
    border: none;
    padding: 0.85rem 1.5rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--light);
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab-button::after {
    display: none;
}

.tab-button.active {
    color: var(--dark);
    border-bottom-color: var(--red);
    font-weight: 600;
}

.tab-button:hover {
    color: var(--dark);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* ============================================
   INTRO SECTION
   ============================================ */
.intro-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    margin-bottom: 6rem;
    align-items: center;
}

.intro-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.intro-content p {
    font-size: 0.95rem;
    color: var(--light);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.intro-content strong {
    color: var(--mid);
    font-weight: 600;
}

.intro-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.intro-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    color: var(--light);
    font-size: 0.92rem;
    line-height: 1.6;
}

.intro-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    background: var(--red);
    border-radius: 50%;
}

.intro-image {
    overflow: hidden;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.intro-image:hover img {
    transform: scale(1.03);
}

/* ============================================
   TIMELINE — Frise verticale alternée
   ============================================ */
.timeline-section {
    margin-bottom: 6rem;
}

.timeline-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
    text-align: center;
}

.timeline-vertical-wrap {
    position: relative;
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 1rem;
}

.timeline-vertical-line {
    position: absolute;
    left: 50%;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-vertical-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--red);
    transition: height 0.15s ease-out;
}

.timeline-vertical {
    position: relative;
    z-index: 1;
}

.timeline-v-item {
    display: grid;
    grid-template-columns: 1fr 52px 1fr;
    gap: 1.5rem 2rem;
    align-items: start;
    padding-bottom: 3.5rem;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.timeline-v-item:last-child {
    padding-bottom: 0;
}

.timeline-v-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-v-axis {
    display: flex;
    justify-content: center;
    padding-top: 1.25rem;
    grid-row: 1;
}

.timeline-v-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--red);
    flex-shrink: 0;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.timeline-v-item.is-highlight .timeline-v-dot {
    width: 18px;
    height: 18px;
}

.timeline-v-item:hover .timeline-v-dot,
.timeline-v-item.is-active .timeline-v-dot,
.timeline-v-item.is-visible .timeline-v-dot {
    background: var(--red);
    box-shadow: 0 0 0 6px rgba(196, 30, 58, 0.1);
}

.timeline-v-item--left .timeline-v-card {
    grid-column: 1;
    justify-self: end;
}

.timeline-v-item--left .timeline-v-axis {
    grid-column: 2;
}

.timeline-v-item--left .timeline-v-meta {
    grid-column: 3;
    justify-self: start;
    padding-top: 0.5rem;
}

.timeline-v-item--right .timeline-v-meta {
    grid-column: 1;
    justify-self: end;
    padding-top: 0.5rem;
}

.timeline-v-item--right .timeline-v-axis {
    grid-column: 2;
}

.timeline-v-item--right .timeline-v-card {
    grid-column: 3;
    justify-self: start;
}

.timeline-v-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    pointer-events: none;
    user-select: none;
}

.timeline-v-item--left .timeline-v-meta {
    align-items: flex-end;
    text-align: right;
}

.timeline-v-item--right .timeline-v-meta {
    align-items: flex-start;
    text-align: left;
}

.timeline-v-year-ghost {
    font-size: clamp(3.25rem, 7vw, 5rem);
    font-weight: 800;
    color: rgba(17, 17, 17, 0.08);
    line-height: 1;
    letter-spacing: -0.04em;
}

.timeline-v-overlay-date {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.35rem;
}

.timeline-v-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.timeline-v-item--left .timeline-v-card {
    text-align: right;
}

.timeline-v-item--right .timeline-v-card {
    text-align: left;
}

.timeline-v-card:hover,
.timeline-v-item.is-active .timeline-v-card {
    background: var(--white);
    border-color: rgba(196, 30, 58, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.timeline-v-head {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.25rem 1.5rem 1.15rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
}

.timeline-v-item--left .timeline-v-head {
    align-items: flex-end;
}

.timeline-v-item--right .timeline-v-head {
    align-items: flex-start;
}

.timeline-v-year {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.timeline-v-title-preview {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    margin-top: 0.25rem;
    transition: opacity 0.25s ease;
}

.timeline-v-detail {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s ease, opacity 0.35s ease;
    opacity: 0;
    overflow: hidden;
}

.timeline-v-card:hover .timeline-v-detail,
.timeline-v-item.is-active .timeline-v-detail {
    grid-template-rows: 1fr;
    opacity: 1;
}

.timeline-v-card:hover .timeline-v-title-preview,
.timeline-v-item.is-active .timeline-v-title-preview {
    opacity: 0.45;
}

.timeline-v-detail-inner {
    min-height: 0;
    overflow: hidden;
}

.timeline-v-media {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.timeline-v-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--bg);
    transition: transform 0.5s ease;
}

.timeline-v-card:hover .timeline-v-image,
.timeline-v-item.is-active .timeline-v-image {
    transform: scale(1.04);
}

.timeline-v-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--light);
    background: linear-gradient(145deg, #e8e8e8 0%, #d4d4d4 100%);
}

.timeline-v-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem 1.5rem 1.65rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.55) 42%,
        rgba(0, 0, 0, 0.08) 100%
    );
    text-align: left;
}

.timeline-v-overlay h3 {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.55rem;
    line-height: 1.35;
}

.timeline-v-text p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.65;
    margin-bottom: 0.45rem;
}

.timeline-v-text p:last-child {
    margin-bottom: 0;
}

.timeline-v-text strong {
    color: var(--white);
    font-weight: 600;
}

/* Legacy timeline (admin preview fallback) */
.timeline-simple {
    max-width: 860px;
    margin: 0 auto;
}

.timeline-item-simple {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--red);
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.timeline-item-simple:hover {
    border-left-color: var(--red-dark);
    transform: none;
    box-shadow: none;
}

.timeline-highlight {
    border-left-color: var(--red);
    background: var(--bg);
}

.timeline-year-simple {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 6px;
}

.timeline-content-simple h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0;
    line-height: 1.4;
}

.timeline-detail {
    margin-top: 12px;
}

.timeline-detail strong {
    display: block;
    color: var(--light);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.timeline-detail strong:first-child {
    margin-top: 0;
}

.timeline-detail p {
    font-size: 0.88rem;
    color: var(--light);
    line-height: 1.6;
    margin: 0 0 8px;
}

.timeline-detail p:last-child {
    margin-bottom: 0;
}

/* ============================================
   ATOUTS / VALEURS
   ============================================ */
.atouts-section {
    margin-bottom: 6rem;
}

.atouts-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.atouts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    max-width: 1000px;
    margin: 0 auto;
}

.atout-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: background 0.2s;
}

.atout-card:hover {
    background: var(--bg);
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.atout-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    transition: color 0.2s;
}

.atout-card:hover .atout-icon {
    color: var(--red-dark);
    background: none;
    transform: none;
}

.atout-card h3 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark);
}

.valeurs-section {
    margin-bottom: 6rem;
}

.valeurs-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.valeurs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    max-width: 1000px;
    margin: 0 auto;
}

.valeur-card {
    background: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    transition: background 0.2s;
    border: none;
}

.valeur-card:hover {
    background: var(--bg);
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.valeur-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 1rem;
}

.valeur-card p {
    font-size: 0.88rem;
    color: var(--light);
    line-height: 1.65;
}

.valeur-card p strong {
    color: var(--mid);
    font-weight: 600;
}

/* ============================================
   DÉROULÉ — Timeline scroll
   ============================================ */
.deroule-section {
    margin-bottom: 0;
    padding: 5rem 0;
    background: var(--bg);
    border-top: none;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.deroule-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3.5rem;
    letter-spacing: -0.02em;
}

.deroule-timeline-wrap {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2rem;
}

.deroule-progress-line {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border);
    border-radius: 3px;
}

.deroule-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--red), #e84560);
    border-radius: 3px;
    transition: height 0.05s linear;
    will-change: height;
}

.deroule-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: none;
    margin: 0;
    position: relative;
    z-index: 1;
}

.deroule-step {
    background: transparent;
    border-left: none;
    padding: 0 0 2.5rem 2.5rem;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    border-bottom: none;
    opacity: 0.35;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.deroule-step.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.deroule-step:last-child {
    padding-bottom: 0;
}

.deroule-step::before {
    content: attr(data-step);
    position: absolute;
    left: -2rem;
    top: 0;
    transform: none;
    width: 32px;
    height: 32px;
    background: var(--white);
    color: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
    border: 3px solid var(--border);
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
    z-index: 2;
}

.deroule-step.is-active::before {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(196, 30, 58, 0.15);
}

.deroule-step:hover::before {
    transform: scale(1.1);
}

.deroule-step-card {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: box-shadow 0.3s ease, border-color 0.3s, transform 0.3s ease;
}

.deroule-step.is-active .deroule-step-card {
    border-color: rgba(196, 30, 58, 0.3);
    box-shadow: 0 8px 28px rgba(196, 30, 58, 0.1);
    transform: translateX(4px);
}

.deroule-step:hover .deroule-step-card {
    box-shadow: var(--shadow-lg);
}

.deroule-step:hover h3 {
    color: var(--red);
}

.deroule-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(196, 30, 58, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    transition: background 0.3s, transform 0.3s;
}

.deroule-step.is-active .deroule-icon {
    background: var(--red);
    color: var(--white);
    transform: rotate(-5deg) scale(1.05);
}

.deroule-icon svg {
    width: 26px;
    height: 26px;
}

.deroule-content {
    flex: 1;
}

.deroule-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
    transition: color 0.2s;
}

.deroule-step p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--light);
}

.deroule-step p strong {
    color: var(--red);
    font-weight: 600;
}

/* ============================================
   BANDEAU CLIENTS
   ============================================ */
.clients-marquee-section {
    padding: 0.5rem 0 2rem;
    background: var(--white);
    overflow: hidden;
}

.clients-marquee-label {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.clients-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

.clients-marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
}

.clients-marquee-track:hover {
    animation-play-state: paused;
}

.clients-marquee-group {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 0 2rem;
}

.client-logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 80px;
    padding: 0.5rem 1rem;
    background: transparent;
    transition: transform 0.25s ease;
}

.client-logo-item:hover {
    transform: scale(1.05);
}

.client-logo-item img {
    max-height: 64px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: none;
    opacity: 1;
    display: block;
}

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

/* Scroll reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-on-scroll.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-on-scroll.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-on-scroll.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .cards-enter-atouts .excellence-item-compact,
    .cards-enter-offres .expertise-card,
    .bento-enter-atouts .atout-bento-item,
    .bento-enter-offres .offre-grid-item,
    .cards-enter-atouts .excellence-item-compact .stat-icon-small,
    .cards-enter-atouts .excellence-item-compact h4,
    .cards-enter-atouts .excellence-item-compact .atout-highlight,
    .cards-enter-atouts .excellence-item-compact p,
    .cards-enter-offres .expertise-icon {
        opacity: 1;
        transform: none;
        animation: none !important;
    }

    .cards-enter-offres .expertise-card::before {
        transform: scaleX(0.15);
        opacity: 0.6;
        animation: none !important;
    }
}

/* ============================================
   ACTUALITÉS / ARTICLES
   ============================================ */
.actualites-page,
.identity-content {
    padding: 0 0 6rem;
    transition: opacity 0.45s ease, max-height 0.55s ease, padding 0.45s ease;
}

/* Article à la une — hero puis grille en dessous */
.actualites-hero-stack {
    position: relative;
}

.actualites-has-featured .actualites-hero-stack {
    position: relative;
}

.article-featured-hero {
    position: relative;
    z-index: 1;
    min-height: clamp(640px, 82vh, 920px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-top: 0;
    padding-top: 88px;
    cursor: pointer;
    background: #1a1410;
}

.article-featured-hero::before {
    display: none;
}

.article-featured-bg-img {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    display: block;
    pointer-events: none;
    user-select: none;
}

.article-featured-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 45%,
        rgba(0, 0, 0, 0.18) 72%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.article-featured-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 4rem 1.5rem calc(var(--article-card-half-height, 11rem) + 2.5rem);
}

.article-featured-content {
    display: block;
    max-width: 820px;
    color: var(--white);
    pointer-events: none;
}

.article-featured-badge {
    display: inline-block;
    padding: 0.45rem 1rem;
    margin-bottom: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.article-featured-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem 1rem;
    margin-bottom: 1.5rem;
}

.article-featured-top .actualites-social-links {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    pointer-events: auto;
}

.article-featured-top .actualites-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0.92;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.article-featured-top .actualites-social-link svg {
    width: 18px;
    height: 18px;
    display: block;
}

.article-featured-top .actualites-social-link:hover {
    opacity: 1;
    transform: scale(1.08);
}

.article-featured-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.article-featured-excerpt {
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.75rem;
    max-width: 640px;
}

.article-featured-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.article-featured-reading {
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.article-featured-category {
    display: inline-flex;
    padding: 0.35rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
}

.article-featured-cta {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
    opacity: 0.95;
}

.article-featured-content:hover .article-featured-cta {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.articles-expand-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.25rem 0 1.25rem;
    position: relative;
    z-index: 5;
}

.article-featured-expand {
    position: static;
    transform: none;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1.5px solid rgba(196, 30, 58, 0.35);
    border-radius: 50%;
    background: #fff;
    color: var(--red, #C41E3A);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: background 0.2s, transform 0.3s, border-color 0.2s, color 0.2s;
    pointer-events: auto;
}

.article-featured-expand:hover {
    background: var(--red, #C41E3A);
    border-color: var(--red, #C41E3A);
    color: #fff;
}

.article-featured-expand--open {
    transform: rotate(180deg);
}


/* Grille articles — à cheval sur l'image et le fond blanc */
#articles-archive {
    position: relative;
    z-index: 4;
    background: transparent;
}

.actualites-page-body.actualites-has-featured {
    background: #f7f7f7;
}

.actualites-page-body.actualites-has-featured #articles-archive {
    margin-top: calc(-1 * var(--article-card-half-height, clamp(9.5rem, 12vw, 12rem)));
    padding-top: 0;
    padding-bottom: 4rem;
    background: transparent;
}

.actualites-page--has-featured #articles-grid-preview {
    margin-top: 0;
}

.actualites-page-body.actualites-has-featured .article-card-modern {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
}

.articles-grid-featured {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 1rem;
}

#articles-grid-preview.articles-grid-featured {
    padding-bottom: 0.5rem;
}

.articles-grid-more {
    display: none;
    margin-top: 0;
    padding-top: 0.5rem;
}

.articles-grid-more--expanded {
    display: grid;
    animation: articlesMoreReveal 0.45s ease;
}



@keyframes articlesMoreReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card-modern {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
}

.article-card-modern-image-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.article-card-modern-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card-modern:hover .article-card-modern-image {
    transform: scale(1.04);
}

.article-card-modern-image-placeholder {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

.article-card-modern-body {
    padding: 1.5rem 1.5rem 1.75rem;
}

.article-card-modern-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.article-card-modern-reading {
    font-size: 0.85rem;
    color: var(--light);
    margin: 0;
}

.article-card-modern-engagement {
    font-size: 0.8rem;
    color: var(--mid, #444);
    margin: 0.35rem 0 0;
    font-weight: 500;
}

.article-engagement {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
    margin: 0 0 1.5rem;
}

.article-engagement-stat {
    font-size: 0.95rem;
    color: var(--mid, #444);
}

.article-like-btn {
    appearance: none;
    border: 1.5px solid var(--red, #C41E3A);
    background: #fff;
    color: var(--red, #C41E3A);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.article-like-btn:hover:not(:disabled),
.article-like-btn.is-liked {
    background: var(--red, #C41E3A);
    color: #fff;
}

.article-like-btn:disabled {
    cursor: default;
    opacity: 0.9;
}

.article-linkedin-link,
.article-card-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #0A66C2;
    font-weight: 600;
    text-decoration: none;
    font-size: inherit;
}

.article-linkedin-link {
    border: 1.5px solid #0A66C2;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.article-linkedin-link:hover {
    background: #0A66C2;
    color: #fff;
}

.article-card-linkedin:hover {
    text-decoration: underline;
}


.actualites-page--no-featured {
    padding-top: 6rem;
}

.actualites-page--no-featured #articles-grid-preview {
    margin-top: 0;
}

.actualites-content {
    text-align: center;
    padding: 5rem 0;
}

.actualites-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.coming-soon {
    font-size: 1rem;
    color: var(--light);
}

/* Logos réseaux (styles spécifiques dans le hero à la une) */

.actualites-page-body .jcs-wave--to-cta + .cta-modern {
    margin-top: 0;
}

/* ============================================
   NOTRE ÉQUIPE
   ============================================ */
.team-page-body.page-header-overlay .hero-modern {
    margin-top: 0;
}

.team-hero {
    position: relative;
    min-height: clamp(400px, 54vh, 580px);
    margin-top: 0;
    padding: calc(88px + 0.05rem) 0 clamp(3rem, 6vw, 4.5rem);
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #111;
}

.team-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.team-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    transform: scale(1.05);
    animation: teamHeroKenBurns 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes teamHeroKenBurns {
    to { transform: scale(1); }
}

.team-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding-top: 0;
    margin-top: -0.45rem;
}

.team-hero-inner h1 {
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--white);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.team-page {
    padding: 0.75rem 0 6rem;
    margin-top: -0.5rem;
}

.team-page .container {
    max-width: 1200px;
}

.team-poles {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.team-pole:first-child .team-pole-header {
    margin-bottom: 2rem;
}

.team-pole {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.team-empty {
    text-align: center;
    padding: 4rem 0;
    color: var(--light);
}

.team-pole-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.team-pole-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.team-pole-accent {
    display: block;
    width: 5px;
    height: 2.5rem;
    background: var(--red);
    border-radius: 3px;
    flex-shrink: 0;
}

.team-pole-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    color: var(--dark);
    letter-spacing: -0.02em;
    margin: 0;
}

.team-pole-rows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.team-pole-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

.team-card {
    position: relative;
    display: block;
    width: 200px;
    flex: 0 0 200px;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card--linked {
    cursor: pointer;
}

.team-card-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-color: #e9ecef;
}

.team-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.2) 45%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
}

.team-card-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 30, 58, 0.82);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.team-card--linked:hover .team-card-hover {
    opacity: 1;
}

.team-card-linkedin-icon {
    width: 52px;
    height: 52px;
    color: rgba(255, 255, 255, 0.85);
}

.team-card-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem 1.25rem 1.5rem;
    z-index: 3;
    pointer-events: none;
}

.team-card-name {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.25rem;
}

.team-card-role {
    display: block;
    font-size: 0.88rem;
    font-weight: 400;
    opacity: 0.92;
    line-height: 1.35;
}

/* Animations — Notre Équipe */
.team-hero-title.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-hero-title.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.team-pole-reveal .team-pole-header {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-pole-reveal.is-visible .team-pole-header {
    opacity: 1;
    transform: translateY(0);
}

.team-pole-reveal .team-pole-accent {
    transform: scaleY(0);
    transform-origin: center top;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
}

.team-pole-reveal.is-visible .team-pole-accent {
    transform: scaleY(1);
}

.team-pole-reveal .team-pole-title {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.14s,
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.14s;
}

.team-pole-reveal.is-visible .team-pole-title {
    opacity: 1;
    transform: translateX(0);
}

.team-card-reveal {
    opacity: 0;
    transform: translateY(32px) scale(0.94);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s ease;
    transition-delay: var(--reveal-delay, 0s);
}

.team-card-reveal:nth-child(odd) {
    transform: translateY(32px) translateX(-18px) scale(0.94);
}

.team-card-reveal:nth-child(even) {
    transform: translateY(32px) translateX(18px) scale(0.94);
}

.team-card-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

.team-card--linked:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 18px 40px rgba(196, 30, 58, 0.22);
}

.team-card-reveal.is-visible.team-card--linked:hover {
    transform: translateY(-10px) scale(1.03);
}

.jcs-wave--team-to-cta {
    background: var(--white);
    margin-top: -1px;
    line-height: 0;
}

.jcs-wave--team-to-cta svg {
    height: clamp(40px, 5.5vw, 64px);
    display: block;
    width: 100%;
}

.team-page-body .jcs-wave--team-to-cta + .cta-modern {
    margin-top: -1px;
    padding-top: clamp(4rem, 7vw, 7rem);
}

@media (prefers-reduced-motion: reduce) {
    .team-hero-title.reveal-on-scroll,
    .team-pole-reveal .team-pole-header,
    .team-pole-reveal .team-pole-accent,
    .team-pole-reveal .team-pole-title,
    .team-card-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .team-card--linked:hover,
    .team-card-reveal.is-visible.team-card--linked:hover {
        transform: none;
    }

    .team-hero-bg img {
        animation: none;
        transform: none;
    }
}

/* Article styles */
.article-detail-content img[style*="float"] {
    shape-margin: 20px;
}

.article-detail-content p {
    overflow: visible;
}

.article-detail-content strong,
.article-detail-content b {
    font-weight: 700 !important;
    color: #2c3e50 !important;
}

.article-detail-content em,
.article-detail-content i {
    font-style: italic !important;
}

.article-detail-content u {
    text-decoration: underline !important;
}

.article-detail-content s {
    text-decoration: line-through !important;
}

.article-detail-content ul,
.article-detail-content ol {
    margin: 20px 0;
    padding-left: 40px;
}

.article-detail-content li {
    margin: 10px 0;
}

.article-detail-content h2 {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    margin: 40px 0 20px 0 !important;
}

.article-detail-content h3 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin: 30px 0 15px 0 !important;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.article-card {
    background: var(--white);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.2s;
    cursor: pointer;
    border-radius: 0;
}

.article-card:hover {
    border-color: var(--red);
    transform: none;
    box-shadow: none;
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-date {
    font-size: 0.78rem;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.article-excerpt {
    font-size: 0.88rem;
    color: var(--light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-read-more {
    color: var(--red);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.article-card:hover .article-read-more {
    gap: 10px;
}

.no-articles {
    text-align: center;
    padding: 5rem 0;
}

.no-articles p {
    font-size: 1rem;
    color: var(--light);
}

/* ============================================
   CENTRALÉ SUPELEC
   ============================================ */
.centralesupelec-section {
    background: var(--bg);
    padding: 3rem;
    border-left: 3px solid var(--red);
    border: 1px solid var(--border);
    border-left: 3px solid var(--red);
}

.centralesupelec-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.centralesupelec-section p {
    font-size: 0.92rem;
    color: var(--light);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.centralesupelec-section strong {
    color: var(--mid);
    font-weight: 600;
}

/* ============================================
   PAGE NOTRE IDENTITÉ — Hero photo + frise contrastée
   ============================================ */
.identity-page {
    background: var(--white);
}

.identity-page .identity-content {
    padding: 0;
    background: var(--white);
}

/* Hero bandeau — même disposition que .team-hero, hauteur légèrement différente */
.identity-hero {
    position: relative;
    min-height: clamp(400px, 54vh, 580px);
    margin-top: 0;
    padding: calc(88px + 0.05rem) 0 clamp(3rem, 6vw, 4.5rem);
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #111;
}

.identity-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.identity-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 26%;
    transform: none;
}

.identity-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding-top: 0;
    margin-top: -0.45rem;
}

.identity-hero-title {
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--white);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

/* Intro sous le bandeau — texte fluide, sans encadré */
.identity-intro {
    padding: clamp(0.65rem, 1.5vw, 0.85rem) 0 0;
    background: var(--white);
    margin-top: -1.25rem;
    overflow-x: hidden;
}

.identity-history-hero {
    padding: clamp(1.5rem, 3vw, 2.25rem) 2rem clamp(0.5rem, 1vw, 0.75rem);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--white);
}

.identity-intro .container {
    max-width: 1080px;
}

.identity-intro-inner {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.identity-intro-inner,
.identity-intro-inner .identity-intro-body,
.identity-intro-inner .identity-distinction {
    font-weight: 400;
    color: #111111;
}

.identity-intro-lead {
    font-size: clamp(0.88rem, 1.55vw, 1rem);
    font-weight: 700;
    color: #111111;
    line-height: 1.65;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.identity-intro-lead strong {
    color: #111111;
    font-weight: 700;
}

.identity-distinction {
    font-size: clamp(0.88rem, 1.55vw, 1rem);
    line-height: 1.55;
    margin-bottom: 0.55rem;
}

.identity-distinction-label {
    color: var(--red);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.identity-distinction-highlight {
    color: var(--red);
    font-weight: 700;
}

.identity-intro-body {
    font-size: clamp(0.88rem, 1.55vw, 1rem);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.identity-intro-body:last-child {
    margin-bottom: 0;
    margin-top: 0.25rem;
}

.jcs-wave--identity-in {
    background: var(--white);
    margin-top: -1px;
    line-height: 0;
}

.jcs-wave--identity-in svg {
    height: clamp(32px, 4.5vw, 56px);
    display: block;
    width: 100%;
}

/* Zone frise — fond rouge JCS */
.identity-timeline-zone {
    background: var(--red);
    padding: 0;
    position: relative;
    margin-top: -1px;
}

.identity-history-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--red);
    animation: heroScrollBounce 2s ease-in-out infinite;
    opacity: 0.9;
}

.identity-history-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 0.85rem;
}

.identity-history-scroll-text {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.jcs-wave--identity-out svg {
    height: clamp(40px, 6vw, 64px);
    display: block;
    width: 100%;
}

.jcs-wave--identity-out {
    line-height: 0;
    margin-top: 2rem;
    background: var(--red);
}

.identity-page .identity-timeline-heading {
    text-align: center;
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: #111111;
    margin: 0;
    letter-spacing: -0.02em;
}

.identity-page .identity-timeline-heading.reveal-on-scroll .section-heading-accent {
    color: #111111;
    transition: color 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.identity-page .identity-timeline-heading.reveal-on-scroll.is-visible .section-heading-accent {
    color: var(--red);
}

.identity-page .timeline-section {
    margin-bottom: 0;
    padding: clamp(1.5rem, 3vw, 2.25rem) 0 2rem;
}

.identity-page .timeline-vertical-wrap {
    padding-top: 0.5rem;
}

.identity-page .timeline-vertical-line {
    background: rgba(255, 255, 255, 0.22);
    width: 2px;
}

.identity-page .timeline-vertical-progress {
    background: linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0.55));
    box-shadow: none;
}

.identity-page .timeline-v-year-ghost {
    color: rgba(255, 255, 255, 0.28);
    font-size: clamp(3.5rem, 8vw, 5.5rem);
}

.identity-page .timeline-v-item.is-visible .timeline-v-year-ghost {
    color: rgba(255, 255, 255, 0.42);
}

.identity-page .timeline-v-dot {
    background: var(--red);
    border-color: rgba(255, 255, 255, 0.85);
    border-width: 3px;
}

.identity-page .timeline-v-item.is-visible .timeline-v-dot,
.identity-page .timeline-v-item.is-active .timeline-v-dot,
.identity-page .timeline-v-item:hover .timeline-v-dot {
    background: var(--white);
    border-color: var(--white);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.15);
}

.identity-page .timeline-v-card {
    background: var(--white);
    border: 1px solid rgba(196, 30, 58, 0.12);
    box-shadow: 0 8px 28px rgba(196, 30, 58, 0.08);
    width: 100%;
    max-width: 420px;
}

.identity-page .timeline-v-head {
    min-height: auto;
    height: auto;
    justify-content: center;
    padding: 1.15rem 1.5rem;
    box-sizing: border-box;
}

.identity-page .timeline-v-item--left .timeline-v-head {
    align-items: flex-end;
}

.identity-page .timeline-v-item--right .timeline-v-head {
    align-items: flex-start;
}

.identity-page .timeline-v-title-preview {
    color: #111111;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    line-height: 1.45;
    margin-top: 0;
    width: 100%;
}

.identity-page .timeline-v-item.is-highlight .timeline-v-card {
    border-color: rgba(196, 30, 58, 0.25);
    box-shadow: 0 12px 32px rgba(196, 30, 58, 0.1);
}

.identity-page .timeline-v-axis {
    align-self: start;
    padding-top: 1.25rem;
}

.identity-page .timeline-v-card:hover,
.identity-page .timeline-v-item.is-active .timeline-v-card {
    border-color: rgba(196, 30, 58, 0.28);
    box-shadow: 0 14px 36px rgba(196, 30, 58, 0.12);
}

.identity-page .timeline-v-overlay {
    background: linear-gradient(to top, rgba(17, 17, 17, 0.88) 0%, rgba(17, 17, 17, 0.4) 55%, transparent 100%);
}

.identity-page .timeline-v-overlay h3 {
    color: var(--white);
    font-size: 1.15rem;
}

.identity-page .timeline-v-text p {
    color: rgba(255, 255, 255, 0.88);
}

.identity-page .timeline-v-text strong {
    color: var(--white);
}

/* Valeurs & suite */
.identity-page .page-hero--identity {
    display: none;
}

.identity-page .intro-section {
    display: none;
}

.identity-page .identity-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.identity-page .identity-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.identity-page .identity-hero-title.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.identity-page .identity-hero-title.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.identity-page .section-heading {
    color: #111111;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.identity-page .section-heading--center {
    text-align: center;
}

.identity-page .section-heading.reveal-on-scroll .section-heading-accent {
    color: #111111;
    transition: color 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.identity-page .section-heading.reveal-on-scroll.is-visible .section-heading-accent {
    color: var(--red);
}

/* Valeurs */
.identity-page .valeurs-section {
    margin-bottom: 5rem;
}

.identity-page .valeurs-heading {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    margin: 0 0 2.25rem;
}

.identity-page .valeurs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    background: transparent;
    border: none;
    max-width: 100%;
}

.identity-page .valeur-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.25rem 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.35s ease,
                background 0.35s ease,
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.identity-page .valeur-card:hover {
    background: var(--white);
    border-color: rgba(196, 30, 58, 0.45);
    transform: translateY(-12px) scale(1.025);
    box-shadow: 0 24px 56px rgba(196, 30, 58, 0.16), 0 8px 20px rgba(0, 0, 0, 0.06);
}

.identity-page .valeur-card h3 {
    font-size: clamp(1.35rem, 2.4vw, 1.65rem);
    margin-bottom: 0.65rem;
    color: var(--red);
    font-weight: 700;
    line-height: 1.25;
    transition: color 0.3s ease;
}

.identity-page .valeur-card:hover h3 {
    color: var(--red-dark);
}

.identity-page .valeur-card p {
    color: var(--mid);
    font-size: 0.88rem;
    line-height: 1.65;
    max-width: 28ch;
    margin: 0 auto;
}

.identity-page .valeur-card p strong {
    color: var(--dark);
}

/* CentraleSupélec — pleine largeur, sans encadré */
.identity-page .centralesupelec-section {
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 4vw, 3.5rem);
    margin: 0;
    position: relative;
    background: var(--white);
    border: none;
    overflow: visible;
}

.jcs-wave--identity-to-cs {
    background: var(--white);
    margin-top: -1px;
    line-height: 0;
}

.jcs-wave--identity-to-cs svg {
    height: clamp(28px, 3.5vw, 48px);
    display: block;
    width: 100%;
}

.jcs-wave--identity-to-intervenants {
    background: var(--white);
    margin-top: -1px;
    line-height: 0;
}

.jcs-wave--identity-to-intervenants svg {
    height: clamp(28px, 3.5vw, 48px);
    display: block;
    width: 100%;
}

.jcs-wave--identity-to-cta {
    background: #F7F7F5;
    margin-top: -1px;
    margin-bottom: -1px;
    line-height: 0;
}

.jcs-wave--identity-to-cta svg {
    height: clamp(40px, 5.5vw, 64px);
    display: block;
    width: 100%;
}

.identity-page .jcs-wave--identity-to-cta + .cta-modern {
    margin-top: -1px;
    padding-top: clamp(4rem, 7vw, 7rem);
}

.identity-page .centralesupelec-section::before {
    display: none;
}

.identity-page .centralesupelec-header {
    margin-bottom: clamp(2rem, 4vw, 2.75rem);
    text-align: center;
}

.identity-page .centralesupelec-logo {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.identity-page .centralesupelec-logo--combined img {
    display: block;
    max-height: clamp(52px, 7vw, 76px);
    width: auto;
    max-width: min(560px, 94vw);
    object-fit: contain;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.identity-page .centralesupelec-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
    position: relative;
    z-index: 1;
}

.identity-page .cs-reveal {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.identity-page .cs-reveal--from-left {
    transform: translateX(-56px);
}

.identity-page .cs-reveal--from-right {
    transform: translateX(56px);
    transition-delay: 0.14s;
}

.identity-page .cs-reveal.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.identity-page .centralesupelec-campus {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 48px rgba(17, 17, 17, 0.1);
    aspect-ratio: 4 / 3;
    min-height: 240px;
}

.identity-page .centralesupelec-campus img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.identity-page .centralesupelec-content {
    position: relative;
    z-index: 1;
    max-width: none;
    margin: 0;
    text-align: left;
}

.identity-page .centralesupelec-content p {
    color: #111111;
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    line-height: 1.8;
    margin-bottom: 1.1rem;
}

.identity-page .centralesupelec-content p:first-child {
    font-size: clamp(1.02rem, 1.75vw, 1.12rem);
    line-height: 1.75;
}

.identity-page .centralesupelec-content p:last-child {
    margin-bottom: 0;
}

.identity-page .centralesupelec-content strong {
    color: #111111;
    font-weight: 700;
}

/* Intervenants CentraleSupélec — galerie vidéo accordéon (portrait 4:5) */
.identity-page .cs-intervenants-section {
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.5rem, 4vw, 3.5rem);
    background: #F7F7F5;
}

.identity-page .cs-intervenants-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #666666;
}

.identity-page .cs-intervenants-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
}

.identity-page .cs-intervenants-heading {
    margin: 0 auto clamp(2rem, 4vw, 2.75rem);
    max-width: none;
    font-size: clamp(1.5rem, 3.2vw, 2.1rem);
    white-space: nowrap;
}

.identity-page .cs-intervenants-gallery {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(0.75rem, 1.6vw, 1.25rem);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    height: auto;
}

.identity-page .cs-intervenant {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    outline: none;
    transition: flex 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
    .identity-page .cs-intervenants-gallery .cs-intervenant:hover,
    .identity-page .cs-intervenants-gallery .cs-intervenant:focus-visible {
        flex: 1.5 1 0;
    }
}

.identity-page .cs-intervenant.is-active {
    flex: 1.5 1 0;
}

.identity-page .cs-intervenant-media {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    flex: none;
    border-radius: 14px;
    overflow: hidden;
    background: #111111;
    box-shadow: 0 8px 28px rgba(17, 17, 17, 0.08);
    transition: box-shadow 0.45s ease;
}

.identity-page .cs-intervenant:hover .cs-intervenant-media,
.identity-page .cs-intervenant.is-active .cs-intervenant-media,
.identity-page .cs-intervenant:focus-visible .cs-intervenant-media {
    box-shadow: 0 16px 40px rgba(17, 17, 17, 0.14);
}

.identity-page .cs-intervenant-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    background: #111111;
}

.identity-page .cs-intervenant-linkedin {
    position: absolute;
    left: 50%;
    bottom: 0.75rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #0A66C2;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(17, 17, 17, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s ease, visibility 0.35s ease;
    pointer-events: none;
}

.identity-page .cs-intervenant-linkedin[hidden] {
    display: none;
}

.identity-page .cs-intervenant-media:hover .cs-intervenant-linkedin {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.identity-page .cs-intervenant-linkedin:hover {
    background: #ffffff;
    color: #004182;
}

.identity-page .cs-intervenant-name {
    width: 100%;
    margin: clamp(0.55rem, 1vw, 0.75rem) 0 0;
    text-align: center;
    font-size: clamp(0.82rem, 1.4vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #111111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Animations d'entrée — valeurs */
.identity-page .valeurs-grid .valeur-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease,
                background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.identity-page .valeurs-section.is-visible .valeur-card {
    opacity: 1;
    transform: translateY(0);
}

.identity-page .valeurs-section.is-visible .valeur-card:nth-child(1) { transition-delay: 0.1s; }
.identity-page .valeurs-section.is-visible .valeur-card:nth-child(2) { transition-delay: 0.22s; }
.identity-page .valeurs-section.is-visible .valeur-card:nth-child(3) { transition-delay: 0.34s; }

.identity-page .valeurs-section.is-visible .valeur-card:hover {
    transform: translateY(-12px) scale(1.025);
}

@media (prefers-reduced-motion: reduce) {
    .identity-page .identity-reveal,
    .identity-page .identity-hero-title.reveal-on-scroll,
    .identity-page .valeurs-grid .valeur-card,
    .identity-page .cs-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .identity-hero-bg img {
        transform: none !important;
    }

    .identity-history-scroll-hint {
        animation: none;
    }
}

@media (max-width: 1024px) {
    .identity-page .valeurs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .identity-hero-title {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
    }

    .identity-intro-body {
        font-size: 0.92rem;
    }

    .identity-distinction {
        font-size: clamp(1.05rem, 4vw, 1.2rem);
    }

    .identity-intro-lead {
        margin-bottom: 1.25rem;
    }

    .identity-page .identity-timeline-heading {
        margin-bottom: 2rem;
    }

    .identity-page .timeline-section {
        padding-top: 1.75rem;
    }

    .identity-page .centralesupelec-section {
        padding: 2rem 0 2.5rem;
    }

    .identity-page .centralesupelec-logo--combined img {
        max-width: 100%;
    }

    .identity-page .centralesupelec-body {
        grid-template-columns: 1fr;
    }

    .identity-page .centralesupelec-campus {
        aspect-ratio: 16 / 10;
        min-height: 200px;
    }

    .identity-page .centralesupelec-content {
        text-align: center;
    }

    .identity-page .cs-intervenants-section {
        padding: 2rem 0 2rem;
    }

    .identity-page .cs-intervenants-heading {
        white-space: normal;
        font-size: clamp(1.25rem, 5.5vw, 1.7rem);
        line-height: 1.3;
        padding: 0 0.5rem;
    }

    .identity-page .cs-intervenants-gallery {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        padding: 0 0 0.25rem;
    }

    .identity-page .cs-intervenants-gallery::-webkit-scrollbar {
        display: none;
    }

    .identity-page .cs-intervenant {
        flex: 0 0 72%;
        scroll-snap-align: center;
    }

    .identity-page .cs-intervenant.is-active {
        flex: 0 0 85%;
    }

    .identity-page .cs-intervenant.is-active .cs-intervenant-linkedin {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }

    .identity-page .valeur-card:hover {
        transform: translateY(-8px) scale(1.02);
    }

    .identity-page .valeurs-section.is-visible .valeur-card:hover {
        transform: translateY(-8px) scale(1.02);
    }
}

.identity-page .identity-content > .container {
    padding-top: 2.5rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

/* ============================================
   RESPONSIVE — 1024px
   ============================================ */
@media (max-width: 1024px) {
    .intro-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .intro-content h2 {
        font-size: 1.75rem;
    }

    .atouts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .valeurs-grid {
        grid-template-columns: 1fr;
    }

    .deroule-step {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .deroule-step::before {
        left: -14px;
        top: 1.5rem;
        transform: none;
    }

    .deroule-step:hover::before {
        transform: none;
    }

    .stats-grid-modern {
        grid-template-columns: 1fr;
    }

    .hero-title-modern {
        font-size: 2.8rem;
    }

    .timeline-v-item,
    .timeline-v-item--left,
    .timeline-v-item--right {
        grid-template-columns: 28px 1fr;
        gap: 1rem;
    }

    .timeline-v-item--left .timeline-v-card,
    .timeline-v-item--right .timeline-v-card {
        grid-column: 2;
        grid-row: 1;
        justify-self: stretch;
        max-width: none;
        text-align: left;
    }

    .timeline-v-item--left .timeline-v-axis,
    .timeline-v-item--right .timeline-v-axis {
        grid-column: 1;
        grid-row: 1;
        padding-top: 1.5rem;
    }

    .timeline-v-meta {
        display: none;
    }

    .timeline-v-item--left .timeline-v-head,
    .timeline-v-item--right .timeline-v-head {
        align-items: flex-start;
    }

    .timeline-vertical-line {
        left: 13px;
        transform: none;
    }

    .timeline-v-media {
        height: 260px;
    }

    .timeline-v-overlay {
        padding: 1.25rem 1.25rem 1.4rem;
    }

    .timeline-item-simple {
        padding: 1.25rem 1.5rem;
    }

    .mega-menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .dropdown-mega .mega-menu {
        min-width: min(760px, calc(100vw - 48px));
    }
}

/* ============================================
   RESPONSIVE — Nav tablet / fenêtres moyennes
   (hamburger avant que la nav desktop ne déborde)
   ============================================ */
@media (max-width: 1100px) {
    .nav-wrapper {
        display: flex;
        justify-content: space-between;
        height: 72px;
        padding: 0 20px;
    }

    .nav-devis-slot {
        display: none;
    }

    .nav-devis-mobile {
        display: list-item;
        width: 100%;
        margin-top: 0.75rem;
        padding-top: 0.5rem;
    }

    .nav-devis-mobile .btn-devis-nav {
        display: block;
        text-align: center;
        width: 100%;
        padding: 0.85rem 1.2rem !important;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 320;
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100dvh - 72px);
        background: #fff;
        flex-direction: column;
        padding: 1rem 1.15rem 2rem;
        gap: 0.35rem;
        align-items: stretch;
        transition: left 0.25s ease;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
        border-top: 1px solid var(--border);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        grid-column: unset;
        justify-self: unset;
        z-index: 310;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-menu > li > a:not(.btn-devis-nav),
    .nav-menu > li > .dropdown-toggle {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        padding: 0.95rem 0.35rem;
        font-size: 1.05rem;
        font-weight: 600;
        color: #1a1a1a !important;
        text-shadow: none !important;
        white-space: normal;
    }

    .page-header-overlay .navbar .nav-menu > li > a:not(.btn-devis-nav),
    .page-header-overlay .navbar .nav-menu > li > .dropdown-toggle,
    .page-header-overlay .navbar:not(.navbar--solid) .nav-menu > li > a:not(.btn-devis-nav),
    .page-header-overlay .navbar:not(.navbar--solid) .nav-menu > li > .dropdown-toggle,
    .page-header-overlay .navbar.navbar--solid .nav-menu > li > a:not(.btn-devis-nav),
    .page-header-overlay .navbar.navbar--solid .nav-menu > li > .dropdown-toggle {
        color: #1a1a1a !important;
        text-shadow: none !important;
    }

    .page-header-overlay .navbar .nav-menu > li > a:not(.btn-devis-nav):hover,
    .page-header-overlay .navbar .nav-menu > li > .dropdown-toggle:hover,
    .page-header-overlay .navbar .nav-menu > li > a:not(.btn-devis-nav).active,
    .page-header-overlay .navbar .nav-menu > li > .dropdown-toggle.active,
    .page-header-overlay .navbar:not(.navbar--solid) .nav-menu > li > a:not(.btn-devis-nav):hover,
    .page-header-overlay .navbar:not(.navbar--solid) .nav-menu > li > .dropdown-toggle:hover,
    .page-header-overlay .navbar:not(.navbar--solid) .nav-menu > li > a:not(.btn-devis-nav).active,
    .page-header-overlay .navbar:not(.navbar--solid) .nav-menu > li > .dropdown-toggle.active {
        color: var(--red) !important;
    }

    .page-header-overlay .navbar .dropdown-menu a,
    .page-header-overlay .navbar .mega-menu-col a,
    .page-header-overlay .navbar:not(.navbar--solid) .dropdown-menu a,
    .page-header-overlay .navbar:not(.navbar--solid) .mega-menu-col a {
        color: #1a1a1a !important;
        text-shadow: none !important;
    }

    /* Hamburger lisible quand le panneau blanc est ouvert */
    body.nav-open .page-header-overlay .navbar:not(.navbar--solid) .mobile-menu-toggle span,
    body.nav-open .mobile-menu-toggle span {
        background: #1a1a1a !important;
    }

    body.nav-open .page-header-overlay .navbar {
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(10px);
    }

    .page-header-overlay .navbar .nav-menu > li > a:not(.btn-devis-nav)::after {
        display: none;
    }

    .page-header-overlay .navbar .nav-menu > li > .dropdown-toggle::after {
        content: '';
        display: block;
        width: 0.55rem;
        height: 0.55rem;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        background: none;
        transform: rotate(45deg);
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        margin-left: 0.75rem;
        flex-shrink: 0;
    }

    .page-header-overlay .navbar .nav-menu > li.dropdown.active > .dropdown-toggle::after {
        transform: rotate(-135deg);
    }

    .page-header-overlay .navbar .dropdown-menu a,
    .page-header-overlay .navbar .mega-menu-col a {
        color: var(--dark);
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-toggle::before {
        content: '';
        display: none;
    }

    .dropdown-toggle::after {
        content: '';
        display: block;
        width: 0.55rem;
        height: 0.55rem;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.2s ease;
        margin-left: 0.75rem;
        flex-shrink: 0;
        background: none;
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        height: 0.55rem;
    }

    .dropdown.active > .dropdown-toggle::after {
        transform: rotate(-135deg);
    }

    .dropdown-menu,
    .dropdown-mega .mega-menu {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: #f4f4f5;
        margin: 0 0 0.65rem;
        border-radius: 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.28s ease, padding 0.28s ease, margin 0.28s ease;
        padding: 0;
        border: none;
        min-width: 0 !important;
        width: 100%;
        pointer-events: none;
    }

    .dropdown.active > .dropdown-menu,
    .dropdown-mega.active > .mega-menu {
        max-height: 70vh;
        padding: 0.55rem 0.65rem 0.75rem;
        margin: 0 0 0.75rem;
        pointer-events: auto;
        border: 1px solid rgba(0, 0, 0, 0.06);
    }

    .dropdown-mega:hover .mega-menu,
    .dropdown:hover .dropdown-menu {
        /* Désactive le hover desktop en mode hamburger */
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown:not(.active):hover > .dropdown-menu,
    .dropdown-mega:not(.active):hover > .mega-menu {
        max-height: 0;
        padding: 0;
        margin: 0 0 0.65rem;
        pointer-events: none;
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .mega-menu-title {
        display: block;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--red);
        margin: 0.35rem 0 0.35rem;
        padding: 0 0.35rem;
    }

    .mega-menu-col ul,
    .dropdown-menu {
        list-style: none;
    }

    .mega-menu-col a,
    .dropdown-menu a {
        display: block;
        padding: 0.7rem 0.55rem;
        border-radius: 8px;
        font-size: 0.98rem;
        font-weight: 500;
        color: var(--dark);
        white-space: normal;
        line-height: 1.35;
    }

    .mega-menu-col a:hover,
    .mega-menu-col a.active,
    .dropdown-menu a:hover,
    .dropdown-menu a.active {
        background: rgba(196, 30, 58, 0.08);
        color: var(--red);
    }

    .logo-img {
        height: 52px;
    }

    .hero-intro-bridge-title {
        white-space: normal;
        font-size: clamp(1.05rem, 4.6vw, 1.35rem);
        line-height: 1.35;
        padding: 0 0.25rem;
    }

    .hero-landing-title-main,
    .page-home .hero-landing-title-main,
    .identity-hero-title,
    .team-hero-title,
    .page-hero h1,
    .devis-hero-title,
    .offre-hero-content h1 {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }
}

/* ============================================
   RESPONSIVE — 768px
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero-modern:not(.hero-modern--landing) {
        min-height: auto;
        padding: 80px 0 60px;
    }

    .hero-landing-inner {
        padding: calc(72px + 1rem) 1.25rem 1.5rem;
    }

    .page-home .hero-landing-inner {
        min-height: auto;
        max-height: none;
        padding: calc(72px + 1.15rem) 1.15rem 1.75rem;
    }

    .page-home .hero-landing-actions {
        position: static;
        left: auto;
        bottom: auto;
        transform: none;
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 420px;
        margin: 1rem auto 0;
    }

    .page-home .hero-landing-actions .btn-hero-landing {
        padding: 0.65rem 1rem;
        white-space: normal;
        font-size: 0.78rem;
    }

    .page-home .hero-landing-actions .btn-hero-landing span {
        white-space: normal;
    }

    .page-home .hero-landing-center {
        padding-top: 0.25rem;
        padding-bottom: 0;
    }

    .page-home .hero-landing-logo {
        width: clamp(120px, 34vw, 180px);
        margin-top: 0.15rem;
        margin-bottom: 0.75rem;
    }

    .page-home .hero-landing-title-main {
        font-size: clamp(1.25rem, 5.5vw, 1.85rem);
    }

    .page-home .hero-landing-tagline.hero-badge {
        font-size: clamp(0.72rem, 2.8vw, 0.92rem);
        margin-bottom: 0.85rem;
    }

    .page-home .section-heading {
        font-size: clamp(1.3rem, 4.2vw, 1.65rem);
    }

    .hero-landing-actions {
        flex-direction: column;
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .btn-hero-landing {
        width: 100%;
    }

    .hero-mini-stats--hero {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.5rem;
        margin: 0.35rem auto 0.75rem;
        max-width: 100%;
    }

    .hero-mini-stats--hero .mini-stat {
        min-width: 0;
        flex: 1 1 0;
    }

    .hero-mini-stats--hero .mini-stat-value {
        font-size: clamp(1.2rem, 5vw, 1.55rem);
        margin-bottom: 0.2rem;
    }

    .hero-mini-stats--hero .mini-stat-label {
        font-size: 0.65rem;
        line-height: 1.25;
    }

    .hero-title-modern {
        font-size: 2rem;
    }

    .hero-badge {
        font-size: 0.72rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons-modern {
        flex-direction: column;
    }

    .btn-modern {
        width: 100%;
        justify-content: center;
    }

    .hero-mini-stats:not(.hero-mini-stats--hero) {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .mini-stat-divider {
        width: 100%;
        height: 1px;
    }

    .mini-stat-value {
        font-size: 2.4rem;
    }

    .distinctions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
        width: 100%;
    }

    .distinction-card {
        width: 100%;
    }

    .deroule-timeline-wrap {
        padding-left: 1.5rem;
    }

    .deroule-step {
        padding-left: 2rem;
    }

    .deroule-step-card {
        flex-direction: column;
    }

    .excellence-grid-compact {
        grid-template-columns: 1fr;
    }

    .expertises-grid {
        grid-template-columns: 1fr;
    }

    .section-title-modern {
        font-size: 1.75rem;
    }

    .cta-modern h2 {
        font-size: 1.9rem;
    }

    .cta-modern p {
        font-size: 0.95rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-hero {
        padding: 3rem 0 2.5rem;
    }

    .page-hero h1 {
        font-size: 1.6rem;
    }

    .tabs-nav {
        gap: 0;
        overflow-x: auto;
    }

    .tab-button {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
        white-space: nowrap;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid-featured {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-featured-inner {
        padding: 3.5rem 1.25rem calc(var(--article-card-half-height, 9rem) + 2rem);
    }

    .articles-expand-wrap {
        padding: 0.15rem 0 1rem;
    }

    .actualites-page-body.actualites-has-featured #articles-archive {
        margin-top: calc(-1 * var(--article-card-half-height, clamp(8rem, 22vw, 10rem)));
    }

    .atouts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-pole-grid {
        gap: 1.25rem;
        flex-wrap: wrap;
    }

    .team-card {
        width: calc(50% - 0.625rem);
        flex: 0 0 calc(50% - 0.625rem);
        max-width: 200px;
    }
}

@media (max-width: 768px) and (max-height: 720px) {
    .page-home .hero-landing-logo {
        width: clamp(96px, 22vw, 140px);
        margin-bottom: 0.45rem;
    }

    .page-home .hero-landing-title-main {
        font-size: clamp(1.1rem, 4.5vw, 1.45rem);
    }

    .page-home .hero-mini-stats--hero {
        margin-bottom: 0.4rem;
    }

    .page-home .hero-landing-actions {
        margin-top: 0.65rem;
        gap: 0.55rem;
    }

    .btn-hero-landing {
        padding: 0.7rem 1rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 1200px) {
    .excellence-grid-compact {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .expertises-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .excellence-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .atouts-bento {
        aspect-ratio: auto;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: none;
        width: 100%;
    }

    .atout-bento-item:nth-child(1),
    .atout-bento-item:nth-child(2),
    .atout-bento-item:nth-child(3),
    .atout-bento-item:nth-child(4),
    .atout-bento-item:nth-child(5) {
        grid-column: auto;
        grid-row: auto;
        min-height: 200px;
    }

    .atout-bento-item:nth-child(1) {
        grid-column: 1 / 3;
        min-height: 260px;
    }

    .atout-bento-item:nth-child(5) {
        grid-column: 1 / 3;
    }

    .offres-grid {
        grid-template-columns: 1fr;
    }

    .offre-grid-item {
        min-height: 300px;
    }

    .offre-grid-media {
        min-height: 160px;
        flex-basis: 48%;
    }

    .articles-grid-featured {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   RESPONSIVE — 480px
   ============================================ */
@media (max-width: 480px) {
    .hero-title-modern {
        font-size: 1.7rem;
    }

    .logo-img {
        height: 50px;
    }

    .atouts-grid {
        grid-template-columns: 1fr;
    }

    .excellence-grid-compact {
        grid-template-columns: 1fr;
    }

    .atouts-bento {
        grid-template-columns: 1fr;
    }

    .atout-bento-item:nth-child(1) {
        grid-column: auto;
        min-height: 240px;
    }

    .stat-number-modern {
        font-size: 2.5rem;
    }

    .distinction-item {
        padding: 0.6rem 1rem;
    }

    .distinction-item h3 {
        font-size: 0.82rem;
    }

    .distinction-item p {
        font-size: 0.72rem;
    }

    .cta-modern h2 {
        font-size: 1.6rem;
    }

    .btn-modern {
        padding: 0.8rem 1.4rem;
        font-size: 0.88rem;
    }
}
