/* ==========================================================================
   Afoodi — page /offre
   Continuité avec /methodologie (Archivo + palette OKLCH), plus les objets
   propres à la page : le calcul de marge, les 3 piliers, les 3 formules.
   ========================================================================== */

/* Les éléments révélés ne sont masqués que si GSAP a bien démarré : si le CDN
   tombe ou que le JS ne s'exécute pas, la page reste entièrement lisible. */
.has-gsap [data-reveal] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-gsap [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.top {
  background:
    radial-gradient(1100px 620px at 50% -8%, oklch(0.33 0.05 163 / .85), transparent 60%),
    linear-gradient(175deg, var(--green-dark), var(--green-ink) 70%);
}
.hero { padding: clamp(48px, 6.5vw, 96px) 0 clamp(40px, 5vw, 72px); max-width: 1000px; }
.hero h1 {
  font-size: clamp(38px, 5.8vw, 82px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .98;
  margin-top: 18px;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--orange); }
.hero__text { max-width: 720px; margin-top: clamp(22px, 2.6vw, 34px); display: grid; gap: 16px; }
.hero__text p { font-size: clamp(15.5px, 1.15vw, 17.5px); line-height: 1.6; color: var(--cream-dim); text-wrap: pretty; }
.hero__lead { font-size: clamp(16.5px, 1.3vw, 19px) !important; color: var(--cream) !important; }
.hero__text em { font-style: italic; }
.hero__text strong { color: var(--cream); font-weight: 800; }
.hero .ctas { display: flex; gap: 14px; margin-top: clamp(28px, 3vw, 40px); flex-wrap: wrap; }

/* ==========================================================================
   RESPIRATION PHOTO
   Une bande pleine largeur entre le hero et le calcul : deux sections vertes
   se suivaient sans rupture. La hauteur est bornée pour que la photo reste
   une respiration et ne pousse pas le contenu hors de l'écran.
   ========================================================================== */
.bande-photo { background: var(--green-ink); }
.bande-photo img {
  display: block;
  width: 100%;
  height: clamp(220px, 34vw, 420px);
  object-fit: cover;
  object-position: center 62%;
}

/* ==========================================================================
   LE CALCUL À FAIRE UNE FOIS
   ========================================================================== */
.calcul {
  background: linear-gradient(175deg, var(--green-deep), var(--green-ink));
  padding: clamp(56px, 7vw, 104px) 0 clamp(70px, 8vw, 120px);
}
.calcul h2 {
  font-size: clamp(30px, 4.2vw, 58px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1;
  margin-top: 16px;
  text-wrap: balance;
}
.calcul h2 .accent { color: var(--orange); }

/* ----- Le simulateur -----
   Une saisie, un résultat. Le champ est en texte et non en nombre : les
   montants se lisent avec des espaces (1 500 000), qu'un input[type=number]
   refuse, et les flèches d'incrément n'ont aucun sens sur un chiffre
   d'affaires. */
.simu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  margin-top: clamp(36px, 4vw, 58px);
  border: 1px solid var(--panel-line);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 42px);
  background: oklch(0.27 0.045 165 / .62);
}
.simu__label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mint);
}
.simu__champ { position: relative; margin-top: 14px; }
.simu__champ input {
  font-family: var(--font);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--cream);
  background: oklch(0.20 0.035 165 / .7);
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  padding: 16px 52px 16px 20px;
  width: 100%;
  transition: border-color .15s ease;
}
.simu__champ input:focus-visible { outline: none; border-color: var(--orange); }
.simu__unite {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 800;
  color: var(--cream-dim);
  pointer-events: none;
}
.simu__aide { font-size: 13.5px; line-height: 1.5; color: var(--cream-dim); margin-top: 12px; }

.simu__sortie { border-left: 2px solid var(--orange); padding-left: clamp(20px, 2.4vw, 32px); }
.simu__n {
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .95;
  color: var(--orange);
  white-space: nowrap;
}
.simu__l { font-size: clamp(16px, 1.4vw, 20px); font-weight: 700; line-height: 1.3; margin-top: 16px; }
.simu__l strong { font-weight: 900; }
.simu__d { font-size: 14.5px; line-height: 1.55; color: var(--cream-dim); margin-top: 10px; }

