/* Sections — layout & composants */

.section,
.hero {
    overflow: hidden;
}

.section {
    padding: clamp(64px, 10vh, 112px) 0;
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
}

#accueil.hero {
    content-visibility: visible;
    contain-intrinsic-size: auto;
}

img {
    max-width: 100%;
    height: auto;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Three.js — fonds de section (désactivés par défaut pour les performances) */
.section-canvas,
.nav-canvas,
.scroll-waypoints-canvas {
    display: none !important;
}

body[data-background-fx="off"] .partners-showcase__bg,
body[data-background-fx="off"] .faq-showcase__bg {
    display: none;
}

.section-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.15s linear;
}

.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 {
    display: none !important;
}

.section__inner {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--page-gutter, 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 .section__desc + .section__desc {
    margin-top: 1.25rem;
}

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

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding:
        calc(var(--header-height) + var(--safe-top, 0px) + 28px)
        var(--page-gutter, 24px)
        calc(48px + var(--safe-bottom, 0px));
    overflow: hidden;
}

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

.hero__bg.is-active {
    opacity: 1;
}

.hero__slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__slide-content {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero__slide-content.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hero__content-stage {
    display: grid;
    grid-template: 1fr / 1fr;
    align-items: start;
    width: 100%;
}

.hero__slide-content .section__eyebrow {
    justify-content: center;
    margin-bottom: clamp(14px, 2vw, 20px);
}

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

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

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

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

@media (prefers-reduced-motion: reduce) {
    .hero__slide-content {
        transition: opacity 0.35s ease;
    }

    .hero__slide-content .section__eyebrow,
    .hero__title .gsap-word-inner,
    .hero__actions .btn {
        transition: opacity 0.35s ease, transform 0.35s ease;
    }
}

.hero__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 28px 0 36px;
}

.hero__dot {
    width: var(--touch-min, 44px);
    height: var(--touch-min, 44px);
    padding: 0;
    border-radius: 50%;
    background: transparent;
    position: relative;
    transition: transform 0.25s;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.hero__dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(var(--color-primary-rgb), 0.25);
    transform: translate(-50%, -50%);
    transition: background 0.25s, transform 0.25s, width 0.25s, height 0.25s;
}

.hero__dot.is-active::after {
    background: var(--color-primary);
    width: 12px;
    height: 12px;
}

