/* =========================================================
   TSHM Chêne & Co — feuille de style
   Couleurs tirées du logo : vert sarcelle, noir, blanc
   ========================================================= */
:root {
  --teal: #4A7A6E;          /* couleur du logo */
  --teal-700: #365C52;      /* petit texte sur fond clair (contraste AA) */
  --teal-800: #2E584D;      /* fond du chapitre 02 */
  --teal-900: #1F3A33;
  --teal-100: #DDE9E4;
  --ink: #141715;
  --ink-2: #1F2421;
  --cream: #F5F1E8;
  --paper: #FFFDF8;
  --sun: #F4B73F;
  --muted: #59615D;

  /* thème clair par défaut, surchargé par .theme-dark */
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --surface: var(--paper);
  --line: rgba(20, 23, 21, .12);
  --accent: var(--teal);
  --accent-text: var(--teal-700);
  --accent-soft: var(--teal-100);

  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;

  --gutter: clamp(16px, 4vw, 48px);
  --radius: 24px;
  --sheet-r: clamp(28px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

.theme-dark {
  --fg: var(--cream);
  --fg-muted: rgba(245, 241, 232, .8);
  --surface: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .16);
  --accent: var(--sun);
  --accent-text: var(--sun);
  --accent-soft: rgba(244, 183, 63, .16);
  color: var(--fg);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--f-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
button { font: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; margin: 0; }
[id] { scroll-margin-top: 90px; }
::selection { background: var(--sun); color: var(--ink); }

main { overflow-x: clip; }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; text-decoration: none; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-fill { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* ---------- barre de progression ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--sun)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn .ic-arrow { transition: transform .3s var(--ease); }
.btn:hover .ic-arrow { transform: translateX(5px); }
.btn-teal { background: var(--teal-700); color: #fff; box-shadow: 0 14px 30px -14px rgba(31, 58, 51, .8); }
.btn-teal:hover { background: var(--teal-900); }
.btn-ghost { border-color: currentColor; }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--teal-900); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.btn-sm .ic { width: 18px; height: 18px; }

/* ---------- en-tête ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 60; transition: transform .45s var(--ease); }
.site-header::before { content: ""; position: absolute; inset: 0; background: rgba(245, 241, 232, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); opacity: 0; transition: opacity .3s; }
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; position: relative; z-index: 2; }
.brand img { width: 38px; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--f-display); }
.brand-text strong { font-size: 1.1rem; letter-spacing: .06em; }
.brand-text span { font-size: .82rem; color: var(--muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav ul a { display: block; white-space: nowrap; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; transition: background .25s, color .25s; }
.nav ul a:hover { background: rgba(74, 122, 110, .14); }
.nav ul a.is-active { background: var(--teal-700); color: #fff; }
.menu-btn { display: none; }
.nav-cta { white-space: nowrap; }

@media (max-width: 1179px) {
  .menu-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; position: relative; z-index: 2; transition: background .3s, color .3s; }
  .menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), background .2s; }
  .menu-lines { position: relative; }
  .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
  .menu-lines::before { top: -6px; }
  .menu-lines::after { top: 6px; }
  [data-open] .menu-lines { background: transparent; }
  [data-open] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
  [data-open] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }
  [data-open] .menu-btn { background: var(--sun); color: var(--ink); }
  [data-open] .brand { color: var(--cream); }
  [data-open] .brand-text span { color: rgba(245, 241, 232, .7); }

  .nav { position: fixed; inset: 0; z-index: 1; background: var(--teal-900); color: var(--cream); flex-direction: column; align-items: flex-start; justify-content: center; gap: 36px; padding: 100px var(--gutter) 48px; visibility: hidden; opacity: 0; transition: opacity .35s, visibility .35s; }
  [data-open] .nav { visibility: visible; opacity: 1; }
  .nav ul { flex-direction: column; gap: 6px; }
  .nav ul a { font: 700 clamp(1.9rem, 8vw, 2.8rem)/1.15 var(--f-display); letter-spacing: -.02em; padding: 6px 0; border-radius: 0; }
  .nav ul a:hover, .nav ul a.is-active { background: none; color: var(--sun); }
  .nav-cta { background: var(--sun); color: var(--ink); }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 120px 0 96px; display: flex; align-items: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 70vw; height: 70vw; right: -20vw; top: -25vw; background: radial-gradient(circle, rgba(74, 122, 110, .25), transparent 62%); pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 50vw; height: 50vw; left: -20vw; bottom: -30vw; background: radial-gradient(circle, rgba(244, 183, 63, .22), transparent 62%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--teal-700); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.hero-title { font-size: clamp(2.6rem, 7.4vw, 6rem); line-height: .96; letter-spacing: -.045em; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .ln > span { display: inline-block; }
.hl { position: relative; color: var(--teal); isolation: isolate; white-space: nowrap; }
.hl-mark { position: absolute; left: -.06em; right: -.06em; bottom: .06em; height: .3em; background: var(--sun); border-radius: 6px; z-index: -1; transform-origin: 0 50%; }
.hero-brand { margin: 22px 0 26px; }
.hero-brand span { display: inline-block; font: 700 clamp(1.4rem, 2.6vw, 2rem)/1 var(--f-display); background: var(--ink); color: var(--cream); padding: 12px 22px 14px; border-radius: 14px; transform: rotate(-2.5deg); letter-spacing: -.01em; }
.hero-lead { font-size: clamp(1.15rem, 1.7vw, 1.35rem); max-width: 34ch; color: var(--ink-2); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-visual { position: relative; }
.frame { margin: 0; position: relative; }
.frame-inner { border-radius: 28px; overflow: hidden; aspect-ratio: 6 / 5; background: var(--teal-100); box-shadow: 0 40px 80px -40px rgba(20, 23, 21, .55); }
.frame-inner img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }

/* coins du logo TSHM */
.brackets::before, .brackets::after { content: ""; position: absolute; width: 46px; height: 46px; border: 0 solid var(--ink); pointer-events: none; z-index: 2; }
.brackets::before { top: -16px; right: -16px; border-top-width: 6px; border-right-width: 6px; }
.brackets::after { bottom: -16px; left: -16px; border-bottom-width: 6px; border-left-width: 6px; }

.sticker { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; font: 700 clamp(.85rem, 1.3vw, 1rem)/1 var(--f-display); padding: 13px 18px; border-radius: 20px 20px 20px 6px; background: var(--paper); color: var(--ink); box-shadow: 0 16px 36px -14px rgba(20, 23, 21, .45); white-space: nowrap; }
.sticker .ic { width: 16px; height: 16px; }
.sticker-a { top: 7%; left: -5%; background: var(--sun); }
.sticker-b { top: 44%; right: -5%; background: var(--ink); color: var(--cream); border-radius: 20px 20px 6px 20px; }
.sticker-c { bottom: -5%; left: 14%; }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 28px; height: 46px; border: 2px solid var(--ink); border-radius: 999px; z-index: 2; }
.scroll-cue-dot { position: absolute; left: 50%; top: 8px; width: 6px; height: 10px; margin-left: -3px; border-radius: 3px; background: var(--ink); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- bandeau de valeurs ---------- */
.marquee { position: relative; z-index: 2; background: var(--ink); color: var(--cream); padding: 22px 0; overflow: hidden; width: 110%; margin-left: -5%; transform: rotate(-1.6deg); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 34px; padding-right: 34px; flex: none; }
.marquee span { font: 700 clamp(1.3rem, 3vw, 2.2rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.marquee .star { width: 24px; height: 24px; fill: var(--sun); flex: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(88px, 12vw, 160px) 0; }
.sheet { position: relative; margin-top: calc(-1 * var(--sheet-r)); border-radius: var(--sheet-r) var(--sheet-r) 0 0; padding-top: calc(clamp(88px, 12vw, 160px) + var(--sheet-r) / 2); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 .8rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 20px; }
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.h1 { font-size: clamp(2.4rem, 6.2vw, 4.8rem); letter-spacing: -.04em; line-height: 1.02; }
.h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); max-width: 20ch; letter-spacing: -.035em; }
.h3 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); margin-bottom: 18px; }
[data-split] > div { padding-bottom: .08em; margin-bottom: -.08em; }
.lead { font-size: clamp(1.12rem, 1.6vw, 1.3rem); color: var(--fg-muted); max-width: 56ch; margin-top: 22px; }
.prose p { max-width: 64ch; }
.prose { color: var(--fg); }

