/* Halvère & Associés — concept de démonstration (entreprise fictive)
   Direction : presse éditoriale. Blanc papier, encre, rouge garance.
   Polices : Newsreader (titrage et texte) + Schibsted Grotesk (signalétique). */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/newsreader-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/newsreader-italic-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/schibsted-grotesk-var.woff2') format('woff2');
}

:root {
  --paper: #ffffff;
  --ink: #141414;
  --ink-2: #33322f;
  --muted: #6a6963;
  --rule: #dcdbd5;
  --tint: #f3f2ee;
  --garance: #a3221c;
  --night: #121212;
  --on-night: #efede7;
  --on-night-muted: #a9a69e;

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--garance); color: #fff; }
:focus-visible { outline: 2px solid var(--garance); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 16px; font-family: var(--sans); font-size: 14px;
}
.skip:focus { top: 12px; }

/* ---------- Ligne de date ---------- */
.dateline {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}
.dateline__in { display: flex; justify-content: space-between; gap: 24px; padding-block: 9px; }

/* ---------- Bandeau ---------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 3px double var(--ink);
}
.masthead__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand {
  text-decoration: none;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1;
  white-space: nowrap;
}
.brand__amp { font-style: italic; font-weight: 400; color: var(--garance); }
.brand__assoc { font-weight: 400; }

.nav__list { display: flex; align-items: center; gap: 30px; }
.nav__list a:not(.btn) {
  font-family: var(--sans);
  font-size: 14px;
  text-decoration: none;
  letter-spacing: .01em;
  position: relative;
  padding-block: 12px;
}
.nav__list a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__list a:not(.btn):hover::after { transform: scaleX(1); }

.menu-btn {
  display: none;
  align-items: center; gap: 10px;
  min-height: 44px; min-width: 44px; padding: 0 4px 0 12px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
}
.menu-btn__icon { position: relative; width: 22px; height: 12px; }
.menu-btn__icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn__icon i:first-child { top: 2px; }
.menu-btn__icon i:last-child { top: 9px; }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:first-child { top: 5.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:last-child { top: 5.5px; transform: rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 22px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .02em;
  text-decoration: none; border: 1px solid var(--ink); border-radius: 0; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--garance); border-color: var(--garance); }
.nav__cta { min-height: 44px; padding: 0 18px; font-size: 13.5px; }
.btn__arrow { position: relative; width: 18px; height: 1px; background: currentColor; transition: width .3s var(--ease); }
.btn__arrow::after {
  content: ""; position: absolute; right: 0; top: -3.5px; width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
}
.btn:hover .btn__arrow { width: 26px; }

.link-u {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .02em;
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 1px no-repeat;
  transition: background-size .35s var(--ease), color .2s;
}
.link-u:hover { color: var(--garance); background-size: 35% 1px; }

/* ---------- Éditorial ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 88px);
  background: linear-gradient(var(--rule), var(--rule)) 50% 100% / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.hero__main { grid-column: 1 / 9; padding-right: clamp(0px, 2vw, 32px); }
.hero__side { grid-column: 9 / 13; border-left: 1px solid var(--rule); padding-left: 24px; display: flex; flex-direction: column; gap: 22px; }

.kicker, .sec-head__num {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--garance);
}
.sec { font-family: var(--serif); font-weight: 400; font-size: 1.25em; letter-spacing: 0; margin-right: 4px; }

.hero__title {
  margin-top: 18px;
  font-weight: 300;
  font-size: clamp(3.1rem, 7.2vw, 7.1rem);
  line-height: .97;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.hero__title em { font-style: italic; color: var(--garance); letter-spacing: -.02em; }

.hero__lead {
  margin-top: clamp(28px, 3.4vw, 44px);
  columns: 2; column-gap: 40px; column-rule: 1px solid var(--rule);
  font-size: 17.5px; line-height: 1.6; color: var(--ink-2);
  max-width: 780px;
}
.hero__lead p + p { margin-top: 0; text-indent: 1.4em; }
.dropcap::first-letter {
  float: left;
  font-size: 4.4em; line-height: .78; font-weight: 400;
  padding: 6px 10px 0 0; color: var(--garance);
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 36px; }

.fig img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; background: var(--tint); }
.fig figcaption {
  margin-top: 10px; font-family: var(--sans); font-size: 12.5px; line-height: 1.45; color: var(--muted);
}
.fig__n { font-weight: 600; color: var(--ink); margin-right: 6px; }

.une {
  display: block; text-decoration: none;
  border-top: 3px solid var(--ink); padding-top: 12px;
}
.une__label { display: block; font-family: var(--sans); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--garance); font-weight: 600; }
.une__title { display: block; margin-top: 6px; font-size: 22px; line-height: 1.2; font-weight: 400; transition: color .2s; }
.une:hover .une__title { color: var(--garance); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 136px); }
.section--rule { border-top: 1px solid var(--rule); }

.sec-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end;
  padding-bottom: 28px; margin-bottom: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--ink);
}
.sec-head__num { grid-column: 1 / 3; padding-bottom: 12px; }
.sec-head__title {
  grid-column: 3 / 8;
  font-weight: 300; font-size: clamp(2.6rem, 5.2vw, 4.9rem); line-height: .95; letter-spacing: -.025em;
}
.sec-head__intro { grid-column: 8 / 13; font-size: 18px; line-height: 1.5; color: var(--muted); padding-bottom: 6px; }
.sec-head--stack { display: block; border-bottom: 0; padding-bottom: 0; }
.sec-head--stack .sec-head__title { margin-top: 10px; }
.sec-head--stack .sec-head__intro { margin-top: 18px; max-width: 32ch; }

/* Expertises */
.exp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.exp {
  position: relative;
  padding: 8px 24px 12px;
  border-left: 1px solid var(--rule);
}
.exp:first-child { border-left: 0; padding-left: 0; }
.exp:last-child { padding-right: 0; }
.exp::before {
  content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 2px; background: var(--garance);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.exp:first-child::before { left: 0; }
.exp:hover::before { transform: scaleX(1); }
.exp__n { font-style: italic; font-size: 22px; color: var(--garance); }
.exp__title { margin-top: 18px; font-weight: 400; font-size: clamp(1.6rem, 2.1vw, 1.95rem); line-height: 1.08; letter-spacing: -.015em; min-height: 2.2em; }
.exp > p:not(.exp__n) { margin-top: 16px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.exp__q { margin-top: 22px; padding-top: 14px; border-top: 1px dotted #b9b8b1; }
.exp__q li { font-style: italic; font-size: 16px; line-height: 1.45; color: var(--muted); padding-left: 18px; text-indent: -18px; }
.exp__q li + li { margin-top: 8px; }
.exp__q li::before { content: "— "; color: var(--garance); font-style: normal; }

/* Citation */
.quote { border-block: 1px solid var(--ink); padding-block: clamp(64px, 9vw, 128px); }
.quote__body p {
  position: relative;
  max-width: 19ch; margin-inline: auto;
  font-style: italic; font-weight: 300;
  font-size: clamp(2.1rem, 5vw, 4.6rem); line-height: 1.08; letter-spacing: -.02em;
  text-align: center; text-wrap: balance;
}
.quote__body p::before {
  content: "«"; display: block; margin-bottom: 6px;
  font-style: normal; font-size: 1.4em; line-height: .7; color: var(--garance);
}
.quote__src { margin-top: 28px; text-align: center; font-family: var(--sans); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Méthode */
.method { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.method__aside { grid-column: 1 / 5; align-self: start; position: sticky; top: 120px; }
.fig--method { margin-top: 40px; max-width: 340px; }
.fig--method img { aspect-ratio: 7 / 10; }
.steps { grid-column: 6 / 13; counter-reset: step; border-top: 1px solid var(--ink); }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 200px); column-gap: 24px;
  padding-block: 32px 36px; border-bottom: 1px solid var(--rule);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  grid-column: 1; grid-row: 1 / span 3;
  font-style: italic; font-size: 30px; line-height: 1; color: var(--garance);
}
.step__when { grid-column: 2; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.step__title { grid-column: 2; margin-top: 6px; font-weight: 300; font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1.05; letter-spacing: -.02em; }
.step > p:not(.step__when):not(.sidenote) { grid-column: 2; margin-top: 12px; font-size: 17.5px; color: var(--ink-2); max-width: 52ch; }
.note-ref { font-family: var(--sans); font-size: .36em; font-weight: 600; color: var(--garance); vertical-align: super; margin-left: 3px; }
.sidenote {
  grid-column: 3; grid-row: 1 / span 3; align-self: start;
  padding-top: 4px; border-top: 1px solid var(--garance);
  font-size: 14.5px; line-height: 1.45; font-style: italic; color: var(--muted);
}
.sidenote sup { font-family: var(--sans); font-style: normal; font-weight: 600; color: var(--garance); margin-right: 4px; }

/* Publications */
.feature {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center;
  padding-bottom: clamp(48px, 6vw, 80px);
}
.feature__fig { grid-column: 1 / 6; overflow: hidden; }
.feature__fig img { width: 100%; aspect-ratio: 9 / 10; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .feature__fig img { transform: scale(1.03); }
.feature__body { grid-column: 7 / 13; }
.feature__meta { font-family: var(--sans); font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tag { display: inline-block; padding: 3px 8px; border: 1px solid var(--garance); color: var(--garance); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.feature__title { margin-top: 18px; font-weight: 300; font-size: clamp(2.1rem, 3.7vw, 3.5rem); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
.feature__title a { text-decoration: none; background: linear-gradient(var(--garance), var(--garance)) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--ease); }
.feature__title a:hover { background-size: 100% 2px; }
.feature__excerpt { margin-top: 22px; font-size: 18.5px; line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.feature .link-u { margin-top: 18px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter {
  min-height: 44px; padding: 0 18px; border: 1px solid var(--rule); background: transparent; border-radius: 999px;
  font-family: var(--sans); font-size: 13px; letter-spacing: .04em; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--ink); }
.filter.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pub-list { border-top: 1px solid var(--ink); }
.pub { border-bottom: 1px solid var(--rule); }
.pub[hidden] { display: none; }
.pub a {
  display: grid; grid-template-columns: 110px 110px minmax(0, 1fr) 70px; column-gap: 24px; align-items: baseline;
  padding-block: 22px; text-decoration: none; position: relative;
}
.pub__date, .pub__kind, .pub__time { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.pub__kind { text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; color: var(--garance); font-weight: 600; }
.pub__title { font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.2; letter-spacing: -.01em; transition: transform .4s var(--ease), color .2s; }
.pub__time { text-align: right; }
.pub a:hover .pub__title { color: var(--garance); transform: translateX(8px); }
.pub.is-in { animation: pubIn .5s var(--ease) both; }
@keyframes pubIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Cabinet */
.cabinet { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; }
.cabinet .sec-head { grid-column: 1 / 5; margin-bottom: 0; }
.cabinet__text { grid-column: 5 / 13; }
.cabinet__lead { font-weight: 300; font-size: clamp(1.6rem, 2.6vw, 2.35rem); line-height: 1.22; letter-spacing: -.015em; text-wrap: pretty; }
.cabinet__text p + p { margin-top: 20px; font-size: 18px; color: var(--ink-2); max-width: 60ch; }
.partners { grid-column: 5 / 13; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--ink); padding-top: 28px; }
.partner { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: center; }
.partner__mono {
  grid-row: 1 / span 2; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--ink);
  display: grid; place-items: center; font-style: italic; font-size: 20px;
}
.partner__name { font-size: 20px; line-height: 1.2; }
.partner__role { font-family: var(--sans); font-size: 13px; color: var(--muted); }

/* Rendez-vous */
.rdv { background: var(--night); color: var(--on-night); padding-block: clamp(72px, 9vw, 136px); }
.rdv__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; align-items: start; }
.rdv__intro { grid-column: 1 / 6; position: sticky; top: 120px; }
.sec-head__num--light { color: #e0675f; }
.rdv__title { margin-top: 14px; font-weight: 300; font-size: clamp(2.8rem, 5.6vw, 5.2rem); line-height: .95; letter-spacing: -.03em; }
.rdv__text { margin-top: 24px; font-size: 18.5px; line-height: 1.6; color: var(--on-night-muted); max-width: 44ch; }
.rdv__facts { margin-top: 36px; border-top: 1px solid rgba(255,255,255,.22); }
.rdv__facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding-block: 14px; border-bottom: 1px solid rgba(255,255,255,.22); }
.rdv__facts dt { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-muted); padding-top: 3px; }
.rdv__facts dd { font-size: 18px; }

.booking { grid-column: 7 / 13; background: var(--paper); color: var(--ink); padding: clamp(22px, 3vw, 40px); }
.booking__step { border: 0; margin: 0; padding: 0 0 26px; min-width: 0; }
.booking__step + .booking__step { padding-top: 22px; border-top: 1px solid var(--rule); }
.booking__step legend + * { clear: both; }
.booking__step legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.booking__n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--garance); color: #fff; font-size: 11.5px; letter-spacing: 0; }

.chips, .days, .slots { display: grid; gap: 8px; }
.chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.days { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chip, .day, .slot { position: relative; display: block; cursor: pointer; }
.chip input, .day input, .slot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span, .day span, .slot span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 46px; padding: 6px 8px; border: 1px solid var(--rule);
  font-family: var(--sans); font-size: 13.5px; line-height: 1.2;
  transition: background-color .2s, color .2s, border-color .2s;
}
.day span { flex-direction: column; min-height: 60px; font-size: 13px; }
.day b { font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.chip:hover span, .day:hover span, .slot:hover span { border-color: var(--ink); }
.chip input:checked + span, .day input:checked + span, .slot input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span, .day input:focus-visible + span, .slot input:focus-visible + span { outline: 2px solid var(--garance); outline-offset: 2px; }
.slot input:disabled + span { color: #aaa8a1; text-decoration: line-through; background: var(--tint); cursor: not-allowed; }
.slot input:disabled { cursor: not-allowed; }

.booking__step--fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.booking__step--fields legend { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--sans); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.field input {
  min-height: 46px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; border-radius: 0;
  font-family: var(--serif); font-size: 18px;
}
.field input:focus { outline: none; border-bottom: 2px solid var(--garance); }
.booking__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 8px; }
.booking__recap { font-style: italic; font-size: 17px; color: var(--ink-2); }
.booking__done { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--garance); background: var(--tint); font-family: var(--sans); font-size: 14px; line-height: 1.5; }

/* Pied de page */
.footer { padding-block: clamp(56px, 7vw, 96px) 96px; }
.footer__mark {
  font-weight: 300; font-size: clamp(5rem, 21vw, 19rem); line-height: .78; letter-spacing: -.055em;
  padding-bottom: 18px; border-bottom: 3px double var(--ink);
}
.footer__grid { display: grid; grid-template-columns: 1.1fr .9fr .7fr 1.6fr; gap: 32px; padding-top: 32px; }
.footer__h { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--garance); margin-bottom: 12px; }
.footer__grid p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.footer__links a { display: inline-flex; min-height: 36px; align-items: center; font-family: var(--sans); font-size: 14px; text-decoration: none; }
.footer__links a:hover { color: var(--garance); }
.credits__list { font-family: var(--sans); font-size: 12px; line-height: 1.5; color: var(--muted); }
.credits__list li + li { margin-top: 6px; }
.credits__list a { color: var(--ink-2); text-underline-offset: 2px; }
.footer__legal { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 12.5px; color: var(--muted); max-width: 90ch; }

/* Mention de démonstration */
.demo-badge {
  position: fixed; left: 14px; bottom: 14px; z-index: 60;
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px;
  background: rgba(20, 20, 20, .86); color: #f4f3ef; border-radius: 999px;
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .02em; text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  transition: background-color .2s;
}
.demo-badge::before { content: ""; position: absolute; inset: -8px -4px; }
.demo-badge:hover { background: var(--garance); }

/* Apparition au défilement */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .exp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .exp:nth-child(3) { border-left: 0; padding-left: 0; }
  .exp:nth-child(3)::before { left: 0; }
  .exp:nth-child(2) { padding-right: 0; }
  .step { grid-template-columns: 56px minmax(0, 1fr); }
  .sidenote { grid-column: 2; grid-row: auto; margin-top: 16px; max-width: 46ch; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 899px) {
  html { scroll-padding-top: 76px; }
  .dateline__in > span:first-child, .dateline__mid { display: none; }
  .masthead__in { min-height: 62px; }
  .brand { font-size: 25px; }
  .menu-btn { display: inline-flex; }
  .nav__list {
    position: fixed; inset: 0; top: 62px; z-index: 39;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 32px; background: var(--paper);
    border-top: 1px solid var(--rule);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
    overflow-y: auto;
  }
  .nav.is-open .nav__list { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav__list li { border-bottom: 1px solid var(--rule); }
  .nav__list a:not(.btn) { display: flex; min-height: 64px; align-items: center; font-family: var(--serif); font-size: 30px; font-weight: 300; letter-spacing: -.01em; }
  .nav__list a:not(.btn)::after { display: none; }
  .nav__cta-li { border-bottom: 0 !important; padding-top: 24px; }
  .nav__cta { width: 100%; min-height: 54px; font-size: 15px; }

  .hero { display: block; }
  .hero__main { padding-right: 0; }
  .hero__lead { columns: 1; }
  .hero__lead p + p { text-indent: 0; margin-top: 14px; }
  .hero__side { margin-top: 44px; border-left: 0; padding-left: 0; display: grid; grid-template-columns: 1fr; gap: 24px; }
  .fig img { aspect-ratio: 4 / 3; }

  .sec-head { display: block; }
  .sec-head__num { padding-bottom: 0; }
  .sec-head__title { margin-top: 10px; }
  .sec-head__intro { margin-top: 16px; }

  .method { display: block; }
  .method__aside { position: static; }
  .fig--method { max-width: none; margin-bottom: 40px; }
  .fig--method img { aspect-ratio: 4 / 3; }
  .feature { display: block; }
  .feature__fig img { aspect-ratio: 4 / 3; }
  .feature__body { margin-top: 28px; }
  .pub a { grid-template-columns: auto auto 1fr; row-gap: 6px; }
  .pub__title { grid-column: 1 / -1; grid-row: 2; }
  .pub__time { text-align: right; }
  .cabinet { display: block; }
  .cabinet__text { margin-top: 28px; }
  .partners { margin-top: 40px; grid-template-columns: 1fr; gap: 18px; }
  .rdv__in { display: block; }
  .rdv__intro { position: static; }
  .booking { margin-top: 44px; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero__title { font-size: clamp(2.9rem, 13vw, 3.6rem); line-height: 1; }
  .exp-grid { grid-template-columns: 1fr; row-gap: 0; }
  .exp, .exp:nth-child(3) { border-left: 0; padding: 26px 0 30px; border-top: 1px solid var(--rule); }
  .exp:first-child { border-top: 0; padding-top: 0; }
  .exp::before, .exp:first-child::before, .exp:nth-child(3)::before { left: 0; right: 0; }
  .exp__title { min-height: 0; }
  .step { grid-template-columns: 1fr; padding-block: 26px 30px; }
  .step::before { grid-row: auto; margin-bottom: 10px; font-size: 26px; }
  .step__when, .step__title, .step > p:not(.step__when):not(.sidenote), .sidenote { grid-column: 1; }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .days { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .day span { padding: 6px 2px; font-size: 12px; }
  .day b { font-size: 11px; letter-spacing: .04em; }
  .booking__step--fields { grid-template-columns: 1fr; }
  .booking__foot .btn { width: 100%; }
  .rdv__facts div { grid-template-columns: 100px 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .demo-badge {
    left: 0; right: 0; bottom: 0; justify-content: center; border-radius: 0; min-height: 30px;
    padding-bottom: env(safe-area-inset-bottom); font-size: 11px; box-shadow: none; background: rgba(20, 20, 20, .9);
  }
  .demo-badge::before { inset: -14px 0 0; }
  .footer { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Fond flouté sur un pseudo-élément : un backdrop-filter sur l’en-tête lui-même
   piégerait le panneau de menu en position fixe. */
.masthead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); }

.brand { display: inline-block; padding-block: 9px; }
.footer__links a { min-height: 44px; }
