/* =============================================================================
 * landing.css — Patterns réutilisables pour les landings Sociogramme.
 * À charger après spikto.css dans layouts/spikto.php (déjà fait).
 *
 * Préfixe : .sg-* (Sociogramme) — distinct du .k-* de la lib Spikto.
 * ===========================================================================*/

/* ─── Sections ─── */
.sg-section{ padding: 72px 0; }
.sg-section--cream{ background: var(--k-cream); }
.sg-section--cream-2{ background: var(--k-cream-2); }
.sg-section__head{ text-align: center; margin-bottom: 40px; }
.sg-section__head .sg-h2{ max-width: 720px; margin-inline: auto; }

/* ─── Split 2 colonnes (texte + card visuel) ──────────────────────────────
   Toujours align-items: start pour que les contenus se collent en haut
   plutôt que de flotter au milieu. */
.sg-split-2col{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: start;
}
@media (max-width: 720px){
  .sg-split-2col{ gap: 32px; }
}

/* ─── Headings communs ─── */
.sg-h1{
  font-size: clamp(34px, 7.2vw, 84px);
  font-weight: 900; letter-spacing: -.035em; line-height: 1.02;
}
.sg-h2{
  font-size: clamp(26px, 3.8vw, 44px);
  font-weight: 900; letter-spacing: -.025em;
  line-height: 1.05; margin: 8px 0 0;
}
.sg-h3{
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 900; letter-spacing: -.02em;
  margin: 0 0 8px;
}

/* ─── Hero pictos masqués sur mobile ─── */
@media (max-width: 720px){
  .sg-hero .k-hero__floaters img{ display: none; }
  .sg-hero .k-hero__floaters img.sg-keep-mobile{ display: block; }
}
.sg-hero .k-hero__title{
  font-size: clamp(34px, 7.2vw, 84px);
  line-height: 1.02;
}
.sg-hero .k-hero__sub{
  font-size: clamp(15px, 1.6vw, 18px);
}

