/* ==========================================================================
   Beautiful AFRIKA — sections.css
   Heros et sections de la page d'accueil, réutilisées sur les pages intérieures
   (mobile first). Points de rupture : responsive.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero (accueil)
   -------------------------------------------------------------------------- */
.hero {
    --focus-ring: var(--offwhite);
    --scroll-cue: 7.25rem; /* hauteur réservée à l'indicateur « Défiler » */
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-h) + 3rem) 0 calc(var(--scroll-cue) + 1.25rem);
    overflow: hidden;
    background: var(--navy-900);
    color: var(--offwhite);
}

.hero__media {
    position: absolute;
    inset: -10% 0 0;
    z-index: -2;
}

.hero__media picture,
.hero__img {
    width: 100%;
    height: 100%;
}

.hero__img {
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(16, 21, 43, .5) 0%, rgba(16, 21, 43, .06) 28%, rgba(16, 21, 43, .22) 55%, rgba(16, 21, 43, .9) 100%),
        linear-gradient(90deg, rgba(33, 45, 86, .5) 0%, rgba(33, 45, 86, 0) 70%);
}

.hero__inner {
    position: relative;
    display: grid;
    gap: 3rem;
    align-items: end;
    width: 100%;
    max-width: calc(var(--container-wide) + var(--gutter) * 2);
}

.hero__content {
    max-width: 60rem;
}

/* Bandeau « À la une » */
.hero__announce {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    max-width: 100%;
    margin-bottom: 1.75rem;
    padding: .35rem 1rem .35rem .35rem;
    border: 1px solid rgba(255, 255, 251, .3);
    border-radius: 999px;
    background: rgba(16, 21, 43, .32);
    color: var(--offwhite);
    font-size: .8125rem;
    line-height: 1.3;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: border-color var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out);
}

.hero__announce-badge {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: .5rem;
    padding: .4rem .8rem;
    border-radius: 999px;
    background: var(--offwhite);
    color: var(--navy);
    font-size: .66rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero__announce-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero__announce-text strong {
    font-weight: 500;
    letter-spacing: .08em;
}

.hero__announce-meta {
    color: rgba(255, 255, 251, .8);
}

.hero__announce .icon {
    width: 1rem;
    height: 1rem;
    transition: transform var(--t-base) var(--ease-out);
}

@media (hover: hover) {
    .hero__announce:hover {
        border-color: rgba(255, 255, 251, .65);
        background: rgba(16, 21, 43, .5);
    }

    .hero__announce:hover .icon {
        transform: translateX(4px);
    }
}

.hero__title {
    font-size: min(var(--fs-display), 14vh);
    line-height: .98;
    letter-spacing: -.015em;
}

.hero__kicker {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
    font-size: clamp(.95rem, .85rem + .5vw, 1.3rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .32em;
    text-transform: uppercase;
}

.hero__kicker::before {
    content: "";
    flex: none;
    width: 3rem;
    height: 1px;
    background: currentColor;
    opacity: .7;
}

.hero__line {
    display: block;
    overflow: hidden;
    padding-bottom: .08em;
}

.hero__line-inner {
    display: block;
}

.hero__subtitle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem .9rem;
    margin-top: 1.6rem;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.hero__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: .7;
}

.hero__text {
    max-width: 36rem;
    margin-top: 1.1rem;
    color: rgba(255, 255, 251, .86);
    font-size: var(--fs-lead);
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 2.2rem;
}

.hero__actions .btn {
    flex: 1 1 15rem;
}

.hero__aside {
    display: none;
}

.hero__aside-list {
    border-top: 1px solid var(--line-dark);
}

.hero__aside-link {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--line-dark);
}

.hero__aside-num {
    font-size: .72rem;
    letter-spacing: .12em;
    opacity: .7;
}

.hero__aside-label {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    line-height: 1.1;
}

.hero__aside-meta {
    display: block;
    margin-top: .2rem;
    font-family: var(--font-sans);
    font-size: .75rem;
    letter-spacing: .06em;
    opacity: .72;
}

