/* =========================================================
   Cabinet du Dr Marc-Antoine Lemaire — Gastro-entérologie
   Design : sobre, fond noir (cf. plan), épuré et aéré
   (réf. maisonaltiderme.fr), accent laiton, filets fins.
   ========================================================= */

:root {
  --bg: #0e0f10;
  --bg-soft: #131415;
  --border: #26272a;
  --border-strong: #3a3b3f;
  --text: #e8e5de;
  --text-muted: #98958d;
  --accent: #c2a878;
  --accent-dim: #8f7d59;
  --on-accent: #121110;
  --serif: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 5.5rem; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16.5px;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); }

strong { font-weight: 500; color: var(--text); }

h1, h2, h3, h4, .brand a {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* Petites capitales espacées — utilitaire */
.eyebrow, nav a, .tag, .btn, .nav-toggle {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 400;
}

/* ---------- Header / navigation ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 15, 16, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand { display: flex; flex-direction: column; line-height: 1.3; flex-shrink: 0; }
.brand-link { display: flex; align-items: center; gap: 0.65rem; }
.brand-logo { height: 42px; width: auto; display: block; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; }
.brand a { color: var(--text); font-size: 1.15rem; white-space: nowrap; }
.brand a:hover .brand-name { color: var(--accent); }
.brand small {
  color: var(--text-muted);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 0.15rem;
  white-space: nowrap;
}

nav ul { display: flex; list-style: none; gap: 0.1rem; flex-wrap: nowrap; }

nav a {
  display: block;
  padding: 0.5rem 0.7rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
nav a:hover { color: var(--text); }
nav a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; }

.btn-doctolib,
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn-doctolib:hover,
.btn-accent:hover { background: var(--text); border-color: var(--text); color: var(--on-accent); }

.btn-outline { border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */

.hero {
  padding: 5.5rem 0 4.5rem;
  border-bottom: 1px solid var(--border);
}

/* Accueil allégé : le héro occupe l'essentiel de l'écran */
.hero-home {
  min-height: calc(100vh - 5.5rem);
  display: flex;
  align-items: center;
}
.hero-home > .container { width: 100%; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.3;
  margin-bottom: 1.4rem;
}
.hero h1 span { color: var(--accent); }

.hero p.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.2rem;
  max-width: 34rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.photo-placeholder {
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, transparent 49.6%, var(--border) 49.6%, var(--border) 50.4%, transparent 50.4%),
    var(--bg-soft);
}

/* ---------- Photos ---------- */