.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;
    max-width: 820px;
    width: 100%;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.countdown__item {
    min-width: 80px;
    padding: 14px 12px;
    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(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown__label {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.hero__title {
    font-size: clamp(1.75rem, 6.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--color-brand);
    margin-bottom: 16px;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

/* 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.5vw, 1.375rem);
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.hero__location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-bottom: 36px;
}

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

/* Patronage */
.hero__patronage {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    text-align: left;
}

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

.hero__patronage-logo img {
    width: auto;
    height: 120px;
    max-width: 200px;
    object-fit: contain;
    background: transparent;
}

.hero__patronage-label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.hero__patronage-name {
    font-size: 1rem;
    font-weight: 700;
}

.hero__patronage-role {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* Hero stats */
.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

.hero__stat {
    padding: 18px 12px;
    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.75rem, 4vw, 2.75rem);
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

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

.hero__actions {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 14px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

/* 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: flex;
    flex-direction: column;
    gap: clamp(24px, 4vw, 36px);
}

.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: hommageHalo 4s ease-in-out infinite alternate;
}

.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 {
    padding: 0;
    background: var(--color-bg);
}

.partners-showcase {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 10vh, 112px) 0;
}

.partners-showcase__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.partners-showcase__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}

.partners-showcase__orb--1 {
    top: -12%;
    left: -8%;
    width: min(420px, 55vw);
    height: min(420px, 55vw);
    background: rgba(var(--color-primary-rgb), 0.12);
}

.partners-showcase__orb--2 {
    right: -6%;
    bottom: -18%;
    width: min(380px, 50vw);
    height: min(380px, 50vw);
    background: rgba(0, 85, 164, 0.1);
}

.partners-showcase .section__inner {
    position: relative;
    z-index: 1;
}

.partners-showcase__header {
    margin-bottom: clamp(40px, 6vw, 64px);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

.partners-card {
    position: relative;
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
    border: 1px solid rgba(var(--color-primary-rgb), 0.08);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 12px 40px rgba(26, 46, 74, 0.06);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.partners-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0.85;
}

.partners-card--stripe-fr::before {
    background: linear-gradient(90deg, var(--color-fr-blue), var(--color-fr-white), var(--color-fr-red));
}

.partners-card--stripe-gyr::before {
    background: linear-gradient(90deg, #00853f 0%, #00853f 33.33%, #f0c020 33.33%, #f0c020 66.66%, #d41920 66.66%, #d41920 100%);
}

.partners-card__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
    pointer-events: none;
}

.partners-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--color-primary-rgb), 0.18);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 22px 50px rgba(var(--color-primary-rgb), 0.1);
}

.partners-card:hover .partners-card__shine {
    transform: translateX(120%);
}

.partners-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: clamp(20px, 2.5vw, 28px) clamp(16px, 2vw, 20px) clamp(18px, 2vw, 24px);
    text-align: center;
}

.partners-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 88px;
    padding: 6px 0;
}

.partners-card__logo img {
    max-height: 72px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(0.08);
    transition: filter 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.partners-card__logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.12), rgba(var(--color-secondary-rgb), 0.1));
    color: var(--color-brand);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.partners-card:hover .partners-card__logo img {
    filter: grayscale(0);
    transform: scale(1.04);
}

.partners-card__name {
    font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-brand);
    line-height: 1.3;
}

.partners-showcase__footnote {
    max-width: 42ch;
    margin: clamp(36px, 5vw, 48px) auto 0;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.partners-banner {
    margin: 0;
    padding-top: clamp(24px, 4vw, 32px);
    border-top: 1px solid var(--color-border);
    line-height: 0;
}

.partners-banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(28px, 4vw, 48px);
    padding-top: clamp(24px, 4vw, 32px);
    border-top: 1px solid var(--color-border);
    align-items: start;
}

.contact-panel {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 28px);
}

.contact-cta-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 14px;
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: var(--shadow-sm);
}

.contact-cta-card__eyebrow {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.contact-cta-card__title {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.5rem);
    font-weight: 700;
    color: var(--color-brand);
    line-height: 1.25;
}

.contact-cta-card__desc {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 36ch;
}

.contact-cta-card__actions {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.contact-panel__reach {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-link {
    display: block;
    padding: 18px 0;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    transition: color 0.2s;
}

.contact-link:first-child {
    padding-top: 0;
}

.contact-link:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-link__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.contact-link__value {
    display: block;
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    font-weight: 700;
    color: var(--color-brand);
    line-height: 1.35;
    word-break: break-word;
}

@media (hover: hover) {
    .contact-link:hover .contact-link__value {
        color: var(--color-primary-hover);
        text-decoration: underline;
        text-underline-offset: 3px;
    }
}

.contact-meta {
    margin: 0;
}

.contact-meta__item {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: 8px 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.contact-meta__item:first-child {
    padding-top: 0;
}

.contact-meta__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-meta dt {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.contact-meta dd {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.55;
}

/* 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) {
    .section {
        padding: clamp(48px, 8vh, 80px) 0;
    }

    .section__header {
        margin-bottom: clamp(32px, 6vw, 48px);
    }

    .section__title {
        font-size: clamp(1.65rem, 6vw, 2.5rem);
        overflow-wrap: anywhere;
    }

    .section__desc {
        font-size: clamp(1rem, 3.4vw, 1.125rem);
    }

    .hero {
        min-height: auto;
        min-height: unset;
        padding-top: calc(var(--header-height) + var(--safe-top, 0px) + 20px);
        padding-bottom: calc(36px + var(--safe-bottom, 0px));
        align-items: flex-start;
    }

    .hero__inner {
        max-width: 100%;
    }

    .hero__dots {
        margin: 20px 0 28px;
    }

    .hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 28px;
    }

    .hero__stat {
        padding: 14px 10px;
        min-width: 0;
    }

    .hero__stat-value {
        font-size: clamp(1.35rem, 7vw, 2rem);
    }

    .hero__stat-label {
        font-size: 0.75rem;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .hero__actions {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        flex-wrap: wrap;
    }

    .hero__actions .btn {
        flex: 0 0 auto;
        width: auto;
        max-width: 100%;
        min-width: 0;
        min-height: 40px;
        margin: 0 auto;
        padding: 10px 22px;
        font-size: 0.8125rem;
        font-weight: 600;
        line-height: 1.25;
        white-space: nowrap;
        text-align: center;
        border-radius: 999px;
    }

    .hero__patronage { flex-direction: column; text-align: center; }
    .hero__patronage-logo img { height: 96px; max-width: 170px; }
    .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; }
    #partners .section__header--left {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    #partners .section__header--left .section__eyebrow {
        justify-content: center;
    }

    #partners .section__header--left .section__eyebrow::after {
        content: '';
        width: clamp(24px, 5vw, 40px);
        height: 2px;
        background: var(--color-secondary);
        border-radius: 1px;
        opacity: 0.9;
    }
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contact-meta__item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    #contact .section__header--left {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    #contact .section__header--left .section__eyebrow {
        justify-content: center;
    }

    #contact .section__header--left .section__eyebrow::after {
        content: '';
        width: clamp(24px, 5vw, 40px);
        height: 2px;
        background: var(--color-secondary);
        border-radius: 1px;
        opacity: 0.9;
    }
    .route-stops { grid-template-columns: 1fr; }
    .route-stop { flex-direction: column; }
    .route-stop__action { align-self: flex-start; }
    .route-summary {
        grid-template-columns: 1fr;
    }
    .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;
    }

    .story-card {
        flex-direction: column;
        gap: 12px;
        padding: 18px;
    }

    .agence-cards,
    .services-grid,
    .processus-grid,
    .equipe-grid,
    .testimonials-grid {
        gap: 16px;
    }
}

/* ── 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;
        min-height: var(--touch-min, 44px);
    }
}

@media (max-width: 480px) {
    .hero__actions {
        gap: 8px;
        justify-content: center;
    }

    .hero__actions .btn {
        padding: 9px 18px;
        font-size: 0.75rem;
        min-height: 36px;
    }

    .countdown__item { min-width: 64px; padding: 12px 8px; }
    .hero__stats { grid-template-columns: 1fr 1fr; gap: 8px; }

    .hero__stat {
        padding: 12px 8px;
    }

    .hero__stat-value {
        font-size: clamp(1.25rem, 8vw, 1.65rem);
    }

    .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;
    }
}

/* Paysage téléphone : hero compact */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + var(--safe-top, 0px) + 12px);
        padding-bottom: 24px;
    }

    .hero__title {
        font-size: clamp(1.35rem, 4.5vw, 2rem);
        margin-bottom: 10px;
    }

    .hero__dots {
        margin: 12px 0 16px;
    }

    .hero__stats {
        margin-bottom: 16px;
        gap: 8px;
    }

    .hero__stat {
        padding: 10px 8px;
    }

    .section {
        padding: 40px 0;
    }
}

/* Conteneurs fluides — éviter le débordement horizontal */
.section,
.hero,
.site-footer,
main {
    max-width: 100%;
}

.section__title,
.hero__title,
.section__desc,
.hero__stat-label {
    overflow-wrap: break-word;
}

/* ── AKTION FUND — sections spécifiques ── */

.section__title--left { text-align: left; }
.section__title--sm { font-size: clamp(1.5rem, 4vw, 2rem); }
.section__desc--left { text-align: left; margin-left: 0; }

/* ── Notre agence ── */

.agence-intro {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(32px, 5vw, 56px);
    align-items: center;
    margin-bottom: clamp(48px, 8vw, 72px);
}

.agence-intro__content .section__title {
    margin-bottom: clamp(14px, 2vw, 18px);
}

.agence-intro__content .section__desc {
    max-width: none;
}

.agence-mission {
    margin-top: clamp(24px, 4vw, 32px);
    padding: 20px 0 4px 20px;
    border-left: 3px solid var(--color-primary);
}

.agence-mission__label {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-hero-accent);
    margin-bottom: 10px;
}

.agence-mission__text {
    font-size: clamp(1rem, 1.8vw, 1.0625rem);
    line-height: 1.65;
    color: var(--color-text);
}

.agence-intro__photo {
    margin: 0;
}

.agence-intro__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.agence-about {
    padding-top: clamp(48px, 7vw, 64px);
    border-top: 1px solid var(--color-border);
}

.agence-about .section__header {
    margin-bottom: clamp(32px, 5vw, 44px);
}

.agence-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 32px;
    max-width: 820px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.agence-list__item {
    position: relative;
    padding-left: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-text);
}

.agence-list__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
}

