/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --primary:       #7B9E87;
  --primary-dark:  #5D7E6C;
  --primary-light: #B8D4C0;
  --accent:        #C4956A;
  --bg:            #FDFBF8;
  --bg-alt:        #F4EFE8;
  --text:          #2C2825;
  --text-muted:    #7A6E68;
  --white:         #FFFFFF;
  --border:        #E5DDD5;
  --shadow-sm:     0 2px 12px rgba(44,40,37,.06);
  --shadow:        0 6px 32px rgba(44,40,37,.10);
  --shadow-lg:     0 16px 60px rgba(44,40,37,.14);
  --radius:        20px;
  --radius-sm:     10px;
  --transition:    all .28s ease;
  --serif:         'Playfair Display', Georgia, serif;
  --sans:          'Inter', system-ui, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; transition: var(--transition); }
ul    { list-style: none; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

.section-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

/* reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  padding: 15px 34px;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--sans);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(93,126,108,.35); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  padding: 13px 34px;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 500;
  border: 2px solid var(--border);
  transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(253,251,248,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--border);
}

.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: .875rem;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }

.btn-nav {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 10px 26px;
  border-radius: 50px;
  font-weight: 500;
  font-size: .875rem;
}
.btn-nav:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 120px 28px 80px;
  max-width: 1080px;
  margin: 0 auto;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 80% 80% at 70% 40%, rgba(184,212,192,.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 36px; height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}

#hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 24px;
}
#hero h1 em {
  display: block;
  font-style: italic;
  font-size: .62em;
  color: var(--primary);
  margin-top: 4px;
}

.hero-content > p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Photo hero */
.hero-photo {
  position: relative;
  flex-shrink: 0;
  width: 380px;
}
.hero-photo-blob {
  position: absolute;
  inset: -24px -24px -24px -24px;
  background: radial-gradient(circle at 50% 50%, var(--primary-light), transparent 70%);
  opacity: .35;
  border-radius: 50%;
  z-index: 0;
}
.hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center top;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   À PROPOS
   ============================================================ */
#about {
  padding: 110px 0;
  background: var(--bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  line-height: 1.3;
  margin-bottom: 20px;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: .98rem;
}
.about-text strong { color: var(--text); font-weight: 600; }

.about-badges {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  padding: 18px 28px;
  border-radius: var(--radius-sm);
  min-width: 96px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.badge strong { font-size: 1.05rem; color: var(--primary-dark); }
.badge span   { font-size: .72rem; color: var(--text-muted); margin-top: 4px; }

/* déco about */
.about-deco {
  position: relative;
  height: 320px;
}
.deco-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 2px solid var(--primary-light);
  opacity: .5;
}
.deco-dot {
  position: absolute;
  top: 30%; left: 60%;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  opacity: .15;
}

/* ============================================================
   PRESTATIONS
   ============================================================ */
#services { padding: 110px 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 30px;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.service-icon { font-size: 2.4rem; margin-bottom: 20px; }

.service-card h3 {
  font-family: var(--serif);
  font-size: 1.18rem;
  margin-bottom: 12px;
  color: var(--text);
}
.service-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.75; }

/* ============================================================
   DÉROULEMENT
   ============================================================ */
#deroulement {
  padding: 110px 0;
  background: var(--bg-alt);
}

.steps { display: flex; flex-direction: column; }

.step {
  display: flex;
  gap: 44px;
  align-items: flex-start;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }

.step-number {
  font-family: var(--serif);
  font-size: 3.2rem;
  color: var(--primary-light);
  font-weight: 600;
  line-height: 1;
  min-width: 80px;
  flex-shrink: 0;
}

.step-content h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--text);
}
.step-content p { color: var(--text-muted); font-size: .95rem; }

/* ============================================================
   FAQ
   ============================================================ */
#faq { padding: 110px 0; background: var(--bg-alt); }

.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }

.faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  position: relative;
  transition: var(--transition);
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--transition);
}
.faq-icon::before { width: 10px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 1.5px; height: 10px; transform: translate(-50%, -50%); }

.faq-question[aria-expanded="true"] .faq-icon { border-color: var(--primary); background: var(--primary); }
.faq-question[aria-expanded="true"] .faq-icon::before,
.faq-question[aria-expanded="true"] .faq-icon::after { background: var(--white); }
.faq-question[aria-expanded="true"] .faq-icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s ease, padding .4s ease;
}
.faq-answer.open { max-height: 200px; padding-bottom: 20px; }
.faq-answer p { font-size: .95rem; color: var(--text-muted); line-height: 1.75; padding: 0 4px; }

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  padding: 110px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.contact-info { display: flex; flex-direction: column; gap: 30px; }

.contact-item { display: flex; gap: 18px; align-items: flex-start; }

.contact-map iframe {
  border-radius: var(--radius-sm);
  display: block;
  width: 100%;
}
.map-address {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
}
.contact-icon { font-size: 1.5rem; margin-top: 2px; flex-shrink: 0; }
.contact-item strong { display: block; font-weight: 500; margin-bottom: 4px; font-size: .95rem; }
.contact-item p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Carte Doctolib */
.rdv-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 44px;
  text-align: center;
  box-shadow: var(--shadow);
}

.rdv-eyebrow {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.rdv-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--text);
}

.rdv-sub {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.btn-doctolib {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0596DE;
  color: var(--white);
  padding: 16px 36px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 500;
  font-family: var(--sans);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(5,150,222,.30);
  width: 100%;
}
.btn-doctolib:hover {
  background: #047fbb;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(5,150,222,.40);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.footer-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 4px;
}
footer p { font-size: .875rem; color: var(--text-muted); }
.footer-legal { font-size: .78rem; opacity: .6; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .about-deco { display: none; }

  .hero-photo { width: 300px; }
  .hero-photo img { height: 380px; }
}

@media (max-width: 720px) {
  #hero {
    flex-direction: column;
    padding: 110px 28px 60px;
    text-align: center;
    gap: 40px;
  }
  .hero-content > p { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-tag { justify-content: center; }

  .hero-photo {
    width: 240px;
    order: -1;
  }
  .hero-photo img { height: 300px; }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(253,251,248,.98);
    backdrop-filter: blur(14px);
    padding: 20px 28px 28px;
    box-shadow: var(--shadow);
    gap: 18px;
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links .btn-nav { margin-top: 4px; }
  .burger { display: flex; }

  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; }

  .rdv-card { padding: 36px 24px; }

  .step { gap: 24px; }
  .step-number { font-size: 2.4rem; min-width: 56px; }
}
