/* ==========================================================
   CONTINUUM — Accueil multi-pays (panneaux + tour de page)
   Maquette : colonnes verticales côte à côte
   ========================================================== */

:root {
    --splash-dark: #060a10;
    --splash-dark-2: #0b1220;
    --splash-text: #f4f7fb;
    --splash-muted: rgba(255, 255, 255, .62);
    --splash-accent: #1FA34A;
    --splash-header-h: 4.25rem;
}

.splash-page {
    margin: 0;
    padding: 0;
    background: var(--splash-dark);
    color: var(--splash-text);
    font-family: var(--font-body, 'Outfit', system-ui, sans-serif);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.splash-upper {
    text-transform: uppercase;
    letter-spacing: .12em;
}

.splash-page a {
    color: inherit;
    text-decoration: none;
}

.splash-container {
    width: min(1180px, calc(100% - 2.5rem));
    margin: 0 auto;
}

/* ---- Header flottant ---- */
.splash-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .95rem 1.35rem;
    pointer-events: none;
}

.splash-header .brand,
.splash-header .splash-lang,
.splash-header .splash-globe {
    pointer-events: auto;
}

.splash-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: min(16rem, 62vw);
    padding: .3rem .55rem;
    border-radius: .7rem;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}

.splash-logo .brand-logo--full,
.splash-logo .brand-logo--mark {
    display: block;
    line-height: 0;
}

.splash-logo .brand-mark--full {
    height: 3.6rem;
    width: auto;
    max-width: min(15rem, 58vw);
    object-fit: contain;
    object-position: center;
    filter: none;
}

.splash-logo .brand-name,
.splash-logo .brand-tag,
.splash-logo .brand-wordmark {
    display: none !important;
}

.splash-header__right {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.splash-globe {
    display: inline-flex;
    width: 1.35rem;
    height: 1.35rem;
    color: rgba(255, 255, 255, .85);
}

.splash-globe .icon,
.splash-globe svg {
    width: 100%;
    height: 100%;
}

.splash-lang a {
    color: rgba(255, 255, 255, .85);
    border-color: rgba(255, 255, 255, .3);
    background: rgba(0, 0, 0, .28);
    backdrop-filter: blur(8px);
    font-weight: 700;
}

.splash-lang a.active {
    background: #fff;
    color: #0a1628;
    border-color: #fff;
}

/* ==========================================================
   PANNEAUX PAYS (4 colonnes)
   ========================================================== */
.country-panels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 100dvh;
    min-height: 100vh;
    width: 100%;
    position: relative;
    background: #000;
    content-visibility: auto;
}

.country-panel {
    position: relative;
    min-height: 100dvh;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    animation: country-panel-in .75s cubic-bezier(.22, 1, .36, 1) forwards;
    animation-delay: calc(var(--panel-i, 0) * .1s + .05s);
    contain: layout paint;
}

@keyframes country-panel-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.country-panel__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.country-panel__img {
    position: absolute;
    inset: -4%;
    width: 108%;
    height: 108%;
    max-width: none;
    object-fit: cover;
    object-position: center 32%;
    transform: translate3d(0, 0, 0) scale(1.02);
    -webkit-transform: translate3d(0, 0, 0) scale(1.02);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    filter: contrast(1.06) saturate(1.08);
    will-change: transform;
    animation: country-kenburns 22s ease-in-out infinite alternate;
    animation-delay: calc(var(--panel-i, 0) * -4.2s);
}

@keyframes country-kenburns {
    0% {
        transform: translate3d(0, 0, 0) scale(1.02);
        object-position: 42% 28%;
    }
    50% {
        transform: translate3d(-1.6%, -1.1%, 0) scale(1.1);
        object-position: 58% 36%;
    }
    100% {
        transform: translate3d(1.2%, .6%, 0) scale(1.06);
        object-position: 48% 30%;
    }
}

.country-panel.is-hovered .country-panel__img,
.country-panel:hover .country-panel__img,
.country-panel:focus-within .country-panel__img {
    animation-play-state: paused;
    transform: translate3d(var(--pan-x, 0), var(--pan-y, 0), 0) scale(1.12);
    filter: contrast(1.12) saturate(1.14);
    transition: transform .55s cubic-bezier(.22, 1, .36, 1), filter .4s ease;
}

.country-panel__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, .28) 0%,
            rgba(var(--panel-color-rgb), .42) 45%,
            rgba(var(--panel-color-rgb), .72) 100%
        );
    opacity: .92;
    transition: opacity .4s ease, background .4s ease;
}

