/* =========================================================
   DIVAMED — feuille de style principale
   Cabinet dentaire · 24ter av. de Fontainebleau, 77310 Saint-Fargeau-Ponthierry
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink: #0e0e10;
  --ink-soft: #4a4a52;
  --ink-mute: #6f6f78;
  --gold: #b08d57;
  --gold-deep: #87683d;
  --gold-light: #e8dcc4;
  --bone: #faf8f5;
  --white: #ffffff;
  --line: #e4ded4;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --sp-section: clamp(4rem, 9vw, 7.5rem);
  --radius: 3px;
  --shadow: 0 1px 2px rgba(14, 14, 16, .04), 0 8px 28px rgba(14, 14, 16, .06);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }

/* ---------- Utilitaires ---------- */
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--sp-section); }
.section--tint { background: var(--white); border-block: 1px solid var(--line); }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 1rem;
}
.eyebrow::after {
  content: '';
  display: block;
  width: 34px;
  height: 1px;
  background: var(--gold);
  margin-top: .75rem;
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 1rem; }
.lede { font-size: clamp(1.02rem, 1.6vw, 1.15rem); max-width: 62ch; color: var(--ink-soft); }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--white);
  padding: .75rem 1.25rem; z-index: 999;
}
.skip:focus { left: 1rem; top: 1rem; }

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .85rem 1.6rem;
  font-family: var(--sans);
  font-size: .93rem; font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--gold-deep); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-deep); }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 245, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand__mark { width: 40px; height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
  color: var(--ink); letter-spacing: .04em;
}
.brand__sub {
  font-size: .58rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--ink-mute); margin-top: .15rem;
}
.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav__list { display: flex; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  font-size: .87rem; text-decoration: none; color: var(--ink-soft);
  position: relative; padding-block: .35rem;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.header .btn { padding: .6rem 1.15rem; min-height: 42px; font-size: .85rem; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav__list, .header .btn { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; background: none;
    border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle span {
    display: block; width: 18px; height: 1.5px; background: var(--ink);
    position: relative;
  }
  .nav-toggle span::before, .nav-toggle span::after {
    content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink);
  }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .mobile-nav { display: none; border-top: 1px solid var(--line); padding-block: 1.25rem; }
  .mobile-nav.is-open { display: block; }
  .mobile-nav ul { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .3rem; }
  .mobile-nav a {
    display: block; padding: .7rem 0; text-decoration: none;
    color: var(--ink-soft); font-size: .95rem;
  }
  .mobile-nav .btn { display: inline-flex; width: 100%; }
}
@media (min-width: 901px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 11vw, 8.5rem) var(--sp-section);
  background: linear-gradient(180deg, var(--bone) 0%, var(--white) 62%);
}

/* Fond animé discret : orbes floutées qui dérivent lentement.
   Opacités volontairement basses — le fond reste sobre. */
.hero__bg, .hero__glow { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .55; will-change: transform; }
.orb--1 {
  width: 40vw; height: 40vw; left: -10vw; top: -12vw;
  background: radial-gradient(circle at 35% 35%, rgba(176, 141, 87, .26), transparent 70%);
  animation: drift1 23s ease-in-out infinite;
}
.orb--2 {
  width: 32vw; height: 32vw; right: -8vw; top: 6vw;
  background: radial-gradient(circle at 60% 40%, rgba(14, 14, 16, .05), transparent 70%);
  animation: drift2 28s ease-in-out infinite;
}
.orb--3 {
  width: 28vw; height: 28vw; left: 28vw; bottom: -14vw;
  background: radial-gradient(circle at 50% 50%, rgba(232, 220, 196, .5), transparent 70%);
  animation: drift3 25s ease-in-out infinite;
}
@keyframes drift1 { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(4vw, 3.5vw, 0) scale(1.08); } }
@keyframes drift2 { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-3vw, 4vw, 0) scale(1.1); } }
@keyframes drift3 { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(3.5vw, -3vw, 0) scale(1.06); } }

/* Halo doré qui suit le curseur (piloté par --mx / --my en JS). */
.hero__glow {
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 38%), rgba(176, 141, 87, .15), transparent 62%);
  transition: background .3s var(--ease);
}

