/* DropBag - site public. Les couleurs viennent toutes de tokens.css. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 400 1.0625rem/1.65 var(--font-text);
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c1); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--c2); color: var(--c2-ink); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--flip { transform: scaleX(-1); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { --container: 780px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--c1); color: var(--c1-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Typographie ---------- */
.kicker {
    position: relative; display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-left: 34px;
    font: 700 .95rem/1.2 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--c1);
}
/* Le sac du logo devant chaque surtitre, en deux couches pour garder ses deux couleurs :
   ::before = corps + anse (couleur principale), ::after = crête en A (couleur d'accent).
   Masques générés depuis app/logo-data.php (cadrage iconViewBox). */
.kicker::before, .kicker::after {
    content: ""; position: absolute; left: 0; top: 50%; width: 25px; height: 25px; transform: translateY(-58%);
    -webkit-mask: var(--kicker-mask) center / contain no-repeat; mask: var(--kicker-mask) center / contain no-repeat;
}
.kicker::before {
    --kicker-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%222158%20-948%20968%20968%22%3E%3Cpath%20d%3D%22M2524%20-660V-774a118%20118%200%200%201%20236%200V-660%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%2272%22%20stroke-linecap%3D%22round%22%2F%3E%3Crect%20x%3D%222322%22%20y%3D%22-700%22%20width%3D%22640%22%20height%3D%22700%22%20rx%3D%22130%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
    background: var(--logo-c1);
}
.kicker::after {
    --kicker-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%222158%20-948%20968%20968%22%3E%3Cpath%20d%3D%22M2414%20-118L2518%20-292L2580%20-236L2704%20-584L2774%20-318L2826%20-392L2888%20-118%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%2284%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
    background: var(--logo-c2);
}
.kicker a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.kicker a:hover { text-decoration: underline; }
.kicker--hero { padding-left: 0; }
.kicker--hero::before, .kicker--hero::after { display: none; }
.kicker--hero .icon { width: 1.35em; height: 1.35em; padding: 4px; border-radius: 8px; background: var(--c2); color: var(--c2-ink); box-sizing: content-box; }

.section-title, .hero__title, .cta__title, .page-hero__title {
    font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
    line-height: .94; letter-spacing: -.005em; text-wrap: balance;
}
.section-title { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.9rem); }

/* Mot mis en relief : italique, couleur principale, coup de surligneur accent */
.hl {
    font-style: italic; color: var(--c1); padding: 0 .08em;
    background: linear-gradient(transparent 64%, color-mix(in srgb, var(--c2) var(--hl-mix, 75%), transparent) 64% 90%, transparent 90%);
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-lead { margin-top: 20px; font-size: 1.15rem; color: var(--muted); }

.prose > * + * { margin-top: .85em; }
.prose a { color: var(--c1); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--c2); }
.prose strong { font-weight: 700; color: var(--text); }
.prose h3 { font: 700 1.5rem/1.1 var(--font-display); text-transform: uppercase; margin-top: 1.6em; }
.prose h4 { font: 700 1.2rem/1.2 var(--font-display); text-transform: uppercase; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose ul li::marker { color: var(--c1); }
.prose blockquote { margin: 1.2em 0; padding: .4em 0 .4em 1.1em; border-left: 4px solid var(--c2); font-style: italic; }
.prose--small { font-size: .95rem; }
.prose--lead { font-size: 1.15rem; }
.prose--page { font-size: 1.05rem; }
.prose--page h3:first-child { margin-top: 0; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
    font: 600 1rem/1.2 var(--font-text); text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn--primary { background: var(--c1); color: var(--c1-ink); box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--c1) 80%, transparent); }
.btn--primary:hover { box-shadow: 0 16px 32px -12px color-mix(in srgb, var(--c1) 90%, transparent); }
.btn--ghost { background: color-mix(in srgb, var(--surface) 70%, transparent); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--c1); color: var(--c1); }
.btn--accent { background: var(--c2); color: var(--c2-ink); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
.btn--sm { padding: 10px 18px; font-size: .95rem; }
.btn--lg { padding: 18px 30px; font-size: 1.1rem; }

/* ---------- En-tête ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
    transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled, .is-page .site-header, .nav-open .site-header {
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 1px 0 var(--line);
}
.site-header__bar { height: 100%; display: flex; align-items: center; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.logo-mark { width: 40px; height: 40px; }
.logo-mark__bag { fill: var(--logo-c1); }
.logo-mark__handle { stroke: var(--logo-c1); }
.logo-mark__trail { stroke: var(--logo-c2); }
.logo__word { font: italic 800 1.75rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
.logo__word span { color: var(--c1); }
/* logo vectoriel : lettres à la couleur du texte, sac aux couleurs profondes de la maquette */
.logo-full { display: block; height: 42px; width: auto; overflow: visible; }
.logo-full__letters { fill: currentColor; }
.site-footer .logo-full { height: 46px; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.site-nav__list { list-style: none; display: flex; gap: 2px; }
.site-nav__list a {
    position: relative; display: block; padding: 9px 14px; border-radius: 999px;
    font-weight: 600; font-size: .97rem; text-decoration: none; color: var(--text); transition: background-color .2s, color .2s;
}
.site-nav__list a:hover { background: var(--c1-soft); color: var(--c1); }
.site-nav__list a[aria-current="true"] { color: var(--c1); }
.site-nav__list a[aria-current="true"]::after {
    content: ""; position: absolute; left: 50%; bottom: 2px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--c2);
}
.site-header__tools { display: flex; align-items: center; gap: 8px; }

.theme-toggle, .nav-toggle {
    display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    border: 1.5px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); cursor: pointer;
    transition: border-color .2s, color .2s, transform .3s var(--ease);
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--c1); color: var(--c1); }
.theme-toggle:active { transform: rotate(30deg); }
.theme-toggle .icon--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon--sun { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .icon--moon { display: none; }
}
.nav-toggle { display: none; }
.nav-toggle .icon--close { display: none; }
.nav-open .nav-toggle .icon--open { display: none; }
.nav-open .nav-toggle .icon--close { display: block; }