.hero__aside-link .icon {
    width: 1.1rem;
    height: 1.1rem;
    transition: transform var(--t-base) var(--ease-out);
}

@media (hover: hover) {
    .hero__aside-link:hover .icon {
        transform: translate(3px, -3px);
    }
}

.hero__scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    display: grid;
    justify-items: center;
    gap: .65rem;
    padding: .5rem;
    font-size: .66rem;
    font-weight: 500;
    letter-spacing: .26em;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.hero__scroll-line {
    position: relative;
    width: 1px;
    height: 3rem;
    overflow: hidden;
    background: rgba(255, 255, 251, .3);
}

.hero__scroll-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 42%;
    background: var(--offwhite);
    animation: ba-scroll-line 2.2s var(--ease-in-out) infinite;
}

.hero__caption {
    position: absolute;
    right: var(--gutter);
    bottom: 2rem;
    display: none;
    color: rgba(255, 255, 251, .74);
}

/* --------------------------------------------------------------------------
   2. En-tête des pages intérieures
   -------------------------------------------------------------------------- */
.page-hero {
    --focus-ring: var(--offwhite);
    --ink-muted: var(--on-dark-muted);
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 74vh;
    min-height: 74svh;
    padding: calc(var(--header-h) + 3.5rem) 0 clamp(3.5rem, 2.5rem + 4vw, 6rem);
    overflow: hidden;
    background: var(--navy);
    color: var(--offwhite);
}

.page-hero--compact {
    min-height: 60vh;
    min-height: 60svh;
}

.page-hero--plain {
    min-height: 0;
    padding-top: calc(var(--header-h) + clamp(4.5rem, 3rem + 6vw, 8rem));
}

.page-hero__media {
    position: absolute;
    inset: -12% 0 0;
    z-index: -2;
}

.page-hero__media picture,
.page-hero__img {
    width: 100%;
    height: 100%;
}

.page-hero__img {
    object-fit: cover;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(16, 21, 43, .58) 0%, rgba(16, 21, 43, .12) 38%, rgba(16, 21, 43, .84) 100%),
        linear-gradient(90deg, rgba(33, 45, 86, .5), rgba(33, 45, 86, 0) 72%);
}

.page-hero__motif {
    opacity: .045;
    -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%);
    mask-image: linear-gradient(200deg, #000, transparent 70%);
}

.page-hero__inner {
    position: relative;
}

.page-hero__title {
    max-width: 17ch;
    font-size: var(--fs-h1);
    line-height: 1;
}

.page-hero__text {
    max-width: 38rem;
    margin-top: 1.5rem;
    color: rgba(255, 255, 251, .86);
    font-size: var(--fs-lead);
    line-height: 1.6;
}

.page-hero__caption {
    position: absolute;
    right: var(--gutter);
    bottom: 1.5rem;
    display: none;
    color: rgba(255, 255, 251, .72);
}

.breadcrumb {
    margin-bottom: 1.75rem;
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    font-size: var(--fs-xs);
    letter-spacing: .08em;
}

.breadcrumb__item + .breadcrumb__item::before {
    content: "/";
    margin-right: .5rem;
    opacity: .5;
}

.breadcrumb a {
    opacity: .8;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: opacity var(--t-fast), background-size var(--t-base) var(--ease-out);
}

.breadcrumb a:hover {
    opacity: 1;
    background-size: 100% 1px;
}

/* --------------------------------------------------------------------------
   3. Bienvenue (accueil)
   -------------------------------------------------------------------------- */
.intro__grid {
    display: grid;
    gap: 4rem;
}

.intro__content {
    display: grid;
    gap: 1.5rem;
    align-content: start;
    justify-items: start;
}

.intro__content .eyebrow {
    margin-bottom: 0;
}

.intro__lead {
    max-width: 34rem;
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 1.15rem + .75vw, 1.75rem);
    font-weight: 500;
    line-height: 1.35;
}

.intro__text {
    max-width: 38rem;
    color: var(--ink-muted);
}

.intro__values {
    width: 100%;
    border-top: 1px solid var(--line);
}

.intro__value {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-sm);
    line-height: 1.4;
}

