/* Dr. Michael, clinique dentaire à Netanya : proposition de refonte (Refront)
   Couleurs tirées de la clinique : le marbre de l'accueil, le noyer, le sol graphite, le palmier, le laiton du lustre. */
:root {
  /* Fonds */
  --sable: oklch(0.905 0.024 82);          /* fond de la scène 3D : pierre claire de Netanya */
  --sable-ombre: oklch(0.86 0.028 80);
  --marbre: oklch(0.966 0.007 85);         /* fond des sections calmes */
  --marbre-clair: oklch(0.985 0.004 85);   /* champs du formulaire */
  --veine: oklch(0.84 0.01 85);            /* filets */
  /* Encres */
  --graphite: oklch(0.235 0.012 150);
  --graphite-doux: oklch(0.42 0.014 150);
  --creme: oklch(0.965 0.016 88);
  /* La couleur qui porte l'identité */
  --palmier: oklch(0.385 0.075 152);
  --palmier-vif: oklch(0.44 0.085 152);
  --palmier-nuit: oklch(0.265 0.048 152);
  --palmier-clair: oklch(0.91 0.035 150);
  /* Touches */
  --laiton: oklch(0.76 0.105 82);
  --laiton-fonce: oklch(0.55 0.09 74);
  --brique: oklch(0.5 0.15 32);

  /* Polices */
  --f-display: 'Sofia Sans Extra Condensed', 'Arial Narrow', sans-serif;
  --f-text: 'Atkinson Hyperlegible Next', 'Segoe UI', system-ui, sans-serif;

  /* Échelle */
  --fs-body: clamp(1.125rem, 1.06rem + 0.25vw, 1.25rem);
  --fs-small: 0.95rem;
  --fs-hero: clamp(3.6rem, 15.5vw, 9.6rem);
  --fs-display: clamp(3.3rem, 13vw, 8rem);
  --fs-mid: clamp(2.6rem, 8vw, 4.6rem);

  /* Mouvement : une seule courbe, trois durées */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-quick: 140ms;
  --t-base: 320ms;
  --t-slow: 700ms;

  --gutter: 16px;
  --top-h: 60px;
  --bar-h: 68px;
  --notch: 12px;
}

@media (min-width: 760px) {
  :root { --gutter: clamp(24px, 5vw, 80px); --top-h: 72px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--marbre);
  color: var(--graphite);
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--laiton); color: var(--graphite); }

.skip {
  position: fixed; left: var(--gutter); top: 8px; z-index: 100;
  padding: 10px 16px; background: var(--graphite); color: var(--creme);
  transform: translateY(-150%); transition: transform var(--t-base) var(--ease);
}
.skip:focus { transform: none; outline: 2px solid var(--laiton); outline-offset: 2px; }

.wrap { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }

/* Étiquette de chapitre : numéro, filet, mot */
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--graphite-doux);
  margin-bottom: 18px;
}
.kicker__num { color: var(--laiton-fonce); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.kicker__rule { width: 36px; height: 1px; background: currentColor; opacity: 0.6; }
.kicker--plain .kicker__label { color: var(--graphite-doux); }

.display {
  font-family: var(--f-display); font-weight: 800;
  font-size: var(--fs-display); line-height: 0.86; letter-spacing: -0.01em;
  text-wrap: balance;
}
.display .line { display: block; }
.display--hero { font-size: var(--fs-hero); }
.display--mid { font-size: var(--fs-mid); line-height: 0.9; }
.lede, .body { max-width: 34ch; }
.lede { margin-top: 18px; font-size: calc(var(--fs-body) * 1.06); }
.body { margin-top: 18px; color: var(--graphite); }
.aside { margin-top: 22px; font-weight: 700; max-width: 30ch; }

/* ---------- Boutons « plaque » : angles vifs, encoche, filet de laiton ---------- */
.plate {
  --plate-bg: transparent;
  --plate-fg: var(--graphite);
  --plate-line: var(--graphite);
  --plate-lead: var(--laiton-fonce);
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 10px 0 10px 16px;
  background: var(--plate-bg); color: var(--plate-fg);
  border: 1px solid var(--plate-line);
  text-decoration: none; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  transition: background-color var(--t-quick) var(--ease), color var(--t-quick) var(--ease), transform var(--t-quick) var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
/* Le petit pan coupé reçoit son filet */
.plate::after {
  content: ''; position: absolute; top: -1px; left: calc(100% - var(--notch) - 1px);
  width: calc(var(--notch) * 1.4142 + 2px); height: 1.5px; background: var(--plate-line);
  transform-origin: 0 50%; transform: rotate(45deg);
}
.plate__lead {
  flex: none; width: 22px; height: 1.5px; background: var(--plate-lead);
  transform-origin: 0 50%; transform: scaleX(0.55);
  transition: transform var(--t-base) var(--ease);
}
.plate__lead::after {
  content: ''; position: absolute; width: 5px; height: 5px; margin: -1.75px 0 0 -2px;
  background: var(--plate-lead); border-radius: 50%;
}
.plate__body { display: flex; flex-direction: column; line-height: 1.15; padding-right: 18px; }
.plate__label { font-weight: 700; font-size: 1.02rem; }
.plate__sub {
  font-family: var(--f-display); font-weight: 800; font-size: 1.85rem; line-height: 1; white-space: nowrap;
  letter-spacing: 0.01em; font-variant-numeric: tabular-nums; margin-top: 3px;
}
.plate__icon {
  align-self: stretch; display: grid; place-items: center;
  width: 56px; margin-left: auto; border-left: 1px solid var(--plate-line);
}
.plate:not(:has(.plate__icon)) .plate__body { padding-right: 26px; }
.plate:hover { --plate-bg-hover: 1; }
.plate:hover .plate__lead { transform: scaleX(1); }
.plate:active { transform: translateY(1px); }
.plate:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--laiton), inset 0 0 0 4px var(--plate-fg); }

