/* ==========================================================================
   Audition Avenir — feuille de style principale (mobile first)
   Points de rupture : 480, 768, 1024, 1280, 1600 px
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --night: #0E1B2C;
  --night-2: #16263A;
  --night-3: #23364D;
  --sand: #F4EFE6;
  --sand-2: #EAE3D6;
  --sand-3: #DED5C4;
  --paper: #FFFDF9;
  --coral: #E8774A;
  --coral-2: #F08E64;
  --coral-ink: #A8441A;
  --sage: #8FAF9A;
  --sage-ink: #35624A;
  --sage-soft: #DCE8DF;
  --ink: #0E1B2C;
  --ink-soft: #3A4656;
  --on-night: #F4EFE6;
  --on-night-soft: #C9D3DE;
  --line: rgba(14, 27, 44, .14);
  --line-strong: rgba(14, 27, 44, .32);
  --error: #A3261B;
  --focus: #0E1B2C;
  --focus-ring: 0 0 0 3px var(--sand), 0 0 0 6px var(--coral-ink);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-small: clamp(.85rem, .82rem + .15vw, .9rem);
  --fs-body: 1rem;
  --fs-lead: clamp(1.05rem, 1rem + .35vw, 1.25rem);
  --fs-h1: clamp(2.2rem, 1.6rem + 3vw, 4.2rem);
  --fs-hero: clamp(2.3rem, min(7vw, 9.5vh), 5.4rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 2vw, 3rem);
  --fs-h3: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --fs-stat: clamp(2.2rem, 1.7rem + 2.4vw, 3.6rem);

  --gutter: 16px;
  --max: 1280px;
  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 32px;
  --shadow-s: 0 1px 2px rgba(14, 27, 44, .06), 0 4px 14px rgba(14, 27, 44, .06);
  --shadow: 0 2px 4px rgba(14, 27, 44, .05), 0 18px 40px -12px rgba(14, 27, 44, .18);
  --shadow-l: 0 30px 70px -20px rgba(14, 27, 44, .35);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 76px;
  --section-y: clamp(64px, 6vw + 32px, 128px);
}
@media (min-width: 768px) { :root { --gutter: 24px; --header-h: 84px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* Taille de texte réglable (A+ / A-) : 18 px minimum */
html { font-size: 112.5%; }
html[data-fs="1"] { font-size: 125%; }
html[data-fs="2"] { font-size: 137.5%; }

/* Mode contraste élevé */
html[data-contrast="high"] {
  --sand: #FFFFFF;
  --sand-2: #F2F2F2;
  --sand-3: #D9D9D9;
  --paper: #FFFFFF;
  --night: #000000;
  --night-2: #000000;
  --night-3: #1A1A1A;
  --ink: #000000;
  --ink-soft: #1A1A1A;
  --coral: #FFB089;
  --coral-ink: #7A2A08;
  --sage-ink: #1E4430;
  --line: rgba(0, 0, 0, .6);
  --line-strong: #000;
  --on-night: #FFFFFF;
  --on-night-soft: #FFFFFF;
}
html[data-contrast="high"] .btn,
html[data-contrast="high"] .card,
html[data-contrast="high"] .site-header__bar { border: 2px solid #000 !important; }
html[data-contrast="high"] a:not(.btn) { text-decoration: underline; }
html[data-contrast="high"] .hero__media img,
html[data-contrast="high"] .media-frame img { filter: contrast(1.05); }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--sand);
  overflow-x: hidden;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  font-variation-settings: "opsz" 96, "SOFT" 50;
  overflow-wrap: break-word;
  hyphens: manual;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.005em; }
p, ul, ol, dl { margin: 0 0 1.1em; }
p { max-width: 70ch; }
a { color: var(--coral-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 650; }
em { font-style: italic; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: var(--coral); color: var(--night); }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--coral-ink); outline-offset: 3px; border-radius: 6px; }
.on-night :focus-visible, .site-footer :focus-visible { outline-color: var(--coral); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--night); color: var(--sand); padding: 12px 20px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Layout ---------- */
.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--paper { background: var(--paper); }
.section--sand2 { background: var(--sand-2); }
.section--night { background: var(--night); color: var(--on-night); }
.section--night a:not(.btn) { color: var(--coral); }
.section--night p, .section--night li { color: var(--on-night-soft); }
.section--night h2, .section--night h3 { color: var(--on-night); }

