/* ============================================================
   Marie Preto — Psychanalyste · Psychothérapeute à Bois-Colombes
   Feuille de style principale
   ============================================================ */

/* ---------- Polices auto-hébergées ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --cream: #faf7f1;
  --cream-deep: #f1ece2;
  --white: #ffffff;
  --ink: #25302b;
  --ink-soft: #5a655e;
  --green: #3d5a4c;
  --green-deep: #2c443a;
  --green-tint: #e7eee9;
  --clay: #c2724e;
  --clay-deep: #a85d3b;
  --line: #e4ddd0;
  --shadow-sm: 0 1px 2px rgba(37, 48, 43, .06), 0 4px 14px rgba(37, 48, 43, .05);
  --shadow-md: 0 10px 40px rgba(37, 48, 43, .10);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--green); text-decoration-color: rgba(61, 90, 76, .35); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; line-height: 1.12; color: var(--ink); letter-spacing: -.01em; }
address { font-style: normal; }

/* ---------- Accessibilité ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--green); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-alt { background: var(--cream-deep); }
.narrow { max-width: 800px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 100px; cursor: pointer;
  text-decoration: none; border: 1.5px solid transparent; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-deep); color: #fff; box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn.full { width: 100%; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 241, .85); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--green); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 560; font-size: 1.18rem; }
.brand-role { font-size: .76rem; color: var(--ink-soft); letter-spacing: .02em; }

.main-nav { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: .35rem; padding: 0; }
.nav-menu a { text-decoration: none; color: var(--ink); font-size: .94rem; font-weight: 500; padding: .55rem .6rem; border-radius: 8px; white-space: nowrap; }
.nav-menu a:not(.btn):hover { background: var(--green-tint); color: var(--green-deep); }
.nav-cta { margin-left: .4rem; }
.nav-cta a { padding: .65rem 1.15rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 6rem); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob-1 { width: 460px; height: 460px; background: var(--green-tint); top: -120px; right: -80px; }
.blob-2 { width: 380px; height: 380px; background: #f3e2d6; bottom: -140px; left: -100px; opacity: .7; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green-deep); background: var(--green-tint); padding: .4rem .85rem; border-radius: 100px; margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); margin-bottom: 1.2rem; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 46ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.hero-facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; }
.hero-facts li { font-size: .92rem; color: var(--ink-soft); }
.hero-facts strong { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); font-weight: 560; }

.hero-portrait { position: relative; justify-self: center; }
.portrait-placeholder, .hero-portrait img {
  width: clamp(240px, 30vw, 360px); aspect-ratio: 4 / 5; border-radius: 200px 200px 24px 24px;
  object-fit: cover; box-shadow: var(--shadow-md);
}
.portrait-placeholder {
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--green) 0%, var(--green-deep) 100%);
}
.portrait-mark { font-family: var(--serif); font-size: 5rem; color: rgba(255,255,255,.92); font-weight: 500; }
.portrait-badge {
  position: absolute; bottom: 18px; left: -18px; background: var(--white); padding: .7rem 1.1rem; border-radius: 14px;
  box-shadow: var(--shadow-md); font-family: var(--serif); font-weight: 560; font-size: 1.05rem; display: flex; flex-direction: column;
}
.portrait-badge small { font-family: var(--sans); font-weight: 500; font-size: .72rem; color: var(--ink-soft); }

/* ---------- En-têtes de section ---------- */
.section-head { max-width: 60ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); margin-bottom: .7rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: .8rem; }
.section-intro { color: var(--ink-soft); font-size: 1.08rem; }
.section-head.center .section-intro { margin-inline: auto; max-width: 56ch; }

/* ---------- Prose / À propos ---------- */
.prose p { margin-bottom: 1.1rem; color: var(--ink-soft); }
.prose p strong { color: var(--ink); }
.diplomas { list-style: none; padding: 0; margin-top: 1.8rem; display: grid; gap: .8rem; }
.diplomas li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; font-size: .96rem; box-shadow: var(--shadow-sm);
}
.diploma-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--green-deep); background: var(--green-tint); padding: .25rem .6rem; border-radius: 6px; margin-right: .6rem;
}

