/* =========================================================
   Cabinet dentaire du Dr Vaisse — thème « clinique moderne »
   Grandes photos, typographie très présente, bleu poudré,
   sections noires, pilules et cartes arrondies.
   ========================================================= */

:root {
  --bg: #ffffff;
  --paper: #f3f5f8;
  --ink: #0d0d0f;
  --ink-2: #3a3d43;
  --muted: #80858f;
  --line: #e5e8ed;
  --blue-1: #eaf1fa;
  --blue-2: #c9daf1;
  --blue-3: #9dbbe4;
  --blue-ink: #2a5ea8;
  --dark: #121214;
  --dark-2: #1c1c1f;
  --dark-3: #27272b;
  --dark-line: rgba(255, 255, 255, 0.1);
  --danger: #d23a2b;
  --ok: #1f9d55;
  --warn: #c76a00;

  --r-xl: 32px;
  --r-lg: 24px;
  --r: 18px;
  --r-sm: 12px;
  --max: 1280px;
  --gutter: clamp(16px, 3vw, 32px);
  --nav-h: 76px;
  --font: "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 1rem); background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.55 var(--font); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 200; background: #fff; padding: 0.6rem 1rem; border-radius: 999px; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 500; color: var(--ink); }
.mega {
  font-size: clamp(3rem, 8.4vw, 8rem); line-height: 0.92; letter-spacing: -0.06em; font-weight: 400;
}
.mega .lt { font-weight: 300; }
.upper {
  text-transform: uppercase; font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.75rem); line-height: 1; letter-spacing: -0.035em;
}
.h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 400; }
.h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; }
.kicker { display: inline-block; font-size: 0.8125rem; color: var(--ink-2); margin-right: 0.6rem; letter-spacing: -0.005em; vertical-align: top; }
.kicker::after { content: " /"; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.5; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* ---------- Mise en page ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.panel { border-radius: var(--r-xl); overflow: hidden; position: relative; }
.head-row { display: grid; gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 900px) { .head-row { grid-template-columns: 1.2fr 1fr; } }
.head-row p { margin: 0; max-width: 34rem; }
.grid { display: grid; gap: clamp(0.9rem, 1.6vw, 1.25rem); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 3rem; padding: 0 1.4rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--ink); color: #fff; font: inherit; font-size: 0.9375rem; font-weight: 500;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform 100ms ease-out, background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn:hover { background: #2b2b30; }
.btn:active { transform: scale(0.97); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f1f2f4; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--line:hover { background: transparent; border-color: var(--ink); }
.btn--glass { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn--glass:hover { background: rgba(255,255,255,0.24); }
.btn--danger { background: var(--danger); }
.btn--danger:hover { background: #b52f22; }
.btn--sm { min-height: 2.4rem; padding: 0 1rem; font-size: 0.8125rem; }
/* Bouton « pilule + rond fléché » */
.cta { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.cta .cta-label { display: inline-flex; align-items: center; height: 2.6rem; padding: 0 1.2rem; border-radius: 999px; background: #fff; color: var(--ink); transition: transform 100ms ease-out; }
.cta .cta-dot { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #fff; color: var(--ink); transition: transform 200ms ease; }
.cta:hover .cta-dot { transform: rotate(-45deg); }
.cta:active .cta-label, .cta:active .cta-dot { transform: scale(0.96); }
.cta svg { width: 1rem; height: 1rem; }
.cta--dark .cta-label, .cta--dark .cta-dot { background: var(--ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.link-more { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; font-weight: 500; }
.link-more span { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line); transition: transform 200ms ease, background-color 150ms ease; }
.link-more:hover span { transform: rotate(-45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.link-more svg { width: 0.9rem; height: 0.9rem; }

/* ---------- Pilules ---------- */
.pill { display: inline-flex; align-items: center; gap: 0.45rem; height: 2rem; padding: 0 0.9rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; background: #fff; color: var(--ink); white-space: nowrap; }
.pill--glass { background: rgba(255,255,255,0.16); color: #fff; border: 1px solid rgba(255,255,255,0.28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pill--line { background: transparent; border: 1px solid var(--line); }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Statut d'ouverture */
.status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 500; }
.status .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--muted); }
.status[data-state="open"] .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(31,157,85,0.18); }
.status[data-state="soon"] .dot { background: var(--warn); }
.status[data-state="closed"] .dot { background: var(--danger); }

/* ---------- Navigation : pilule centrale ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h); transition: background-color 250ms ease, box-shadow 250ms ease; }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; color: var(--ink); }
.brand-name { display: block; color: inherit; }
/* Logo Instagram, toujours dans ses couleurs */
.brand .brand-mark { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 10px; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); color: #fff; box-shadow: 0 2px 8px rgba(214, 36, 159, 0.25); transition: transform 100ms ease-out, filter 150ms ease; }
.brand .brand-mark:hover { filter: brightness(1.08) saturate(1.1); }
.brand .brand-mark:active { transform: scale(0.94); }
.brand .brand-mark svg { width: 1.2rem; height: 1.2rem; }
.brand small { display: block; font-size: 0.6875rem; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 1px; }
.nav-pill { display: none; list-style: none; margin: 0; padding: 0.3rem; gap: 0.1rem; border-radius: 999px; background: rgba(255,255,255,0.78); border: 1px solid var(--line); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); }
.nav-pill a { display: block; padding: 0.5rem 0.85rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background-color 150ms ease, color 150ms ease; }
.nav-pill a:hover { color: var(--ink); background: rgba(0,0,0,0.05); }
.nav-pill a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav-pill a.is-urgent { color: var(--danger); }
.nav-pill a.is-urgent[aria-current="page"] { background: var(--danger); color: #fff; }
.nav-right { display: flex; align-items: center; gap: 0.5rem; }
.nav .cta .cta-label, .nav .cta .cta-dot { background: var(--ink); color: #fff; }
.menu-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.nav .cta { display: none; }
@media (min-width: 1180px) {
  .nav-pill { display: flex; }
  .menu-btn { display: none; }
  .nav .cta { display: inline-flex; }
}
/* Sur une grande photo : texte blanc, pilule de verre */
.nav.on-photo .brand { color: #fff; }
.nav.on-photo .brand small { color: rgba(255,255,255,0.7); }
.nav.on-photo .nav-pill { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); }
.nav.on-photo .nav-pill a { color: rgba(255,255,255,0.88); }
.nav.on-photo .nav-pill a:hover { background: rgba(255,255,255,0.14); color: #fff; }
.nav.on-photo .nav-pill a[aria-current="page"] { background: #fff; color: var(--ink); }
.nav.on-photo .nav-pill a.is-urgent { color: #ffb4ab; }
.nav.on-photo .cta .cta-label, .nav.on-photo .cta .cta-dot { background: #fff; color: var(--ink); }
.nav.on-photo .menu-btn { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); color: #fff; }
.nav.is-scrolled:not(.on-photo) { background: rgba(255,255,255,0.82); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); box-shadow: 0 1px 0 var(--line); }
.nav.is-scrolled:not(.on-photo) .nav-pill { background: transparent; border-color: transparent; }
.page-top { height: var(--nav-h); }

/* Menu plein écran (mobile) */
.menu { position: fixed; inset: 0; z-index: 90; background: var(--dark); color: #fff; display: flex; flex-direction: column; padding: 0 var(--gutter) max(1.5rem, env(safe-area-inset-bottom)); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity 220ms ease, transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 280ms; }
.menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 220ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.menu-top { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.menu-top .brand { color: #fff; }
.menu-close { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--dark-line); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.menu ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.menu li a { display: flex; justify-content: space-between; align-items: baseline; padding: 0.75rem 0; border-bottom: 1px solid var(--dark-line); font-size: clamp(1.6rem, 7vw, 2.2rem); letter-spacing: -0.04em; font-weight: 400; }
.menu li a small { font-size: 0.75rem; color: rgba(255,255,255,0.45); letter-spacing: 0; }
.menu li a[aria-current="page"] { color: var(--blue-3); }
.menu li a.is-urgent { color: #ff8a7d; }
.menu .actions { margin-top: auto; padding-top: 1.5rem; }
.menu .actions .btn { flex: 1 1 9rem; justify-content: center; }

/* =========================================================
   ACCUEIL — héros photo (exemple 2)
   ========================================================= */
.hero { position: relative; min-height: max(640px, 100svh); color: #fff; border-radius: 0 0 var(--r-xl) var(--r-xl); overflow: hidden; background: #1a2230; isolation: isolate; }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1200ms ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7000ms ease-out; }
.hero-slide.is-active img { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,12,20,0.72) 0%, rgba(8,12,20,0.38) 50%, rgba(8,12,20,0.3) 100%), linear-gradient(0deg, rgba(8,12,20,0.6) 0%, transparent 40%), linear-gradient(180deg, rgba(8,12,20,0.45) 0%, transparent 25%); }
.hero-inner { min-height: inherit; display: grid; grid-template-rows: 1fr auto; padding-top: calc(var(--nav-h) + clamp(2rem, 7vh, 5rem)); padding-bottom: clamp(1.25rem, 3vw, 2rem); gap: 2rem; }
.hero-top { display: grid; gap: 2rem; align-content: start; }
@media (min-width: 900px) { .hero-top { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.6vw, 6rem); line-height: 0.95; letter-spacing: -0.05em; text-transform: uppercase; font-weight: 600; max-width: 15ch; }
.hero-side { display: grid; gap: 1.25rem; justify-items: start; }
@media (min-width: 900px) { .hero-side { padding-top: clamp(4rem, 14vh, 9rem); justify-self: end; max-width: 22rem; } }
.hero-side p { color: rgba(255,255,255,0.88); font-size: 1.05rem; line-height: 1.45; margin: 0; }
.hero-bottom { display: grid; gap: 1.25rem; align-items: end; }
@media (min-width: 900px) { .hero-bottom { grid-template-columns: 1fr auto; } }
.hero .pills { max-width: 40rem; }
.hero-bottom > .pill { justify-self: start; }
.hero-bottom > .hero-ctrl { justify-self: end; }
@media (max-width: 899px) { .hero-bottom > .hero-ctrl { justify-self: start; } }
.hero .pill:first-child { background: #fff; color: var(--ink); border-color: #fff; }
.hero-card { display: flex; gap: 0.9rem; align-items: center; background: #fff; color: var(--ink); border-radius: var(--r); padding: 0.6rem 1.1rem 0.6rem 0.6rem; max-width: 22rem; }
.hero-card img { width: 4.5rem; height: 4.5rem; border-radius: var(--r-sm); object-fit: cover; object-position: top; flex: none; }
.hero-card b { display: block; font-weight: 600; letter-spacing: -0.02em; }
.hero-card span { display: block; font-size: 0.8125rem; color: var(--muted); }
.hero-card .status { display: flex; margin-top: 0.4rem; color: var(--ink-2); font-size: 0.75rem; }
.hero-card .status span { display: inline-block; color: inherit; font-size: inherit; }
.hero-ctrl { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8125rem; font-variant-numeric: tabular-nums; color: rgba(255,255,255,0.85); }
.hero-ctrl button { background: none; border: 0; color: inherit; cursor: pointer; padding: 0.25rem; display: grid; place-items: center; }
.hero-ctrl svg { width: 0.9rem; height: 0.9rem; }
.hero-bar { position: relative; width: 6rem; height: 2px; background: rgba(255,255,255,0.3); border-radius: 2px; overflow: hidden; }
.hero-bar span { position: absolute; inset: 0 auto 0 0; width: 20%; background: #fff; border-radius: 2px; transition: width 400ms ease; }
.hero-right { display: grid; gap: 0.9rem; justify-items: end; }
@media (max-width: 899px) { .hero-right { justify-items: start; } }

/* ---------- Chiffres clés (exemple 1) ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.stat { display: flex; align-items: center; gap: 0.9rem; padding: 1.25rem clamp(0.5rem, 2vw, 2rem); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-size: clamp(2.6rem, 4.6vw, 3.75rem); font-weight: 400; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.875rem; line-height: 1.25; color: var(--muted); max-width: 8rem; }
@media (max-width: 640px) { .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .stat:first-child { border-top: 0; } }

/* ---------- Panneau bleu (exemple 1) ---------- */
.blue {
  background: radial-gradient(120% 90% at 50% 0%, #f4f8fd 0%, var(--blue-1) 35%, var(--blue-2) 75%, var(--blue-3) 100%);
}
.blue-panel { padding: clamp(1.75rem, 4vw, 3.5rem); min-height: clamp(520px, 72vh, 760px); display: grid; isolation: isolate; }
.watermark { position: absolute; left: 50%; bottom: -0.18em; transform: translateX(-50%); z-index: -1; font-size: clamp(6rem, 22vw, 20rem); font-weight: 400; letter-spacing: -0.07em; line-height: 1; color: rgba(255,255,255,0.35); white-space: nowrap; pointer-events: none; user-select: none; }
.welcome { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .welcome { grid-template-columns: 1fr minmax(260px, 0.8fr) 1fr; } }
.welcome .mega { color: var(--ink); }
.welcome .mega .lt { color: #fff; }
.welcome-figure { position: relative; }
.welcome-media { position: relative; aspect-ratio: 3 / 4; border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(30, 60, 110, 0.45); }
.welcome-media img { width: 100%; height: 100%; object-fit: cover; }
.float-tag { position: absolute; display: flex; flex-direction: column; gap: 0.15rem; padding: 0.55rem 0.8rem; border-radius: 10px; background: rgba(255,255,255,0.9); color: var(--ink); font-size: 0.6875rem; line-height: 1.25; box-shadow: 0 10px 30px -10px rgba(20, 40, 80, 0.35); }
.float-tag b { font-size: 0.75rem; font-weight: 600; }
.welcome-side { display: grid; gap: 1.5rem; justify-items: start; }
@media (min-width: 960px) { .welcome-side--right { justify-items: end; text-align: right; } }
.big-num b { display: block; font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 300; letter-spacing: -0.05em; line-height: 1; }
.big-num span { font-size: 0.8125rem; color: var(--ink-2); }

/* ---------- Panneau « Bienvenue » : la photo du sourire ---------- */
.lips-panel { background: #f4e9e4; isolation: isolate; }
.lips-bg { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 50%; }
.lips-veil { display: none; }
.lips-content { display: grid; gap: 1.5rem; padding: clamp(1.5rem, 5vw, 2.5rem); }
.lips-text { display: grid; gap: 1.25rem; justify-items: start; }
.lips-text .mega { color: var(--ink); font-size: clamp(2.75rem, 6vw, 5.5rem); }
.lips-text .mega .lt { color: var(--ink); font-weight: 300; font-style: normal; }
.lips-text .lead { margin: 0; max-width: 26rem; color: var(--ink-2); }
.lips-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; align-content: start; padding: 1.25rem 1.4rem; border-radius: var(--r); background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.8); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.lips-card p { grid-column: 1 / -1; margin: 0; font-size: 0.875rem; color: var(--ink-2); }
.lips-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.lips-tags .pill { background: var(--ink); color: #fff; }
@media (min-width: 900px) {
  .lips-panel { min-height: clamp(560px, 74vh, 780px); display: grid; }
  .lips-bg { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; z-index: -2; object-position: 12% 50%; }
  /* voile blanc à gauche : le texte noir reste parfaitement lisible */
  .lips-veil { display: block; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 34%, rgba(255,255,255,0.55) 48%, rgba(255,255,255,0) 62%); }
  .lips-content { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; padding: clamp(2rem, 4vw, 3.5rem); }
  .lips-text { align-self: center; max-width: 36rem; }
  .lips-card { justify-self: end; width: min(100%, 22rem); }
}

/* En-tête des pages intérieures : même photo, plus basse */
.lips-panel--page .lips-content { grid-template-columns: minmax(0, 1fr); }
.lips-panel--page .lips-text { gap: 1rem; }
.lips-panel--page .mega { font-size: clamp(2.6rem, 6vw, 5.25rem); }
.lips-panel--page .lips-text p { margin: 0; max-width: 30rem; color: var(--ink-2); font-size: 1.05rem; }
@media (min-width: 900px) {
  .lips-panel--page { min-height: clamp(400px, 54vh, 540px); }
  .lips-panel--page .lips-text { align-self: end; }
}

/* ---------- Section noire (exemple 1) ---------- */
.dark { background: var(--dark); color: #fff; padding: clamp(1.75rem, 4vw, 3rem); }
.dark h2, .dark h3 { color: #fff; }
.dark p { color: rgba(255,255,255,0.62); }
.dark .head-row { padding-bottom: clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--dark-line); }
.dcard { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--r); padding: 0.6rem; display: flex; flex-direction: column; }
.dcard-media { aspect-ratio: 16 / 10; border-radius: var(--r-sm); overflow: hidden; }
.dcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.dcard:hover .dcard-media img { transform: scale(1.04); }
.dcard-body { padding: 1rem 0.6rem 0.6rem; border-top: 1px solid var(--dark-line); margin-top: 0.6rem; }
.dcard h3 { font-size: 1.15rem; margin-bottom: 0.6rem; letter-spacing: -0.02em; font-weight: 500; }
.dcard ul { list-style: none; margin: 0; padding: 0; }
.dcard li { font-size: 0.875rem; color: rgba(255,255,255,0.62); padding: 0.32rem 0; }
.dcard li::before { content: "—  "; color: rgba(255,255,255,0.3); }

/* ---------- Cartes photo « signature » (exemple 2) ---------- */
.sig { display: grid; gap: 2rem; }
@media (min-width: 960px) { .sig { grid-template-columns: 0.75fr 2fr; align-items: end; } }
.sig-aside { display: grid; gap: 1rem; }
.avatars { display: flex; align-items: center; gap: 0.75rem; }
.avatars .faces { display: flex; }
.avatars img { width: 2.6rem; height: 2.6rem; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid #fff; margin-left: -0.6rem; }
.avatars img:first-child { margin-left: 0; }
.avatars b { display: block; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.avatars span { font-size: 0.75rem; color: var(--muted); }
.rail-wrap { position: relative; min-width: 0; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 1fr); gap: 0.9rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 0.25rem; }
.rail::-webkit-scrollbar { display: none; }
.scard { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; scroll-snap-align: start; color: #fff; isolation: isolate; }
.scard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.scard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5,10,20,0.85) 0%, rgba(5,10,20,0.25) 45%, transparent 70%); }
.scard:hover img { transform: scale(1.05); }
.scard-body { position: absolute; inset: auto 0 0 0; padding: 1.1rem 1.1rem 1.2rem; }
.scard h3 { color: #fff; font-size: 1.35rem; line-height: 1.05; letter-spacing: -0.03em; font-weight: 500; margin-bottom: 0.5rem; }
.scard ul { list-style: none; margin: 0; padding: 0; font-size: 0.8125rem; color: rgba(255,255,255,0.8); line-height: 1.4; }
.scard li + li { margin-top: 0.2rem; }
.scard .num { position: absolute; top: 0.9rem; left: 0.9rem; }
.rail-ctrl { display: flex; gap: 0.5rem; }
.round { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform 100ms ease-out, background-color 150ms ease, color 150ms ease; }
.round:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.round:active { transform: scale(0.94); }
.round svg { width: 0.95rem; height: 0.95rem; }
.round--dark { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- À propos (exemple 2) ---------- */
.about { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .about { grid-template-columns: 1fr 1fr; } }
.about-media { aspect-ratio: 4 / 3.4; border-radius: var(--r-xl); overflow: hidden; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin-top: 2rem; }
.person { position: relative; aspect-ratio: 4 / 4.4; border-radius: var(--r); overflow: hidden; color: #fff; isolation: isolate; }
.person img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; z-index: -2; }
.person::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5,10,20,0.75) 0%, transparent 50%); }
.person-body { position: absolute; inset: auto 0 0 0; padding: 0.9rem 1rem; }
.person b { display: block; font-weight: 500; letter-spacing: -0.02em; }
.person span { font-size: 0.75rem; color: rgba(255,255,255,0.8); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.facts b { display: block; font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 400; letter-spacing: -0.05em; line-height: 1; }
.facts span { display: block; margin-top: 0.4rem; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Encart bleu « offre » (exemple 1) ---------- */
.offer { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .offer { grid-template-columns: 1fr 1fr; } }
.offer-card { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-lg); display: grid; gap: 1rem; min-height: 15rem; align-content: space-between; }
.offer-card .big { font-size: clamp(3rem, 6vw, 4.75rem); font-weight: 400; letter-spacing: -0.06em; line-height: 0.9; }
.offer-card p { color: var(--ink-2); max-width: 26rem; margin: 0; }

/* ---------- Cartes claires ---------- */
.card { background: var(--paper); border-radius: var(--r-lg); padding: clamp(1.4rem, 2.6vw, 2rem); }
.card h3 { margin-bottom: 0.9rem; }
.card p:last-child { margin-bottom: 0; }
.card--white { background: #fff; border: 1px solid var(--line); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 0.65rem 0; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink-2); }
.list li:first-child { border-top: 0; padding-top: 0; }
.list b { color: var(--ink); font-weight: 600; }
.icon-chip { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #fff; color: var(--ink); margin-bottom: 1.25rem; }
.card--white .icon-chip { background: var(--paper); }
.icon-chip svg { width: 1.2rem; height: 1.2rem; }

/* Horaires */
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 0.55rem 0; border-top: 1px solid var(--line); font-size: 0.9375rem; text-align: left; }
.hours tr:first-child th, .hours tr:first-child td { border-top: 0; }
.hours th { font-weight: 500; padding-right: 1rem; }
.hours td { text-align: right; color: var(--ink-2); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--blue-ink); font-weight: 600; }
.hours .closed { color: var(--muted); }
.map { border-radius: var(--r-lg); overflow: hidden; background: var(--paper); min-height: 22rem; }
.map iframe { width: 100%; height: 100%; min-height: 22rem; border: 0; display: block; }

/* =========================================================
   PAGES INTÉRIEURES — en-tête bleu
   ========================================================= */
.page-hero { padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem) clamp(4rem, 9vw, 7rem); min-height: clamp(360px, 52vh, 520px); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; isolation: isolate; }
.page-hero .mega { font-size: clamp(2.8rem, 7.5vw, 7rem); max-width: 14ch; }
.page-hero .mega .lt { color: #fff; }
.page-hero-foot { display: grid; gap: 1.25rem; align-items: end; }
@media (min-width: 900px) { .page-hero-foot { grid-template-columns: 1fr auto; } }
.page-hero-foot p { max-width: 36rem; margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

/* Galerie */
.gallery { display: grid; gap: 0.9rem; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.gallery button { border: 0; padding: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; position: relative; background: var(--paper); grid-column: span 12; aspect-ratio: 16 / 10; }
@media (min-width: 760px) {
  .gallery button { grid-column: span 4; aspect-ratio: 4 / 3; }
  .gallery button.wide { grid-column: span 8; aspect-ratio: auto; }
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.gallery button:hover img { transform: scale(1.04); }
.gallery .cap { position: absolute; left: 0.75rem; bottom: 0.75rem; }

/* Visionneuse */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(8, 10, 14, 0.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 82vh; border-radius: var(--r); object-fit: contain; animation: pop 320ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.lightbox p { color: rgba(255,255,255,0.85); text-align: center; margin: 1rem 0 0; font-size: 0.9375rem; }
.lightbox .round { position: fixed; top: 1rem; right: 1rem; }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

/* Équipe */
.team { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 20rem)); }
.team .person { aspect-ratio: 3 / 4; }
.assoc { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.assoc li { display: flex; flex-direction: column; gap: 0.2rem; padding: 1.25rem; border-radius: var(--r); background: var(--dark-2); border: 1px solid var(--dark-line); }
.assoc b { color: #fff; font-weight: 500; font-size: 1.1rem; letter-spacing: -0.02em; }
.assoc span { color: rgba(255,255,255,0.55); font-size: 0.875rem; }

/* Conseils */
.acard { display: flex; flex-direction: column; border-radius: var(--r); background: var(--paper); overflow: hidden; height: 100%; }
.acard-media { aspect-ratio: 3 / 2; overflow: hidden; }
.acard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.acard:hover .acard-media img { transform: scale(1.05); }
.acard-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; gap: 0.6rem; }
.acard h3 { font-size: 1.15rem; letter-spacing: -0.02em; font-weight: 500; }
.acard p { font-size: 0.9375rem; margin: 0; flex: 1; }
.cats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cats a { display: inline-flex; gap: 0.5rem; align-items: center; height: 2.6rem; padding: 0 1.1rem; border-radius: 999px; background: var(--dark-2); color: #fff; border: 1px solid var(--dark-line); font-size: 0.875rem; transition: background-color 150ms ease, transform 100ms ease-out; }
.cats a:hover { background: var(--dark-3); }
.cats a:active { transform: scale(0.97); }
.cats small { color: rgba(255,255,255,0.45); font-variant-numeric: tabular-nums; }

/* Urgences */
.ucard { border-radius: var(--r-lg); padding: clamp(1.4rem, 2.6vw, 2rem); display: flex; flex-direction: column; gap: 0.9rem; height: 100%; }
.ucard .step { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ucard p { margin: 0; }
.ucard .actions { margin-top: auto; padding-top: 0.5rem; }
.ucard--red { background: #fff1ef; }
.ucard--red .step { color: var(--danger); }

/* ---------- Formulaires ---------- */
.form-layout { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (min-width: 980px) { .form-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } .form-layout aside { position: sticky; top: calc(var(--nav-h) + 1rem); } }
.form-layout aside { display: grid; gap: 1rem; }
.form { display: grid; gap: 1.1rem; background: var(--paper); border-radius: var(--r-xl); padding: clamp(1.4rem, 3.5vw, 2.5rem); }
.form fieldset { border: 0; margin: 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 1.1rem; }
.form legend { float: left; width: 100%; padding: 0; font-size: 1.35rem; font-weight: 500; letter-spacing: -0.03em; }
.form legend + * { clear: both; }
.row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.field { display: grid; gap: 0.4rem; }
.field > label, .field > .label { font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); }
.input, .select, .textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0.8rem 1rem; min-height: 3rem; -webkit-appearance: none; appearance: none; transition: border-color 150ms ease, box-shadow 150ms ease; }
.textarea { min-height: 8rem; resize: vertical; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2380858f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(13,13,15,0.07); }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--danger); }
.field .error { display: none; font-size: 0.8125rem; color: var(--danger); }
.field.is-invalid .error { display: block; }
.seg { display: inline-flex; gap: 0.35rem; flex-wrap: wrap; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: inline-flex; align-items: center; height: 2.5rem; padding: 0 1.2rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); cursor: pointer; font-size: 0.9375rem; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 100ms ease-out; user-select: none; }
.seg label:active { transform: scale(0.96); }
.seg input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg input:focus-visible + label { outline: 2px solid var(--blue-ink); outline-offset: 2px; }
.checks { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.check { display: inline-flex; align-items: center; gap: 0.5rem; height: 2.5rem; padding: 0 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); cursor: pointer; font-size: 0.875rem; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.check:has(input:focus-visible) { outline: 2px solid var(--blue-ink); outline-offset: 2px; }
.q { display: grid; gap: 0.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.q:first-of-type { border-top: 0; padding-top: 0; }
.q > span { font-size: 1rem; font-weight: 500; letter-spacing: -0.015em; }
.q .more { display: none; }
.q.has-more .more { display: grid; }
.form-note { font-size: 0.8125rem; color: var(--muted); margin: 0; }
.toast { position: fixed; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom)); z-index: 120; transform: translate(-50%, 160%); background: var(--ink); color: #fff; padding: 0.85rem 1.25rem; border-radius: 999px; font-size: 0.875rem; transition: transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1); max-width: calc(100vw - 2rem); }
.toast.is-on { transform: translate(-50%, 0); }

/* Pages légales */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.35rem; letter-spacing: -0.03em; margin: 2.25rem 0 0.75rem; }
.prose ul { padding-left: 1.1rem; color: var(--ink-2); }

/* ---------- Pied de page sombre ---------- */
.footer { margin-top: clamp(3rem, 6vw, 5rem); background: var(--dark); color: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem; overflow: hidden; position: relative; isolation: isolate; }
.footer .watermark { color: rgba(255,255,255,0.05); bottom: -0.22em; }
.footer-cta { display: grid; gap: 1.5rem; align-items: end; padding-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--dark-line); }
@media (min-width: 900px) { .footer-cta { grid-template-columns: 1fr auto; } }
.footer .footer-cta .h2 { color: #fff; max-width: 18ch; font-size: clamp(1.9rem, 3.6vw, 3rem); margin: 0; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.footer h4 { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 1rem; }
.footer p, .footer li { color: rgba(255,255,255,0.75); font-size: 0.9375rem; }
.footer p { margin: 0 0 0.35rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 0.4rem 0; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
.footer .hours th, .footer .hours td { border-color: var(--dark-line); font-size: 0.875rem; color: rgba(255,255,255,0.75); padding: 0.35rem 0; }
.footer .hours tr.is-today th, .footer .hours tr.is-today td { color: #fff; }
.footer .hours .closed { color: rgba(255,255,255,0.4); }
.footer-bottom { margin-top: clamp(4rem, 12vw, 9rem); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; font-size: 0.8125rem; color: rgba(255,255,255,0.45); }

/* ---------- Apparition au défilement (douce) ---------- */
.rise { opacity: 0; transform: translateY(28px); transition: opacity 800ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.rise.is-in { opacity: 1; transform: none; }
.no-js .rise { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  .hero-slide, .hero-slide img { transition: opacity 400ms ease !important; transform: none !important; }
  .btn, .cta *, .round, .menu { transition: none !important; }
  .scard img, .dcard-media img, .gallery img, .acard-media img { transition: none; }
  .lightbox img { animation: none; }
}
@media print { .nav, .menu, .footer .watermark { display: none !important; } .rise { opacity: 1; transform: none; } }
