﻿/* ==========================================
   ViaAduc - Home page visual system
   ========================================== */

/* Structure générale de la page d'accueil */
body.home-page {
    --ref-ink: #10226d;
    --ref-blue: #1459ed;
    --ref-pink: #e800a9;
    --ref-orange: #ff751f;
    position: relative;
    overflow-x: hidden;
    background: var(--site-background);
    color: var(--ref-ink);
    font-family: 'Open Sans', sans-serif;
}

body.home-page .header,
body.home-page .navbar,
body.home-page .navbar-container {
    background: rgba(241, 245, 255, 0.94) !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

body.home-page .header {
    background-image: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    transition: background-color 220ms ease, box-shadow 220ms ease;
}

body.home-page .header.is-scrolled {
    background: rgba(249, 250, 255, 0.98) !important;
    border-bottom: none !important;
    box-shadow: 0 10px 24px rgba(16, 34, 109, 0.08) !important;
    backdrop-filter: blur(4px);
}

/* Image de fond globale (Montagne avec dégradé vers le bas) */
body.home-page::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 820px;
    pointer-events: none;
    background: url('../images/home/home-background.webp') center top / cover no-repeat;
    -webkit-mask-image: linear-gradient(
        180deg, 
        transparent 0%,
        transparent 12%,
        rgba(0, 0, 0, 1) 30%,
        rgba(0, 0, 0, 1) 48%, 
        rgba(0, 0, 0, 0.65) 75%, 
        transparent 100%
    );
    mask-image: linear-gradient(
        180deg, 
        transparent 0%,
        transparent 12%,
        rgba(0, 0, 0, 1) 30%,
        rgba(0, 0, 0, 1) 48%, 
        rgba(0, 0, 0, 0.65) 75%, 
        transparent 100%
    );
}

body.home-page::after {
    display: none;
}

body.home-page main.home-cinematic {
    position: relative;
    z-index: 1;
    padding: 18px 0 48px;
}

/* ==========================================
   Section Référence & Parcours
   ========================================== */
.ref-home { 
    overflow: hidden; 
    background: transparent; 
}

/* Conteneur élargi pour donner plus de largeur aux cartes */
.ref-container { 
    width: min(100% - 3rem, 1400px); 
    margin-inline: auto; 
}

.ref-hero { 
    min-height: 360px; 
    padding-top: 60px; 
    background: transparent; 
    position: relative;
    z-index: 1;
}

.ref-hero-inner { position: relative; min-height: 365px; }
.ref-hero-copy { position: relative; z-index: 1; padding-top: 34px; }

/* Kicker / Eyebrow "UN PAS D'AVANCE" : Agrandissement et animation lumineuse */
.ref-kicker, .ref-eyebrow { 
    display: inline-block;
    margin: 0 0 .85rem; 
    font-size: 1.15rem; 
    font-weight: 900; 
    letter-spacing: .2em; 
    text-transform: uppercase;
    background: linear-gradient(90deg, #1459ed, #ff4c94, #00d2ff, #1459ed);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite, heroPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(30, 89, 237, 0.25));
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes heroPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 2px 8px rgba(30, 89, 237, 0.25));
    }
    50% {
        transform: scale(1.04) translateY(-2px);
        filter: drop-shadow(0 6px 16px rgba(255, 76, 148, 0.45));
    }
}

.ref-hero h1 { margin: 0 0 1.35rem; color: var(--ref-ink); font-size: clamp(2.5rem, 5vw, 4.7rem); line-height: 1; letter-spacing: 0; }
.ref-hero p:last-child { margin: 0; color: #344474; font-size: .95rem; line-height: 1.65; }

.hero-intro-question {
    display: inline-block;
    font-family: var(--font-primary);
    margin: 0 0 2.7rem;
    color: var(--ref-blue);
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.02em;
    animation: questionReveal .8s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes questionReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* ==========================================
   TITRE SPECTACULAIRE D'INTRODUCTION
   Animation 3D, néon, dégradé animé, étincelles
   ========================================== */
.hero-title-spectacular {
    display: inline-block;
    margin: 0 0 1.5rem;
    font-size: clamp(5.5rem, 11vw, 11rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    perspective: 1200px;
    transform-style: preserve-3d;
    animation: heroTitleEntrance 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    cursor: default;
    user-select: none;
}

.hero-text-glow {
    display: inline-block;
    position: relative;
    background: linear-gradient(90deg, #1459ed, #e800a9, #ff751f, #00d2ff, #1459ed);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: heroGradientFlow 5s linear infinite, heroFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(20, 89, 237, 0.55))
            drop-shadow(0 0 28px rgba(232, 0, 169, 0.35))
            drop-shadow(0 0 48px rgba(255, 117, 31, 0.25));
    transform-style: preserve-3d;
}

/* Reflet brillant qui traverse le texte */
.hero-text-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.85) 45%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(255, 255, 255, 0.85) 55%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: heroShine 3.2s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

/* Étincelles / particules lumineuses */
.hero-text-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.9) 0%, transparent 4%),
        radial-gradient(circle at 85% 20%, rgba(0, 210, 255, 0.9) 0%, transparent 4%),
        radial-gradient(circle at 50% 80%, rgba(255, 117, 31, 0.9) 0%, transparent 4%),
        radial-gradient(circle at 30% 65%, rgba(232, 0, 169, 0.9) 0%, transparent 4%),
        radial-gradient(circle at 70% 55%, rgba(20, 89, 237, 0.9) 0%, transparent 4%);
    animation: heroSparks 2.8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Animation d'entrée spectaculaire */
@keyframes heroTitleEntrance {
    0% {
        opacity: 0;
        transform: translateY(80px) rotateX(55deg) scale(0.6);
        filter: blur(12px);
    }
    40% {
        opacity: 1;
        transform: translateY(-12px) rotateX(-8deg) scale(1.06);
        filter: blur(0);
    }
    60% {
        transform: translateY(6px) rotateX(4deg) scale(0.98);
    }
    80% {
        transform: translateY(-3px) rotateX(-2deg) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
        filter: blur(0);
    }
}

/* Flux du dégradé */
@keyframes heroGradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}