/* ---------- bulles de contexte ---------- */
.term {
  display: inline; padding: 0 .08em; margin: 0; border: 0; background: none; color: inherit;
  font: inherit; letter-spacing: inherit; text-align: inherit; line-height: inherit; cursor: help;
  text-decoration: underline dotted 2px; text-decoration-color: var(--accent); text-underline-offset: .22em;
  border-radius: 4px; transition: background .2s, text-decoration-color .2s;
}
.term:hover, .term.is-open { background: var(--accent-soft); text-decoration-style: solid; }
.term-demo { cursor: default; }
.bubble { position: fixed; top: 0; left: 0; z-index: 90; width: max-content; max-width: min(320px, calc(100vw - 32px)); padding: 14px 16px 16px; border-radius: 16px; background: var(--ink); color: var(--cream); font: 400 .93rem/1.5 var(--f-body); box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .5); pointer-events: none; }
.bubble[hidden] { display: none; }
.bubble strong { display: block; font: 700 .98rem/1.2 var(--f-display); color: var(--sun); margin-bottom: 5px; }
.bubble::after { content: ""; position: absolute; left: var(--ax, 50%); width: 14px; height: 14px; background: inherit; border-radius: 3px; transform: translateX(-50%) rotate(45deg); }
.bubble[data-side="top"]::after { bottom: -6px; }
.bubble[data-side="bottom"]::after { top: -6px; }
.theme-dark .bubble, .bubble.on-dark { background: var(--paper); color: var(--ink); }
.bubble.on-dark strong { color: var(--teal-700); }
.tip-hint { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 16px; background: var(--teal-100); color: var(--teal-900); font-size: .95rem; line-height: 1.5; }
.tip-hint .ic { margin-top: 1px; }

