/* ==========================================================================
   Retinax — accueil.css
   Page d'accueil : snap-scroll plein écran, sections 1 (hero) & 2 (réseau)
   ========================================================================== */

html, body {
    height: 100%;
    overflow: hidden;
}

.accueil {
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.accueil::-webkit-scrollbar {
    display: none;
}

.section {
    position: relative;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background-color: var(--color-bg);
}

/* Background-image placé sur un pseudo : permet d'animer son opacity sans
 * affecter le contenu. Le fond noir de .section reste visible derrière, ce
 * qui masque les coupures entre images de sections différentes pendant le
 * scroll. L'opacity est contrôlée frame par frame depuis snap-scroll.js
 * via la variable --bg-opacity (sinusoïdale : 1 au repos, 0 à mi-scroll,
 * 1 à l'arrivée), synchronisée avec la position réelle du scroll. */
.section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: var(--bg-opacity, 1);
    z-index: 0;
    pointer-events: none;
}

.section__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-content);
    height: 100%;
    margin: 0 auto;
    padding: clamp(96px, 12vh, 140px) var(--container-padding-inline) clamp(40px, 6vh, 64px);
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Section 1 — Hero
   ========================================================================== */

.section--hero::before {
    background-image: url('../images/accueil/hero-bg.png');
}

.hero {
    align-items: center;
    text-align: center;
    justify-content: center;
}

.hero__title {
    font-family: var(--font-display);
    font-size: var(--fs-hero);
    font-weight: 700;
    line-height: var(--lh-hero);
    max-width: 900px;
    color: var(--color-text) !important;
}

.hero__lead {
    margin-top: clamp(24px, 4vh, 56px);
    max-width: 720px;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--color-text);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    margin-top: clamp(24px, 4vh, 40px);
}

.hero__partners {
    position: absolute;
    right: clamp(24px, 5vw, 80px);
    bottom: clamp(40px, 8vh, 96px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-2);
    z-index: 3;
}

.hero__partners img {
    max-width: 200px;
    height: auto;
    opacity: 0.92;
}

.hero__partners img.partner--frenchcare {
    max-width: 162px;
}

.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: clamp(32px, 6vh, 64px);
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    color: var(--color-text);
    background: transparent;
    border: 0;
    z-index: 3;
    cursor: pointer;
    user-select: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.scroll-hint:hover,
.scroll-hint:focus-visible {
    transform: translateX(-50%) translateY(-2px);
}

.scroll-hint:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 3px;
    border-radius: 6px;
}

.scroll-hint__mouse {
    width: 28px;
    height: auto;
}

.scroll-hint__label {
    font-family: var(--font-display);
    font-size: var(--fs-scroll);
    font-weight: 600;
    line-height: 1.1;
    max-width: 180px;
    text-align: center;
}

.scroll-hint__arrow {
    width: 14px;
    height: 14px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: 4px;
    animation: scroll-hint-bounce 1.6s ease-in-out infinite;
}

@keyframes scroll-hint-bounce {
    0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.6; }
    50%      { transform: translateY(6px) rotate(45deg); opacity: 1; }
}

/* ==========================================================================
   Section 2 — La force d'un réseau
   Layout : 2 colonnes (texte+CTA à gauche, illustration à droite)
   ========================================================================== */

.section--reseau::before {
    background-image: url('../images/accueil/sections-bg.png');
}

.reseau {
    align-items: stretch;
    gap: clamp(20px, 3.5vh, 48px);
}

.reseau__title {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: 700;
    line-height: var(--lh-h2);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(90deg, #C4C4C4 0%, rgba(196, 196, 196, 0.8) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.reseau__columns {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
    min-height: 0;
}

.reseau__content {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vh, 24px);
    max-width: 600px;
    text-align: left;
}

.reseau__lead {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.6;
    color: var(--color-text-muted);
}

.reseau__actions {
    margin-top: clamp(4px, 1vh, 12px);
}