.country-panel--has-photo .country-panel__img {
    filter: contrast(1.08) saturate(1.1);
}

.country-panel--has-photo .country-panel__overlay {
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, .18) 0%,
            rgba(var(--panel-color-rgb), .32) 48%,
            rgba(var(--panel-color-rgb), .65) 100%
        );
    mix-blend-mode: normal;
    opacity: .88;
}

.country-panel--has-photo:hover .country-panel__img,
.country-panel--has-photo:focus-within .country-panel__img {
    filter: contrast(1.14) saturate(1.16);
}

.country-panel.is-hovered .country-panel__overlay,
.country-panel:hover .country-panel__overlay,
.country-panel:focus-within .country-panel__overlay {
    opacity: .78;
}

.country-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, transparent 30%, rgba(0, 0, 0, .55) 100%);
    pointer-events: none;
}

/* Liseré entre colonnes */
.country-panel:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, .12);
    z-index: 5;
    pointer-events: none;
}

.country-panel__inner {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 100dvh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--splash-header-h) + 1.25rem) .75rem 2rem;
    text-align: center;
}

.country-panel__flag {
    flex-shrink: 0;
}

.country-panel__flag .country-flag {
    width: 42px;
    height: 28px;
    border-radius: 3px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .18);
    display: block;
}

/* Nom vertical */
.country-panel__name {
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-display, 'Syne', sans-serif);
    font-weight: 800;
    font-size: clamp(1.65rem, 2.6vw, 2.75rem);
    letter-spacing: .18em;
    line-height: 1;
    color: #fff;
    text-shadow: 0 4px 28px rgba(0, 0, 0, .4);
    text-transform: uppercase;
}

.country-panel__name-text {
    display: block;
    white-space: nowrap;
}

.country-panel__slogan {
    margin: 0 0 1.4rem;
    max-width: 14ch;
    font-family: var(--font-body, var(--font-sans, 'Outfit', sans-serif));
    font-size: clamp(.78rem, 1.05vw, .95rem);
    line-height: 1.4;
    font-weight: 500;
    color: rgba(255, 255, 255, .9);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

/* Bouton ENTRER circulaire */
.country-panel__enter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    color: #fff;
    transition: transform .3s ease, color .3s ease;
}

.country-panel__enter-icon {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .85);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(6px);
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.country-panel__enter-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform .3s ease;
}

.country-panel__enter-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.country-panel:hover .country-panel__enter-icon,
.country-panel__enter:hover .country-panel__enter-icon,
.country-panel__enter:focus-visible .country-panel__enter-icon {
    background: #fff;
    color: var(--panel-color, #0a1628);
    border-color: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
    transform: scale(1.06);
}

.country-panel:hover .country-panel__enter-icon svg,
.country-panel__enter:hover .country-panel__enter-icon svg {
    transform: translateX(3px);
}

.country-panel__enter:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 6px;
    border-radius: .5rem;
}

/* ==========================================================
   SECTIONS BAS — maquette footer
   ========================================================== */
.splash-lower {
    position: relative;
    background: #050b15;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.splash-lower::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent);
    pointer-events: none;
    z-index: 1;
}

.splash-section {
    position: relative;
    z-index: 2;
    padding: 2.75rem 0;
}

/* Titres avec double barre verte */
.splash-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.splash-heading__title {
    margin: 0;
    font-family: var(--font-display, 'Syne', sans-serif);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}

.splash-heading__bars {
    display: flex;
    justify-content: center;
    gap: .45rem;
    margin-top: .85rem;
}

.splash-heading__bars i {
    display: block;
    width: 2.1rem;
    height: 3px;
    background: var(--splash-accent);
    border-radius: 2px;
    font-style: normal;
}

/* Timeline domaines (animée) */
.splash-timeline {
    padding-top: 2.75rem;
    padding-bottom: 2.5rem;
    --stl-node: 3.35rem;
    --stl-line: 3px;
    --stl-accent: var(--splash-accent, #1FA34A);
    --stl-glow: rgba(31, 163, 74, .45);
}

.splash-timeline__body {
    position: relative;
    width: 100%;
}

.splash-timeline__track {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    background: rgba(255, 255, 255, .12);
    border-radius: 999px;
    overflow: hidden;
}

.splash-timeline__track::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--stl-accent) 0%, #d4a853 55%, var(--stl-accent) 100%);
    background-size: 200% 100%;
    transform-origin: left center;
    transform: scaleX(0);
    border-radius: inherit;
}