.plate--primary { --plate-bg: var(--palmier); --plate-fg: var(--creme); --plate-line: var(--palmier-nuit); --plate-lead: var(--laiton); }
.plate--primary:hover { --plate-bg: var(--palmier-vif); }
.plate--primary:active { --plate-bg: var(--palmier-nuit); }
.plate--quiet:hover { --plate-bg: oklch(0.235 0.012 150 / 0.06); }
.plate--quiet:active { --plate-bg: oklch(0.235 0.012 150 / 0.12); }
.plate--cream { --plate-bg: var(--creme); --plate-fg: var(--palmier-nuit); --plate-line: var(--creme); --plate-lead: var(--laiton-fonce); }
.plate--cream:hover { --plate-bg: oklch(0.99 0.012 88); }
.plate--cream:active { --plate-bg: var(--palmier-clair); }
.plate--ink { --plate-bg: var(--graphite); --plate-fg: var(--creme); --plate-line: var(--graphite); --plate-lead: var(--laiton); }
.plate--ink:hover { --plate-bg: var(--palmier); --plate-line: var(--palmier); }
.plate--ink:active { --plate-bg: var(--palmier-nuit); }
.plate--small { min-height: 42px; padding-left: 12px; --notch: 9px; gap: 10px; }
.plate--small .plate__label { font-size: 0.98rem; }
.plate--small .plate__icon { width: 42px; }
.plate--small .plate__icon svg { width: 18px; height: 18px; }
.plate--small .plate__body { padding-right: 4px; }
.plate--large { min-height: 72px; }
.plate--large .plate__sub { font-size: 2.15rem; }
.plate--large .plate__icon { width: 64px; }
.plate--wide { width: 100%; justify-content: flex-start; }
/* Envoi en cours : un filet court le long du bas */
.plate[data-state="sending"] { cursor: progress; }
.plate[data-state="sending"]::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--laiton);
  transform-origin: 0 50%; animation: sending 900ms var(--ease) infinite;
}
@keyframes sending { from { transform: scaleX(0); } to { transform: scaleX(1); opacity: 0.2; } }

/* Lien de texte souligné d'un filet de laiton */
.textlink {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; min-height: 44px;
  text-decoration: underline; text-decoration-color: var(--laiton-fonce); text-decoration-thickness: 1px; text-underline-offset: 6px;
  font-weight: 700; transition: text-decoration-color var(--t-quick) var(--ease);
}
.textlink svg { transition: transform var(--t-base) var(--ease); }
.textlink:hover { text-decoration-thickness: 2px; text-decoration-color: currentColor; }
.textlink:hover svg { transform: translate(2px, -2px); }
.textlink:active { opacity: 0.75; }
.textlink:focus-visible, .maplink:focus-visible, .top__lang:focus-visible, .emergency__link:focus-visible,
.callplate__mobile:focus-visible, .foot__phone:focus-visible, .inline-call:focus-visible, .callbar__link:focus-visible, .foot__demo a:focus-visible, .top__brand:focus-visible {
  outline: 2px solid currentColor; outline-offset: 3px; box-shadow: 0 0 0 6px oklch(0.76 0.105 82 / 0.55);
}
.textlink--cream { color: var(--creme); text-decoration-color: var(--laiton); }