.intro__value .icon {
    box-sizing: border-box;
    width: 2.5rem;
    height: 2.5rem;
    padding: .62rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--badge-fill);
    stroke-width: 1.4;
    transition: border-color var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}

@media (hover: hover) {
    .intro__value:hover .icon {
        border-color: var(--line-strong);
        background: var(--badge-halo-soft);
    }
}

/* L'orbite déborde de la colonne : la section la contient sans créer de défilement */
.intro {
    overflow: hidden;
    overflow: clip;
}

.intro__media {
    position: relative;
    isolation: isolate;
    padding-bottom: 3rem;
}

.intro__figure--main {
    width: 84%;
    margin-left: auto;
    aspect-ratio: 4 / 5;
}

.intro__figure--detail {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 44%;
    aspect-ratio: 3 / 4;
    border: .5rem solid var(--offwhite);
}

/* Orbite concentrique au dôme de l'image en arche (84 % de large, calée à droite) :
   --orbit = diamètre de l'orbite / largeur de l'arche */
.intro__ornament {
    --orbit: 1.12;
    position: absolute;
    top: 0;
    left: calc(58% - 42% * var(--orbit));
    z-index: -1;
    width: calc(84% * var(--orbit));
    aspect-ratio: 1;
    margin-top: calc(42% - 42% * var(--orbit));
    pointer-events: none;
}

.orbit {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.orbit__halo,
.orbit__track,
.orbit__ripple {
    fill: none;
}

.orbit__halo,
.orbit__ripple {
    stroke: var(--line-strong);
    stroke-width: 1.4;
}

.orbit__ripple {
    opacity: 0;
}

.orbit__spin,
.orbit__ripple {
    transform-box: view-box;
    transform-origin: 50% 50%;
}

.orbit__satellite {
    fill: var(--navy);
}

.orbit__track {
    stroke: var(--navy-400);
    stroke-width: .7;
    stroke-dasharray: 1.2 5;
    stroke-linecap: round;
}

.orbit__moon {
    fill: var(--navy-400);
}

.orbit__words {
    fill: var(--ink-muted);
    font-family: var(--font-sans);
    font-size: 7px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
}

/* Sur petit écran, l'arche masque l'intérieur de l'orbite : halo et satellite seulement */
.orbit__track,
.orbit__moon,
.orbit__words {
    display: none;
}

/* --------------------------------------------------------------------------
   4. Expertises (cartes)
   -------------------------------------------------------------------------- */
.services__grid {
    display: grid;
    gap: 1rem;
}

.service-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: border-color var(--t-base) var(--ease-out), transform .7s var(--ease-out);
}

.service-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 2px;
    background: var(--offwhite);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform .9s var(--ease-out);
}

.service-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.service-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease-out);
}

.service-card__body {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1rem;
    padding: 1.9rem 1.5rem 2rem;
}

.service-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
}

.service-card__num {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
}

.service-card__num::after {
    content: "";
    width: 2rem;
    height: 1px;
    background: currentColor;
    opacity: .5;
    transition: width .7s var(--ease-out);
}

.service-card__icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    transition: background-color var(--t-base), color var(--t-base), border-color var(--t-base), transform .7s var(--ease-out);
}

.service-card__icon .icon {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 1.25;
}

.service-card__title {
    font-size: clamp(2.1rem, 1.7rem + 1.5vw, 3rem);
    font-weight: 500;
    line-height: 1;
}

.service-card__text {
    max-width: 26rem;
    color: var(--ink-muted);
}