.reseau__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.reseau__illustration {
    width: 100%;
    max-width: 700px;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

/* Switch desktop/mobile : breakpoint à 900px pour matcher le SVG mobile
 * (viewBox 800x1980 = portrait, mieux adapté aux écrans étroits). */
.reseau__illustration--mobile {
    display: none;
}
@media (max-width: 900px) {
    .reseau__illustration--desktop {
        display: none;
    }
    .reseau__illustration--mobile {
        display: block;
        max-width: 600px;
        object-fit: cover;
        max-height: none;
    }
}

/* ==========================================================================
   Section 3 — Nos initiatives (carrousel 8 slides)
   Layout stack vertical : titre / barre de numéros / slide actif (titre+desc+CTA+image)
   ========================================================================== */

.section--initiatives::before {
    background-image: url('../images/accueil/sections-bg.png');
}

.initiatives {
    align-items: center;
    text-align: center;
    gap: clamp(16px, 2.4vh, 32px);
}

.initiatives__heading {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    max-width: 920px;
    margin: 0 auto;
    background: linear-gradient(90deg, #C4C4C4 0%, rgba(196, 196, 196, 0.8) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.initiatives__numbers {
    position: relative;       /* offsetParent des boutons → calcul shift fiable */
    width: max-content;       /* largeur = contenu, le <ol> glisse dans la fenêtre */
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 32px);
    list-style: none;
    margin: 0;
    padding: 0;
    transform: translateX(var(--shift, 0px));
    /* Pas de transition : changement de slide instantané sur la barre des
     * numéros (l'animation latérale donnait un effet "mal de mer"). */
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

/* Les <li> sont ignorés pour le layout — les <button> deviennent enfants flex
 * directs de la liste, ce qui rend offsetLeft du button utilisable pour calculer
 * le shift de manière stable pendant les transitions. */
.initiatives__numbers > li {
    display: contents;
}

.initiatives__numbers.is-dragging,
.initiatives__numbers.is-dragging .initiatives__number {
    cursor: grabbing;
}

/* Barre de navigation : flèche ‹ — numéros — flèche › */
.initiatives__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2.5vw, 28px);
    width: 100%;
}

/* FENÊTRE fixe : ne bouge jamais, encadrée par les flèches. C'est ELLE qui
 * a la largeur fixe + overflow. Le <ol> à l'intérieur (translaté) glisse
 * dedans sans déborder sur les flèches. */
.initiatives__numbers-window {
    flex: 0 0 auto;
    width: min(620px, 68vw);
    overflow: hidden;
}

.initiatives__arrow {
    flex: 0 0 auto;
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--color-text);
    cursor: pointer;
    transition: border-color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.initiatives__arrow:hover:not(:disabled),
.initiatives__arrow:focus-visible:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.06);
}

.initiatives__arrow:disabled {
    opacity: 0.22;
    cursor: not-allowed;
}

.initiatives__chevron {
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    display: block;
}

.initiatives__arrow--prev .initiatives__chevron { transform: rotate(-135deg); margin-left: 3px; }
.initiatives__arrow--next .initiatives__chevron { transform: rotate(45deg); margin-right: 3px; }

/* Points indicateurs de position */
.initiatives__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: clamp(8px, 1.4vh, 16px);
}

.initiatives__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    /* Pas de transition : passage à actif/inactif instantané. */
}

.initiatives__dot:hover { background: rgba(255, 255, 255, 0.6); }

.initiatives__dot.is-active {
    width: 24px;
    background: #fff;
}

@media (max-width: 767px) {
    .initiatives__arrow { width: 38px; height: 38px; }
    .initiatives__nav { gap: 8px; }
}

.initiatives__number {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--accent-from, var(--accent, var(--color-text)));
    background: transparent;
    border: 0;
    padding: 4px 6px;
    cursor: pointer;
    /* Pas de transition : changement opacity/font-size instantané. */
    line-height: 1;
}

.initiatives__number[data-dist="0"] {
    font-size: clamp(40px, 5vw, 72px) !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}
.initiatives__number[data-dist="1"] { font-size: clamp(28px, 3.4vw, 46px) !important; opacity: 0.6 !important; }
.initiatives__number[data-dist="2"] { font-size: clamp(20px, 2.4vw, 32px) !important; opacity: 0.32 !important; }

/* !important : bat notre propre override `display: inline-block !important`
 * mis plus bas pour neutraliser Elementor — sinon les numéros lointains
 * (data-dist >= 3) restent visibles. */
.initiatives__number[data-dist="3"],
.initiatives__number[data-dist="4"],
.initiatives__number[data-dist="5"],
.initiatives__number[data-dist="6"],
.initiatives__number[data-dist="7"] { display: none !important; }