/* ---------- Hero ---------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 clamp(120px, 14vw, 190px);
    background:
        radial-gradient(60% 50% at 85% 10%, color-mix(in srgb, var(--c1) 14%, transparent), transparent 70%),
        radial-gradient(40% 40% at 0% 100%, color-mix(in srgb, var(--c2) 16%, transparent), transparent 70%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero__topo, .cta__topo {
    position: absolute; z-index: -1; pointer-events: none;
    -webkit-mask: url("../img/topo.svg") center / cover no-repeat; mask: url("../img/topo.svg") center / cover no-repeat;
}
.hero__topo { inset: -10% -10% 0 30%; background: var(--c1); opacity: var(--topo-alpha); }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.hero__title { font-size: clamp(3rem, 1.4rem + 5.4vw, 6.2rem); }
/* Le sac remplace le A : son corps fait la hauteur des capitales (.7em) et repose sur la ligne de base ;
   l'anse dépasse d'environ .23em au-dessus. L'interligne passe de .94 à 1.06 pour qu'elle ne touche
   jamais la ligne du dessus (écart entre lignes : 1.06 − .7 = .36em > .23em). */
.hero__title--bags { line-height: 1.06; }
.bag-letter { display: inline; white-space: nowrap; }
.bag-letter__svg { display: inline-block; height: .7em; width: auto; margin: 0 .035em; vertical-align: baseline; overflow: visible; }
.hl .bag-letter__svg { margin: 0 .06em 0 .02em; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero__lead { margin-top: 26px; max-width: 560px; font-size: 1.2rem; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chips li {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
    border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 75%, transparent);
    font: 600 .82rem/1.2 var(--font-text); letter-spacing: .02em; color: var(--muted);
}
.chips li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c2) 25%, transparent); }

.hero__visual { position: relative; }
/* Le haut de la photo dessine une ligne de crête */
.hero__media {
    margin: 0; position: relative; aspect-ratio: 4 / 4.7; overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    clip-path: polygon(0 13%, 9% 7%, 17% 10%, 29% 1.5%, 38% 7%, 47% 4%, 58% 11%, 68% 3%, 80% 9%, 90% 5%, 100% 10%, 100% 100%, 0 100%);
    box-shadow: var(--shadow-lg);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .28)); }

/* Dossard : toujours blanc, comme sur la ligne de départ */
.bib {
    position: absolute; left: -34px; bottom: 44px; width: 172px; padding: 0 0 14px; overflow: hidden;
    background-color: #fff; color: #11151c; border-radius: 10px; text-align: center; transform: rotate(-5deg);
    box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55);
    background-image:
        radial-gradient(circle at 12px 40px, #d6dbe3 0 3px, transparent 3.5px),
        radial-gradient(circle at calc(100% - 12px) 40px, #d6dbe3 0 3px, transparent 3.5px),
        radial-gradient(circle at 12px calc(100% - 12px), #d6dbe3 0 3px, transparent 3.5px),
        radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), #d6dbe3 0 3px, transparent 3.5px);
    animation: bib-float 6s ease-in-out infinite;
}
.bib__band { display: block; padding: 6px 0 5px; background: var(--l-c1); color: #fff; font: italic 800 .85rem/1 var(--font-display); letter-spacing: .22em; text-transform: uppercase; }
.bib__num { display: block; margin-top: 4px; font: 800 4.6rem/.95 var(--font-display); color: var(--l-c1); letter-spacing: -.02em; }
.bib__label { display: block; padding: 0 18px; font: 700 .78rem/1.2 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: #3a4250; }
@keyframes bib-float { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(-3.5deg) translateY(-8px); } }

.hero__stack {
    position: absolute; right: -18px; top: 22%; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero__stack-icons { display: grid; grid-template-columns: repeat(3, 34px); gap: 6px; }
.hero__stack-icons span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--c1-soft); color: var(--c1); }
.hero__stack-icons span:nth-child(3n + 2) { background: var(--c2-soft); }
.hero__stack-icons .icon { width: 18px; height: 18px; }
.hero__stack-text { font-size: .85rem; line-height: 1.3; color: var(--muted); }
.hero__stack-text strong { font: 800 1.35rem/1 var(--font-display); text-transform: uppercase; color: var(--text); }

.hero__ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(70px, 9vw, 140px); z-index: 0; }
.hero__ridge-back { fill: color-mix(in srgb, var(--c1) 16%, var(--bg)); }
.hero__ridge-front { fill: var(--bg); }