.service-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.service-card__tags li {
    padding: .35rem .75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-muted);
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.service-card__more {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-top: auto;
    padding-top: 1.25rem;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.service-card__more .icon {
    width: 1rem;
    height: 1rem;
    transition: transform var(--t-base) var(--ease-out);
}

.service-card:focus-within {
    border-color: var(--line-strong);
}

/* --------------------------------------------------------------------------
   5. Destinations (carrousel)
   -------------------------------------------------------------------------- */
.destinations .section-head {
    margin-bottom: 2.25rem;
}

.carousel__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.carousel__controls {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.carousel__btn {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
}

.carousel__btn .icon {
    width: 1.3rem;
    height: 1.3rem;
}

.carousel__btn:disabled {
    opacity: .32;
    cursor: default;
}

@media (hover: hover) {
    .carousel__btn:not(:disabled):hover {
        border-color: var(--navy);
        background: var(--navy);
        color: var(--offwhite);
    }
}

.carousel__progress {
    position: relative;
    width: 3.5rem;
    height: 1px;
    overflow: hidden;
    background: var(--line-strong);
}

.carousel__progress-bar {
    position: absolute;
    inset: 0;
    background: var(--navy);
    transform: scaleX(var(--progress, .15));
    transform-origin: 0 50%;
    transition: transform .3s var(--ease-out);
}

.carousel__viewport {
    --carousel-pad: max(var(--gutter), calc((100% - var(--container)) / 2));
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-inline: var(--carousel-pad);
    scroll-padding-inline: var(--carousel-pad);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

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

.carousel__viewport:focus-visible {
    outline-offset: -2px;
}

.carousel.is-dragging .carousel__viewport {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.carousel__track {
    display: flex;
    gap: clamp(.85rem, .55rem + 1.2vw, 1.75rem);
    width: max-content;
}

.carousel__slide {
    flex: 0 0 auto;
    width: min(80vw, 22rem);
    scroll-snap-align: start;
}

.destination-card {
    --focus-ring: var(--offwhite);
    position: relative;
    isolation: isolate;
    aspect-ratio: 3 / 4.15;
    overflow: hidden;
    background: var(--navy-800);
    color: var(--offwhite);
}

.destination-card__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.destination-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 1.4s var(--ease-out);
}

.destination-card__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(16, 21, 43, .28) 0%, rgba(16, 21, 43, 0) 32%, rgba(16, 21, 43, .3) 58%, rgba(16, 21, 43, .9) 100%);
    transition: opacity var(--t-slow) var(--ease-out);
}

.destination-card__body {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    gap: .55rem;
    padding: 1.4rem;
    transition: transform .8s var(--ease-out);
}

.destination-card__region {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .66rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    opacity: .88;
}

.destination-card__region::before {
    content: "";
    width: 1.5rem;
    height: 1px;
    background: currentColor;
}

.destination-card__title {
    font-size: clamp(2rem, 1.7rem + 1.1vw, 2.75rem);
    font-weight: 500;
    line-height: 1;
}

.destination-card__text {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 255, 251, .84);
    font-size: var(--fs-sm);
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.destination-card__cta {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: .55rem;
    margin-top: .45rem;
    padding: .55rem 1rem;
    border: 1px solid rgba(255, 255, 251, .45);
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), background-color var(--t-fast), color var(--t-fast);
}

.destination-card__cta .icon {
    width: .95rem;
    height: .95rem;
}

.destinations__note {
    margin-top: 1.5rem;
    color: var(--ink-muted);
    font-size: var(--fs-xs);
}

/* --------------------------------------------------------------------------
   6. Expériences
   -------------------------------------------------------------------------- */
.experiences__grid {
    display: grid;
    gap: 3rem;
}

.experiences__visual {
    display: none;
}

.experiences__list {
    border-top: 1px solid var(--line);
}

.experience-item {
    position: relative;
    display: grid;
    gap: 1.25rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--line);
}

.experience-item::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: var(--navy);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform .9s var(--ease-out);
}

.experience-item__media {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--ivory-deep);
}

.experience-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-item__body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .35rem 1.2rem;
    align-items: baseline;
}

.experience-item__num {
    grid-row: span 2;
    color: var(--ink-muted);
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
}

.experience-item__title {
    font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
    font-weight: 500;
    line-height: 1.1;
    transition: transform .7s var(--ease-out), opacity var(--t-base);
}

.experience-item__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.experience-item__text {
    max-width: 32rem;
    color: var(--ink-muted);
    transition: opacity var(--t-base);
}

.experience-item__arrow {
    display: none;
}

/* --------------------------------------------------------------------------
   7. Événementiel (accueil)
   -------------------------------------------------------------------------- */