/* Flottement doux */
@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: translateY(-6px) rotateX(2deg) rotateY(-2deg);
    }
    50% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }
    75% {
        transform: translateY(-3px) rotateX(-2deg) rotateY(2deg);
    }
}

/* Reflet lumineux traversant */
@keyframes heroShine {
    0%, 55% {
        left: -120%;
        opacity: 0;
    }
    65% {
        opacity: 1;
    }
    85%, 100% {
        left: 160%;
        opacity: 0;
    }
}

/* Étincelles scintillantes */
@keyframes heroSparks {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* Pulsation néon du halo */
@keyframes heroNeonPulse {
    0%, 100% {
        filter: drop-shadow(0 0 12px rgba(20, 89, 237, 0.55))
                drop-shadow(0 0 28px rgba(232, 0, 169, 0.35))
                drop-shadow(0 0 48px rgba(255, 117, 31, 0.25));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(20, 89, 237, 0.85))
                drop-shadow(0 0 48px rgba(232, 0, 169, 0.55))
                drop-shadow(0 0 80px rgba(255, 117, 31, 0.4));
    }
}

/* Entrée courte du titre : apparition, profondeur puis trait propulseur. */
.ref-hero .hero-title-spectacular {
    display: block;
    font-family: var(--font-secondary);
    font-weight: 700;
    width: max-content;
    max-width: 100%;
    margin: 0 0 1.5rem;
    font-size: clamp(.9rem, 2vw, 2.2rem);
    line-height: .9;
    letter-spacing: -.03em;
    text-align: left;
    white-space: normal;
    perspective: 1200px;
    transform-style: preserve-3d;
    animation: none;
}

.hero-title-intro,
.hero-title-forward {
    display: inline-block;
}

.hero-title-intro {
    color: var(--ref-ink);
    letter-spacing: .1em;
    opacity: 0;
    animation: heroIntroReveal .52s ease-out both;
}

.hero-title-forward {
    position: relative;
    width: auto;
    max-width: none;
    color: var(--ref-blue);
    opacity: 0;
    transform-style: preserve-3d;
    animation: heroAvantEntrance 1.12s cubic-bezier(.2, .82, .28, 1) .18s both;
}

.hero-title-word {
    display: inline-block;
    background: linear-gradient(100deg, #1459ed 0%, #e800a9 56%, #ff4c94 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-title-line {
    position: absolute;
    bottom: -.4em;
    left: .35em;
    display: block;
    width: 100%;
    height: auto;
    transform: scaleX(0);
    transform-origin: left center;
    animation: heroLineSweep .44s cubic-bezier(.2, .9, .3, 1) .73s both;
}

@keyframes heroIntroReveal {
    0% {
        opacity: 0;
        letter-spacing: .28em;
        filter: blur(8px);
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        letter-spacing: .1em;
        filter: blur(0);
        transform: translateY(0);
    }
}

@keyframes heroAvantEntrance {
    0% {
        opacity: 0;
        filter: blur(9px);
        transform: translate3d(-5px, 22px, -70px) rotateX(16deg) scale(.8);
    }
    38% {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 18px) rotateX(-4deg) scale(1.04);
    }
    64% {
        transform: translate3d(11px, 0, 26px) rotateX(0) scale(1.03);
    }
    80% {
        transform: translate3d(8px, 0, 15px) scale(1.01);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes heroLineSweep {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    18% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title-spectacular {
        font-size: clamp(3.8rem, 12vw, 5.5rem);
    }
}

@media (max-width: 480px) {
    .hero-title-spectacular {
        font-size: clamp(3rem, 13vw, 4rem);
    }
}

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    .hero-intro-question,
    .hero-title-spectacular,
    .hero-title-intro,
    .hero-title-forward,
    .hero-title-line,
    .hero-text-glow,
    .hero-text-glow::before,
    .hero-text-glow::after {
        animation: none !important;
    }
    .hero-intro-question,
    .hero-title-spectacular,
    .hero-title-intro,
    .hero-title-forward,
    .hero-title-line {
        transform: none;
        opacity: 1;
        filter: none;
    }
}

/* Progression du hero : mouvement, accompagnement, mobilisation et résultat. */
.ref-hero {
    min-height: 520px;
}

.ref-hero-inner {
    min-height: 480px;
}

.ref-hero .hero-pathway {
    width: min(100%, 980px);
    margin-top: 2.7rem;
    color: #344474;
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    font-size: clamp(1rem, 1.05vw + .3rem, 1.24rem);
    font-weight: 500;
    line-height: 1.5;
}

.ref-hero .hero-pathway-line {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 .7rem;
    padding: 0;
    opacity: 0;
    filter: blur(3px);
    transform: translateX(-26px);
    animation: refPathwayStepIn .46s cubic-bezier(.22, 1, .36, 1) .7s both;
}

.ref-hero .hero-pathway-line--support {
    transform: translateX(26px);
    animation-delay: 1.02s;
}

.ref-hero .hero-pathway-line--start {
    max-width: 900px;
    z-index: 40;
}

.ref-hero .hero-pathway-line--team {
    max-width: 820px;
    animation-delay: 1.34s;
}

.ref-hero .hero-pathway-line--result {
    animation-delay: 1.66s;
    transform: translateX(26px);
}

.ref-hero .hero-pathway-line--support-team {
    white-space: normal;
}

.ref-hero .hero-pathway-line--start,
.ref-hero .hero-pathway-line--support-team {
    font-size: .94rem;
    line-height: 1.55;
}

.hero-team-token {
    display: inline-block;
    color: #060679;
    font-weight: 800;
    opacity: 0;
    transform: translateY(8px);
    animation: refTeamTokenIn .34s ease-out calc(1.45s + var(--token-index) * .12s) both;
}

.hero-result-word {
    position: relative;
    display: inline-block;
    color: #060679;
    font-weight: 800;
}

/* Carte interactive qui explique l'origine du nom ViaAduc. */
.hero-viaaduc-tooltip {
    position: static;
    z-index: 20;
    display: inline-block;
    color: #060679;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.hero-viaaduc-word {
    position: relative;
    display: inline-block;
    color: #060679;
    vertical-align: baseline;
}

.hero-viaaduc-normal {
    display: inline-block;
    transition: opacity .2s ease, transform .35s ease;
}

.hero-viaaduc-word::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -.12em;
    left: 0;
    height: 1px;
    background: #ff4c94;
    transform: scaleX(1);
    transform-origin: left center;
    transition: opacity .2s ease, transform .32s cubic-bezier(.22, 1, .36, 1);
}

