/* ═══════════════════════════════════════════════
   Cabinet de Sages-Femmes — David · Petignot · Mousnier
   Feuille de styles
   ═══════════════════════════════════════════════ */

:root {
  --purple: #5C2D7E;
  --accent: #A8294E;
  --surface: #F0E6F8;
  --text: #1A0F25;
  --muted: #8A6FA0;
  --border: #E8D8F0;
  --bg: #FAF8FC;
  --ink: #3A2850;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'DM Sans', sans-serif;
}

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

body {
  background: var(--bg);
  font-family: var(--sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.app { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ── Page routing (progressive enhancement) ──
   Without JS every page stays visible (one long, crawlable scroll).
   With JS (html.js) only the active page is shown. */
html.js .page { display: none; }
html.js .page.active { display: block; animation: fadeIn 0.35s ease; }

/* ═══════════════ HEADER ═══════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(92,45,126,0.07);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; background: none; border: none; cursor: pointer; padding: 0; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand-title { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--text); line-height: 1.2; white-space: nowrap; text-align: left; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; text-align: left; }

.main-nav { display: flex; gap: 4px; align-items: center; }
.nav-link {
  background: none; border: none; border-radius: 7px; cursor: pointer;
  font-family: var(--sans); font-size: 14px; font-weight: 400; padding: 9px 18px;
  color: var(--text); transition: all 0.15s; letter-spacing: 0.01em; text-decoration: none;
}
.nav-link:hover { background: rgba(168,41,78,0.06); }
.nav-link.active { background: rgba(168,41,78,0.08); color: var(--accent); font-weight: 600; }

.hamburger { background: none; border: none; cursor: pointer; padding: 8px; display: none; flex-direction: column; gap: 5px; align-items: flex-end; }
.hamburger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
.hamburger span:nth-child(1) { width: 24px; }
.hamburger span:nth-child(2) { width: 18px; }
.hamburger span:nth-child(3) { width: 24px; }

/* ═══════════════ MOBILE MENU ═══════════════ */
.menu-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(26,15,37,0.45); }
.menu-overlay[hidden] { display: none; }
.menu-panel {
  position: absolute; top: 0; right: 0; width: 280px; height: 100%; background: #fff;
  padding: 28px 24px; display: flex; flex-direction: column; gap: 4px;
  box-shadow: -8px 0 32px rgba(0,0,0,0.12);
}
.menu-close { align-self: flex-end; background: none; border: none; cursor: pointer; font-size: 28px; color: #6E5A80; line-height: 1; padding: 0 0 16px; }
.menu-link { background: none; border: none; border-bottom: 1px solid var(--border); width: 100%; text-align: left; padding: 16px 4px; font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--text); cursor: pointer; text-decoration: none; }
.menu-contact { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.menu-contact .h { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.menu-contact a { display: block; font-size: 15px; color: var(--purple); text-decoration: none; padding: 6px 0; }

/* ═══════════════ BUTTONS ═══════════════ */
.btn { font-family: var(--sans); font-size: 14px; font-weight: 500; border-radius: 6px; cursor: pointer; letter-spacing: 0.03em; padding: 15px 34px; border: none; display: inline-block; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.55); }
.btn-purple { background: var(--purple); color: #fff; padding: 14px 32px; letter-spacing: 0.02em; }
.link-btn { font-size: 13px; color: var(--purple); background: none; border: none; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-family: var(--sans); }

/* ═══════════════ SHARED LAYOUT ═══════════════ */
.section { padding: 88px 28px; }
.section-white { background: #fff; }
.section-surface { background: var(--surface); }
.wrap { max-width: 1100px; margin: 0 auto; }
.eyebrow { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.center { text-align: center; }
.h-lg { font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); font-weight: 500; color: var(--text); }
.h-md { font-family: var(--serif); font-size: clamp(28px, 3.5vw, 42px); font-weight: 500; color: var(--text); }
.lead { font-size: 16px; line-height: 1.85; color: var(--ink); margin-bottom: 16px; }
.lead-sm { font-size: 15px; line-height: 1.9; color: var(--ink); margin-bottom: 16px; }
.split { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.split-text { flex: 1 1 300px; }

/* ═══════════════ HERO ═══════════════ */
.hero { position: relative; height: 92vh; min-height: 560px; overflow: hidden; }
.hero > img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(26,15,37,0.78) 38%, rgba(26,15,37,0.12) 75%); }
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 8%; max-width: 680px; }
.hero-eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 18px; animation: fadeUp 0.6s ease 0.1s both; }
.hero h1 { font-family: var(--serif); font-size: clamp(44px, 6.5vw, 76px); font-weight: 500; color: #fff; line-height: 1.05; margin-bottom: 24px; animation: fadeUp 0.6s ease 0.2s both; }
.hero-lead { font-size: 17px; color: rgba(255,255,255,0.82); margin-bottom: 44px; line-height: 1.65; max-width: 420px; animation: fadeUp 0.6s ease 0.3s both; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp 0.6s ease 0.4s both; }

/* ═══════════════ RDV BANNER (home) ═══════════════ */
.rdv-banner { background: var(--purple); padding: 48px 28px; }
.rdv-top { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.rdv-top h2 { font-family: var(--serif); font-size: 30px; font-weight: 500; color: #fff; margin-bottom: 6px; }
.rdv-top .sub { font-size: 14px; color: rgba(255,255,255,0.6); }
.rdv-phones { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.rdv-phone { text-align: center; }
.rdv-phone .name { font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.rdv-phone a { font-size: 21px; font-weight: 600; color: #fff; text-decoration: none; letter-spacing: 0.02em; }
.rdv-note { max-width: 1100px; margin: 20px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); }
.rdv-note p { font-size: 13px; color: rgba(255,255,255,0.5); text-align: center; font-style: italic; line-height: 1.7; }

/* ═══════════════ TEAM PREVIEW (home) ═══════════════ */
.team-cards { display: flex; flex-wrap: wrap; gap: 48px; justify-content: center; }
.team-card { flex: 0 1 260px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.avatar { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; border: 3px solid var(--border); margin-bottom: 22px; box-shadow: 0 4px 20px rgba(92,45,126,0.12); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-card h3 { font-family: var(--serif); font-size: 23px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.team-card .role { font-size: 13px; color: var(--muted); margin-bottom: 18px; }

/* ═══════════════ SLIDESHOW / CAROUSEL ═══════════════ */
.slideshow { flex: 1 1 400px; position: relative; height: 400px; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 40px rgba(92,45,126,0.18); }
.slideshow img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.7s ease; }
.slideshow img.active { opacity: 1; }

.carousel { flex: 1 1 420px; position: relative; height: 440px; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 40px rgba(92,45,126,0.14); }
.carousel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.7s ease; }
.carousel img.active { opacity: 1; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.92); border: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.14); color: var(--text); }
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }
.dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; }
.dot { width: 7px; height: 7px; border-radius: 4px; background: #fff; opacity: 0.45; transition: all 0.3s; border: none; padding: 0; cursor: pointer; }
.dot.active { width: 22px; opacity: 1; }

/* ═══════════════ SKILLS PREVIEW (home) ═══════════════ */
.skill-cards { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.skill-card { flex: 0 1 330px; height: 280px; border-radius: 14px; overflow: hidden; position: relative; cursor: pointer; text-decoration: none; display: block; border: none; padding: 0; background: none; }
.skill-card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.72); transition: transform 0.4s ease; }
.skill-card:hover img { transform: scale(1.04); }
.skill-card .grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,15,37,0.85) 35%, transparent 70%); }
.skill-card .label { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 26px; text-align: left; }
.skill-card h3 { font-family: var(--serif); font-size: 30px; font-weight: 500; color: #fff; margin-bottom: 6px; }
.skill-card .label p { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.4; }

/* ═══════════════ PAGE BANNERS ═══════════════ */
.banner { position: relative; height: 340px; overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner .banner-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 24px; }
.banner-eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.banner h1 { font-family: var(--serif); font-size: clamp(40px, 6vw, 66px); font-weight: 500; color: #fff; line-height: 1.1; }
.banner-team img { object-position: center 20%; }
.banner-team .overlay { position: absolute; inset: 0; background: rgba(26,15,37,0.5); }
.banner-office { height: 280px; background: var(--purple); }
.banner-office img { opacity: 0.35; }
.banner-office .banner-eyebrow { color: rgba(255,255,255,0.55); }
.banner-contact { background: var(--purple); padding: 64px 28px; text-align: center; }
.banner-contact .banner-eyebrow { color: rgba(255,255,255,0.55); }
.banner-contact h1 { font-family: var(--serif); font-size: clamp(40px, 6vw, 66px); font-weight: 500; color: #fff; }

/* ═══════════════ TEAM PAGE ═══════════════ */
.members { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; }
.group-photo { padding-bottom: 64px; border-bottom: 1px solid var(--border); }
.group-photo .frame { border-radius: 16px; overflow: hidden; box-shadow: 0 14px 44px rgba(92,45,126,0.18); }
.group-photo .frame img { width: 100%; height: auto; }
.group-photo p { text-align: center; font-size: 15px; line-height: 1.85; color: var(--ink); max-width: 680px; margin: 28px auto 0; }
.member { display: flex; flex-wrap: wrap; gap: 44px; align-items: flex-start; padding: 64px 0; border-bottom: 1px solid var(--border); }
.member-aside { flex: 0 0 180px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.member-avatar { width: 148px; height: 148px; border-radius: 50%; overflow: hidden; border: 4px solid var(--surface); box-shadow: 0 6px 24px rgba(92,45,126,0.14); }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.member-phone { font-size: 14px; color: var(--purple); text-decoration: none; font-weight: 500; }
.member-body { flex: 1 1 300px; }
.member-body h2 { font-family: var(--serif); font-size: 34px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.member-role { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; font-weight: 500; }
.member-bio { font-size: 15px; line-height: 1.85; color: var(--ink); margin-bottom: 28px; }
.skills-box { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 24px; }
.skills-box .h { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 500; }
.skills-list { display: flex; flex-direction: column; gap: 9px; }
.skills-list .item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); line-height: 1.5; }
.skills-list .item .b { color: var(--accent); flex-shrink: 0; font-size: 16px; line-height: 1.3; }
.member.christelle { align-items: center; border-bottom: none; }
.member.christelle .member-avatar { width: 110px; height: 110px; }
.member.christelle .eyebrow-muted { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.member.christelle h2 { font-size: 32px; margin-bottom: 10px; }
.member.christelle .tagline { font-size: 15px; color: var(--ink); font-style: italic; }

/* ═══════════════ OFFICE PAGE ═══════════════ */
.rdv-section { background: var(--surface); padding: 72px 28px; text-align: center; }
.rdv-section .inner { max-width: 800px; margin: 0 auto; }
.rdv-section h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 42px); font-weight: 500; color: var(--text); margin-bottom: 40px; }
.rdv-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 32px; }
.rdv-button { background: var(--purple); color: #fff; text-decoration: none; padding: 18px 28px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 180px; }
.rdv-button .name { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.rdv-button .num { font-size: 19px; font-weight: 600; letter-spacing: 0.03em; }
.rdv-section .note { font-size: 13px; color: #6E5A80; font-style: italic; line-height: 1.8; }

.services { max-width: 920px; margin: 0 auto; }
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 36px; }
.tab { background: none; border: none; border-bottom: 3px solid transparent; cursor: pointer; font-family: var(--sans); font-size: 15px; font-weight: 400; padding: 12px 28px; color: var(--muted); margin-bottom: -2px; transition: all 0.15s; }
.tab.active { border-bottom-color: var(--purple); color: var(--purple); font-weight: 600; }
.tab-panel { display: none; flex-direction: column; gap: 8px; }
.tab-panel.active { display: flex; }
.accordion-item { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.accordion-btn { width: 100%; text-align: left; background: #fff; border: none; padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: background 0.15s; }
.accordion-btn .t { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--text); text-align: left; line-height: 1.4; }
.accordion-btn .chev { font-size: 24px; color: var(--purple); flex-shrink: 0; line-height: 1; display: inline-block; transition: transform 0.2s; }
.accordion-item.open .accordion-btn { background: var(--surface); }
.accordion-item.open .chev { transform: rotate(45deg); }
.accordion-content { display: none; padding: 0 24px 24px 24px; background: var(--surface); }
.accordion-item.open .accordion-content { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.accordion-content img { flex: 0 0 240px; width: 240px; max-width: 100%; height: 180px; object-fit: cover; border-radius: 10px; box-shadow: 0 6px 20px rgba(92,45,126,0.16); }
.accordion-content p { flex: 1 1 280px; font-size: 14px; line-height: 1.85; color: var(--ink); }

/* ═══════════════ CONTACT PAGE ═══════════════ */
.map { width: 100%; height: 460px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-cards { max-width: 880px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 60px; justify-content: center; }
.contact-col { flex: 1 1 280px; }
.contact-col h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--text); margin-bottom: 20px; }
.address { font-size: 15px; line-height: 2; color: var(--ink); }
.contact-note { font-size: 13px; color: var(--muted); margin-top: 18px; line-height: 1.7; }
.contact-intro { font-size: 14px; color: var(--muted); margin-bottom: 22px; line-height: 1.6; }
.phone-cards { display: flex; flex-direction: column; gap: 10px; }
.phone-card { display: flex; align-items: center; gap: 16px; text-decoration: none; padding: 15px 18px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; }
.phone-card .icon { width: 36px; height: 36px; background: var(--surface); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.phone-card .name { font-size: 11px; color: var(--muted); margin-bottom: 3px; letter-spacing: 0.04em; }
.phone-card .num { font-size: 16px; font-weight: 600; color: var(--purple); }
.contact-terms { margin-top: 22px; padding: 18px; background: var(--surface); border-radius: 10px; }
.contact-terms p { font-size: 13px; color: var(--ink); line-height: 1.8; font-style: italic; }

/* ═══════════════ FOOTER ═══════════════ */
.site-footer { background: #120A1A; padding: 36px 28px; text-align: center; }
.site-footer .copy { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.9; }
.site-footer .credit { font-size: 12px; color: rgba(255,255,255,0.28); margin-top: 4px; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 799px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
}
