/* Centre Dentaire Lazrak — feuille de style (version de production) */
:root {
  /* Palette du logo : bleu marine, turquoise, doré, sur blanc. Motif : l'arche, clin d'œil à l'architecture de Salé. */
  --navy: #0A2F5C;
  --navy-2: #0F4380;
  --teal: #0E9EA4;
  --teal-2: #5FD3D4;
  --teal-soft: #E7F5F4;
  --gold: #D4A32F;
  --gold-ink: #9A6E12;
  --ink: #102233;
  --muted: #5B6B7B;
  --line: #E2E9EF;
  --bg: #FFFFFF;
  --bg-soft: #F4F8FA;
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px -28px rgba(10,47,92, .38);
  --shadow-sm: 0 10px 30px -18px rgba(10,47,92, .35);
  --wrap: 1240px;
  --header-h: 80px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }
section { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font: 700 15px/1 var(--font-body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, color .3s ease, border-color .3s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-2); box-shadow: var(--shadow); }
.btn-wa { background: var(--teal); color: #fff; box-shadow: 0 12px 28px -16px rgba(14,158,164,.9); }
.btn-wa:hover { background: #0B858A; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--navy); }
.btn-ghost:hover { border-color: var(--gold-ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { border-color: var(--gold-ink); }

/* ---------- En-tête ---------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.8); font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 40px; }
.topbar a { text-decoration: none; font-variant-numeric: tabular-nums; }
.topbar a:hover { color: var(--teal-2); }
.topbar-l, .topbar-r { display: flex; gap: 22px; align-items: center; }
.topbar svg { width: 15px; height: 15px; display: inline-block; vertical-align: -3px; margin-right: 6px; color: var(--gold); }
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, box-shadow .3s ease;
}
.header.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(10,47,92,.4); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 54px; height: auto; flex: none; filter: drop-shadow(0 4px 8px rgba(10,47,92,.12)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.04); }
.brand-text { display: flex; flex-direction: column; padding-left: 14px; border-left: 1px solid var(--line); }
.brand-sub { display: block; font: 700 10px/1 var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--teal); }
.brand-name { display: block; font: 800 22px/1 var(--font-body); letter-spacing: .2em; color: var(--navy); margin-top: 6px; }
.brand-name::after { content: ""; display: block; width: 100%; height: 2px; margin-top: 6px; background: linear-gradient(90deg, var(--gold), transparent); }
.brand.light .brand-text { border-left-color: rgba(255,255,255,.18); }
.brand.light .brand-name { color: #fff; }
.brand.light .brand-sub { color: var(--teal-2); }
.nav { display: flex; gap: 2px; }
.nav a {
  position: relative; padding: 10px 13px; text-decoration: none;
  font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color .2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.nav a:hover, .nav a.active { color: var(--navy); }
.nav a.active::after, .nav a:hover::after { transform: scaleX(1); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.header-cta .btn { min-height: 44px; padding: 11px 18px; font-size: 14px; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; color: var(--navy); }
.burger svg { width: 22px; height: 22px; }
.mobile-nav { display: none; }

/* ---------- Titres ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 700 12px/1.5 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--teal);
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--gold); }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.04; color: var(--navy); margin-top: 18px; letter-spacing: -.005em; }
.h2 em { font-style: italic; color: var(--teal); font-weight: 500; }
.lead { color: var(--muted); font-size: 17.5px; max-width: 58ch; margin-top: 20px; }
.section { padding: clamp(80px, 10vw, 136px) 0; }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px 80px; align-items: end; margin-bottom: clamp(44px, 5vw, 68px); }
.section-head .lead { margin-top: 0; }

/* ---------- Visuels ---------- */
.photo {
  position: relative; overflow: hidden; background: linear-gradient(160deg, var(--navy-2), var(--navy) 70%);
  border-radius: var(--radius); isolation: isolate; width: 100%; height: 100%;
}
.photo.arch { border-radius: 999px 999px var(--radius) var(--radius); }
.photo > img, .photo > svg { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.zoomable:hover .photo > img, .zoomable:hover .photo > svg { transform: scale(1.05); }
.photo-ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
  color: rgba(255,255,255,.85);
}
.photo-ph::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Crect x='16' y='16' width='24' height='24'/%3E%3Crect x='16' y='16' width='24' height='24' transform='rotate(45 28 28)'/%3E%3Ccircle cx='28' cy='28' r='5'/%3E%3C/g%3E%3C/svg%3E");
}
.photo-ph::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 80% at 20% 0%, rgba(14,158,164,.45), transparent 60%);
}
.photo-ph svg { width: 30px; height: 30px; margin: 0 auto 10px; opacity: .85; }
.photo-ph span { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: .03em; }
.photo-ph small { display: block; font-size: 11.5px; opacity: .72; margin-top: 4px; }

/* ---------- Accueil ---------- */
.hero { position: relative; padding: clamp(36px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -14%; top: -30%; width: 70vw; height: 70vw; max-width: 980px; max-height: 980px; z-index: -1;
  background: radial-gradient(circle, var(--teal-soft), transparent 62%);
}
.hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 600; color: var(--navy);
}
.hero-badge i { width: 28px; height: 28px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-style: normal; }
.hero-badge i svg { width: 16px; height: 16px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600; color: var(--navy);
  font-size: clamp(48px, 6vw, 88px); line-height: .96; letter-spacing: -.015em; margin-top: 28px;
}
.hero h1 em { font-style: italic; color: var(--teal); font-weight: 500; }
.hero .lead { font-size: 18.5px; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 52px; border-top: 1px solid var(--line); }
.fact { padding: 22px 20px 0 0; }
.fact + .fact { padding-left: 22px; border-left: 1px solid var(--line); }
.fact b { display: block; font: 700 11px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 10px; }
.fact span, .fact a { font-size: 14.5px; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; line-height: 1.6; }
.fact a:hover { color: var(--teal); }

.hero-visual { position: relative; padding: 28px 0 28px 28px; }
.hero-visual .photo { height: clamp(440px, 46vw, 640px); box-shadow: var(--shadow); }
.arch-line {
  position: absolute; inset: 0 28px 56px 0; border: 1px solid var(--gold);
  border-radius: 999px 999px var(--radius) var(--radius); z-index: -1;
}
.float-card {
  position: absolute; background: rgba(255,255,255,.96); border-radius: 18px; box-shadow: var(--shadow);
  padding: 16px 20px 16px 16px; display: flex; gap: 14px; align-items: center; border: 1px solid var(--line);
  animation: floaty 6s ease-in-out infinite;
}
.float-card .ic { width: 44px; height: 44px; border-radius: 13px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; flex: none; }
.float-card .ic svg { width: 22px; height: 22px; }
.float-card b { display: block; color: var(--navy); font-size: 15px; line-height: 1.25; }
.float-card small { color: var(--muted); font-size: 12.5px; }
.fc-1 { left: -6px; bottom: 76px; }
.fc-2 { right: -14px; top: 92px; animation-delay: -3s; }

/* Bandeau défilant des spécialités */
.ribbon { background: var(--navy); color: #fff; overflow: hidden; padding: 22px 0; }
.ribbon-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ribbon-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--font-display); font-size: 26px; font-style: italic; white-space: nowrap; }
.ribbon-track span::after { content: ""; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

/* ---------- Docteur ---------- */
.doctor { background: var(--bg-soft); position: relative; }
.doctor-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(44px, 7vw, 104px); align-items: start; }
.doctor-visual { position: sticky; top: calc(var(--header-h) + 32px); }
.doctor-visual .photo { aspect-ratio: 4 / 5; height: auto; box-shadow: var(--shadow); }
.doctor-tag {
  position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); width: max-content; max-width: 90%;
  background: #fff; border-radius: 18px; padding: 16px 26px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.doctor-tag b { display: block; font-family: var(--font-display); font-size: 25px; color: var(--navy); line-height: 1.1; }