/* ─── Grille de cards génériques (douleurs, bénéfices, étapes, etc.) ─── */
.sg-card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.sg-card-grid--2{ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.sg-card-grid--3{ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Toutes les cards d'une grille → flex column → contenus alignés correctement.
   Permet d'aligner les "footers" (auteur, lien "Découvrir →", etc.) sur la
   même ligne entre toutes les cards d'une rangée. */
.sg-card-grid > .k-card,
.sg-card-grid > a.k-card{
  display: flex;
  flex-direction: column;
}

/* Élément poussé vers le bas du card (auteur, CTA, prix, etc.) */
.sg-card-foot{
  margin-top: auto;
  padding-top: 14px;
}

.sg-card-num{
  font-family: 'Permanent Marker', cursive;
  font-size: 32px; color: var(--k-magenta);
  line-height: 1; margin-bottom: 10px;
}

/* ─── Steps (process numérotés en colonnes) ─── */
.sg-step{
  display: flex; gap: 24px; align-items: flex-start;
  padding: 24px 0; border-bottom: 1.5px dashed var(--k-line);
}
.sg-step:last-child{ border-bottom: none; }
.sg-step__num{
  flex-shrink: 0;
  font-family: 'Permanent Marker', cursive;
  font-size: 48px; color: var(--k-magenta); line-height: 1;
  min-width: 64px;
}
.sg-step__title{
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 900; letter-spacing: -.02em;
  margin: 0 0 8px;
}
.sg-step__txt{ margin: 0; color: var(--k-ink-soft); line-height: 1.6; }

/* ─── Quote / témoignage (sur fond .k-dark) ─── */
.sg-quote{
  max-width: 780px; margin-top: 32px;
  padding: 36px 32px;
  background: rgba(255,255,255,.04);
  border: 1.5px solid var(--k-line-dk);
  position: relative;
}
.sg-quote::before{
  content: '"'; position: absolute;
  top: -14px; left: 24px;
  font-size: 7rem; line-height: 1;
  color: var(--k-magenta); opacity: .22;
  font-family: 'Lora', serif;
  pointer-events: none;
}
.sg-quote__txt{
  font-family: 'Lora', serif; font-style: italic;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65; color: var(--k-cream);
  margin: 0;
}
.sg-quote__sig{
  margin-top: 18px; font-weight: 700;
  color: var(--k-magenta); font-size: 13px; letter-spacing: .02em;
}

/* ─── Pricing card (générique, peut être magenta/yellow/black) ─── */
.sg-price{
  max-width: 540px; margin: 0 auto;
  text-align: center; padding: 40px 28px;
}
.sg-price__label{
  font-size: 11px; letter-spacing: .18em;
  font-weight: 900; text-transform: uppercase; opacity: .85;
}
.sg-price__amount{
  font-size: clamp(64px, 12vw, 96px);
  font-weight: 900; letter-spacing: -.04em; line-height: 1;
  margin: 14px 0 6px;
}
.sg-price__amount sup{
  font-size: .4em; vertical-align: top; font-weight: 800;
}
.sg-price__bullets{
  list-style: none; padding: 0;
  margin: 22px auto 26px;
  text-align: left; max-width: 340px;
  font-size: 14.5px; line-height: 2;
}

/* ─── FAQ (details/summary) — chaque item est un mini-card sticker ─── */
.sg-faq details{
  border: 1.5px solid var(--k-line);
  background: #fff;
  padding: 18px 24px;
  margin-bottom: 14px;
  transition: border-color .2s var(--k-ease), box-shadow .2s var(--k-ease);
}
.sg-faq details:hover{ border-color: var(--k-ink); }
.sg-faq details[open]{
  border-color: var(--k-ink);
  box-shadow: var(--k-shadow-sm);
}
.sg-faq summary{
  cursor: pointer; list-style: none;
  font-weight: 800; font-size: 16.5px; color: var(--k-ink);
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; line-height: 1.45;
}
.sg-faq summary::-webkit-details-marker{ display: none; }
.sg-faq summary::after{
  content: '+';
  flex-shrink: 0;
  font-family: 'Permanent Marker', cursive;
  color: var(--k-magenta);
  font-size: 26px; line-height: 1;
  transition: transform .25s var(--k-ease);
}
.sg-faq details[open] summary::after{ content: '−'; }
.sg-faq__answer{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--k-line);
  color: var(--k-ink-soft);
  line-height: 1.65;
  font-size: 15px;
}

/* ─── CTA final ─── */
.sg-final{ text-align: center; }
.sg-final h2{
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900; letter-spacing: -.03em;
  line-height: 1.05; margin-bottom: 18px;
}
.sg-final p{
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--k-ink-soft);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ─── Tarif pricing grid (4 tiers comparables) ─── */
.sg-pricing-grid{
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}
.sg-pricing-card{
  display: flex; flex-direction: column;
  padding: 32px 24px;
  min-height: 100%;
}
.sg-pricing-card__tagline{
  color: var(--k-ink-soft);
  font-size: 14px; line-height: 1.5;
  min-height: 48px;
  margin: 0 0 12px;
}
.k-card--black .sg-pricing-card__tagline,
.k-card--magenta .sg-pricing-card__tagline{
  color: var(--k-ink-dark);
}
.sg-pricing-card__price{
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 900; letter-spacing: -.03em; line-height: 1;
  margin: 8px 0 4px;
}
.sg-pricing-card__price small{
  font-size: 14px; font-weight: 600; opacity: .7;
}
.sg-pricing-card__from{
  display: block;
  font-size: 13px; font-weight: 600; opacity: .7;
  margin-bottom: 4px;
}
.sg-pricing-card__bullets{
  list-style: none; padding: 0; margin: 18px 0 22px;
  font-size: 14.5px; line-height: 1.85;
  flex: 1;
}
.sg-pricing-card__highlight{
  position: relative;
  outline: 2px solid var(--k-magenta);
  outline-offset: -2px;
}
.sg-pricing-card__highlight::after{
  content: 'POPULAIRE';
  position: absolute; top: -14px; right: 16px;
  background: var(--k-yellow); color: var(--k-ink);
  padding: 4px 10px;
  font-size: 11px; font-weight: 900; letter-spacing: .12em;
  border: 1.5px solid var(--k-ink);
}
.sg-pricing-card .k-btn{ margin-top: auto; }

/* ─── Bullet list avec checkmark coloré ─── */
.sg-checklist{
  list-style: none; padding: 0; margin: 0;
  font-size: 15px; line-height: 1.65;
}
.sg-checklist li{
  display: flex; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--k-line);
}
.sg-checklist li:last-child{ border-bottom: none; }
.sg-checklist li::before{
  content: '✓';
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--k-magenta); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
  margin-top: 2px;
}
.sg-checklist--green li::before{ background: var(--k-green); color: var(--k-ink); }
.sg-checklist--cyan  li::before{ background: var(--k-cyan);  color: #fff; }
.sg-checklist--yellow li::before{ background: var(--k-yellow); color: var(--k-ink); }

/* ─── Stats grid mini (pour landings non-marché) ─── */
.sg-stat-mini{
  text-align: center; padding: 16px 8px;
}
.sg-stat-mini__num{
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(40px, 5vw, 56px);
  color: var(--k-magenta); line-height: 1;
}
.sg-stat-mini__lbl{
  font-size: 13px; color: var(--k-ink-soft);
  margin-top: 6px; line-height: 1.4;
}

/* ─── Form blocks (formulaires landings comme revendeur) ─── */
.sg-form{
  max-width: 560px; margin: 0 auto;
  padding: 32px;
  background: var(--k-cream-2);
  border: 1.5px solid var(--k-ink);
  box-shadow: var(--k-shadow);
}

/* ─── Texte de page légale (mentions, cgu, cgv, privacy) ─── */
.sg-legal{ max-width: 760px; margin: 0 auto; }
.sg-legal h2{
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900; letter-spacing: -.025em;
  margin: 40px 0 14px;
}
.sg-legal h3{
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 800;
  margin: 28px 0 10px;
}
.sg-legal p, .sg-legal li{
  color: var(--k-ink-soft);
  line-height: 1.7;
  font-size: 16px;
}
.sg-legal ul{ padding-left: 20px; margin: 12px 0; }
.sg-legal a{ color: var(--k-magenta); font-weight: 600; }
.sg-legal a:hover{ text-decoration: underline; }

/* ─── Mobile breathing room ─── */
@media (max-width: 560px){
  .sg-section{ padding: 56px 0; }
  .sg-step{ gap: 16px; padding: 20px 0; }
  .sg-step__num{ font-size: 40px; min-width: 52px; }
  .sg-quote{ padding: 28px 22px; }
  .sg-price{ padding: 32px 22px; }
  .sg-form{ padding: 24px 18px; }
}
