:root {
  --bg: #faf8f6;
  --bg-alt: #efe9e5;
  --text: #2e2a28;
  --muted: #6b625d;
  --accent: #8a6a5c;
  --accent-dark: #6d5245;
  --radius: 14px;
  --font-title: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--font-title); font-weight: normal; line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 1.2rem; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Boutons */
.btn {
  display: inline-block;
  padding: .75em 1.4em;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--accent);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--accent-dark); }
.btn-ghost:hover { color: #fff; }
.btn-small { padding: .45em 1em; font-size: .9rem; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 248, 246, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--bg-alt);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--font-title); font-size: 1.25rem; color: var(--text); text-decoration: none; }
.brand span { color: var(--muted); font-size: .95rem; margin-left: .3em; }
nav { display: flex; align-items: center; gap: 1.2rem; }
nav a:not(.btn) { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  background-color: #dfd8d7;
  background-image: url("images/portrait.webp"), url("images/hero-shape.png");
  background-repeat: no-repeat, no-repeat;
  background-position: left max(20px, calc(50% - 530px)) bottom, right 0 top 0;
  background-size: auto 100%, 60% auto;
  min-height: min(680px, calc(100vh - 64px));
  display: flex; align-items: center;
}
.hero-inner { width: 100%; display: flex; justify-content: flex-end; }
.hero-text { width: 50%; padding: 64px 0; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); margin: 0; }
.subtitle { font-size: 1.3rem; color: var(--accent-dark); margin: .2rem 0 1.4rem; letter-spacing: .04em; text-transform: uppercase; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* Intro */
.intro { padding: 72px 0 24px; text-align: center; }
.intro p { font-size: 1.2rem; color: var(--muted); }

/* Spécialités */
.specialites { padding: 24px 0 72px; }
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px;
}
.cards li {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; font-weight: 600;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

/* Parcours */
.parcours { background: #fff; padding: 80px 0; }
.quote {
  font-family: var(--font-title); font-style: italic; font-size: 1.35rem;
  border-left: 3px solid var(--accent); padding-left: 1rem; color: var(--accent-dark);
}

/* Contact */
.contact { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
address { font-style: normal; font-size: 1.2rem; font-weight: 600; margin-bottom: 1.5rem; }
.contact-options { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 16px 20px; flex: 1 1 200px; }
.contact-card h3 { margin: 0 0 .6rem; font-size: 1.1rem; }
.cabinet { border-radius: var(--radius); }
.map { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: var(--radius); }

/* Pied de page */
.site-footer { background: var(--bg-alt); padding: 24px 0; text-align: center; color: var(--muted); font-size: .9rem; }

/* Tablette et mobile : photo au-dessus, texte en dessous */
@media (max-width: 1050px) {
  .hero {
    display: block; min-height: 0;
    padding-top: 400px;
    background-position: center top 24px, right 0 top 0;
    background-size: auto 376px, 100% auto;
  }
  .hero-text { width: 100%; max-width: 620px; margin: 0 auto; padding: 32px 0 56px; text-align: center; background: #dfd8d7; }
  .lead { margin: 0 auto; }
  .hero-actions { justify-content: center; }
}

/* Mobile */
@media (max-width: 800px) {
  .hero { padding-top: 340px; background-size: auto 316px, 100% auto; }
  .contact-grid { grid-template-columns: 1fr; }
  nav a:not(.btn) { display: none; }
  .brand span { display: none; }
  .map { min-height: 320px; }
}