/* Adresse + itinéraire */
.maplink {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; padding: 8px 0; text-decoration: none;
  border-top: 1px solid var(--veine); border-bottom: 1px solid var(--veine);
}
.maplink__addr { font-weight: 700; }
.maplink__go {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-family: var(--f-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 1rem;
  text-decoration: underline; text-decoration-color: var(--laiton-fonce); text-underline-offset: 5px;
}
.maplink__go svg { transition: transform var(--t-base) var(--ease); }
.maplink:hover .maplink__go { text-decoration-thickness: 2px; }
.maplink:hover .maplink__go svg { transform: translate(2px, -2px); }
.maplink:active { opacity: 0.8; }
.maplink--small { border-top: 0; }
.maplink--on-green { border-color: oklch(0.965 0.016 88 / 0.25); color: var(--creme); }
.maplink--on-green .maplink__go { text-decoration-color: var(--laiton); }

/* Ouvert / fermé */
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-weight: 700; padding: 6px 0; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brique); flex: none; }
.status.is-open .status__dot { background: var(--palmier-vif); box-shadow: 0 0 0 4px oklch(0.44 0.085 152 / 0.18); }
.status__note { font-weight: 400; color: var(--graphite-doux); font-size: var(--fs-small); }

.hours { margin: 8px 0 0; }
.hours__row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--veine); }
.hours dt { font-weight: 400; }
.hours dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.hours-compact { display: none; }

/* ---------- En-tête ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 var(--gutter);
  transition: background-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.top.is-solid { background: var(--marbre); box-shadow: 0 1px 0 var(--veine); }
.top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand__mark {
  display: block; width: 28px; height: 30px; flex: none; background: var(--graphite);
  -webkit-mask: url(../assets/logo-dent.webp) center / contain no-repeat; mask: url(../assets/logo-dent.webp) center / contain no-repeat;
}
.brand__mark--cream { background: var(--creme); width: 44px; height: 47px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.brand__name { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: 0.005em; }
.brand__tag { font-size: 0.78rem; color: var(--graphite-doux); margin-top: 2px; }
.top__end { display: flex; align-items: center; gap: 14px; }
.top__lang {
  font-family: 'Segoe UI', Arial, sans-serif; font-weight: 600; font-size: 1rem; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px;
  border-bottom: 1px solid transparent; transition: border-color var(--t-quick) var(--ease);
}
.top__lang:hover { border-bottom-color: var(--laiton-fonce); }
@media (max-width: 459px) { .brand__tag { display: none; } }
/* Très petits écrans (320 px) : l'en-tête et les plaques se resserrent sans couper le numéro */
@media (max-width: 359px) {
  .top { gap: 8px; }
  .top__end { gap: 6px; }
  .top__call .plate__lead, .top__call .plate__icon { display: none; }
  .top__call .plate__body { padding-right: 16px; }
  .top__call { padding-left: 10px; gap: 6px; }
  .brand__name { font-size: 1.42rem; }
  .plate { gap: 10px; padding-left: 12px; }
  .plate__body { padding-right: 10px; }
  .plate--large .plate__sub { font-size: 1.9rem; }
  .plate--large .plate__icon { width: 52px; }
}

/* ---------- La scène 3D épinglée ---------- */
.story { position: relative; background: var(--sable); overflow: clip; }
.stage {
  position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh;
  overflow: hidden; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 100%, var(--sable-ombre) 0%, oklch(0.86 0.028 80 / 0) 60%),
    var(--sable);
}
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity var(--t-slow) var(--ease); }
.is-3d .stage__canvas { opacity: 1; }
/* Image de secours, visible tout de suite, posée là où la 3D apparaîtra */
.stage__poster {
  position: absolute; left: 77%; top: 30%;
  height: 29.5svh; width: auto; max-width: none;
  transform: translate(-50%, -50%);
  transition: opacity var(--t-slow) var(--ease);
}
/* L'ombre portée de l'image de la dent s'arrête net sur ses bords : on les fond dans le sable */
.stage__poster, .chapter__figure img {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 27%, #000 73%, transparent), linear-gradient(to bottom, #000 74%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 27%, #000 73%, transparent), linear-gradient(to bottom, #000 74%, transparent);
  mask-composite: intersect;
}
.is-3d .stage__poster { opacity: 0; }
@media (min-width: 760px) {
  .stage__poster { left: 70%; top: 54%; height: 75vh; }
}
.leaders {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 30; pointer-events: none;
  overflow: visible; opacity: 0;
}
.is-3d .leaders { opacity: 1; }
.leaders path { fill: none; stroke: var(--graphite); stroke-width: 1; vector-effect: non-scaling-stroke; }
.leaders .leader__dot { fill: var(--laiton); stroke: var(--graphite); stroke-width: 1; }
.leaders .leader__tick { fill: var(--graphite); }

