/* =========================================================
   Endodoncia Bucaramanga — Dr. Oscar Fernando Gómez Gómez
   Design system. Mobile-first, sombre, clinique.
   Polices auto-hébergées : aucune requête vers un tiers.
   ========================================================= */

/* ---------------- Polices ---------------- */
@font-face {
  font-family: 'Inter var';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/inter-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter var';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/inter-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------- Jetons ---------------- */
:root {
  --bg: #05080f;
  --bg-2: #080d17;
  --surface: rgba(255, 255, 255, 0.038);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(140, 190, 220, 0.16);
  --line-strong: rgba(63, 216, 255, 0.4);

  --ink: #eef3f8;
  --ink-dim: #9db1c6;
  --ink-faint: #6b7f95;

  --accent: #3fd8ff;
  --accent-deep: #0e9ec9;
  --gold: #e9b872;
  --green: #25d366;

  --font-sans: 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 10vw, 128px);

  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------- Base ---------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.nav-locked { overflow: hidden; }

img,
svg,
canvas { display: block; max-width: 100%; }
img { height: auto; }

/* Les <figure> du hero et de la section « spécialiste » portent la marge par
   défaut du navigateur (40 px) et rétrécissent visiblement les photos. */
figure { margin: 0; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #001018; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--accent);
  color: #001018;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------- Typographie ---------------- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
}
.display em {
  font-style: italic;
  color: var(--accent);
}

h1.display { font-size: clamp(2.6rem, 8.5vw, 5.2rem); }
h2.display { font-size: clamp(2rem, 5.6vw, 3.5rem); }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.05rem, 2.1vw, 1.24rem);
  color: var(--ink-dim);
  max-width: 46ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.section-lead {
  color: var(--ink-dim);
  font-size: 1.05rem;
  max-width: 58ch;
  margin-bottom: clamp(32px, 5vw, 56px);
}

section { position: relative; padding-block: var(--section-y); }

/* ---------------- Boutons ---------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #00131c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #6ce6ff, var(--accent-deep));
  box-shadow: 0 14px 34px -12px rgba(63, 216, 255, 0.65);
}
.btn-primary:hover { box-shadow: 0 20px 44px -12px rgba(63, 216, 255, 0.8); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--line-strong); background: var(--surface); }

.btn-wa { background: var(--green); color: #04240f; }

/* ---------------- Révélations ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
html:not(.js-ready) [data-reveal] { opacity: 1; transform: none; }

/* ---------------- En-tête ---------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 500;
  padding-block: 14px;
  transition: transform 0.4s var(--ease), background 0.3s, box-shadow 0.3s,
    border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-105%); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.brand-mark {
  flex: none;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--accent), var(--gold));
  color: #00131c;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1;
}
.brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  width: 17px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: background 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 17px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.28s var(--ease);
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after { top: 5.5px; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after { transform: translateY(-5.5px) rotate(-45deg); }

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink-dim);
  transition: color 0.2s, background 0.2s;
}
.nav-menu a:hover { color: var(--ink); background: var(--surface); }
.nav-menu .nav-cta a,
.nav-menu a.nav-cta {
  background: var(--accent);
  color: #00131c;
  font-weight: 600;
  padding-inline: 20px;
  margin-left: 8px;
}
.nav-menu a.nav-cta:hover { background: #6ce6ff; color: #00131c; }

@media (max-width: 979px) {
  .nav-menu {
    position: fixed;
    inset: 76px 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px;
    background: rgba(8, 13, 23, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  }
  .nav-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-menu a { padding: 14px 16px; font-size: 1rem; text-align: center; }
  .nav-menu a.nav-cta { margin: 8px 0 0; }
}
@media (min-width: 980px) {
  .nav-toggle { display: none; }
}

/* ---------------- Hero ---------------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: clamp(104px, 16vh, 150px);
  padding-bottom: clamp(72px, 12vh, 110px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(52% 42% at 78% 22%, rgba(63, 216, 255, 0.15), transparent 68%),
    radial-gradient(46% 44% at 12% 82%, rgba(233, 184, 114, 0.09), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(36px, 6vw, 64px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 32px; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
@media (max-width: 479px) {
  .hero-ctas .btn { flex: 1 1 100%; }
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(16px, 4vw, 38px);
  justify-content: start;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-trust div { min-width: 0; }
.hero-trust b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 4.4vw, 2rem);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 4px;
}
.hero-trust span {
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--ink-faint);
  display: block;
}

/* Portrait */
.hero-portrait {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
}
.hero-portrait::before {
  content: '';
  position: absolute;
  inset: 6% -6% -2% -6%;
  border-radius: 999px 999px 40% 40%;
  background: radial-gradient(60% 55% at 50% 42%, rgba(63, 216, 255, 0.22), transparent 72%);
  filter: blur(14px);
}
.hero-portrait img {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6));
}
.hero-portrait figcaption {
  position: absolute;
  left: 0;
  bottom: 6%;
  padding: 12px 18px;
  border-radius: var(--r);
  background: rgba(8, 13, 23, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ink-dim);
  max-width: 78%;
}
.hero-portrait figcaption b {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
@media (min-height: 720px) { .scroll-cue { display: flex; } }
.scroll-cue i {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--accent), transparent);
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------------- Voyage 3D ---------------- */
.journey {
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, #030509 45%, var(--bg) 100%);
  padding: 0;
}
.journey-stage {
  position: relative;
  height: 100svh;
  overflow: hidden;
}
.tooth-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Sur mobile, l'en-tête mange le haut de l'écran et la carte d'étape le bas :
   la couronne passait sous l'un et les racines sous l'autre. Plutôt que de
   décaler la caméra, on réduit la boîte du canvas — la scène recalcule seule son
   cadrage sur ce rectangle et la dent se pose entière dans la bande libre. */