.agence-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: clamp(48px, 7vw, 64px);
    padding-top: clamp(48px, 7vw, 64px);
    border-top: 1px solid var(--color-border);
}

.agence-card {
    padding: 28px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.agence-card:hover {
    border-color: rgba(var(--color-primary-rgb), 0.2);
    box-shadow: var(--shadow-md);
}

.agence-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-brand);
}

.agence-card__text {
    color: var(--color-text-muted);
    line-height: 1.65;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.services-card {
    padding: 28px 24px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: box-shadow 0.25s, border-color 0.25s;
}

.services-card:hover {
    border-color: rgba(var(--color-primary-rgb), 0.25);
    box-shadow: var(--shadow-md);
}

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

.services-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-brand);
}

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

.processus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.processus-card {
    position: relative;
    padding: 32px 28px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.processus-card__num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(var(--color-primary-rgb), 0.15);
    margin-bottom: 16px;
}

.processus-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-brand);
}

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

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

.equipe-card {
    text-align: center;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
}

.equipe-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.equipe-card__photo {
    aspect-ratio: 4/5;
    overflow: hidden;
}

.equipe-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.equipe-card__body { padding: 20px 16px 24px; }

.equipe-card__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-brand);
}

.equipe-card__role {
    margin-top: 4px;
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 600;
}

