/* ============================================================
 * 10-page-formulas.css — V_new_00.2
 * ------------------------------------------------------------
 * Page Formules / Pricing — refonte 2026-06-24 :
 *   - PLUS de snap-scroll (#snap, .panel, .panel-inner) sur cette page.
 *   - Flow vertical libre, page de longueur naturelle.
 *   - 3 cartes (.formula-card) en grille 3 colonnes (desktop) → 1 colonne (mobile).
 *   - Aucune contrainte height: 100vh qui forçait l'écrasement vertical.
 *
 * Le chrome (topbar, menu, canvas-bg, site-footer) reste géré par 00-base.css.
 * ============================================================ */

/* ── Scroll natif (override du 00-base.css qui forçait overflow:hidden
 *    pour les pages snap) ─────────────────────────────────────── */
html, body { overflow: auto; height: auto; }

/* ── Page wrapper ──────────────────────────────────────────── */
.formulas-page {
  position: relative;
  z-index: 10;                   /* au-dessus du canvas-bg / vignette */
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 14vh 4vw 12vh;        /* respire sous le topbar + au-dessus du footer */
  min-height: 100vh;             /* triptyque centré verticalement (retour Lucas 10/07) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4.5vh;
}

/* ── Triptyque (3 cartes) ──────────────────────────────────── */
.formulas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
}
@media (max-width: 1100px) {
  .formulas-grid { grid-template-columns: 1fr; }
}

/* Hairline vertical entre les cartes (desktop seulement) */
.formula-card + .formula-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: rgba(255,240,220,0.35);
}
@media (max-width: 1100px) {
  .formula-card + .formula-card::before { content: none; }
}

/* ── Carte individuelle ────────────────────────────────────── */
.formula-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2vh 2.2vw;
  background: transparent;
  border: 0;
  opacity: 0;
  animation: fadeIn 1.6s cubic-bezier(0.25,0.1,0.25,1) forwards;
}
.formula-card:nth-child(1) { animation-delay: 0.30s; }
.formula-card:nth-child(2) { animation-delay: 0.50s; }
.formula-card:nth-child(3) { animation-delay: 0.70s; }

.formula-name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(15px, 1.17vw, 19px);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 2.4vh 0;
}
.formula-name::after {
  content: '';
  display: block;
  width: 26px;
  height: 1px;
  background: rgba(210,168,135,0.55);
  margin-top: 2vh;
}

/* Body — desc et pricing se cross-fade au clic sur "See pricing" */
.formula-body {
  position: relative;
  flex: 1;
  min-height: 28vh;
  margin-bottom: 1.4vh;
  overflow: hidden;
}
.formula-desc {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(14px, 1.01vw, 17px);
  line-height: 1.62;
  color: rgba(255,248,235,0.80);
  margin: 0;
  max-width: 26em;
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: opacity 0.45s ease;
  pointer-events: auto;
}
.formula-card.pricing-open .formula-desc {
  opacity: 0;
  pointer-events: none;
}

/* Pricing pane — superposé au desc, révélé au toggle */
.formula-pricing {
  position: absolute;
  inset: 0;
}
.formula-pricing-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(210,168,135,0.35) transparent;
}
.formula-pricing-inner::-webkit-scrollbar { width: 3px; }
.formula-pricing-inner::-webkit-scrollbar-track { background: transparent; }
.formula-pricing-inner::-webkit-scrollbar-thumb { background: rgba(210,168,135,0.35); border-radius: 2px; }
.formula-card.pricing-open .formula-pricing-inner {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pricing-list {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  padding: 0;
  flex: 1;
}
.pricing-section-label {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(9px, 0.66vw, 11px);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(210,168,135,0.85);
  padding-bottom: 0.5em;
  border-bottom: 1px solid rgba(255,240,220,0.22);
  margin: 0 0 0.1em 0;
}
.pricing-section-label:not(:first-child) { margin-top: 1.1em; }

.pricing-row {
  display: flex;
  flex-direction: column;
  gap: 0.05em;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(12.5px, 0.89vw, 14.5px);
  font-weight: 300;
  line-height: 1.35;
  color: rgba(255,248,235,0.78);
  padding-bottom: 0.35em;
  border-bottom: 1px solid rgba(255,240,220,0.07);
}
.pricing-row:last-child { border-bottom: 0; padding-bottom: 0; }

.p-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
  margin-bottom: 0.1em;
}
.p-name {
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76em;
  color: #fff;
  font-weight: 500;
  line-height: 1.25;
}
.p-dur {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(210,168,135,0.75);
  font-weight: 400;
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}
.p-price {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.92em;
  color: rgba(255,248,235,0.72);
  letter-spacing: 0.01em;
}