.grid { display: grid; gap: clamp(16px, 2vw, 28px); grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
@media (min-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.split { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: minmax(0, 1fr); align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .split--wide-right { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .split--top { align-items: start; }
}

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: var(--fs-small); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--coral-ink); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 10px; flex: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 10'%3E%3Cpath d='M0 5c3.5 0 3.5-4 7-4s3.5 8 7 8 3.5-8 7-8 3.5 4 7 4' fill='none' stroke='%23A8441A' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.section--night .eyebrow { color: var(--coral); }
.section--night .eyebrow::before { filter: brightness(1.7); }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); line-height: 1.65; }
.section--night .lead { color: var(--on-night-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: var(--fs-small); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ---------- 4. Boutons ---------- */
.btn {
  --btn-bg: var(--coral); --btn-fg: var(--night);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .7em 1.4em;
  border: 2px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(168, 68, 26, .55); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--dark { --btn-bg: var(--night); --btn-fg: var(--sand); }
.btn--dark:hover { box-shadow: 0 10px 24px -10px rgba(14, 27, 44, .6); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--night); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--paper); box-shadow: var(--shadow-s); }
.section--night .btn--ghost, .on-night .btn--ghost { --btn-fg: var(--sand); border-color: rgba(244, 239, 230, .45); }
.section--night .btn--ghost:hover { background: var(--night-3); }
.btn--sm { min-height: 48px; padding: .5em 1.1em; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479.98px) { .btn-row--stack-mobile > .btn { width: 100%; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em; min-height: 48px;
  font-weight: 600; color: var(--night); text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.section--night .link-arrow { color: var(--sand); }

/* ---------- 5. En-tête flottant ---------- */
.site-header {
  position: fixed; inset: 12px 0 auto; z-index: 100;
  transition: transform .4s var(--ease);
  pointer-events: none;
}
.site-header.is-hidden { transform: translateY(calc(-100% - 24px)); }
.site-header__bar {
  pointer-events: auto;
  width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; padding: 6px 8px 6px 18px;
  background: rgba(255, 253, 249, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-s);
}
.site-header.is-scrolled .site-header__bar { box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; color: var(--night); flex: none; }
.brand svg { width: 38px; height: 38px; flex: none; }
@media (max-width: 379.98px) { .brand svg { width: 32px; height: 32px; } .brand__name { font-size: 18px !important; } .brand { gap: 8px; } .site-header__bar { padding-left: 12px; } }
.brand__name { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.brand__name span { color: var(--coral-ink); font-style: italic; font-weight: 500; }

.nav { display: none; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 .7em;
  border: 0; background: none; border-radius: 999px; cursor: pointer;
  font: 500 .86rem/1 var(--font-body); color: var(--night); text-decoration: none; white-space: nowrap;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--sand-2); }
.nav__link[aria-current="page"] { background: var(--sand-2); box-shadow: inset 0 -2px 0 var(--coral); }
.nav__link svg { width: 14px; height: 14px; transition: transform .25s; }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__item { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0;
  width: 340px; padding: 10px; list-style: none; margin: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-l);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.dropdown.is-open { opacity: 1; visibility: visible; transform: none; }
.dropdown a {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 12px; align-items: center;
  padding: 10px; border-radius: var(--radius-s); color: var(--night); text-decoration: none;
}
.dropdown a:hover, .dropdown a:focus-visible { background: var(--sand); }
.dropdown__icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; background: var(--sand-2); display: grid; place-items: center; }
.dropdown__icon svg { width: 22px; height: 22px; }
.dropdown strong { font-size: .92rem; line-height: 1.3; }
.dropdown small { font-size: .78rem; color: var(--ink-soft); line-height: 1.4; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.header-phone {
  display: none; align-items: center; gap: 8px; min-height: 48px; min-width: 48px; justify-content: center;
  padding: 0 12px; border-radius: 999px; color: var(--night); text-decoration: none; font-weight: 600; font-size: .86rem; white-space: nowrap;
}
.header-phone:hover { background: var(--sand-2); }
.header-phone svg { width: 18px; height: 18px; }
.header-phone__num { display: none; }
.header-cta { display: none; white-space: nowrap; }
.a11y-tools { display: none; position: relative; }
.a11y-pop {
  position: absolute; top: calc(100% + 12px); right: 0; display: flex; gap: 4px; align-items: center;
  padding: 8px 8px 8px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
}
.a11y-pop[hidden] { display: none; }
.a11y-toggle { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; border: 1px solid var(--line) !important; }
.a11y-btn {
  min-width: 48px; min-height: 48px; border: 0; background: none; border-radius: 999px; cursor: pointer;
  font: 700 .82rem/1 var(--font-body); color: var(--night); display: inline-grid; place-items: center;
}
.a11y-btn:hover { background: var(--sand-2); }
.a11y-btn[aria-pressed="true"] { background: var(--night); color: var(--sand); }
.a11y-btn svg { width: 20px; height: 20px; }

.burger {
  width: 52px; height: 52px; border: 0; border-radius: 999px; background: var(--night); color: var(--sand);
  display: inline-grid; place-items: center; cursor: pointer;
}
.burger span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 480px) { .header-phone { display: inline-flex; } }
@media (min-width: 768px) { .header-cta { display: inline-flex; } }
@media (min-width: 1024px) {
  .nav { display: block; }
  .burger { display: none; }
  .a11y-tools { display: flex; }
  .site-header__bar { padding-left: 22px; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .brand__name { font-size: 19px; }
  .brand svg { width: 34px; height: 34px; }
  .nav__link { padding: 0 .5em; font-size: .8rem; }
  .header-actions { gap: 2px; }
  .header-cta .btn__long { display: none; }
}
.nav__item--lg, .nav__item--xl { display: none; }
@media (min-width: 1280px) { .nav__link { padding: 0 .8em; font-size: .88rem; } .nav__item--lg { display: block; } }
@media (min-width: 1600px) { .nav__item--xl { display: block; } .site-header__bar { width: min(1440px, 100% - 2 * var(--gutter)); } }

/* Menu mobile plein écran */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--sand); overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .3s, transform .35s var(--ease), visibility .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu__list { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--line); }
.mobile-menu__list > li { border-bottom: 1px solid var(--line); }
.mobile-menu__link, .mobile-menu__toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 56px; padding: 8px 4px; background: none; border: 0; cursor: pointer; text-align: left;
  font: 500 1.3rem/1.2 var(--font-display); color: var(--night); text-decoration: none;
}
.mobile-menu__toggle svg { width: 22px; height: 22px; transition: transform .3s; }
.mobile-menu__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-menu__sub { list-style: none; margin: 0; padding: 0 0 12px 12px; }
.mobile-menu__sub[hidden] { display: none; }
.mobile-menu__sub a { display: flex; align-items: center; min-height: 48px; color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.mobile-menu__sub a:hover { color: var(--night); }
.mobile-menu .btn { width: 100%; margin-bottom: 12px; }
.mobile-menu__a11y { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.mobile-menu__a11y .a11y-btn { border: 1px solid var(--line-strong); }
.mobile-menu__contact { margin-top: 24px; font-size: .95rem; color: var(--ink-soft); }
@media (min-width: 1024px) { html:not(.header-compact) .mobile-menu { display: none; } }
html.header-compact .nav, html.header-compact .a11y-tools { display: none; }
html.header-compact .burger { display: inline-grid; }

/* Fallback statique (sans JS) */
.static-nav { padding: calc(var(--header-h) + 8px) var(--gutter) 0; }
.static-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.static-nav a { display: inline-flex; min-height: 48px; align-items: center; color: var(--night); }

/* ---------- 6. Ondes sonores (motif signature) ---------- */
.wave-line { width: 100%; height: clamp(48px, 7vw, 96px); color: var(--coral); overflow: hidden; pointer-events: none; }
.wave-line svg { width: 200%; height: 100%; max-width: none; transform: translate3d(calc(var(--wave-shift, 0) * -1%), 0, 0); will-change: transform; }
.wave-line path { fill: none; stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.wave-line path:nth-child(2) { stroke: var(--sage); opacity: .9; }
.wave-line path:nth-child(3) { stroke: var(--night); opacity: .18; }
.section--night .wave-line path:nth-child(3) { stroke: var(--sand); opacity: .25; }
.wave-divider { position: relative; margin-block: -1px; }

.hero-waves { position: absolute; inset: auto 0 0; height: 55%; pointer-events: none; color: var(--coral); opacity: .55; z-index: 0; overflow: hidden; }
.hero-waves svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; max-width: none; }
.hero-waves path { fill: none; stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.hero-waves path:nth-child(even) { stroke: var(--sage); }
@media (prefers-reduced-motion: no-preference) {
  .hero-waves svg { animation: wave-drift 26s linear infinite; }
  .hero-waves g:nth-child(2) { animation: wave-drift-y 9s ease-in-out infinite alternate; }
}
@keyframes wave-drift { to { transform: translate3d(-50%, 0, 0); } }
@keyframes wave-drift-y { to { transform: translate3d(0, 10px, 0); } }

/* ---------- 7. Hero (accueil) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 28px) 0 40px;
  display: flex; align-items: center;
  background:
    radial-gradient(60% 60% at 85% 20%, rgba(232, 119, 74, .16), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(143, 175, 154, .22), transparent 70%),
    var(--sand);
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero__grid > * { min-width: 0; }
.hero__title { font-size: var(--fs-hero); line-height: 1.04; margin-bottom: .35em; font-weight: 450; letter-spacing: -.025em; text-wrap: balance; }
.hero__title-line { display: inline; }
@media (min-width: 1024px) { .hero__title-line { display: block; } }
.hero__lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 36em; margin-bottom: 1.4em; }
.hero .btn-row { margin-bottom: 14px; }
.hero__call { font-size: .92rem; color: var(--ink-soft); margin: 0 0 22px; }
.hero__call a { font-weight: 700; color: var(--night); white-space: nowrap; }
.trust { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .88rem; color: var(--ink-soft); }
.trust li { display: inline-flex; align-items: center; gap: 8px; line-height: 1.3; }
.trust strong { color: var(--night); font-weight: 700; }
.trust svg { width: 20px; height: 20px; flex: none; color: var(--sage-ink); }
.trust__stars { color: var(--coral-ink); letter-spacing: 1px; font-size: .95rem; }

/* Ondes concentriques derrière la photo : le son qui se propage */
.hero__rings { display: none; position: absolute; z-index: -1; left: 50%; top: 50%; width: 128%; height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); max-width: none; pointer-events: none; }
.hero__rings circle { fill: none; stroke: var(--coral); stroke-width: 1.2; opacity: .45; transform-origin: 300px 300px; vector-effect: non-scaling-stroke; }
.hero__rings circle:nth-child(2) { stroke: var(--sage); opacity: .7; stroke-dasharray: 2 7; }
.hero__rings circle:nth-child(3) { opacity: .3; }
.hero__rings circle:nth-child(4) { stroke: var(--sage); opacity: .35; stroke-dasharray: 1 10; }
@media (prefers-reduced-motion: no-preference) {
  .hero__rings circle { animation: ring-breathe 6s ease-in-out infinite; }
  .hero__rings circle:nth-child(2) { animation-delay: -1.5s; }
  .hero__rings circle:nth-child(3) { animation-delay: -3s; }
  .hero__rings circle:nth-child(4) { animation-delay: -4.5s; }
}
@keyframes ring-breathe { 0%, 100% { transform: scale(.97); } 50% { transform: scale(1.03); } }

/* Pastille « essai gratuit » sur la photo */
.hero-chip {
  display: none; position: absolute; top: 34px; right: -18px; margin: 0;
  align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .85rem; line-height: 1.25; max-width: 290px;
}
.hero-chip strong { display: block; color: var(--night); }
.hero-chip small { color: var(--ink-soft); font-size: .78rem; }
.hero-chip__ico { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--sage-soft); color: var(--sage-ink); display: grid; place-items: center; }
.hero-chip__ico svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-chip { animation: float-in .9s var(--ease) .9s both; }
  .hero .glass-card { animation: float-in .9s var(--ease) 1.1s both; }
}
@keyframes float-in { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 767.98px) { .hero .btn-row .btn { width: 100%; } }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px;
  border-radius: 999px; background: rgba(255, 253, 249, .8); border: 1px solid var(--line);
  font-size: .82rem; font-weight: 600; line-height: 1.3; color: var(--night);
}
.badge svg { width: 20px; height: 20px; flex: none; color: var(--sage-ink); }
.badge .stars { color: var(--coral-ink); letter-spacing: 1px; }