.chapter { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.chapter__text { position: relative; padding: 0 var(--gutter); }
.chapter__figure { display: none; }

/* Haut de page */
.chapter--hero { padding-top: var(--top-h); }
.emergency { position: relative; z-index: 2; }
.emergency__link {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 var(--gutter);
  background: var(--palmier); color: var(--creme); text-decoration: none;
  transition: background-color var(--t-quick) var(--ease);
}
.emergency__link:hover { background: var(--palmier-vif); }
.emergency__link:active { background: var(--palmier-nuit); }
.emergency__link:focus-visible { outline-offset: -4px; box-shadow: none; }
.emergency__dot {
  position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--laiton); flex: none;
}
.emergency__label { font-family: var(--f-display); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 1.05rem; }
.emergency__num { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.emergency__act { margin-left: auto; min-width: 24px; justify-content: flex-end; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.emergency__act svg { transition: transform var(--t-base) var(--ease); }
.emergency__link:hover .emergency__act svg { transform: translateX(3px); }
@media (max-width: 459px) {
  .emergency__link { gap: 10px; }
  .emergency__label { font-size: 0.98rem; letter-spacing: 0.1em; }
  .emergency__num { font-size: 1.4rem; }
  .emergency__act-text { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.is-static) .emergency__dot::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--laiton);
    animation: ping 2.4s var(--ease) infinite;
  }
}
@keyframes ping { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3); opacity: 0; } }

.hero { padding-top: clamp(22px, 4svh, 56px); padding-bottom: 28px; }
.hero .kicker { margin-bottom: 14px; }
.actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 24px; max-width: 360px; }
.actions .plate { width: 100%; }
.hero__meta { margin-top: 14px; max-width: 360px; }
.hero__meta .maplink { font-size: var(--fs-small); min-height: 44px; }

