/* ==========================================================
   L'Habitué — feuille de style
   Mobile-first. Vert sauge #46705A + doré #C8A24B sur crème.
   ========================================================== */

@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/dmsans.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --vert:        #46705A;
  --vert-fonce:  #2E4C3C;
  --vert-clair:  #6E9781;
  --dore:        #C8A24B;
  --dore-clair:  #E3C983;
  --creme:       #FAF7F1;
  --creme-2:     #F2EDE3;
  --encre:       #1C2420;
  --encre-doux:  #55605A;
  --blanc:       #FFFFFF;
  --bord:        rgba(28, 36, 32, .12);

  --r:      14px;
  --r-lg:   22px;
  --ease:   cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--encre);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 7.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 5.5vw, 2.6rem); margin-bottom: 1.2em; }
h3 { font-size: 1.24rem; margin-bottom: .5em; }
h1 em { font-style: italic; color: var(--vert); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ── Structure ─────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 22px;
}
.wrap-narrow { max-width: 680px; }
.center { text-align: center; }

.section { padding: 72px 0; }
.section-cream { background: var(--creme); }
.section-dark  { background: var(--vert-fonce); color: var(--creme); }
.section-dark h2, .section-dark h3 { color: var(--blanc); }
.section-dark .lead { color: rgba(250, 247, 241, .82); }

@media (min-width: 800px) {
  .section { padding: 104px 0; }
}

/* ── En-tête ───────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bord);
}
.brand img { width: 128px; height: auto; }
@media (min-width: 800px) { .brand img { width: 160px; } }

/* ── Boutons ───────────────────────────────────────────── */
/* Règle Mint : un <a> stylé en bouton ne doit JAMAIS hériter du bleu du navigateur. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 15px 26px;
  border: 2px solid transparent;
  border-radius: 100px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-lg { padding: 18px 34px; font-size: 1.08rem; }

.btn-primary,
.btn-primary:link,
.btn-primary:visited {
  background: var(--vert);
  color: var(--blanc);
  box-shadow: 0 6px 20px -8px rgba(70, 112, 90, .7);
}
.btn-primary:hover {
  background: var(--vert-fonce);
  box-shadow: 0 10px 28px -8px rgba(70, 112, 90, .8);
  transform: translateY(-2px);
}

.btn-ghost,
.btn-ghost:link,
.btn-ghost:visited {
  background: transparent;
  color: var(--vert-fonce);
  border-color: var(--vert);
}
.btn-ghost:hover { background: var(--vert); color: var(--blanc); }

.section-dark .btn-ghost,
.section-dark .btn-ghost:link,
.section-dark .btn-ghost:visited {
  color: var(--creme);
  border-color: var(--dore);
}
.section-dark .btn-ghost:hover { background: var(--dore); color: var(--encre); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.cta-row-center { justify-content: center; }

/* ── Héros ─────────────────────────────────────────────── */

.hero {
  padding: 60px 0 76px;
  background:
    radial-gradient(ellipse 90% 70% at 12% -10%, rgba(200, 162, 75, .16), transparent 62%),
    radial-gradient(ellipse 80% 60% at 92% 8%, rgba(70, 112, 90, .14), transparent 60%),
    var(--creme);
}
@media (min-width: 800px) { .hero { padding: 96px 0 116px; } }

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 7px 15px;
  border-radius: 100px;
  background: rgba(70, 112, 90, .1);
  color: var(--vert-fonce);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lead {
  max-width: 620px;
  font-size: clamp(1.08rem, 2.4vw, 1.28rem);
  color: var(--encre-doux);
  line-height: 1.6;
}
.center .lead { margin-inline: auto; }

.hero-note {
  margin-top: 20px;
  font-size: .92rem;
  color: var(--encre-doux);
}
.section-dark .hero-note { color: rgba(250, 247, 241, .62); }

/* ── Chiffres ──────────────────────────────────────────── */

.stats {
  display: grid;
  gap: 20px;
  margin-bottom: 56px;
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 26px; } }

.stat {
  padding: 30px 26px;
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--r-lg);
}
.stat-num {
  display: block;
  margin-bottom: .35em;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--vert);
  font-variant-numeric: tabular-nums;
}
.stat p { font-size: .98rem; color: var(--encre-doux); margin-bottom: .8em; }
.stat strong { color: var(--encre); }
.stat cite {
  font-size: .78rem;
  font-style: normal;
  color: rgba(85, 96, 90, .72);
}

.pullquote {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px 24px;
  border-left: 3px solid var(--dore);
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--vert-fonce);
  text-wrap: balance;
}

/* ── Cartes bénéfices ──────────────────────────────────── */

.cards { display: grid; gap: 20px; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 26px; } }

.card {
  padding: 32px 28px;
  background: var(--creme);
  border-radius: var(--r-lg);
  border: 1px solid var(--bord);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -20px rgba(28, 36, 32, .4);
}
.card-ico { display: block; margin-bottom: 16px; font-size: 2rem; line-height: 1; }
.card p { font-size: .99rem; color: var(--encre-doux); margin: 0; }
.card strong { color: var(--encre); }

/* ── Étapes ────────────────────────────────────────────── */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 34px;
  counter-reset: step;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.steps li { display: flex; gap: 18px; align-items: flex-start; }
@media (min-width: 900px) { .steps li { flex-direction: column; gap: 16px; } }

.step-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--dore);
  color: var(--encre);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
}
.steps p {
  margin: 0;
  font-size: .99rem;
  color: rgba(250, 247, 241, .78);
}
.steps strong { color: var(--blanc); }
.steps em { color: var(--dore-clair); font-style: italic; }

/* ── Tarifs ────────────────────────────────────────────── */

.pricing { display: grid; gap: 22px; }
@media (min-width: 820px) { .pricing { grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; } }

.price-block {
  padding: 34px 30px;
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--r-lg);
}
.price-block-main {
  background: var(--creme);
  border: 2px solid var(--vert);
  box-shadow: 0 20px 50px -30px rgba(70, 112, 90, .8);
}
.price-label {
  margin-bottom: .3em;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--vert);
}
.price {
  margin: 0 0 .1em;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--encre);
  font-variant-numeric: tabular-nums;
}
.price span { font-size: 3.2rem; line-height: 1; }
.price small { font-size: 1.05rem; font-weight: 400; color: var(--encre-doux); }
.price-sub { font-size: .9rem; color: var(--encre-doux); margin-bottom: 1.4em; }

.price-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.price-block li {
  position: relative;
  padding-left: 28px;
  font-size: .98rem;
  color: var(--encre-doux);
}
.price-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--dore);
  border-bottom: 2.5px solid var(--dore);
  transform: rotate(-45deg);
}

.price-compare {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 22px 26px;
  background: var(--creme-2);
  border-radius: var(--r);
  font-size: .98rem;
  color: var(--encre-doux);
  text-align: center;
}
.price-compare strong { color: var(--encre); }

/* ── Pied de page ──────────────────────────────────────── */

.site-footer {
  padding: 52px 0 60px;
  background: var(--encre);
  color: rgba(250, 247, 241, .7);
  font-size: .93rem;
  text-align: center;
}
.footer-logo { margin: 0 auto 20px; opacity: .9; }
.site-footer p { margin-bottom: .8em; }
.footer-legal a { color: var(--dore-clair); text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }

.footer-parent {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(250, 247, 241, .14);
  font-size: .85rem;
  color: rgba(250, 247, 241, .5);
}
.footer-parent strong { color: rgba(250, 247, 241, .78); font-weight: 500; }

/* ── Apparition au défilement ──────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