/* ---------- Cartes (pourquoi consulter) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.2rem; margin-top: 3rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--green-tint); color: var(--green-deep); font-size: 1.4rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { font-size: .95rem; color: var(--ink-soft); }

/* ---------- Approches ---------- */
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.approach { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm); }
.approach h3 { font-size: 1.45rem; margin-bottom: .8rem; }
.approach > p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.ticks { list-style: none; padding: 0; display: grid; gap: .5rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: .95rem; color: var(--ink); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- Étapes ---------- */
.steps { margin-top: 3.5rem; }
.steps-title { text-align: center; font-size: 1.4rem; margin-bottom: 2rem; }
.step-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step-list li { display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--clay); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.2rem;
}
.step-list strong { display: block; margin-bottom: .25rem; }
.step-list p { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Tarifs ---------- */
.price-card {
  background: var(--green); color: #fff; border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-md); align-self: stretch;
}
.price-range { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1; }
.price-range span { color: #fff; }
.price-note { color: rgba(255,255,255,.75); margin-bottom: 1.5rem; }
.price-card .ticks { margin-bottom: 1.8rem; }
.price-card .ticks li { color: rgba(255,255,255,.92); }
.price-card .ticks li::before { color: #fff; }

/* ---------- Cabinet / Carte ---------- */
.cabinet-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 3rem; align-items: stretch; }
.cabinet-info { display: grid; gap: 1.6rem; align-content: start; }
.info-block h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.info-block address { color: var(--ink-soft); }
.access-list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.access-list li { font-size: .94rem; color: var(--ink-soft); padding-left: 1.1rem; position: relative; }
.access-list li::before { content: "·"; position: absolute; left: 0; color: var(--clay); font-weight: 700; }
.zones { color: var(--ink-soft); font-size: .96rem; }
.link-arrow { display: inline-block; margin-top: .6rem; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

.map-wrap { margin: 0; }
#map {
  width: 100%; height: 100%; min-height: 380px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--green-tint);
  position: relative;
}
.map-consent {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem;
  background: linear-gradient(160deg, var(--green-tint), #eef2ec); color: var(--green-deep); text-align: center;
}
.map-consent:hover { background: linear-gradient(160deg, #dde7e0, #e6ebe4); }
.map-consent-icon { font-size: 2.5rem; line-height: 1; }
.map-consent-text strong { display: block; font-size: 1.05rem; margin-bottom: .35rem; }
.map-consent-text small { display: block; max-width: 38ch; font-size: .8rem; color: var(--ink-soft); line-height: 1.45; }
figcaption { margin-top: .7rem; font-size: .85rem; color: var(--ink-soft); text-align: center; }
.leaflet-container { font-family: var(--sans); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; margin-top: 2.5rem; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 1.15rem 1.4rem; font-weight: 600; font-size: 1.02rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.5rem; color: var(--clay); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); }

/* ---------- CTA contact ---------- */
.contact-cta { padding-block: clamp(3rem, 6vw, 5rem); }
.cta-box {
  background: linear-gradient(150deg, var(--green) 0%, var(--green-deep) 100%); color: #fff;
  border-radius: 26px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.3fr .9fr;
  gap: 2rem; align-items: center; box-shadow: var(--shadow-md);
}
.cta-box h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: .7rem; }
.cta-box p { color: rgba(255,255,255,.85); }
.cta-actions { display: flex; flex-direction: column; gap: .8rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding-top: 3.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: .8rem; font-family: var(--sans); font-weight: 600; }
.footer-col address, .footer-col p { font-size: .92rem; margin-bottom: .35rem; }
.footer-col a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col .brand-mark { margin-bottom: .8rem; }
.footer-name { font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.footer-role { font-size: .85rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.4rem; }
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.55); }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; }
  .cabinet-grid { grid-template-columns: 1fr; }
  #map { min-height: 320px; }
}
@media (max-width: 880px) {
  html { scroll-padding-top: 70px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: .5rem 1.2rem 1.2rem;
    box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform .3s ease; max-height: calc(100dvh - 70px); overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu a { padding: .9rem .5rem; border-radius: 8px; font-size: 1rem; }
  .nav-cta { margin: .6rem 0 0; }
  .nav-cta a { display: block; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid-2 { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .step-list { grid-template-columns: 1fr; }
  .cta-box { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .brand-role { display: none; }
  .portrait-badge { left: 50%; transform: translateX(-50%); bottom: -14px; }
}

/* ---------- Préférences utilisateur ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
@media print {
  .site-header, .nav-toggle, .hero-actions, .map-consent, .contact-cta, .btn { display: none !important; }
}