/* Entrée en douceur, une seule fois, en haut de page */
@media (prefers-reduced-motion: no-preference) {
  html:not(.is-static) .hero > *, html:not(.is-static) .emergency {
    animation: rise var(--t-slow) var(--ease) both;
  }
  html:not(.is-static) .hero > :nth-child(2) { animation-delay: 80ms; }
  html:not(.is-static) .hero > :nth-child(3) { animation-delay: 160ms; }
  html:not(.is-static) .hero > :nth-child(4) { animation-delay: 240ms; }
  html:not(.is-static) .hero > :nth-child(5) { animation-delay: 300ms; }
  html:not(.is-static) .stage__poster { animation: settle 1100ms var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes settle { from { opacity: 0; transform: translate(-50%, -46%); } }

/* Chapitres de l'histoire (téléphone : le texte occupe le bas, la pièce le haut) */
.chapter--pieces, .chapter--guarantee, .chapter--call { justify-content: flex-end; }
.chapter--pieces .chapter__text, .chapter--guarantee .chapter__text, .chapter--steps .chapter__text, .chapter--call .chapter__text {
  padding-top: 36px; padding-bottom: 24px;
  background: linear-gradient(to bottom, oklch(0.905 0.024 82 / 0) 0, var(--sable) 32px);
}
.chapter--steps { min-height: 210vh; min-height: 210svh; }
.chapter--steps .chapter__text { position: sticky; top: 46svh; padding-bottom: 24px; }
.chapter--steps .display { font-size: clamp(2.5rem, 10vw, 7rem); }

.parts { margin-top: 18px; display: grid; gap: 10px; max-width: 30rem; }
.part { display: grid; grid-template-columns: 14px 1fr; column-gap: 10px; align-items: baseline; }
.part__tick { width: 8px; height: 8px; background: var(--laiton); outline: 1px solid var(--graphite); transform: translateY(-1px); }
.part__name { font-weight: 700; display: inline; justify-self: start; }
.part__note { grid-column: 2; font-size: var(--fs-small); color: var(--graphite-doux); max-width: 32ch; }

.chapter--guarantee .aside { font-weight: 400; margin-top: 12px; font-size: var(--fs-small); color: var(--graphite-doux); }
.second { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--veine); max-width: 30rem; }
.second__value { font-family: var(--f-display); font-weight: 800; font-size: 3rem; line-height: 1; white-space: nowrap; }
.second__text { font-weight: 700; }

.steps { counter-reset: step; margin-top: 18px; display: grid; gap: 2px; max-width: 34rem; }
.step {
  display: grid; grid-template-columns: 2.2rem 1fr; column-gap: 10px; padding: 9px 0;
  border-top: 1px solid var(--veine);
  transition: color var(--t-base) var(--ease);
}
.step__num { grid-row: span 2; font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; line-height: 1; color: var(--laiton-fonce); font-variant-numeric: tabular-nums; }
.step__name { font-weight: 700; }
.step__text { font-size: var(--fs-small); color: var(--graphite-doux); }
/* L'étape en cours, suivie par la 3D */
html.is-3d .step { color: oklch(0.235 0.012 150 / 0.55); }
html.is-3d .step .step__text { color: oklch(0.42 0.014 150 / 0.6); }
html.is-3d .step.is-active, html.is-3d .step.is-done { color: var(--graphite); }
html.is-3d .step.is-active .step__text { color: var(--graphite-doux); }
html.is-3d .step.is-active .step__num { color: var(--palmier); }

@media (max-width: 759px) {
  html.is-3d:not(.is-static) .step:not(.is-active) .step__text { display: none; }
  html.is-3d:not(.is-static) .step { padding: 5px 0; }
  html.is-3d:not(.is-static) .step__num { font-size: 1.45rem; }
}

/* Chapitre d'appel : la plaque verte */
.callplate {
  margin-top: 22px; padding: 18px 16px 16px; max-width: 30rem;
  background: var(--palmier); color: var(--creme);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.callplate .plate { width: 100%; }
.callplate__mobile {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  min-height: 48px; padding: 12px 0 8px; text-decoration: none;
}
.callplate__mobile strong { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; font-variant-numeric: tabular-nums; text-decoration: underline; text-decoration-color: var(--laiton); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.callplate__mobile:hover strong { text-decoration-thickness: 2px; }
.callplate__mobile:active { opacity: 0.8; }
.callplate .status__note { color: oklch(0.965 0.016 88 / 0.75); }
.callplate .status__dot { background: oklch(0.7 0.13 35); }
.callplate .status.is-open .status__dot { background: var(--laiton); box-shadow: 0 0 0 4px oklch(0.76 0.105 82 / 0.25); }
.callplate .hours__row { border-color: oklch(0.965 0.016 88 / 0.2); }
.callplate__access { margin-top: 10px; font-size: var(--fs-small); color: oklch(0.965 0.016 88 / 0.85); }
@media (max-width: 759px) {
  .callplate .hours { display: none; }
  .hours-compact { display: block; font-size: var(--fs-small); padding-bottom: 4px; }
}

/* ---------- Grand écran : le texte à gauche, la pièce à droite ---------- */
@media (min-width: 760px) {
  .chapter { justify-content: center; }
  .chapter__text { width: min(46vw, 40rem); margin-left: var(--gutter); padding: 0; background: none !important; }
  .chapter--pieces .chapter__text, .chapter--guarantee .chapter__text, .chapter--call .chapter__text { padding: 12vh 0; }
  .chapter--hero { justify-content: flex-start; }
  .emergency__link { padding: 0 var(--gutter); min-height: 48px; }
  .hero { padding: clamp(32px, 6vh, 90px) 0 40px; margin-left: var(--gutter); }
  .lede { max-width: 30ch; }
  .actions { flex-direction: row; max-width: none; }
  .actions .plate { width: auto; }
  .hero__meta { max-width: 30rem; }
  .chapter--steps { justify-content: flex-start; }
  .chapter--steps .chapter__text { top: calc(var(--top-h) + 6vh); padding: 4vh 0; }
  .chapter--steps .display { font-size: clamp(3.3rem, 6.4vw, 7rem); }
  .chapter--call .chapter__text { margin-left: auto; margin-right: var(--gutter); width: min(42vw, 34rem); }
  .callplate { padding: 24px 24px 20px; }
}

/* ---------- Mode statique (?static=1) et « réduire les animations » : la dent montée, tout visible ---------- */
.is-static .stage, .is-static .leaders { display: none; }
.is-static .chapter { min-height: 0; }
.is-static .chapter__figure { display: block; padding: 8px var(--gutter) 0; }
.is-static .chapter__figure img { width: min(62vw, 340px); margin-inline: auto; }
.is-static .hero { padding-bottom: 8px; }
.is-static .chapter--steps .chapter__text { position: static; }
.is-static .chapter--pieces .chapter__text, .is-static .chapter--guarantee .chapter__text, .is-static .chapter--steps .chapter__text, .is-static .chapter--call .chapter__text { padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 760px) {
  .is-static .chapter--hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .is-static .chapter--hero .emergency { grid-column: 1 / -1; }
  .is-static .chapter--hero .chapter__figure img { width: min(30vw, 440px); }
  .is-static .chapter--call { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .is-static .chapter--call .chapter__figure img { width: min(26vw, 380px); }
  .is-static .chapter--pieces .chapter__text, .is-static .chapter--guarantee .chapter__text, .is-static .chapter--steps .chapter__text { padding: 9vh 0; }
}

/* ---------- 05 Les soins : un index typographique ---------- */
.care, .clinic, .callback { padding: clamp(80px, 13vw, 170px) 0; }
.care { background: var(--marbre); border-top: 1px solid var(--veine); }
.care .display { margin-bottom: clamp(32px, 6vw, 72px); }
.index { border-top: 1px solid var(--graphite); }
.index__item { border-bottom: 1px solid var(--veine); }
.index__head {
  width: 100%; display: grid; grid-template-columns: 2.4rem 1fr auto; column-gap: 12px; row-gap: 4px; align-items: baseline;
  padding: 18px 0; background: none; border: 0; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.index__num { font-family: var(--f-display); font-weight: 700; color: var(--laiton-fonce); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.index__name {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(2.1rem, 8.5vw, 4.6rem); line-height: 0.92;
  transition: transform var(--t-base) var(--ease);
}
.index__short { grid-column: 2 / 4; color: var(--graphite-doux); max-width: 46ch; }
.index__toggle { grid-column: 3; grid-row: 1; display: inline-flex; align-items: center; gap: 10px; align-self: center; min-height: 44px; }
.index__toggle-label { font-family: var(--f-display); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 1rem; }
.index__cross { position: relative; width: 22px; height: 22px; border: 1px solid var(--graphite); clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%); }
.index__cross::before, .index__cross::after {
  content: ''; position: absolute; left: 5px; right: 5px; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--graphite);
  transition: transform var(--t-base) var(--ease);
}
.index__cross::after { transform: rotate(90deg); }
.index__head:hover .index__name { transform: translateX(6px); }
.index__head:hover .index__cross { background: var(--palmier-clair); }
.index__head:active .index__name { transform: translateX(3px); }
.index__head:focus-visible { outline: 2px solid var(--graphite); outline-offset: 4px; box-shadow: 0 0 0 7px oklch(0.76 0.105 82 / 0.5); }
.index__item.is-open .index__cross { background: var(--graphite); }
.index__item.is-open .index__cross::before, .index__item.is-open .index__cross::after { background: var(--creme); }
.index__item.is-open .index__cross::after { transform: rotate(0deg); }
.index__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-base) var(--ease); }
.index__item.is-open .index__panel { grid-template-rows: 1fr; }
.index__inner { overflow: hidden; }
.index__inner p { padding: 0 0 24px; margin-left: calc(2.4rem + 12px); max-width: 60ch; }
.is-static .index__panel { grid-template-rows: 1fr; }
.is-static .index__toggle { display: none; }
@media (min-width: 760px) {
  .index__head { grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 0.9fr) auto; padding: 22px 0; }
  .index__short { grid-column: 3; grid-row: 1; align-self: center; }
  .index__toggle { grid-column: 4; }
  .index__inner p { margin-left: calc(4rem + 12px); }
}

/* ---------- 06 La clinique : ses vraies photos ---------- */
.clinic { background: var(--marbre); }
.clinic__grid { display: grid; gap: 28px; }
.facts { margin-top: 26px; display: grid; gap: 0; max-width: 30rem; }
.facts li { padding: 12px 0 12px 22px; border-top: 1px solid var(--veine); position: relative; }
.facts li::before { content: ''; position: absolute; left: 0; top: 1.15em; width: 8px; height: 8px; background: var(--laiton); outline: 1px solid var(--graphite); }
.facts strong { font-family: var(--f-display); font-weight: 800; font-size: 1.5em; line-height: 1; }
.photo img { width: 100%; background: var(--sable); }
.photo figcaption { display: flex; gap: 10px; align-items: baseline; margin-top: 10px; font-size: var(--fs-small); color: var(--graphite-doux); }
.photo figcaption::before { content: ''; width: 18px; height: 1px; background: var(--laiton-fonce); flex: none; transform: translateY(-4px); }
.photo--reception { margin-inline: calc(-1 * var(--gutter)); }
.photo--reception figcaption { padding-inline: var(--gutter); }
.clinic__hygiene { padding-top: 24px; }
.clinic__hygiene .body { max-width: 38ch; }
.photo--sterile { width: 78%; justify-self: end; }
@media (min-width: 760px) {
  .clinic__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 40px); row-gap: clamp(48px, 7vw, 110px); align-items: start; }
  .clinic__intro { grid-column: 1 / 6; align-self: center; }
  .photo--reception { grid-column: 7 / 13; margin: 0; }
  .photo--reception figcaption { padding: 0; }
  .photo--room { grid-column: 1 / 8; }
  .clinic__hygiene { grid-column: 9 / 13; align-self: end; padding: 0; }
  .photo--certificate { grid-column: 2 / 6; }
  .photo--sterile { grid-column: 8 / 12; width: auto; align-self: center; }
}