figure.photo { border: 1px solid var(--border); background: var(--bg-soft); }
figure.photo img { width: 100%; height: auto; }
figure.photo.crop img { aspect-ratio: 4 / 3; object-fit: cover; }
figure.photo figcaption {
  border-top: 1px solid var(--border);
  padding: 0.7rem 1rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

/* ---------- Note contact sous le héro ---------- */

.hero-note {
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.hero-note strong { color: var(--accent); font-weight: 400; }
.hero-note a { color: var(--text-muted); border-bottom: 1px solid var(--border-strong); }
.hero-note a:hover { color: var(--accent); }

/* ---------- Sections ---------- */

section.block { padding: 4.5rem 0; }
section.block.alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
section.block.alt .card, section.block.alt .cards .card { background: var(--bg); }

h1.section-title,
h2.section-title {
  font-size: 1.7rem;
  margin-bottom: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
h1.section-title::after,
h2.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

p.section-intro {
  color: var(--text-muted);
  max-width: 44rem;
  margin: -1.2rem 0 2.2rem;
  font-size: 0.97rem;
}

p.after-cards {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 1.5rem;
}

/* ---------- Cartes ---------- */

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.cards.three { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg);
  padding: 2.2rem 2rem;
  border: 1px solid var(--border);
}
a.card { color: var(--text); display: block; transition: background-color 0.2s ease; }
a.card:hover { text-decoration: none; background: var(--bg-soft); }
a.card:hover h3 { color: var(--accent); }

.card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; transition: color 0.2s ease; }
.card p { color: var(--text-muted); font-size: 0.92rem; }
.card .tag { display: block; color: var(--accent-dim); margin-bottom: 1rem; }

.cards .card { border: none; }

/* ---------- Horaires ---------- */

table.hours { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.hours th, table.hours td { padding: 0.65rem 0.2rem; text-align: left; }
table.hours tr { border-bottom: 1px solid var(--border); }
table.hours tr:last-child { border-bottom: none; }
table.hours th {
  color: var(--text-muted);
  font-weight: 400;
  width: 40%;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}
table.hours td { color: var(--text); font-weight: 300; }

/* ---------- Page intérieure ---------- */

.page-head {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.page-head h1 { font-size: 2.1rem; }
.page-head p { color: var(--text-muted); margin-top: 0.8rem; max-width: 44rem; font-size: 0.98rem; }
.page-head a { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-muted); }
.page-head a:hover { color: var(--accent); }

.content { padding: 3.5rem 0 4.5rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.about-grid { grid-template-columns: 1.4fr 1fr; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }

ul.access-list { list-style: none; margin: 1.2rem 0 0; }
ul.access-list li {
  padding: 0.8rem 0.2rem;
  border-bottom: 1px solid var(--border);
}
ul.access-list li:first-child { border-top: 1px solid var(--border); }

.content h2 { font-size: 1.35rem; margin: 2rem 0 0.8rem; }
.content h2:first-child { margin-top: 0; }
.content p { margin-bottom: 1rem; }
.content ul { margin: 0 0 1rem 1.2rem; }
.content li { margin-bottom: 0.35rem; }
.content li::marker { color: var(--accent-dim); }
.content .muted { color: var(--text-muted); }

/* ---------- FAQ ---------- */

details.faq-item {
  border-bottom: 1px solid var(--border);
}
details.faq-item:first-of-type { border-top: 1px solid var(--border); }
details.faq-item summary {
  cursor: pointer;
  padding: 1.5rem 3rem 1.5rem 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  list-style: none;
  position: relative;
  transition: color 0.2s ease;
}
details.faq-item summary:hover { color: var(--accent); }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-dim);
  font-family: var(--sans);
  font-weight: 200;
  font-size: 1.5rem;
}
details.faq-item[open] summary::after { content: "−"; }
details.faq-item[open] summary { color: var(--accent); }
.faq-body { padding: 0 0 2rem; color: var(--text-muted); max-width: 52rem; }
.faq-body h3 { color: var(--text); font-size: 1.05rem; margin: 1.4rem 0 0.5rem; }
.faq-body ul { margin: 0.3rem 0 0.9rem 1.2rem; }
.faq-body li::marker { color: var(--accent-dim); }
.faq-body p { margin-bottom: 0.9rem; }

/* ---------- Carte Google Maps ---------- */

.map-embed {
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Source / mentions ---------- */

.source-note {
  text-align: right;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3rem;
  letter-spacing: 0.02em;
}
.source-note a { color: var(--text-muted); border-bottom: 1px solid var(--border-strong); }
.source-note a:hover { color: var(--accent); }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-bottom: 3rem; }
footer h4 {
  color: var(--text);
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
}
footer ul { list-style: none; }
footer li { margin-bottom: 0.4rem; }
footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  body { font-size: 16px; }

  .hero-grid, .two-col, .about-grid, .contact-grid, .cards, .cards.three, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 1.7rem; }
  .hero p.lead { font-size: 1rem; }

  section.block { padding: 3rem 0; }
  section[id] { scroll-margin-top: 4.5rem; }
  h1.section-title, h2.section-title { font-size: 1.45rem; }
  .page-head { padding: 2.5rem 0 2rem; }
  .page-head h1 { font-size: 1.6rem; }

  /* Boutons pleine largeur, faciles à toucher */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; padding: 1rem 1.5rem; }
  .content .btn, .card .btn { display: block; text-align: center; }

  .card { padding: 1.6rem 1.4rem; }
  details.faq-item summary { font-size: 1.02rem; padding: 1.2rem 2.5rem 1.2rem 0; }
  .map-embed { aspect-ratio: 4 / 3; }
  .footer-grid { gap: 1.8rem; }

  .nav-toggle { display: block; }
  nav { display: none; width: 100%; }
  nav.open { display: block; }
  nav ul { flex-direction: column; padding-bottom: 0.75rem; }
  nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--border); font-size: 0.78rem; }
  nav li:last-child a { border-bottom: none; }
  .header-inner { flex-wrap: wrap; padding: 0.9rem 1.25rem; }
}
