/* =========================================================
   Dr Frédérique Dizin — feuille de styles
   Charte : fond clair épuré + accent terracotta doux
   Typo : Fraunces (titres) / Inter (texte)
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --color-bg:        #FFFFFF;
  --color-bg-alt:    #F7F4F1;
  --color-text:      #33302C;   /* charbon chaud */
  --color-muted:     #7A746C;
  --color-accent:    #E2876A;   /* terracotta doux */
  --color-accent-dk: #C5694D;   /* hover / contrastes */
  --color-border:    #E8E2DC;

  --font-title: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:  "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1080px;
  --space: clamp(3rem, 6vw, 5.5rem);
  --radius: 12px;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-accent-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: var(--space); }
/* le header est sticky : sans ça, un clic sur une ancre glisse le titre dessous */
section[id] { scroll-margin-top: 84px; }
.section-alt { background: var(--color-bg-alt); }

/* ---------- Typographie ---------- */
h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 1.5rem; }
h3 { font-size: 1.25rem; margin: 0 0 .5rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent-dk);
  margin: 0 0 1rem;
}
.lead { font-size: 1.2rem; color: var(--color-text); max-width: 60ch; }
.prose { max-width: 65ch; }
.prose p { margin: 0 0 1.1rem; }
.muted { color: var(--color-muted); }
.note { margin-top: 2rem; color: var(--color-muted); font-size: 0.95rem; }

/* ---------- Pictogrammes transports ---------- */
.transit-list { line-height: 2.1; }
.transit-list .nowrap { white-space: nowrap; }
.transit-icon {
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  margin-left: 0.35em;
  vertical-align: -0.3em;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-dk); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--color-accent-dk);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-accent); }

/* ---------- Bandeau + header (sticky groupé) ----------
   .closure-banner n'est pas dans le HTML actuel : le balisage est retiré
   entre deux fermetures, les styles restent pour le réactiver sans retravail. */
.site-top {
  position: sticky;
  top: 0;
  z-index: 50;
}

.closure-banner {
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
  padding-block: 0.6rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid rgba(51, 48, 44, 0.14);
}
.closure-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}
.closure-banner-icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  color: var(--color-accent);
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}
.brand {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
}
.brand:hover { text-decoration: none; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.site-nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--color-accent-dk); text-decoration: none; }
.nav-cta { color: #fff !important; padding: 0.55rem 1.1rem; }
.nav-cta:hover { color: #fff !important; }

/* ---------- Hero ---------- */
.hero {
  background: var(--color-bg-alt);
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.hero-inner {
  max-width: var(--maxw);
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero-portrait {
  order: -1;
  width: min(60%, 240px);
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(51, 48, 44, 0.14);
}
@media (min-width: 720px) {
  .hero-inner { grid-template-columns: 1fr minmax(240px, 340px); gap: 3.5rem; }
  .hero-portrait { order: 0; width: 100%; justify-self: end; }
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

/* ---------- Photos du cabinet ---------- */
.cabinet-heading {
  margin-top: 3rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-weight: 600;
}
.cabinet-photos {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.2rem;
}
.cabinet-photos figure { margin: 0; }
.cabinet-photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (min-width: 720px) {
  .cabinet-photos { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}

.photo-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(51, 48, 44, 0.12);
}
.photo-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1.1rem 0.9rem;
  background: linear-gradient(to top, rgba(20, 18, 16, 0.62), rgba(20, 18, 16, 0));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.photo-open img { transition: transform .2s ease; }
.photo-open:hover img { transform: scale(1.015); }
.photo-open:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 96vw;
  max-height: 96vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(20, 18, 16, 0.85); }
.lightbox img {
  display: block;
  max-width: 96vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  cursor: zoom-out;
}
.lightbox-close {
  position: absolute;
  top: -2.6rem;
  right: 0;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--color-text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Cartes spécialités ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.section-alt .card { background: #fff; }

/* ---------- Grille infos pratiques ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.info-grid p { margin: 0 0 .4rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: 2rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-nav { display: flex; gap: 1.4rem; }

/* ---------- Listes ---------- */
.axes { margin: 0 0 1.1rem; padding-left: 1.2rem; }
.axes li { margin-bottom: .5rem; }

.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { margin-bottom: .9rem; }
.plain-list li:last-child { margin-bottom: 0; }

/* ---------- Cartes spécialités (format large, 2 colonnes) ---------- */
.cards-wide {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}
.card p { margin: 0 0 1rem; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Blocs repliables (détail des pathologies) ---------- */
.card details { margin-top: 1.3rem; }
.card summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: .92rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  /* traité comme un bouton : sans ça le libellé passe pour un sous-titre */
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: .75rem .95rem;
  transition: background-color .15s ease, border-color .15s ease;
}
.card summary::-webkit-details-marker { display: none; }
.card summary::before {
  content: "";
  order: 2;
  width: .48rem;
  height: .48rem;
  border-right: 2px solid var(--color-accent-dk);
  border-bottom: 2px solid var(--color-accent-dk);
  transform: rotate(-45deg);
  transition: transform .18s ease;
  flex-shrink: 0;
}
.card details[open] summary::before { transform: rotate(45deg); }
.card summary:hover { background: #F1E8E2; border-color: var(--color-accent); }
.card summary:focus-visible {
  outline: 2px solid var(--color-accent-dk);
  outline-offset: 2px;
}

.details-body { margin-top: .95rem; font-size: .94rem; }
.details-body h4 {
  font-family: var(--font-body);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 600;
  color: var(--color-muted);
  margin: 1.2rem 0 .45rem;
}
.details-body h4:first-child { margin-top: 0; }
.details-body ul { margin: 0; padding-left: 1.15rem; }
.details-body li { margin-bottom: .35rem; }

/* ---------- Encadré de mise en avant ---------- */
.highlight {
  border: 1px solid var(--color-accent);
  background: var(--color-bg-alt);
  padding: 1rem 1.3rem;
  border-radius: 1px;
  font-weight: 500;
}
.section-alt .highlight { background: #fff; }

/* ---------- Parcours / engagement scientifique ---------- */
.parcours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.parcours-grid h3 { margin-bottom: 1.1rem; }

/* Frise verticale (diplômes / expérience) */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 1.6rem 1.6rem;
  border-left: 1px solid var(--color-border);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: .35rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--color-bg-alt); border: 2px solid var(--color-accent);
}
.timeline li:first-child::before { background: var(--color-accent); } /* entrée la plus récente */
.timeline-date {
  display: block; margin-bottom: .2rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--color-accent-dk);
}
.timeline strong, .timeline .muted { display: block; }
.timeline strong + strong { margin-top: .3rem; }
.timeline .muted { font-size: .95rem; line-height: 1.5; }
.publications li { line-height: 1.45; }
.publications a { font-weight: 500; }

/* ---------- Responsive nav (simple) ---------- */
@media (max-width: 720px) {
  .site-nav { gap: 1rem; font-size: 0.9rem; }
  .site-nav a:not(.nav-cta) { display: none; }  /* V1 : on garde le CTA visible, menu à enrichir plus tard */
}
