/* Sections — layout & composants */

.section,
.hero {
    overflow: hidden;
}

.section {
    padding: clamp(64px, 10vh, 112px) 0;
    position: relative;
    contain: layout style;
}

/* Three.js — fonds de section */
.section-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.15s linear;
    contain: strict;
}

.section-canvas--ready {
    opacity: 0.45;
}

.hero .section-canvas--ready {
    opacity: 0.38;
}

.section-canvas--fallback {
    display: none;
}

.section > .section__inner,
.section > .route-layout,
.section > .partners-banner {
    position: relative;
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    .section-canvas {
        transition: none;
    }

    .section-canvas--ready {
        opacity: 0.35;
    }
}

.section--alt {
    background: var(--color-surface);
}

.section--split {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}

.section--contact {
    background: var(--color-bg);
}

.section--route {
    background:
        radial-gradient(ellipse at 100% 0%, rgba(var(--color-primary-rgb), 0.04) 0%, transparent 50%),
        var(--color-surface);
}

#route .section-canvas,
#ulm .section-canvas {
    display: none !important;
}

.section__inner {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section__header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto clamp(56px, 8vw, 72px);
}

.section__header--left {
    text-align: left;
    margin-left: 0;
    margin-bottom: clamp(40px, 6vw, 56px);
    max-width: none;
}

.section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: clamp(14px, 2vw, 20px);
}

.section__header:not(.section__header--left) .section__eyebrow::before,
.section__header:not(.section__header--left) .section__eyebrow::after {
    content: '';
    width: clamp(24px, 5vw, 40px);
    height: 2px;
    background: var(--color-secondary);
    border-radius: 1px;
    opacity: 0.9;
}

.section__header--left .section__eyebrow::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--color-secondary);
    border-radius: 1px;
    opacity: 0.9;
}

.section__title {
    font-size: clamp(2.125rem, 5.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--color-brand);
    margin-bottom: clamp(16px, 2.5vw, 22px);
}

.section__desc {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    line-height: 1.65;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto;
}

.section__header--left .section__desc {
    margin: 0;
    max-width: 52ch;
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-height) + 20px) clamp(16px, 4vw, 24px) clamp(40px, 7vh, 56px);
    overflow: hidden;
}

@media (min-width: 901px) {
    .hero {
        min-height: 100dvh;
        align-items: center;
        padding-top: calc(var(--header-height) + 28px);
    }
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse at 50% 25%, rgba(var(--color-primary-rgb), 0.05) 0%, transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(244, 247, 251, 0.9) 55%, var(--color-bg) 100%);
}

.hero__inner {
    position: relative;
    z-index: 3;
}

/* Countdown */
.countdown {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: clamp(5px, 1vw, 7px);
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: clamp(16px, 3vw, 24px);
}

.countdown__item {
    min-width: 0;
    padding: clamp(6px, 1.2vw, 8px) clamp(3px, 0.8vw, 6px);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.countdown__value {
    display: block;
    font-size: clamp(0.9375rem, 2.4vw, 1.25rem);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--color-brand);
}