/* Entrée en scène du hero */
.js .hero__copy > * { animation: rise .9s var(--ease) both; }
.js .hero__copy > :nth-child(2) { animation-delay: .08s; }
.js .hero__copy > :nth-child(3) { animation-delay: .16s; }
.js .hero__copy > :nth-child(4) { animation-delay: .24s; }
.js .hero__copy > :nth-child(5) { animation-delay: .32s; }
.js .hero__media { animation: unveil 1.2s var(--ease) .1s both; }
.js .hero__stack { animation: rise .9s var(--ease) .6s both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { opacity: 0; transform: scale(1.04) translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Bandeau défilant ---------- */
.marquee {
    position: relative; z-index: 2; margin: -34px -3% 0; padding: 18px 0;
    background: var(--c1); color: var(--c1-ink); transform: rotate(-1.4deg); overflow: hidden;
    box-shadow: 0 20px 40px -24px color-mix(in srgb, var(--c1) 80%, #000);
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { list-style: none; display: flex; align-items: center; }
.marquee__list li {
    display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap;
    font: italic 800 clamp(1.4rem, 1rem + 1.5vw, 2.1rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em;
}
.marquee__list .icon { width: 26px; height: 26px; color: var(--c2); }
/* sac du logo entre les noms : corps et anse en accent, crête à la couleur du bandeau */
/* proportions du logo respectées (jamais de déformation) ; un peu plus grand que les capitales pour qu'il tienne sa place */
.marquee__mark { width: 1.35em; height: 1.35em; flex: none; margin-top: -.18em; }
.marquee .logo-mark__bag { fill: var(--c2); }
.marquee .logo-mark__handle { stroke: var(--c2); }
.marquee .logo-mark__trail { stroke: var(--c1); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 10vw, 132px) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: clamp(48px, 6vw, 80px) 0 clamp(80px, 9vw, 120px); }
.marquee + .section { padding-top: clamp(96px, 11vw, 150px); }

/* ---------- Médias : cartes « dossard » ---------- */
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.media-card {
    position: relative; display: flex; flex-direction: column; padding: 34px 30px 26px;
    background-color: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    /* les quatre trous d'épingle du dossard */
    background-image:
        radial-gradient(circle at 16px 16px, var(--bg) 0 3.5px, var(--line) 4px 5px, transparent 5.5px),
        radial-gradient(circle at calc(100% - 16px) 16px, var(--bg) 0 3.5px, var(--line) 4px 5px, transparent 5.5px),
        radial-gradient(circle at 16px calc(100% - 16px), var(--bg) 0 3.5px, var(--line) 4px 5px, transparent 5.5px),
        radial-gradient(circle at calc(100% - 16px) calc(100% - 16px), var(--bg) 0 3.5px, var(--line) 4px 5px, transparent 5.5px);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.media-card:hover, .media-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c1) 45%, var(--line)); }
.media-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.media-card__icon {
    display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px;
    background: var(--c1-soft); color: var(--c1); transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.media-card__icon .icon { width: 28px; height: 28px; }
.media-card:hover .media-card__icon { background: var(--c1); color: var(--c1-ink); transform: rotate(-6deg); }
/* Logo du média sur une pastille blanche (lisible en clair comme en sombre), à la place du picto */
.media-card__logo {
    display: flex; align-items: center; justify-content: center; width: 196px; height: 64px; max-width: calc(100% - 90px);
    padding: 10px 14px; border-radius: 16px; background: #FFFFFF; border: 1px solid var(--line); box-sizing: border-box;
    transition: transform .4s var(--ease), box-shadow .3s;
}
.media-card__logo img { display: block; max-height: 42px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.media-card:hover .media-card__logo { transform: rotate(-3deg); box-shadow: var(--shadow-sm); }
.media-card__num { font: 800 1.9rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1.2px color-mix(in srgb, var(--muted) 60%, transparent); letter-spacing: .02em; }
.media-card__cat {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px; padding: 4px 11px 4px 9px; border-radius: 999px;
    background: var(--c2-soft); font: 700 .78rem/1.3 var(--font-text); letter-spacing: .06em; text-transform: uppercase;
}
.media-card__cat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c2); }
.media-card__name { font: 800 2.1rem/1 var(--font-display); text-transform: uppercase; }
.media-card__link { text-decoration: none; }
.media-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.media-card__link:focus-visible { outline: none; }
.media-card:has(.media-card__link:focus-visible) { outline: 3px solid var(--c1); outline-offset: 3px; }
.media-card__desc { margin-top: 12px; color: var(--muted); font-size: 1rem; }
.media-card__domain {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 18px;
    border-top: 1.5px dashed var(--line); font-weight: 600; font-size: .95rem; color: var(--c1);
}
.media-card__desc + .media-card__domain { margin-top: 24px; }
.media-card__domain .icon { transition: transform .3s var(--ease); }
.media-card:hover .media-card__domain .icon { transform: translate(3px, -3px); }

.media-grid { list-style: none; }
.media-grid__item { display: flex; }
.media-grid__item > .media-card { flex: 1; }

/* ---------- Médias : carrousel latéral ---------- */
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head-row .section-head { margin-bottom: 0; }
.carousel__nav { display: flex; gap: 10px; margin-left: auto; }
.carousel__btn {
    display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border-radius: 50%; cursor: pointer;
    border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
    transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--ease), opacity .2s;
}
.carousel__btn:hover:not([disabled]) { background: var(--c1); border-color: var(--c1); color: var(--c1-ink); transform: scale(1.06); }
.carousel__btn[disabled] { opacity: .35; cursor: default; }
.carousel__btn .icon { width: 22px; height: 22px; }

.carousel { --edge: max(var(--gutter), calc((100% - var(--container)) / 2)); position: relative; }
.carousel__track {
    list-style: none; display: flex; gap: 24px; margin: 0;
    padding: 18px var(--edge) 34px; scroll-padding-inline: var(--edge);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 3px solid var(--c1); outline-offset: -3px; border-radius: var(--radius); }
.carousel__slide { flex: 0 0 clamp(280px, 30vw, 390px); display: flex; scroll-snap-align: start; }
.carousel__slide > .media-card { flex: 1; }
.carousel.is-dragging .carousel__track { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.carousel.is-dragging .media-card { pointer-events: none; }
.js .carousel__track { cursor: grab; }

.carousel__foot { display: flex; align-items: center; gap: 20px; }
.carousel__count { font: 700 1.05rem/1 var(--font-display); letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.carousel__count strong { color: var(--text); font-weight: 800; font-size: 1.4rem; }
.carousel__progress { position: relative; flex: 1; height: 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 16px); }
.carousel__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: var(--c1); transition: width .35s var(--ease); }
/* le coureur en tête de la barre */
.carousel__bar::after { content: ""; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--c2); border: 3px solid var(--bg); box-shadow: 0 0 0 1.5px var(--c1); }
.carousel__hint { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
html:not(.js) .carousel__nav, html:not(.js) .carousel__foot { display: none; }

/* ---------- Services : trace GPS en boucle ---------- */
.trail-map {
    position: relative; isolation: isolate; overflow: hidden; padding: clamp(14px, 2.4vw, 30px);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
/* fond de carte : courbes de niveau discrètes + quadrillage */
.trail-map::before {
    content: ""; position: absolute; inset: -6%; z-index: -1; background: var(--c1); opacity: calc(var(--topo-alpha) * .8);
    -webkit-mask: url("../img/topo.svg") center / cover no-repeat; mask: url("../img/topo.svg") center / cover no-repeat;
}
.trail-map::after {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 84px 84px;
    -webkit-mask: radial-gradient(ellipse at center, #000 30%, transparent 78%); mask: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}
.trail-map__canvas { position: relative; aspect-ratio: 1000 / 720; }
.trail-map__svg--tall { display: none; }
.trail-map__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trail-map__halo { fill: none; stroke: var(--c1); stroke-opacity: .16; stroke-width: 24; stroke-linejoin: round; }
.trail-map__line { fill: none; stroke: var(--c1); stroke-width: 8; stroke-linejoin: round; stroke-linecap: round; }
.trail-map__arrow { fill: none; stroke: var(--c1-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transform-box: fill-box; }
/* le groupe est centré sur le point : on le grossit sur les petits écrans, où la carte est réduite */
.trail-map__runner-body { --runner-scale: 1; transform: scale(var(--runner-scale)); }
.trail-map__runner-dot { fill: var(--c2); stroke: var(--surface); stroke-width: 4.5; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.trail-map__runner-pulse { fill: var(--c2); opacity: .35; transform-box: fill-box; transform-origin: center; animation: gps-pulse 1.8s ease-out infinite; }
@keyframes gps-pulse { from { transform: scale(.4); opacity: .55; } to { transform: scale(1.5); opacity: 0; } }

.trail-map__chip {
    position: absolute; left: 0; top: 0; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--muted); box-shadow: var(--shadow-sm);
}
.trail-map__chip .icon { color: var(--c1); }
.trail-map__compass { position: absolute; right: 0; bottom: 0; z-index: 1; color: var(--muted); opacity: .55; transform: rotate(-14deg); }
.trail-map__compass .icon { width: 46px; height: 46px; stroke-width: 1.2; }

/* points de passage */
.trail-map__points { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 2; }
.waypoint { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.waypoint__btn { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: block; padding: 0; border: 0; background: none; cursor: pointer; }
.waypoint__marker {
    position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
    background: var(--surface); color: var(--c1); border: 3px solid var(--c1); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .45);
    transition: transform .3s var(--ease), background-color .3s, color .3s, box-shadow .3s;
}
.waypoint__marker .icon { width: 22px; height: 22px; }
.waypoint__num {
    position: absolute; top: -7px; right: -9px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px;
    background: var(--c2); color: var(--c2-ink); border: 2px solid var(--surface); font: 800 .78rem/18px var(--font-display); text-align: center;
}
.waypoint__btn:hover .waypoint__marker { transform: scale(1.08); }
.waypoint.is-active .waypoint__marker { background: var(--c1); color: var(--c1-ink); transform: scale(1.14); box-shadow: 0 0 0 9px color-mix(in srgb, var(--c1) 20%, transparent), 0 10px 22px -8px rgba(0, 0, 0, .5); }
.waypoint__btn:focus-visible { outline: none; }
.waypoint__btn:focus-visible .waypoint__marker { outline: 3px solid var(--c2); outline-offset: 4px; }
.waypoint__label {
    position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 6px 12px; border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    font: 700 .98rem/1.1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; color: var(--text);
    transition: background-color .3s, color .3s, border-color .3s;
}
.waypoint--above .waypoint__label { bottom: calc(100% + 12px); }
.waypoint--below .waypoint__label { top: calc(100% + 12px); }
.waypoint--start .waypoint__label { left: -8px; transform: none; }
.waypoint--end .waypoint__label { left: auto; right: -8px; transform: none; }
.waypoint.is-active .waypoint__label { background: var(--c1); border-color: var(--c1); color: var(--c1-ink); }

/* détail du service actif, au centre de la boucle */
.trail-map__details { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); width: min(430px, 40%); display: grid; }
.waypoint-card {
    grid-area: 1 / 1; padding: 26px 28px 24px; border-radius: 20px; border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s;
}
.waypoint-card.is-active { opacity: 1; visibility: visible; transform: none; }
.waypoint-card__icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 14px; border-radius: 15px; background: var(--c1-soft); color: var(--c1); }
.waypoint-card__icon .icon { width: 24px; height: 24px; }
.waypoint-card__kicker { font: 700 .82rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--c1); }
.waypoint-card__title { margin: 8px 0 10px; font: 800 1.85rem/1 var(--font-display); text-transform: uppercase; }
.waypoint-card .prose { color: var(--muted); font-size: .98rem; }
.trail-map__controls { grid-area: 2 / 1; display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.trail-map__ctrl {
    display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; cursor: pointer;
    border: 1.5px solid var(--line); background: var(--surface); color: var(--text); transition: background-color .2s, color .2s, border-color .2s;
}
.trail-map__ctrl:hover { background: var(--c1); border-color: var(--c1); color: var(--c1-ink); }
.trail-map__ctrl .icon { width: 18px; height: 18px; }
.trail-map__ctrl .icon--play { display: none; }
.trail-map.is-paused .trail-map__ctrl .icon--play { display: block; }
.trail-map.is-paused .trail-map__ctrl .icon--pause { display: none; }

/* sans JavaScript : tous les services listés sous la carte */
html:not(.js) .trail-map__details { position: static; transform: none; width: auto; margin-top: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
html:not(.js) .waypoint-card { grid-area: auto; opacity: 1; visibility: visible; transform: none; }
html:not(.js) .trail-map__controls, html:not(.js) .trail-map__runner { display: none; }

/* ---------- Chiffres ---------- */
.stats { position: relative; isolation: isolate; overflow: hidden; padding: clamp(52px, 7vw, 100px) 0; color: #fff; }
.stats .section-head { margin-bottom: clamp(24px, 3.5vw, 44px); }
.stats .section-title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); }
.stats__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.stats__shade {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(115deg, color-mix(in srgb, var(--l-c1) 82%, #000) 0%, color-mix(in srgb, var(--l-c1) 40%, #000) 100%);
    opacity: .9;
}
.stats .kicker { color: var(--d-c2); }
/* sur la photo teintée, le sac passe en blanc pour rester lisible, la crête reprend la couleur principale */
.stats .kicker::before { background: #FFFFFF; }
.stats .kicker::after { background: var(--l-c1); }
.stats .section-title { color: #fff; }
.stats .hl { color: var(--d-c2); background: none; }
.stats__grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 6px clamp(14px, 2.2vw, 28px); text-align: center; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .22); }
.stat__value { font: 800 clamp(2.6rem, 1.8rem + 3vw, 4.6rem)/.9 var(--font-display); letter-spacing: -.01em; }
.stat__label { font-size: .98rem; line-height: 1.35; color: rgba(255, 255, 255, .82); }

/* ---------- Méthode : profil de course ---------- */
.profile__chart { position: relative; height: clamp(150px, 18vw, 230px); margin-top: 84px; }
.profile__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.profile__area { stroke: none; }
.profile__stop-top { stop-color: var(--c1); stop-opacity: .26; }
.profile__stop-bottom { stop-color: var(--c1); stop-opacity: 0; }
.profile__line { fill: none; stroke: var(--c1); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.profile__chart::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px); }
.js .profile .profile__svg { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s var(--ease) .1s; }
.js .profile.is-visible .profile__svg { clip-path: inset(0 0 0 0); }

.profile__pin { position: absolute; left: var(--x); top: var(--y); bottom: 0; width: 0; border-left: 2px dashed color-mix(in srgb, var(--c1) 50%, transparent); }
.profile__pin::before {
    content: ""; position: absolute; left: -10px; top: -9px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--surface); border: 4px solid var(--c1); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c1) 18%, transparent);
}
.profile__flag {
    position: absolute; left: 0; bottom: calc(100% + 22px); transform: translateX(-50%); padding: 5px 11px; border-radius: 7px;
    background: var(--c2); color: var(--c2-ink); white-space: nowrap; font: italic 800 1rem/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase;
}
.profile__flag::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--c2); }
.js .profile .profile__pin { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease) var(--delay), transform .5s var(--ease) var(--delay); }
.js .profile.is-visible .profile__pin { opacity: 1; transform: none; }