.hero__media { position: relative; }
.hero__photo {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  border-radius: 200px 200px var(--radius-l) var(--radius-l);
  box-shadow: var(--shadow-l); background: var(--sand-3);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14, 27, 44, .25)); }

.glass-card {
  position: relative; margin-top: 16px;
  background: rgba(255, 253, 249, .9);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center;
}
.glass-card__label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-ink); display: flex; align-items: center; gap: 8px; }
.glass-card__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage-ink); box-shadow: 0 0 0 4px var(--sage-soft); }
.glass-card__value { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; margin: 0; }
.glass-card__link { grid-column: 1 / -1; font-size: .88rem; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.mini-audiogram { grid-row: 1 / 3; grid-column: 2; width: 112px; height: 64px; color: var(--coral-ink); }
.mini-audiogram .grid-l { stroke: var(--line); stroke-width: 1; }
.mini-audiogram .curve { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 0; }
.mini-audiogram .curve-2 { stroke: var(--sage-ink); }
.mini-audiogram circle { fill: var(--paper); stroke: currentColor; stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  .mini-audiogram .curve { animation: draw 2.4s var(--ease) .8s both; }
  .mini-audiogram .curve-2 { animation-delay: 1.2s; }
}
@keyframes draw { from { stroke-dashoffset: 200; } }

@media (min-width: 768px) {
  .hero__photo { aspect-ratio: 16 / 10; }
}
@media (min-width: 1024px) {
  .hero { padding-bottom: 32px; }
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 4vw, 72px); }
  .hero__photo { aspect-ratio: auto; height: min(68svh, 640px); min-height: 380px; border-radius: 999px 999px var(--radius-l) var(--radius-l); }
  .hero__rings { display: block; }
  .hero-chip { display: flex; }
  .hero__media { isolation: isolate; }
  .glass-card {
    position: absolute; left: -56px; bottom: -22px; margin: 0; width: 300px;
    background: rgba(255, 253, 249, .82);
    -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  }
}
@media (min-width: 1024px) and (max-height: 820px) {
  .hero__lead { margin-bottom: 1em; }
  .hero .btn-row { margin-bottom: 18px; }
  .hero .eyebrow { margin-bottom: .6rem; }
}

/* Titre animé mot par mot : overflow caché + padding compensé (jambages, italique) */
.wt { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .12em .2em .04em; margin: -.08em -.12em -.2em -.04em; }
.wt > .wi { display: inline-block; }
.grad {
  background: linear-gradient(100deg, var(--coral-ink) 0%, var(--coral) 55%, #C9612F 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-right: .06em;
}
.it { font-style: italic; font-weight: 400; }
html[data-contrast="high"] .grad { background: none; color: var(--coral-ink); }
@media (prefers-reduced-motion: no-preference) {
  .wt > .wi { animation: word-up .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 100ms); }
}
@keyframes word-up { from { transform: translate3d(0, 110%, 0); } to { transform: none; } }

/* Hero des pages internes */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) 0 clamp(48px, 6vw, 96px);
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(232, 119, 74, .14), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(143, 175, 154, .2), transparent 70%),
    var(--sand);
}
.page-hero .hero-waves { height: 45%; opacity: .45; }
.page-hero__grid { position: relative; z-index: 1; }
.page-hero h1 { max-width: 18ch; }
.page-hero--text h1 { max-width: 22ch; }
.page-hero .media-frame { aspect-ratio: 4 / 3; }
.page-hero--text { padding-bottom: clamp(32px, 4vw, 64px); }

/* Fil d'Ariane */
.breadcrumb { margin-bottom: 1.4rem; font-size: var(--fs-small); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin: 0 .6em; color: var(--ink-soft); opacity: .6; }
.breadcrumb a { color: var(--ink-soft); display: inline-flex; min-height: 32px; align-items: center; }
.breadcrumb [aria-current] { color: var(--night); font-weight: 600; }

/* ---------- 8. Médias ---------- */
.media-frame { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--sand-3); box-shadow: var(--shadow); aspect-ratio: 3 / 2; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--arch { border-radius: 999px 999px var(--radius-l) var(--radius-l); aspect-ratio: 4 / 5; }
@media (max-width: 767.98px) { .media-frame--arch { aspect-ratio: 4 / 3.4; border-radius: 160px 160px var(--radius) var(--radius); } }

/* ---------- 9. Bandeau défilant ---------- */
.marquee { background: var(--night); color: var(--sand); overflow: hidden; padding: 18px 0; position: relative; }
.marquee__track { display: flex; width: max-content; }
.marquee__group { display: flex; align-items: center; gap: 40px; padding-right: 40px; list-style: none; margin: 0; padding-left: 0; }
.marquee__group li { display: inline-flex; align-items: center; gap: 40px; white-space: nowrap; font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); }
.marquee__group li::after { content: ""; width: 26px; height: 10px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 10'%3E%3Cpath d='M0 5c3.5 0 3.5-4 7-4s3.5 8 7 8 3.5-8 7-8 3.5 4 7 4' fill='none' stroke='%23E8774A' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.marquee__group .tag { font-family: var(--font-body); font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 40s linear infinite; }
  .marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .marquee__group { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
}
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- 10. Chiffres clés ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.stats > * { min-width: 0; }
.stat { background: var(--paper); padding: clamp(20px, 3vw, 36px) clamp(16px, 2vw, 28px); }
.stat__num { font-family: var(--font-display); font-size: var(--fs-stat); line-height: 1; margin: 0 0 .3em; color: var(--night); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat__num small { font-size: .45em; color: var(--coral-ink); margin-left: .1em; }
.stat__label { margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.45; }
.stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); } .stat:last-child:nth-child(odd) { grid-column: auto; } }