.calcul__punch {
  font-size: clamp(18px, 1.7vw, 25px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.35;
  max-width: 46ch;
  margin-top: clamp(30px, 3.4vw, 46px);
  border-left: 2px solid var(--orange);
  padding-left: 18px;
  text-wrap: pretty;
}
.calcul__link { margin-top: 22px; }

/* ==========================================================================
   SECTIONS CLAIRES
   ========================================================================== */
.light { background: var(--cream); color: var(--green-ink); position: relative; z-index: 2; }
.light a { color: var(--green-ink); }
.light a:hover { color: var(--orange); }
.light__h2 {
  font-size: clamp(30px, 4.2vw, 58px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1;
  text-align: center;
  margin: 16px auto 0;
  max-width: 22ch;
  text-wrap: balance;
}
.light__h2 .accent { color: var(--orange); }

/* ----- Les trois piliers ----- */
.piliers {
  border-radius: 34px 34px 0 0;
  margin-top: -22px;
  padding: clamp(62px, 7vw, 110px) 0 clamp(40px, 4.6vw, 68px);
}
.piliers__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
  margin-top: clamp(40px, 4.6vw, 68px);
  align-items: start;
}
.pilier {
  background: var(--cream-pure);
  border: 1px solid var(--ink-line);
  border-radius: 22px;
  padding: clamp(22px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pilier__no { font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); }
.pilier h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; margin-top: 10px; }

.pilier__list { list-style: none; display: grid; gap: 2px; margin-top: 22px; flex: 1; }
.pilier__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--ink-line);
}
.pilier__list li:first-child { border-top: 0; }
/* Le service-locomotive du pilier : une étoile, pas un encadré de plus. */
.pilier__list .is-star .pilier__s b::before {
  content: "★";
  color: var(--orange);
  margin-right: 7px;
  font-size: .95em;
}
.pilier__s { display: grid; gap: 4px; }
.pilier__s b { font-size: 15.5px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.pilier__s i { font-style: normal; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.pilier__p { font-size: 15px; font-weight: 800; white-space: nowrap; }

.pilier__tot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  margin-top: 20px; padding-top: 18px;
  border-top: 2px solid var(--green-ink);
  font-size: 14px; font-weight: 700;
}
.pilier__tot b { font-size: clamp(19px, 1.8vw, 25px); font-weight: 900; letter-spacing: -.025em; }

.piliers__note {
  text-align: center;
  font-size: clamp(15.5px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: clamp(32px, 3.4vw, 46px) auto 0;
  max-width: 58ch;
}
.piliers__note strong { color: var(--green-ink); font-weight: 900; }

/* ----- Les trois formules ----- */
.formules { padding: clamp(20px, 2.4vw, 34px) 0 clamp(56px, 6vw, 96px); }
.split-rule { display: flex; align-items: center; gap: 22px; margin-bottom: clamp(48px, 5.5vw, 84px); }
.split-rule i { flex: 1; height: 1px; background: oklch(0.30 0.045 165 / .18); }
.split-rule span { display: flex; gap: 7px; }
.split-rule b { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.split-rule b:nth-child(2) { opacity: .55; }
.split-rule b:nth-child(3) { opacity: .25; }

.formules__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
  margin-top: clamp(40px, 4.6vw, 68px);
  align-items: stretch;
}
.formule {
  position: relative;
  background: var(--cream-pure);
  border: 1px solid var(--ink-line);
  border-radius: 22px;
  padding: clamp(22px, 2.2vw, 30px);
  display: flex;
  flex-direction: column;
}
.formule h3 { font-size: clamp(19px, 1.7vw, 23px); font-weight: 900; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
.formule__for { font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); margin-top: 10px; min-height: 3em; }
.formule__p { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.formule__p b { font-size: clamp(26px, 2.6vw, 36px); font-weight: 900; letter-spacing: -.035em; line-height: 1; white-space: nowrap; }
.formule__p span { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.formule__alt { font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin-top: 8px; }

.formule__list { list-style: none; display: grid; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ink-line); flex: 1; }
.formule__list li { font-size: 14px; line-height: 1.45; padding-left: 18px; position: relative; }
.formule__list li::before {
  content: "";
  position: absolute; left: 0; top: .5em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
}
.formule__list i { font-style: normal; color: var(--ink-soft); white-space: nowrap; }
/* Détail d'une ligne : un cran en retrait, marqué au tiret pour ne pas
   rivaliser avec les pastilles orange du niveau au-dessus. */
.formule__sub { list-style: none; display: grid; gap: 6px; margin-top: 8px; }
.formule__sub li { font-size: 13px; line-height: 1.4; color: var(--ink-soft); padding-left: 14px; }
.formule__sub li::before { content: "–"; background: none; width: auto; height: auto; top: 0; border-radius: 0; }
.formule__val { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ink-line); }

/* La formule mise en avant : contraste inversé plutôt qu'un simple liseré. */
.formule--hero { background: var(--green-ink); border-color: transparent; color: var(--cream); }
.formule--hero .formule__for,
.formule--hero .formule__alt,
.formule--hero .formule__val,
.formule--hero .formule__list i,
.formule--hero .formule__sub li { color: var(--cream-dim); }
.formule--hero .formule__list,
.formule--hero .formule__val { border-top-color: var(--panel-line); }

.formules__cta { text-align: center; margin-top: clamp(36px, 4vw, 56px); }
.formules__cta .btn { text-align: left; }

/* ----- Objection ----- */
.objection { padding: 0 0 clamp(62px, 7vw, 110px); }
.obj {
  background: var(--cream-pure);
  border: 1px solid var(--ink-line);
  border-radius: 24px;
  padding: clamp(28px, 3.4vw, 56px);
}
.obj h3 { font-size: clamp(24px, 2.8vw, 40px); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
.obj__lead { font-size: clamp(17px, 1.5vw, 21px); font-weight: 700; margin-top: 18px; color: var(--orange); }
.obj p:not(.obj__lead):not(.obj__punch) { font-size: 16px; line-height: 1.65; margin-top: 16px; max-width: 72ch; text-wrap: pretty; }
.obj__punch { font-size: clamp(17px, 1.5vw, 21px); font-weight: 800; letter-spacing: -.015em; line-height: 1.35; margin-top: 22px; max-width: 52ch; }
.obj--dark { background: var(--green-ink); border-color: transparent; color: var(--cream); }
.obj--dark p:not(.obj__lead):not(.obj__punch) { color: var(--cream-dim); }
.obj--dark .obj__punch { color: var(--cream); }
.obj--dark a { color: var(--cream); }
.obj--dark a:hover { color: var(--orange-bright); }

/* ==========================================================================
   LE LIVRABLE EN IMAGE
   Dernière section avant le bandeau orange : après les prix, montrer ce que
   le client reçoit. Aucun recadrage — chaque libellé du visuel compte.
   ========================================================================== */
.apercu { padding: clamp(52px, 6.5vw, 96px) 0 clamp(60px, 7vw, 104px); }
.apercu__fig { margin-top: clamp(32px, 3.8vw, 52px); }
.apercu__fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--ink-line);
  box-shadow: 0 30px 70px -40px oklch(0.17 0.03 165 / .55);
}
.apercu__fig figcaption {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 14px;
  text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  /* Trois cartes : on passe directement à une colonne, deux laisseraient
     une carte orpheline sur la seconde ligne. */
  .formules__grid { grid-template-columns: 1fr; }
  .formule__for { min-height: 0; }
  .piliers__grid { grid-template-columns: 1fr; }
  .simu { grid-template-columns: 1fr; }
  .simu__sortie { border-left: 0; border-top: 2px solid var(--orange); padding-left: 0; padding-top: clamp(20px, 3vw, 28px); }
}

@media (max-width: 640px) {
  .pilier__list li { flex-direction: column; gap: 6px; }
  .pilier__p { align-self: flex-start; }
}
