/* ==========================================================
   Mlle K — A Good Doctor for Working
   Editorial luxury aesthetic / warm & grounded
   ========================================================== */

:root {
  --primary: #393D32;
  --cream: #F1E3C8;
  --burn: #AA3D1D;
  --bg: #FAF9F7;
  --bg-alt: #F3F0EB;
  --text: #393D32;
  --text-soft: #6B6960;
  --white: #FFFFFF;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 10px;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--primary);
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-family: var(--font-body); font-weight: 600; }

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--burn);
  margin-bottom: 1rem;
}

.section-tag--light { color: var(--cream); }

.section-intro { text-align: center; margin-bottom: 3.5rem; }
.section-desc { color: var(--text-soft); max-width: 540px; margin: 0.75rem auto 0; font-size: 1.05rem; }

.services .section-intro h2 { color: var(--cream); }
.services .section-desc { color: rgba(255,255,255,0.7); }
.services .section-tag { color: var(--cream); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  border: 1.5px solid transparent;
  text-decoration: none;
}

.btn-warm {
  background: var(--cream);
  color: var(--primary);
  border-color: var(--cream);
}
.btn-warm:hover {
  background: var(--burn);
  border-color: var(--burn);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(170, 61, 29, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
}

.btn-full { width: 100%; }

/* ==========================================================
   HEADER
   ========================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}

.header.scrolled {
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(57,61,50,0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}
.logo span { color: var(--cream); }
.header.scrolled .logo { color: var(--primary); }

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--cream);
  transition: width 0.3s var(--ease);
}
.nav a:not(.nav-cta):hover::after { width: 100%; }

.header.scrolled .nav a { color: var(--text-soft); }
.header.scrolled .nav a:hover { color: var(--primary); }

.nav-cta {
  background: var(--cream);
  color: var(--primary) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.3s var(--ease);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--burn); color: var(--white) !important; transform: translateY(-1px); }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 200;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: all 0.3s var(--ease);
  border-radius: 2px;
}
.header.scrolled .menu-toggle span { background: var(--primary); }
.menu-toggle.active span { background: var(--white); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--primary);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(170, 61, 29, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(241, 227, 200, 0.06) 0%, transparent 50%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 0 0 0;
  width: 100%;
}

.hero-text {
  padding: 3rem clamp(2rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-text h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.35s forwards;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--cream);
}

.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.65s forwards;
}

/* Portrait */
.hero-portrait {
  position: relative;
  width: clamp(300px, 38vw, 500px);
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 0.4s forwards;
}

.hero-portrait img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.12s ease-out;
  will-change: transform;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

/* ==========================================================
   ABOUT
   ========================================================== */
.about {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: #8B2F15;
  color: var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-visual { position: relative; }

.about-decoration {
  position: absolute;
  bottom: -16px; right: -16px;
  width: 50%; height: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  z-index: -1;
}

.about-content h2 { margin-bottom: 1.5rem; color: var(--white); }

.about-content blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: var(--cream);
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--cream);
}

.about-content p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.badge {
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(255,255,255,0.15);
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.2);
}

/* ==========================================================
   SERVICES
   ========================================================== */
.services {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--primary);
  color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  padding: 2.25rem 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(57,61,50,0.05);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
}

.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--burn), var(--cream));
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.07); }
.card:hover::after { opacity: 1; }

.card-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 1rem;
}

.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--text-soft); font-size: 0.92rem; line-height: 1.7; margin-bottom: 1rem; }

.card ul { list-style: none; }
.card ul li {
  padding: 0.25rem 0;
  padding-left: 1rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  position: relative;
}
.card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.65em;
  width: 5px; height: 5px;
  background: var(--burn);
  border-radius: 50%;
}

/* ==========================================================
   METHOD (Approche)
   ========================================================== */
.method {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step {
  text-align: center;
  padding: 2rem 1.25rem;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 2.2rem;
  right: -0.75rem;
  width: calc(1.5rem);
  height: 1px;
  background: var(--cream);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 1rem;
}

.step h3 { margin-bottom: 0.6rem; }
.step p { color: var(--text-soft); font-size: 0.9rem; }

/* ==========================================================
   TESTIMONIALS
   ========================================================== */
.testimonials {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

.testimonials h2 { color: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

.testimonial {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 2rem;
  transition: background 0.3s;
}
.testimonial:hover { background: rgba(255,255,255,0.1); }

.testimonial-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.testimonial > p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.testimonial footer strong {
  display: block;
  font-size: 0.88rem;
}
.testimonial footer span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

/* ==========================================================
   BLOG
   ========================================================== */
.blog {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(57,61,50,0.05);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
}

.blog-card-img {
  width: 100%;
  overflow: hidden;
}

.blog-card-img svg {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s var(--ease);
}

.blog-card:hover .blog-card-img svg {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burn);
  background: rgba(170, 61, 29, 0.08);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.blog-card p {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.blog-date {
  font-size: 0.75rem;
  color: var(--text-soft);
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg-alt);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-left h2 { margin-bottom: 0.5rem; }
.contact-left .section-desc { margin: 0 0 2rem; }

.contact-details { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.contact-row svg { color: var(--burn); flex-shrink: 0; }
.contact-row a { color: var(--text-soft); text-decoration: none; transition: color 0.2s; }
.contact-row a:hover { color: var(--burn); }

.socials { display: flex; gap: 0.75rem; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease);
}
.socials a:hover { background: var(--burn); transform: translateY(-2px); }

/* Form */
.contact-form {
  background: var(--white);
  padding: 2.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(57,61,50,0.05);
}

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e2dc;
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: var(--font-body);
  background: var(--bg);
  transition: border-color 0.25s;
  color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--burn);
}

.field textarea { resize: vertical; min-height: 100px; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  color: var(--text-soft);
  cursor: pointer;
}
.consent input { margin-top: 2px; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand .logo { color: var(--white); font-size: 1.3rem; }
.footer-brand p { font-size: 0.82rem; opacity: 0.5; margin-top: 0.25rem; }

.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--cream); }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  opacity: 0.4;
  text-align: center;
}

/* ==========================================================
   ANIMATIONS
   ========================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.js-loaded .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
}

/* Mobile */
@media (max-width: 767px) {
  .menu-toggle { display: flex; }

  .nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 150;
  }
  .nav.active { display: flex; }
  .nav.active a { color: var(--white); font-size: 1.15rem; }
  .nav.active .nav-cta { font-size: 1rem; padding: 0.7rem 2rem; }

  /* Hero */
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 5rem;
    border-radius: 0;
  }

  .hero-text { padding: 2rem 1.5rem; }
  .hero-portrait { justify-self: center; width: 250px; }

  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  /* About */
  .about-layout { grid-template-columns: 1fr; }
  .about-decoration { display: none; }
  .about-img-wrap img { max-height: 350px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Steps */
  .steps { grid-template-columns: 1fr; }
  .step { text-align: left; display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; }
  .step-num { font-size: 2rem; }
  .step:not(:last-child)::after { display: none; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; }

  /* Footer */
  .footer-top { flex-direction: column; align-items: center; text-align: center; }
  .footer-nav { justify-content: center; }
}