/* ---------- à propos ---------- */
.about { padding-top: clamp(110px, 14vw, 180px); }
.about-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(36px, 6vw, 96px); margin-top: 52px; align-items: start; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 24px 22px; }
.fact-num { display: block; font: 700 clamp(2.2rem, 4vw, 3.1rem)/1 var(--f-display); color: var(--teal); letter-spacing: -.03em; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.fact-label { display: block; font-size: .93rem; line-height: 1.45; color: var(--muted); }
.fact-accent { background: var(--teal-700); border-color: transparent; }
.fact-accent .fact-num { color: var(--sun); }
.fact-accent .fact-label { color: rgba(255, 255, 255, .88); }
.statement { font: 700 clamp(1.8rem, 4.4vw, 3.6rem)/1.12 var(--f-display); letter-spacing: -.03em; max-width: 24ch; margin: clamp(72px, 11vw, 140px) 0 0; text-wrap: balance; }

/* ---------- 3 dimensions ---------- */
.pillars { background: var(--paper); }
.pillar-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.pillar a { display: flex; flex-direction: column; height: 100%; min-height: 360px; padding: 32px 28px 28px; border-radius: var(--radius); background: var(--cream); text-decoration: none; position: relative; overflow: hidden; transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease); }
.pillar a::after { content: ""; position: absolute; width: 220px; height: 220px; right: -80px; bottom: -80px; border-radius: 50%; background: var(--sun); transform: scale(0); transition: transform .5s var(--ease); }
.pillar a:hover { background: var(--teal-800); color: var(--cream); transform: translateY(-6px); }
.pillar a:hover::after { transform: scale(1); }
.pillar-num { font: 700 4.8rem/1 var(--f-display); color: transparent; -webkit-text-stroke: 2px var(--teal); letter-spacing: -.04em; margin-bottom: 48px; transition: -webkit-text-stroke-color .4s; }
.pillar a:hover .pillar-num { -webkit-text-stroke-color: var(--sun); }
.pillar h3 { font-size: 1.7rem; margin-bottom: 12px; }
.pillar p { flex: 1; margin: 0 0 24px; opacity: .85; position: relative; z-index: 1; }
.pillar-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; position: relative; z-index: 1; }
.pillar-go .ic { transition: transform .3s var(--ease); }
.pillar a:hover .pillar-go .ic { transform: translateX(6px); }
.pillar a:hover .pillar-go { color: var(--ink); }