/* ---------- 07 Être rappelé ---------- */
.callback { background: var(--sable); }
.callback__grid { display: grid; gap: 36px; }
.callback__urgent { margin-top: 18px; font-weight: 700; }
.inline-call { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; text-decoration: underline; text-decoration-color: var(--laiton-fonce); text-underline-offset: 5px; white-space: nowrap; }
.inline-call:hover { text-decoration-thickness: 2px; }
.callback__card {
  background: var(--marbre-clair); padding: 22px 16px; border: 1px solid var(--graphite);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  position: relative;
}
.callback__card::after {
  content: ''; position: absolute; top: -1px; left: calc(100% - 23px); width: 33px; height: 1.5px; background: var(--graphite);
  transform-origin: 0 50%; transform: rotate(45deg);
}
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 6px; }
.field__label { font-weight: 700; font-size: 1rem; }
.field__input {
  width: 100%; height: 56px; padding: 0 14px; font-size: 1.15rem;
  background: var(--marbre); border: 1px solid var(--graphite-doux); border-bottom-width: 2px; border-radius: 0;
  transition: border-color var(--t-quick) var(--ease), background-color var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease);
}
.field__input:hover { border-color: var(--graphite); }
.field__input:focus { outline: 2px solid var(--graphite); outline-offset: 2px; border-color: var(--graphite); background: var(--marbre-clair); box-shadow: inset 0 -3px 0 var(--laiton); }
.field.is-filled .field__input { border-bottom-color: var(--palmier); }
.field__hint { font-size: var(--fs-small); color: var(--graphite-doux); }
.field__error { font-size: var(--fs-small); font-weight: 700; color: var(--brique); min-height: 0; }
.field__error:not(:empty)::before {
  content: '!'; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px;
  background: var(--brique); color: var(--creme); font-size: 0.8rem; vertical-align: 1px;
}
.field.is-error .field__input { border-color: var(--brique); background: oklch(0.97 0.015 32); }
.field.is-error .field__label { color: var(--brique); }