@media (max-width: 899px) {
  .tooth-canvas {
    top: 58px;
    bottom: auto;
    /* Hauteur explicite, pas `auto` : un <canvas> en height:auto se dimensionne
       sur le ratio de son buffer de rendu, pas sur ses offsets — la boîte
       s'effondrait à 188 px et la dent devenait minuscule. */
    height: calc(67% - 58px);
  }
}

/* Le titre de section a fait son travail dès qu'on entre dans le parcours :
   passé la première étape il s'efface, et la dent occupe l'écran seule. */
.journey-head {
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.journey.head-away .journey-head {
  opacity: 0;
  transform: translateY(-12px);
}
/* Voiles haut et bas : sans eux, le titre et la carte d'étape se posent
   directement sur l'émail clair de la dent et deviennent illisibles. */
.journey-stage::before,
.journey-stage::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  z-index: 2;
  pointer-events: none;
}
.journey-stage::before {
  top: 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(3, 5, 9, 0.92), transparent);
}
.journey-stage::after {
  bottom: 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(3, 5, 9, 0.88), transparent);
}
.journey.is-fallback .journey-stage::before,
.journey.is-fallback .journey-stage::after { display: none; }

.journey-head {
  position: absolute;
  top: clamp(84px, 12vh, 116px);
  left: 0; right: 0;
  text-align: center;
  padding-inline: var(--gutter);
  pointer-events: none;
  z-index: 3;
}
.journey-head .eyebrow { margin-bottom: 8px; }
.journey-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 3.4vw, 2.1rem);
  color: var(--ink);
  margin: 0;
}

/* Rail de progression */
.journey-rail {
  position: absolute;
  z-index: 4;
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}
@media (min-width: 900px) {
  .journey-rail {
    top: 50%;
    right: clamp(20px, 3vw, 44px);
    transform: translateY(-50%);
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width: 899px) {
  .journey-rail {
    top: calc(env(safe-area-inset-top, 0px) + 68px);
    left: 0; right: 0;
    justify-content: center;
    gap: 8px;
  }
}
.rail-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.35s, transform 0.35s var(--ease);
}
.rail-dot.is-active { background: var(--accent); transform: scale(1.5); }
/* Le libellé se pose sur l'émail clair de la dent : sans fond, il disparaît. */
.rail-dot span {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  opacity: 0;
  transition: opacity 0.3s;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
}
@media (min-width: 900px) {
  .rail-dot.is-active span { opacity: 1; color: var(--accent); }
}
@media (max-width: 899px) {
  .rail-dot span { display: none; }
}