.hero-viaaduc-split {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3em;
    white-space: nowrap;
    opacity: 0;
    min-width: 9.7em;
    box-sizing: border-box;
    padding: .08em .18em;
    border-radius: .45em;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(13, 35, 96, .12);
    transform: translateX(-50%) scale(.9);
    transition: opacity .25s ease, transform .42s cubic-bezier(.22, 1, .36, 1);
}

.hero-viaaduc-part {
    display: inline-block;
    color: #060679;
    font-weight: 850;
    transition: transform .42s cubic-bezier(.22, 1, .36, 1);
}

.hero-viaaduc-bridge {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 4.4em;
    width: 4.4em;
    height: 1em;
}

.hero-viaaduc-bridge::before {
    content: '';
    position: absolute;
    right: 0;
    left: 0;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, #1f56ff, #ff4c94);
    transform: translateY(-50%);
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(31, 86, 255, .18);
}

.hero-viaaduc-bridge span {
    display: none;
}

.hero-viaaduc-bridge i {
    position: absolute;
    top: 50%;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff4c94;
    box-shadow: 0 0 0 3px rgba(255, 76, 148, .13), 0 0 10px rgba(255, 76, 148, .6);
    transform: translate(-50%, -50%);
}

.hero-viaaduc-bridge b {
    position: absolute;
    right: -.16em;
    top: 50%;
    color: #ff4c94;
    font-size: 1.35em;
    line-height: 1;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(255, 76, 148, .22);
    transform: translateY(-55%);
}

.hero-viaaduc-card {
    position: absolute;
    z-index: 300;
    top: calc(100% + 17px);
    left: 50%;
    width: min(470px, calc(100vw - 28px));
    box-sizing: border-box;
    padding: 1.35rem 1.45rem 1.4rem;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(31, 86, 255, .28);
    border-radius: 20px;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 24px 54px rgba(13, 35, 96, .24), 0 0 0 5px rgba(255, 255, 255, .3);
    color: #243968;
    opacity: 1 !important;
    visibility: hidden;
    filter: none !important;
    backdrop-filter: none !important;
    mix-blend-mode: normal !important;
    transform: translate(-50%, 10px);
    /* The panel itself never fades through the hero: only its entrance motion is animated. */
    transition: visibility 0s linear, transform .35s cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
    white-space: normal;
}

.hero-viaaduc-card::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    width: 13px;
    height: 13px;
    border-top: 1px solid rgba(31, 86, 255, .28);
    border-left: 1px solid rgba(31, 86, 255, .28);
    background: #fff;
    transform: translateX(-50%) rotate(45deg);
}

.hero-viaaduc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: #ffffff;
    pointer-events: none;
}

.hero-viaaduc-card > * {
    position: relative;
    z-index: 1;
}