.choices { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices legend { padding: 0; margin-bottom: 8px; }
.choices__row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__label {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px 0 40px;
  border: 1px solid var(--graphite-doux); background: var(--marbre);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: background-color var(--t-quick) var(--ease), border-color var(--t-quick) var(--ease), color var(--t-quick) var(--ease);
}
.choice__mark {
  position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; z-index: 1;
  border: 1.5px solid var(--graphite); background: var(--marbre-clair);
  transition: background-color var(--t-quick) var(--ease);
}
.choice__mark::after {
  content: ''; position: absolute; left: 4px; top: 0px; width: 5px; height: 9px;
  border: solid var(--creme); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transform-origin: 60% 60%;
  transition: transform var(--t-base) var(--ease);
}
.choice:hover .choice__label { border-color: var(--graphite); background: var(--marbre-clair); }
.choice:active .choice__label { background: var(--palmier-clair); }
.choice input:checked ~ .choice__label { background: var(--palmier-clair); border-color: var(--palmier); color: var(--palmier-nuit); font-weight: 700; }
.choice input:checked ~ .choice__mark { background: var(--palmier); border-color: var(--palmier); }
.choice input:checked ~ .choice__mark::after { transform: rotate(45deg) scale(1); }
.choice input:focus-visible ~ .choice__label { box-shadow: inset 0 0 0 2px var(--laiton), inset 0 0 0 4px var(--graphite); }

.summary { display: grid; gap: 14px; outline: none; }
.summary__list { margin: 0; }
.summary__list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--veine); }
.summary__list dt { color: var(--graphite-doux); }
.summary__list dd { margin: 0; font-weight: 700; text-align: right; }
.summary__note { font-size: var(--fs-small); color: var(--graphite-doux); }
.summary .plate { justify-self: start; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.is-static) .summary { animation: rise var(--t-slow) var(--ease) both; }
}
@media (min-width: 760px) {
  .callback__card { padding: 34px 32px; }
}
/* Deux colonnes seulement quand la carte a la place de respirer */
@media (min-width: 1000px) {
  .callback__grid { grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
}
@media (min-width: 760px) and (max-width: 999px) {
  .callback__card { max-width: 560px; }
}

/* ---------- 08 Louez votre siège (pour les praticiens, discret) ---------- */
.rent { background: var(--marbre); border-top: 1px solid var(--veine); padding: 44px 0 52px; }
.rent__row { display: grid; gap: 12px; align-items: baseline; }
.rent .kicker { margin-bottom: 6px; font-size: 0.95rem; }
.rent__title { font-family: var(--f-display); font-weight: 800; font-size: 2.2rem; line-height: 1; }
.rent__text { font-size: var(--fs-small); color: var(--graphite-doux); max-width: 56ch; }
.rent .textlink { font-size: var(--fs-small); justify-self: start; }
@media (min-width: 1000px) {
  .rent__row { grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) auto; gap: 40px; align-items: center; }
}