.events-mosaic {
    display: grid;
    gap: .75rem;
}

.event-tile {
    --focus-ring: var(--offwhite);
    position: relative;
    isolation: isolate;
    min-height: 18rem;
    overflow: hidden;
    background: var(--navy-800);
    color: var(--offwhite);
}

.event-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(16, 21, 43, .08) 25%, rgba(16, 21, 43, .88) 100%);
}

.event-tile__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease-out);
}

.event-tile__body {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    gap: .5rem;
    padding: 1.4rem;
}

.event-tile__num {
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .18em;
    opacity: .8;
}

.event-tile__title {
    font-size: clamp(1.65rem, 1.35rem + 1vw, 2.35rem);
    font-weight: 500;
    line-height: 1.05;
}

.event-tile__text {
    max-width: 26rem;
    color: rgba(255, 255, 251, .84);
    font-size: var(--fs-sm);
    line-height: 1.55;
}

.event-tile__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.events__foot {
    display: flex;
    justify-content: flex-start;
    margin-top: 2.5rem;
}

/* Bande « De l'idée à la réalisation » */
.steps-band {
    position: relative;
    overflow: hidden;
    padding-block: clamp(4.5rem, 3rem + 6vw, 8.5rem);
}

.steps__head {
    max-width: 46rem;
    margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.steps__head .section-intro {
    margin-top: 1.25rem;
}

.steps__rail {
    display: none;
}

.steps__list {
    position: relative;
}

.steps__list::before,
.steps__list::after {
    content: "";
    position: absolute;
    top: .6rem;
    bottom: 2.6rem;
    left: .45rem;
    width: 1px;
    background: var(--line);
}

.steps__list::after {
    background: var(--offwhite);
    transform: scaleY(var(--progress, 0));
    transform-origin: 50% 0;
}

.step {
    position: relative;
    display: grid;
    gap: .55rem;
    padding: 0 0 2.5rem 2.75rem;
}

.step__dot {
    position: absolute;
    top: .35rem;
    left: 0;
    z-index: 1;
    width: .95rem;
    height: .95rem;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--navy);
    transition: background-color .6s var(--ease-out), border-color .6s var(--ease-out), transform .6s var(--ease-out);
}

.step.is-active .step__dot {
    border-color: var(--offwhite);
    background: var(--offwhite);
    transform: scale(1.15);
}

.step__num {
    color: rgba(255, 255, 251, .4);
    font-family: var(--font-serif);
    font-size: clamp(3rem, 2.3rem + 2.8vw, 5.25rem);
    font-weight: 500;
    line-height: .9;
    transition: color .7s var(--ease-out), -webkit-text-stroke-color .7s var(--ease-out);
}

@supports (-webkit-text-stroke: 1px) {
    .step__num {
        color: transparent;
        -webkit-text-stroke: 1px rgba(255, 255, 251, .5);
    }
}

.step.is-active .step__num {
    color: var(--offwhite);
    -webkit-text-stroke-color: var(--offwhite);
}

.step__title {
    font-size: 1.7rem;
    font-weight: 600;
}

.step__text {
    max-width: 22rem;
    color: var(--on-dark-muted);
    font-size: var(--fs-sm);
}

/* --------------------------------------------------------------------------
   8. Logistique (accueil)
   -------------------------------------------------------------------------- */
.logistics__grid {
    display: grid;
    gap: 3.5rem;
}

.logistics__media {
    position: relative;
    padding-bottom: 3.5rem;
}

.logistics__frame-main {
    width: 88%;
    aspect-ratio: 5 / 4;
}

.logistics__frame-secondary {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 46%;
    aspect-ratio: 1;
    border: .5rem solid var(--offwhite);
}

.logistics__badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    display: grid;
    gap: .5rem;
    max-width: 12.5rem;
    padding: 1.1rem 1.2rem;
    background: var(--navy);
    color: var(--offwhite);
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 1.2;
}

.logistics__badge .icon {
    width: 1.35rem;
    height: 1.35rem;
    stroke-width: 1.3;
}

.logistics__content {
    display: grid;
    gap: 1.5rem;
    align-content: start;
    justify-items: start;
}