.splash-timeline.is-visible .splash-timeline__track::after,
.splash-timeline.is-inview .splash-timeline__track::after {
    animation:
        splash-timeline-fill 1.7s cubic-bezier(.22, 1, .36, 1) forwards,
        splash-timeline-shimmer 2.8s ease-in-out 1.7s infinite;
}

@keyframes splash-timeline-fill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes splash-timeline-fill-y {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

@keyframes splash-timeline-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.splash-timeline__list {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    width: 100%;
}

.splash-timeline__item {
    opacity: 0;
    transform: translateY(22px);
}

.splash-timeline.is-visible .splash-timeline__item,
.splash-timeline.is-inview .splash-timeline__item {
    animation: splash-timeline-item-in .7s cubic-bezier(.22, 1, .36, 1) forwards;
    animation-delay: calc(var(--step-i, 0) * .12s + .25s);
}

@keyframes splash-timeline-item-in {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

.splash-timeline__node {
    position: relative;
    width: var(--stl-node);
    height: var(--stl-node);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #152033, #0b1220);
    border: 2px solid rgba(255, 255, 255, .22);
    box-shadow: 0 0 0 6px rgba(6, 10, 16, .85);
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.splash-timeline__num {
    position: absolute;
    top: -.35rem;
    right: -.35rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .62rem;
    font-weight: 800;
    background: var(--stl-accent);
    color: #04120a;
    z-index: 2;
}

.splash-timeline__icon {
    display: flex;
    width: 1.55rem;
    height: 1.55rem;
    color: rgba(255, 255, 255, .9);
}

.splash-timeline__icon .icon,
.splash-timeline__icon svg {
    width: 100%;
    height: 100%;
}

.splash-timeline__title {
    margin: 0 0 .45rem;
    font-family: var(--font-display, 'Syne', sans-serif);
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.splash-timeline__desc {
    margin: 0;
    font-size: .78rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .55);
}

.splash-timeline__item.is-active .splash-timeline__node,
.splash-timeline__item:hover .splash-timeline__node {
    border-color: var(--stl-accent);
    box-shadow:
        0 0 0 6px rgba(6, 10, 16, .85),
        0 0 22px var(--stl-glow);
    transform: scale(1.06);
}

.splash-timeline__item.is-active .splash-timeline__title,
.splash-timeline__item:hover .splash-timeline__title {
    color: #fff;
}

.splash-timeline__item.is-active .splash-timeline__desc,
.splash-timeline__item:hover .splash-timeline__desc {
    color: rgba(255, 255, 255, .78);
}

.splash-timeline.is-visible .splash-timeline__item.is-active .splash-timeline__node::after,
.splash-timeline.is-inview .splash-timeline__item.is-active .splash-timeline__node::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(31, 163, 74, .5);
    animation: splash-timeline-pulse 1.8s ease-out infinite;
}

@keyframes splash-timeline-pulse {
    0% { transform: scale(.92); opacity: .8; }
    70% { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(1.25); opacity: 0; }
}

/* Desktop : horizontal */
@media (min-width: 900px) {
    .splash-timeline__track {
        left: calc(var(--stl-node) / 2);
        right: calc(var(--stl-node) / 2);
        top: calc(var(--stl-node) / 2 - var(--stl-line) / 2);
        height: var(--stl-line);
    }

    .splash-timeline__list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1rem;
        align-items: start;
    }

    .splash-timeline__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-width: 0;
    }

    .splash-timeline__node {
        margin-bottom: 1.15rem;
        flex-shrink: 0;
    }

    .splash-timeline__card {
        width: 100%;
        max-width: 18ch;
        margin: 0 auto;
    }
}