/* ---------- 11. Cartes ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 32px); box-shadow: var(--shadow-s);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.card > :last-child { margin-bottom: 0; }
.card--lift:hover, .card--lift:focus-within { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--sand); display: grid; place-items: center; margin-bottom: 18px; color: var(--coral-ink); flex: none; }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); }
.card--night { background: var(--night-2); border-color: rgba(244, 239, 230, .12); color: var(--on-night); }
.card--night p { color: var(--on-night-soft); }
.card--night .card__icon { background: var(--night-3); color: var(--coral); }

/* Cartes d'appareils illustrées */
.device-card { padding: 0; overflow: hidden; }
.device-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand-3); }
.device-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.device-card:hover .device-card__media img { transform: scale(1.04); }
.device-card__body { padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; flex: 1; }
.device-card__body p { flex: 1; }
.device-card__meta { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border-radius: 999px; background: var(--sand); font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.chip--sage { background: var(--sage-soft); color: var(--sage-ink); }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.device-card h3 a { color: inherit; text-decoration: none; }

/* ---------- 12. Parcours patient ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); counter-reset: step; }
.steps > li { min-width: 0; }
.step { position: relative; padding: 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); height: 100%; }
.step__num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--night); color: var(--sand); font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 14px; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
  .steps::before { content: ""; position: absolute; }
  .step::after { content: ""; position: absolute; top: 47px; right: -15px; width: 16px; height: 2px; background: var(--coral); }
  .steps > li:last-child .step::after { display: none; }
}

@media (min-width: 768px) { .steps.steps--vertical { grid-template-columns: minmax(0, 1fr); } }
.steps--vertical .step::after { display: none; }

/* ---------- 13. Outils interactifs (test, démo, simulateur) ---------- */
.tool {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(20px, 3vw, 40px); box-shadow: var(--shadow);
}
.section--night .tool { background: var(--night-2); border-color: rgba(244, 239, 230, .12); color: var(--on-night); }
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-s);
  background: var(--sand); border-left: 4px solid var(--coral); font-size: .92rem; line-height: 1.55; margin-bottom: 20px;
}
.notice svg { width: 22px; height: 22px; flex: none; color: var(--coral-ink); margin-top: 2px; }
.notice p { margin: 0; }
.notice--sage { border-left-color: var(--sage-ink); background: var(--sage-soft); }
.notice--sage svg { color: var(--sage-ink); }
.section--night .notice { background: var(--night-3); color: var(--on-night); }
.section--night .notice svg { color: var(--coral); }

.ht__stage[hidden] { display: none; }
.ht__progress { display: flex; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; flex-wrap: wrap; }
.ht__progress li { flex: 1 1 0; min-width: 44px; text-align: center; font-size: .75rem; font-weight: 600; padding: 6px 2px; border-radius: 8px; background: var(--sand); color: var(--ink-soft); }
.ht__progress li.is-current { background: var(--night); color: var(--sand); }
.ht__progress li.is-done { background: var(--sage-soft); color: var(--sage-ink); }
.ht__freq { font-family: var(--font-display); font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem); line-height: 1; margin: 6px 0; }
.ht__ear { font-weight: 600; color: var(--coral-ink); }
.ht__pulse { width: 120px; height: 120px; margin: 12px auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); position: relative; color: var(--coral-ink); }
.ht__pulse svg { width: 56px; height: 56px; }
.ht__pulse.is-playing::before, .ht__pulse.is-playing::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--coral); animation: ripple 1.6s ease-out infinite; }
.ht__pulse.is-playing::after { animation-delay: .8s; }
@keyframes ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ht__pulse.is-playing::before, .ht__pulse.is-playing::after { animation: none; opacity: .6; } }
.ht__answers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 480px) { .ht__answers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ht__answers .btn { width: 100%; }
.ht__level { font-size: .85rem; color: var(--ink-soft); margin-top: 12px; text-align: center; }
.ht__center { text-align: center; }
.ht__center p { margin-inline: auto; }
.audiogram { width: 100%; height: auto; max-height: 320px; background: var(--sand); border-radius: var(--radius-s); }
.audiogram text { font: 600 11px var(--font-body); fill: var(--ink-soft); }
.audiogram .zone { opacity: .5; }
.result-level { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 700; margin-bottom: 10px; }
.result-level--ok { background: var(--sage-soft); color: var(--sage-ink); }
.result-level--watch { background: #FBE3D6; color: var(--coral-ink); }

.demo__controls { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin: 20px 0; }
@media (min-width: 480px) { .demo__controls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.seg { display: flex; padding: 4px; border-radius: 999px; background: var(--sand-2); gap: 4px; }
.section--night .seg { background: var(--night-3); }
.seg button {
  flex: 1; min-height: 48px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 600 .92rem/1.2 var(--font-body); color: inherit; padding: 0 12px;
}
.seg button[aria-pressed="true"] { background: var(--coral); color: var(--night); box-shadow: var(--shadow-s); }
.demo__viz { height: 90px; display: flex; align-items: center; justify-content: center; gap: 4px; margin: 10px 0 16px; }
.demo__viz span { width: 6px; border-radius: 4px; background: var(--coral); height: 12%; transition: height .12s linear; }
.demo__viz.is-aided span:nth-child(odd) { background: var(--sage); }
.demo__caption { min-height: 3.4em; font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); line-height: 1.4; }
.demo__caption .lost { opacity: .35; filter: blur(1.5px); }

.sim fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.sim legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--paper); font-weight: 500; font-size: .95rem; cursor: pointer; transition: background .2s, border-color .2s;
}
.choice input:checked + span { background: var(--night); color: var(--sand); border-color: var(--night); }
.choice input:focus-visible + span { outline: 3px solid var(--coral-ink); outline-offset: 3px; }
.sim__result { margin-top: 8px; padding: 20px; border-radius: var(--radius); background: var(--sand); border: 1px dashed var(--line-strong); }
.sim__result ul { padding-left: 1.2em; margin-bottom: .6em; }
.sim__result li { margin-bottom: .4em; }

/* ---------- 14. Témoignages (carrousel scroll-snap) ---------- */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 86%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 20px; margin: 0 -4px; overscroll-behavior-x: contain; scrollbar-width: thin; list-style: none; }
.carousel > * { scroll-snap-align: start; min-width: 0; }
@media (min-width: 768px) { .carousel { grid-auto-columns: minmax(0, calc(50% - 8px)); } }
@media (min-width: 1024px) { .carousel { grid-auto-columns: minmax(0, calc((100% - 32px) / 3)); overflow: visible; } }
.quote { margin: 0; height: 100%; display: flex; flex-direction: column; }
.quote__mark { font-family: var(--font-display); font-size: 4rem; line-height: .6; color: var(--coral); height: .5em; }
.quote blockquote { margin: 0 0 20px; font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.5; flex: 1; }
.quote figcaption { font-size: .92rem; color: var(--ink-soft); }
.quote figcaption strong { color: var(--night); display: block; }
.stars { color: var(--coral-ink); letter-spacing: 2px; }
.carousel-nav { display: flex; gap: 8px; justify-content: flex-end; }
.carousel-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--paper); cursor: pointer; display: grid; place-items: center; color: var(--night); }
.carousel-nav button svg { width: 20px; height: 20px; }
@media (min-width: 1024px) { .carousel-nav { display: none; } }

/* ---------- 15. Carte et heures ---------- */
.map-box { position: relative; width: 100%; border-radius: var(--radius-l); overflow: hidden; background: var(--night-2); aspect-ratio: 4 / 3; color: var(--sand); }
@media (max-width: 479.98px) { .map-box { aspect-ratio: 4 / 5; } }
.map-box svg.map-art { width: 100%; height: 100%; object-fit: cover; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-box__overlay { position: absolute; inset: auto 16px 16px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.map-box__overlay .btn { flex: 1 1 200px; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours td { text-align: right; padding-left: 12px; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--night); }
.hours tr.is-today th::after { content: " · aujourd'hui"; font-weight: 500; color: var(--sage-ink); font-size: .85em; }
.section--night .hours th, .section--night .hours td { border-color: rgba(244, 239, 230, .15); }
.section--night .hours tr.is-today th, .section--night .hours tr.is-today td { color: var(--sand); }
.section--night .hours tr.is-today th::after { color: var(--sage); }
.areas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.nap { font-style: normal; line-height: 1.7; }
.nap a { font-weight: 600; }
.info-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 14px; }
.info-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; }
.info-list .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--sand); display: grid; place-items: center; color: var(--coral-ink); }
.section--night .info-list .ico { background: var(--night-3); color: var(--coral); }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list strong { display: block; }