.journey-progress {
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  z-index: 5;
}
.journey-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
}

/* Cartes d'étape */
.stage {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(24px, 6vh, 64px);
  padding-inline: var(--gutter);
  z-index: 4;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  pointer-events: none;
}
.stage.is-active { opacity: 1; transform: none; }
/* Dégage la barre d'action fixe du mobile, sinon la carte finit dessous. */
@media (max-width: 759px) {
  .stage { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .stage-card p { font-size: 0.9rem; }
}
.stage-card {
  max-width: 460px;
  padding: clamp(20px, 3.4vw, 30px);
  border-radius: var(--r-lg);
  background: rgba(8, 13, 23, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .stage:nth-of-type(even) .stage-card { margin-left: auto; margin-right: 8%; }
  .stage:nth-of-type(odd) .stage-card { margin-left: 4%; }
}
.stage-num {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.stage-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  margin-bottom: 10px;
}
.stage-card p {
  color: var(--ink-dim);
  font-size: 0.95rem;
  margin: 0;
}

/* Repli sans WebGL / mouvement réduit */
.journey.is-fallback { padding-block: var(--section-y); }
.journey.is-fallback .journey-stage { height: auto; overflow: visible; }
.journey.is-fallback .journey-head { position: static; margin-bottom: 48px; }
.journey.is-fallback .journey-rail,
.journey.is-fallback .journey-progress { display: none; }
.journey.is-fallback .stage {
  position: static;
  opacity: 0;
  transform: translateY(20px);
  margin-bottom: 18px;
}
.journey.is-fallback .stage.is-active { opacity: 1; transform: none; }
.journey.is-fallback .stage-card { max-width: 680px; margin-inline: auto !important; }

/* ---------------- Chiffres ---------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 860px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--bg-2);
  padding: clamp(24px, 4vw, 38px) clamp(18px, 3vw, 28px);
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
/* Enfant direct : sinon la règle attrape aussi le <span> du compteur, qui vit
   dans le <b> et doit hériter de sa grande taille. */
.stat > span { font-size: 0.85rem; color: var(--ink-dim); }

.footnote {
  margin-top: 16px;
  font-size: 0.76rem;
  color: var(--ink-faint);
  max-width: 70ch;
}

/* ---------------- Le spécialiste ---------------- */
.about-grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 0.85fr 1.15fr; } }

.about-photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.about-photo img { width: 100%; }
.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, transparent 55%, rgba(5, 8, 15, 0.75));
  pointer-events: none;
}

.credentials {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.credentials li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  color: var(--ink-dim);
  font-size: 0.95rem;
}
.credentials li::before {
  content: '';
  width: 18px; height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--accent), var(--accent)) center / 6px 6px no-repeat;
  background-clip: content-box;
  padding: 5px;
}

/* ---------------- Services ---------------- */
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 660px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  padding: clamp(24px, 3.4vw, 32px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.card-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.85;
}
.card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card p { color: var(--ink-dim); font-size: 0.92rem; margin: 0; }

/* Encadré secondaire (odontologie générale sous les services) */
.note {
  margin-top: clamp(20px, 3vw, 30px);
  padding: clamp(20px, 3vw, 28px);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.02);
}
.note p { color: var(--ink-dim); font-size: 0.95rem; max-width: 68ch; }
.note ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
@media (min-width: 760px) { .note ul { grid-template-columns: repeat(2, 1fr); gap: 10px 28px; } }
.note li {
  color: var(--ink-dim);
  font-size: 0.9rem;
  padding-left: 18px;
  position: relative;
}
.note li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.note strong { color: var(--ink); font-weight: 600; }