/* Mobile / tablette : verticale */
@media (max-width: 899px) {
    .splash-timeline__body {
        padding-left: .2rem;
    }

    .splash-timeline__track {
        left: calc(var(--stl-node) / 2 - var(--stl-line) / 2);
        top: calc(var(--stl-node) / 2);
        bottom: calc(var(--stl-node) / 2);
        width: var(--stl-line);
    }

    .splash-timeline__track::after {
        transform-origin: center top;
        transform: scaleY(0);
        background: linear-gradient(180deg, var(--stl-accent) 0%, #d4a853 55%, var(--stl-accent) 100%);
        background-size: 100% 200%;
    }

    .splash-timeline.is-visible .splash-timeline__track::after,
    .splash-timeline.is-inview .splash-timeline__track::after {
        animation:
            splash-timeline-fill-y 1.7s cubic-bezier(.22, 1, .36, 1) forwards,
            splash-timeline-shimmer-y 2.8s ease-in-out 1.7s infinite;
    }

    @keyframes splash-timeline-shimmer-y {
        0%, 100% { background-position: 50% 0%; }
        50% { background-position: 50% 100%; }
    }

    .splash-timeline__list {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .splash-timeline__item {
        display: grid;
        grid-template-columns: var(--stl-node) minmax(0, 1fr);
        gap: 1rem;
        align-items: start;
        text-align: left;
    }

    .splash-timeline__card {
        padding-top: .35rem;
    }

    .splash-timeline__desc {
        max-width: none;
    }
}

/* Stats */
.splash-stats {
    padding-top: 2.5rem;
    padding-bottom: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.splash-stats__list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.splash-stat {
    text-align: center;
    min-width: 0;
}

.splash-stat__value {
    display: block;
    font-family: var(--font-display, 'Syne', sans-serif);
    font-size: clamp(1.55rem, 2.6vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    margin-bottom: .3rem;
}

.splash-stat__label {
    display: block;
    font-size: .76rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, .52);
}

/* Carte pays d'intervention */
.splash-intervention {
    margin: 0;
    padding: 1.5rem 0 1.75rem;
    background:
        radial-gradient(ellipse 80% 120% at 50% 0%, rgba(57, 255, 20, .04), transparent 55%),
        #050b15;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.splash-intervention__wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.splash-intervention__frame {
    width: 100%;
    max-width: 880px;
    padding: .65rem;
    border-radius: .85rem;
    border: 1px solid rgba(57, 255, 20, .18);
    background: linear-gradient(145deg, rgba(57, 255, 20, .04) 0%, rgba(5, 11, 21, .95) 42%);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, .35),
        0 0 0 1px rgba(255, 255, 255, .03) inset,
        0 0 48px rgba(57, 255, 20, .05);
    overflow: hidden;
}

.splash-intervention__img {
    width: 100%;
    height: auto;
    max-height: clamp(200px, 32vw, 320px);
    display: block;
    margin: 0 auto;
    object-fit: contain;
    object-position: center center;
    border-radius: .55rem;
}

/* Footer */
.splash-footer {
    border-top: none;
    padding: 0;
    background: #050b15;
}

.splash-footer__grid {
    display: grid;
    grid-template-columns: 1.35fr 1.15fr 0.75fr;
    gap: 0;
    padding: 2.25rem 0 2rem;
}

.splash-footer__col {
    padding: 0 2rem;
    min-width: 0;
}

.splash-footer__col:first-child {
    padding-left: 0;
}

.splash-footer__col:not(:first-child) {
    border-left: 1px solid rgba(255, 255, 255, .08);
}

.splash-footer h3 {
    margin: 0 0 1rem;
    font-family: var(--font-display, 'Syne', sans-serif);
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
}

.splash-footer p {
    margin: 0 0 1.1rem;
    color: rgba(255, 255, 255, .55);
    font-size: .82rem;
    line-height: 1.6;
    max-width: 40ch;
}

.splash-footer__more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #fff;
    font-weight: 700;
    font-size: .82rem;
    transition: gap .2s ease, opacity .2s ease;
}

.splash-footer__more:hover {
    gap: .65rem;
    opacity: .85;
}

.splash-footer__contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
    align-items: start;
}

.splash-footer__phones,
.splash-footer__channels {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.splash-footer__phones li,
.splash-footer__channels li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .78rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, .55);
}

.splash-footer__icon {
    display: inline-flex;
    width: .95rem;
    height: .95rem;
    margin-top: .1rem;
    flex-shrink: 0;
}

.splash-footer__icon .icon,
.splash-footer__icon svg {
    width: 100%;
    height: 100%;
}

.splash-footer__icon--green {
    color: #39ff14;
}

.splash-footer__icon--green svg {
    stroke-width: 2.1;
}

.splash-footer__phones a:hover,
.splash-footer__channels a:hover {
    color: #fff;
}

.splash-footer__social {
    display: flex;
    gap: .55rem .6rem;
    flex-wrap: wrap;
    max-width: 12.5rem;
}

.splash-footer__social-link {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    background: transparent;
    border: 1.5px solid #39ff14;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.splash-footer__social-link--facebook {
    border-color: #1877f2;
    background: #1877f2;
}