.equipe-cta {
    display: flex;
    justify-content: center;
    margin-top: clamp(40px, 6vw, 56px);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.testimonial-card {
    padding: 28px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.testimonial-card__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.testimonial-card__score {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
}

.testimonial-card__stars {
    color: #f5a623;
    font-size: 0.875rem;
    letter-spacing: 2px;
}

.testimonial-card__quote {
    margin: 0 0 20px;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card__name {
    font-style: normal;
    font-weight: 700;
    color: var(--color-brand);
}

.testimonial-card__role {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.soumettre-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(32px, 5vw, 56px);
    align-items: center;
    margin-top: clamp(40px, 6vw, 56px);
}

.soumettre__subtitle {
    margin: 0 0 12px;
    font-weight: 700;
    color: var(--color-brand);
}

.soumettre__benefits,
.soumettre__steps {
    padding-left: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.soumettre__benefits li,
.soumettre__steps li { margin-bottom: 8px; }

.soumettre__cta-text {
    margin: 28px 0 20px;
    line-height: 1.6;
}

.soumettre__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .soumettre__actions {
        justify-content: center;
        width: 100%;
    }

    .soumettre__actions .btn {
        width: auto;
        margin-left: auto;
        margin-right: auto;
    }

    .soumettre-grid__content {
        text-align: center;
    }

    .soumettre__benefits,
    .soumettre__steps {
        text-align: left;
        display: inline-block;
        max-width: 100%;
    }

    .soumettre__cta-text {
        text-align: center;
    }
}

.soumettre__note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.soumettre-grid__visual img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 48px);
    align-items: start;
}

/* ── FAQ (page référence aktionfund.fr/faqs/) ── */

.section--faq {
    padding: 0;
    background: var(--color-bg);
}

.faq-showcase {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 10vh, 112px) 0;
}

.faq-showcase__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.faq-showcase__orb {
    position: absolute;
    top: 10%;
    right: -10%;
    width: min(480px, 60vw);
    height: min(480px, 60vw);
    border-radius: 50%;
    background: rgba(0, 85, 164, 0.06);
    filter: blur(80px);
}

