/* =========================================================
   Dr Aurore Lafosse — Chirurgien Plasticien & Esthétique
   Feuille de style — thème clair éditorial
   Inspiration : maison de luxe (Villa Marie Saint-Tropez)
   Palette : ivoire / terracotta / encre chaude
   Polices : EB Garamond (titres) · Source Sans 3 (texte)
   ========================================================= */

/* ----- 1. Variables ----- */
:root {
  --bg:          #faf6ee;   /* ivoire chaud */
  --bg-alt:      #f1e8d8;   /* sable */
  --bg-white:    #ffffff;
  --ink:         #2c2620;   /* encre chaude — titres */
  --text:        #6c6357;   /* gris chaud — texte courant */
  --text-soft:   #938b7d;
  --text-muted:  #938b7d;   /* alias (pages légales) */
  --gold:        #a24a30;   /* alias de compatibilité → terracotta */
  --accent:      #a24a30;   /* terracotta */
  --accent-dark: #843a25;
  --accent-soft: #c98a6f;
  --line:        rgba(44, 38, 32, 0.16);
  --line-light:  rgba(44, 38, 32, 0.09);

  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", system-ui, -apple-system, Segoe UI, sans-serif;

  --max:    1280px;
  --gutter: 40px;
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- 2. Base ----- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.14;
  color: var(--ink);
  letter-spacing: 0.005em;
}
em { font-style: italic; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Eyebrow — petites capitales espacées */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.eyebrow::before {
  content: "";
  width: 42px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: "";
  width: 42px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* ----- 3. Boutons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 18px 34px;
  cursor: pointer;
  border: 1px solid var(--accent);
  border-radius: 0;
  transition: all 0.4s var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

.btn-text {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink);
  display: inline-flex; align-items: center; gap: 12px;
  padding-bottom: 6px;
  position: relative;
}
.btn-text::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(1); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.btn-text:hover { color: var(--accent); }

/* ----- 4. En-tête / navigation ----- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(250, 246, 238, 0.94);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-light);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  transition: padding 0.4s var(--ease);
}
.site-header.scrolled .nav { padding: 16px 0; }
.logo img {
  height: 34px; width: auto;
  /* le logo fourni est clair (conçu pour fond sombre) :
     on l'assombrit pour le rendre lisible sur fond ivoire */
  filter: brightness(0) saturate(100%);
  opacity: 0.86;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 42px;
  list-style: none;
}
.nav-menu a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.nav-menu a:hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-phone { text-align: right; line-height: 1.35; }
.nav-phone a { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); font-weight: 600; }
.nav-phone .ico { color: var(--accent); }
.nav-phone small { display: block; font-size: 11px; color: var(--text-soft); letter-spacing: 0.03em; font-weight: 400; }
.nav-cta { padding: 13px 26px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span { width: 19px; height: 1.5px; background: var(--ink); transition: 0.3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ----- 5. Hero ----- */
.hero {
  position: relative;
  padding: 210px 0 120px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 72px;
  align-items: center;
}
.hero-title {
  font-size: clamp(2.9rem, 5.6vw, 5rem);
  font-weight: 400;
  line-height: 1.06;
  margin: 30px 0 28px;
  letter-spacing: -0.01em;
}
.hero-title em { color: var(--accent); }
.hero-lead {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 30em;
  margin-bottom: 42px;
}
.hero-actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.hero-media::after {
  content: "";
  position: absolute;
  left: -22px; bottom: -22px;
  width: 60%; height: 62%;
  border: 1px solid var(--accent);
  z-index: -1;
}
.hero-badge {
  position: absolute;
  right: -22px; bottom: 40px;
  background: var(--bg-white);
  border: 1px solid var(--line-light);
  padding: 22px 30px;
  text-align: center;
  box-shadow: 0 24px 50px -28px rgba(44,38,32,0.4);
}
.hero-badge .num { font-family: var(--serif); font-size: 2.6rem; color: var(--accent); line-height: 1; }
.hero-badge small { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-soft); font-weight: 600; }

/* ----- 6. Bandeau valeurs défilantes ----- */
.marquee {
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  padding: 30px 0;
  overflow: hidden;
  background: var(--bg-alt);
}
.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scroll 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.55rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 60px;
  white-space: nowrap;
}
.marquee-item::after { content: "✦"; color: var(--accent); font-size: 0.62rem; font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ----- 7. Sections génériques ----- */
section { position: relative; }
.section { padding: clamp(90px, 11vw, 160px) 0; }
.section-head { max-width: 680px; margin-bottom: 72px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title {
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  font-weight: 400;
  margin: 24px 0 22px;
  line-height: 1.1;
}
.section-title em { color: var(--accent); }
.section-intro { color: var(--text); font-size: 1.12rem; }

/* ----- 8. Services ----- */
#services { background: var(--bg-white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 36px;
}
.service-card {
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  padding-bottom: 8px;
}
.service-card-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 26px;
}
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.service-card:hover .service-card-img img { transform: scale(1.04); }
.service-card-body { display: flex; flex-direction: column; flex: 1; }
.service-card-body h3 { font-size: 1.95rem; margin-bottom: 10px; }
.service-card-body > p { color: var(--text); font-size: 1rem; margin: 6px 0 18px; }
.service-toggle {
  align-self: flex-start;
  background: none; border: none; cursor: pointer;
  font-family: var(--sans);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--accent);
  margin-bottom: 4px;
}
.service-toggle .chev { transition: transform 0.4s var(--ease); }
.service-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* Liste des interventions (accordéon) */
.interventions {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.interventions[data-open="true"] { grid-template-rows: 1fr; }
.interventions-inner { overflow: hidden; }
.interventions ul { list-style: none; padding-top: 10px; }

/* Sous-menu plié : chaque intervention est elle-meme dépliable */
.intervention-item { border-top: 1px solid var(--line-light); }
.intervention-item:first-child { border-top: none; }
.intervention-toggle {
  width: 100%;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0;
  font-family: var(--sans);
  font-size: 0.92rem; font-weight: 600; color: var(--ink);
  text-align: left; line-height: 1.4;
  transition: color 0.3s var(--ease);
}
.intervention-toggle:hover { color: var(--accent); }
.intervention-toggle[aria-expanded="true"] { color: var(--accent); }
.intervention-toggle .chev {
  font-size: 1.05em; flex-shrink: 0;
  transition: transform 0.4s var(--ease);
}
.intervention-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.intervention-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.intervention-body > div { overflow: hidden; }
.intervention-toggle[aria-expanded="true"] + .intervention-body { grid-template-rows: 1fr; }
.intervention-body p { font-size: 0.92rem; color: var(--text); padding: 0 0 16px; margin: 0; line-height: 1.55; }

/* Lien sortant vers Beauvoir Clinic — bouton pillule */
.bv-cta {
  display: block;
  margin-top: 14px;
}
.bv-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.bv-cta a:hover {
  background: var(--accent);
  color: var(--bg-white);
  transform: translateX(2px);
}
/* Mobile : bouton CTA plein largeur, toujours visible */
@media (max-width: 720px) {
  .bv-cta a {
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.35;
    padding: 11px 14px;
    font-size: 0.82rem;
  }
}

/* ----- 9. Le docteur ----- */
.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 80px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-media::after {
  content: "";
  position: absolute;
  right: -20px; top: -20px;
  width: 55%; height: 55%;
  border: 1px solid var(--accent);
  z-index: -1;
}
.about-text p { color: var(--text); margin-bottom: 18px; }
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 46px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}
.timeline .year { font-family: var(--serif); font-size: 2.5rem; color: var(--accent); line-height: 1; }
.timeline small { font-size: 0.86rem; color: var(--text-soft); display: block; margin-top: 6px; }