.logistics__content .eyebrow {
    margin-bottom: 0;
}

.logistics__list {
    width: 100%;
    margin-top: .5rem;
    border-top: 1px solid var(--line);
}

.logistics-item {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 1.1rem;
    padding: 1.3rem 0;
    border-bottom: 1px solid var(--line);
}

.logistics-item__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--ivory);
    color: var(--navy);
    transition: background-color var(--t-base), color var(--t-base);
}

.logistics-item__icon .icon {
    width: 1.35rem;
    height: 1.35rem;
    stroke-width: 1.3;
}

.logistics-item__title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.logistics-item__text {
    margin-top: .2rem;
    color: var(--ink-muted);
    font-size: var(--fs-sm);
}

@media (hover: hover) {
    .logistics-item:hover .logistics-item__icon {
        background: var(--navy);
        color: var(--offwhite);
    }
}

/* --------------------------------------------------------------------------
   9. Pourquoi nous
   -------------------------------------------------------------------------- */
.advantages__grid {
    display: grid;
    gap: 3rem;
}

.advantages__intro {
    display: grid;
    align-content: start;
    justify-items: start;
}

.advantages__intro .section-intro {
    margin: 1.5rem 0 2rem;
}

.advantages__list {
    display: grid;
    border-top: 1px solid var(--line);
}

.advantage {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .45rem 1.2rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--line);
}

.advantage__icon {
    display: grid;
    grid-row: span 2;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    transition: background-color var(--t-base), color var(--t-base), border-color var(--t-base);
}

.advantage__icon .icon {
    width: 1.4rem;
    height: 1.4rem;
    stroke-width: 1.3;
}

.advantage__num {
    position: absolute;
    top: 1.8rem;
    right: 0;
    color: var(--ink-muted);
    font-family: var(--font-serif);
    font-style: italic;
}

.advantage__title {
    padding-right: 2.5rem;
    font-size: var(--fs-h4);
    line-height: 1.2;
}

.advantage__text {
    color: var(--ink-muted);
    font-size: var(--fs-sm);
}

@media (hover: hover) {
    .advantage:hover .advantage__icon {
        border-color: var(--navy);
        background: var(--navy);
        color: var(--offwhite);
    }
}

/* --------------------------------------------------------------------------
   10. Processus (frise)
   -------------------------------------------------------------------------- */
.process__grid {
    display: grid;
    gap: 3.5rem;
}

.process__head {
    display: grid;
    align-content: start;
    justify-items: start;
}

.process__head .section-intro {
    margin: 1.5rem 0 2rem;
}

.timeline {
    position: relative;
}

.timeline__track {
    position: absolute;
    top: 1.6rem;
    bottom: 1.6rem;
    left: 1.6rem;
    width: 1px;
    background: var(--line);
}

.timeline__fill {
    position: absolute;
    inset: 0;
    background: var(--offwhite);
    transform: scaleY(var(--progress, 0));
    transform-origin: 50% 0;
}

.timeline__list {
    position: relative;
    display: grid;
    gap: 2.75rem;
}

.timeline__item {
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr);
    gap: 1.4rem;
    align-items: start;
}

.timeline__marker {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--navy);
    transition: background-color .6s var(--ease-out), color .6s var(--ease-out), border-color .6s var(--ease-out);
}

.timeline__marker .icon {
    width: 1.35rem;
    height: 1.35rem;
    stroke-width: 1.3;
}

.timeline__item.is-active .timeline__marker {
    border-color: var(--offwhite);
    background: var(--offwhite);
    color: var(--navy);
}

.timeline__num {
    color: var(--on-dark-muted);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.timeline__title {
    margin: .35rem 0 .6rem;
    font-size: var(--fs-h3);
    font-weight: 500;
}

.timeline__text {
    max-width: 32rem;
    color: var(--on-dark-muted);
}

/* --------------------------------------------------------------------------
   11. Galerie
   -------------------------------------------------------------------------- */
.gallery {
    display: grid;
    gap: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ivory-deep);
}

.gallery-item--tall {
    aspect-ratio: 4 / 5;
}

