/* =========================================================
   IFMA — L'Hortus · page de vente
   Direction (d'après academieamb.vercel.app) : éditorial doux
   et féminin. Titres serif (Cormorant Garamond), texte DM Sans.
   Palette bordeaux + rose, coins arrondis, boutons pilule à
   dégradé rose, encadrés roses, photos arrondies.
   ========================================================= */

:root {
  /* — Palette — */
  --paper:       #FAF7F2;  /* fond crème chaud            */
  --paper-tint:  #FBEFF2;  /* sections alternées, rosé    */
  --card:        #FFFFFF;
  --ink:         #1A1614;  /* encre brun-noir             */
  --muted:       #5C4F47;  /* texte secondaire            */
  --muted-2:     #9E8E84;
  --line:        #ECE4DB;
  --line-2:      #E4DDD4;

  --burgundy:    #72243E;  /* bordeaux principal          */
  --burgundy-2:  #8B2D4A;
  --rose:        #D4537E;  /* rose vif (boutons/accents)  */
  --rose-dark:   #BF3D68;
  --pink:        #F5D5E5;  /* rose poudré (encadrés)      */
  --pink-2:      #FBEAF0;
  --pink-3:      #FFD9E7;
  --highlight:   #F7D3E4;  /* surligneur rose             */

  /* — Forme — (doux : coins arrondis) */
  --radius:    16px;
  --radius-sm: 12px;
  --pill:      999px;
  --shadow:      0 6px 26px rgba(114, 36, 62, 0.08);
  --shadow-soft: 0 2px 10px rgba(114, 36, 62, 0.06);
  --shadow-rose: 0 10px 30px rgba(212, 83, 126, 0.30);

  /* — Rythme — */
  --shell: 62rem;
  --measure: 38rem;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --gap-section: clamp(3.75rem, 8vw, 6.5rem);

  /* — Typo — */
  --title: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body:  "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.0625rem, 0.4vw + 0.97rem, 1.15rem);
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, dt, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
strong { font-weight: 500; }

/* ---------- Conteneurs ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.measure { max-width: var(--measure); }

/* ---------- Surlignage rose ---------- */
mark.hl {
  background: linear-gradient(
    to bottom,
    transparent 10%,
    var(--highlight) 10%,
    var(--highlight) 92%,
    transparent 92%
  );
  color: inherit;
  padding: 0 0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Titres serif ---------- */
.title {
  font-family: var(--title);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.title em { font-style: italic; color: var(--burgundy); }

.h2 {
  font-size: clamp(2rem, 3.4vw + 0.8rem, 3rem);
  line-height: 1.08;
  margin-bottom: 1.6rem;
  max-width: 20ch;
  text-wrap: balance;
}

/* ---------- Labels de section ---------- */
.kicker {
  font-family: var(--body);
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rose-dark);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.kicker::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--rose);
}
.kicker--center { justify-content: center; }

/* ---------- Pastille (eyebrow) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--burgundy);
  background: rgba(212, 83, 126, 0.07);
  border: 1px solid var(--pink);
  border-radius: var(--pill);
  padding: 0.55em 1.1em;
}

/* ---------- Texte courant ---------- */
.prose { margin-bottom: 1.05rem; color: var(--ink); }
.prose:last-child { margin-bottom: 0; }
.prose--big { font-size: 1.24rem; font-family: var(--title); line-height: 1.4; color: var(--ink); }
.prose--label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  margin-top: 1.7rem;
}

/* Phrase-clé serif */
.callout {
  font-family: var(--title);
  font-weight: 500;
  font-size: clamp(1.4rem, 1.6vw + 1rem, 1.85rem);
  line-height: 1.32;
  color: var(--ink);
}

/* Encadré « note » (fond rosé, filet bordeaux) */
.note {
  background: var(--pink-2);
  border: 1px solid var(--pink);
  border-left: 3px solid var(--burgundy);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.5rem;
}
.note__label {
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--rose-dark);
  margin-bottom: 0.5rem;
}
.note p { margin: 0; font-family: var(--title); font-size: 1.3rem; line-height: 1.35; }

/* =========================================================
   Bandeau & en-tête
   ========================================================= */
