/* ==========================================================================
   Fiorella Baglio Coaching — Landing styles
   Palette claire & chaleureuse (crème / brun chaud / terracotta & sauge).
   Adapté du système Yaskfit. Zéro dépendance, CSS variables.
   ========================================================================== */

/* ── Design tokens ── */
:root {
  --color-bg: #f3e7dd;
  --color-bg-alt: #ecdcd0;
  --color-bg-card: #fbf3ec;
  --color-text: #2b2420;
  --color-text-muted: #6b5d52;
  --color-text-dim: #a39385;
  --color-accent: #bd7565;
  --color-accent-hover: #a35d4e;
  --color-accent-soft: #d29c8d;
  --color-rose: #cf9a86;
  --color-sage: #9a9a82;
  --color-border: #e2d2c5;
  --color-cross: #c9bcab;
  --color-check: #8a9a7b;
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1100px;
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ── Reset / base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
em { color: var(--color-accent-hover); font-style: italic; }
strong { color: var(--color-text); font-weight: 600; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.accent { color: var(--color-accent); }

/* ── Layout ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: 80px 0; border-top: 1px solid var(--color-border); }
.section__title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .6em; }
.section__lead { font-size: 1.1rem; color: var(--color-text-muted); max-width: 720px; }

/* ── CTA buttons ── */
.cta {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  padding: 18px 32px;
  border-radius: 999px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.cta--primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-rose) 100%);
  color: #fffdfa;
  box-shadow: 0 12px 32px -10px rgba(194,115,74,0.45);
}
.cta--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(194,115,74,0.55); }
.cta--xl { padding: 22px 40px; font-size: 1.1rem; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(18,14,11,0.30) 0%, rgba(18,14,11,0.12) 40%, rgba(18,14,11,0.42) 78%, rgba(18,14,11,0.66) 100%),
    linear-gradient(90deg, rgba(18,14,11,0.42) 0%, rgba(18,14,11,0.05) 55%, rgba(18,14,11,0.20) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 60px; }
.hero__eyebrow {
  display: inline-block;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
  border: 1px solid rgba(217,154,118,0.45);
  background: rgba(194,115,74,0.16);
  backdrop-filter: blur(6px);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero__title { font-size: clamp(2.2rem, 5.4vw, 3.9rem); max-width: 16ch; margin-bottom: .4em; color: #fdfbf8; }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(253,251,248,0.82); max-width: 44ch; margin-bottom: 36px; }
.hero__cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ── Trust bar ── */
.trust-bar {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 44px;
}
.trust-bar li { font-size: .92rem; color: rgba(253,251,248,0.75); }
.trust-bar li strong { display: block; font-size: 1.7rem; color: var(--color-accent-soft); font-weight: 800; line-height: 1; margin-bottom: 4px; }

/* ── PAIN ── */
.pain-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 36px; }
.pain-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.pain-card:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.pain-card__num { font-size: .8rem; font-weight: 700; color: var(--color-accent); letter-spacing: .08em; }
.pain-card h3 { font-size: 1.12rem; margin: 10px 0 8px; }
.pain-card p { color: var(--color-text-muted); margin: 0; font-size: .98rem; }

/* ── INSIGHT ── */
.section--insight { background: var(--color-bg-alt); text-align: center; }
.insight__lead { font-size: 1.2rem; color: var(--color-text); max-width: 640px; margin: 0 auto 28px; }
.insight__list { list-style: none; padding: 0; margin: 0 auto 36px; max-width: 540px; text-align: left; display: grid; gap: 14px; }
.insight__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--color-text-muted); }
.insight__cross { color: var(--color-cross); font-weight: 700; flex: none; }
.insight__verdict { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 700; max-width: 680px; margin: 0 auto; }

/* ── PILLARS ── */
.pillar-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 40px; }
.pillar-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.pillar-card__num {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-rose) 100%);
  color: #fffdfa; font-weight: 800; font-size: 1.2rem;
  margin-bottom: 18px;
}
.pillar-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.pillar-card p { color: var(--color-text-muted); margin: 0; font-size: .98rem; }

/* ── GALLERY ── */
.gallery-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 36px; justify-items: center; }
.gallery-item { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--color-border); max-width: 380px; }
.gallery-item img { display: block; width: 100%; height: auto; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.03); }
@media (min-width: 720px) {
  .gallery-item--wide { max-width: 420px; }
}

/* ── FOUNDER ── */
.section--founder { background: var(--color-bg-alt); }
.founder { display: grid; gap: 32px; align-items: center; }
.founder__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--color-border); }
.founder__label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent); font-weight: 700; margin-bottom: 10px; }
.founder__bio h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.founder__name { font-size: 1.05rem; font-weight: 600; color: var(--color-accent); margin-top: 4px; margin-bottom: 14px; }
.founder__bio p { color: var(--color-text-muted); }
.founder__quote {
  font-style: italic;
  color: var(--color-text);
  border-left: 3px solid var(--color-accent);
  padding-left: 18px;
  margin-top: 24px;
  font-size: 1.08rem;
}
@media (min-width: 820px) {
  .founder { grid-template-columns: 280px 1fr; gap: 56px; }
}

/* ── DIAGNOSTIC INTRO ── */
.diagnostic-intro__what { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; max-width: 620px; }
.diagnostic-intro__what li { display: flex; gap: 12px; align-items: flex-start; color: var(--color-text-muted); }
.diagnostic-intro__what .check { color: var(--color-accent); font-weight: 700; flex: none; }
.diagnostic-intro__time { color: var(--color-text-dim); font-size: .95rem; margin-bottom: 28px; }