.gallery-item--wide {
    aspect-ratio: 16 / 10;
}

.gallery-item.is-hidden {
    display: none;
}

.gallery-item__link {
    position: absolute;
    inset: 0;
    display: block;
    color: var(--offwhite);
}

.gallery-item__link:focus-visible {
    outline: 2px solid var(--offwhite);
    outline-offset: -6px;
}

.gallery-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out);
}

.gallery-item__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .35rem;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(16, 21, 43, 0) 40%, rgba(16, 21, 43, .85) 100%);
    opacity: 0;
    transition: opacity var(--t-base) var(--ease-out);
}

.gallery-item__cat {
    font-size: .66rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .85;
    transform: translateY(.75rem);
    transition: transform .6s var(--ease-out);
}

.gallery-item__caption {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 1.25;
    transform: translateY(.75rem);
    transition: transform .6s var(--ease-out) .04s;
}

.gallery-item__zoom {
    position: absolute;
    top: .9rem;
    right: .9rem;
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 251, .92);
    color: var(--navy);
    transform: scale(.6);
    opacity: 0;
    transition: transform var(--t-base) var(--ease-out), opacity var(--t-base) var(--ease-out);
}

.gallery-item__zoom .icon {
    width: 1.1rem;
    height: 1.1rem;
}

.gallery-item__link:focus-visible .gallery-item__overlay,
.gallery-item__link:focus-visible .gallery-item__zoom {
    opacity: 1;
}

.gallery-item__link:focus-visible .gallery-item__cat,
.gallery-item__link:focus-visible .gallery-item__caption {
    transform: none;
}

@media (hover: hover) {
    .gallery-item__link:hover .gallery-item__img {
        transform: scale(1.06);
    }

    .gallery-item__link:hover .gallery-item__overlay {
        opacity: 1;
    }

    .gallery-item__link:hover .gallery-item__cat,
    .gallery-item__link:hover .gallery-item__caption {
        transform: none;
    }

    .gallery-item__link:hover .gallery-item__zoom {
        opacity: 1;
        transform: scale(1);
    }
}

@media (hover: none) {
    .gallery-item__zoom {
        opacity: .9;
        transform: scale(.85);
    }
}

.gallery__foot {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* --------------------------------------------------------------------------
   12. Appel à l'action
   -------------------------------------------------------------------------- */
.cta {
    --focus-ring: var(--offwhite);
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 80vh;
    min-height: 80svh;
    padding-block: calc(var(--section-y) * .9);
    overflow: hidden;
    background: var(--navy-900);
    color: var(--offwhite);
    text-align: center;
}

.cta__media {
    position: absolute;
    inset: -15% 0;
    z-index: -2;
}

.cta__media picture,
.cta__img {
    width: 100%;
    height: 100%;
}

.cta__img {
    object-fit: cover;
}

.cta__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(16, 21, 43, .42) 0%, rgba(16, 21, 43, .8) 100%),
        rgba(33, 45, 86, .3);
}

.cta__inner {
    position: relative;
    display: grid;
    justify-items: center;
}