.doctor-tag small { color: var(--gold-ink); font-weight: 700; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; }
.doctor-text p + p { margin-top: 16px; }
.doctor-text .lead { margin-top: 24px; }
.doctor-body { color: var(--muted); font-size: 16.5px; max-width: 60ch; margin-top: 16px; }
.sub-title { font: 700 12px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--navy); margin: 48px 0 18px; display: flex; align-items: center; gap: 12px; }
.sub-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px 22px; transition: transform .35s ease, box-shadow .35s ease; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.value .ic { color: var(--teal); width: 28px; height: 28px; }
.value h3 { font-size: 16.5px; color: var(--navy); margin-top: 16px; }
.value p { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step-n { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--navy); background: #fff; }
.step h4 { color: var(--navy); font-size: 16.5px; margin-top: 4px; }
.step p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.doctor-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Expertise au quotidien ---------- */
.expertise-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(44px, 7vw, 104px); align-items: center; }
.exp-media { position: relative; }
.exp-frame { position: relative; margin: 0; padding: 0 0 32px 32px; isolation: isolate; }
.exp-frame::before { content: ""; position: absolute; left: 0; bottom: 0; width: 62%; height: 58%; background: var(--navy); border-radius: var(--radius); z-index: -1; }
.exp-frame::after { content: ""; position: absolute; inset: -16px 16px 48px 16px; border: 1px solid var(--gold); border-radius: var(--radius); z-index: -1; opacity: .8; }
.exp-frame > .photo { aspect-ratio: 720 / 892; height: auto; box-shadow: var(--shadow); border: 6px solid #fff; }
.exp-caption {
  position: absolute; right: -18px; bottom: 64px; display: flex; gap: 12px; align-items: center; background: #fff;
  border-radius: 16px; padding: 14px 18px 14px 14px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.exp-caption .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; flex: none; }
.exp-caption .ic svg { width: 22px; height: 22px; }
.exp-caption b { display: block; color: var(--navy); font-size: 14.5px; line-height: 1.25; }
.exp-caption small { color: var(--muted); font-size: 12px; }
.exp-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); text-align: right; }
.exp-points { display: grid; gap: 0; margin-top: 34px; border-top: 1px solid var(--line); }
.exp-point { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.exp-point .ic { width: 48px; height: 48px; border-radius: 999px 999px 12px 12px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; }
.exp-point .ic svg { width: 24px; height: 24px; }
.exp-point h3 { font-size: 16.5px; color: var(--navy); }
.exp-point p { font-size: 14.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Spécialités ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; overflow: hidden; transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease, border-color .45s ease;
}
.cards > .reveal > .card { flex: 1; width: 100%; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { position: relative; height: 230px; }
.card-media .photo { border-radius: 0; }
.card-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: linear-gradient(180deg, rgba(10,47,92,0) 55%, rgba(10,47,92,.28)); }
.card-media .photo img { filter: saturate(.96); }
.card-num {
  position: absolute; top: 16px; left: 16px; z-index: 2; font: 700 11px/1 var(--font-body); letter-spacing: .18em; color: var(--navy);
  background: rgba(255,255,255,.92); padding: 8px 11px; border-radius: 999px;
}
.card-ic {
  position: absolute; right: 22px; bottom: -28px; z-index: 2; width: 58px; height: 64px; display: grid; place-items: center;
  color: #fff; background: var(--navy); border-radius: 999px 999px 14px 14px; box-shadow: var(--shadow-sm);
  transition: background .35s ease;
}
.card:hover .card-ic { background: var(--teal); }
.card-ic svg { width: 28px; height: 28px; }
.card-body { padding: 30px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-family: var(--font-display); font-size: 29px; font-weight: 600; color: var(--navy); line-height: 1.08; }
.card h3::after { content: ""; display: block; width: 34px; height: 1.5px; background: var(--gold); margin-top: 14px; transition: width .45s ease; }
.card:hover h3::after { width: 64px; }
.card p { color: var(--muted); font-size: 15px; margin-top: 14px; }
.card ul { list-style: none; padding: 0; margin: auto 0 0; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.card li { font-size: 12.5px; font-weight: 700; color: var(--navy-2); background: var(--bg-soft); padding: 7px 12px; border-radius: 999px; }
.cards-note { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; border-radius: var(--radius); background: var(--teal-soft); }
.cards-note p { color: var(--navy); font-size: 17px; font-weight: 600; }

/* ---------- Cabinet ---------- */
.cabinet { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cabinet::before {
  content: ""; position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Crect x='21' y='21' width='30' height='30'/%3E%3Crect x='21' y='21' width='30' height='30' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
}
.cabinet .wrap { position: relative; }
.cabinet .h2 { color: #fff; }
.cabinet .h2 em { color: var(--teal-2); }
.cabinet .lead { color: rgba(255,255,255,.72); }
.cabinet .eyebrow { color: var(--teal-2); }
.cab-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 18px; }
.cab-item { position: relative; border-radius: var(--radius); overflow: hidden; }
.cab-item .photo { background: linear-gradient(160deg, #12508F, #0E3459); }
.cab-item figcaption {
  position: absolute; left: 16px; bottom: 16px; z-index: 2; background: rgba(10,47,92,.78); backdrop-filter: blur(8px);
  color: #fff; font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 999px;
}
.cab-grid .big { grid-row: span 2; }
.cab-grid .wide { grid-column: span 2; }
.spaces { display: grid; gap: clamp(64px, 8vw, 112px); }
.space { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.space.rev .space-media { order: 2; }
.space-media { position: relative; padding: 0 40px 40px 0; isolation: isolate; }
.space.rev .space-media { padding: 0 0 40px 40px; }
.space-media > .photo { height: clamp(380px, 42vw, 560px); box-shadow: 0 30px 70px -30px rgba(0,0,0,.55); }
.space-media::before { content: ""; position: absolute; top: 24px; left: 24px; right: 16px; bottom: 16px; border: 1px solid var(--gold); border-radius: var(--radius); opacity: .55; z-index: -1; }
.space.rev .space-media::before { left: 16px; right: 24px; }
.space-media:has(> .photo.arch)::before { border-radius: 999px 999px var(--radius) var(--radius); }
.space-inset { position: absolute; right: 0; bottom: 0; width: 40%; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; border: 5px solid var(--navy); box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); }
.space.rev .space-inset { right: auto; left: 0; }
.space-inset .photo { border-radius: 0; }
.space-n { display: block; font-family: var(--font-display); font-size: 64px; line-height: 1; color: var(--gold); font-weight: 500; font-style: italic; }
.space-text h3 { font-family: var(--font-display); font-size: clamp(34px, 3.6vw, 46px); font-weight: 600; color: #fff; line-height: 1.05; margin-top: 10px; }
.space-text h3::after { content: ""; display: block; width: 48px; height: 1.5px; background: var(--gold); margin-top: 18px; }
.space-text p { color: rgba(255,255,255,.74); font-size: 16.5px; margin-top: 18px; max-width: 46ch; }
.space-text ul { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.space-text li { font-size: 13px; font-weight: 700; color: #fff; border: 1px solid rgba(255,255,255,.2); padding: 8px 14px; border-radius: 999px; }
.cab-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; padding-top: 44px; border-top: 1px solid rgba(255,255,255,.14); }
.cab-points h3 { font-family: var(--font-display); font-size: 27px; font-weight: 600; color: #fff; }
.cab-points p { color: rgba(255,255,255,.68); font-size: 15px; margin-top: 10px; }
.cab-points .n { font-size: 12px; color: var(--gold); letter-spacing: .22em; font-weight: 800; display: block; margin-bottom: 12px; }

/* ---------- Galerie ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 10px 18px; min-height: 44px;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: all .25s ease;
}
.chip:hover { border-color: var(--gold-ink); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip small { opacity: .6; margin-left: 6px; font-variant-numeric: tabular-nums; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 16px; }
.g-item { position: relative; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; animation: pop .5s ease both; }
.g-item .photo { border-radius: var(--radius); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-over {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 18px;
  background: linear-gradient(180deg, transparent 45%, rgba(7,28,51,.78)); color: #fff; text-align: left;
  opacity: 0; transition: opacity .4s ease;
}
.g-item:hover .g-over, .g-item:focus-visible .g-over { opacity: 1; }
.g-over b { display: block; font-size: 15px; }
.g-over small { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-2); font-weight: 700; }
.g-zoom { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; }
.g-zoom svg { width: 18px; height: 18px; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(5, 20, 36, .92); display: grid; place-items: center; padding: 72px 20px;
  animation: fade .3s ease;
}
.lb-stage { width: min(1000px, 100%); }
.lb-stage .photo { aspect-ratio: 3 / 2; height: auto; }
.lb-caption { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #fff; margin-top: 16px; }
.lb-caption b { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.lb-caption span { color: rgba(255,255,255,.6); font-size: 14px; font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: #fff; color: var(--navy);
  cursor: pointer; display: grid; place-items: center; transition: transform .25s ease;
}
.lb-btn:hover { transform: scale(1.06); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; margin-top: -25px; }
.lb-next { right: 18px; top: 50%; margin-top: -25px; }
.lb-prev svg { transform: rotate(180deg); }

/* ---------- Contact ---------- */
.contact { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; }
.contact-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: clamp(26px, 4vw, 46px); box-shadow: var(--shadow-sm); }
.c-row { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.c-row:first-child { padding-top: 0; }
.c-row:last-of-type { border-bottom: 0; }
.c-row .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; flex: none; }
.c-row .ic svg { width: 22px; height: 22px; }
.c-row b { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 4px; }
.c-row a { text-decoration: none; font-variant-numeric: tabular-nums; font-weight: 600; }
.c-row a:hover { color: var(--teal); }
.hours-empty { color: var(--muted); font-size: 15px; max-width: 40ch; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.hours td { padding: 8px 0; vertical-align: top; border-bottom: 1px dashed var(--line); }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: right; color: var(--muted); }
.hours .slot { display: block; white-space: nowrap; }
.hours tr.today td { color: var(--navy); font-weight: 800; }
.hours tr.today td:first-child::after { content: "Aujourd'hui"; margin-left: 8px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); background: var(--teal-soft); padding: 3px 7px; border-radius: 999px; vertical-align: 1px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.map-wrap { display: flex; }
.map-wrap > .map { flex: 1; }
.map {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 480px; background: #E9F0F4;
  border: 1px solid var(--line); display: flex; flex-direction: column;
}
.map.has-embed { background: #fff; }
.map-frame { position: relative; flex: 1; min-height: 380px; background: #E9F0F4; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; transition: opacity .4s ease; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.map.has-embed .map-label { position: relative; left: auto; right: auto; bottom: auto; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -100%); }
.map-pin svg { width: 56px; height: 56px; filter: drop-shadow(0 8px 14px rgba(10,47,92,.35)); animation: bob 2.6s ease-in-out infinite; }
.map-label {
  position: absolute; left: 20px; right: 20px; bottom: 20px; background: #fff; border-radius: 18px; padding: 18px 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; box-shadow: var(--shadow);
}
.map-label b { color: var(--navy); display: block; }
.map-label small { color: var(--muted); }

/* Bandeau d'appel */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: var(--radius); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; position: relative; overflow: hidden; margin-top: 26px; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 340px; border: 1px solid var(--gold); border-radius: 999px 999px 0 0; opacity: .5; }
.cta-band h3 { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; line-height: 1.08; }
.cta-band h3 em { color: var(--teal-2); }
.cta-band p { color: rgba(255,255,255,.72); margin-top: 10px; }
.cta-band .acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; position: relative; z-index: 1; }

/* ---------- Pied de page ---------- */
.footer { background: #061F3D; color: rgba(255,255,255,.7); padding: 72px 0 32px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand-name { color: #fff; }
.footer h4 { color: #fff; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--teal-2); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

/* ---------- Actions flottantes ---------- */
.fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 60; width: 62px; height: 62px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37,211,102,.7);
  transition: transform .25s ease;
}
.fab:hover { transform: scale(1.07); }
.fab svg { width: 31px; height: 31px; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ring 2.4s ease-out infinite; }
.fab-tip {
  position: absolute; right: 74px; white-space: nowrap; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700;
  padding: 9px 13px; border-radius: 10px; opacity: 0; transform: translateX(6px); transition: all .25s ease; pointer-events: none;
}
.fab:hover .fab-tip { opacity: 1; transform: none; }
.fab-call {
  position: fixed; right: 34px; bottom: 102px; z-index: 60; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform .25s ease;
}
.fab-call:hover { transform: scale(1.07); }
.fab-call svg { width: 22px; height: 22px; }
.mobile-bar { display: none; }


/* ========== Accueil (hero) – version premium ========== */
:root { --ivory: #F8F6F1; --ivory-2: #EFEBE3; }
.hx { position: relative; background: linear-gradient(180deg, var(--ivory) 0%, #FFFFFF 100%); padding: clamp(36px, 5vw, 76px) 0 clamp(64px, 8vw, 112px); overflow: hidden; }
.hx::before { content: ""; position: absolute; right: -12%; top: -24%; width: 62vw; height: 62vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(14,158,164,.10), transparent 64%); pointer-events: none; }
.hx-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 5.5vw, 88px); align-items: center; }
.hx-title { font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: clamp(46px, 5.6vw, 84px); line-height: .98; letter-spacing: -.015em; margin-top: 26px; }
.hx-title em { font-style: italic; font-weight: 500; color: var(--teal); }
.hx-lead { color: var(--muted); font-size: 18px; line-height: 1.75; max-width: 52ch; margin-top: 24px; }
.hx-facts { position: relative; list-style: none; margin: clamp(36px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hx-facts li { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; box-shadow: 0 8px 24px -20px rgba(10,47,92,.35); }
.hx-facts .ic { width: 46px; height: 46px; flex: none; border-radius: 13px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; }
.hx-facts .ic svg { width: 22px; height: 22px; }
.hx-facts b { display: block; font: 700 10.5px/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 4px; }
.hx-facts span { font-size: 15px; line-height: 1.55; color: var(--ink); font-variant-numeric: tabular-nums; }
.hx-facts a { text-decoration: none; }
.hx-facts a:hover { color: var(--teal); }

.hx-visual { position: relative; height: clamp(520px, 50vw, 680px); }
.hx-back { position: absolute; right: 0; top: 0; width: 74%; height: 82%; border-radius: 28px; background: linear-gradient(150deg, var(--navy-2), var(--navy)); overflow: hidden; }
.hx-back::after { content: ""; position: absolute; inset: 0; opacity: .08; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Crect x='16' y='16' width='24' height='24'/%3E%3Crect x='16' y='16' width='24' height='24' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E"); }
.hx-line { position: absolute; right: 18px; top: 18px; width: calc(74% - 36px); height: calc(82% - 36px); border: 1px solid rgba(212,163,47,.7); border-radius: 20px; pointer-events: none; z-index: 1; }
.hx-main { position: absolute; margin: 0; left: 6%; top: 7%; width: 80%; height: 78%; border-radius: 24px; overflow: hidden; box-shadow: 0 34px 70px -34px rgba(10,47,92,.55), 0 8px 20px -12px rgba(10,47,92,.25); z-index: 2; }
.hx-main .photo { border-radius: 24px; }
.hx-inset { position: absolute; margin: 0; left: 0; bottom: 0; width: 34%; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; border: 6px solid #fff; box-shadow: 0 24px 50px -24px rgba(10,47,92,.5); z-index: 3; }
.hx-inset .photo { border-radius: 14px; }
.hx-card { position: absolute; z-index: 4; display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(226,233,239,.9); border-radius: 16px; padding: 13px 18px 13px 13px; box-shadow: 0 18px 40px -22px rgba(10,47,92,.45); animation: floaty 7s ease-in-out infinite; }
.hx-card .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; flex: none; }
.hx-card .ic svg { width: 20px; height: 20px; }
.hx-card img { width: 34px; height: auto; flex: none; }
.hx-card b { display: block; color: var(--navy); font-size: 14.5px; line-height: 1.25; }
.hx-card small { color: var(--muted); font-size: 12px; }
.hx-card-doc { right: 2%; top: 3%; }
.hx-card-loc { right: 6%; bottom: 6%; animation-delay: -3.5s; }

/* ========== Le docteur – version premium ========== */
.dr { background: var(--ivory); position: relative; }
.dr-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(48px, 7vw, 112px); align-items: center; }
.dr-visual { position: relative; padding: 0 0 64px 28px; }
.dr-back { position: absolute; left: 0; bottom: 30px; width: 70%; height: 72%; border-radius: 26px; background: linear-gradient(150deg, var(--navy-2), var(--navy)); }
.dr-outline { position: absolute; right: -14px; top: -14px; width: 78%; height: 62%; border: 1px solid var(--teal); border-radius: 26px; opacity: .55; }
.dr-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; box-shadow: 0 34px 70px -34px rgba(10,47,92,.55); border: 6px solid #fff; background: #fff; }
.dr-photo .photo { border-radius: 18px; }
.dr-slot { background: var(--navy); }
.dr-slot-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; filter: saturate(.85); }
.dr-slot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,47,92,.25) 0%, rgba(10,47,92,.62) 45%, rgba(10,47,92,.92) 100%); }
.dr-slot-in { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; }
.dr-slot-in img { width: 88px; height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); }
.dr-slot-in span { font: 700 11px/1.4 var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.dr-plate { position: absolute; left: 56px; right: 28px; bottom: 0; z-index: 2; background: #fff; border-radius: 20px; padding: 20px 24px; box-shadow: 0 24px 50px -26px rgba(10,47,92,.5); border: 1px solid var(--line); }
.dr-plate::before { content: ""; position: absolute; left: 24px; top: 0; width: 44px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
.dr-plate small { display: block; font: 700 10.5px/1.4 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--teal); }
.dr-plate b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.1; color: var(--navy); margin-top: 4px; }
.dr-plate span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.dr-name { margin-top: 18px; font-weight: 700; font-size: 16px; color: var(--navy); }
.dr-name span { font-weight: 500; color: var(--gold-ink); }
.dr-lead { font-family: var(--font-display); font-size: clamp(22px, 2.1vw, 27px); line-height: 1.38; color: var(--navy); margin-top: 26px; padding-left: 22px; border-left: 2px solid var(--gold); max-width: 40ch; }
.dr-body { color: var(--muted); font-size: 16.5px; line-height: 1.75; max-width: 60ch; margin-top: 24px; }
.dr-body p + p { margin-top: 14px; }
.dr-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dr-value { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 10px 30px -26px rgba(10,47,92,.4); transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.dr-value:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -28px rgba(10,47,92,.45); border-color: transparent; }
.dr-value-ic { width: 46px; height: 52px; flex: none; display: grid; place-items: center; color: #fff; background: var(--navy); border-radius: 999px 999px 12px 12px; transition: background .35s ease; }
.dr-value:hover .dr-value-ic { background: var(--teal); }
.dr-value-ic svg { width: 24px; height: 24px; }
.dr-value h4 { font-size: 17px; color: var(--navy); display: flex; align-items: baseline; gap: 8px; }
.dr-value h4 span { font: 700 11px/1 var(--font-body); color: var(--gold-ink); letter-spacing: .1em; }
.dr-value p { font-size: 14.5px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.dr-journey { margin-top: clamp(56px, 7vw, 88px); }
.dr-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.dr-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 22px 24px; margin-top: 28px; }
.dr-step-n { width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--gold); font-family: var(--font-display); font-weight: 600; font-size: 23px; color: var(--navy); box-shadow: 0 8px 20px -14px rgba(10,47,92,.5); }
.dr-step h4 { color: var(--navy); font-size: 16.5px; margin-top: 16px; }
.dr-step p { color: var(--muted); font-size: 14.5px; margin-top: 6px; line-height: 1.6; }
.dr-journey .doctor-cta { margin-top: 36px; }

@media (max-width: 1120px) {
  .dr-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hx-grid, .dr-grid { grid-template-columns: 1fr; }
  .hx-facts li { padding: 14px 16px; gap: 12px; }
  .hx-facts .ic { width: 38px; height: 38px; }
  .hx-facts span { font-size: 14px; }
  .hx-visual { max-width: 680px; width: 100%; margin: 0 auto; height: clamp(440px, 80vw, 600px); }
  .dr-visual { position: relative; top: 0; max-width: 460px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
  .hx { padding-top: 26px; }
  .hx-title { font-size: clamp(42px, 12vw, 56px); margin-top: 20px; }
  .hx-lead { font-size: 16.5px; margin-top: 18px; }
  .hx-facts { grid-template-columns: 1fr; gap: 10px; margin-top: 32px; }
  .hx-visual { height: 420px; }
  .hx-back { width: 82%; height: 80%; border-radius: 22px; }
  .hx-line { right: 12px; top: 12px; width: calc(82% - 24px); height: calc(80% - 24px); border-radius: 14px; }
  .hx-main { left: 0; top: 8%; width: 90%; height: 74%; border-radius: 20px; }
  .hx-main .photo { border-radius: 20px; }
  .hx-inset { width: 36%; border-width: 4px; border-radius: 16px; }
  .hx-inset .photo { border-radius: 12px; }
  .hx-card { padding: 9px 12px 9px 9px; gap: 9px; border-radius: 13px; }
  .hx-card .ic { width: 32px; height: 32px; border-radius: 9px; }
  .hx-card .ic svg { width: 17px; height: 17px; }
  .hx-card img { width: 28px; }
  .hx-card b { font-size: 12.5px; }
  .hx-card small { font-size: 11px; }
  .hx-card-doc { right: 0; top: 0; }
  .hx-card-loc { right: 0; bottom: 4%; }
  .dr-visual { max-width: 340px; padding: 0 0 56px 18px; }
  .dr-outline { right: -8px; top: -10px; }
  .dr-plate { left: 34px; right: 10px; padding: 16px 18px; }
  .dr-plate b { font-size: 25px; }
  .dr-lead { font-size: 21px; padding-left: 16px; }
  .dr-values { grid-template-columns: 1fr; }
  .dr-value { padding: 18px; }
  .dr-steps { grid-template-columns: 1fr; gap: 12px; }
  .dr-step { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 18px; margin-top: 0; }
  .dr-step-n { width: 48px; height: 48px; margin-top: 0; grid-row: span 2; font-size: 20px; }
  .dr-step h4 { margin-top: 2px; }
  .dr-step p { grid-column: 2; }
}

/* Très petits téléphones (≤ 360 px) : resserrer la carte Contact */
.contact-grid > * { min-width: 0; }
@media (max-width: 360px) {
  .contact-card { padding: 22px 16px; }
  .c-row { gap: 12px; }
  .c-row .ic { width: 34px; height: 34px; border-radius: 10px; }
  .c-row .ic svg { width: 18px; height: 18px; }
  .hours { font-size: 13.5px; }
}

/* ---------- Animations ---------- */
.rise { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .3s; } .d4 { animation-delay: .44s; } .d5 { animation-delay: .62s; }
.js .reveal { transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(28px); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal:not(.in) { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav { display: none; }
  .burger { display: grid; place-items: center; }
  .header-cta .btn-ghost { display: none; }
  .mobile-nav.open {
    display: grid; gap: 0; padding: 6px clamp(18px, 4vw, 48px) 18px; border-top: 1px solid var(--line); background: #fff;
    animation: fade .25s ease;
  }
  .mobile-nav a { padding: 15px 4px; text-decoration: none; font-weight: 700; font-size: 17px; color: var(--navy); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
  .mobile-nav a::after { content: "→"; color: var(--gold-ink); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero-grid, .doctor-grid, .contact-grid, .section-head, .cta-band { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; margin: 0 auto; width: 100%; }
  .doctor-visual { position: relative; top: 0; max-width: 440px; margin: 0 auto 40px; width: 100%; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cab-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 240px); }
  .cab-grid .big { grid-row: span 1; grid-column: span 2; }
  .space, .space.rev { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
  .exp-media { max-width: 520px; margin: 0 auto; width: 100%; }
  .space.rev .space-media { order: 0; }
  .space-media, .space.rev .space-media { max-width: 640px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .cta-band .acts { justify-content: flex-start; }
  .topbar-r { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; --radius: 18px; }
  body { padding-bottom: 78px; font-size: 15.5px; }
  .topbar { display: none; }
  .header-cta { display: none; }
  .brand-mark { width: 44px; }
  .brand-text { padding-left: 11px; }
  .brand-name { font-size: 18px; letter-spacing: .18em; }
  .brand-sub { font-size: 9px; letter-spacing: .26em; }
  .section { padding: 72px 0; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: clamp(44px, 12.5vw, 60px); margin-top: 22px; }
  .hero .lead { font-size: 16.5px; margin-top: 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { grid-template-columns: 1fr 1fr; margin-top: 36px; }
  .fact, .fact + .fact { padding: 16px 0; border-left: 0; }
  .fact:first-child { grid-column: span 2; border-bottom: 1px solid var(--line); }
  .fact:nth-child(3) { padding-left: 16px; border-left: 1px solid var(--line); }
  .hero-visual { padding: 16px 0 16px 16px; }
  .hero-visual .photo { height: 420px; }
  .arch-line { inset: 0 16px 36px 0; }
  .float-card { padding: 11px 14px 11px 11px; gap: 10px; }
  .float-card .ic { width: 36px; height: 36px; }
  .float-card b { font-size: 13.5px; }
  .fc-2 { right: -4px; top: 40px; }
  .fc-1 { left: 0; bottom: 48px; }
  .ribbon-track span { font-size: 21px; }
  .h2 { font-size: clamp(34px, 9.6vw, 44px); }
  .lead { font-size: 16px; }
  .values { grid-template-columns: 1fr; }
  .value { display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; }
  .value h3 { margin-top: 0; }
  .value p { grid-column: 2; }
  .doctor-cta .btn, .contact-actions .btn, .cta-band .btn { width: 100%; }
  .cta-band::after { display: none; }
  .doctor-visual { max-width: 300px; }
  .exp-frame { padding: 0 0 22px 22px; }
  .exp-frame::after { inset: -10px 10px 34px 10px; }
  .exp-caption { right: -6px; bottom: 44px; padding: 10px 14px 10px 10px; }
  .exp-caption .ic { width: 36px; height: 36px; }
  .exp-caption b { font-size: 13.5px; }
  .c-row { gap: 14px; }
  .c-row .ic { width: 40px; height: 40px; }
  .hours { font-size: 14.5px; }
  .hours td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
  .hours tr:last-child td { border-bottom: 0; }
  .hours tr.today td:first-child::after { display: block; width: max-content; margin: 4px 0 0; }
  /* Spécialités : carrousel horizontal glissable */
  .cards {
    display: grid; grid-auto-flow: column; grid-auto-columns: 84%; grid-template-columns: none; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * clamp(18px, 4vw, 48px)); padding: 6px clamp(18px, 4vw, 48px) 18px;
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .cards > .reveal { scroll-snap-align: center; }
  .card:hover { transform: none; }
  .card-media { height: 190px; }
  .swipe-hint { display: flex !important; }
  .cards-note { padding: 22px; }
  .cab-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 230px; }
  .space, .space.rev { grid-template-columns: 1fr; gap: 28px; }
  .space.rev .space-media { order: 0; }
  .space-media, .space.rev .space-media { padding: 0 18px 30px 0; }
  .space-media::before, .space.rev .space-media::before { top: 16px; left: 16px; right: 6px; bottom: 16px; }
  .space-media > .photo { height: 380px; }
  .space-inset, .space.rev .space-inset { left: auto; right: 0; width: 46%; border-width: 4px; }
  .space-n { font-size: 48px; }
  .cab-grid .big, .cab-grid .wide { grid-column: auto; }
  .cab-points { grid-template-columns: 1fr; gap: 28px; margin-top: 44px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * clamp(18px, 4vw, 48px)) 22px; padding: 0 clamp(18px, 4vw, 48px); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .gallery { grid-auto-rows: 160px; gap: 10px; }
  .g-over { opacity: 1; padding: 12px; background: linear-gradient(180deg, transparent 55%, rgba(7,28,51,.75)); }
  .g-over b { font-size: 13px; }
  .g-over small, .g-zoom { display: none; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; margin-top: 0; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
  .map { min-height: 400px; }
  .map-frame { min-height: 320px; }
  .map.has-embed .map-label .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .fab, .fab-call { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { min-height: 52px; }
  .mobile-bar .btn-wa { background: #25D366; }
}
.swipe-hint { display: none; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 4px; }
.swipe-hint svg { width: 18px; height: 18px; color: var(--gold-ink); }

/* =========================================================
   AJOUTS VERSION DE PRODUCTION
   (le design ci-dessus est conservé tel quel)
   ========================================================= */

/* Images optimisées (balise <picture> : WebP + JPEG de secours) */
.photo > picture { display: block; width: 100%; height: 100%; }
.photo > picture > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.zoomable:hover .photo > picture > img { transform: scale(1.05); }
.card-media .photo picture img { filter: saturate(.96); }
.hx-card picture, .dr-slot-in picture { flex: none; }
.dr-slot > picture { position: absolute; inset: 0; }
.dr-slot > picture > img.dr-slot-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; filter: saturate(.85); }
.dr-slot-in img { width: 88px; height: auto; }

/* Visionneuse de la galerie */
.lightbox[hidden] { display: none; }
.lb-anim { animation: pop .35s ease; }

/* Carte Google */
.map-frame iframe:not([src]) { opacity: 0; }
.map-frame.loaded .map-loading { display: none; }

/* Remplacements de styles « en ligne » de la maquette */
.c-muted { color: var(--muted); }
.footer-about { margin-top: 18px; max-width: 38ch; }

/* Menu mobile : icônes ouvrir / fermer */
.burger [hidden] { display: none; }
.burger > span { display: grid; place-items: center; }

/* Lien d'évitement (clavier / lecteurs d'écran) */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .2s ease; }
.skip-link:focus { top: 12px; }

/* ---------- Lisibilité : légères corrections de contraste (WCAG AA) ----------
   Mêmes teintes, un peu plus soutenues pour les petits textes. */
:root { --gold-ink: #8D6511; --teal-ink: #08797E; }
.brand-sub, .eyebrow, .dr-plate small { color: var(--teal-ink); }
.brand.light .brand-sub, .cabinet .eyebrow { color: var(--teal-2); }
.hours tr.today td:first-child::after { color: var(--teal-ink); }
.btn-wa { background: #0B7F84; }
.btn-wa:hover { background: #086A6E; }
.mobile-bar .btn-wa { background: #15803D; }

/* Visionneuse : flèches toujours cliquables (sur tablette la photo les recouvrait) */
.lb-btn { z-index: 2; }

/* « Son approche » : trois valeurs en trois cartes égales (icône au-dessus du texte) */
.dr-values { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.dr-value { flex-direction: column; gap: 14px; }
@media (max-width: 640px) {
  .dr-values { grid-template-columns: 1fr; }
  .dr-value { flex-direction: row; gap: 16px; }
}
/* Écrans moyens (portables 961–1180 px) : colonne trop étroite pour 3 cartes côte à côte → 3 cartes empilées */
@media (min-width: 961px) and (max-width: 1180px) {
  .dr-values { grid-template-columns: 1fr; }
  .dr-value { flex-direction: row; gap: 16px; }
}

/* ---------- Photo du docteur : cadrage circulaire ----------
   Taille d'affichage limitée à 380 px = taille réelle de la photo (aucun agrandissement). */
.dr-visual.is-round { max-width: 430px; width: 100%; margin: 0 auto; padding: 14px 14px 96px 28px; }
.dr-visual.is-round .dr-photo { max-width: 380px; aspect-ratio: 1 / 1; border-radius: 50%; border: 6px solid #fff; background: var(--teal-soft); box-shadow: 0 34px 70px -34px rgba(10,47,92,.55), 0 0 0 1px rgba(14,158,164,.25); }
.dr-visual.is-round .dr-photo .photo { border-radius: 50%; height: 100%; }
.dr-visual.is-round .dr-back { left: 0; bottom: 70px; width: 72%; height: auto; aspect-ratio: 1 / 1; border-radius: 50%; }
.dr-visual.is-round .dr-outline { right: 0; top: 0; width: 86%; height: auto; aspect-ratio: 1 / 1; border-radius: 50%; border-color: var(--teal); opacity: .6; }
/* Carte du nom : en bas à droite, sur la blouse, sans masquer les mains */
.dr-visual.is-round .dr-plate { left: 56%; right: auto; width: max-content; max-width: calc(44% + 80px); bottom: 0; padding: 18px 22px; }
.dr-visual.is-round .dr-plate b { font-size: 26px; white-space: nowrap; }
/* Téléphone : la carte du nom passe sous la photo, alignée à droite, sans la recouvrir */
@media (max-width: 640px) {
  .dr-visual.is-round { max-width: 360px; padding: 10px 10px 0 18px; }
  .dr-visual.is-round .dr-back { bottom: 96px; }
  .dr-visual.is-round .dr-plate { position: relative; left: auto; right: auto; bottom: auto; width: max-content; max-width: 100%; margin: 14px -4px 0 auto; padding: 14px 18px; }
  .dr-visual.is-round .dr-plate b { font-size: 21px; }
}