.faq-showcase .section__inner {
    position: relative;
    z-index: 1;
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(32px, 5vw, 56px);
    align-items: start;
    margin-top: clamp(40px, 6vw, 56px);
}

.faq-aside {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.faq-aside__visual {
    margin: 28px 0;
    max-width: 340px;
}

.faq-aside__visual img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.faq-aside__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(var(--color-primary-rgb), 0.06) 0%, rgba(0, 85, 164, 0.04) 100%);
    border: 1px solid rgba(var(--color-primary-rgb), 0.1);
    text-align: center;
}

.faq-aside__cta-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 16px;
}

.faq-accordion__label {
    margin-bottom: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item[open] {
    border-color: rgba(var(--color-primary-rgb), 0.2);
    box-shadow: 0 8px 28px rgba(var(--color-primary-rgb), 0.08);
}

.faq-item__question {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    color: var(--color-brand);
    transition: color 0.2s;
}

.faq-item__question::-webkit-details-marker { display: none; }

.faq-item__question:hover {
    color: var(--color-primary);
}

.faq-item__index {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    opacity: 0.7;
}

.faq-item__text {
    flex: 1;
    min-width: 0;
    font-size: 0.9875rem;
    line-height: 1.4;
    text-align: left;
}

.faq-item__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(var(--color-primary-rgb), 0.08);
    position: relative;
    transition: background 0.2s, transform 0.25s;
}

.faq-item__icon::before,
.faq-item__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease;
}

.faq-item__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-item__icon {
    background: var(--color-primary);
}

.faq-item[open] .faq-item__icon::before,
.faq-item[open] .faq-item__icon::after {
    background: #fff;
}

.faq-item[open] .faq-item__icon::after {
    transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.faq-item__answer {
    padding: 0 20px 20px 52px;
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.faq-item__answer p {
    margin: 0;
}

.faq-item__list {
    margin: 0;
    padding-left: 1.1rem;
}

.faq-item__list li {
    margin-bottom: 6px;
}

.faq-item__list li:last-child {
    margin-bottom: 0;
}

.faq-item__action {
    margin-top: 16px;
}

.btn--sm {
    padding: 9px 16px;
    font-size: 0.8125rem;
}

.faq-grid__visual img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.contact-social {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.contact-social a {
    font-weight: 600;
    font-size: 0.875rem;
}

@media (max-width: 960px) {
    .agence-intro,
    .soumettre-grid,
    .faq-grid,
    .faq-layout { max-width: 100%; }

    .services-grid,
    .processus-grid,
    .equipe-grid { grid-template-columns: 1fr; }

    .agence-intro { grid-template-columns: 1fr; }

    .agence-intro__photo {
        order: -1;
        max-width: min(420px, 100%);
        margin: 0 auto;
        width: 100%;
    }

    .agence-list { grid-template-columns: 1fr; }

    .agence-cards,
    .testimonials-grid { grid-template-columns: 1fr; }

    .faq-grid,
    .faq-layout,
    .soumettre-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid__visual { order: -1; max-width: min(360px, 100%); width: 100%; margin-inline: auto; }

    .faq-aside {
        position: static;
    }

    .faq-aside__visual {
        max-width: min(280px, 100%);
        margin-left: auto;
        margin-right: auto;
    }

    .faq-aside__cta {
        text-align: center;
    }

    .faq-item__question {
        min-height: var(--touch-min, 44px);
        align-items: center;
        -webkit-tap-highlight-color: transparent;
        gap: 10px;
        padding: 14px 14px;
    }

    .faq-item__text {
        font-size: 0.875rem;
        line-height: 1.35;
    }

    .faq-item__icon {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }

    .faq-item__answer {
        padding: 0 14px 16px 14px;
        font-size: 0.875rem;
    }

    .partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: min(640px, 100%);
        width: 100%;
        margin-inline: auto;
        gap: 12px;
    }

    .partners-card__logo {
        min-height: 100px;
    }
}

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

    .partners-card__logo {
        min-height: 88px;
    }

    .partners-card__name {
        font-size: 0.75rem;
        padding: 0 6px 12px;
    }

    .agence-list,
    .agence-cards {
        gap: 12px;
    }
}
