/* ÔHÔYÔFOU — site public
   Direction : « Lagune & pagne ». Bleu-vert profond des murs du centre de santé, vert du logo,
   jaune soleil et orange des pagnes wax. Le motif wax est l'unique élément décoratif fort. */

:root {
  --lagoon: #0E3B43;
  --lagoon-2: #164F59;
  --leaf: #1F7A4D;
  --leaf-dark: #155C39;
  --sun: #F2B33D;
  --sun-dark: #D99A22;
  --clay: #E9731E;
  --sky: #E6F1EE;
  --paper: #FFFFFF;
  --text: #13292D;
  --muted: #4E6468;
  --line: #D3E2DE;
  --display: 'Bricolage Grotesque', 'Avenir Next', system-ui, sans-serif;
  --body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-sm: 4px;
  --radius: 12px;
  --shadow: 0 18px 40px -24px rgba(14, 59, 67, .45);
  --wax: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Crect width='56' height='56' fill='%230E3B43'/%3E%3Ccircle cx='28' cy='28' r='14' fill='%23F2B33D'/%3E%3Ccircle cx='28' cy='28' r='7.5' fill='%23E9731E'/%3E%3Ccircle cx='28' cy='28' r='2.5' fill='%230E3B43'/%3E%3Cpath d='M0 0h14A14 14 0 0 1 0 14zM56 0v14A14 14 0 0 1 42 0zM0 56V42a14 14 0 0 1 14 14zM56 56H42a14 14 0 0 1 14-14z' fill='%231F7A4D'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.68 var(--body); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-dark); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--leaf); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--lagoon); font-variation-settings: 'opsz' 96; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; line-height: 1.2; font-variation-settings: 'opsz' 24; }
p { margin: 0 0 1em; }
.i { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--sun); color: var(--lagoon); padding: .6em 1em; border-radius: 999px; }
.skip:focus { left: 8px; }