.initiatives__number:hover { opacity: 1; }
.initiatives__number:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 4px;
    border-radius: 4px;
}

.initiatives__viewport {
    position: relative;
    flex: 1;
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.initiatives__slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(32px, 4vw, 80px);
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}

.initiatives__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.initiatives__col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.initiatives__col--text {
    gap: 4px;
    justify-content: center;
}

.initiatives__col--text .initiatives__desc {
    margin-top: clamp(10px, 1.4vh, 18px);
}

.initiatives__col--media {
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2vh, 24px);
    height: 100%;
}

.initiatives__title {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.6vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

/* Le titre est désormais un logo SVG (alt = nom du projet, conservé pour le
 * SEO/a11y). Hauteur calibrée par logo via --logo-h (posée inline) car les
 * SVG ont des ratios différents. --logo-scale réduit le tout en responsive. */
.initiatives__title-img {
    display: block;
    height: calc(var(--logo-h, 44px) * var(--logo-scale, 1));
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.initiatives__subtitle {
    font-family: var(--font-display);
    font-size: clamp(15px, 1.1vw, 18px);
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text);
    max-width: 620px;
}

.initiatives__desc {
    font-family: var(--font-body);
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 620px;
}

.initiatives__cta {
    margin-top: clamp(4px, 1vh, 12px);
}

/* CTA avec dégradé gauche → droite. Couleurs définies inline par slide via
 * --accent-from / --accent-to (fallback : --accent unique). */
.initiatives__slide .initiatives__cta.btn--primary {
    background: linear-gradient(
        90deg,
        var(--accent-from, var(--accent, var(--color-text))) 0%,
        var(--accent-to, var(--accent, var(--color-text))) 100%
    );
    color: #fff;
    transition: filter var(--transition-fast);
}

.initiatives__slide .initiatives__cta.btn--primary:hover,
.initiatives__slide .initiatives__cta.btn--primary:focus-visible {
    color: #fff;
    filter: brightness(0.92);
}

.initiatives__visual {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.initiatives__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

@media (max-width: 1024px) {
    .initiatives { --logo-scale: 0.85; }
    .initiatives__slide {
        grid-template-columns: 1fr;
        text-align: center;
        gap: clamp(16px, 2.4vh, 28px);
    }
    .initiatives__col--text {
        align-items: center;
    }
    .initiatives__col--media {
        max-height: none;
    }
    .initiatives__image {
        max-height: 50vh;
    }

    /* Section 3 sur tablette : bcp de contenu, on autorise le scroll de la section. */
    .section--initiatives {
        height: auto;
        min-height: 100dvh;
    }
    .section--initiatives .section__inner {
        padding-bottom: clamp(80px, 14vh, 140px);
    }
}

@media (max-width: 767px) {
    .initiatives { --logo-scale: 0.68; }
    .initiatives__number[data-dist="2"] { display: none; }
}

/* ==========================================================================
   Section 4 — Notre vision (préview vidéo)
   Layout : titre / média (image en attendant la vidéo) / description / CTA.
   Stack vertical centré. Le wrapper .vision__media est prêt à accueillir
   un <video> ou <iframe> à la place du <img> placeholder.
   ========================================================================== */

.section--vision::before {
    background-image: url('../images/accueil/sections-bg.png');
}

.vision {
    align-items: center;
    text-align: center;
    gap: clamp(16px, 2.4vh, 32px);
}

.vision__title {
    font-family: var(--font-display);
    font-size: clamp(26px, 2.8vw, 40px);
    font-weight: 700;
    line-height: 1.25;
    max-width: 880px;
    margin: 0 auto;
    background: linear-gradient(90deg, #C4C4C4 0%, rgba(196, 196, 196, 0.8) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.vision__media {
    flex: 1 1 auto;
    width: 100%;
    max-width: 900px;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    overflow: hidden;
    background-color: #000;
}

.vision__placeholder,
.vision__video,
.vision__media video,
.vision__media iframe {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

.vision__desc {
    font-family: var(--font-body);
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 720px;
}

.vision__cta {
    margin-top: clamp(4px, 1vh, 12px);
}

@media (max-width: 1024px) {
    .vision__media {
        max-height: 50vh;
    }
    .section--vision {
        height: auto;
        min-height: 100dvh;
    }
    .section--vision .section__inner {
        padding-bottom: clamp(80px, 14vh, 140px);
    }
}

/* ==========================================================================
   Section 5 — L'équipe (nuage de bulles photos)
   27 bulles positionnées en absolute via variables CSS --x / --y / --size.
   Effet hover : la bulle survolée scale, et JS pousse les bulles voisines
   via --push-x / --push-y. Animations en transform GPU-accelerated.
   ========================================================================== */

.section--team::before {
    background-image: url('../images/accueil/sections-bg.png');
}

.team {
    align-items: center;
    text-align: center;
    gap: clamp(20px, 3vh, 40px);
    justify-content: space-between;
}

.team__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    max-width: 760px;
    margin: 0 auto;
    background: linear-gradient(90deg, #C4C4C4 0%, rgba(196, 196, 196, 0.8) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.team-cloud {
    position: relative;
    flex: 0 1 auto;
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 2 / 1;
    margin: 0 auto;
}

.team-cloud__bubble {
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    width: var(--size, 80px);
    height: var(--size, 80px);
    border-radius: 50%;
    overflow: hidden;
    background-color: #1a1a1a;
    /* Centrage de la bulle sur (--x, --y). Le push hover est ajouté en JS via
     * style.transform direct (plus fiable qu'une CSS variable interpolée). */
    transform: translate(-50%, -50%);
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.team-cloud__bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--obj-pos, center);
    display: block;
}

.team-cloud__bubble:hover {
    z-index: 5;
}

.team__cta {
    margin-top: clamp(8px, 1.4vh, 18px);
}

@media (max-width: 1024px) {
    .team-cloud {
        max-width: 720px;
    }
    .team-cloud__bubble {
        --size: calc(var(--size-base, 80px) * 0.78);
    }
    .section--team {
        height: auto;
        min-height: 100dvh;
    }
}

/* Mobile + tablette (≤1024px) : on remplace le cloud par un système de bulles
 * qui flottent dans le container, rebondissent aux bords et entre elles, puis
 * disparaissent après plusieurs collisions (renouvellement par d'autres bulles).
 * Voir assets/js/team-bubbles-float.js pour la physique. */
@media (max-width: 1024px) {
    .team-cloud {
        display: none;
    }
}

.team-bubbles {
    display: none;
}

@media (max-width: 1024px) {
    .team-bubbles {
        display: block;
        position: relative;
        width: 100vw;
        margin-left: calc(50% - 50vw); /* casse le padding du section__inner */
        height: 60vh;
        overflow: hidden;
    }
}

.team-bubble {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    overflow: hidden;
    background-color: #1a1a1a;
    will-change: transform, opacity;
    pointer-events: none;
    /* Le JS gère transform et opacity via style inline frame par frame. */
}

.team-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--obj-pos, center);
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .team-bubbles { display: none; }
}

/* L'effet hover du cloud (.team-cloud__bubble) garde sa transition douce même
 * en reduce-motion : effet déclenché par l'utilisateur, doit marcher quelle
 * que soit la config (cf. team-cloud.js). */

/* ==========================================================================
   Section 6 — CTA final "Et si on construisait la suite ensemble ?"
   Bloc compact centré : titre + lead court + 2 CTA. Le footer Elementor est
   injecté COMME ENFANT de .section--cta par footer-fit.js : la section reste
   à 100dvh (snap normal), contenu CTA centré en flex:1, footer en bas via
   flex-shrink:0. Plus simple que mesurer dynamiquement la hauteur du footer.
   ========================================================================== */

.section--cta {
    display: flex;
    flex-direction: column;
    /* 30px de respiration en bas : empêche le footer d'être collé au bord du
     * viewport (où une scrollbar, barre de tâches OS, ou anti-aliasing peut
     * grignoter quelques px et donner l'impression d'un crop). */
    padding-bottom: 30px;
}

.section--cta > .section__inner {
    flex: 1;
    height: auto;
}

.section--cta::before {
    background-image: url('../images/accueil/sections-bg.png');
}

/* Footer Elementor injecté dans .section--cta par footer-fit.js. flex-shrink:0
 * pour qu'il garde sa hauteur naturelle (.section__inner shrinkera à la place).
 * z-index:2 pour qu'il soit au-dessus du ::before background de la section. */
.section--cta > [data-elementor-type="footer"] {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.cta-final {
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: clamp(16px, 2.4vh, 28px);
}

.cta-final__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 3.6vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    max-width: 820px;
    margin: 0 auto;
    background: linear-gradient(90deg, #C4C4C4 0%, rgba(196, 196, 196, 0.8) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.cta-final__lead {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 620px;
}

.cta-final__mail {
    font-family: var(--font-body);
    font-size: clamp(16px, 1.3vw, 19px);
    line-height: 1.4;
}

.cta-final__mail a {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity var(--transition-fast);
}

.cta-final__mail a:hover,
.cta-final__mail a:focus-visible {
    opacity: 0.75;
}

.cta-final__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    margin-top: clamp(8px, 1.6vh, 20px);
}

/* ==========================================================================
   Navigation entre sections — flèches dans les angles bas
   Présentes globalement sur .accueil, masquées via attribut [hidden]
   sur la première (pas de prev) et la dernière (pas de next).
   ========================================================================== */

.section-nav {
    position: fixed;
    bottom: clamp(20px, 4vh, 40px);
    z-index: 10;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 8px;
    color: var(--color-text);
    background: transparent;
    border: 0;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.section-nav__mouse {
    width: 24px;
    height: auto;
}

.section-nav:hover,
.section-nav:focus-visible {
    transform: scale(1.12);
}

.section-nav:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 3px;
    border-radius: 4px;
}

.section-nav[hidden] {
    display: none;
}

.section-nav[disabled] {
    opacity: 0.32;
    cursor: not-allowed;
}

.section-nav--prev {
    right: clamp(20px, 3vw, 49px);
}

.section-nav--next {
    left: clamp(20px, 3vw, 49px);
}

.section-nav__icon {
    width: 14px;
    height: 22px;
    object-fit: contain;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1366px) {
    .hero__partners img {
        max-width: 170px;
    }
}

@media (max-width: 1024px) {
    .hero__partners {
        bottom: clamp(96px, 14vh, 140px);
    }

    .hero__partners img {
        max-width: 140px;
    }

    .hero__partners img.partner--frenchcare {
        max-width: 120px;
    }
}

@media (max-width: 1024px) {
    .reseau__columns {
        grid-template-columns: 1fr;
        gap: clamp(20px, 3vh, 32px);
        align-items: center;
        justify-items: center;
    }

    .reseau__content {
        max-width: 640px;
        align-items: center;
        text-align: center;
    }

    .reseau__visual {
        max-height: none;
    }

    .reseau__illustration {
        max-height: 60vh;
    }

    /* Section 2 sur tablette : tellement de texte que l'on accepte de scroller
     * la section si nécessaire (plutôt que de comprimer texte + image). */
    .section--reseau {
        height: auto;
        min-height: 100dvh;
    }
    .section--reseau .section__inner {
        padding-bottom: clamp(80px, 14vh, 140px);
    }
}

/* Tablette : on garde le snap-scroll mais en "proximity" plutôt que mandatory,
 * pour autoriser le scroll natif dans les sections trop hautes (sections 2 et 3
 * où il y a beaucoup de texte). Le snap se fait gentiment quand on s'arrête
 * près d'un point d'ancrage. */
@media (max-width: 1024px) {
    .accueil {
        scroll-snap-type: y proximity;
    }
}

/* Mobile : snap-scroll totalement désactivé. Le scroll redevient naturel
 * (page-level). Les sections gardent un min-height: 100dvh mais peuvent
 * grandir si le contenu déborde. */
@media (max-width: 767px) {
    html, body {
        overflow: auto;
        height: auto;
    }
    .accueil {
        height: auto;
        overflow: visible;
        scroll-snap-type: none;
    }
    .section {
        height: auto;
        min-height: 100dvh;
        scroll-snap-align: none;
    }
    .section::before {
        opacity: 1 !important;
    }
    .section-nav {
        display: none;
    }
}

@media (max-width: 767px) {
    .section__inner {
        padding-top: clamp(80px, 12vh, 120px);
        padding-bottom: clamp(80px, 12vh, 110px);
    }

    .hero__title {
        margin-top: 16px;
    }

    .hero__partners {
        position: static;
        align-items: center;
        flex-direction: row;
        justify-content: center;
        margin-top: 0;
    }

    .hero__partners img {
        max-width: 110px;
    }

    .hero__partners img.partner--frenchcare {
        max-width: 96px;
    }

    .scroll-hint {
        bottom: 20px;
    }

    .scroll-hint__label {
        font-size: 14px;
    }

    .section-nav {
        width: 40px;
        height: 40px;
        bottom: 16px;
    }

    .section-nav--prev { right: 12px; }
    .section-nav--next { left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .accueil { scroll-behavior: auto; }
    .scroll-hint__arrow { animation: none; }
}

/* ==========================================================================
   Override Hello Elementor (theme parent) — neutralise le button:hover par
   défaut (background rouge + color #fff) qui pollue nos composants custom.
   On utilise !important car Hello Elementor force ses styles avec un
   selecteur très spécifique ou !important lui-même.
   ========================================================================== */

.scroll-hint,
.scroll-hint:hover,
.scroll-hint:focus,
.scroll-hint:focus-visible,
.section-nav,
.section-nav:hover,
.section-nav:focus,
.section-nav:focus-visible {
    background-color: transparent !important;
    color: var(--color-text) !important;
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    font: inherit !important;
}
.scroll-hint {
    display: flex !important;
    padding: 8px 12px !important;
}
.section-nav {
    display: inline-flex !important;
    padding: 8px !important;
}
.section-nav[hidden] {
    display: none !important;
}

.initiatives__number,
.initiatives__number:hover,
.initiatives__number:focus,
.initiatives__number:focus-visible {
    display: inline-block !important;
    background-color: transparent !important;
    color: var(--accent-from, var(--accent, var(--color-text))) !important;
    border: 0 !important;
    box-shadow: none !important;
    transition: none !important;
    animation: none !important;
}
.initiatives__numbers {
    transition: none !important;
    animation: none !important;
}
.initiatives__dot,
.initiatives__dot:hover,
.initiatives__dot:focus,
.initiatives__dot:focus-visible,
.initiatives__dot.is-active {
    transition: none !important;
    animation: none !important;
}
.initiatives__slide {
    transition: opacity 200ms ease !important;
}

.initiatives__arrow,
.initiatives__arrow:hover,
.initiatives__arrow:focus,
.initiatives__arrow:focus-visible {
    display: inline-flex !important;
    width: 44px !important;
    height: 44px !important;
    background-color: transparent !important;
    color: var(--color-text) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.initiatives__arrow:hover:not(:disabled),
.initiatives__arrow:focus-visible:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.7) !important;
}

.initiatives__dot,
.initiatives__dot:hover,
.initiatives__dot:focus,
.initiatives__dot:focus-visible {
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    background-color: rgba(255, 255, 255, 0.28) !important;
    border: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}
.initiatives__dot:hover {
    background-color: rgba(255, 255, 255, 0.6) !important;
}
.initiatives__dot.is-active,
.initiatives__dot.is-active:hover,
.initiatives__dot.is-active:focus,
.initiatives__dot.is-active:focus-visible {
    width: 24px !important;
    background-color: #fff !important;
}

/* CTA blancs pleins (hero, section 2, section 6) */
.accueil .btn--primary {
    background-color: var(--color-text) !important;
    color: var(--color-text-dark) !important;
}
.accueil .btn--primary:hover,
.accueil .btn--primary:focus,
.accueil .btn--primary:focus-visible {
    background-color: #e6e6e6 !important;
    color: var(--color-text-dark) !important;
}

/* CTA outline (vision, équipe, hero secondaire) */
.accueil .btn--ghost {
    background-color: transparent !important;
    color: var(--color-text) !important;
}
.accueil .btn--ghost:hover,
.accueil .btn--ghost:focus,
.accueil .btn--ghost:focus-visible {
    background-color: var(--color-text) !important;
    color: var(--color-text-dark) !important;
}

/* CTA initiatives — gradient personnalisé conservé en hover */
.accueil .initiatives__cta.btn--primary,
.accueil .initiatives__cta.btn--primary:hover,
.accueil .initiatives__cta.btn--primary:focus,
.accueil .initiatives__cta.btn--primary:focus-visible {
    background: linear-gradient(
        90deg,
        var(--accent-from, var(--accent, var(--color-text))) 0%,
        var(--accent-to, var(--accent, var(--color-text))) 100%
    ) !important;
    color: #fff !important;
}

/* ==========================================================================
   Apparition douce au scroll (classe .reveal, selectif via reveal.js)
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal.is-revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}