/* ----- 10. Citation ----- */
.quote-banner {
  padding: clamp(80px, 10vw, 140px) 0;
  text-align: center;
  background: var(--bg-alt);
}
.quote-banner blockquote {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.32;
  max-width: 19em;
  margin: 0 auto 30px;
  color: var(--ink);
}
.quote-banner cite { font-style: normal; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 600; }

/* ----- 11. Valeurs ----- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}
.value-card {
  padding: 46px 40px;
  background: var(--bg);
  transition: background 0.4s var(--ease);
}
.value-card:hover { background: var(--bg-white); }
.value-card .vnum { font-family: var(--serif); font-size: 1.7rem; color: var(--accent); }
.value-card h3 { font-size: 1.7rem; margin: 14px 0 12px; }
.value-card p { color: var(--text); font-size: 1rem; }
.values-philosophy {
  margin-top: 14px;
  padding: clamp(40px, 6vw, 80px);
  background: var(--ink);
  text-align: center;
}
.values-philosophy h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: #f3ece0; margin-bottom: 20px; }
.values-philosophy p { color: rgba(243,236,224,0.74); max-width: 60ch; margin: 0 auto; font-size: 1.05rem; }
.values-philosophy em { color: var(--accent-soft); }

/* ----- 12. Équipe ----- */
#team { background: var(--bg-white); }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 44px; }
.team-card-img { aspect-ratio: 4/5; overflow: hidden; margin-bottom: 22px; }
.team-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.team-card:hover .team-card-img img { transform: scale(1.04); }
.team-card-body h3 { font-size: 1.7rem; margin-bottom: 4px; }
.team-card-body span { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }

