/* =========================================================
   Florence — Sophrologie · Design system
   Terracotta / argile + bois de rose · serif élégant + sans douce
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Mulish:wght@300;400;500;600;700&display=swap');

:root {
  /* Neutres chauds */
  --bg:        #f7f1e8;   /* fond chaud, blanc cassé */
  --bg-warm:   #efe5d6;   /* panneau sable */
  --paper:     #fdfaf3;   /* carte / surface claire */
  --ink:       #2f2521;   /* presque-noir chaud */
  --ink-soft:  #6f6258;   /* texte secondaire */
  --ink-faint: #9d9082;   /* légendes, méta */
  --line:      #e7dcc9;   /* bordures chaudes */
  --line-soft: #f1e8d9;

  /* Terracotta / argile — couleur primaire (haut de la palette) */
  --terra:       #c4895d;  /* argile chaude (Menorca break) */
  --terra-mid:   #b06f42;  /* terracotta moyen, texte d'accent */
  --terra-deep:  #9a5a31;  /* terracotta profond, boutons / montants */
  --terra-wash:  #f1e0cf;  /* lavis très clair pour panneaux */
  --terra-soft:  #e7cbb1;

  /* Bois de rose / mauve — foncé & accent secondaire (bas de la palette) */
  --rosewood:  #4d3733;   /* bois de rose profond, footer & sections sombres */
  --rose:      #8d5a52;   /* tuile / chili, accent secondaire */
  --rose-soft: #c99d92;

  /* Alias rétro-compat (handoff) */
  --clay:      var(--rose);
  --clay-soft: var(--rose-soft);

  /* Rayons & ombres */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(43,40,30,.04), 0 2px 8px rgba(43,40,30,.04);
  --shadow-md: 0 4px 14px rgba(43,40,30,.06), 0 14px 40px rgba(43,40,30,.07);
  --shadow-lg: 0 10px 30px rgba(43,40,30,.08), 0 30px 80px rgba(43,40,30,.10);

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Mulish', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--terra); color: #fff; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; color: var(--ink); }
.display { font-size: clamp(2.8rem, 6.4vw, 5.2rem); font-weight: 500; line-height: 1.02; }
.h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--ink-soft); line-height: 1.7; }
em, .italic { font-style: italic; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terra-mid);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--terra);
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 26px; height: 1px;
  background: var(--terra);
  display: inline-block;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1340px; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-tight { padding-block: clamp(48px, 6vw, 88px); }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.6em;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), background-color .25s, color .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terra-deep); color: #fdf7f0; box-shadow: 0 6px 18px rgba(154,90,49,.24); }
.btn-primary:hover { background: #854b27; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(154,90,49,.30); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.btn-ghost { color: var(--terra-deep); padding-inline: .4em; }
.btn-ghost:hover { color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 1em 2em; font-size: 1rem; }
.arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Placeholder image ---------- */
.ph {
  position: relative;
  background-color: var(--terra-wash);
  background-image: repeating-linear-gradient(135deg,
      rgba(113,129,95,.10) 0 2px, transparent 2px 11px);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  overflow: hidden;
  color: var(--terra-mid);
}
.ph::after {
  content: attr(data-label);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--terra-mid);
  background: rgba(253,251,246,.78);
  padding: .45em .8em;
  border-radius: var(--r-pill);
  text-align: center;
  max-width: 80%;
  backdrop-filter: blur(2px);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 94%, transparent); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; min-height: 78px;
}
.brand { display: inline-flex; align-items: baseline; gap: .5rem; line-height: 1; }
.brand-mark {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 600; letter-spacing: .01em; color: var(--ink);
}
.brand-sub {
  font-family: var(--sans); font-size: .62rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--terra-mid);
}
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.4rem); }
.nav-link {
  font-size: .95rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding-block: .3em; transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 100%;
  background: var(--terra-deep); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: .9rem; }
.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 22px; height: 1.6px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 78px 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 1rem var(--gutter) 2rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s cubic-bezier(.2,.7,.3,1), opacity .3s;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .nav-link { width: 100%; padding-block: .9rem; border-bottom: 1px solid var(--line-soft); font-size: 1.1rem; }
  .nav-link::after { display: none; }
  .nav-menu .nav-cta { margin-top: 1.2rem; width: 100%; }
  .nav-menu .nav-cta .btn { width: 100%; }
}
.nav-menu { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.4rem); }
@media (min-width: 961px) { .nav-cta-mobile { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--rosewood); color: #d9dcd2; padding-block: clamp(56px, 7vw, 96px) 2rem; }
.site-footer a { color: #c8ccc0; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: clamp(2rem, 4vw, 4rem); padding-bottom: 3.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-mark { color: #fdfbf6; }
.footer-brand .brand-sub { color: var(--terra); }
.footer-col h4 { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--terra); margin-bottom: 1.1rem; }
.footer-col li { margin-bottom: .7rem; font-size: .95rem; }
.footer-note { color: #9aa093; font-size: .92rem; line-height: 1.7; max-width: 34ch; margin-top: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: #9aa093; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-form { display: flex; gap: .5rem; margin-top: 1rem; max-width: 340px; }
.footer-form input {
  flex: 1; min-width: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-pill); padding: .7em 1.1em; color: #fff; font-size: .9rem;
}
.footer-form input::placeholder { color: #8e9488; }
.footer-form input:focus { outline: none; border-color: var(--terra); }
.footer-form button { background: var(--terra); color: var(--rosewood); border-radius: var(--r-pill); padding: .7em 1.2em; font-weight: 700; font-size: .85rem; white-space: nowrap; transition: background .2s; }
.footer-form button:hover { background: #d3a47b; }

/* ---------- Pills / chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .5em 1em; border-radius: var(--r-pill);
  background: var(--paper); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 500; color: var(--ink-soft);
}

/* ---------- Reveal animation ----------
   État VISIBLE par défaut ; masqué uniquement si le JS est confirmé actif
   (html.js). Garantit que le contenu ne reste jamais invisible. */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1 !important; transform: none !important; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Cartes génériques ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