.profile__steps { list-style: none; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 28px; padding-top: 34px; text-align: center; }
.step__marker { display: none; }
.step__title { font: 700 1.6rem/1.05 var(--font-display); text-transform: uppercase; margin-bottom: 10px; }
.step .prose { color: var(--muted); font-size: .98rem; max-width: 280px; margin-inline: auto; }

/* ---------- L'agence ---------- */
.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about__media { position: relative; margin: 0; }
.about__media::before { content: ""; position: absolute; inset: 0; transform: translate(18px, 18px); border: 2px solid var(--c2); border-radius: var(--radius-lg); }
.about__media img { position: relative; width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 60%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about__tag {
    position: absolute; left: -22px; bottom: 32px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px;
    background: var(--surface); border-radius: 999px; box-shadow: var(--shadow);
    font: 700 1.05rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em;
}
.about__tag .icon { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--c1); color: var(--c1-ink); box-sizing: border-box; }
.about__copy .section-head { margin-bottom: 26px; }
.about__copy .prose { color: var(--muted); }
.checklist { list-style: none; display: grid; gap: 14px; margin-top: 30px; }
.checklist li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.checklist .icon { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--c2); color: var(--c2-ink); box-sizing: border-box; stroke-width: 3; }

/* ---------- Appel à l'action ---------- */
.cta-wrap { padding: clamp(24px, 4vw, 40px) 0 0; }
.cta {
    position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 32px;
    padding: clamp(40px, 6vw, 80px); border-radius: var(--radius-lg); background: var(--c1); color: var(--c1-ink);
    box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--c1) 80%, #000);
}
.cta__topo { inset: 0; background: currentColor; opacity: .14; }
.cta__copy { max-width: 680px; }
.cta__title { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem); }
.cta .hl { color: inherit; background: linear-gradient(transparent 66%, var(--c2) 66% 90%, transparent 90%); }
.cta__text { margin-top: 16px; font-size: 1.15rem; opacity: .88; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact__info .section-head { margin-bottom: 32px; }
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list__icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 16px; background: var(--c1-soft); color: var(--c1); }
.contact-list small { display: block; font: 700 .75rem/1.4 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list span > :not(small) { font-weight: 600; }
.contact-list li > span:last-child { font-size: 1.1rem; font-weight: 600; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--c1); }