/* ---------- chapitres ---------- */
.chapter-1 { background: var(--cream); }
.chapter-2 { background: var(--teal-800); }
.chapter-3 { background: var(--paper); }
.chapter-head { display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 40px); margin-bottom: clamp(40px, 6vw, 72px); }
.chapter-num { font: 700 clamp(5rem, 17vw, 13.5rem)/.78 var(--f-display); color: transparent; -webkit-text-stroke: 2px var(--accent); letter-spacing: -.06em; flex: none; }
.chapter-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.intro-big { font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.55; font-weight: 500; }

.pull { position: relative; margin: clamp(64px, 9vw, 112px) 0; padding: 0 0 0 clamp(52px, 7vw, 96px); max-width: 34ch; font: italic 400 clamp(1.7rem, 3.8vw, 3rem)/1.18 var(--f-serif); }
.pull p { margin: 0; }
.pull::before { content: "«"; position: absolute; left: 0; top: -.12em; font: 700 2.3em/1 var(--f-display); color: var(--accent); }
.pull-end { margin-bottom: 0; max-width: 40ch; font-size: clamp(1.5rem, 3vw, 2.4rem); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.feature--flip .feature-media { order: -1; }
.feature--stack { grid-template-columns: 1fr; }
.feature--stack:has(.feature-media) { grid-template-columns: 1.15fr 1fr; align-items: start; }
.feature-tag { display: inline-block; font: 700 .85rem/1 var(--f-display); letter-spacing: .08em; color: var(--accent-text); background: var(--accent-soft); padding: 8px 12px; border-radius: 999px; margin-bottom: 16px; }
.inline-quote { margin: 26px 0; padding: 20px 24px; border-left: 4px solid var(--sun); background: var(--surface); border-radius: 0 18px 18px 0; font-size: 1.08rem; }
.inline-quote p { margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }

/* médias */
.media { margin: 0; }
.media-frame { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--accent-soft); }
.media-frame img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.media figcaption, .video figcaption { margin-top: 14px; font-size: .92rem; line-height: 1.5; color: var(--fg-muted); }
.media figcaption::before, .video figcaption::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 10px; }