.hero__inner {
  position: relative; z-index: 1; max-width: 760px;
  transform: translate3d(var(--shiftX, 0), var(--shiftY, 0), 0);
  transition: transform .45s var(--ease);
}
.hero__kicker {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .7rem;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 1.5rem;
  opacity: 0; animation: rise .8s var(--ease) .05s forwards;
}
.hero__kicker > span:first-child::after { content: '·'; margin-left: .7rem; color: var(--ink-mute); }
.hero__kicker .hero__brand { display: inline-flex; align-items: center; gap: .45em; }
.hero__kicker .hero__mark { height: 1.25em; width: auto; display: inline-block; transform: translateY(.06em); }
.hero__kicker::before { content: ''; width: 26px; height: 1px; background: var(--gold); display: inline-block; }
.hero__title {
  font-size: clamp(2.6rem, 6.4vw, 4.4rem);
  letter-spacing: -.02em; line-height: 1.05; margin-bottom: 1.6rem;
  color: var(--ink);
  opacity: 0; animation: rise .85s var(--ease) .13s forwards;
}
.hero__title em { font-style: italic; color: var(--gold-deep); }
.hero__lede {
  font-size: clamp(1.05rem, 1.8vw, 1.24rem); max-width: 50ch;
  margin-bottom: 2.4rem; color: var(--ink-soft);
  opacity: 0; animation: rise .85s var(--ease) .23s forwards;
}
.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-bottom: 3rem;
  opacity: 0; animation: rise .85s var(--ease) .33s forwards;
}
/* Sélecteur de praticien (RDV) — bouton unique + menu en cartes */
.rdv-select { position: relative; z-index: 20; isolation: isolate; }
.rdv-select__caret { font-size: .7em; margin-left: .35em; opacity: .8; transition: transform .2s var(--ease); }
.rdv-select__toggle[aria-expanded="true"] .rdv-select__caret { transform: rotate(180deg); }
/* Panneau dans le flux (pas de chevauchement possible avec le hero) */
.rdv-select__panel {
  max-height: 0; overflow: hidden;
  opacity: 0; transform: translateY(-6px);
  transition: max-height .28s var(--ease), opacity .2s var(--ease), transform .2s var(--ease), margin .2s var(--ease);
  margin-top: 0;
}
.rdv-select__panel.is-open {
  max-height: 420px; opacity: 1; transform: none;
  margin-top: 1rem;
}
.rdv-select__inner {
  background: #ffffff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 18px 44px rgba(14,14,16,.12);
  padding: 1.1rem; width: max-content; max-width: 92vw;
}
.rdv-select__title {
  margin: 0 0 .7rem; font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-mute);
}
.rdv-select__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.rdv-select__card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  text-decoration: none; padding: .8rem .7rem .7rem; border-radius: 14px;
  border: 1px solid var(--line); background: #ffffff;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease), background .18s var(--ease);
}
.rdv-select__card img {
  width: 56px; height: 74px; object-fit: cover; border-radius: 10px;
  margin-bottom: .5rem; filter: grayscale(1);
  transition: filter .25s var(--ease);
}
.rdv-select__name {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  color: var(--ink); line-height: 1.15;
}
.rdv-select__role {
  font-size: .6rem; letter-spacing: .14em; color: var(--gold-deep);
  text-transform: uppercase; margin-top: .3rem;
}
.rdv-select__card:hover,
.rdv-select__card:focus-visible {
  border-color: var(--gold-deep); background: rgba(135,104,61,.05);
  box-shadow: 0 12px 28px rgba(135,104,61,.20);
  transform: translateY(-3px); outline: none;
}
.rdv-select__card:hover img,
.rdv-select__card:focus-visible img { filter: grayscale(0); }
/* variante sur fond sombre (cta-band) */
.cta-band .rdv-select__inner { background: #1b1b1f; border-color: rgba(255,255,255,.18); }
.cta-band .rdv-select__title { color: rgba(255,255,255,.6); }
.cta-band .rdv-select__card { background: #232327; border-color: rgba(255,255,255,.16); }
.cta-band .rdv-select__name { color: #fff; }
.cta-band .rdv-select__card:hover,
.cta-band .rdv-select__card:focus-visible { border-color: var(--gold); box-shadow: 0 12px 28px rgba(176,141,87,.26); }
@media (max-width: 560px) {
  .rdv-select { width: 100%; }
  .rdv-select__toggle { width: 100%; justify-content: center; }
  .rdv-select__panel { width: 100%; }
  .rdv-select__inner { width: 100%; max-width: none; }
  .rdv-select__grid { grid-template-columns: 1fr 1fr; }
}
.hero__facts {
  display: grid; gap: 1.6rem 2.6rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding-top: 2.1rem; border-top: 1px solid var(--line);
  opacity: 0; animation: fade .85s var(--ease) .45s forwards;
}
.fact__label {
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: .45rem;
}
.fact__value { font-size: .98rem; color: var(--ink); font-weight: 500; }
.fact--address .fact__value { max-width: 16rem; }
.fact__value a { text-decoration: none; transition: color .2s var(--ease); }
.fact__value a:hover { color: var(--gold-deep); }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .hero__glow { display: none; }
  .hero__kicker, .hero__title, .hero__lede, .hero__actions, .hero__facts { opacity: 1; animation: none; }
}

/* ---------- Prose ---------- */
/* Section praticien : une ou plusieurs cartes portrait + texte.
   Le portrait est en noir & blanc tramé (parti pris graphique du client),
   cadré 3:4. Coins arrondis ; le noir d'encodage aux angles a été supprimé
   en composant la photo sur le fond --bone avant le JPEG. */
.praticiens {
  display: grid;
  gap: clamp(3rem, 7vw, 6rem);
  grid-template-columns: 1fr;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.praticien {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  grid-template-columns: 300px 1fr;
  align-items: start;
}
.praticien__portrait figure { margin: 0; }
.praticien__portrait img {
  display: block; width: 100%; height: auto;
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(14,14,16,.06), 0 14px 34px rgba(14,14,16,.10);
  filter: none;
}
/* alternance : portrait à droite pour le second praticien */
.praticien:nth-child(even) { grid-template-columns: 1fr 300px; }
.praticien:nth-child(even) .praticien__portrait { order: 2; }
.praticien:nth-child(even) .praticien__body { order: 1; }
.praticien__name { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .25rem; }
.praticien__role {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin-bottom: 1rem;
}
.praticien__body { max-width: 60ch; }
.praticien__body p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 1rem; }
.praticien__rdv {
  display: inline-block; margin: .25rem 0 1.25rem;
  font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.praticien__rdv:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.prose { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); grid-template-columns: .8fr 1.2fr; }
.prose__body { display: grid; gap: 1.15rem; }
.prose__body p { font-size: 1.03rem; }
@media (max-width: 820px) {
  .prose { grid-template-columns: 1fr; }
  .praticien,
  .praticien:nth-child(even) { grid-template-columns: 1fr; }
  .praticien:nth-child(even) .praticien__portrait,
  .praticien:nth-child(even) .praticien__body { order: 0; }
  .praticien__portrait { max-width: 300px; margin: 0 auto; }
}

.signature {
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.25rem; color: var(--ink);
}
.signature small {
  display: block; font-family: var(--sans); font-size: .78rem;
  color: var(--ink-mute); letter-spacing: .06em; margin-top: .3rem;
}

/* ---------- Soins ---------- */
.care-list { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.care {
  display: grid; grid-template-columns: 3.2rem 1fr; gap: 1.5rem;
  padding: 1.75rem 0; border-bottom: 1px solid var(--line);
  align-items: start;
}
.care__num {
  font-family: var(--serif); font-size: 1.05rem; color: var(--gold-deep);
  padding-top: .1rem; font-variant-numeric: tabular-nums;
}
.care__name { font-size: 1.22rem; margin-bottom: .35rem; }
.care__desc { font-size: .95rem; max-width: 68ch; }
@media (max-width: 620px) {
  .care { grid-template-columns: 1fr; gap: .5rem; }
  .care__num { padding-top: 0; }
}

/* ---------- Infos pratiques ---------- */
.info-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 2.5rem; }
.info-card {
  background: var(--bone); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.85rem;
}
.section--tint .info-card { background: var(--bone); }
.info-card h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; font-size: .93rem; }
.hours span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.hours li.is-closed span:last-child { color: var(--ink-mute); }
.info-card address { font-style: normal; font-size: .95rem; line-height: 1.75; }
.info-card ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .93rem; }

