/* ============================================================
   Florence Renou — Thérapeute & psycho-praticienne
   Système visuel partagé
   ============================================================ */

:root {
  /* Charte fournie */
  --amande: #DDE7DF;
  --sauge: #A9B8AD;
  --blanc: #F7F6F3;
  --taupe: #6B6F6A;
  /* Ajouts pour profondeur */
  --taupe-deep: #3F4540;
  --sauge-deep: #5C6B5E;
  --amande-light: #EAF0EB;
  --amande-dark: #C8D6CB;
  /* Accent rose/terracotta de la carte de visite */
  --rose: #C9A39A;
  --rose-deep: #B08577;

  /* Palette active (par défaut : équilibre) */
  --bg: var(--blanc);
  --surface: #FFFEFB;
  --surface-2: var(--amande-light);
  --ink: var(--taupe-deep);
  --ink-soft: var(--taupe);
  --accent: var(--sauge-deep);
  --accent-soft: var(--sauge);
  --line: rgba(63, 69, 64, 0.12);

  /* Typo */
  --serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --warm: 'Nunito', 'Raleway', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Rythme */
  --radius: 2px;
  --radius-soft: 14px;
  --shadow-soft: 0 1px 2px rgba(63, 69, 64, 0.04), 0 20px 40px -24px rgba(63, 69, 64, 0.12);
}

/* Palettes alternatives (via Tweaks) */
body[data-palette="sauge"] {
  --bg: #EEF1EC;
  --surface: var(--amande-light);
  --surface-2: var(--amande);
  --accent: var(--sauge-deep);
  --accent-soft: var(--sauge);
}
body[data-palette="amande"] {
  --bg: var(--amande-light);
  --surface: var(--blanc);
  --surface-2: var(--amande);
  --accent: var(--sauge-deep);
  --accent-soft: var(--sauge);
}
body[data-palette="neutre"] {
  --bg: #FBFAF6;
  --surface: #FFFFFF;
  --surface-2: #F2F0EA;
  --accent: var(--taupe-deep);
  --accent-soft: var(--taupe);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.wrap-tight {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}

/* === Nav === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1280px;
  margin: 0 auto;
  transition: padding .35s ease;
}
.nav.scrolled .nav-inner { padding: 12px 32px; }
.nav.scrolled .brand-logo { height: 44px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}
.brand-text {
  display: none;
}
.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14px;
  letter-spacing: 0;
  font-family: var(--serif);
  font-weight: 400;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 2px;
  position: relative;
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--sauge-deep);
  color: var(--blanc);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  transition: background .25s ease, color .25s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--blanc); }

.menu-btn { display: none; background: none; border: 0; padding: 8px; color: var(--ink); }

@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
}

/* === Mobile drawer === */
.drawer {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 50;
  transform: translateY(-110%);
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
  padding: 80px 32px 32px;
  overflow-y: auto;
  height: 100vh;
}
.drawer.open { transform: translateY(0); }
.drawer-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: 0; padding: 10px;
  color: var(--ink);
}
.drawer nav { display: flex; flex-direction: column; gap: 6px; }
.drawer nav a {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  text-decoration: none;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  transition: transform .2s ease, background .25s ease, color .25s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-arrow::after {
  content: "→";
  transition: transform .25s ease;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* === Footer === */
.footer {
  margin-top: 120px;
  padding: 0;
  border-top: 0;
  background: var(--surface);
}
.footer-sauge {
  background: #C7D3C7;
  color: var(--ink);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 32px 50px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-grid-new {
  grid-template-columns: 1.1fr 1fr 1fr 1.1fr;
  align-items: start;
}
@media (max-width: 860px) {
  .footer-inner, .footer-grid-new { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-inner, .footer-grid-new { grid-template-columns: 1fr; }
}
.footer-col-logo { display: flex; align-items: flex-start; }
.footer-logo {
  width: 96px;
  height: auto;
  display: block;
}
.footer h5 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 18px;
}
.footer a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  font-size: 15px;
  font-family: var(--serif);
  font-weight: 300;
}
.footer a:hover { color: var(--sauge-deep); }
.footer-col-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.footer-col-cta .btn-pill {
  width: auto;
  min-width: 200px;
}
.btn-pill-dark {
  background: var(--ink);
  color: var(--blanc);
  border: 0;
  padding: 12px 24px;
  font-size: 13.5px;
}
.btn-pill-dark:hover { background: var(--sauge-deep); }
.footer-bottom-new {
  background: #B5C5B6;
  text-align: center;
  padding: 14px 32px;
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-bottom-new .heart { display: inline-block; }
.footer-brand-mark {
  font-family: var(--serif, "Playfair Display", serif);
  font-size: 14px;
  line-height: 1.7;
  color: #2A2E2A;
  letter-spacing: 0.01em;
}
.footer-brand-mark em {
  font-style: italic;
  font-weight: 500;
  color: #1F2620;
  letter-spacing: 0.02em;
}
.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  text-decoration: none;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(63, 69, 64, 0.18);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(63, 69, 64, 0.4);
  transform: translateY(-1px);
}
.footer-social svg { flex-shrink: 0; }

/* === Legal modal === */
.legal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(63, 69, 64, 0.55);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: legalFadeIn .25s ease;
}
@keyframes legalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.legal-modal {
  position: relative;
  background: var(--bg);
  max-width: 720px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 56px 56px 48px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.25);
  animation: legalSlideIn .35s cubic-bezier(.2,.7,.2,1);
}
@keyframes legalSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
  .legal-modal { padding: 40px 24px 32px; }
}
.legal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.legal-close:hover { background: var(--ink); color: var(--bg); }
.legal-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.legal-block { margin-bottom: 28px; }
.legal-block h3 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}
.legal-block p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}

/* === Placeholder visuel (photo à venir) === */
.ph {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  background-image:
    repeating-linear-gradient(
      135deg,
      transparent 0 18px,
      color-mix(in oklab, var(--accent-soft) 22%, transparent) 18px 19px
    );
  color: var(--ink-soft);
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--ink-soft);
  padding: 12px;
  text-align: center;
  background: color-mix(in oklab, var(--surface-2) 70%, transparent);
}

/* Real images that slot into .ph positions */
img.real {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
img.hero-douce-photo.real { position: absolute; inset: 0; }
img.hero-douce-small.real {
  position: absolute;
  bottom: -40px; right: -30px;
  width: 180px;
  aspect-ratio: 3/4;
  height: auto;
  border: 8px solid var(--bg);
  z-index: 2;
}
img.hero-ed-photo.real, img.hero-mo-photo-wide.real, img.fs-photo.real,
img.about-photo.real, img.about-hero-photo.real { display: block; }

/* === Fade-in au scroll === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1);
  will-change: transform, opacity;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal-word.in { opacity: 1; transform: none; }

/* === Section générique === */
.section { padding: 100px 0; }
.section-tight { padding: 64px 0; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
}

/* === Tweaks panel === */
.tweaks {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 18px 20px;
  width: 280px;
  z-index: 60;
  font-family: var(--sans);
  font-size: 13px;
  display: none;
}
.tweaks.visible { display: block; }
.tweaks h6 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tweak-row { margin-bottom: 14px; }
.tweak-label {
  display: block;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.tweak-row select, .tweak-row input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
}
.tweak-toggles {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tweak-toggles button {
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  transition: all .2s;
}
.tweak-toggles button.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.tweak-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink);
}

/* === Scroll bar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: var(--sauge); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