/* carte des tournées */
.route-card { margin: 0; background: var(--teal-800); color: var(--cream); border-radius: var(--radius); padding: 22px 22px 18px; }
.route-card > svg { width: 100%; height: auto; overflow: visible; }
.route-base { fill: none; stroke: rgba(255, 255, 255, .25); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.route-path { fill: none; stroke: var(--sun); stroke-width: 4; stroke-linecap: round; }
.route-pin path { fill: var(--cream); }
.route-pin circle { fill: var(--teal-800); }
.route-pin-home path { fill: var(--sun); }
.route-pin text { fill: var(--cream); font: 700 15px var(--f-display); text-anchor: middle; }
.route-pin .route-sub { font: 500 12px var(--f-body); fill: var(--sun); }
.route-walker circle { fill: var(--sun); }
.route-walker .route-walker-halo { fill: rgba(244, 183, 63, .3); }
.route-card figcaption { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: .9rem; color: rgba(245, 241, 232, .85); }

/* projet « Lâche pas ton pote » */
.project-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 64px); background: var(--sun); color: var(--ink); border-radius: calc(var(--radius) + 8px); padding: clamp(28px, 5vw, 56px); margin-top: clamp(8px, 2vw, 24px); }
.project-label { font: 700 .8rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.project-title { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.035em; line-height: 1.02; }
.project-body p { max-width: 60ch; }
.project-card .term { text-decoration-color: var(--ink); }
.project-card .term:hover, .project-card .term.is-open { background: rgba(20, 23, 21, .1); }

/* lecteur audio */
.voice { display: flex; align-items: center; gap: 16px; margin: 26px 0 0; padding: 12px 20px 12px 12px; max-width: 480px; border-radius: 999px; background: var(--ink); color: var(--cream); }
.voice-light { background: var(--cream); color: var(--ink); border: 1px solid var(--line); }
.voice-play { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border: 0; border-radius: 50%; background: var(--sun); color: var(--ink); cursor: pointer; transition: transform .25s var(--ease); }
.voice-play:hover { transform: scale(1.07); }
.voice-play .i-pause, .voice.is-playing .voice-play .i-play { display: none; }
.voice.is-playing .voice-play .i-pause { display: block; }
.voice-body { flex: 1; min-width: 0; }
.voice-title { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: .88rem; line-height: 1.3; }
.voice-title strong { font-weight: 700; }
.voice-time { opacity: .75; font-variant-numeric: tabular-nums; white-space: nowrap; }
.voice-track { position: relative; height: 30px; border-radius: 6px; }
.voice-track:focus-within { outline: 2px solid var(--sun); outline-offset: 4px; }
.voice-wave { display: flex; align-items: center; gap: 3px; height: 100%; }
.voice-wave i { flex: 1; height: var(--h); border-radius: 2px; background: currentColor; opacity: .25; transition: opacity .2s, background .2s; }
.voice-wave i.on { opacity: 1; background: var(--sun); }
.voice-light .voice-wave i.on { background: var(--teal); }
.voice.is-playing .voice-wave i { animation: wave .9s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1s); }
@keyframes wave { to { transform: scaleY(.45); } }
.voice-seek { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.listen { display: grid; gap: 14px; align-content: center; }
.listen .voice { margin: 0; }
.listen-label { font: 700 .8rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-700); margin: 0 0 4px; }

/* vidéo */
.video { margin: clamp(24px, 4vw, 48px) 0 0; }
.video-frame { aspect-ratio: 16 / 9; background: #000; border-radius: calc(var(--radius) + 6px); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; border: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .55)); color: #fff; font: 700 1.05rem/1 var(--f-display); cursor: pointer; }
.video-play-ring { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--sun); color: var(--ink); box-shadow: 0 0 0 0 rgba(244, 183, 63, .5); animation: pulse 2.2s infinite; transition: transform .3s var(--ease); }
.video-play-ring .ic-fill { width: 34px; height: 34px; margin-left: 4px; }
.video-play:hover .video-play-ring { transform: scale(1.08); }
@keyframes pulse { 70% { box-shadow: 0 0 0 26px rgba(244, 183, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 183, 63, 0); } }
.video.is-started .video-play { display: none; }

/* permanence : ticket */
.perm { grid-template-columns: 1.1fr .9fr; border-top: 0; padding-top: 0; }
.ticket { position: relative; background: var(--sun); color: var(--ink); border-radius: 28px; padding: clamp(28px, 4vw, 44px); transform: rotate(2deg); box-shadow: 0 40px 70px -36px rgba(0, 0, 0, .7); }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--teal-800); }
.ticket::before { left: -15px; }
.ticket::after { right: -15px; }
.ticket p { margin: 0; }
.ticket-label { font: 700 .8rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; }
.ticket-day { font: 700 clamp(2.2rem, 4.6vw, 3.4rem)/1 var(--f-display); letter-spacing: -.035em; margin-top: 18px !important; }
.ticket-hours { font: 700 clamp(1.6rem, 3vw, 2.3rem)/1 var(--f-display); margin: 6px 0 26px !important; padding-bottom: 24px; border-bottom: 2px dashed rgba(20, 23, 21, .3); }
.ticket ul { display: grid; gap: 14px; margin-bottom: 26px; }
.ticket li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; line-height: 1.4; }