/* ---------- 16. FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .3s, border-color .3s; }
.faq-item[open] { box-shadow: var(--shadow-s); border-color: var(--line-strong); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 20px; font-family: var(--font-display); font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.35; font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--sand) no-repeat center / 16px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2v12M2 8h12' stroke='%230E1B2C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform .3s var(--ease), background-color .3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--coral); }
.faq-item summary:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.faq-a { padding: 0 20px 20px; color: var(--ink-soft); }
.faq-a > :last-child { margin-bottom: 0; }

/* ---------- 17. Prix / tableaux ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.table-wrap:focus-visible { outline: 3px solid var(--coral-ink); }
.table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .95rem; }
.table caption { text-align: left; padding: 16px 20px 0; font-size: .85rem; color: var(--ink-soft); caption-side: bottom; padding-bottom: 16px; }
.table th, .table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--sand-2); font-weight: 600; font-size: .88rem; }
.table tbody th { font-weight: 600; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table .price { white-space: nowrap; font-weight: 600; }
.scroll-hint { font-size: .82rem; color: var(--ink-soft); margin: 8px 0 0; }
@media (min-width: 768px) { .scroll-hint { display: none; } }

.price-cards .card { text-align: left; }
.price { font-family: var(--font-display); font-size: clamp(1.5rem, 1.3rem + 1vw, 2.1rem); line-height: 1.1; margin: .2em 0 .4em; color: var(--night); }
.price small { font-family: var(--font-body); font-size: .45em; color: var(--ink-soft); font-weight: 500; }
.price-card--featured { background: var(--night); color: var(--on-night); border-color: var(--night); }
.price-card--featured p, .price-card--featured li { color: var(--on-night-soft); }
.price-card--featured .price { color: var(--sand); }
.price-card--featured .price small { color: var(--on-night-soft); }
.price-card--featured .chip { background: var(--coral); color: var(--night); }
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sage-soft) no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2 4.8 9 10 3' fill='none' stroke='%2335624A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.section--night .checklist li::before, .price-card--featured .checklist li::before { background-color: var(--night-3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2 4.8 9 10 3' fill='none' stroke='%238FAF9A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- 18. Formulaires ---------- */
.form { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.form > * { min-width: 0; }
@media (min-width: 768px) { .form--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.req { color: var(--coral-ink); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: 400 max(16px, 1rem)/1.4 var(--font-body); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; padding-right: 44px; background: var(--paper) no-repeat right 16px center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m2 5 5 5 5-5' fill='none' stroke='%230E1B2C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--night); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--night); box-shadow: 0 0 0 4px rgba(232, 119, 74, .35); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--error); }
.error-msg { color: var(--error); font-size: .88rem; font-weight: 600; margin: 0; display: flex; gap: 6px; align-items: flex-start; }
.error-msg:empty { display: none; }
.error-msg::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--error); color: #fff; font-size: .7rem; margin-top: 2px; }
.check { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .92rem; line-height: 1.55; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--night); cursor: pointer; }
.form-success { padding: 24px; border-radius: var(--radius); background: var(--sage-soft); border: 1px solid var(--sage); }
.form-success h3 { color: var(--sage-ink); }
.form-success[hidden] { display: none; }
.form-error-summary { padding: 16px 20px; border-radius: var(--radius-s); background: #FBE6E3; border-left: 4px solid var(--error); }
.form-error-summary[hidden] { display: none; }
.form-error-summary ul { margin: 6px 0 0; padding-left: 1.2em; }
.form-error-summary a { color: var(--error); font-weight: 600; }

/* Formulaire en plusieurs étapes */
.stepper { margin-bottom: 28px; }
.stepper__bar { height: 8px; border-radius: 999px; background: var(--sand-2); overflow: hidden; }
.stepper__fill { height: 100%; width: 25%; background: linear-gradient(90deg, var(--sage), var(--coral)); border-radius: inherit; transition: width .5s var(--ease); }
.stepper__labels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; list-style: none; padding: 0; margin: 12px 0 0; font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.stepper__labels li { min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.stepper__labels .is-current { color: var(--night); }
.stepper__labels .is-done { color: var(--sage-ink); }
.ms-step { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.ms-step legend { font-family: var(--font-display); font-size: var(--fs-h3); padding: 0; margin-bottom: 18px; }
.js-steps .ms-step[hidden] { display: none; }
.ms-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.ms-nav .btn { min-width: 160px; }
@media (max-width: 479.98px) { .ms-nav .btn { flex: 1 1 100%; } }
.option-cards { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .option-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.option-card { position: relative; display: block; }
.option-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.option-card__box { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 16px; min-height: 72px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); transition: border-color .2s, background .2s, box-shadow .2s; }
.option-card__box .ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--sand); display: grid; place-items: center; color: var(--coral-ink); }
.option-card__box .ico svg { width: 22px; height: 22px; }
.option-card__box strong { line-height: 1.3; }
.option-card__box small { color: var(--ink-soft); font-size: .85rem; line-height: 1.4; }
.option-card input:checked + .option-card__box { border-color: var(--night); background: var(--sand); box-shadow: inset 0 0 0 1px var(--night); }
.option-card input:focus-visible + .option-card__box { outline: 3px solid var(--coral-ink); outline-offset: 3px; }
.recap { display: grid; gap: 4px 16px; grid-template-columns: minmax(0, 1fr); margin: 0 0 20px; padding: 20px; border-radius: var(--radius); background: var(--sand); }
@media (min-width: 480px) { .recap { grid-template-columns: max-content minmax(0, 1fr); } }
.recap dt { font-weight: 600; }
.recap dd { margin: 0 0 8px; color: var(--ink-soft); overflow-wrap: anywhere; }

/* ---------- 19. Contenu rédactionnel ---------- */
.prose { font-size: 1rem; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.1rem); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose a { font-weight: 500; }
.prose > :first-child { margin-top: 0; }
.toc { padding: 20px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); margin-bottom: 32px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { display: inline-block; padding: 4px 0; }
@media (min-width: 1024px) { .sticky-aside { position: sticky; top: calc(var(--header-h) + 32px); } }

/* ---------- 20. Blog (aperçus) ---------- */
.post-card { padding: 0; overflow: hidden; }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-3); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: .82rem; color: var(--ink-soft); margin-bottom: 8px; }
.post-card h3 { font-size: 1.25rem; }
.post-card h3 a { color: inherit; text-decoration: none; }

/* ---------- 21. Appel à l'action final ---------- */
.cta-final { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-l); background: var(--night); color: var(--on-night); padding: clamp(36px, 6vw, 88px) clamp(20px, 5vw, 72px); }
.cta-final h2 { color: var(--sand); max-width: 18ch; }
.cta-final p { color: var(--on-night-soft); max-width: 46ch; }
.cta-final .hero-waves { opacity: .5; height: 70%; z-index: -1; }
.cta-final__grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 1024px) { .cta-final__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); } }
.cta-final .btn-row { flex-direction: column; }
.cta-final .btn-row .btn { width: 100%; }
.cta-final .btn--ghost { --btn-fg: var(--sand); border-color: rgba(244, 239, 230, .45); }
.cta-final .btn--ghost:hover { background: var(--night-3); }