.socials { list-style: none; display: flex; gap: 10px; margin-top: 24px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .8; transition: opacity .2s, background-color .2s, color .2s, border-color .2s; }
.socials a:hover { opacity: 1; background: var(--c2); color: var(--c2-ink); border-color: var(--c2); }
.socials .icon { width: 19px; height: 19px; }
.socials--contact { margin-top: 32px; }

.contact-form { padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c1) 20%, transparent); }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.contact-form__note { font-size: .85rem; color: var(--muted); max-width: 280px; }
.contact-form button[disabled] { opacity: .6; pointer-events: none; }
.form-status { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.form-status--ok { background: var(--c1-soft); color: var(--c1); }
.form-status--error { background: color-mix(in srgb, #e5484d 14%, var(--surface)); color: #c62f35; }
:root[data-theme="dark"] .form-status--error { color: #ff8589; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-status--error { color: #ff8589; } }

/* ---------- Pied de page ---------- */
.site-footer {
    --c1: var(--d-c1); --c1-ink: var(--d-c1-ink); --c2: var(--d-c2); --c2-ink: var(--d-c2-ink); --text: #ECF0F6; --muted: rgba(236, 240, 246, .66); --line: rgba(255, 255, 255, .12);
    position: relative; margin-top: clamp(90px, 10vw, 140px); padding: clamp(40px, 6vw, 72px) 0 28px; background: var(--footer); color: var(--text);
}
.site-footer__ridge { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: clamp(40px, 6vw, 90px); fill: var(--footer); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; }
.site-footer .logo { color: var(--text); }
.site-footer__baseline { margin: 14px 0 12px; font: 700 .9rem/1.3 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--c2); }
.site-footer .prose { color: var(--muted); max-width: 360px; }
.site-footer__title { margin-bottom: 16px; font: 700 1.05rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.site-footer__col ul { list-style: none; display: grid; gap: 10px; }
.site-footer__col a { color: var(--muted); text-decoration: none; transition: color .2s; }
.site-footer__col a:hover { color: var(--c2); }
.site-footer__contact li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.site-footer__contact .icon { color: var(--c1); }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.site-footer__links { display: flex; align-items: center; gap: 18px; }
.site-footer__links a { color: inherit; }
.site-footer__links a:hover { color: var(--c2); }
.site-footer .theme-toggle { background: transparent; }
.site-footer .socials { color: var(--text); }

/* ---------- Page intérieure ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + 64px) 0 56px; background: var(--bg-alt); }
.page-hero .hero__topo { inset: -20% -10% -20% 40%; }
.page-hero__title { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); }

/* ---------- Sélecteur de maquette ---------- */
.palette-switcher {
    position: fixed; left: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 8px;
    padding: 6px 8px 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.palette-switcher__label { display: inline-flex; align-items: center; gap: 6px; margin-right: 2px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.palette-switcher__dot {
    width: 28px; height: 28px; padding: 0; border-radius: 50%; cursor: pointer; border: 3px solid var(--surface);
    background: linear-gradient(135deg, var(--dot-1) 0 55%, var(--dot-2) 55% 100%); box-shadow: 0 0 0 1.5px var(--line); transition: transform .2s var(--ease), box-shadow .2s;
}
.palette-switcher__dot:hover { transform: scale(1.12); }
.palette-switcher__dot[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--text); }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--delay, 0ms), transform .8s var(--ease) var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* marque sur toute la largeur, puis Nos médias / L'agence / Contact sur 3 colonnes */
    .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
    .site-footer__brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 28px; align-items: center; }
    .site-footer__brand .logo { grid-row: span 2; }
    .site-footer__brand .site-footer__baseline { margin: 0; }
    .site-footer__brand .prose { max-width: none; }
    .site-footer__brand .socials { grid-column: 1 / -1; margin-top: 8px; }
    .waypoint__label { font-size: .8rem; padding: 4px 9px; }
    .waypoint__marker { width: 44px; height: 44px; }
    .waypoint__marker .icon { width: 19px; height: 19px; }
    .trail-map__details { width: min(360px, 44%); }
    .waypoint-card { padding: 20px 22px; }
    .waypoint-card__title { font-size: 1.5rem; }
    .waypoint-card .prose { font-size: .92rem; }
}

/* Carte des services en mode compact : la carte reste, le détail passe dessous */
@media (max-width: 860px) {
    .waypoint__label, .trail-map__compass { display: none; }
    .waypoint__marker { width: 38px; height: 38px; border-width: 2.5px; }
    .waypoint__marker .icon { width: 17px; height: 17px; }
    .waypoint__num { min-width: 18px; height: 18px; font-size: .68rem; line-height: 14px; top: -6px; right: -7px; }
    .waypoint.is-active .waypoint__marker { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c1) 22%, transparent); }
    .trail-map__chip { font-size: .74rem; padding: 5px 10px 5px 8px; }
    .trail-map__details { position: static; transform: none; width: auto; margin-top: 18px; }
    .trail-map__runner-body { --runner-scale: 1.6; }
    .waypoint-card { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); box-shadow: none; }
}