/* ---------- Bandeau RDV ---------- */
.cta-band { background: var(--ink); color: rgba(255, 255, 255, .78); }
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 1rem; }
.cta-band .lede { color: rgba(255, 255, 255, .72); margin-inline: auto; }
.cta-band__inner { text-align: center; display: grid; justify-items: center; gap: 1.75rem; }
.cta-band .btn--primary { background: var(--gold); color: var(--ink); }
.cta-band .btn--primary:hover { background: var(--gold-light); }
.cta-band .btn--ghost { border-color: rgba(255, 255, 255, .3); color: var(--white); }
.cta-band .btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }

/* ---------- Pied de page ---------- */
.footer { background: var(--white); border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1.3fr 1fr 1fr; }
.footer__brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer__brand img { width: 34px; }
.footer h3 {
  font-family: var(--sans); font-size: .7rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1rem; font-weight: 600;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer a { text-decoration: none; font-size: .9rem; transition: color .2s var(--ease); }
.footer a:hover { color: var(--gold-deep); }
.footer address { font-style: normal; font-size: .9rem; line-height: 1.7; }
.footer__legal {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .8rem; color: var(--ink-mute);
}
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Révélation au scroll ----------
   Amélioration progressive : sans JavaScript, la classe .js n'est jamais
   posée et le contenu reste visible. On ne masque que si JS est actif. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- Pages légales ---------- */
.legal { padding-block: clamp(3rem, 7vw, 5rem); }
.legal__content { max-width: 74ch; display: grid; gap: 1.1rem; }
.legal__content h2 { font-size: 1.45rem; margin-top: 2rem; }
.legal__content h2:first-of-type { margin-top: 0; }
.legal__content p, .legal__content li { font-size: .97rem; }
.legal__content ul { padding-left: 1.2rem; display: grid; gap: .5rem; }
.legal__content a { color: var(--gold-deep); }

/* ---------- Impression ---------- */
@media print {
  .header, .cta-band, .nav-toggle, .mobile-nav { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .reveal { opacity: 1; transform: none; }
}