.countdown__label {
    display: block;
    margin-top: 3px;
    font-size: clamp(0.5rem, 1.2vw, 0.625rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.hero__title {
    font-size: clamp(2rem, 6.2vw, 3.25rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: var(--color-brand);
    margin-bottom: clamp(12px, 2.2vw, 18px);
}

/* GSAP — masques de texte */
.gsap-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em;
}

.gsap-line-inner {
    display: block;
    will-change: transform;
}

.section__title .gsap-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    perspective: 600px;
}

.section__title .gsap-word-inner {
    display: inline-block;
    will-change: transform, opacity;
}

.section__title .gsap-word-space {
    display: inline;
}

/* GSAP — rolling text (section Le projet) */
.section__title--rolling {
    perspective: 900px;
}

.section__title--rolling .gsap-roll {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    line-height: 1.1;
}

.section__title--rolling .gsap-roll-inner {
    display: inline-block;
    transform-origin: 50% 100%;
}

.section__title--rolling .gsap-roll-space {
    display: inline;
}

/* GSAP — horizontal text (section Circuit) */
.section__title--horizontal .gsap-hword {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    line-height: 1.1;
}

.section__title--horizontal .gsap-hword-inner {
    display: inline-block;
}

.section__title--horizontal .gsap-hword-space {
    display: inline;
}

/* GSAP — convertToPath + DrawSVG (section Objectifs) */
.section__title--path {
    margin-bottom: clamp(16px, 2.5vw, 22px);
}

.section-title-path {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: visible;
    color: var(--color-brand);
}

.section-title-path__label {
    font-family: Inter, system-ui, sans-serif;
    font-size: clamp(2.125rem, 5.5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    fill: currentColor;
}

.section-title-path__stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.section.is-in-view .section-canvas--ready {
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.hero__subtitle {
    font-size: clamp(1rem, 2.4vw, 1.3125rem);
    line-height: 1.5;
    color: var(--color-text-muted);
    margin: 0 auto 10px;
    max-width: 54ch;
}

.hero__location {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: clamp(0.875rem, 2vw, 1.0625rem);
    line-height: 1.5;
    color: var(--color-text-muted);
    margin: 0 auto clamp(22px, 3.5vw, 32px);
    max-width: 58ch;
}

.hero__location svg {
    color: var(--color-primary);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Patronage */
.hero__patronage {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.5vw, 22px);
    justify-content: center;
    width: 100%;
    max-width: 920px;
    margin: 0 auto clamp(20px, 3.5vw, 28px);
    text-align: left;
}

.hero__patronage-logo {
    flex-shrink: 0;
    line-height: 0;
}

.hero__patronage-logo img {
    width: auto;
    height: clamp(60px, 11vw, 88px);
    max-width: clamp(108px, 18vw, 150px);
    object-fit: contain;
}

.hero__patronage-label {
    font-size: clamp(0.6875rem, 1.6vw, 0.75rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.hero__patronage-name {
    font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
    font-weight: 700;
    color: var(--color-brand);
    line-height: 1.35;
}

.hero__patronage-role {
    font-size: clamp(0.8125rem, 1.9vw, 0.9375rem);
    color: var(--color-text-muted);
    margin-top: 4px;
    line-height: 1.45;
    max-width: 42ch;
}

@media (min-width: 901px) {
    .hero__title {
        font-size: clamp(2.75rem, 4.8vw, 3.75rem);
        margin-bottom: 18px;
    }

    .hero__subtitle {
        font-size: 1.375rem;
        max-width: 58ch;
        margin-bottom: 12px;
    }

    .hero__location {
        font-size: 1.125rem;
        max-width: 62ch;
        margin-bottom: 32px;
    }

    .hero__location svg {
        width: 20px;
        height: 20px;
    }

    .hero__patronage {
        gap: 22px;
        margin-bottom: 32px;
    }

    .hero__patronage-logo img {
        height: 100px;
        max-width: 160px;
    }

    .hero__patronage-label {
        font-size: 0.8125rem;
        margin-bottom: 6px;
    }

    .hero__patronage-name {
        font-size: 1.1875rem;
    }

    .hero__patronage {
        max-width: 100%;
        padding: 0 clamp(8px, 2vw, 24px);
    }

    .hero__patronage-role {
        font-size: 1rem;
        max-width: 48ch;
    }

}

/* Hero stats */
.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 2vw, 16px);
    width: 100%;
    margin: 0;
}

.hero__stat {
    padding: clamp(14px, 2.8vw, 20px) clamp(10px, 2vw, 14px);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.hero__stat-value {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.125rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.hero__stat-label {
    display: block;
    margin-top: clamp(6px, 1vw, 8px);
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text-muted);
}

@media (min-width: 901px) {
    .hero__stats {
        gap: 16px;
        margin-top: clamp(4px, 1vh, 12px);
    }

    .hero__stat {
        padding: 22px 16px;
        border-radius: var(--radius-md, 12px);
    }

    .hero__stat-value {
        font-size: clamp(2.125rem, 3.2vw, 2.75rem);
    }

    .hero__stat-label {
        font-size: 0.9375rem;
        margin-top: 10px;
    }
}

@media (max-width: 1100px) {
    .hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Story cards */
.story-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.story-card {
    padding: 24px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: border-color 0.2s, background 0.2s;
}

.story-card:hover {
    background: var(--color-card-hover);
    border-color: rgba(var(--color-primary-rgb), 0.2);
}

.story-card__num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    opacity: 0.5;
    line-height: 1;
    flex-shrink: 0;
}

.story-card__text {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--color-text-muted);
}

/* ── Circuit ── */
.route-layout {
    display: flex;
    flex-direction: column;
    gap: clamp(48px, 8vw, 72px);
}

.route-block {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.route-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.route-summary__item {
    padding: 20px 16px;
    text-align: center;
    background: var(--color-surface);
}

.route-summary__value {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--color-brand);
    line-height: 1;
}

.route-summary__label {
    display: block;
    margin-top: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.route-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(10px, 1.8vw, 22px);
    padding: clamp(4px, 1vw, 12px) 0 clamp(8px, 2vw, 16px);
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.route-tabs__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    min-width: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    color: var(--color-text-muted);
    text-align: center;
    transform-origin: center bottom;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.route-tabs__btn-magnetic {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.route-tabs__drop {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(50px, 5.8vw, 72px);
    height: clamp(62px, 7.2vw, 88px);
    background:
        radial-gradient(ellipse 55% 40% at 32% 22%, rgba(255, 255, 255, 0.95) 0%, transparent 70%),
        linear-gradient(168deg, #ffffff 0%, #eef3fa 42%, #d8e4f4 100%);
    border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
    box-shadow:
        0 6px 18px rgba(26, 61, 110, 0.14),
        0 2px 4px rgba(26, 61, 110, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -8px 16px rgba(26, 61, 110, 0.07);
    transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.35s ease, background 0.35s ease;
}

.route-tabs__drop-shine {
    position: absolute;
    top: 14%;
    left: 20%;
    width: 30%;
    height: 16%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    filter: blur(0.5px);
    pointer-events: none;
}

.route-tabs__btn-num {
    position: relative;
    z-index: 1;
    font-size: clamp(1.125rem, 2.2vw, 1.5rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--color-primary);
    transition: color 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.route-tabs__btn-label {
    font-size: clamp(0.6875rem, 1.2vw, 0.8125rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.25s ease, transform 0.3s ease;
}

.route-tabs__btn:hover {
    color: var(--color-primary);
}

.route-tabs__btn:hover .route-tabs__drop {
    transform: translateY(-4px) scale(1.04);
    box-shadow:
        0 12px 28px rgba(26, 61, 110, 0.18),
        0 4px 8px rgba(26, 61, 110, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -8px 16px rgba(26, 61, 110, 0.08);
}

.route-tabs__btn:hover .route-tabs__btn-num {
    transform: scale(1.06);
}

.route-tabs__btn.is-active {
    color: var(--color-primary);
}

.route-tabs__btn.is-active .route-tabs__drop {
    background:
        radial-gradient(ellipse 50% 38% at 30% 20%, rgba(255, 255, 255, 0.35) 0%, transparent 68%),
        linear-gradient(168deg, var(--color-primary-hover) 0%, var(--color-primary) 52%, #122d52 100%);
    box-shadow:
        0 10px 28px rgba(26, 61, 110, 0.32),
        0 0 0 2px rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -10px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px) scale(1.06);
}

.route-tabs__btn.is-active .route-tabs__btn-num {
    color: var(--color-on-primary);
}

.route-tabs__btn.is-active .route-tabs__btn-label {
    color: var(--color-primary);
    font-weight: 800;
}

@media (max-width: 640px) {
    .route-tabs__nav {
        gap: 10px 12px;
        max-width: 360px;
        margin: 0 auto;
    }

    .route-tabs__drop {
        width: 52px;
        height: 64px;
    }

    .route-tabs__btn-label {
        font-size: 0.625rem;
        letter-spacing: 0.03em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .route-tabs__drop,
    .route-tabs__btn-num,
    .route-tabs__btn-label {
        transition: none;
    }
}

.route-tabs__panels {
    padding: clamp(20px, 3vw, 32px);
}

.route-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.route-panel.is-active { display: block; }

.route-panel__header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.route-panel__day {
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.08);
    border-radius: var(--radius-sm);
}

.route-panel__title {
    font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
    font-weight: 700;
    color: var(--color-brand);
    line-height: 1.3;
}

.route-stops {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.route-stop {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.route-stop--clickable {
    cursor: pointer;
}

.route-stop--clickable:hover {
    border-color: rgba(var(--color-primary-rgb), 0.35);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.route-stop__main {
    flex: 1;
    min-width: 0;
}

.route-stop__city {
    display: block;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 4px;
}

.route-stop__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.route-stop__type {
    font-weight: 500;
}

.route-stop__meta-sep {
    color: var(--color-border);
    font-weight: 700;
}

.route-stop__date {
    font-weight: 500;
}

.route-stop__note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin-top: 8px;
}

.route-stop__action {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: gap 0.2s;
}

.route-stop--clickable:hover .route-stop__action {
    gap: 8px;
}

/* Programme */
.programme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.programme-card {
    padding: 24px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, background 0.2s;
}

.programme-card:hover {
    border-color: rgba(var(--color-primary-rgb), 0.25);
    background: var(--color-card-hover);
}

.programme-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--color-primary-rgb), 0.12);
    border-radius: 12px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.programme-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.programme-card__text {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* Split — ULM & sections image + texte */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.split__visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.split__visual img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--color-surface);
}

.ulm-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.ulm-list__item {
    padding-left: 14px;
    border-left: 2px solid var(--color-border);
}

.ulm-list__item p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* Hommages + Three.js */
.section--hommages {
    padding: 0;
    overflow: hidden;
}

.hommages__stage {
    position: relative;
    padding: clamp(64px, 10vh, 112px) 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(var(--color-primary-rgb), 0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 133, 63, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, #f8fafc 0%, #eef3f9 55%, var(--color-bg) 100%);
}

.hommage-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hommage-canvas--fallback {
    display: none;
}

.hommages__content {
    position: relative;
    z-index: 1;
}

.hommage-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 36px);
}

@media (max-width: 640px) {
    .hommage-list {
        grid-template-columns: 1fr;
    }
}

.hommage-card {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    padding: 0;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(var(--color-primary-rgb), 0.1);
    border-radius: var(--radius-lg);
    box-shadow:
        0 8px 32px rgba(26, 46, 74, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    text-align: left;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.hommage-card:hover {
    border-color: rgba(var(--color-primary-rgb), 0.22);
    box-shadow:
        0 16px 48px rgba(26, 46, 74, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

.hommage-card__visual {
    position: relative;
    background: #0a1628;
    min-height: 100%;
}

.hommage-card__photo {
    position: relative;
    z-index: 1;
    padding: clamp(18px, 2.5vw, 24px);
    line-height: 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hommage-card__photo img {
    width: 100%;
    max-height: clamp(240px, 30vw, 320px);
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hommage-card:hover .hommage-card__photo img {
    transform: translateY(-4px) scale(1.02);
}

.hommage-card__halo {
    position: absolute;
    inset: 12% 8% auto;
    height: 55%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 184, 0, 0.18) 0%, transparent 70%);
    filter: blur(12px);
    pointer-events: none;
    animation: none;
}

.hommage-card:nth-child(2) .hommage-card__halo {
    animation-delay: 1.5s;
    background: radial-gradient(circle, rgba(0, 133, 63, 0.16) 0%, transparent 70%);
}

@keyframes hommageHalo {
    from { opacity: 0.5; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1.05); }
}

.hommage-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px);
}

.hommage-card__tag {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.hommage-card__name {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 800;
    color: var(--color-brand);
    margin-bottom: 6px;
    line-height: 1.2;
}

.hommage-card__years {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 16px;
}

.hommage-card__bio {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: 20px;
}

.hommage-card__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: gap 0.2s ease;
}

.hommage-card:hover .hommage-card__action {
    gap: 12px;
}

@media (max-width: 768px) {
    .hommage-card {
        grid-template-columns: 1fr;
    }

    .hommage-card__visual {
        min-height: auto;
    }

    .hommage-card__photo img {
        max-height: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hommage-card__halo {
        animation: none;
    }
}

/* Partners */
.section--partners {
    background: var(--color-bg);
}

.partners-banner {
    margin: 0 0 clamp(28px, 4vw, 40px);
    padding: clamp(16px, 2.5vw, 24px);
    line-height: 0;
    width: 100%;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.partners-banner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.partner-card {
    padding: 20px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
    .partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact — styles My Assist via refine.css */
.section--contact {
    background: var(--color-surface);
}

/* Cartes cliquables */
.modal-trigger {
    cursor: pointer;
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
}

.modal-trigger:active,
.modal-trigger:focus-visible {
    border-color: rgba(var(--color-primary-rgb), 0.45);
    box-shadow: 0 8px 32px rgba(var(--color-primary-rgb), 0.08);
}

.modal-trigger__teaser {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.modal-trigger__hint {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    opacity: 0.8;
    margin-top: 10px;
}

#vision .modal-trigger {
    max-width: 560px;
    margin: 0 auto 40px;
    padding: 24px 28px;
    text-align: center;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

#ulm .modal-trigger {
    max-width: 520px;
}

#ulm .modal-trigger__teaser {
    font-size: 1rem;
    color: var(--color-text);
}

/* Objectifs */
.objectifs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.objectifs-card {
    padding: 24px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.objectifs-card--wide { grid-column: 1 / -1; }

.objectifs-card__title {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.objectifs-card__subtitle {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin: 16px 0 8px;
}

.objectifs-card__text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.objectifs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.objectifs-list--compact { padding-left: 1.1rem; gap: 6px; }

.objectifs-list--inline {
    flex-direction: row;
    flex-wrap: wrap;
    padding-left: 0;
    list-style: none;
    gap: 8px;
}

.objectifs-list--inline li {
    padding: 6px 12px;
    background: rgba(var(--color-primary-rgb), 0.08);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

.resultats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
}

.resultats-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.resultats-list__code {
    flex-shrink: 0;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.calendrier-info {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.calendrier-info__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.calendrier-info__value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}



/* ── Galerie moderne ── */
.section--gallery {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(var(--color-primary-rgb), 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(252, 209, 22, 0.04) 0%, transparent 45%),
        var(--color-surface);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 14px;
}

.gallery__item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-card);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

.gallery__item--collapsed {
    display: none;
}

.gallery__trigger {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
}

.gallery__trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(var(--color-primary-rgb), 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (hover: hover) {
    .gallery__item:hover .gallery__overlay { opacity: 1; }
    .gallery__item:hover .gallery__trigger img { transform: scale(1.06); }
    .gallery__item:hover {
        border-color: rgba(var(--color-primary-rgb), 0.35);
        box-shadow: var(--shadow-md);
    }
}

.gallery__overlay-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(6px);
}

.gallery__overlay-num {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.9);
}

.gallery__more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 36px;
    transition: opacity 0.3s, transform 0.3s;
}

.gallery__more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.gallery__more-btn:hover {
    background: var(--color-surface);
    border-color: var(--color-primary);
    color: var(--color-primary);
}


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

@media (max-width: 900px) {
    .hero__inner { max-width: 100%; }

    .hero__patronage {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .hero__patronage > div {
        text-align: center;
    }
    .story-grid { grid-template-columns: 1fr; }
    .objectifs-grid { grid-template-columns: 1fr; }
    .objectifs-card--wide { grid-column: auto; }
    .programme-grid { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; }
    .hommage-list { gap: 20px; }
    .route-stops { grid-template-columns: 1fr; }
    .route-stop { flex-direction: column; }
    .route-stop__action { align-self: flex-start; }
    .gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 12px;
    }

    .gallery__item {
        aspect-ratio: 1;
    }

    .gallery__item--wide {
        grid-column: span 2;
        aspect-ratio: 16 / 10;
    }

    .gallery__item--tall {
        grid-row: span 1;
        aspect-ratio: 1;
    }
}

/* ── Galerie mobile ── */
@media (max-width: 768px) {
    .section--gallery {
        padding: clamp(48px, 8vh, 72px) 0 clamp(56px, 9vh, 80px);
    }

    .section--gallery {
        overflow-x: clip;
    }

    .section--gallery .section__inner {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .section--gallery .section__header {
        margin-bottom: clamp(28px, 5vw, 40px);
    }

    .section--gallery .section__title {
        font-size: clamp(1.5rem, 6vw, 1.85rem);
    }

    .section--gallery .section__desc {
        font-size: 0.9375rem;
        line-height: 1.65;
    }

    .gallery__grid {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 10px;
    }

    .gallery__item {
        aspect-ratio: 1;
        border-radius: 12px;
        -webkit-tap-highlight-color: transparent;
    }

    .gallery__item--wide {
        grid-column: span 2;
        aspect-ratio: 16 / 10;
    }

    .gallery__item--tall {
        grid-row: span 1;
        aspect-ratio: 1;
    }

    .gallery__trigger {
        touch-action: manipulation;
    }

    .gallery__trigger:active img {
        transform: scale(1.02);
    }

    .gallery__overlay {
        opacity: 1;
        justify-content: flex-end;
        padding-bottom: 8px;
        background: linear-gradient(180deg, transparent 50%, rgba(21, 36, 61, 0.5) 100%);
    }

    .gallery__overlay-icon {
        display: none;
    }

    .gallery__overlay-num {
        font-size: 0.6875rem;
        letter-spacing: 0.1em;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    }

    .gallery__more-wrap {
        margin-top: 24px;
        padding: 0 4px;
    }

    .gallery__more-btn {
        width: 100%;
        max-width: none;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.875rem;
        border-radius: 12px;
        -webkit-tap-highlight-color: transparent;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: calc(var(--header-height) + 12px);
        padding-bottom: 32px;
    }

    .countdown {
        gap: 6px;
        margin-bottom: 16px;
    }

    .countdown__item {
        padding: 8px 3px;
    }

    .countdown__value {
        font-size: 1rem;
    }

    .countdown__label {
        font-size: 0.5rem;
        margin-top: 3px;
    }

    .hero__title {
        font-size: 1.875rem;
    }

    .hero__subtitle {
        font-size: 0.9375rem;
    }

    .hero__location {
        font-size: 0.875rem;
        margin-bottom: 18px;
    }

    .hero__patronage-name {
        font-size: 0.875rem;
    }

    .hero__patronage-role {
        font-size: 0.75rem;
    }

    .hero__patronage-logo img {
        height: 56px;
        max-width: 100px;
    }

    .hero__stat {
        padding: 12px 10px;
    }

    .hero__stat-value {
        font-size: 1.375rem;
    }

    .hero__stat-label {
        font-size: 0.6875rem;
    }

    .section--gallery .section__inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    .gallery__grid {
        gap: 8px;
    }

    .gallery__item {
        border-radius: 10px;
    }
}