/* séjours */
.sejours { align-items: start; }
.duo { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-top: 44px; }
.duo .media:nth-child(2) { margin-top: 110px; }
.sejours .feature-text { grid-column: 1 / -1; }
.sejours .duo { grid-column: 1 / -1; }
.proust { margin: clamp(80px, 11vw, 150px) auto 0; text-align: center; }
.proust p { font: italic 400 clamp(2.1rem, 6vw, 4.8rem)/1.08 var(--f-serif); max-width: 18ch; margin: 0 auto 22px; text-wrap: balance; }
.proust footer { font: 700 .85rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--sun); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 24px; }
.chips li { padding: 10px 16px; border-radius: 14px; background: var(--cream); border: 1.5px solid var(--line); font-weight: 500; font-size: .97rem; line-height: 1.35; }
.chips li::first-letter { text-transform: uppercase; }

/* petits jobs */
.jobs-card { background: var(--teal-800); color: var(--cream); border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.jobs-card::after { content: ""; position: absolute; width: 240px; height: 240px; right: -90px; top: -90px; border-radius: 50%; border: 36px solid rgba(244, 183, 63, .25); }
.jobs-age { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; font: 700 clamp(5rem, 12vw, 8.5rem)/.9 var(--f-display); letter-spacing: -.05em; color: var(--sun); }
.jobs-age small { font-size: .28em; letter-spacing: 0; color: var(--cream); }
.jobs-text { font-size: 1.12rem; max-width: 26ch; margin-bottom: 26px; }
.jobs-card .btn-teal { background: var(--sun); color: var(--ink); box-shadow: none; }
.jobs-card .btn-teal:hover { background: var(--cream); }

/* réseau */
.network { margin: 0; }
.network svg { width: 100%; height: auto; overflow: visible; }
.net-ring { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 4 8; }
.net-line { stroke: var(--teal); stroke-width: 2.5; }
.net-node circle { fill: var(--paper); stroke: var(--teal); stroke-width: 3; }
.net-node text { font: 700 14px var(--f-display); fill: var(--ink); text-anchor: middle; }
.net-center circle { fill: var(--teal-700); stroke: var(--sun); stroke-width: 4; }
.net-center text { fill: #fff; font-size: 15px; }

/* ---------- équipe ---------- */
.team { background: var(--ink); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.member { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--ink-2); transition: translate .4s var(--ease), box-shadow .4s; }
.member:hover { translate: 0 -6px; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .9); }
.member-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--teal-900); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transition: filter .6s, transform .8s var(--ease); }
@media (hover: hover) {
  .member-photo img { filter: grayscale(1) contrast(1.05); }
  .member:hover img, .member:focus-within img { filter: none; transform: scale(1.06); }
}
.member-info { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.member h3 { font-size: 1.18rem; letter-spacing: -.01em; }
.member-info > p:not(.member-role-tag) { margin: 4px 0 16px; font-size: .93rem; color: var(--fg-muted); flex: 1; }
.member-tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .09); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; transition: background .25s, color .25s; }
.member-tel .ic { width: 17px; height: 17px; }
.member-tel:hover { background: var(--sun); color: var(--ink); }
.member--lead { grid-column: span 2; flex-direction: row; background: var(--teal-800); }
.member--lead .member-photo { width: 46%; flex: none; aspect-ratio: auto; }
.member--lead .member-info { justify-content: flex-end; padding: 28px; }
.member--lead h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.member-role-tag { display: inline-block; margin: 0 0 auto; padding: 6px 12px; border-radius: 999px; background: var(--sun); color: var(--ink); font: 700 .78rem/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; }
.member--lead .member-tel { background: var(--sun); color: var(--ink); }
.member--lead .member-tel:hover { background: var(--cream); }