/* ---------- Boutons ---------- */
.btn { --bg: var(--leaf); --fg: #fff; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .78em 1.35em; border: 2px solid var(--bg); border-radius: 999px; background: var(--bg); color: var(--fg); font: 650 .98rem/1.1 var(--display); text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .2s, border-color .2s, color .2s; }
.btn:hover { color: var(--fg); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--sun { --bg: var(--sun); --fg: var(--lagoon); }
.btn--sun:hover { --bg: #F6C35E; }
.btn--leaf:hover { --bg: var(--leaf-dark); }
.btn--ghost { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { --bg: rgba(255,255,255,.12); border-color: #fff; }
.btn--line { --bg: transparent; --fg: var(--lagoon); border-color: var(--lagoon); }
.btn--line:hover { --bg: var(--lagoon); --fg: #fff; }
.btn--lg { padding: .95em 1.6em; font-size: 1.05rem; }
.btn--small { padding: .45em .9em; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.link { font: 650 1rem/1.3 var(--display); color: var(--leaf-dark); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: .3em; }
.link--light { color: #fff; }
.link--back { display: inline-block; margin: 0 0 clamp(48px, 7vw, 96px); }

/* ---------- En-tête ---------- */
.masthead { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: background-color .3s, border-color .3s; }
.masthead__bar { display: flex; align-items: center; gap: 20px; width: min(100% - 2 * var(--gutter), 1400px); margin-inline: auto; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--lagoon); flex: none; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.brand__text { display: grid; line-height: 1.05; }
.brand__text strong { font: 800 1.2rem/1 var(--display); letter-spacing: .01em; }
.brand__text small { font: 500 .74rem/1.3 var(--display); color: var(--leaf); margin-top: 3px; }
.mainnav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.mainnav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mainnav ul a { display: block; padding: .5em .7em; font: 560 .95rem/1 var(--display); color: var(--lagoon); text-decoration: none; border-radius: 999px; transition: background-color .2s; }
.mainnav ul a:hover { background: var(--sky); }
.mainnav ul a[aria-current='page'] { box-shadow: inset 0 -3px 0 var(--sun); border-radius: 0; }
.mainnav__extra { display: flex; align-items: center; gap: 10px; }
.mainnav__account { display: inline-flex; align-items: center; gap: .4em; font: 560 .9rem/1 var(--display); color: var(--lagoon); text-decoration: none; padding: .55em .8em; border-radius: 999px; border: 1px solid var(--line); }
.mainnav__account:hover { border-color: var(--lagoon); }
.masthead__don, .burger { display: none; }

/* Accueil : en-tête transparent sur la photo */
.is-home .masthead:not(.is-solid) { background: transparent; border-color: transparent; backdrop-filter: none; }
.is-home .masthead:not(.is-solid) .brand, .is-home .masthead:not(.is-solid) .mainnav ul a, .is-home .masthead:not(.is-solid) .mainnav__account { color: #fff; }
.is-home .masthead:not(.is-solid) .brand__text small { color: var(--sun); }
.is-home .masthead:not(.is-solid) .mainnav ul a:hover { background: rgba(255,255,255,.14); }
.is-home .masthead:not(.is-solid) .mainnav__account { border-color: rgba(255,255,255,.5); }
.is-home .masthead { position: fixed; inset: 0 0 auto 0; }

@media (max-width: 1180px) {
  .mainnav ul a { padding: .5em .5em; font-size: .9rem; }
  .mainnav__account span { display: none; }
}
@media (max-width: 1020px) {
  .masthead__bar { min-height: 66px; gap: 10px; }
  .brand img { width: 42px; height: 42px; }
  .masthead__don { display: inline-flex; margin-left: auto; padding: .6em 1em; font-size: .9rem; }
  .burger { display: grid; place-content: center; gap: 6px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--sky); cursor: pointer; flex: none; }
  .burger span { width: 20px; height: 2px; background: var(--lagoon); border-radius: 2px; transition: transform .25s; }
  .burger[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .is-home .masthead:not(.is-solid) .burger { background: rgba(255,255,255,.18); }
  .is-home .masthead:not(.is-solid) .burger span { background: #fff; }
  .mainnav { position: fixed; inset: 66px 0 0 0; background: var(--lagoon); flex-direction: column; align-items: stretch; justify-content: space-between; padding: 24px var(--gutter) calc(28px + env(safe-area-inset-bottom)); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility 0s .25s; margin: 0; }
  .mainnav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
  .mainnav ul { flex-direction: column; gap: 0; }
  .mainnav ul a, .is-home .masthead .mainnav ul a { color: #fff; font-size: 1.6rem; font-weight: 650; padding: .45em 0; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .mainnav ul a[aria-current='page'] { box-shadow: none; color: var(--sun); }
  .mainnav ul a:hover { background: transparent; color: var(--sun); }
  .mainnav__extra { flex-direction: column; align-items: stretch; margin-top: 28px; }
  .mainnav__extra .btn { padding: 1em; font-size: 1.05rem; }
  .mainnav__account, .is-home .masthead .mainnav__account { color: #fff; border-color: rgba(255,255,255,.35); justify-content: center; padding: 1em; font-size: 1rem; }
  .mainnav__account span { display: inline; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 420px) { .brand__text small { display: none; } .masthead__don { padding: .55em .85em; font-size: .85rem; } }

/* ---------- Motif wax ---------- */
.fabric { height: 14px; background: var(--wax) 0 0 / 28px 28px repeat-x; }
.fabric--vertical { position: absolute; top: 0; bottom: 0; right: 0; width: 28px; height: auto; background-size: 28px 28px; background-repeat: repeat-y; z-index: 2; }

/* ---------- Héros d'accueil ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--lagoon); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; animation: heroZoom 16s ease-out both; }
.hero__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,59,67,.55) 0%, rgba(14,59,67,.1) 30%, rgba(14,59,67,.35) 55%, rgba(10,40,46,.94) 100%), linear-gradient(90deg, rgba(14,59,67,.65), transparent 70%); }
.hero__content { padding: 150px 0 clamp(48px, 8vh, 96px); padding-right: 40px; }
.hero__eyebrow { font: 600 1rem/1.3 var(--display); color: var(--sun); margin-bottom: 18px; }
.hero__title { color: #fff; max-width: 13ch; font-size: clamp(2.7rem, 7.4vw, 6.4rem); line-height: .98; letter-spacing: -.045em; margin-bottom: 28px; }
.hero__text { max-width: 54ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.92); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 22px; }
.hero__note { font: 500 .92rem/1.4 var(--display); color: rgba(255,255,255,.75); margin: 0; }
.hero__title, .hero__eyebrow, .hero__text, .hero__actions, .hero__note { animation: heroIn .9s cubic-bezier(.2,.7,.2,1) both; }
.hero__eyebrow { animation-delay: .1s; } .hero__title { animation-delay: .2s; } .hero__text { animation-delay: .45s; } .hero__actions { animation-delay: .6s; } .hero__note { animation-delay: .75s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@media (max-width: 760px) { .hero { min-height: 92svh; } .hero__content { padding-top: 120px; } .fabric--vertical { width: 14px; background-size: 14px 14px; } .hero__actions .btn { flex: 1 1 100%; } }

/* ---------- Manifeste ---------- */
.manifesto { background: var(--lagoon); color: #fff; padding: clamp(56px, 9vw, 120px) 0; }
.manifesto__inner p { font: 500 clamp(1.4rem, 2.8vw, 2.25rem)/1.32 var(--display); letter-spacing: -.015em; max-width: 34ch; margin: 0; text-wrap: pretty; }
.manifesto__inner p::first-line { color: var(--sun); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section--flush { padding-top: 0; }
.section--sky { background: var(--sky); }
.section--ink { background: var(--lagoon); color: #fff; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head h2 { margin: 0; max-width: 22ch; }
.lead { font-size: 1.2rem; color: var(--muted); }
.mt { margin-top: 56px; }

/* Domaines */
.domains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.domains li { padding: 28px 24px 8px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.domains li:last-child { border-right: 0; margin-right: 0; }
.domains li::before { content: ''; display: block; width: 38px; height: 38px; margin-bottom: 20px; background: var(--wax) center / 38px 38px; border-radius: 50%; }
.domains h3 { font-size: 1.2rem; }
.domains p { color: var(--muted); font-size: 1rem; }
@media (max-width: 1020px) { .domains { grid-template-columns: repeat(2, 1fr); } .domains li { border-right: 0; margin: 0; padding-right: 24px; border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .domains { grid-template-columns: 1fr; } .domains li { display: grid; grid-template-columns: 38px 1fr; column-gap: 16px; padding: 22px 0 10px; } .domains li::before { grid-row: span 2; margin: 0; } }

/* Récits (activités) */
.stories { display: grid; gap: clamp(20px, 3vw, 36px); }
.stories--three { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.stories--two { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.stories--feature { grid-template-columns: 1.5fr 1fr; grid-template-rows: auto auto; }
.stories--feature .story--large { grid-row: span 2; }
@media (max-width: 860px) { .stories--feature { grid-template-columns: 1fr; } .stories--feature .story--large { grid-row: auto; } }
.story__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.story__media { overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 3 / 2; background: var(--sky); }
.story--large .story__media { aspect-ratio: 4 / 3; }
.story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.story__link:hover .story__media img { transform: scale(1.04); }
.story__body { padding: 18px 0 0; }
.story__body h3 { margin: 10px 0 8px; font-size: 1.35rem; transition: color .2s; }
.story--large .story__body h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.story__link:hover h3 { color: var(--leaf); }
.story__meta { font: 500 .9rem/1.4 var(--display); color: var(--muted); margin-bottom: 8px; }
.story__body p:last-child { color: var(--muted); margin: 0; }
.story--plain .story__link { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); border-top: 6px solid var(--leaf); }
.story--plain .story__body { padding: 0; }
.section--sky .story--plain .story__link { border-color: transparent; border-top-color: var(--leaf); }
.tag { display: inline-block; font: 650 .78rem/1 var(--display); padding: .45em .8em; border-radius: 999px; background: var(--sky); color: var(--lagoon); }
.tag--a_venir, .tag--confirmee { background: var(--sun); color: var(--lagoon); }
.tag--realisee { background: #DCEFE3; color: var(--leaf-dark); }
.tag--en_preparation, .tag--en_attente { background: #FBE6D4; color: #8A3F0B; }
.tag--annulee { background: #EEE; color: #555; }

/* Frise */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline__item { display: grid; grid-template-columns: 150px 1fr; gap: 0 48px; padding-bottom: 48px; position: relative; }
.timeline__item::before { content: ''; position: absolute; left: 144px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px var(--paper); }
.timeline time, .timeline__nodate { font: 700 1rem/1.3 var(--display); color: var(--lagoon); padding-right: 24px; }
.timeline__nodate { color: var(--muted); font-weight: 500; }
.timeline .story { max-width: 760px; }
.timeline .story__media { aspect-ratio: 16 / 9; }
@media (max-width: 700px) {
  .timeline::before { left: 6px; }
  .timeline__item { grid-template-columns: 1fr; padding-left: 32px; }
  .timeline__item::before { left: 0; }
  .timeline time, .timeline__nodate { margin-bottom: 12px; }
}

/* Mur de photos */
.wall { columns: 4 240px; column-gap: 14px; }
.wall__item { break-inside: avoid; margin: 0 0 14px; }
.wall__item a { display: block; overflow: hidden; border-radius: var(--radius-sm); background: rgba(127,127,127,.1); cursor: zoom-in; }
.wall__item img { width: 100%; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.wall__item a:hover img { transform: scale(1.03); }
.wall__item figcaption { font: 500 .85rem/1.35 var(--display); color: var(--muted); padding: 8px 2px 0; }
.section--ink .wall__item figcaption { color: rgba(255,255,255,.7); }
@media (max-width: 560px) { .wall { columns: 2; column-gap: 8px; } .wall__item { margin-bottom: 8px; } .wall__item figcaption { display: none; } }

/* Vidéos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 36px 28px; }
.video__frame { position: relative; aspect-ratio: 16 / 9; background: #071E22; border-radius: var(--radius-sm); overflow: hidden; }
.video__frame video, .video__frame iframe, .embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #071E22; }
.embed { padding: 0; cursor: pointer; display: grid; place-items: center; }
.embed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .5s; }
.embed:hover img { opacity: 1; transform: scale(1.02); }
.embed__play { position: relative; width: 76px; height: 76px; border-radius: 50%; background: var(--sun); color: var(--lagoon); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s; }
.embed__play .i { width: 30px; height: 30px; fill: currentColor; stroke: none; margin-left: 4px; }
.embed:hover .embed__play { transform: scale(1.08); }
.video__body { padding-top: 14px; }
.video__body h3 { margin-bottom: 6px; }
.video__body p { color: var(--muted); font-size: .98rem; margin: 0; }

/* Mises en page */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split--form { grid-template-columns: 1fr 1.05fr; }
.split--video { grid-template-columns: 1fr 1.6fr; align-items: center; }
@media (max-width: 900px) { .split, .split--form, .split--video { grid-template-columns: 1fr; } }
.prose { max-width: 68ch; }
.prose p { font-size: 1.1rem; }
.prose h2 { margin-top: 0; }
.note { font-size: .98rem; color: var(--muted); border-left: 3px solid var(--sun); padding-left: 16px; }
.framed { margin: 0; }
.framed img { border-radius: var(--radius-sm); width: 100%; }
.framed figcaption { font: 500 .9rem var(--display); color: var(--muted); margin-top: 10px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.duo__item p { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.55; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; margin: 0; border-top: 2px solid var(--lagoon); }
.values div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.values dt { font: 700 1.4rem/1.2 var(--display); color: var(--lagoon); margin-bottom: 8px; }
.values dd { margin: 0; color: var(--muted); }
.panel { background: var(--sky); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; padding: 28px 32px; border-radius: var(--radius); background: var(--sky); }
.banner p { margin: 0; font: 600 1.2rem/1.35 var(--display); color: var(--lagoon); }

/* Engagements */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chips a { font: 560 .92rem/1 var(--display); padding: .65em 1.05em; border-radius: 999px; border: 1px solid var(--line); color: var(--lagoon); text-decoration: none; background: var(--paper); transition: border-color .2s, background-color .2s; }
.chips a:hover { border-color: var(--lagoon); }
.chips a[aria-current] { background: var(--lagoon); color: #fff; border-color: var(--lagoon); }
.chips small { opacity: .65; margin-left: 4px; }
.commitment { display: grid; grid-template-columns: minmax(220px, 1fr) 2.2fr; gap: 24px clamp(28px, 5vw, 72px); padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.commitment > h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); position: sticky; top: 110px; align-self: start; }
.commitment__body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.commitment h3 { font-size: 1.05rem; color: var(--leaf-dark); }
@media (max-width: 960px) { .commitment, .commitment__body { grid-template-columns: 1fr; } .commitment > h2 { position: static; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 0 0 12px 30px; }
.checks li::before { content: ''; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--leaf); border-bottom: 2.5px solid var(--leaf); transform: rotate(-45deg); }

/* En-tête de page */
.pagehead { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); background: var(--sky); overflow: hidden; }
.pagehead::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--wax) 0 0 / 20px 20px repeat-x; }
.pagehead h1 { max-width: 18ch; margin-bottom: 20px; }
.pagehead__lead { max-width: 60ch; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); margin: 0; }
.kicker { font: 600 1rem/1.3 var(--display); color: var(--leaf-dark); margin-bottom: 16px; }
.pagehead--image { background: var(--lagoon); color: #fff; min-height: min(70vh, 640px); display: flex; align-items: flex-end; }
.pagehead--image h1 { color: #fff; }
.pagehead--image .pagehead__lead { color: rgba(255,255,255,.9); }
.pagehead--image .kicker { color: var(--sun); }
.pagehead__media { position: absolute; inset: 0; }
.pagehead__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehead__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,59,67,.2), rgba(10,40,46,.9)); }
.pagehead__inner { position: relative; }

/* Détail d'activité */
.detail__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.detail__aside { position: sticky; top: 100px; display: grid; gap: 24px; }
@media (max-width: 900px) { .detail__grid { grid-template-columns: 1fr; } .detail__aside { position: static; } }
.facts { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--lagoon); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 600 .95rem var(--display); color: var(--muted); }
.facts dd { margin: 0; font: 650 1rem/1.4 var(--display); color: var(--lagoon); text-align: right; }

/* Formulaires */
.form { display: grid; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.form--bare { border: 0; box-shadow: none; padding: 0; background: transparent; margin-bottom: 16px; }
.form h2 { font-size: 1.6rem; margin: 0; }
.form label { display: grid; gap: 6px; font: 600 .93rem/1.3 var(--display); color: var(--lagoon); }
.form input, .form select, .form textarea { width: 100%; font: 400 1rem/1.4 var(--body); color: var(--text); padding: .8em .9em; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(31,122,77,.15); }
.form .is-invalid { border-color: #B3261E; box-shadow: 0 0 0 4px rgba(179,38,30,.1); }
.form input:disabled { background: var(--sky); color: var(--muted); }
.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-family: var(--body); font-size: .95rem; }
.form label.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--leaf); }
.form__hint { font-size: .92rem; color: var(--muted); margin: 0; }
.form__status { margin: 0; font: 600 .98rem/1.4 var(--display); min-height: 1.4em; }
.form__status.is-ok { color: var(--leaf-dark); }
.form__status.is-error { color: #B3261E; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.amounts { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amounts legend { font: 600 .93rem var(--display); color: var(--lagoon); margin-bottom: 8px; }
.amount input[type='radio'] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.amount span { display: block; text-align: center; padding: .8em .2em; border: 1.5px solid var(--line); border-radius: 8px; font: 650 .95rem var(--display); cursor: pointer; transition: all .15s; }
.amount input:checked + span { background: var(--lagoon); border-color: var(--lagoon); color: #fff; }
.amount input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.amount--free { grid-column: 1 / -1; }
@media (max-width: 420px) { .amounts { grid-template-columns: repeat(2, 1fr); } }
.warning { display: flex; gap: 12px; align-items: flex-start; background: #FFF6E3; border-radius: var(--radius); padding: 16px 18px; color: #6B4A06; font-size: 1rem; }
.warning .i { color: var(--sun-dark); margin-top: 3px; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 0; border-top: 2px solid var(--lagoon); }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list .i { width: 26px; height: 26px; color: var(--leaf); margin-top: 2px; }
.contact-list div { display: grid; }
.contact-list strong { font: 600 .9rem var(--display); color: var(--muted); }
.contact-list a, .contact-list span { font: 650 1.15rem/1.4 var(--display); color: var(--lagoon); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--leaf); }

/* Galerie */
.gallery-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sky); margin: 32px 0 24px; }
.gallery-tabs a { padding: .6em 1.3em; border-radius: 999px; font: 650 .95rem var(--display); color: var(--lagoon); text-decoration: none; }
.gallery-tabs a[aria-current] { background: var(--lagoon); color: #fff; }
.empty { padding: 48px 32px; text-align: center; background: var(--sky); border-radius: var(--radius); color: var(--muted); }
.empty p { font: 500 1.1rem/1.5 var(--display); }

/* Partenaires */
.partners { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.partners li { background: var(--paper); border-radius: var(--radius); padding: 24px; }

/* Espace membre */
.auth { max-width: 520px; }
.auth__tabs { display: flex; gap: 4px; padding: 4px; background: var(--sky); border-radius: 999px; margin-bottom: 24px; }
.auth__tabs a { flex: 1; text-align: center; padding: .7em 1em; border-radius: 999px; font: 650 .95rem var(--display); text-decoration: none; color: var(--lagoon); }
.auth__tabs a[aria-selected='true'] { background: var(--lagoon); color: #fff; }
.member { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .member { grid-template-columns: 1fr; } }
.mine { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--lagoon); }
.mine li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.mine li > div:first-child { display: grid; gap: 4px; }
.mine a { text-decoration: none; color: var(--lagoon); font-family: var(--display); font-size: 1.1rem; }
.mine span { color: var(--muted); font-size: .95rem; }
.mine__side { display: flex; align-items: center; gap: 10px; }

/* Appel final */
.cta { background: var(--leaf); color: #fff; padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.cta__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px 64px; align-items: center; }
.cta h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.4rem); }
.cta p { font-size: 1.2rem; color: rgba(255,255,255,.9); max-width: 46ch; margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta .btn--line { --fg: #fff; border-color: rgba(255,255,255,.65); }
.cta .btn--line:hover { --bg: #fff; --fg: var(--leaf-dark); }
@media (max-width: 900px) { .cta__inner { grid-template-columns: 1fr; } .cta__actions { justify-content: flex-start; } .cta__actions .btn { flex: 1 1 100%; } }

/* Pied de page */
.footer { background: var(--lagoon); color: rgba(255,255,255,.82); font-size: .98rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; padding: 64px 0 40px; }
.footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.footer a:hover { color: var(--sun); }
.brand--light { color: #fff; margin-bottom: 18px; }
.brand--light .brand__text small { color: var(--sun); }
.brand--light img { width: 56px; height: 56px; }
.footer__about p { max-width: 40ch; }
.footer__slogan { font: 600 1.15rem/1.35 var(--display); color: #fff; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.footer__contact .i { margin-top: 4px; color: var(--sun); }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); }
.socials a:hover { border-color: var(--sun); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; }
.footer__legal span:last-child { display: flex; gap: 18px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 22, 26, .96); display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; opacity: 0; transition: opacity .25s; }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__stage { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 56px 0 24px; max-height: 100svh; touch-action: pan-y; }
.lightbox__media img { max-height: calc(100svh - 150px); width: auto; max-width: 100%; border-radius: 2px; transition: opacity .2s; }
.lightbox figcaption { color: rgba(255,255,255,.85); font: 500 1rem/1.4 var(--display); text-align: center; max-width: 70ch; padding: 0 16px; }
.lightbox button { background: rgba(255,255,255,.1); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; justify-self: center; transition: background-color .2s; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox__close { position: absolute; top: 14px; right: 14px; }
@media (max-width: 700px) { .lightbox { grid-template-columns: 1fr; } .lightbox__nav { position: absolute; bottom: 18px; } .lightbox__nav--prev { left: 18px; } .lightbox__nav--next { right: 18px; } .lightbox__media img { max-height: calc(100svh - 190px); } }

.notfound { min-height: 50vh; display: grid; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print { .masthead, .footer, .lightbox, .cta, .form { display: none !important; } }

/* =====================================================================
   V2 — Mouvement & modernité
   ===================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .28s ease both; }
::view-transition-new(root) { animation: vtIn .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(14px); } }

/* Barre de progression de lecture */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--sun), var(--clay)); pointer-events: none; }

/* En-tête : se compacte au défilement */
.masthead__bar { transition: min-height .3s ease; }
.masthead.is-scrolled .masthead__bar { min-height: 62px; }
.masthead.is-scrolled { box-shadow: 0 10px 30px -20px rgba(14,59,67,.35); }

/* Boutons : reflet au survol */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.btn:hover::after { transform: translateX(120%); }

/* ---------- Apparitions au défilement ---------- */
.js .rv { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js .rv.rv--img { opacity: 1; transform: none; clip-path: inset(18% 0 0 0 round 4px); transition: clip-path 1.1s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js .rv.rv--img img { transform: scale(1.15); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js .rv.is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 4px); }
.js .rv.rv--img.is-in img { transform: none; }

/* ---------- Héros : diaporama ---------- */
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero__slide.is-on { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transform: scale(1.12); }
.hero__slide.is-on img { animation: kenburns 9s ease-out both; }
.hero__media img { animation: none; }
.hero__slide.is-on img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.14) translate3d(1.5%, 1%, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
.hero__glow { position: absolute; z-index: -1; width: 60vmax; height: 60vmax; left: -20vmax; bottom: -30vmax; border-radius: 50%; background: radial-gradient(circle, rgba(242,179,61,.35), transparent 60%); filter: blur(20px); animation: glow 12s ease-in-out infinite alternate; pointer-events: none; }
@keyframes glow { to { transform: translate3d(12vmax, -6vmax, 0) scale(1.15); } }
.hero__title { display: block; }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .w > span { display: inline-block; transform: translateY(110%); animation: wordUp .9s cubic-bezier(.2,.8,.2,1) both; }
.hero__title { animation: none; }
.hero__title .w:nth-child(1) > span { animation-delay: .15s; } .hero__title .w:nth-child(2) > span { animation-delay: .23s; }
.hero__title .w:nth-child(3) > span { animation-delay: .31s; } .hero__title .w:nth-child(4) > span { animation-delay: .39s; }
.hero__title .w:nth-child(5) > span { animation-delay: .47s; } .hero__title .w:nth-child(6) > span { animation-delay: .55s; }
.hero__title .w:nth-child(7) > span { animation-delay: .63s; } .hero__title .w:nth-child(8) > span { animation-delay: .71s; }
.hero__title .w:nth-child(n+9) > span { animation-delay: .79s; }
@keyframes wordUp { to { transform: none; } }
.hero__text { animation-delay: .75s; } .hero__actions { animation-delay: .9s; } .hero__note { animation-delay: 1.05s; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: .45em .9em .45em .7em; border-radius: 999px; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2); font-size: .92rem; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(242,179,61,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(242,179,61,0); } 100% { box-shadow: 0 0 0 0 rgba(242,179,61,0); } }
.hero__dots { position: absolute; z-index: 3; right: calc(var(--gutter) + 36px); bottom: clamp(48px, 8vh, 96px); display: flex; gap: 8px; }
.hero__dots button { width: 34px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; align-items: center; }
.hero__dots span { display: block; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; position: relative; }
.hero__dots span::after { content: ''; position: absolute; inset: 0; background: var(--sun); transform: scaleX(0); transform-origin: 0 50%; }
.hero__dots [aria-selected='true'] span::after { animation: dotFill 6s linear forwards; }
@keyframes dotFill { to { transform: scaleX(1); } }
.hero__cue { position: absolute; z-index: 3; left: 50%; bottom: 18px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px; }
.hero__cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 760px) { .hero__dots { right: auto; left: var(--gutter); bottom: 18px; } .hero__cue { display: none; } }

/* ---------- Bandeau défilant ---------- */
.marquee { background: var(--sun); color: var(--lagoon); overflow: hidden; border-block: 1px solid rgba(14,59,67,.15); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { display: flex; align-items: center; }
.marquee b { font: 700 clamp(1rem, 2vw, 1.35rem)/1 var(--display); padding: 18px 0; white-space: nowrap; letter-spacing: -.01em; }
.marquee i { width: 22px; height: 22px; margin: 0 28px; border-radius: 50%; background: var(--wax) center / 22px 22px; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifeste + chiffres ---------- */
.manifesto { position: relative; overflow: hidden; }
.manifesto::before { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: var(--wax) 0 0 / 56px 56px; opacity: .08; animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.manifesto [data-split] .word { opacity: .18; transition: opacity .4s ease; }
.manifesto [data-split] .word.is-lit { opacity: 1; }
.manifesto__inner p::first-line { color: inherit; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin: clamp(40px, 6vw, 72px) 0 0; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.18); }
.stats dt { font: 800 clamp(2.6rem, 6vw, 4.4rem)/1 var(--display); color: var(--sun); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stats dd { margin: 8px 0 0; color: rgba(255,255,255,.8); font: 500 1rem/1.3 var(--display); }

/* ---------- Domaines en bento ---------- */
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento__item { grid-column: span 2; }
.bento__item--lead { grid-column: span 4; grid-row: span 2; }
.bento__item:nth-child(4), .bento__item:nth-child(5) { grid-column: span 3; }
.bento__item a { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 220px; padding: 28px; border-radius: 20px; background: var(--sky); color: var(--lagoon); text-decoration: none; overflow: hidden; transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s, background-color .3s; transform-style: preserve-3d; }
.bento__item a::before { content: ''; position: absolute; inset: auto -40% -60% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(242,179,61,.35), transparent 65%); transform: scale(.6); opacity: 0; transition: transform .6s, opacity .6s; }
.bento__item a:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(14,59,67,.5); }
.bento__item a:hover::before { transform: scale(1); opacity: 1; }
.bento__item--lead a { background: var(--lagoon); color: #fff; justify-content: flex-end; min-height: 460px; }
.bento__item--lead h3 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.bento__item--lead p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 36ch; }
.bento__icon { width: 54px; height: 54px; border-radius: 50%; background: var(--wax) center / 54px 54px; margin-bottom: auto; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.bento__item--lead .bento__icon { width: 84px; height: 84px; background-size: 84px 84px; }
.bento__item a:hover .bento__icon { transform: rotate(180deg) scale(1.08); }
.bento h3 { margin: 24px 0 8px; font-size: 1.3rem; }
.bento p { color: var(--muted); font-size: 1rem; margin: 0 0 14px; }
.bento__more { font: 650 .92rem var(--display); display: inline-flex; gap: 8px; align-items: center; margin-top: auto; }
.bento__more::after { content: ''; width: 18px; height: 2px; background: currentColor; transition: width .3s; }
.bento__item a:hover .bento__more::after { width: 34px; }
.bento__item--lead .bento__more { color: var(--sun); margin-top: 8px; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .bento__item, .bento__item:nth-child(4), .bento__item:nth-child(5) { grid-column: span 1; } .bento__item--lead { grid-column: 1 / -1; grid-row: auto; } .bento__item--lead a { min-height: 320px; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento__item a { min-height: 0; } }

/* ---------- Cartes, photos, vidéos ---------- */
.story__link { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.story__media { border-radius: 14px; position: relative; }
.story__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14,59,67,.35)); opacity: 0; transition: opacity .4s; }
.story__link:hover .story__media::after { opacity: 1; }
.story--plain .story__link { border-radius: 18px; transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s; }
.story--plain .story__link:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(14,59,67,.45); }
.wall__item a { border-radius: 12px; position: relative; }
.wall__item a::after { content: ''; position: absolute; inset: 0; background: rgba(14,59,67,.0); transition: background-color .35s; }
.wall__item a:hover::after { background: rgba(14,59,67,.18); }
.video__frame { border-radius: 14px; }
.form { border-radius: 20px; }
.panel, .banner, .empty { border-radius: 20px; }
.pagehead { overflow: hidden; }
.pagehead h1 { animation: heroIn .9s cubic-bezier(.2,.7,.2,1) both .05s; }
.pagehead__lead, .pagehead .kicker { animation: heroIn .9s cubic-bezier(.2,.7,.2,1) both .2s; }
.pagehead__media img { will-change: transform; }
.chips a { transition: border-color .2s, background-color .2s, transform .2s; }
.chips a:hover { transform: translateY(-2px); }

/* Carrousel horizontal sur mobile pour « Sur le terrain » */
@media (max-width: 760px) {
  .stories--feature, .stories--three { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scrollbar-width: none; }
  .stories--feature::-webkit-scrollbar, .stories--three::-webkit-scrollbar { display: none; }
  .stories--feature .story, .stories--three .story { flex: 0 0 82%; scroll-snap-align: start; }
}

/* ---------- Menu mobile plein écran (corrige l'affichage tronqué) ---------- */
.mainnav__contact { display: none; }
@media (max-width: 1020px) {
  .masthead, .is-home .masthead.is-solid { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .masthead { background: #fff; }
  .mainnav { position: fixed; top: 0; left: 0; right: 0; bottom: auto; height: 100vh; height: 100dvh; padding: 92px var(--gutter) calc(24px + env(safe-area-inset-bottom)); z-index: -1; justify-content: flex-start; gap: 28px; overscroll-behavior: contain; transform: translateY(-100%); opacity: 1; transition: transform .55s cubic-bezier(.7,0,.2,1), visibility 0s .55s; }
  .mainnav.is-open { transform: none; transition: transform .55s cubic-bezier(.7,0,.2,1); }
  .mainnav ul { gap: 0; }
  .mainnav ul li { opacity: 0; transform: translateY(18px); transition: opacity .4s, transform .4s; }
  .mainnav.is-open ul li { opacity: 1; transform: none; }
  .mainnav.is-open ul li:nth-child(1) { transition-delay: .18s; } .mainnav.is-open ul li:nth-child(2) { transition-delay: .22s; }
  .mainnav.is-open ul li:nth-child(3) { transition-delay: .26s; } .mainnav.is-open ul li:nth-child(4) { transition-delay: .3s; }
  .mainnav.is-open ul li:nth-child(5) { transition-delay: .34s; } .mainnav.is-open ul li:nth-child(6) { transition-delay: .38s; }
  .mainnav.is-open ul li:nth-child(7) { transition-delay: .42s; } .mainnav.is-open ul li:nth-child(8) { transition-delay: .46s; }
  .mainnav ul a, .is-home .masthead .mainnav ul a { font-size: clamp(1.45rem, 6.4vw, 2rem); padding: .38em 0; display: flex; justify-content: space-between; align-items: center; }
  .mainnav ul a::after { content: ''; width: 10px; height: 10px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .5; }
  .mainnav__extra { margin-top: auto; gap: 10px; }
  .mainnav__contact { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 6px; }
  .mainnav__contact a { color: rgba(255,255,255,.75); text-decoration: none; font: 500 .95rem var(--display); }
  .masthead__bar { position: relative; z-index: 2; }
  body.menu-open .masthead { background: var(--lagoon); border-color: transparent; }
  body.menu-open .masthead .brand, body.menu-open .masthead .brand__text small { color: #fff; }
  body.menu-open .burger { background: rgba(255,255,255,.14); }
  body.menu-open .burger span { background: #fff; }
  body.menu-open .masthead__don { opacity: 0; pointer-events: none; }
  .masthead__don { transition: opacity .3s; }
}
@media (max-width: 1020px) and (max-height: 640px) { .mainnav ul a, .is-home .masthead .mainnav ul a { font-size: 1.25rem; padding: .3em 0; } }

@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .rv.rv--img, .js .rv img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero__title .w > span { transform: none; }
  .marquee__track { animation: none; }
  .manifesto [data-split] .word { opacity: 1; }
}
.bento .bento__item--lead h3 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.bento .bento__item--lead p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 36ch; }
@media (max-width: 760px) { .manifesto::before { width: 260px; height: 260px; right: -90px; top: -90px; opacity: .06; } }