/* ---------- 22. Pied de page ---------- */
.site-footer { background: var(--night); color: var(--on-night-soft); padding: clamp(56px, 7vw, 96px) 0 32px; font-size: .95rem; }
.site-footer a { color: var(--on-night); text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; }
.site-footer a:hover { color: var(--coral); text-decoration: underline; }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-grid { display: grid; gap: 40px 32px; grid-template-columns: minmax(0, 1fr); }
.footer-grid > * { min-width: 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.footer-brand .brand { color: var(--sand); }
.footer-brand .brand__name span { color: var(--coral); }
.footer-brand p { margin-top: 16px; }
.footer-hours { width: 100%; border-collapse: collapse; }
.footer-hours th, .footer-hours td { padding: 4px 0; text-align: left; font-weight: 400; vertical-align: top; }
.footer-hours td { text-align: right; padding-left: 12px; color: var(--on-night); }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(244, 239, 230, .25); justify-content: center; }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(244, 239, 230, .15); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-bottom button { background: none; border: 0; color: var(--on-night); font: inherit; cursor: pointer; min-height: 40px; padding: 0; text-decoration: underline; }
.footer-wave { color: var(--coral); margin-bottom: 40px; }
@media (max-width: 767.98px) { .site-footer { padding-bottom: calc(32px + 84px + env(safe-area-inset-bottom)); } }

/* ---------- 23. Barre d'appel mobile (< 768 px uniquement) ---------- */
.callbar { display: none; }
@media (max-width: 767.98px) {
  .callbar {
    position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 249, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -12px rgba(14, 27, 44, .25);
    transition: transform .35s var(--ease);
  }
  .callbar.is-hidden { transform: translateY(110%); }
  .callbar .btn { width: 100%; min-height: 52px; padding: .5em .8em; font-size: .95rem; }
}

/* ---------- 24. Bannière témoins (Loi 25) ---------- */
.cookie {
  position: fixed; z-index: 120; left: 12px; right: 12px; bottom: 12px;
  max-width: 560px; margin-left: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-l);
  padding: 20px; font-size: .92rem; line-height: 1.55;
}
.cookie[hidden] { display: none; }
.cookie h2 { font-size: 1.2rem; margin-bottom: .4em; }
.cookie p { margin-bottom: 14px; }
.cookie .btn-row .btn { flex: 1 1 140px; min-height: 48px; }
.cookie__prefs { margin: 0 0 14px; padding: 14px; background: var(--sand); border-radius: var(--radius-s); }
.cookie__prefs[hidden] { display: none; }
.cookie__prefs .check { margin-bottom: 10px; }
@media (max-width: 767.98px) { .cookie { bottom: calc(84px + env(safe-area-inset-bottom)); max-height: calc(100svh - 120px); overflow-y: auto; } }

/* ---------- 25. Apparitions au défilement (jamais cachées sans JS) ---------- */
.reveal-ready .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 26. Page 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) 0 60px; }
.notfound__code { font-family: var(--font-display); font-size: clamp(5rem, 3rem + 12vw, 12rem); line-height: 1; color: var(--coral-ink); margin: 0; font-style: italic; }
.notfound p { margin-inline: auto; }
.notfound .btn-row { justify-content: center; }

/* ---------- 27. Impression ---------- */
@media print {
  .site-header, .callbar, .cookie, .mobile-menu, .hero-waves, .wave-line, .marquee { display: none !important; }
  body { background: #fff; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}

/* Adresses courriel longues : coupure autorisée pour éviter tout débordement en petit écran */
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* ---------- 28. Pages de services : grille auto et heros distincts ---------- */
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.page-hero h1 { text-wrap: balance; }

/* Hub /services : centré, accès rapide aux services */
.ph-center { text-align: center; }
.ph-center .breadcrumb ol { justify-content: center; }
.ph-center h1 { margin-inline: auto; max-width: 22ch; }
.ph-center .lead { margin-inline: auto; max-width: 60ch; }
.quicknav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 28px 0 0; }
.quicknav a { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 18px 6px 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-s); color: var(--night); font-weight: 600; font-size: .92rem; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.quicknav a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.quicknav .ico { width: 38px; height: 38px; border-radius: 50%; background: var(--sand); color: var(--coral-ink); display: grid; place-items: center; }
.quicknav svg { width: 20px; height: 20px; }

/* Ajustement : fond nuit, courbe de réglage */
.ph-night { background: radial-gradient(60% 80% at 90% 10%, rgba(232,119,74,.22), transparent 70%), var(--night); color: var(--on-night); }
.ph-night h1 { color: var(--sand); }
.ph-night .lead, .ph-night .breadcrumb a, .ph-night .breadcrumb li::before { color: var(--on-night-soft); }
.ph-night .breadcrumb [aria-current] { color: var(--sand); }
.ph-night .eyebrow { color: var(--coral); }
.ph-night .btn--ghost { --btn-fg: var(--sand); border-color: rgba(244,239,230,.45); }
.fit-card { position: relative; margin: -60px 16px 0; padding: 16px 18px; border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-l); }
.fit-card p { margin: 0 0 6px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-ink); }
.fit-card svg { width: 100%; height: 70px; }
.fit-card .target { fill: none; stroke: var(--sage-ink); stroke-width: 2; stroke-dasharray: 4 5; }
.fit-card .meas { fill: none; stroke: var(--coral-ink); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 320; }
@media (prefers-reduced-motion: no-preference) { .fit-card .meas { animation: draw-long 2.6s var(--ease) .6s both; } }
@keyframes draw-long { from { stroke-dashoffset: 320; } }
@media (min-width: 1024px) { .ph-media { position: relative; } .fit-card { position: absolute; left: -40px; bottom: 28px; width: 300px; margin: 0; } }

/* Entretien : photo à gauche, puces de garanties */
.ph-reverse { background: var(--sand-2); }
@media (min-width: 1024px) { .ph-reverse .page-hero__grid > :first-child { order: 2; } }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.pill-row li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--paper); font-size: .88rem; font-weight: 600; }
.pill-row li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage-ink); }

/* Protections : photo plein cadre */
.ph-photo { min-height: min(78svh, 720px); display: flex; align-items: flex-end; color: var(--sand); background: var(--night); }
.ph-photo__bg { position: absolute; inset: 0; z-index: -1; }
.ph-photo__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.ph-photo__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,27,44,.94) 0%, rgba(14,27,44,.78) 45%, rgba(14,27,44,.15) 100%); }
@media (max-width: 767.98px) { .ph-photo__bg::after { background: linear-gradient(180deg, rgba(14,27,44,.4) 0%, rgba(14,27,44,.94) 55%); } }
.ph-photo h1 { color: var(--sand); max-width: 16ch; }
.ph-photo .lead { color: var(--on-night-soft); max-width: 46ch; }
.ph-photo .breadcrumb a, .ph-photo .breadcrumb li::before { color: var(--on-night-soft); }
.ph-photo .breadcrumb [aria-current] { color: var(--sand); }
.ph-photo .eyebrow { color: var(--coral); }
.ph-photo .btn--ghost { --btn-fg: var(--sand); border-color: rgba(244,239,230,.5); }
.use-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.use-tags li { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(244,239,230,.35); font-size: .85rem; font-weight: 600; }