.topbar {
  background: var(--burgundy);
  color: #F6E6EC;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.6rem 1rem;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}
.site-header__spacer { display: block; }
.brand {
  justify-self: center;
  text-decoration: none;
  display: grid;
  justify-items: center;
  line-height: 1.05;
}
.brand__name { font-family: var(--title); font-weight: 600; font-size: 1.5rem; color: var(--burgundy); }
.brand__sub {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--muted-2);
}
.site-header .btn { justify-self: end; }

/* =========================================================
   Boutons (pilule à dégradé rose)
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: #fff;
  text-decoration: none;
  font-family: var(--body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.005em;
  padding: 1.05em 1.7em;
  border-radius: var(--pill);
  border: 0;
  box-shadow: var(--shadow-rose);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn span { transition: transform 0.18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(212, 83, 126, 0.40); filter: brightness(1.03); }
.btn:hover span { transform: translateX(3px); }
.btn:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.btn--sm { padding: 0.7em 1.2em; font-size: 0.85rem; box-shadow: var(--shadow-soft); }
.btn--lg { font-size: 1.05rem; padding: 1.15em 2.1em; }

/* =========================================================
   Sections
   ========================================================= */
.section { padding-block: var(--gap-section); }
.section--tint { background: var(--paper-tint); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #FCE7EF 0%, #FBEAF0 22%, var(--paper) 72%);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  text-align: center;
}
.hero__inner { display: grid; justify-items: center; }
.hero .pill { margin-bottom: 1.6rem; }
.hero__title {
  font-size: clamp(2.7rem, 6.5vw + 0.4rem, 5rem);
  line-height: 1.04;
  margin-bottom: 1.5rem;
  max-width: 16ch;
  text-wrap: balance;
}
.lead {
  font-size: clamp(1.15rem, 1vw + 1rem, 1.4rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 2.1rem;
}
.hero__actions { margin-bottom: 2.6rem; }

/* ---------- Photos ---------- */
.photo { width: 100%; }
.photo__ph {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 120% at 30% 20%, #FCE7EF 0%, #F3D9E2 55%, #EAD7CE 100%);
  border: 1px solid var(--pink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--burgundy);
  font-family: var(--body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.hero__photo { max-width: 44rem; }
.photo__ph--portrait { aspect-ratio: 4 / 5; }

/* ---------- Citations (cartes) ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.quote-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2.6rem 1.6rem 1.5rem;
  font-size: 1.05rem;
  line-height: 1.5;
}
.quote-card__mark {
  position: absolute;
  top: 0.7rem;
  left: 1.5rem;
  font-family: var(--title);
  font-size: 3rem;
  line-height: 1;
  color: var(--rose);
  opacity: 0.55;
}

/* ---------- Oppositions (vrai vs faux) ---------- */
.vs-list {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}
.vs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  align-items: baseline;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.vs:last-child { border-bottom: 0; }
.vs::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--rose);
  flex: none;
  transform: translateY(-0.1em);
}
.vs__keep { font-weight: 500; }
.vs__drop { color: var(--muted-2); }

/* ---------- Parcours / fondatrice ---------- */
.founder {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.portrait { position: sticky; top: 7rem; }
.portrait__facts { margin-top: 1.1rem; display: grid; gap: 0.55rem; }
.portrait__facts li {
  font-size: 0.92rem;
  color: var(--muted);
  padding-left: 0.9rem;
  border-left: 2px solid var(--rose);
  line-height: 1.35;
}
.portrait__facts strong { color: var(--burgundy); font-weight: 500; }

/* ---------- Piliers (cartes numérotées) ---------- */
.pillars { display: grid; gap: 0.9rem; margin-top: 2.4rem; }
.pillar-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 1.7rem);
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.3rem, 3vw, 1.9rem);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pillar-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pillar-card__num {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  font-family: var(--title);
  font-weight: 600;
  font-size: 1.3rem;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  border-radius: 50%;
}
.pillar-card__title {
  font-family: var(--title);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 0.45rem;
  color: var(--ink);
}
.pillar-card__text { color: var(--muted); }
.pillar-card--key {
  background: var(--pink-2);
  border-color: var(--pink);
}