/* ── Actions (Pricing toggle + Book CTA) ───────────────────── */
.formula-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.2em;
  margin-top: auto;
  padding-top: 1.4vh;
  min-height: 2.8em;
}
.pricing-toggle {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(7.8px, 0.62vw, 10.2px);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(210,168,135,0.9);
  background: transparent;
  border: 0;
  padding: 0.4em 0;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  flex-shrink: 0;
}
.pricing-toggle::after {
  content: '';
  position: absolute;
  left: 0; bottom: -0.1em;
  width: 100%; height: 1px;
  background: rgba(210,168,135,0.5);
  transition: background 0.3s ease;
}
.pricing-toggle:hover { color: rgba(255,235,210,1); }
.pricing-toggle:hover::after { background: rgba(255,235,210,0.9); }
.pricing-toggle:focus { outline: none; }
.pricing-toggle:focus-visible { outline: 1px dashed rgba(255,240,220,0.4); outline-offset: 4px; }
.formula-card.pricing-open .pricing-toggle { color: rgba(255,235,210,1); }
.formula-card.pricing-open .pricing-toggle::after { background: rgba(255,235,210,0.9); }

.formula-cta { flex-shrink: 0; }

/* ── See all pricing — toggle global sous le triptyque ─────── */
.see-all-pricing {
  display: inline-flex;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(10.5px, 0.76vw, 13.5px);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(210,168,135,0.92);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(210,168,135,0.55);
  padding: 0.55em 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
  opacity: 0;
  animation: fadeIn 1.6s cubic-bezier(0.25,0.1,0.25,1) 0.95s forwards;
}
.see-all-pricing:hover { color: #fff; border-color: #fff; }
.see-all-pricing:focus { outline: none; }
.see-all-pricing:focus-visible { outline: 1px dashed rgba(255,240,220,0.5); outline-offset: 4px; }
.see-all-pricing[aria-expanded="true"] { color: #fff; border-color: #fff; }

/* ── Tablette ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .formula-name { font-size: clamp(12px, 1.5vw, 17px); }
  .formula-desc { font-size: clamp(11px, 1.3vw, 15px); }
  .formula-body { min-height: 24vh; }
}

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .formulas-page {
    padding: 12vh 6vw 10vh;
    gap: 3.5vh;
  }
  .formulas-grid { gap: 0; }
  .formula-card {
    padding: 3vh 0;
    border-bottom: 1px solid rgba(255,240,220,0.15);
  }
  .formula-card:last-child { border-bottom: none; }
  .formula-card + .formula-card::before { content: none; }
  .formula-name {
    font-size: clamp(13px, 3.4vw, 17px);
    margin-bottom: 1.6vh;
    letter-spacing: 0.24em;
  }
  .formula-name::after { margin-top: 1.2vh; width: 22px; }
  .formula-desc {
    position: static;        /* libère la hauteur sur mobile */
    font-size: clamp(13px, 3.5vw, 15.5px);
    line-height: 1.55;
  }
  .formula-card.pricing-open .formula-desc {
    display: none;           /* simple swap mobile, pas de cross-fade */
  }
  .formula-pricing {
    position: static;        /* idem : flow normal */
  }
  .formula-pricing-inner {
    position: static;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.35s ease;
  }
  .formula-card.pricing-open .formula-pricing-inner {
    opacity: 1;
    height: auto;
  }
  .formula-body {
    min-height: auto;
    overflow: visible;
    margin-bottom: 1.6vh;
  }
  .pricing-toggle { font-size: clamp(9px, 2.4vw, 11px); }
  .formula-cta { font-size: clamp(9px, 2.4vw, 11px); }
}