/* ---------------- Technologie ---------------- */
.tech-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
.tech {
  background: var(--bg-2);
  padding: clamp(22px, 3vw, 30px);
}
.tech h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tech h3::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(63, 216, 255, 0.14);
  flex: none;
}
.tech p { color: var(--ink-dim); font-size: 0.9rem; margin: 0; }

/* ---------------- Guía (contenu long) ---------------- */
.guide-grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}
@media (min-width: 900px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }

.guide-block {
  padding: clamp(24px, 3.4vw, 34px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.guide-block h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.8vw, 1.6rem);
  margin-bottom: 14px;
}
.guide-block p,
.guide-block li { color: var(--ink-dim); font-size: 0.95rem; }
.guide-block ul {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 8px;
}
.guide-block strong { color: var(--ink); font-weight: 600; }

.answer {
  padding: clamp(20px, 3vw, 26px);
  border-left: 2px solid var(--accent);
  background: rgba(63, 216, 255, 0.05);
  border-radius: 0 var(--r) var(--r) 0;
  margin-bottom: 22px;
}
.answer p { margin: 0; color: var(--ink); font-size: 1rem; }

/* ---------------- Avis ---------------- */
.reviews {
  text-align: center;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 100% at 50% 0%, rgba(233, 184, 114, 0.09), transparent 70%),
    var(--surface);
}
.reviews .stars {
  font-size: 1.35rem;
  letter-spacing: 6px;
  color: var(--gold);
  margin-bottom: 16px;
}
.reviews h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
.reviews p {
  color: var(--ink-dim);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: 28px;
}

/* ---------------- FAQ ---------------- */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 860px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.faq-item.is-open { border-color: var(--line-strong); background: var(--surface-2); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(18px, 3vw, 26px);
  background: none;
  border: 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}
.faq-q::after {
  content: '';
  flex: none;
  width: 13px; height: 13px;
  margin-top: 5px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 1.5px 100% no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq-item.is-open .faq-q::after { transform: rotate(135deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-a > div {
  padding: 0 clamp(18px, 3vw, 26px) 22px;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.95fr 1.05fr; } }

.contact-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 4px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ico {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 1rem;
}
.contact-list dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 3px;
}
.contact-list dd { margin: 0; font-size: 0.98rem; }
.contact-list a:hover { color: var(--accent); }

.map {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 11;
  background: var(--bg-2);
}
.map iframe { width: 100%; height: 100%; border: 0; }

.contact-form {
  padding: clamp(24px, 3.6vw, 34px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  gap: 16px;
}
.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  margin-bottom: 7px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.4);
}
.field textarea { min-height: 112px; resize: vertical; }

.form-status {
  min-height: 1.4em;
  font-size: 0.88rem;
  color: var(--ink-dim);
  margin: 0;
}
.form-status[data-kind='ok'] { color: #6ee7a8; }
.form-status[data-kind='error'] { color: #ff9b9b; }

.form-legal { font-size: 0.76rem; color: var(--ink-faint); margin: 0; }

/* ---------------- Pied de page ---------------- */
.site-footer {
  padding: clamp(48px, 7vw, 80px) 0 calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  gap: 36px;
  margin-bottom: 40px;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-grid h3 {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.footer-grid p,
.footer-grid li { font-size: 0.9rem; color: var(--ink-dim); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.79rem;
  color: var(--ink-faint);
}

/* ---------------- Barre d'action mobile ---------------- */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 450;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(5, 8, 15, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.action-bar .btn { padding: 13px 16px; font-size: 0.92rem; }
@media (min-width: 760px) { .action-bar { display: none; } }
@media (max-width: 759px) { body { padding-bottom: 74px; } }

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 440;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #04240f;
  box-shadow: 0 14px 34px -8px rgba(37, 211, 102, 0.55);
  transition: transform 0.25s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 759px) { .wa-float { display: none; } }

/* ---------------- Pages internes ---------------- */
.page-body {
  padding-top: clamp(120px, 18vh, 180px);
  max-width: 760px;
}
.page-body h1 { font-family: var(--font-display); font-weight: 400; }
.page-body a { color: var(--accent); text-decoration: underline; }

/* ---------------- Mouvement réduit ---------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