.splash-footer__social-link--linkedin {
    border-color: #0a66c2;
    background: #0a66c2;
}

.splash-footer__social-link--google {
    border-color: #ea4335;
    background: #ea4335;
}

.splash-footer__social-link--whatsapp {
    border-color: #25d366;
    background: #25d366;
}

.splash-footer__social-link .icon,
.splash-footer__social-link svg {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
}

.splash-footer__social-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.splash-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 1rem 0 1.25rem;
    font-size: .72rem;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .35);
    text-align: center;
}
.splash-footer__bottom a {
    color: rgba(255, 255, 255, .62);
    font-weight: 600;
    text-decoration: none;
}
.splash-footer__bottom a:hover {
    color: var(--color-accent-light, #f1b300);
}

/* ==========================================================
   ANIMATION TOUR DE PAGE (livre)
   ========================================================== */
.book-turn {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    perspective: 2200px;
    perspective-origin: left center;
}

.book-turn.is-active {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.book-turn__stage {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    background: #05080f;
}

.book-turn__back {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(31, 163, 74, .18), transparent 55%),
        linear-gradient(135deg, #0a1628 0%, #05080f 100%);
    opacity: 0;
    transition: opacity .35s ease .1s;
}

.book-turn.is-active .book-turn__back {
    opacity: 1;
}

.book-turn__page {
    position: absolute;
    inset: 0;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 1.05s cubic-bezier(.55, .05, .2, 1);
    box-shadow: 0 0 0 transparent;
}

.book-turn.is-turning .book-turn__page {
    transform: rotateY(-168deg);
    box-shadow: -24px 0 60px rgba(0, 0, 0, .55);
}

.book-turn__page-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.book-turn__page-face--front {
    background: #0a1628 center/cover no-repeat;
    background-image:
        linear-gradient(105deg, rgba(10, 22, 40, .15) 0%, rgba(10, 22, 40, .55) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .45));
}

.book-turn__page-face--front::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 42%;
    background: linear-gradient(90deg, rgba(0, 0, 0, .22), transparent);
    pointer-events: none;
}

.book-turn__page-face--front::after {
    /* Ombre de reliure */
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 18px;
    background: linear-gradient(90deg, rgba(0, 0, 0, .35), transparent);
    pointer-events: none;
}

.book-turn__page-face--back {
    transform: rotateY(180deg);
    background:
        linear-gradient(180deg, #f7f2e8 0%, #ebe3d4 100%);
    box-shadow: inset 0 0 40px rgba(120, 90, 40, .12);
}

.book-turn__page-face--back::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 28px;
    background: linear-gradient(270deg, rgba(0, 0, 0, .08), transparent);
}

/* Curl shadow on front while turning */
.book-turn.is-turning .book-turn__page-face--front {
    box-shadow: inset -40px 0 80px rgba(0, 0, 0, .25);
}

/* Loader brand during turn */
.book-turn__page-face--front .book-turn__brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display, 'Syne', sans-serif);
    font-weight: 800;
    letter-spacing: .2em;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #fff;
    text-transform: uppercase;
    opacity: .9;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .4);
}

/* Country switcher in site header (from previous impl) */
.country-switch {
    position: relative;
}

.country-switch__btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .65rem;
    border-radius: .55rem;
    border: 1px solid var(--color-border, #e2e8f0);
    background: #fff;
    color: var(--color-primary, #0a1628);
    font-family: inherit;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
    white-space: nowrap;
}

.country-switch__btn .country-flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
    flex-shrink: 0;
}

.country-switch__btn .chev {
    font-size: .6rem;
    opacity: .6;
}