/* Acouphènes : dégradé apaisant, fréquence qui s'estompe */
.ph-calm { background: linear-gradient(160deg, var(--night) 0%, #1F3A3A 60%, #3E6150 100%); color: var(--on-night); text-align: center; }
.ph-calm h1 { color: var(--sand); margin-inline: auto; max-width: 18ch; }
.ph-calm .lead { color: var(--on-night-soft); margin-inline: auto; }
.ph-calm .breadcrumb ol, .ph-calm .btn-row { justify-content: center; }
.ph-calm .breadcrumb a, .ph-calm .breadcrumb li::before { color: var(--on-night-soft); }
.ph-calm .breadcrumb [aria-current] { color: var(--sand); }
.ph-calm .eyebrow { color: var(--sage); }
.ph-calm .btn--ghost { --btn-fg: var(--sand); border-color: rgba(244,239,230,.45); }
.ring-line { display: block; width: min(720px, 100%); height: 90px; margin: 0 auto 8px; }
.ring-line path { fill: none; stroke-linecap: round; }
.ring-line .hi { stroke: var(--coral); stroke-width: 1.6; }
.ring-line .calm { stroke: var(--sage); stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) { .ring-line .hi { animation: fade-ring 5s ease-in-out infinite alternate; } }
@keyframes fade-ring { from { opacity: 1; } to { opacity: .15; } }
.alert-box { border-left: 4px solid var(--error); background: #FBE6E3; padding: 16px 20px; border-radius: var(--radius-s); }
.alert-box p:last-child, .alert-box ul:last-child { margin-bottom: 0; }

/* ---------- 29. Pages appareils, couverture, clinique, à propos, blog ---------- */
/* Jauges (illustration de caractéristiques) */
.meters { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; max-width: 420px; }
.meters li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: .9rem; font-weight: 600; }
.meter { display: inline-flex; gap: 4px; }
.meter i { width: 22px; height: 8px; border-radius: 4px; background: var(--line); }
.ph-battery .meter i { background: rgba(244,239,230,.2); }
.meter[data-v="1"] i:nth-child(-n+1), .meter[data-v="2"] i:nth-child(-n+2), .meter[data-v="3"] i:nth-child(-n+3), .meter[data-v="4"] i:nth-child(-n+4), .meter[data-v="5"] i { background: var(--coral); }

/* Contour : photo verticale arrondie, jauges */
.ph-spec .media-frame { aspect-ratio: 4 / 5; border-radius: var(--radius-l) var(--radius-l) 160px var(--radius-l); }
@media (max-width: 1023.98px) { .ph-spec .media-frame { aspect-ratio: 4 / 3; } }

/* Intra : photo ronde centrée avec orbite */
.ph-circle { text-align: center; }
.ph-circle .breadcrumb ol, .ph-circle .btn-row { justify-content: center; }
.ph-circle h1, .ph-circle .lead { margin-inline: auto; }
.ph-circle h1 { max-width: 20ch; }
.orbit { position: relative; width: min(300px, 70vw); aspect-ratio: 1; margin: 0 auto 28px; }
.orbit img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-l); }
.orbit::before, .orbit::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 1.5px dashed var(--coral); opacity: .55; }
.orbit::after { inset: -38px; border-style: solid; border-color: var(--sage); opacity: .4; }
@media (prefers-reduced-motion: no-preference) { .orbit::before { animation: spin 40s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Rechargeables : nuit + batterie animée */
.ph-battery { background: radial-gradient(50% 70% at 10% 90%, rgba(143,175,154,.25), transparent 70%), var(--night); color: var(--sand); }
.ph-battery h1 { color: var(--sand); }
.ph-battery .lead { color: var(--on-night-soft); }
.ph-battery .eyebrow { color: var(--sage); }
.ph-battery .breadcrumb a, .ph-battery .breadcrumb li::before { color: var(--on-night-soft); }
.ph-battery .breadcrumb [aria-current] { color: var(--sand); }
.ph-battery .btn--ghost { --btn-fg: var(--sand); border-color: rgba(244,239,230,.45); }
.battery { display: flex; align-items: center; gap: 14px; margin-top: 26px; font-weight: 600; }
.battery svg { width: 92px; height: 44px; flex: none; }
.battery .lvl { fill: var(--sage); transform-origin: 8px 22px; }
@media (prefers-reduced-motion: no-preference) { .battery .lvl { animation: charge 3.5s var(--ease) infinite; } }
@keyframes charge { 0% { transform: scaleX(.15); } 70%, 100% { transform: scaleX(1); } }

/* Invisibles : épuré, blanc */
.ph-minimal { background: #FFFFFF; }
.ph-minimal .media-frame { box-shadow: none; background: #FFFFFF; }
.ghost { color: transparent; -webkit-text-stroke: 1.5px var(--night); font-style: italic; }
html[data-contrast="high"] .ghost { color: var(--night); -webkit-text-stroke: 0; }

/* Couverture : pile de cartes « programmes » */
.ph-docs { background: var(--sand-2); }
.cardstack { position: relative; height: 420px; max-width: 420px; width: 100%; margin: 0 auto; }
.cardstack span { position: absolute; left: 50%; top: 50%; width: min(260px, 80%); padding: 18px 20px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; translate: -50% -50%; border-left: 6px solid var(--c, var(--coral)); }
.cardstack small { display: block; font-family: var(--font-body); font-size: .78rem; color: var(--ink-soft); margin-top: 4px; }
.cardstack span:nth-child(1) { rotate: -6deg; margin-top: -138px; margin-left: -28px; --c: var(--sage-ink); }
.cardstack span:nth-child(2) { rotate: 4deg; margin-top: -46px; margin-left: 28px; --c: var(--night); }
.cardstack span:nth-child(3) { rotate: -3deg; margin-top: 46px; margin-left: -22px; --c: var(--coral-ink); }
.cardstack span:nth-child(4) { rotate: 5deg; margin-top: 138px; margin-left: 24px; }

/* Clinique : carte postale (photo pleine largeur + carte d'adresse) */
.postcard { position: relative; margin-top: 32px; }
.postcard .media-frame { aspect-ratio: 21 / 9; }
@media (max-width: 767.98px) { .postcard .media-frame { aspect-ratio: 4 / 3; } }
.postcard__card { position: relative; margin: -48px 16px 0; padding: 20px 22px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-l); max-width: 380px; }
@media (min-width: 768px) { .postcard__card { position: absolute; right: 32px; bottom: -40px; margin: 0; } }
.postcard__card .stamp { float: right; width: 54px; height: 54px; margin: 0 0 8px 12px; color: var(--coral-ink); }

/* À propos : grande année */
.bigyear { font-family: var(--font-display); font-size: clamp(5.5rem, 3rem + 14vw, 14rem); line-height: .85; margin: 0; color: transparent; -webkit-text-stroke: 1.5px var(--coral-ink); font-style: italic; letter-spacing: -.04em; }
html[data-contrast="high"] .bigyear { color: var(--coral-ink); -webkit-text-stroke: 0; }
.avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.6rem; color: var(--sand); background: var(--night); margin-bottom: 16px; flex: none; }
.avatar--coral { background: var(--coral); color: var(--night); }
.avatar--sage { background: var(--sage); color: var(--night); }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line-strong); }
.timeline li { position: relative; padding: 0 0 24px 26px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px var(--sand); }
.timeline strong { display: block; font-family: var(--font-display); font-size: 1.3rem; }

/* Blog : une à la manière d'un magazine */
.feature { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--paper); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); }
.feature > * { min-width: 0; }
@media (min-width: 1024px) { .feature { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.feature__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.feature__body { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.feature__body h2 a { color: inherit; text-decoration: none; }

/* Articles */
.progress { position: fixed; z-index: 101; top: 0; left: 0; height: 4px; width: 100%; background: var(--coral); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) { .progress { animation: grow linear both; animation-timeline: scroll(root); } }
@supports not (animation-timeline: scroll()) { .progress { display: none; } }
@keyframes grow { to { transform: scaleX(1); } }
.article-hero { padding: calc(var(--header-h) + 40px) 0 0; }
.article-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); max-width: 24ch; text-wrap: balance; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--ink-soft); margin-bottom: 28px; }
.article-cover { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 21 / 9; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767.98px) { .article-cover { aspect-ratio: 3 / 2; } }
.article-layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
.article-layout > * { min-width: 0; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 250px) minmax(0, 720px); justify-content: center; gap: 64px; } }
.prose .lede { font-size: var(--fs-lead); color: var(--ink); }
.callout { padding: 18px 22px; border-radius: var(--radius); background: var(--sage-soft); margin: 1.6em 0; }
.callout p:last-child { margin: 0; }
.author { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); margin-top: 40px; }
.author .avatar { margin: 0; }
.author p { margin: 0; }