.hero-viaaduc-card-title {
    position: relative;
    z-index: 1;
    display: block;
    text-align: center;
    color: #060679;
    font-family: 'Sansation', 'Segoe UI', Arial, sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.hero-viaaduc-route {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: .35rem;
    margin: .7rem 0 .8rem;
}

.hero-viaaduc-route span {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #1f56ff);
}

.hero-viaaduc-route span:last-child {
    background: linear-gradient(90deg, #ff4c94, transparent);
}

.hero-viaaduc-route i {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #ff4c94;
    box-shadow: 0 0 0 4px rgba(255, 76, 148, .12);
}

.hero-viaaduc-card-text {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: .85rem;
    padding-top: .75rem;
    border-top: 1px solid #e5ecf8;
    color: #53628b;
    font-size: .82rem;
    line-height: 1.55;
    opacity: 1;
    transform: none;
}

.hero-viaaduc-card-text strong {
    color: #060679;
}

.hero-viaaduc-tooltip:hover .hero-viaaduc-normal,
.hero-viaaduc-tooltip:focus-within .hero-viaaduc-normal {
    opacity: 0;
    transform: scale(.88);
}

.hero-viaaduc-tooltip:hover .hero-viaaduc-word::after,
.hero-viaaduc-tooltip:focus-within .hero-viaaduc-word::after {
    opacity: 0;
    transform: scaleX(0);
}

.hero-viaaduc-tooltip:hover .hero-viaaduc-split,
.hero-viaaduc-tooltip:focus-within .hero-viaaduc-split {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.hero-viaaduc-tooltip:hover,
.hero-viaaduc-tooltip:focus-within {
    margin-right: 0;
}

.hero-viaaduc-tooltip:hover .hero-viaaduc-word,
.hero-viaaduc-tooltip:focus-within .hero-viaaduc-word {
    width: 10.1em;
}

.hero-viaaduc-tooltip:hover .hero-viaaduc-part--via,
.hero-viaaduc-tooltip:focus-within .hero-viaaduc-part--via {
    transform: translateX(-.22em);
}

.hero-viaaduc-tooltip:hover .hero-viaaduc-part--aduc,
.hero-viaaduc-tooltip:focus-within .hero-viaaduc-part--aduc {
    transform: translateX(.22em);
}

.hero-viaaduc-tooltip:hover .hero-viaaduc-card,
.hero-viaaduc-tooltip:focus-within .hero-viaaduc-card {
    opacity: 1 !important;
    visibility: visible;
    filter: none !important;
    transform: translate(-50%, 0);
    transition-delay: .48s;
    pointer-events: auto;
}

.hero-viaaduc-tooltip:hover .hero-viaaduc-bridge i,
.hero-viaaduc-tooltip:focus-within .hero-viaaduc-bridge i {
    animation: refViaaducBridgeDot .55s ease-out .18s both;
}

.hero-viaaduc-tooltip:hover .hero-viaaduc-card-text,
.hero-viaaduc-tooltip:focus-within .hero-viaaduc-card-text {
    opacity: 1;
    transform: none;
    animation: none;
}

@keyframes refPathwayStepIn {
    0% { opacity: 0; filter: blur(3px); }
    100% { opacity: 1; filter: blur(0); transform: translateX(0); }
}

@keyframes refTeamTokenIn {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes refViaaducBridgeDot {
    0% { left: 0; opacity: 0; }
    18% { opacity: 1; }
    100% { left: 100%; opacity: 1; }
}

@media (max-width: 700px) {
    .ref-hero {
        min-height: 570px;
    }

    .ref-hero-inner {
        min-height: 530px;
    }

    .ref-hero .hero-pathway {
        font-size: .9rem;
    }

    .ref-hero .hero-pathway-line--support-team {
        white-space: normal;
    }

    .ref-hero .hero-pathway-line--start,
    .ref-hero .hero-pathway-line--team {
        max-width: 100%;
    }

    .hero-viaaduc-card {
        left: 0;
        width: min(470px, calc(100vw - 48px));
        transform: translate(0, 10px);
    }

    .hero-viaaduc-card::before {
        left: 2rem;
    }

    .hero-viaaduc-tooltip:hover .hero-viaaduc-card,
    .hero-viaaduc-tooltip:focus-within .hero-viaaduc-card {
        transform: translate(0, 0);
    }

    .hero-viaaduc-tooltip:hover .hero-viaaduc-word,
    .hero-viaaduc-tooltip:focus-within .hero-viaaduc-word {
        width: 9.7em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ref-hero .hero-pathway-line,
    .ref-hero .hero-pathway-line::after,
    .hero-team-token {
        animation: none !important;
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }

    .hero-viaaduc-card,
    .hero-viaaduc-card-text {
        transition: none;
        animation: none !important;
    }
}

/* Décalage encore plus accentué vers le bas de la section parcours */
.ref-paths { 
    position: relative; 
    z-index: 2; 
    margin-top: 180px; 
    padding-top: 10px; 
    padding-bottom: 72px; 
    background: transparent; 
}

.ref-section-heading { 
    margin-bottom: 36px; 
    text-align: center; 
}

/* Titre en bleu foncé #060679 */
.ref-section-heading h2 { 
    margin: 0; 
    color: #060679; 
    font-size: clamp(2rem, 2.8vw, 2.75rem); 
    line-height: 1.15; 
}

.ref-path-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 32px; 
}

/* Cartes élargies en largeur et réduites en hauteur (min-height: 420px) */
.ref-path-card { 
    --card-color: var(--ref-blue); 
    --card-color-2: var(--ref-blue); 
    position: relative; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; 
    min-height: 420px; 
    padding: 28px 24px 24px; 
    border: 1px solid rgba(48, 80, 181, .08); 
    border-bottom: none; 
    border-radius: 26px; 
    background: rgba(255,255,255,.95); 
    box-shadow: 0 18px 36px rgba(67, 90, 168, .12); 
    text-decoration: none; 
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease; 
    will-change: transform, box-shadow;
}

.ref-path-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--card-color);
    border-radius: inherit;
    opacity: 0;
    box-shadow: 0 0 18px var(--card-color);
    transition: opacity .35s ease;
    pointer-events: none;
}

.ref-path-card::after { 
    content: ''; 
    position: absolute; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    height: 6px; 
    background: linear-gradient(90deg, var(--card-color), var(--card-color-2)); 
}

.ref-path-card:hover,
.ref-path-card:focus-visible { 
    transform: translateY(-8px); 
    box-shadow: 0 24px 44px rgba(67, 90, 168, .2); 
}

.ref-path-card:hover::before,
.ref-path-card:focus-visible::before {
    opacity: .42;
}

.ref-path-card:focus-visible {
    outline: 2px solid var(--card-color);
    outline-offset: 4px;
}

.ref-path-card--pink { --card-color: #BE00B4; --card-color-2: #BE00B4; }
.ref-path-card--magenta { --card-color: #FF4C94; --card-color-2: #FF4C94; }
.ref-path-card--blue { --card-color: #1e4fff; --card-color-2: #3fd0ff; }
.ref-path-card--blue::after { background: #1E4FFF; }

.ref-icon { display: grid; place-items: center; width: 110px; height: 110px; margin: 0 auto 18px; border-radius: 50%; background: #e0f6ff; transition: transform .35s cubic-bezier(.22, 1, .36, 1), filter .35s ease; }
.ref-icon img { width: 80px; height: 80px; object-fit: contain; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.ref-path-card:hover .ref-icon,
.ref-path-card:focus-visible .ref-icon { transform: translateY(-2px) scale(1.04) rotate(2deg); filter: drop-shadow(0 0 9px var(--card-color)); }
.ref-path-card:hover .ref-icon img,
.ref-path-card:focus-visible .ref-icon img { transform: scale(1.04); }
.ref-path-card h3 {
    width: 100%;
    min-height: 2.3em;
    margin: 0 auto 14px;
    color: var(--card-color);
    font-size: clamp(1rem, 1.55vw, 1.35rem);
    line-height: 1.15;
    text-align: center;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.ref-path-card p:not(.ref-card-link) { margin: 0; color: #536184; font-size: .88rem; line-height: 1.6; }
.ref-card-link { display: flex; justify-content: space-between; margin: 0 0 12px; padding-bottom: 10px; color: var(--card-color); font-size: .9rem; border-bottom: none; background-image: radial-gradient(circle, var(--card-color) 1.6px, transparent 1.6px); background-position: 0 100%; background-repeat: repeat-x; background-size: 7px 3px; transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.ref-card-link span {
    display: inline-block;
    font-size: 1.05rem;
    font-weight: 800;
    transform-origin: center left;
    animation:
        refArrowMove 1.9s cubic-bezier(0.22, 1, 0.36, 1) infinite,
        refArrowGlow 1.9s ease-in-out infinite;
    transition: transform .3s cubic-bezier(.22, 1, .36, 1), filter .3s ease;
    will-change: transform, opacity, filter, text-shadow;
}

.ref-path-card:hover .ref-card-link span,
.ref-path-card:focus-visible .ref-card-link span {
    animation-duration: 1.05s, 1.05s;
}

.ref-path-card:hover .ref-card-link,
.ref-path-card:focus-visible .ref-card-link {
    transform: translateX(4px);
}

@keyframes refArrowMove {
    0% {
        transform: translateX(0);
        opacity: 0.82;
    }
    34% {
        transform: translateX(7px);
        opacity: 1;
    }
    52% {
        transform: translateX(2px);
        opacity: 0.95;
    }
    100% {
        transform: translateX(0);
        opacity: 0.84;
    }
}

@keyframes refArrowGlow {
    0% {
        text-shadow: 0 0 0 transparent;
        filter: drop-shadow(0 0 0 transparent);
    }
    34% {
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.75), 0 0 12px currentColor;
        filter: drop-shadow(0 0 8px currentColor);
    }
    52% {
        text-shadow: 0 0 4px rgba(255, 255, 255, 0.45), 0 0 8px currentColor;
        filter: drop-shadow(0 0 5px currentColor);
    }
    100% {
        text-shadow: 0 0 0 transparent;
        filter: drop-shadow(0 0 0 transparent);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ref-path-card,
    .ref-path-card::before,
    .ref-icon,
    .ref-icon img,
    .ref-card-link,
    .ref-card-link span {
        transition: none;
    }

    .ref-card-link span {
        animation: none;
    }

    .ref-path-card:hover,
    .ref-path-card:focus-visible,
    .ref-path-card:hover .ref-icon,
    .ref-path-card:focus-visible .ref-icon,
    .ref-path-card:hover .ref-icon img,
    .ref-path-card:focus-visible .ref-icon img,
    .ref-path-card:hover .ref-card-link,
    .ref-path-card:focus-visible .ref-card-link,
    .ref-path-card:hover .ref-card-link span,
    .ref-path-card:focus-visible .ref-card-link span {
        transform: none;
    }
}

/* ==========================================
   Section Vos Enjeux (Agrandie)
   ========================================== */
body.home-page .section-enjeux {
    padding: 80px 0 0;
    display: flow-root;
    background:
        radial-gradient(720px 420px at 8% 18%, rgba(255, 255, 255, .48), transparent 68%),
        radial-gradient(680px 420px at 92% 78%, rgba(214, 229, 255, .62), transparent 70%),
        linear-gradient(170deg, #eef4ff 0%, #e7f0ff 52%, #f0f4ff 100%);
}

body.home-page .section-enjeux .container {
    max-width: 1280px;
}

body.home-page .section-enjeux .enjeux-header {
    margin-bottom: 48px;
    text-align: center;
}

body.home-page .section-enjeux .enjeux-title {
    color: #10226d;
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    letter-spacing: 0;
}

body.home-page .section-enjeux .enjeux-timeline {
    position: relative;
    width: min(100%, 1080px);
    margin: 0 auto;
}

body.home-page .section-enjeux .enjeux-line {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #80a4ff;
    box-shadow: none;
    transform: translateX(-50%);
}

body.home-page .section-enjeux .enjeux-line-fill {
    display: block;
    height: 100%;
    background: #3970ff;
    box-shadow: none;
}

body.home-page .section-enjeux .enjeux-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
    gap: 0;
    margin-bottom: 28px;
    padding: 0;
    align-items: center;
    text-decoration: none !important;
    color: inherit;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}

body.home-page .section-enjeux .enjeux-visual,
body.home-page .section-enjeux .enjeux-body {
    min-height: 260px;
}

body.home-page .section-enjeux .enjeux-visual {
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 14px 30px rgba(56, 84, 150, .15);
}

body.home-page .section-enjeux .enjeux-img {
    display: block;
    width: 100%;
    height: 260px;
    border-radius: 18px;
    object-fit: cover;
}

body.home-page .section-enjeux .enjeux-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 40px;
    border-radius: 18px;
    border: 1px solid rgba(130, 161, 222, .2);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(63, 87, 155, .1);
    text-align: left;
}

body.home-page .section-enjeux .enjeux-row:hover .enjeux-body,
body.home-page .section-enjeux .enjeux-row:focus-visible .enjeux-body {
    border-color: rgba(61, 112, 255, .34);
    box-shadow: 0 18px 34px rgba(63, 87, 155, .16);
}

body.home-page .section-enjeux .enjeux-row-left .enjeux-body { grid-column: 3; }
body.home-page .section-enjeux .enjeux-row-left .enjeux-visual { grid-column: 1; }
body.home-page .section-enjeux .enjeux-row-right .enjeux-body { grid-column: 1; }
body.home-page .section-enjeux .enjeux-row-right .enjeux-visual { grid-column: 3; }

body.home-page .section-enjeux .enjeux-dot {
    display: block;
    position: relative;
    grid-column: 2;
    justify-self: center;
    align-self: center;
    z-index: 2;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--enjeux-accent, #1e4fff);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

body.home-page .section-enjeux .enjeux-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--enjeux-accent, #1e4fff);
}

body.home-page .section-enjeux .enjeux-dot::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--enjeux-accent, #1e4fff);
    animation: dotPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes dotPing {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

body.home-page .section-enjeux .enjeux-tag {
    display: inline-flex;
    align-self: flex-start;
    width: fit-content;
    margin-bottom: 14px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--enjeux-chip-bg, #eef4ff);
    color: var(--enjeux-accent, #1e4fff);
}

body.home-page .section-enjeux .enjeux-question {
    display: block;
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: visible;
    overflow-wrap: anywhere;
    margin: 0 0 20px;
    color: #14256f;
    font-size: 1.22rem;
    line-height: 1.35;
    font-weight: 700;
}

body.home-page .section-enjeux .enjeux-action {
    align-self: flex-start;
    justify-content: flex-start;
    padding: 9px 20px;
    border-radius: 999px;
    background: var(--enjeux-accent, #1e4fff);
    color: #fff;
    font-size: .64rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

body.home-page .section-enjeux .enjeux-action:hover,
body.home-page .section-enjeux .enjeux-action:focus-visible {
    transform: translateY(-4px) scale(1.03);
    filter: brightness(1.06);
    box-shadow: 0 9px 18px rgba(30, 79, 255, .24);
}

body.home-page .section-enjeux .enjeux-arrow { 
    display: none; 
}

body.home-page .section-enjeux .enjeux-theme-dsi { 
    --enjeux-accent: #1e4fff; 
    --enjeux-chip-bg: #eaf1ff; 
}
body.home-page .section-enjeux .enjeux-theme-drh { 
    --enjeux-accent: #be00b4 !important; 
    --enjeux-chip-bg: #fce8fa; 
}
body.home-page .section-enjeux .enjeux-theme-dg { 
    --enjeux-accent: #ff751f;
    --enjeux-chip-bg: #fff0eb; 
}

body.home-page .section-enjeux .enjeux-theme-drh .enjeux-dot {
    border-color: #be00b4;
}

body.home-page .section-enjeux .enjeux-theme-drh .enjeux-dot::before {
    background: #be00b4;
}

body.home-page .section-enjeux .enjeux-theme-drh .enjeux-dot::after {
    border-color: #be00b4;
}

/* ==========================================
   Section Call To Action (CTA)
   ========================================== */
body.home-page .section-cta {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    margin: 0 auto 0;
    padding: clamp(2.1rem, 3vw, 3rem) var(--spacing-md, 1.5rem) clamp(2.2rem, 3.4vw, 3.5rem);
    border-radius: 30px;
    background: url('../images/home/mountain_bg.webp') center right / cover no-repeat;
    color: #16244f;
}

body.home-page .section-cta .btn-primary.btn-lg {
    min-width: 320px;
    padding: 0.96rem 1.75rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #1769ff, #0d53f7);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

body.home-page .section-cta .cta-title,
body.home-page .client-logos-reference h2 {
    color: #060679;
}

/* ==========================================
   Section Blogs / Actualités (Cartes Agrandies)
   ========================================== */
body.home-page .blogs-section {
    position: relative;
    overflow: hidden;
    padding: clamp(0.85rem, 1.6vw, 1.4rem) 0 0;
    color: #16235f;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.98), transparent 18%),
        linear-gradient(180deg, #fbfcff 0%, #eef4ff 44%, #f7f8ff 100%);
}

body.home-page .client-logos-reference {
    position: relative;
    z-index: 2;
    margin-top: -1.5rem;
    padding: 1.5rem 0 0;
    display: flow-root;
}

body.home-page .blogs-section .container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
}

body.home-page .blogs-section .section-title-blog {
    margin-bottom: 1.5rem;
    text-align: center;
}

body.home-page .blogs-section .section-title-blog h2 {
    position: relative;
    display: inline-block;
    margin: 0;
    color: #192a72;
    font-size: clamp(2.1rem, 2.6vw, 2.85rem);
    font-weight: 800;
    line-height: 1.1;
}

body.home-page .blogs-section .section-subtitle {
    margin: 1rem 0 0;
    color: #64708f;
    font-size: 1rem;
    line-height: 1.5;
}

body.home-page .blogs-section .carousel-wrapper {
    position: relative;
    margin: 2rem auto 0;
    padding: 0 40px;
}

body.home-page .blogs-section .blogs-carousel {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
    scroll-snap-type: x mandatory;
    padding: 0.8rem 0 1.2rem;
}

body.home-page .blogs-section .blogs-carousel-inner {
    display: flex;
    align-items: stretch;
    gap: 1.8rem;
}

body.home-page .blogs-section .blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 clamp(320px, 28vw, 380px);
    min-width: clamp(320px, 28vw, 380px);
    max-width: none;
    min-height: 440px;
    border: 1px solid rgba(197, 208, 233, 0.82);
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    color: #060679;
    box-shadow: 0 14px 32px rgba(21, 32, 71, 0.09);
    scroll-snap-align: start;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.home-page .blogs-section .blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(21, 32, 71, 0.15);
}

body.home-page .blogs-section .blog-card-media {
    display: block;
    width: 100%;
    height: 220px;
    flex: 0 0 220px;
}

body.home-page .blogs-section .blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.home-page .blogs-section .blog-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.4rem 1.5rem;
    flex: 1;
    flex-shrink: 0;
    min-width: 0;
}

body.home-page .blogs-section .blog-card-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.35rem;
}

body.home-page .blogs-section .blog-card-cta {
    background: var(--blog-accent, #1e4fff);
    color: var(--blog-accent-text, #ffffff);
    flex: 0 0 auto;
    width: 100%;
    display: inline-flex;
    align-items: center;
    min-height: 3.8rem;
    justify-content: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    line-height: 1.4;
    text-align: center;
}

body.home-page .blogs-section .blog-card-author-slot {
    display: block;
    min-height: 1.5em;
    font-size: 0.78rem;
}

body.home-page .blogs-section .blog-card-meta {
    color: var(--blog-accent, #1e4fff);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.home-page .blogs-section .blog-card-title {
    display: block;
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: visible;
    overflow-wrap: anywhere;
    margin: 0;
    color: #060679;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
}

body.home-page .blogs-section .blog-card-excerpt {
    display: block;
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: visible;
    margin: 0;
    color: #5c6787;
    font-size: 0.92rem;
    line-height: 1.6;
}

body.home-page .blogs-section .blog-card-author {
    color: #64748b;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* ==========================================
   Responsive Mobile & Tablette
   ========================================== */
@media (max-width: 992px) {
    .ref-path-grid { gap: 20px; }
}

@media (max-width: 780px) {
    body.home-page::before { height: 600px; }
    .ref-paths { margin-top: 0; }
    .ref-path-grid { grid-template-columns: 1fr; gap: 20px; }
    .ref-path-card { min-height: 0; padding: 24px 20px; }
    body.home-page .section-enjeux .enjeux-timeline { width: 100%; }
    body.home-page .section-enjeux .enjeux-row { grid-template-columns: 24px minmax(0, 1fr); gap: 0 12px; }
    body.home-page .section-enjeux .enjeux-line { left: 12px; transform: none; }
    body.home-page .section-enjeux .enjeux-dot { grid-column: 1; justify-self: center; }
    body.home-page .section-enjeux .enjeux-visual,
    body.home-page .section-enjeux .enjeux-body { grid-column: 2 !important; min-height: 0; }
    body.home-page .section-enjeux .enjeux-visual { grid-row: 2; }
    body.home-page .section-enjeux .enjeux-body { grid-row: 1; }
    body.home-page .section-enjeux .enjeux-img { height: 160px; }
    body.home-page .blogs-section .blog-card { flex-basis: clamp(280px, 80vw, 320px); min-width: clamp(280px, 80vw, 320px); min-height: 380px; }
}

/* Mobile layout polish for the home page. */
@media (max-width: 780px) {
    body.home-page main.home-cinematic {
        padding: 0;
    }

    body.home-page .ref-container {
        width: calc(100% - 2rem);
        max-width: none;
    }

    body.home-page .ref-hero {
        min-height: 0;
        padding: 2.25rem 0 2.1rem;
    }

    body.home-page .ref-hero-inner {
        min-height: 0;
    }

    body.home-page .ref-hero-copy {
        padding-top: 0;
        text-align: center;
    }

    body.home-page .hero-intro-question {
        margin-bottom: 2rem;
        font-size: clamp(1.6rem, 7.5vw, 3.1rem);
    }

    body.home-page .hero-title-spectacular {
        width: 100%;
        max-width: 100%;
        margin-bottom: 0;
        font-size: clamp(1.05rem, 3.2vw, 2rem);
        line-height: 1.35;
        letter-spacing: -0.04em;
        text-align: center;
    }

    body.home-page .hero-title-forward {
        margin-inline: auto;
    }

    body.home-page .ref-hero .hero-pathway {
        width: 100%;
        margin-top: 2rem;
        font-size: clamp(0.98rem, 4vw, 1.1rem);
        line-height: 1.55;
        text-wrap: balance;
    }

    body.home-page .ref-hero .hero-pathway-line {
        width: 100%;
        max-width: none;
        margin-bottom: 0.9rem;
        text-align: center;
    }

    body.home-page .hero-viaaduc-card {
        left: 50%;
        width: calc(100vw - 2rem);
        max-width: 360px;
        padding: 1rem 1.05rem 1.1rem;
        transform: translate(-50%, 10px);
    }

    body.home-page .hero-viaaduc-tooltip:hover .hero-viaaduc-card,
    body.home-page .hero-viaaduc-tooltip:focus-within .hero-viaaduc-card {
        transform: translate(-50%, 0);
    }

    body.home-page .hero-viaaduc-card-title {
        font-size: 1rem;
    }

    body.home-page .hero-viaaduc-card-text {
        font-size: 0.78rem;
        line-height: 1.5;
    }

    body.home-page .ref-paths {
        margin-top: 0;
        padding: 2.25rem 0 3rem;
    }

    body.home-page .ref-section-heading {
        margin-bottom: 1.5rem;
        padding-inline: 0.25rem;
    }

    body.home-page .ref-section-heading h2 {
        font-size: clamp(1.7rem, 7vw, 2.25rem);
        line-height: 1.12;
    }

    body.home-page .ref-path-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    body.home-page .ref-path-card {
        min-height: 0;
        padding: 1.45rem 1.1rem 1.35rem;
        border-radius: 20px;
    }

    body.home-page .ref-icon {
        width: 88px;
        height: 88px;
        margin-bottom: 1rem;
    }

    body.home-page .ref-icon img {
        width: 64px;
        height: 64px;
    }

    body.home-page .ref-path-card h3 {
        min-height: 0;
        font-size: clamp(1.18rem, 5.5vw, 1.5rem);
        line-height: 1.18;
    }

    body.home-page .ref-path-card p:not(.ref-card-link) {
        font-size: 0.9rem;
        line-height: 1.55;
    }

    body.home-page .section-enjeux {
        padding: 3rem 0 0;
    }

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

    body.home-page .section-enjeux .enjeux-title {
        font-size: clamp(2rem, 8vw, 2.7rem);
    }

    body.home-page .section-enjeux .enjeux-timeline {
        width: 100%;
    }

    body.home-page .section-enjeux .enjeux-row {
        grid-template-columns: 20px minmax(0, 1fr);
        column-gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    body.home-page .section-enjeux .enjeux-line {
        left: 10px;
    }

    body.home-page .section-enjeux .enjeux-dot {
        width: 18px;
        height: 18px;
        border-width: 2px;
    }

    body.home-page .section-enjeux .enjeux-dot::before {
        width: 6px;
        height: 6px;
    }

    body.home-page .section-enjeux .enjeux-visual,
    body.home-page .section-enjeux .enjeux-body {
        min-width: 0;
    }

    body.home-page .section-enjeux .enjeux-visual {
        border-radius: 16px;
    }

    body.home-page .section-enjeux .enjeux-img {
        height: clamp(165px, 48vw, 220px);
        border-radius: 16px;
    }

    body.home-page .section-enjeux .enjeux-body {
        padding: 1.2rem 1.05rem;
        border-radius: 16px;
    }

    body.home-page .section-enjeux .enjeux-question {
        font-size: clamp(1.08rem, 4.8vw, 1.35rem);
        line-height: 1.3;
    }

    body.home-page .section-enjeux .enjeux-action {
        font-size: 0.62rem;
        padding: 0.55rem 0.85rem;
    }

    body.home-page .section-cta {
        padding: 3rem 1rem;
        border-radius: 30px;
    }

    body.home-page .section-cta .container {
        padding-inline: 0;
    }

    body.home-page .section-cta .cta-title {
        font-size: clamp(1.8rem, 8vw, 2.45rem);
        line-height: 1.12;
    }

    body.home-page .section-cta .cta-description {
        font-size: 0.95rem;
    }

    body.home-page .section-cta .btn-primary.btn-lg {
        width: 100%;
        min-width: 0;
        max-width: 360px;
        padding-inline: 1rem;
    }

    body.home-page .client-logos-reference {
        position: relative;
        z-index: 2;
        margin-top: -1rem;
        padding: 1rem 0 0;
    }

    body.home-page .client-logos-reference .container {
        padding-inline: 0;
    }

    body.home-page .client-logos-reference h2 {
        padding-inline: 1rem;
        font-size: clamp(1.8rem, 7vw, 2.35rem);
    }

    body.home-page .client-trust-slide {
        flex-basis: min(78vw, 285px);
        min-height: 112px;
    }

    body.home-page .client-logo-image {
        max-width: calc(100% - 1rem);
        max-height: 88px;
    }

    body.home-page .blogs-section {
        padding: 0.9rem 0 0;
    }

    body.home-page .blogs-section .carousel-wrapper {
        padding: 0;
    }

    body.home-page .blogs-section .blogs-carousel {
        padding-inline: 0.75rem;
    }

    body.home-page .footer {
        margin-top: 1rem;
        padding-top: 1.5rem;
    }
}

@media (max-width: 420px) {
    body.home-page .ref-hero {
        padding-top: 1.75rem;
    }

    body.home-page .hero-intro-question {
        margin-bottom: 1.7rem;
        font-size: clamp(1.5rem, 7.5vw, 3rem);
    }

    body.home-page .hero-title-spectacular {
        font-size: clamp(1.05rem, 3.1vw, 1.9rem);
    }

    body.home-page .ref-hero .hero-pathway {
        margin-top: 1.7rem;
        font-size: 0.95rem;
    }

    body.home-page .ref-path-card {
        padding-inline: 1rem;
    }

    body.home-page .section-enjeux .enjeux-body {
        padding-inline: 0.9rem;
    }

    body.home-page .client-trust-slide {
        flex-basis: min(82vw, 270px);
    }

    body.home-page .client-logos-reference {
        margin-top: -0.75rem;
        padding-top: 0.75rem;
    }

    body.home-page .footer {
        margin-top: 0.75rem;
        padding-top: 1.25rem;
    }
}

/* Les sections de l'accueil s'enchaînent sans rupture visuelle.
   Les espacements externes sont neutralisés pour garder un fil continu. */
body.home-page main.home-cinematic {
    padding-top: 0;
    padding-bottom: 0;
}

body.home-page .ref-paths {
    margin-top: 0;
    padding-bottom: 0;
}

body.home-page .section-enjeux,
body.home-page .client-logos-reference,
body.home-page .blogs-section {
    margin-top: 0;
}

body.home-page .section-cta {
    margin-top: 0;
}

body.home-page .footer {
    margin-top: 1.5rem;
    padding-top: 2rem;
}

/* Un fond commun, comme sur la page Former, sans bandes entre les sections. */
body.home-page {
    --home-continuous-background: #f6f9ff;
    background: var(--home-continuous-background);
}

body.home-page main.home-cinematic > section {
    border-top: 0;
    border-bottom: 0;
    box-shadow: none;
}

body.home-page .ref-paths,
body.home-page .section-enjeux,
body.home-page .client-logos-reference,
body.home-page .blogs-section {
    background: transparent;
}

body.home-page main.home-cinematic > section::before,
body.home-page main.home-cinematic > section::after {
    display: none;
}

body.home-page .section-cta {
    border-radius: 30px;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    background:
        url('../images/home/mountain_bg.webp') center right / cover no-repeat;
}


/* iPhone: the document remains the only vertical scroll surface. */
@media (max-width: 1199px), (pointer: coarse) {
    html:has(body.home-page), body.home-page {
        overflow: visible;
        scroll-behavior: auto;
    }
    body.home-page {
        zoom: 1;
        background-attachment: scroll;
    }
    body.home-page main.home-cinematic {
        max-width: 100%;
        overflow-x: clip;
        overflow-y: visible;
    }
    body.home-page main.home-cinematic [data-home-section],
    body.home-page main.home-cinematic .scroll-reveal,
    body.home-page main.home-cinematic .blog-card,
    body.home-page main.home-cinematic .card-stagger,
    body.home-page main.home-cinematic .enjeux-item,
    body.home-page main.home-cinematic .home-animate-phrase {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
        transition: none !important;
        will-change: auto;
    }
    body.home-page .blogs-section .blogs-carousel {
        scroll-snap-type: none;
    }
    body.home-page .blogs-section .blog-card {
        scroll-snap-align: none;
        scroll-snap-stop: normal;
    }
}

/* Two complete cards across tablet portrait and landscape widths. */
@media (min-width: 600px) and (max-width: 1199px) {
    body.home-page .blogs-section .carousel-wrapper {
        width: 100%;
        padding-inline: 24px;
    }
    body.home-page .blogs-section .blogs-carousel {
        padding-inline: 0;
    }
    body.home-page .blogs-section .blogs-carousel-inner {
        width: 100%;
        gap: 20px;
    }
    body.home-page .blogs-section .blog-card {
        flex: 0 0 calc((100% - 20px) / 2);
        min-width: 0;
        max-width: calc((100% - 20px) / 2);
    }
}

/* Keep the desktop card structure, with two cards visible on a phone. */
@media (max-width: 599px) {
    body.home-page .blogs-section .carousel-wrapper {
        width: 100%;
        padding-inline: 12px;
    }
    body.home-page .blogs-section .blogs-carousel {
        padding-inline: 0;
    }
    body.home-page .blogs-section .blogs-carousel-inner {
        width: 100%;
        gap: 12px;
    }
    body.home-page .blogs-section .blog-card {
        flex: 0 0 calc((100% - 12px) / 2);
        min-width: 0;
        max-width: calc((100% - 12px) / 2);
        min-height: 320px;
        border-radius: 14px;
    }
    body.home-page .blogs-section .blog-card-media {
        height: 112px;
        flex-basis: 112px;
    }
    body.home-page .blogs-section .blog-card-content {
        padding: 12px;
        gap: 10px;
    }
    body.home-page .blogs-section .blog-card-title {
        font-size: 1rem;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }
    body.home-page .blogs-section .blog-card-excerpt {
        font-size: 0.78rem;
        line-height: 1.5;
    }
    body.home-page .blogs-section .blog-card-meta,
    body.home-page .blogs-section .blog-card-author-slot {
        font-size: 0.65rem;
        overflow-wrap: anywhere;
    }
    body.home-page .blogs-section .blog-card-cta {
        min-height: 44px;
        padding: 8px;
        font-size: 0.75rem;
    }
}