.country-switch__panel {
    display: none;
    position: absolute;
    top: calc(100% + .4rem);
    right: 0;
    min-width: 220px;
    background: #fff;
    border-radius: .75rem;
    box-shadow: 0 16px 40px rgba(10, 22, 40, .16);
    border: 1px solid var(--color-border, #e2e8f0);
    padding: .4rem;
    z-index: 200;
}

.country-switch.open .country-switch__panel {
    display: block;
}

.country-switch__panel a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .7rem;
    border-radius: .5rem;
    text-decoration: none;
    color: var(--color-primary, #0a1628);
    font-size: .85rem;
    font-weight: 500;
}

.country-switch__panel a:hover {
    background: var(--color-background, #f8fafc);
}

.country-switch__panel a.is-active {
    background: rgba(var(--country-color-rgb, 196, 92, 38), .1);
    color: var(--country-color, var(--color-secondary));
    font-weight: 700;
}

.country-switch__panel a .country-flag {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
    flex-shrink: 0;
}

.country-switch__panel .country-switch__all {
    border-top: 1px solid var(--color-border, #e2e8f0);
    margin-top: .25rem;
    padding-top: .55rem;
    font-weight: 600;
    color: var(--color-muted, #64748b);
    font-size: .8rem;
}

.country-local-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.5rem;
    padding: .85rem 1.25rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid var(--color-border, #e2e8f0);
    box-shadow: 0 8px 24px rgba(10, 22, 40, .06);
    margin-top: -2.5rem;
    position: relative;
    z-index: 5;
}

.country-local-bar__item {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .9rem;
    color: var(--color-muted, #64748b);
}

.country-local-bar__item strong {
    color: var(--color-primary, #0a1628);
    font-weight: 700;
}

.country-local-bar .country-flag {
    width: 28px;
    height: 18px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.country-local-bar__badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: rgba(var(--country-color-rgb, 196, 92, 38), .12);
    color: var(--country-color, var(--color-secondary));
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    will-change: opacity, transform;
}

[data-animate].is-inview {
    animation: country-fade-up .7s cubic-bezier(.22, 1, .36, 1) both;
    will-change: auto;
}

@keyframes country-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
    .country-panels {
        grid-template-columns: repeat(4, minmax(160px, 1fr));
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .country-panel {
        min-width: 58vw;
        scroll-snap-align: start;
    }

    .splash-stats__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .splash-footer__contact {
        grid-template-columns: 1fr;
    }

    .splash-footer__grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 2rem;
    }

    .splash-footer__col {
        padding: 0 0 2rem;
        border-left: none !important;
    }

    .splash-footer__col:not(:first-child) {
        border-top: 1px solid rgba(255, 255, 255, .08);
        padding-top: 2rem;
    }
}

@media (max-width: 640px) {
    .splash-header {
        padding-top: max(.85rem, env(safe-area-inset-top));
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .splash-logo {
        max-width: min(12.5rem, 68vw);
        padding: .22rem .4rem;
    }

    .splash-logo .brand-mark--full {
        height: 2.75rem;
        max-width: min(11.8rem, 64vw);
    }

    .country-panels {
        min-height: calc(100svh - var(--splash-header-h));
        scroll-padding-inline: 1rem;
    }

    .country-panel {
        min-width: 78vw;
    }

    .country-panel__name {
        font-size: 1.5rem;
        letter-spacing: .12em;
    }

    .country-panel__slogan {
        max-width: 18ch;
        font-size: .85rem;
    }

    .splash-stats__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        text-align: center;
    }

    .splash-intervention {
        padding: 1.15rem 0 1.35rem;
    }

    .splash-intervention__frame {
        padding: .45rem;
        border-radius: .65rem;
    }

    .splash-intervention__img {
        max-height: min(42vw, 210px);
    }

    .splash-footer__grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 2rem;
    }

    .splash-footer__col {
        padding: 0 0 2rem;
        border-left: none !important;
    }

    .splash-footer__col:not(:first-child) {
        border-top: 1px solid rgba(255, 255, 255, .08);
        padding-top: 2rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .country-panel {
        opacity: 1;
        transform: none;
        animation: none !important;
    }

    [data-animate],
    [data-animate].is-inview {
        opacity: 1;
        transform: none;
        animation: none !important;
        will-change: auto;
    }

    .splash-timeline__item,
    .splash-timeline.is-visible .splash-timeline__item,
    .splash-timeline.is-inview .splash-timeline__item {
        opacity: 1;
        transform: none;
        animation: none !important;
    }

    .splash-timeline__track::after,
    .splash-timeline.is-visible .splash-timeline__track::after,
    .splash-timeline.is-inview .splash-timeline__track::after {
        transform: none !important;
        animation: none !important;
    }

    .splash-timeline__item.is-active .splash-timeline__node::after {
        animation: none !important;
        display: none;
    }

    .country-panel__img,
    .country-panel__enter-icon,
    .country-panel__enter-icon svg,
    .book-turn__page,
    .book-turn__back {
        transition: none !important;
        animation: none !important;
        will-change: auto;
    }

    .country-panel__img {
        inset: 0;
        width: 100%;
        height: 100%;
        transform: none !important;
    }

    .book-turn.is-turning .book-turn__page {
        transform: none;
        opacity: 0;
    }
}
