/* Site patients — Dr Seyfeddine Ghenia. Direction « luxe éditorial » (16/10/2026) : onyx / ivoire,
   filets champagne, Cormorant Garamond + Amiri auto-hébergées (OFL, voir fonts/LICENSE-*). */
@view-transition { navigation: auto; }

@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/cormorant-garamond-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 300; font-display: swap; src: url(fonts/cormorant-garamond-latin-300-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/amiri-arabic-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/amiri-arabic-700-normal.woff2) format("woff2"); }

:root {
  --bg: #f4efe6;
  --surface: #fbf8f2;
  --surface-2: #ece5d8;
  --ink: #15171a;
  --muted: #6c6a65;
  --line: rgb(21 23 26 / 13%);
  --gold: #9c7a43;
  --gold-2: #b8955a;
  --gold-soft: rgb(156 122 67 / 10%);
  --on-gold: #fbf8f2;
  --deep: #12171a;
  --on-deep: #ece6da;
  --alert-bg: rgb(122 30 40 / 7%);
  --alert-ink: #7a1e28;
  --alert-line: rgb(122 30 40 / 35%);
  --todo-ink: #7a5b22;
  --enamel-bright: #f8f2e6;
  --enamel-dull: #ddcda2;
  --display: "Cormorant", "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", Arial, sans-serif;
  --shadow: 0 30px 60px -30px rgb(20 18 14 / 35%);
  color-scheme: light;
}
/* Thème sombre (onyx et or) pour tout le monde, quel que soit le réglage clair/sombre du téléphone (choix du 18/10/2026). */
@media all {
  :root {
    --bg: #0b0d0e;
    --surface: #111416;
    --surface-2: #15191b;
    --ink: #ece6da;
    --muted: #9b968c;
    --line: rgb(236 230 218 / 12%);
    --gold: #c9a96e;
    --gold-2: #e0c48f;
    --gold-soft: rgb(201 169 110 / 10%);
    --on-gold: #0b0d0e;
    --deep: #060808;
    --alert-bg: rgb(160 50 62 / 12%);
    --alert-ink: #e6b4ba;
    --alert-line: rgb(230 180 186 / 30%);
    --todo-ink: #e0c48f;
    --shadow: 0 40px 80px -40px rgb(0 0 0 / 80%);
    color-scheme: dark;
  }
}
[dir="rtl"] { --display: "Amiri", "Noto Naskh Arabic", "Traditional Arabic", serif; --sans: "Segoe UI", "Noto Sans Arabic", Tahoma, system-ui, sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.75 var(--sans); letter-spacing: .005em; -webkit-font-smoothing: antialiased; }
html[dir="rtl"] body { font-size: 18px; line-height: 1.9; letter-spacing: 0; }
/* Grain très léger : la texture du papier. */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; }
img, svg { max-width: 100%; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 780px; }
.page-pad { padding-top: 56px; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip: auto; inset-inline-start: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 70; }
.draft { text-align: center; font: 500 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding: 8px 16px; border-bottom: 1px solid var(--line); }
[dir="rtl"] .draft { letter-spacing: 0; font-size: 13px; text-transform: none; }
.todo { color: var(--todo-ink); border: 1px dashed currentColor; padding: 1px 8px; font-size: .86em; letter-spacing: 0; text-transform: none; }
.ico { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; stroke-width: 1.3; }
[dir="rtl"] .arrow { transform: scaleX(-1); }

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.06; letter-spacing: -.01em; margin: 0 0 18px; }
h1 { font-weight: 300; font-size: clamp(46px, 6.6vw, 96px); }
h1 em { font-style: italic; color: var(--gold); font-weight: 300; }
[dir="rtl"] h1 { font-weight: 400; line-height: 1.3; font-size: clamp(40px, 5.6vw, 76px); }
[dir="rtl"] h1 em { font-style: normal; }
h2 { font-size: clamp(34px, 4vw, 54px); font-weight: 300; }
[dir="rtl"] h2 { font-weight: 400; line-height: 1.35; font-size: clamp(30px, 3.4vw, 44px); }
h3 { font-size: 25px; font-weight: 500; }
[dir="rtl"] h3 { font-weight: 700; font-size: 22px; line-height: 1.5; }
.eyebrow, .section-kicker, .g-kicker, .step-k, .stage-chip, .creds span, .hud span, .toc p, .crumbs {
  font: 500 11.5px/1.5 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px;
}
[dir="rtl"] :is(.eyebrow, .section-kicker, .g-kicker, .step-k, .stage-chip, .creds span, .hud span, .toc p, .crumbs) { letter-spacing: 0; font-size: 14px; text-transform: none; }
.section-kicker::before, .eyebrow::before { content: ""; display: inline-block; width: 36px; height: 1px; background: currentColor; vertical-align: middle; margin-inline-end: 14px; opacity: .8; }
.lead { font-size: 18.5px; line-height: 1.8; color: var(--muted); max-width: 54ch; font-weight: 300; }
[dir="rtl"] .lead { font-size: 20px; }
.sub { color: var(--muted); margin-top: -6px; max-width: 60ch; }
.motto { font: italic 300 clamp(24px, 2.6vw, 34px)/1.3 var(--display); color: var(--ink); margin: 6px 0 22px; }
[dir="rtl"] .motto { font-style: normal; font-weight: 400; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
.brand strong { display: block; font: 400 22px/1.1 var(--display); letter-spacing: .01em; }
[dir="rtl"] .brand strong { font-size: 22px; font-weight: 700; }
.brand small { display: block; color: var(--muted); font: 500 10.5px/1.6 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
[dir="rtl"] .brand small { letter-spacing: 0; font-size: 12.5px; text-transform: none; }
.mark { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border: 1px solid var(--gold); color: var(--gold); font: 400 18px/1 var(--display); letter-spacing: .06em; position: relative; }
.mark::after { content: ""; position: absolute; inset: 3px; border: 1px solid var(--gold); opacity: .35; }
.nav { display: flex; gap: 30px; }
.nav a { color: var(--ink); text-decoration: none; font: 500 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 8px 0; position: relative; }
[dir="rtl"] .nav a { letter-spacing: 0; font-size: 15px; text-transform: none; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.langs { display: flex; gap: 2px; font: 500 11px/1 var(--sans); letter-spacing: .14em; }
.langs a, .langs span { padding: 6px 7px; color: var(--muted); text-decoration: none; }
.langs span { color: var(--gold); }
.langs a:hover { color: var(--ink); }

/* ---------- Boutons ---------- */
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 18px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 1px solid var(--gold); border-radius: 0; color: var(--ink); background: transparent; font: 500 11.5px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; cursor: pointer; position: relative; overflow: hidden; transition: color .4s, background .4s, border-color .4s; }
[dir="rtl"] .btn { letter-spacing: 0; font-size: 15px; text-transform: none; }
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 22%) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s ease; }
.btn:hover::before { transform: translateX(120%); }
.btn:hover { border-color: var(--gold-2); }
.btn.primary { background: var(--gold); color: var(--on-gold); }
.btn.primary:hover { background: var(--gold-2); }
.btn.small { min-height: 44px; padding: 0 20px; }
.btn.big { min-height: 60px; padding: 0 36px; }
.btn.ig small { font-size: 10.5px; opacity: .7; letter-spacing: .08em; text-transform: none; }
.btn.is-todo { border-style: dashed; cursor: default; }
.btn .ico { width: 16px; height: 16px; }
.link-cta, .more { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); text-decoration: none; font: 500 11.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
[dir="rtl"] :is(.link-cta, .more) { letter-spacing: 0; font-size: 15px; text-transform: none; }
.link-cta .arrow, .more .arrow, .g-more .arrow { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.more:hover .arrow, .link-cta:hover .arrow, .guide-card:hover .g-more .arrow { transform: translateX(6px); }
[dir="rtl"] :is(.more, .link-cta):hover .arrow, [dir="rtl"] .guide-card:hover .g-more .arrow { transform: scaleX(-1) translateX(6px); }

/* ---------- Hero ---------- */
.hero2 { position: relative; padding: 84px 0 100px; overflow: hidden; overflow: clip; }
.hero2-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 90px; align-items: center; }
.hero2-photo { position: relative; margin: 0; justify-self: end; width: min(100%, 470px); }
[dir="rtl"] .hero2-photo { justify-self: start; }
.photo-frame { position: relative; }
.photo-frame::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--gold); opacity: .7; z-index: -1; }
[dir="rtl"] .photo-frame::before { inset: 22px 22px -22px -22px; }
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 16%; filter: saturate(.92) contrast(1.03); box-shadow: var(--shadow); background: var(--surface-2); }
.portrait-vide { display: grid; place-items: center; align-content: center; gap: 14px; color: var(--gold); text-align: center; padding: 20px; border: 1px solid var(--line); }
.portrait-vide > span:first-child { font: 300 80px var(--display); letter-spacing: .08em; }
.creds { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin-top: 52px; }
.creds span { margin: 0; display: inline-flex; align-items: center; }
.creds span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: .6; margin-inline: 14px; }
.cue { display: inline-flex; align-items: center; gap: 14px; margin-top: 44px; color: var(--muted); font: 500 11px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
[dir="rtl"] .cue { letter-spacing: 0; font-size: 14px; text-transform: none; }
.cue:hover { color: var(--ink); }
.cue-mouse { width: 1px; height: 54px; background: linear-gradient(var(--line), var(--line)); position: relative; overflow: hidden; flex: none; }
.cue-mouse::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: descente 2.4s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes descente { to { top: 110%; } }

/* ---------- Récit « le sourire en 4 actes » ---------- */
.story { --p1: 0; --p2: 0; --p3: 0; --p4: 0; --a: 0; --x: 0; --pf: 0; padding: 40px 0 20px; border-top: 1px solid var(--line); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 90px; }
.story-stage { position: sticky; top: 96px; height: calc(100vh - 120px); display: flex; align-items: center; }
.stage-card { width: 100%; background: var(--surface); border: 1px solid var(--line); padding: 34px 34px 26px; position: relative; box-shadow: var(--shadow); }
.stage-card::before, .stage-card::after { content: ""; position: absolute; width: 22px; height: 22px; border-color: var(--gold); border-style: solid; }
.stage-card::before { top: -1px; inset-inline-start: -1px; border-width: 1px 0 0 1px; }
.stage-card::after { bottom: -1px; inset-inline-end: -1px; border-width: 0 1px 1px 0; }
[dir="rtl"] .stage-card::before { border-width: 1px 1px 0 0; }
[dir="rtl"] .stage-card::after { border-width: 0 0 1px 1px; }
.stage-chip { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.stage-chip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); animation: battement 2.4s ease-in-out infinite; }
@keyframes battement { 50% { opacity: .25; } }
.stage-art { position: relative; aspect-ratio: 520 / 280; }
.stage-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.story .smile { opacity: calc(1 - var(--x)); transform: scale(calc(1 + var(--pf) * .03)); transform-origin: 50% 55%; }
.story .pano { opacity: var(--x); }
.stage-dots { display: flex; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 18px 0 0; }
.stage-dots li { width: 22px; height: 1px; background: var(--line); transition: background .6s, width .6s; }
.stage-dots li.on { width: 44px; background: var(--gold); }
.story-steps .step { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; opacity: .18; transition: opacity .9s ease; }
.story-steps .step.on { opacity: 1; }
.story-steps .step:first-child { min-height: 75vh; }
.story-steps .step:last-child { min-height: 85vh; }
.step h2 { font-size: clamp(40px, 4.4vw, 62px); }
.step p { font-size: 17.5px; line-height: 1.85; color: var(--muted); max-width: 44ch; font-weight: 300; }
[dir="rtl"] .step p { font-size: 19px; }
.step:last-child h2 { font-size: clamp(54px, 6vw, 88px); font-style: italic; color: var(--gold); }
[dir="rtl"] .step:last-child h2 { font-style: normal; }