/* ---------- Pied de page ---------- */
.foot { background: var(--palmier-nuit); color: var(--creme); padding: 64px 0 calc(40px + var(--bar-h)); }
.foot__grid { display: grid; gap: 34px; }
.foot__name { font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; line-height: 1; margin-top: 14px; }
.foot__tag { color: oklch(0.965 0.016 88 / 0.75); }
.foot__col { display: grid; gap: 4px; align-content: start; }
.foot__phone { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 48px; padding: 8px 0; text-decoration: none; border-bottom: 1px solid oklch(0.965 0.016 88 / 0.2); font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.foot__phone span { font-family: var(--f-text); font-weight: 400; font-size: var(--fs-small); color: oklch(0.965 0.016 88 / 0.75); }
.foot__phone:hover { color: var(--laiton); }
.foot__he { font-family: 'Segoe UI', Arial, sans-serif; color: oklch(0.965 0.016 88 / 0.75); padding-top: 6px; }
.foot .hours__row { border-color: oklch(0.965 0.016 88 / 0.2); }
.foot__nav { gap: 0; }
.foot__demo { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid oklch(0.965 0.016 88 / 0.2); font-size: var(--fs-small); color: oklch(0.965 0.016 88 / 0.8); }
.foot__demo a { color: var(--creme); text-decoration-color: var(--laiton); text-underline-offset: 4px; }
.foot__demo a:hover { text-decoration-thickness: 2px; }
@media (min-width: 760px) {
  .foot { padding-bottom: 48px; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 40px 56px; }
}
@media (min-width: 1100px) {
  .foot__grid { grid-template-columns: 1.1fr 1.2fr 1.2fr 0.8fr; gap: 40px; }
}

/* ---------- Barre d'appel du téléphone (après le haut de page) ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--palmier-nuit);
  transform: translateY(110%); transition: transform var(--t-base) var(--ease);
}
.callbar.is-on { transform: none; }
.callbar__link { display: flex; align-items: stretch; justify-content: space-between; gap: 12px; min-height: 52px; color: var(--creme); text-decoration: none; }
.callbar__text { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; }
.callbar__label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.92rem; color: oklch(0.965 0.016 88 / 0.8); }
.callbar__num { font-family: var(--f-display); font-weight: 800; font-size: 1.55rem; font-variant-numeric: tabular-nums; }
.callbar__act {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; font-weight: 700; font-size: 1rem;
  background: var(--creme); color: var(--palmier-nuit);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background-color var(--t-quick) var(--ease);
}
.callbar__link:hover .callbar__act { background: oklch(0.99 0.012 88); }
.callbar__link:active .callbar__act { background: var(--palmier-clair); }
.callbar__link:focus-visible { outline-offset: 2px; }
@media (min-width: 760px) { .callbar { display: none; } }
.is-static .callbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
}

/* Mode « affiche » (?poster=1) : sert seulement à fabriquer l'image de secours de la 3D */
html.is-poster, html.is-poster body { background: transparent; }
html.is-poster body * { visibility: hidden; }
html.is-poster .stage, html.is-poster .stage__canvas { visibility: visible; }
html.is-poster .stage { position: fixed; inset: 0 auto auto 0; width: 900px; height: 1100px; margin: 0; background: none; }
html.is-poster .stage__poster { display: none; }