/* ── QUALIFY ── */
.qualify-grid { display: grid; gap: 22px; margin-top: 36px; }
.qualify-col {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.qualify-col h3 { font-size: 1.15rem; margin-bottom: 16px; }
.qualify-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.qualify-col li { display: flex; gap: 12px; align-items: flex-start; color: var(--color-text-muted); }
.qualify-col--yes { border-color: rgba(138,154,123,0.5); }
.qualify-col--yes li::before { content: "✓"; color: var(--color-sage); font-weight: 700; flex: none; }
.qualify-col--no li::before { content: "✗"; color: var(--color-cross); font-weight: 700; flex: none; }
@media (min-width: 720px) { .qualify-grid { grid-template-columns: 1fr 1fr; } }

/* ── BOOKING ── */
.section--booking {
  padding: 100px 0;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(194,115,74,0.08) 0%, transparent 70%), var(--color-bg);
}
.section--booking h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.section--booking p { color: var(--color-text-muted); max-width: 540px; margin: 0 auto 32px; }
.booking__guarantee { font-size: .92rem; color: var(--color-text-dim); margin-top: 20px; }

/* ── FAQ ── */
.faq { max-width: 760px; margin: 36px auto 0; }
.faq details {
  border-bottom: 1px solid var(--color-border);
  padding: 6px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  position: relative;
  font-weight: 600;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent);
  font-size: 1.5rem;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--color-text-muted); padding: 0 0 18px; margin: 0; }

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--color-border); padding: 40px 0; background: var(--color-bg-alt); }
.footer__inner { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.footer a { color: var(--color-accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__legal { font-size: .88rem; color: var(--color-text-dim); }
@media (min-width: 720px) {
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   FORM (diagnostic) styles
   ========================================================================== */
.form-page { padding: 40px 0 80px; }
.form-shell { max-width: 720px; margin: 0 auto; }
.form-head { text-align: center; margin-bottom: 32px; }
.form-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.form-head p { color: var(--color-text-muted); }

.progress-bar { height: 8px; background: var(--color-border); border-radius: 999px; overflow: hidden; margin-bottom: 36px; }
.progress-bar__fill {
  height: 100%; width: 10%;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-rose) 100%);
  border-radius: 999px;
  transition: width .3s var(--ease);
}

.form-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.step { display: none; }
.step.is-active { display: block; animation: stepIn .3s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.step h2 { font-size: 1.3rem; margin-bottom: 6px; }
.step__hint { color: var(--color-text-muted); font-size: .96rem; margin-bottom: 24px; }

.field { margin-bottom: 20px; }
.field > label { display: block; font-weight: 600; font-size: .96rem; margin-bottom: 8px; }
.field .opt { color: var(--color-text-dim); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--color-text-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(194,115,74,0.15);
}
.field textarea { min-height: 110px; resize: vertical; }
.field--row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 540px) { .field--row { grid-template-columns: 1fr 1fr; } }

/* Choice cards */
.choices { display: grid; gap: 12px; }
.choices--2 { grid-template-columns: 1fr; }
@media (min-width: 540px) { .choices--2 { grid-template-columns: 1fr 1fr; } }
.choice {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  background: var(--color-bg);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.choice:hover { border-color: var(--color-accent-soft); }
.choice.is-selected { border-color: var(--color-accent); background: rgba(194,115,74,0.08); }
.choice input { width: auto; margin-top: 3px; accent-color: var(--color-accent); flex: none; }
.choice span { font-size: .98rem; }

/* Range */
.range-row { display: flex; align-items: center; gap: 16px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--color-accent); }
.range-row .range-value { color: var(--color-accent); font-size: 1.2rem; font-weight: 700; min-width: 2ch; text-align: center; }

/* Consent */
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--color-text-muted); padding: 4px; border-radius: var(--radius-sm); }
.consent input { width: auto; margin-top: 3px; accent-color: var(--color-accent); flex: none; }

/* Nav buttons */
.form-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; }
.btn {
  font-family: inherit; font-size: 1rem; font-weight: 600;
  border-radius: 999px; padding: 14px 28px; cursor: pointer;
  border: 1px solid var(--color-border); background: transparent; color: var(--color-text);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { border-color: var(--color-accent); }
.btn--primary {
  border: none;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-rose) 100%);
  color: #fffdfa;
}
.btn--primary:hover { transform: translateY(-1px); }
.btn--primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn--ghost { color: var(--color-text-muted); }

.field-error { color: #c0392b; font-size: .88rem; margin-top: 6px; }
.form-error-banner {
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.3);
  color: #c0392b;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: .94rem;
}

/* ==========================================================================
   THANK YOU page styles
   ========================================================================== */
.thanks { max-width: 720px; margin: 0 auto; padding: 80px 22px; text-align: center; }
.thanks__badge {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-rose) 100%);
  color: #fffdfa; font-size: 1.8rem; font-weight: 700;
  margin: 0 auto 24px;
}
.thanks h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.thanks__lead { color: var(--color-text-muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto 32px; }
.thanks__loading { color: var(--color-text-dim); }
.thanks__cta-block {
  background: radial-gradient(ellipse at center, rgba(194,115,74,0.10) 0%, transparent 70%), var(--color-bg-card);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 36px 28px;
  margin-top: 8px;
}
.thanks__cta-block h2 { font-size: 1.5rem; }
.thanks__cta-block p { color: var(--color-text-muted); }
.thanks__verdict {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  margin-bottom: 24px;
}
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