.cta__ornament {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(40rem, 94vw);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 251, .2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta__ornament::after {
    content: "";
    position: absolute;
    inset: 1.25rem;
    border: 1px solid rgba(255, 255, 251, .1);
    border-radius: 50%;
}

.cta__eyebrow::after,
.section-head--center .eyebrow::after {
    content: "";
    flex: none;
    width: 2.25rem;
    height: 1px;
    background: currentColor;
    opacity: .55;
}

.cta__title {
    max-width: 16ch;
    font-size: var(--fs-h1);
    line-height: 1;
}

.cta__text {
    max-width: 34rem;
    margin-top: 1.5rem;
    color: rgba(255, 255, 251, .88);
    font-size: var(--fs-lead);
}

.cta__actions {
    margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   13. Diaporamas de fond (heros, en-têtes, appel à l'action) — main.js
   -------------------------------------------------------------------------- */
.slideshow,
.slideshow__slide,
.slideshow__motion {
    position: absolute;
    inset: 0;
}

.slideshow__slide {
    opacity: 0;
    transition: opacity 1.8s var(--ease-in-out);
}

.slideshow__slide.is-active {
    z-index: 1;
    opacity: 1;
}

/* La photo sortante reste pleine sous la nouvelle : aucun creux pendant le fondu */
.slideshow__slide.is-leaving {
    opacity: 1;
    transition: none;
}

/* Commandes */
.slideshow-ui {
    position: absolute;
    bottom: 1.25rem;
    left: var(--gutter);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--offwhite);
    text-align: left;
}

.slideshow-ui__toggle {
    display: grid;
    flex: none;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 251, .38);
    border-radius: 50%;
    background: rgba(16, 21, 43, .28);
    color: inherit;
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}

.slideshow-ui__icon {
    width: .9rem;
    height: .9rem;
}

/* Spécificité supérieure à svg.icon (style.css) */
.slideshow-ui__toggle .slideshow-ui__icon--play,
.is-slideshow-stopped .slideshow-ui__toggle .slideshow-ui__icon--pause {
    display: none;
}

.is-slideshow-stopped .slideshow-ui__toggle .slideshow-ui__icon--play {
    display: block;
}

.slideshow-ui__steps {
    display: flex;
    align-items: center;
    gap: .2rem;
}

.slideshow-ui__step {
    display: block;
    padding: .7rem .15rem;
    border: 0;
    background: none;
    cursor: pointer;
}

.slideshow-ui__bar {
    position: relative;
    display: block;
    width: .75rem;
    height: 2px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 255, 251, .32);
    transition: width .7s var(--ease-out), background-color var(--t-fast) var(--ease-out);
}

.slideshow-ui__step[aria-current="true"] .slideshow-ui__bar {
    width: 1.6rem;
}

.slideshow-ui__fill {
    position: absolute;
    inset: 0;
    background: var(--offwhite);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

.slideshow-ui__step.is-done .slideshow-ui__fill {
    transform: scaleX(1);
}

.slideshow-ui__step[aria-current="true"] .slideshow-ui__fill {
    animation: ba-slide-progress var(--slide-duration, 7s) linear forwards;
}

.is-slideshow-paused .slideshow-ui__step[aria-current="true"] .slideshow-ui__fill {
    animation-play-state: paused;
}

.is-slideshow-stopped .slideshow-ui__step[aria-current="true"] .slideshow-ui__fill {
    animation: none;
    transform: scaleX(1);
}

@keyframes ba-slide-progress {
    to {
        transform: scaleX(1);
    }
}

@media (hover: hover) {
    .slideshow-ui__toggle:hover {
        border-color: var(--offwhite);
        background: var(--offwhite);
        color: var(--navy);
    }

    .slideshow-ui__step:hover .slideshow-ui__bar {
        background: rgba(255, 255, 251, .6);
    }
}

.slideshow-ui__caption {
    display: none;
    color: rgba(255, 255, 251, .76);
    white-space: nowrap;
}

.page-hero--slides {
    padding-bottom: calc(clamp(3.5rem, 2.5rem + 4vw, 6rem) + 1.75rem);
}

/* Défilement lent de la photo affichée (vrais diaporamas uniquement) */
@keyframes ba-slide-drift {
    from {
        transform: scale(1.12) translate3d(-2%, 0, 0);
    }

    to {
        transform: scale(1.02) translate3d(0, 0, 0);
    }
}

@keyframes ba-slide-drift-alt {
    from {
        transform: scale(1.02) translate3d(0, 0, 0);
    }

    to {
        transform: scale(1.12) translate3d(2%, -1%, 0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .has-slideshow .slideshow__slide.is-active .slideshow__motion,
    .has-slideshow .slideshow__slide.is-leaving .slideshow__motion {
        animation: ba-slide-drift calc(var(--slide-duration, 7s) + 2.5s) linear both;
    }

    .has-slideshow .slideshow__slide:nth-child(even) .slideshow__motion {
        animation-name: ba-slide-drift-alt;
    }

    .is-slideshow-paused .slideshow__slide.is-active .slideshow__motion {
        animation-play-state: paused;
    }
}