/* Sourire (gravure) */
.smile .frame { fill: none; stroke: var(--gold); stroke-width: .8; opacity: .45; }
.smile .frame.thin { stroke-width: .5; opacity: .25; stroke-dasharray: 1 5; }
.smile .ticks line { stroke: var(--gold); stroke-width: .7; opacity: .7; }
.smile .ticks text { fill: var(--gold); font: 500 7.5px var(--sans); letter-spacing: .1em; opacity: .85; }
.smile .crown { fill: color-mix(in srgb, var(--enamel-bright) calc(var(--p4, 1) * 100%), var(--enamel-dull)); stroke: rgb(156 122 67 / 55%); stroke-width: .7; }
.gloss { fill: #fff; opacity: .5; }
.tt { transform-box: fill-box; transform-origin: 50% 50%; transform: translate(calc(var(--dx, 0px) * (1 - var(--a))), calc(var(--dy, 0px) * (1 - var(--a)))) rotate(calc(var(--r, 0deg) * (1 - var(--a)))); }
.bkt { fill: #c3c8cd; stroke: #8b939b; stroke-width: .6; transform-box: fill-box; transform-origin: center; opacity: calc(clamp(0, var(--p2) * 5, 1) * (1 - clamp(0, var(--p4) * 3, 1))); transform: scale(calc(.3 + .7 * clamp(0, var(--p2) * 5, 1))); }
.smile .wire { fill: none; stroke: #c9ced3; stroke-width: 1.3; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, var(--p2) * 2.2, 1)); opacity: calc(1 - clamp(0, var(--p4) * 3, 1)); }
.smile .gum { fill: #c9918d; opacity: .42; stroke: rgb(201 169 110 / 45%); stroke-width: .6; }
.smile .gum-hot { fill: #8e2d38; opacity: calc((1 - var(--p1)) * .5); }
.smile .tartar ellipse { fill: #b3904c; opacity: calc((1 - var(--p1)) * .9); }
.spark { fill: var(--gold-2); opacity: clamp(0, calc((var(--p4) - .55) * 3), 1); transform-box: fill-box; transform-origin: center; animation: scintille 3s ease-in-out infinite; animation-delay: calc(var(--i) * -1s); }
@keyframes scintille { 50% { scale: .5; opacity: .3; } }

/* Radio panoramique (tracé d'architecte) */
.pano .film { fill: #070909; stroke: var(--gold); stroke-width: .8; stroke-opacity: .5; }
.pano .glow { fill: none; stroke: rgb(201 169 110 / 14%); stroke-width: .6; stroke-dasharray: 2 6; }
.pano .jaw { fill: none; stroke: rgb(201 169 110 / 35%); stroke-width: .8; }
.pano .root { fill: rgb(201 169 110 / 6%); stroke: rgb(224 196 143 / 60%); stroke-width: .7; }
.pano .enamel { fill: rgb(236 230 218 / 16%); stroke: #e0c48f; stroke-width: .8; }
.pano .socket { fill: none; stroke: #e0c48f; stroke-width: .7; stroke-dasharray: 2 3; opacity: var(--p3); }
.pano .w48 { transform: translateY(calc(clamp(0, (var(--p3) - .25) * 1.8, 1) * -64px)); opacity: calc(1 - clamp(0, (var(--p3) - .4) * 3, 1)); }
.pano .w-ring { fill: none; stroke: #e0c48f; stroke-width: .8; stroke-dasharray: 3 4; transform-box: fill-box; transform-origin: center; animation: tourne 14s linear infinite; }
@keyframes tourne { to { rotate: 360deg; } }
.pano .w-label { fill: #e0c48f; font: 500 9px var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: calc(1 - var(--p3)); }

/* ---------- Orientation ---------- */
.band { background: var(--surface-2); padding: 110px 0; margin: 40px 0 0; border-block: 1px solid var(--line); }
.orient-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); margin: 40px 0 26px; }
.chip { text-align: start; font: 400 22px/1.3 var(--display); padding: 28px 28px 30px; border: 0; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; position: relative; transition: background .5s, color .5s; }
[dir="rtl"] .chip { font-size: 20px; }
.chip::after { content: "+"; position: absolute; top: 24px; inset-inline-end: 24px; font: 300 22px var(--sans); color: var(--gold); transition: transform .5s; }
.chip:hover { background: var(--gold-soft); }
.chip[aria-expanded="true"] { background: var(--deep); color: var(--on-deep); }
.chip[aria-expanded="true"]::after { transform: rotate(45deg); }
.orient-answer { max-width: 820px; padding: 8px 0 8px 32px; border-inline-start: 1px solid var(--gold); animation: panelIn .6s ease; }
[dir="rtl"] .orient-answer { padding: 8px 32px 8px 0; }
.orient-answer .o-q { font: italic 300 30px/1.2 var(--display); margin: 0 0 10px; }
[dir="rtl"] .orient-answer .o-q { font-style: normal; font-weight: 700; font-size: 24px; }
.o-actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 20px; }
.orient-note { color: var(--muted); font-size: 13px; margin-top: 18px; letter-spacing: .04em; }
.alerte { background: var(--alert-bg); color: var(--alert-ink); border: 1px solid var(--alert-line); padding: 14px 18px; font-size: 15.5px; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Défi ---------- */
.game { padding-top: 120px; }
.game-head { max-width: 720px; }
.game-card { position: relative; max-width: 760px; margin: 40px auto 0; background: var(--surface); border: 1px solid var(--line); padding: 26px 30px 30px; box-shadow: var(--shadow); overflow: hidden; }
.hud { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.hud span { margin: 0; }
.hud strong { font: 300 34px var(--display); color: var(--ink); letter-spacing: 0; margin-inline: 6px; }
.game-art { position: relative; aspect-ratio: 520 / 280; margin-top: 10px; }
.smile-game { width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; --p1: 1; --p2: 1; --p4: 1; --a: 1; }
.playing .smile-game { cursor: none; }
.smile-game .pq { fill: #c9b36a; opacity: .78; transition: opacity .35s; }
.smile-game .pq.h1 { opacity: .38; }
.smile-game .pq.gone { opacity: 0; }
.smile-game .brush { opacity: 0; pointer-events: none; }
.playing .smile-game .brush { opacity: 1; }
.brush line { stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.brush .bristles { fill: var(--surface); stroke: var(--gold); stroke-width: 1.2; }
.game-overlay, .game-end { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 24px; }
.game-overlay[hidden], .game-end[hidden] { display: none; }
.end-score { margin: 0; font: 300 88px/1 var(--display); color: var(--gold); }
.end-msg { font: italic 300 26px var(--display); margin: 2px 0 6px; }
[dir="rtl"] .end-msg { font-style: normal; font-weight: 700; font-size: 22px; }
.end-tip { color: var(--muted); font-size: 14px; max-width: 46ch; margin: 8px auto 0; }

/* ---------- Guides ---------- */
#guides { padding-top: 130px; }
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); margin-top: 40px; }
.guide-card { display: flex; flex-direction: column; gap: 4px; padding: 36px 34px 32px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .6s; position: relative; }
.guide-card::after { content: ""; position: absolute; inset-inline-start: 0; top: 0; width: 0; height: 1px; background: var(--gold); transition: width .8s cubic-bezier(.2,.7,.2,1); }
.guide-card:hover { background: var(--surface); }
.guide-card:hover::after { width: 100%; }
.g-ico { width: 46px; height: 46px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold); margin-bottom: 22px; }
.g-ico .ico { width: 20px; height: 20px; }
.g-kicker { margin-bottom: 10px; }
.guide-card h3 { font-size: 27px; font-weight: 400; margin-bottom: 10px; }
[dir="rtl"] .guide-card h3 { font-size: 21px; }
.guide-card p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; font-weight: 300; }
.g-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--gold); font: 500 11px var(--sans); letter-spacing: .2em; text-transform: uppercase; }
[dir="rtl"] .g-more { letter-spacing: 0; font-size: 14px; text-transform: none; }

/* ---------- Docteur ---------- */
.doctor { margin-top: 130px; padding: 120px 0; background: var(--deep); color: var(--on-deep); --ink: var(--on-deep); --muted: #a39e93; --line: rgb(236 230 218 / 12%); --gold: #c9a96e; --gold-2: #e0c48f; --on-gold: #0b0d0e; --surface: #101315; }
.doctor-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 100px; align-items: start; }
.doctor-photo { position: sticky; top: 120px; }
.doctor-photo::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid var(--gold); opacity: .55; }
[dir="rtl"] .doctor-photo::before { inset: -18px -18px 18px 18px; }
.portrait.small { position: relative; }
.doctor-text > p { font-size: 18px; font-weight: 300; line-height: 1.9; }
.signature { font: italic 400 46px/1.1 var(--display); color: var(--gold); margin: 30px 0 16px; }
[dir="rtl"] .signature { font-style: normal; font-size: 36px; }
.facts, .check { padding: 0; list-style: none; }
.facts li, .check li { position: relative; padding-inline-start: 30px; margin: 10px 0; }
.facts li::before, .check li::before { content: ""; position: absolute; inset-inline-start: 0; top: .9em; width: 16px; height: 1px; background: var(--gold); }
.mini-steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin: 36px 0; }
.mini-steps div { padding: 22px 20px 6px 0; }
.mini-steps div + div { padding-inline-start: 20px; border-inline-start: 1px solid var(--line); }
.mini-steps .step-n { display: block; font: 300 34px/1 var(--display); color: var(--gold); margin-bottom: 10px; }
.mini-steps strong { font: 400 21px var(--display); }
[dir="rtl"] .mini-steps strong { font-weight: 700; font-size: 18px; }
.mini-steps p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.with-ico { display: flex; gap: 12px; align-items: flex-start; }
.with-ico .ico { color: var(--gold); margin-top: .35em; }
.doctor-where { margin: 8px 0 4px; }

/* ---------- Rendez-vous ---------- */
.rdv-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin: 36px 0; }
.rdv-card { padding: 26px 26px 18px 0; }
.rdv-card + .rdv-card { padding-inline-start: 26px; border-inline-start: 1px solid var(--line); }
.rdv-card h2 { font-size: 28px; display: flex; gap: 12px; align-items: center; }
.rdv-card h2 .ico { color: var(--gold); }

/* ---------- Articles ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 40; }
.progress span { display: block; height: 100%; background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: left; }
[dir="rtl"] .progress span { transform-origin: right; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 90px; padding-top: 56px; }
.article { max-width: 740px; }
.crumbs { display: flex; gap: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.article h1 { font-size: clamp(42px, 5vw, 70px); }
.meta { color: var(--muted); font-size: 13.5px; letter-spacing: .04em; margin-bottom: 44px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.prose h2 { font-size: clamp(30px, 3vw, 40px); margin: 64px 0 16px; }
.prose h3 { font-size: 24px; margin: 38px 0 10px; }
.prose p, .prose li { font-size: 17.5px; font-weight: 300; line-height: 1.85; }
[dir="rtl"] .prose p, [dir="rtl"] .prose li { font-size: 19px; font-weight: 400; }
.prose strong { font-weight: 600; }
.prose li { margin: 8px 0; }
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose ul li::marker { color: var(--gold); }
.prose a { word-break: break-word; }
.table { overflow-x: auto; margin: 28px 0; border-top: 1px solid var(--gold); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border-bottom: 1px solid var(--line); padding: 13px 14px; text-align: start; vertical-align: top; }
th { font: 500 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
[dir="rtl"] th { letter-spacing: 0; font-size: 14px; text-transform: none; }
details.faq { border-bottom: 1px solid var(--line); }
details.faq:first-of-type { border-top: 1px solid var(--line); }
details.faq summary { cursor: pointer; list-style: none; font: 400 23px/1.35 var(--display); padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; }
[dir="rtl"] details.faq summary { font-weight: 700; font-size: 20px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font: 300 24px/1 var(--sans); color: var(--gold); transition: transform .5s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 0 0 24px; color: var(--muted); }
.cta-box { display: grid; gap: 14px; background: var(--deep); color: var(--on-deep); padding: 44px; margin: 70px 0 20px; border: 1px solid rgb(201 169 110 / 40%); --gold: #c9a96e; --gold-2: #e0c48f; --on-gold: #0b0d0e; --ink: var(--on-deep); }
.cta-box .cta-h { font: italic 300 36px/1.15 var(--display); margin: 0; }
[dir="rtl"] .cta-box .cta-h { font-style: normal; font-weight: 700; font-size: 28px; }
.cta-box p { margin: 0; color: #a39e93; }
.cta-box .btn { justify-self: start; }
.cta-box .actions { margin: 0; }
.toc-side { position: relative; }
.toc { position: sticky; top: 110px; font-size: 13.5px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-inline-start: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 18px; margin-inline-start: -1px; border-inline-start: 1px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; transition: color .4s, border-color .4s; }
[dir="rtl"] .toc a { padding: 7px 18px 7px 0; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--gold); border-color: var(--gold); }
.related { padding-top: 90px; }

/* ---------- Atlas (page « Nom des dents ») ---------- */
.hero-atlas { background: var(--surface); border: 1px solid var(--line); padding: 32px; }
.atlas-page { margin: 36px 0 20px; }
.atlas-text { margin-top: 40px; }
.atlas { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.atlas-svg { display: block; width: 100%; height: auto; max-height: 520px; margin: 0 auto; touch-action: manipulation; }
.atlas-side { display: flex; flex-direction: column; gap: 18px; }
.atlas-tabs { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.atlas-tabs button { flex: 1 1 auto; font: 500 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 14px 12px; border: 0; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: color .4s, background .4s; }
[dir="rtl"] .atlas-tabs button { letter-spacing: 0; font-size: 14px; text-transform: none; }
.atlas-tabs button:hover { color: var(--ink); }
.atlas-tabs button[aria-selected="true"] { background: var(--gold); color: var(--on-gold); }
.atlas-panel { animation: panelIn .5s ease; }
.atlas-panel p { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.shade { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.shade input { flex: 1; accent-color: var(--gold); }
.atlas-panel .btn.small { margin-inline-end: 16px; }
.gum { fill: none; stroke: #c99490; stroke-width: 34; stroke-linecap: round; stroke-linejoin: round; opacity: .3; transition: stroke .6s, opacity .4s; }
.tooth { cursor: pointer; outline: none; }
.tooth .body { transform-box: fill-box; transform-origin: center; transition: transform 1.6s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.atlas-svg .crown { fill: var(--shade, var(--enamel-bright)); stroke: rgb(156 122 67 / 55%); stroke-width: .8; transition: fill .3s, stroke .3s; }
.groove { fill: none; stroke: rgb(156 122 67 / 45%); stroke-width: .8; stroke-linecap: round; }
.tooth:hover .crown, .tooth:focus-visible .crown { stroke: var(--gold); stroke-width: 1.6; }
.tooth.on .crown { fill: #efe2c4; stroke: var(--gold); stroke-width: 1.8; }
.bracket { fill: #c3c8cd; opacity: 0; transition: opacity .4s; }
.atlas-svg .wire { fill: none; stroke: #c9ced3; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 1.6s ease .2s, opacity .3s; }
.atlas-svg .tartar circle { fill: #b3904c; opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .5s, transform .5s; }
.shell { fill: none; stroke: #f3f6f8; stroke-width: 30; stroke-linecap: round; opacity: 0; transition: opacity .5s; }
.halo { fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0; }
.label-n { font: 300 28px var(--display); fill: var(--gold); }
.label-name { font: 400 12px var(--sans); fill: var(--ink); }
.label-pos { font: 400 11px var(--sans); fill: var(--muted); }
.side { font: 500 8.5px var(--sans); fill: var(--muted); letter-spacing: .2em; text-transform: uppercase; }
.atlas[data-mode="sagesse"] .tooth:not(.t7) .body { opacity: .3; }
.atlas[data-mode="sagesse"] .t7 .crown { stroke: var(--gold); stroke-width: 1.8; }
.atlas[data-mode="sagesse"] .halo { opacity: 1; animation: pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.atlas[data-mode="appareil"] .bracket { opacity: 1; }
.atlas[data-mode="appareil"] .wire { opacity: 1; stroke-dashoffset: 0; }
.atlas[data-mode="tartre"] .tartar circle { opacity: 1; }
.atlas[data-mode="tartre"] .gum.lower { stroke: #9e2a37; opacity: .45; }
.atlas[data-mode="tartre"].clean .tartar circle { opacity: 0; transform: scale(0); }
.atlas[data-mode="tartre"].clean .gum.lower { stroke: #c99490; opacity: .3; }
.atlas[data-mode="coque"] .shell { opacity: .85; }
.atlas[data-mode="coque"] .tooth .body { opacity: .7; }

/* ---------- Pied, dock ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 0; padding: 60px 0 120px; color: var(--muted); font-size: 13.5px; }
.foot .wrap { display: grid; gap: 8px; }
.foot-brand { display: flex; gap: 16px; align-items: center; color: var(--ink); margin-bottom: 10px; }
.foot-brand p strong { font: 400 22px var(--display); }
.foot p { margin: 4px 0; }
.foot a { color: var(--muted); }
.dock { display: none; }

/* ---------- Apparitions ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 120ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero2-grid, .story-grid, .doctor-grid, .article-grid { grid-template-columns: minmax(0, 1fr); gap: 50px; }
  .hero2-photo { order: -1; justify-self: start; width: min(78%, 400px); }
  .story-stage { top: 76px; height: auto; z-index: 3; padding: 10px 0 14px; background: linear-gradient(var(--bg) 88%, transparent); }
  .stage-card { padding: 16px 16px 12px; }
  .story-steps .step { min-height: 64vh; justify-content: flex-start; padding-top: 6vh; }
  .doctor-photo { position: relative; top: 0; max-width: 340px; }
  .toc-side { display: none; }
  .orient-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .top .wrap { gap: 12px; min-height: 64px; flex-wrap: nowrap; }
  .nav { display: none; }
  .brand strong { font-size: 19px; }
  .mark { width: 36px; height: 36px; font-size: 15px; }
  .hero2 { padding: 40px 0 70px; }
  .hero2-photo { width: min(76%, 320px); }
  .photo-frame::before { inset: 14px -14px -14px 14px; }
  .story-stage { top: 64px; }
  .orient-choices { grid-template-columns: minmax(0, 1fr); }
  .chip { font-size: 20px; padding: 22px 20px; }
  .mini-steps, .rdv-grid { grid-template-columns: minmax(0, 1fr); }
  .mini-steps div + div, .rdv-card + .rdv-card { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--line); }
  .band { padding: 80px 0; }
  .game-card { padding: 16px; }
  .end-score { font-size: 66px; }
  .doctor { padding: 80px 0; margin-top: 90px; }
  .cta-box { padding: 30px 24px; }
  .hero-atlas { padding: 18px; }
  .atlas-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .atlas-tabs button { white-space: nowrap; }
  html { scroll-padding-top: 76px; }
  .dock { display: flex; align-items: center; justify-content: center; gap: 10px; position: fixed; bottom: max(14px, env(safe-area-inset-bottom)); inset-inline: 16px; z-index: 35; min-height: 54px; background: var(--gold); color: var(--on-gold); font: 500 11.5px var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; box-shadow: 0 18px 40px -16px rgb(0 0 0 / 60%); transition: transform .5s, opacity .5s; }
  [dir="rtl"] .dock { letter-spacing: 0; font-size: 15px; text-transform: none; }
  .dock.hide { transform: translateY(150%); opacity: 0; }
}
@media (max-width: 420px) {
  .brand small { display: none; }
  .brand { min-width: 0; flex: 1; }
  .brand > span:last-child { min-width: 0; }
  .brand strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .langs { flex: none; }
  .creds span + span::before { margin-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .story .smile { transform: none; }
  @view-transition { navigation: none; }
}

/* Séquence 3D (Blender) : écrin noir, bords fondus. */
.stage-card:has(.seq-art) { background: #0b0d0e; --gold: #c9a96e; }
.seq-art { aspect-ratio: 1440 / 800; }
.seq-art canvas, .seq-art img { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); }
@media (max-width: 560px) {
  .creds { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 40px; }
  .creds span + span::before { display: none; }
}

/* ---------- Vitrine 3D de l'accueil : crâne et dents à faire pivoter ---------- */
.hero-vitrine { width: min(100%, 540px); }
.vitrine { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 44%, #1d2326 0%, #0e1112 58%, #070909 100%); border: 1px solid rgb(201 169 110 / 30%); box-shadow: var(--shadow); cursor: grab; touch-action: pan-y; overflow: hidden; outline-offset: 4px; }
.vitrine:active { cursor: grabbing; }
.vitrine::before, .vitrine::after { content: ""; position: absolute; width: 26px; height: 26px; border-color: #c9a96e; border-style: solid; z-index: 2; pointer-events: none; }
.vitrine::before { top: 10px; inset-inline-start: 10px; border-width: 1px 0 0 1px; }
.vitrine::after { bottom: 10px; inset-inline-end: 10px; border-width: 0 1px 1px 0; }
.vitrine canvas, .vitrine img { position: absolute; inset: 0; width: 100%; height: 100%; }
.vitrine-hint { position: absolute; bottom: 22px; inset-inline-end: 46px; margin: 0; display: flex; gap: 10px; align-items: center; color: #c9a96e; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; transition: opacity .8s; }
[dir="rtl"] .vitrine-hint { letter-spacing: 0; font-size: 13px; }
.vitrine.touched .vitrine-hint { opacity: 0; }
.vitrine-wrap { position: relative; }
.medaillon { position: absolute; inset-inline-start: -36px; bottom: -36px; width: 132px; aspect-ratio: 1; border-radius: 50%; padding: 5px; background: var(--bg); border: 1px solid var(--gold); box-shadow: var(--shadow); z-index: 3; }
.portrait.medal { aspect-ratio: 1; border-radius: 50%; object-position: 50% 18%; box-shadow: none; }
.hero-vitrine .creds { margin-top: 60px; }
@media (max-width: 1080px) {
  .hero-vitrine { width: min(100%, 560px); justify-self: center; }
  .medaillon { inset-inline-start: 16px; bottom: -30px; width: 104px; }
}
@media (max-width: 560px) {
  .hero-vitrine { width: 100%; }
  .medaillon { width: 88px; bottom: -26px; }
  .vitrine-hint { inset-inline-end: 40px; bottom: 18px; }
  .hero-vitrine .creds { margin-top: 48px; }
}

/* ---------- Accroche « Le sourire en 3D » ---------- */
.teaser3d { padding: 110px 0; background: #0b0d0e; color: #ece6da; --gold: #c9a96e; position: relative; overflow: hidden; }
.teaser-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 70px; align-items: center; }
.teaser-art { position: relative; display: block; aspect-ratio: 840 / 720; background: radial-gradient(circle at 50% 46%, #1d2326 0%, #0b0d0e 64%); border: 1px solid rgb(201 169 110 / 25%); overflow: hidden; transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .4s; }
.teaser-art:hover { border-color: rgb(201 169 110 / 60%); }
.teaser-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.teaser-art:hover img { transform: scale(1.06); }
.teaser-art::before, .teaser-art::after { content: ""; position: absolute; pointer-events: none; }
.teaser-art::before { inset: 10px; border: 1px solid rgb(201 169 110 / 18%); z-index: 2; }
/* reflet doré qui balaie les sutures */
.teaser-art::after { inset: -40%; background: linear-gradient(105deg, transparent 42%, rgb(232 196 130 / 22%) 50%, transparent 58%); mix-blend-mode: screen; animation: reflet 6.5s ease-in-out infinite; z-index: 1; }
@keyframes reflet { 0%, 55% { transform: translateX(-60%); } 85%, 100% { transform: translateX(60%); } }
.teaser-badge { position: absolute; top: 22px; inset-inline-end: 22px; z-index: 3; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #c9a96e; color: #c9a96e; font: 400 20px var(--display); letter-spacing: .06em; background: rgb(11 13 14 / 55%); backdrop-filter: blur(6px); animation: pouls 2.8s ease-in-out infinite; }
@keyframes pouls { 0%, 100% { box-shadow: 0 0 0 0 rgb(201 169 110 / 35%); } 50% { box-shadow: 0 0 0 12px rgb(201 169 110 / 0%); } }
.teaser-text h2 { color: #f3eee4; }
.teaser-text p { color: #b9b3a8; }
.teaser-text .btn { margin-top: 10px; }
.teaser-note { font-size: 13px; color: #8f897e !important; margin-top: 14px; letter-spacing: .04em; }
@media (max-width: 1080px) { .teaser-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } .teaser3d { padding: 70px 0; } }
@media (prefers-reduced-motion: reduce) { .teaser-art::after, .teaser-badge { animation: none; } .teaser-art { transform: none; } }
.hero-3d { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--gold); text-decoration: none; font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid transparent; padding-bottom: 4px; transition: border-color .3s; }
.hero-3d:hover { border-color: var(--gold); }
[dir="rtl"] .hero-3d { letter-spacing: 0; font-size: 14px; }
.hero-3d .pt { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pouls 2.4s ease-in-out infinite; }

/* ---------- Encadré auteur des guides ---------- */
.auteur { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 22px; align-items: center; margin: 48px 0 30px; padding: 24px; border: 1px solid var(--line); border-inline-start: 2px solid var(--gold); background: var(--surface); }
.auteur img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 1px solid var(--gold); padding: 3px; background: var(--bg); }
.auteur p { margin: 0; }
.auteur .auteur-k { font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
[dir="rtl"] .auteur .auteur-k { letter-spacing: 0; font-size: 13px; }
.auteur .auteur-m { margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .auteur { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 18px; } .auteur img { width: 64px; height: 64px; } }

/* Guides en liste compacte sur téléphone : pictogramme à côté du titre, sans résumé (12 guides et plus). */
@media (max-width: 560px) {
  .guide-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 20px 18px; }
  .guide-card .g-ico { grid-row: 1 / span 3; width: 40px; height: 40px; margin: 2px 0 0; }
  .guide-card .g-kicker { margin-bottom: 4px; }
  .guide-card h3 { font-size: 20px; margin-bottom: 0; }
  [dir="rtl"] .guide-card h3 { font-size: 18px; }
  .guide-card p { display: none; }
  .guide-card .g-more { margin-top: 8px; }
}

/* ---------- Premier écran : crâne 3D en direct ---------- */
.hero-live { position: relative; height: calc(100svh - 76px); min-height: 560px; max-height: 960px; overflow: hidden; overflow: clip; color: #f3eee4; background: radial-gradient(ellipse 65% 75% at 70% 50%, #1b2124 0%, #0b0e0f 58%, #050606 100%); }
[dir="rtl"] .hero-live { background: radial-gradient(ellipse 65% 75% at 30% 50%, #1b2124 0%, #0b0e0f 58%, #050606 100%); }
.hero-live canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.8s ease; touch-action: pan-y; cursor: grab; }
.hero-live canvas.pret { opacity: 1; }
.hero-live canvas:active { cursor: grabbing; }
.hero-live::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgb(5 6 6 / 78%) 0%, rgb(5 6 6 / 35%) 38%, transparent 60%); }
[dir="rtl"] .hero-live::before { background: linear-gradient(270deg, rgb(5 6 6 / 78%) 0%, rgb(5 6 6 / 35%) 38%, transparent 60%); }
.hl-text { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.hl-text > * { max-width: 560px; pointer-events: auto; }
.hero-live h1 { font-size: clamp(44px, 5.6vw, 88px); color: #f3eee4; }
.hero-live .motto { color: #f3eee4; }
.hero-live .eyebrow { color: #c9a96e; }
.hero-live .btn.hl-rdv { color: #f3eee4; }
.hl-hint { margin-top: 26px; color: rgb(243 238 228 / 45%); font: 500 10.5px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
[dir="rtl"] .hl-hint { letter-spacing: 0; font-size: 13px; text-transform: none; }
.hl-bas { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 6px 12px; }
.h1 { font-weight: 300; font-size: clamp(36px, 4.4vw, 64px); }
.h1 em { font-style: italic; color: var(--gold); font-weight: 300; }
[dir="rtl"] .h1 em { font-style: normal; }
@media (max-width: 899px) {
  /* le crâne occupe le haut (environ 45 %), le texte le bas, au-dessus de la barre « Prendre rendez-vous » */
  .hero-live { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; background: radial-gradient(ellipse 90% 40% at 50% 24%, #1b2124 0%, #0b0e0f 60%, #050606 100%); }
  [dir="rtl"] .hero-live { background: radial-gradient(ellipse 90% 40% at 50% 24%, #1b2124 0%, #0b0e0f 60%, #050606 100%); }
  .hero-live canvas { position: relative; inset: auto; height: clamp(260px, 46svh, 460px); flex: none; }
  .hero-live::before, [dir="rtl"] .hero-live::before { background: linear-gradient(180deg, transparent 30%, rgb(5 6 6 / 55%) 44%, transparent 60%); opacity: 0; }
  .hl-text { height: auto; justify-content: flex-start; padding-top: 4px; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .hl-text > * { max-width: none; }
  .hero-live h1 { font-size: clamp(34px, 9vw, 52px); margin-bottom: 10px; }
  .hero-live .motto { font-size: clamp(20px, 5vw, 26px); margin-bottom: 20px; }
  .hero-live .actions { flex-direction: column; align-items: stretch; max-width: 420px; }
  .hl-hint, .hl-bas { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-live canvas { transition: none; } }

/* En-tête : le menu ne tient sur une ligne qu'à partir d'environ 1000 px ; en dessous, on le masque (la barre du bas garde le rendez-vous). */
.nav a, .brand strong, .brand small { white-space: nowrap; }
@media (max-width: 1000px) { .nav { display: none; } }
@media (max-width: 899px) { .hero-live canvas { height: clamp(220px, 42svh, 460px); } }
/* La barre « Prendre rendez-vous » n'existe que sous 760 px : le bouton du héros n'y est pas répété, et le texte remonte au-dessus de la barre. */
@media (min-width: 761px) and (max-width: 899px) { .hl-text { padding-bottom: 56px; } .hero-live .actions { flex-direction: row; max-width: none; } }
@media (max-width: 760px) { .hero-live .btn.hl-rdv { display: none; } }

/* Médaillon du praticien dans le premier écran, au-dessus du nom ; la section suivante n'a plus de titre (pas de répétition). */
.medaillon-hero { flex: none; width: 96px; height: 96px; box-sizing: border-box; border-radius: 50%; padding: 4px; border: 1px solid #c9a96e; margin: 0 0 24px; }
.medaillon-hero img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.hero-live ~ .hero2 { padding-top: 70px; }
.hero-live ~ .hero2 .lead { font-size: 20px; color: var(--ink); max-width: 46ch; }
[dir="rtl"] .hero-live ~ .hero2 .lead { font-size: 21px; }
@media (max-width: 899px) {
  .medaillon-hero { width: 72px; height: 72px; margin: 0 0 14px; }
  .hero-live canvas { height: clamp(220px, 36svh, 420px); }
  /* sur téléphone, le médaillon chevauche le bas du crâne pour gagner de la hauteur */
  .hl-text { margin-top: -38px; }
  .hero-live ~ .hero2 { padding-top: 44px; }
  .hero-live ~ .hero2 .lead { font-size: 18px; }
}

/* Titres du praticien dans le premier écran (ex-légende de la grande photo), séparés par des points. */
.hl-creds span + span::before { content: "·"; margin-inline: .7em; opacity: .7; }
.hero2.solo .hero2-grid { grid-template-columns: minmax(0, 1fr); }
.hero2.solo .hero2-text { max-width: 760px; }
@media (max-width: 560px) { .hl-creds { line-height: 1.9; } }
.hl-creds span { display: inline-block; white-space: nowrap; }
.hero2.solo { padding: 64px 0 56px; }
@media (max-width: 560px) {
  .hl-creds::before { display: none; }
  .hl-creds span { display: block; }
  .hl-creds span + span::before { content: none; }
}
/* Téléphone : médaillon à gauche des titres (carte de visite), pour garder le bouton 3D au-dessus de la barre du bas. */
@media (max-width: 899px) {
  .hl-text { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-content: start; }
  .hl-text > * { grid-column: 1 / -1; }
  .hl-text > .medaillon-hero { grid-column: 1; margin: 0; align-self: center; }
  .hl-text > .hl-creds { grid-column: 2; align-self: center; margin: 0; }
  .hl-text > .hl-creds + h1 { margin-top: 20px; }
}
.doc-lead { font-size: 19px; color: var(--ink); font-weight: 300; line-height: 1.75; }

/* Légende des étapes de l'animation (bagues) et bouton « Revoir », posés sur le crâne */
.hl-etape { position: absolute; z-index: 3; top: 26px; inset-inline-end: 6%; margin: 0; padding: 9px 16px; border: 1px solid rgb(201 169 110 / 55%); background: rgb(5 6 6 / 55%); backdrop-filter: blur(6px); color: #c9a96e; font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; opacity: 0; transform: translateY(-6px); transition: opacity .6s, transform .6s; pointer-events: none; }
.hl-etape.on { opacity: 1; transform: none; }
[dir="rtl"] .hl-etape { letter-spacing: 0; font-size: 14px; text-transform: none; }
.hl-rejouer { position: absolute; z-index: 3; bottom: 26px; inset-inline-end: 6%; padding: 10px 18px; border: 1px solid rgb(201 169 110 / 60%); background: transparent; color: #f3eee4; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.hl-rejouer:hover { border-color: #c9a96e; color: #c9a96e; }
[dir="rtl"] .hl-rejouer { letter-spacing: 0; font-size: 14px; text-transform: none; }
@media (max-width: 899px) {
  .hl-etape { top: 14px; inset-inline-end: auto; inset-inline-start: 50%; transform: translate(-50%, -6px); white-space: nowrap; }
  [dir="rtl"] .hl-etape { transform: translate(50%, -6px); }
  .hl-etape.on { transform: translate(-50%, 0); }
  [dir="rtl"] .hl-etape.on { transform: translate(50%, 0); }
  .hl-rejouer { bottom: auto; top: calc(clamp(220px, 36svh, 420px) - 48px); }
}

/* Image fixe du crâne affichée tout de suite (11 à 15 Ko) ; la 3D la remplace en fondu dès qu'elle est prête */
.hl-affiche { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: url(/affiche-bureau.webp) center / auto 100% no-repeat; transition: opacity 1.8s ease; }
[dir="rtl"] .hl-affiche { background-image: url(/affiche-bureau-rtl.webp); }
.hero-live canvas { z-index: 0; }
.hero-live:has(canvas.pret) .hl-affiche { opacity: 0; }
.hl-charge { position: absolute; z-index: 3; bottom: 24px; inset-inline-end: 6%; margin: 0; color: rgb(201 169 110 / 70%); font: 500 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; transition: opacity .8s; pointer-events: none; }
[dir="rtl"] .hl-charge { letter-spacing: 0; font-size: 13px; text-transform: none; }
.hl-charge:empty, .hl-charge.fini { opacity: 0; }
@media (max-width: 899px) {
  .hl-affiche, [dir="rtl"] .hl-affiche { inset: 0 0 auto 0; height: clamp(220px, 36svh, 420px); background-image: url(/affiche-mobile.webp); }
  .hl-charge { bottom: auto; top: calc(clamp(220px, 36svh, 420px) - 28px); inset-inline-end: auto; inset-inline-start: 50%; transform: translateX(-50%); white-space: nowrap; }
  [dir="rtl"] .hl-charge { transform: translateX(50%); }
}