/* Pile de programmes : cartes en escalier, sans superposition */
.cardstack { height: auto; display: grid; gap: 14px; padding: 12px 0; }
.cardstack span { position: static; translate: none; margin: 0 !important; width: min(280px, 86%); }
.cardstack span:nth-child(odd) { justify-self: start; }
.cardstack span:nth-child(even) { justify-self: end; }

/* ---------- 30. Corrections et bandeaux photo des heros ---------- */
/* Le sommaire ne s'étire plus sur toute la hauteur de l'article */
.sticky-aside, .toc { align-self: start; }
.toc ol { padding-left: 1.2em; }
.toc li { margin: 0; line-height: 1.4; }
.toc a { padding: 5px 0; font-size: .92rem; }
@media (min-width: 1024px) { .toc.sticky-aside { max-height: calc(100vh - var(--header-h) - 64px); overflow-y: auto; } }

/* Bandeau photo sous un hero centré */
.hero-banner { margin-top: clamp(28px, 4vw, 48px); aspect-ratio: 21 / 8; border-radius: var(--radius-l); }
@media (max-width: 767.98px) { .hero-banner { aspect-ratio: 16 / 10; } }
.ph-calm .hero-banner { box-shadow: 0 30px 70px -20px rgba(0,0,0,.5); }

/* À propos : la grande année chevauche la photo */
.year-photo { position: relative; }
.year-photo .bigyear { position: relative; z-index: 1; margin: 0 0 -.32em -.04em; }
.year-photo .media-frame { aspect-ratio: 4 / 3; }

/* ---------- 31. Heros « photo plein cadre » des pages intérieures ---------- */
/* La photo occupe tout le hero, y compris derrière l'en-tête flottant ;
   un voile en dégradé garantit la lisibilité du texte. */
.ph-cover {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(460px, 74svh, 720px);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 clamp(40px, 6vw, 80px);
  background: var(--night); color: var(--sand); text-align: left;
}
.ph-cover .ph-bg { position: absolute; inset: 0; z-index: -2; }
.ph-cover .ph-bg img { width: 100%; height: 100%; object-fit: cover; }
.ph-cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(14,27,44,.94) 0%, rgba(14,27,44,.82) 38%, rgba(14,27,44,.35) 72%, rgba(14,27,44,.12) 100%);
}
.ph-cover--sage::before { background: linear-gradient(90deg, rgba(22,46,40,.95) 0%, rgba(22,46,40,.84) 38%, rgba(22,46,40,.38) 72%, rgba(22,46,40,.12) 100%); }
.ph-cover--warm::before { background: linear-gradient(90deg, rgba(43,27,20,.94) 0%, rgba(43,27,20,.82) 38%, rgba(43,27,20,.35) 72%, rgba(43,27,20,.1) 100%); }
@media (max-width: 767.98px) {
  .ph-cover { min-height: 0; padding-top: calc(var(--header-h) + 140px); }
  .ph-cover::before, .ph-cover--sage::before, .ph-cover--warm::before { background: linear-gradient(180deg, rgba(14,27,44,.25) 0%, rgba(14,27,44,.86) 34%, rgba(14,27,44,.96) 100%); }
}
.ph-cover .page-hero__grid { width: min(var(--max), 100% - 2 * var(--gutter)); display: block; }
.ph-cover .page-hero__grid > *:not(.breadcrumb), .ph-cover .page-hero__grid > div > * { max-width: 680px; }
.ph-cover h1, .ph-cover .ghost { color: var(--sand); -webkit-text-stroke: 0; max-width: 18ch; margin-inline: 0; text-align: left; }
.ph-cover .ghost { font-style: italic; color: var(--coral); }
.ph-cover .lead, .ph-cover p { color: var(--on-night-soft); margin-inline: 0; text-align: left; }
.ph-cover .eyebrow { color: var(--coral); }
.ph-cover--sage .eyebrow { color: var(--sage); }
.ph-cover .eyebrow::before { filter: brightness(1.8); }
.ph-cover .breadcrumb ol, .ph-cover .btn-row, .ph-cover .quicknav { justify-content: flex-start; }
.ph-cover .breadcrumb a, .ph-cover .breadcrumb li::before { color: var(--on-night-soft); }
.ph-cover .breadcrumb [aria-current] { color: var(--sand); }
.ph-cover a:not(.btn) { color: var(--sand); }
.ph-cover .btn--ghost { --btn-fg: var(--sand); border-color: rgba(244,239,230,.5); }
.ph-cover .btn--ghost:hover { background: rgba(244,239,230,.12); }
.ph-cover .hero-waves { opacity: .35; height: 35%; }
.ph-cover .meter i { background: rgba(244,239,230,.22); }
.ph-cover .meter[data-v="1"] i:nth-child(-n+1), .ph-cover .meter[data-v="2"] i:nth-child(-n+2), .ph-cover .meter[data-v="3"] i:nth-child(-n+3), .ph-cover .meter[data-v="4"] i:nth-child(-n+4), .ph-cover .meter[data-v="5"] i { background: var(--coral); }
.ph-cover .meters li, .ph-cover .battery { color: var(--sand); }
.ph-cover .pill-row li { background: rgba(244,239,230,.12); color: var(--sand); }
.ph-cover .quicknav a { background: rgba(255,253,249,.94); }
.ph-cover .ring-line { margin: 0 0 8px; width: min(520px, 100%); }
.ph-cover .use-tags li { border-color: rgba(244,239,230,.4); color: var(--sand); }
/* Articles : titre posé sur la couverture */
.ph-cover--article { min-height: clamp(420px, 66svh, 620px); }
.ph-cover--article h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); max-width: 22ch; }
.ph-cover .article-meta { color: var(--on-night-soft); margin-bottom: 0; }
html[data-contrast="high"] .ph-cover::before { background: rgba(0,0,0,.88); }

.ph-cover .quicknav a { color: var(--night); }

/* Heros photo : tenir dans un écran d'ordinateur (1366×768) */
@media (min-width: 1024px) {
  .ph-cover { padding: calc(var(--header-h) + 28px) 0 44px; min-height: clamp(460px, 70svh, 680px); }
  .ph-cover h1 { font-size: clamp(2.2rem, 1.2rem + 2.4vw, 3.6rem); max-width: 22ch; margin-bottom: .3em; }
  .ph-cover .page-hero__grid > *:not(.breadcrumb), .ph-cover .page-hero__grid > div > * { max-width: 760px; }
  .ph-cover .lead { margin-bottom: 1em; }
  .ph-cover .breadcrumb { margin-bottom: .8rem; }
  .ph-cover .eyebrow { margin-bottom: .6rem; }
  .ph-cover .meters { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; gap: 8px 32px; margin-top: 18px; }
  .ph-cover .pill-row, .ph-cover .use-tags, .ph-cover .quicknav { margin-top: 16px; }
  .ph-cover .battery { margin-top: 16px; }
  .ph-cover .ring-line { height: 56px; }
}

@media (max-width: 767.98px) { .ph-cover { padding-top: calc(var(--header-h) + 190px); } .ph-cover::before, .ph-cover--sage::before, .ph-cover--warm::before { background: linear-gradient(180deg, rgba(14,27,44,.15) 0%, rgba(14,27,44,.82) 38%, rgba(14,27,44,.96) 100%); } }