/* ---------- Réalité (3 cartes) ---------- */
.reality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.4rem 0;
}
.reality-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 1.5rem;
}
.reality-card__no {
  font-family: var(--title);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--rose);
}
.reality-card__title {
  font-family: var(--title);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0.3rem 0 0.6rem;
  color: var(--ink);
}
.reality-card__text { color: var(--muted); font-size: 0.98rem; line-height: 1.55; }

/* ---------- Pour qui (panneaux) ---------- */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.4rem;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: var(--card);
}
.panel--yes { background: var(--pink-2); border-color: var(--pink); }
.panel__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--title);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  padding-bottom: 1.1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line-2);
}
.panel__icon {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  font-size: 0.85rem;
  flex: none;
}
.panel--yes .panel__icon { background: linear-gradient(135deg, var(--rose), var(--rose-dark)); color: #fff; }
.panel--no  .panel__icon { background: #EDE4DC; color: var(--muted-2); }
.ticks { display: grid; gap: 0.95rem; }
.ticks li { position: relative; padding-left: 1.8rem; line-height: 1.45; }
.ticks li::before { position: absolute; left: 0; top: 0.02em; font-weight: 600; }
.ticks--yes li::before { content: "✓"; color: var(--rose-dark); }
.ticks--no  li { color: var(--muted-2); }
.ticks--no  li::before { content: "✕"; color: var(--line-2); }

/* ---------- CTA final ---------- */
.section--cta { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.cta-card {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
  border: 1px solid var(--pink);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(160deg, #FCE7EF 0%, var(--pink-2) 55%, #FBF1F4 100%);
  box-shadow: var(--shadow);
  padding: clamp(2rem, 5vw, 3.6rem);
}
.cta-card .kicker { justify-content: center; }
.cta-card__title { margin-inline: auto; }
.cta-card__lead { color: var(--muted); margin-bottom: 2rem; font-size: 1.1rem; }
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: left;
  margin-bottom: 2.2rem;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--pink);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
}
.step__no {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  font-family: var(--title);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  border-radius: 50%;
}
.step__title { font-family: var(--title); font-weight: 600; font-size: 1.2rem; margin-bottom: 0.15rem; color: var(--ink); }
.step__text { font-size: 0.92rem; color: var(--muted); line-height: 1.45; }
.reassurance { max-width: 30rem; margin: 1.6rem auto 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Statistiques (4 repères) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.6rem;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 1.4rem;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}
.stat__num { font-family: var(--title); font-weight: 600; font-size: 2rem; line-height: 1; color: var(--rose-dark); }
.stat__label { font-size: 0.92rem; color: var(--muted); line-height: 1.35; }

/* ---------- Double-plan (le geste) ---------- */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.6rem;
}
.duo-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.7rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.duo-card__no {
  font-family: var(--title);
  font-weight: 600;
  font-size: 1.3rem;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.duo-card__title { font-family: var(--title); font-weight: 600; font-size: 1.3rem; line-height: 1.2; color: var(--ink); }
.duo-note {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--title);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--burgundy);
}

/* =========================================================
   Pied de page
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.8rem; text-align: center; }
.site-footer__inner { display: grid; gap: 0.4rem; }
.site-footer__brand { font-family: var(--title); font-weight: 600; font-size: 1.35rem; color: var(--burgundy); }
.site-footer__brand span { color: var(--muted-2); }
.site-footer__note { color: var(--muted-2); font-size: 0.9rem; }

/* =========================================================
   Apparition au scroll (désactivée si mouvement réduit)
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 760px) {
  .quote-grid { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 20rem; margin-inline: auto; }
  .reality-grid { grid-template-columns: 1fr; }
  .fit-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .site-header__inner { grid-template-columns: 1fr auto; }
  .site-header__spacer { display: none; }
  .brand { justify-self: start; }
  .pillar-card { grid-template-columns: 1fr; gap: 0.9rem; }
  .stats { grid-template-columns: 1fr; }
}

/* =========================================================
   Accessibilité : mouvement réduit
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .pillar-card { transition: none; }
}