/* ----- 13. Lieu de consultation ----- */
.location-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  border: 1px solid var(--line-light);
}
.location-info { padding: clamp(38px, 5vw, 64px); background: var(--bg-alt); }
.location-info h3 { font-size: 2.2rem; margin: 16px 0 20px; }
.location-info address { font-style: normal; color: var(--text); line-height: 2; margin-bottom: 26px; }
.location-info address a { color: var(--ink); }
.location-info a.maplink {
  color: var(--accent); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid var(--accent); padding-bottom: 5px;
}
.location-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(0.35) sepia(0.1); }

/* ----- 14. Contact ----- */
.contact-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 72px; }
.contact-list { list-style: none; }
.contact-list li { padding: 26px 0; border-bottom: 1px solid var(--line-light); }
.contact-list li:first-child { padding-top: 0; }
.contact-list .label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.contact-list .value { font-size: 1.2rem; margin-top: 6px; color: var(--ink); }
.contact-list .value small { display: block; font-size: 0.82rem; color: var(--text-soft); }

.contact-form { background: var(--bg-white); border: 1px solid var(--line-light); padding: clamp(28px, 4vw, 50px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 9px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 16px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color 0.25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.consent { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 28px; font-size: 0.9rem; color: var(--text); }
.consent input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.contact-form .btn-primary { width: 100%; justify-content: center; }
.form-note { font-size: 0.88rem; margin-top: 16px; text-align: center; }
.form-note.ok { color: var(--accent); }

/* ----- 15. Pied de page ----- */
.site-footer { background: var(--ink); color: rgba(243,236,224,0.7); padding: 96px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-brand img { height: 36px; margin-bottom: 22px; opacity: 0.95; }
.footer-brand p { color: rgba(243,236,224,0.6); font-size: 0.98rem; max-width: 26ch; }
.footer-col h4 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 22px; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 13px; }
.footer-col a { color: rgba(243,236,224,0.7); font-size: 0.98rem; transition: color 0.25s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 64px; padding-top: 30px;
  border-top: 1px solid rgba(243,236,224,0.14);
  display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  font-size: 0.85rem; color: rgba(243,236,224,0.5);
}
.footer-bottom nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

/* ----- 16. Animations au scroll ----- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ----- 17. Responsive ----- */
@media (max-width: 1080px) {
  :root { --gutter: 30px; }
  .nav-phone { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .burger { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0; right: 0;
    height: 100vh; width: min(82vw, 360px);
    background: var(--bg);
    border-left: 1px solid var(--line-light);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 40px 44px;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }
  .nav-menu.open { transform: none; box-shadow: -30px 0 60px -30px rgba(44,38,32,0.4); }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 16px 0; font-size: 14px; border-bottom: 1px solid var(--line-light); width: 100%; }
  .nav-cta { display: none; }
  .hero { padding: 150px 0 90px; }
  .hero-grid, .about-grid, .contact-grid, .location-card { grid-template-columns: 1fr; gap: 54px; }
  .hero-media { order: -1; }
  .hero-media::after, .about-media::after { display: none; }
  .hero-badge { right: 16px; }
  .section-head { margin-bottom: 52px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  :root { --gutter: 22px; }
  .services-grid, .values-grid, .team-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer-bottom { flex-direction: column; gap: 14px; }
}

/* ----- 18. Accessibilité : mouvement réduit ----- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