@media (max-width: 960px) {
    .nav-toggle { display: inline-grid; }
    .site-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 24px;
        padding: 24px var(--gutter) 32px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
    }
    .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
    .site-nav__list { flex-direction: column; gap: 0; }
    .site-nav__list a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font: 800 1.7rem/1 var(--font-display); text-transform: uppercase; }
    .site-nav__list a:hover { background: none; }
    .site-nav__list a[aria-current="true"]::after { left: auto; right: 6px; top: 50%; bottom: auto; margin-top: -3px; }
    .site-header__tools { margin-left: auto; }

    .hero__grid { grid-template-columns: 1fr; }
    .hero__visual { max-width: 560px; width: 100%; margin: 12px auto 0; }
    .hero__media { aspect-ratio: 4 / 3.6; }
    .about, .contact { grid-template-columns: 1fr; }
    .about__media { max-width: 560px; }
    /* 2 × 2 : une croix de filets sépare les quatre chiffres */
    .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; margin-inline: auto; }
    .stat { padding: 18px 12px; }
    .stat + .stat { border-left: 0; }
    .stat:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .22); }
    .stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .22); }
}

@media (max-width: 760px) {
    .profile__chart { margin-top: 64px; }
    .profile__flag { font-size: .82rem; padding: 4px 7px; bottom: calc(100% + 18px); }
    .profile__steps { grid-template-columns: 1fr; gap: 0; text-align: left; padding-top: 24px; }
    .step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px 0; border-bottom: 1px dashed var(--line); }
    .step > :not(.step__marker) { grid-column: 2; }
    .step__marker {
        display: inline-block; grid-row: 1 / span 2; align-self: start; padding: 5px 9px; border-radius: 7px;
        background: var(--c2); color: var(--c2-ink); font: italic 800 .9rem/1 var(--font-display); text-transform: uppercase; white-space: nowrap;
    }
    .step .prose { margin: 0; max-width: none; }
}