/* ---------- contact ---------- */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-list { display: grid; gap: 12px; margin: 32px 0 28px !important; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.contact-list strong { display: block; font-family: var(--f-display); font-size: 1.05rem; }
.contact-list li div > span { display: block; color: var(--muted); line-height: 1.5; }
.contact-list a { color: var(--teal-700); font-weight: 600; }
.ic-badge { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--teal-700); color: #fff; flex: none; }
.map { position: relative; }
.map-inner { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--teal-100); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- pied de page ---------- */
.footer { background: var(--ink); padding: clamp(64px, 9vw, 110px) 0 36px; padding-top: calc(clamp(64px, 9vw, 110px) + var(--sheet-r) / 2); }
.partners { text-align: center; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.partners-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 10px !important; }
.partners-row li { display: grid; place-items: center; width: 170px; height: 100px; padding: 14px 20px; border-radius: 18px; background: #fff; }
.partners-row img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.partners-row li:hover img { filter: none; opacity: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 0; }
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-brand img { width: 64px; border-radius: 8px; flex: none; }
.footer-brand p { max-width: 34ch; color: var(--fg-muted); }
.footer-brand strong { color: var(--cream); font-family: var(--f-display); font-size: 1.15rem; }
.footer-title { font: 700 .8rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--sun); margin-bottom: 16px; }
.footer p { color: var(--fg-muted); }
.footer nav ul { display: grid; gap: 8px; }
.footer nav a { text-decoration: none; color: var(--fg-muted); transition: color .2s; }
.footer nav a:hover { color: var(--sun); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; border-top: 1px solid var(--line); font-size: .92rem; }
.footer-bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; min-height: 44px; }
.to-top .ic { transform: rotate(180deg); }
.to-top:hover { color: var(--sun); }

/* ---------- états de départ des animations (seulement si JS + mouvement autorisé) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .ln > span { transform: translateY(110%); }
  .js .hl-mark { transform: scaleX(0); }
  .js [data-hero], .js [data-sticker] { opacity: 0; }
  .js .frame-inner { clip-path: inset(100% 0 0 0 round 28px); }
  .js:not(.is-ready) .site-header { transform: translateY(-100%); }
  .js [data-split] { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .scroll-cue-dot, .video-play-ring, .voice.is-playing .voice-wave i { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .hero { padding-top: 110px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; }
  .about-grid, .chapter-intro, .contact-grid, .project-card { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .feature, .feature--stack:has(.feature-media), .perm { grid-template-columns: 1fr; }
  .feature--flip .feature-media { order: 0; }
  .pillar-list { grid-template-columns: 1fr; }
  .pillar a { min-height: 0; }
  .pillar-num { margin-bottom: 28px; font-size: 3.6rem; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
  .ticket { transform: rotate(1deg); }
  .map-inner { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  body { font-size: 1.03rem; }
  .sticker-a { left: -2%; }
  .sticker-b { right: -2%; }
  .brackets::before { right: -10px; top: -10px; }
  .brackets::after { left: -10px; bottom: -10px; }
  .brackets::before, .brackets::after { width: 34px; height: 34px; border-width: 0; }
  .brackets::before { border-top-width: 5px; border-right-width: 5px; }
  .brackets::after { border-bottom-width: 5px; border-left-width: 5px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fact { padding: 18px 16px; }
  .chapter-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .duo { grid-template-columns: 1fr; }
  .duo .media:nth-child(2) { margin-top: 0; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .member--lead { flex-direction: column; }
  .member--lead .member-photo { width: 100%; aspect-ratio: 4 / 3; }
  .member-info { padding: 14px 14px 16px; }
  .member h3 { font-size: 1rem; }
  .member-tel { padding: 8px 12px; font-size: .88rem; }
  .voice { border-radius: 24px; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .partners-row li { width: calc(50% - 7px); }
}

[tabindex="-1"]:focus { outline: none; }

/* --- correctifs : étiquette du responsable + numéros sur une ligne --- */
.member-role-tag { margin: 0 0 14px; }
.member-tel { white-space: nowrap; }
@media (max-width: 600px) {
  .member-tel { width: 100%; justify-content: center; padding: 8px 10px; gap: 6px; font-size: .85rem; }
  .member--lead .member-tel { width: auto; }
}
@media (max-width: 420px) {
  .member:not(.member--lead) .member-tel .ic { display: none; }
}