@media (max-width: 640px) {
    body { font-size: 1rem; }
    .logo__word { font-size: 1.5rem; }
    .logo-mark { width: 34px; height: 34px; }
    .logo-full { height: 34px; }
    .media-grid { grid-template-columns: 1fr; }
    .trail-map { padding: 12px; }
    .trail-map__canvas { margin-top: 34px; }
    .trail-map__chip { top: -34px; }
    /* mobile : carte verticale, la fiche du service passe au centre de la boucle */
    .trail-map__canvas { aspect-ratio: 600 / 900; }
    .trail-map__svg--wide { display: none; }
    .trail-map__svg--tall { display: block; }
    .waypoint { left: var(--mx); top: var(--my); }
    .waypoint__marker { width: 32px; height: 32px; border-width: 2px; }
    .waypoint__marker .icon { width: 14px; height: 14px; }
    .waypoint__num { min-width: 16px; height: 16px; font-size: .62rem; line-height: 12px; top: -6px; right: -7px; padding: 0 3px; }
    .waypoint.is-active .waypoint__marker { transform: scale(1.1); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c1) 22%, transparent); }
    .trail-map__runner-body { --runner-scale: 1.2; }
    .js .trail-map__details { position: absolute; left: 50%; top: calc(50% + 17px); transform: translate(-50%, -50%); width: 53%; margin-top: 0; }
    .js .waypoint-card { padding: 14px 14px 12px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 90%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: var(--shadow-sm); }
    .waypoint-card__icon { display: none; }
    .waypoint-card__kicker { font-size: .66rem; letter-spacing: .1em; }
    .waypoint-card__title { margin: 6px 0 6px; font-size: 1.12rem; }
    .waypoint-card .prose { font-size: .8rem; line-height: 1.42; }
    .trail-map__controls { margin-top: 8px; gap: 6px; }
    .trail-map__ctrl { width: 34px; height: 34px; }
    .trail-map__ctrl .icon { width: 15px; height: 15px; }
    .carousel__slide { flex-basis: 84%; }
    .carousel__track { gap: 16px; }
    .carousel__btn { width: 46px; height: 46px; }
    .carousel__hint { display: none; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .hero__lead { font-size: 1.08rem; }
    .hero__actions .btn { flex: 1 1 auto; }
    .bib { left: -6px; bottom: 18px; width: 132px; }
    .bib__num { font-size: 3.4rem; }
    .hero__stack { right: -4px; top: auto; bottom: -26px; padding: 10px 12px; }
    .hero__stack-icons { grid-template-columns: repeat(3, 28px); }
    .hero__stack-icons span { width: 28px; height: 28px; }
    .about__tag { left: 10px; bottom: 16px; }
    .about__media::before { transform: translate(10px, 10px); }
    .stat { padding: 14px 8px; gap: 6px; }
    .stat__value { font-size: 2.4rem; }
    .stat__label { font-size: .84rem; }
    /* pied de page compact : marque en tête, puis 3 colonnes serrées */
    .site-footer { padding: 28px 0 18px; margin-top: 70px; }
    .site-footer__grid { gap: 22px 14px; }
    .site-footer__brand { grid-template-columns: 1fr; gap: 6px; }
    .site-footer__brand .logo { grid-row: auto; }
    .site-footer .logo-full { height: 34px; }
    .site-footer__baseline { font-size: .74rem; letter-spacing: .12em; }
    .site-footer__brand .prose { font-size: .84rem; line-height: 1.45; }
    .site-footer__brand .socials { margin-top: 4px; }
    .site-footer__title { margin-bottom: 10px; font-size: .8rem; letter-spacing: .1em; }
    .site-footer__col ul { gap: 7px; }
    .site-footer__col li { font-size: .84rem; line-height: 1.25; overflow-wrap: anywhere; }
    .site-footer__contact li { gap: 6px; align-items: flex-start; }
    .site-footer__contact .icon { width: 1em; height: 1em; margin-top: .12em; }
    .site-footer__bottom { margin-top: 24px; padding-top: 14px; font-size: .78rem; gap: 8px; flex-wrap: nowrap; }
    .site-footer__links a { display: none; } /* déjà dans la colonne « L'agence » */
    .site-footer__links { gap: 12px; }
    .site-footer .theme-toggle { width: 34px; height: 34px; }
    .palette-switcher__label span, .palette-switcher__label { font-size: 0; gap: 0; }
    .palette-switcher__label .icon { font-size: 1rem; }
    .contact-form__foot .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
    .marquee__track { animation: none; }
    .carousel__track { scroll-behavior: auto; }
}
