/* =====================================================================
   SantéFlow — pages « Spécialités » (specialites/)
   Complète landing.css + landing-pro.css. Même règle que l'accueil :
   titres à gauche, listes à filets, une seule pièce forte par page
   (la vidéo verticale en haut de page, ou la fiche de certification).
   ===================================================================== */

/* ---------- Haut de page ---------- */
.sp-hero { padding: 48px 0 56px; background: linear-gradient(180deg, var(--hero-a) 0%, var(--bg) 70%); }
@media (min-width: 992px) { .sp-hero { padding: 72px 0 88px; } }
.sp-hero__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 992px) { .sp-hero--video .sp-hero__in { grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; } }

.sp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 28px; font-size: .92rem; color: var(--muted); }
.sp-crumbs a { color: var(--muted); text-decoration: none; }
.sp-crumbs a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.sp-crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.lp .sp-h1 {
  font-family: var(--font-display); font-weight: 800; color: var(--ink);
  font-size: clamp(2.3rem, 5.2vw, 4.1rem); line-height: 1.02; letter-spacing: -.032em;
  margin: 0 0 22px; max-width: 18ch; text-wrap: balance;
}
.sp-hero:not(.sp-hero--video) .sp-h1 { max-width: 22ch; }
.sp-lead { margin: 0; max-width: 60ch; color: var(--ink-2); font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; }
.sp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 480px) { .sp-cta .lp-btn { width: 100%; } }
.sp-facts { margin-top: 48px; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 620px; }
@media (max-width: 860px) { .sp-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Vidéo verticale (YouTube Shorts) ---------- */
.sp-video { margin: 0; }
.sp-video__frame {
  position: relative; aspect-ratio: 9 / 16; width: 100%; max-width: 340px; margin: 0 auto;
  border-radius: 28px; overflow: hidden; background: #0b1a22;
  border: 8px solid #0b1a22; box-shadow: var(--shadow-lg);
}
.sp-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 20px; }
.sp-video figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-size: .9rem; }
.sp-video figcaption a { color: var(--brand); font-weight: 600; }
@media (max-width: 991px) { .sp-hero__media .sp-video__frame { max-width: 300px; } }

/* ---------- Ce que fait la fiche : 3 colonnes à filets ---------- */
.sp-feats { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 40px; border-top: 2px solid var(--ink); }
@media (min-width: 700px) { .sp-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .sp-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sp-feats div { padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.sp-feats dt { font: 700 1.08rem var(--font-display); color: var(--ink); margin-bottom: 6px; }
.sp-feats dd { margin: 0; color: var(--ink-2); line-height: 1.55; }
.sp-note { margin: 28px 0 0; max-width: 72ch; padding-left: 16px; border-left: 3px solid var(--brand); color: var(--ink-2); line-height: 1.6; }

.pr-section--tight { padding-top: 0; }
.pr-section--tight .pr-head { margin-bottom: 40px; }

/* ---------- Certification ---------- */
.sp-how { margin: 18px 0 0; color: var(--ink-2); line-height: 1.6; max-width: 52ch; }
.pr-head--side .sp-cta .lp-btn { margin-top: 0; }
.sp-cert {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(24px, 3vw, 36px); position: relative; overflow: hidden;
}
.sp-cert::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, #007C91, #00BFA6); }
.sp-cert__top { display: flex; gap: 16px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sp-cert__seal { flex: none; width: 52px; height: 52px; padding: 12px; border-radius: 50%; background: var(--brand-light); color: var(--brand); }
.sp-cert__top small { display: block; color: var(--muted); font-size: .9rem; margin-bottom: 2px; }
.lp .sp-cert h3 { margin: 0; font: 800 clamp(1.2rem, 2vw, 1.45rem)/1.2 var(--font-display); color: var(--ink); }
.sp-cert__mods { list-style: none; counter-reset: m; margin: 8px 0 0; padding: 0; }
.sp-cert__mods li { counter-increment: m; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); line-height: 1.45; }
.sp-cert__mods li::before { content: counter(m); font: 700 .95rem var(--font-display); color: var(--brand); }
.sp-cert__meta { margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
@media (min-width: 560px) { .sp-cert__meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sp-cert__meta dt { color: var(--muted); font-size: .85rem; }
.sp-cert__meta dd { margin: 2px 0 0; font: 700 1.05rem var(--font-display); color: var(--ink); }
.sp-cert__pre, .sp-cert__also { margin: 18px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.sp-cert__also a { color: var(--brand); font-weight: 600; }

/* ---------- Pour aller plus loin ---------- */
.sp-more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 48px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .sp-more { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.lp .sp-h3 { font: 800 1.2rem var(--font-display); color: var(--ink); margin: 0 0 14px; }
.sp-more p { margin: 0; }

/* ---------- Page d'ensemble : liste des spécialités ---------- */
.sp-index { padding-top: 24px; }
.sp-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.sp-list li { border-bottom: 1px solid var(--line); }
.sp-list a {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; gap: 6px 18px; align-items: center;
  padding: 20px 4px; color: inherit; text-decoration: none;
}
@media (min-width: 860px) { .sp-list a { grid-template-columns: 44px minmax(0, 1fr) auto 24px; } }
.sp-list__ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--brand-light); color: var(--brand); }
.sp-list__txt b { display: block; font: 700 1.15rem var(--font-display); color: var(--ink); }
.sp-list__txt span { color: var(--ink-2); font-size: .96rem; line-height: 1.45; }
.sp-list__meta { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 2; }
@media (min-width: 860px) { .sp-list__meta { grid-column: auto; justify-content: flex-end; } }
.sp-list__go { color: var(--muted); grid-row: 1; grid-column: 3; transition: transform .2s, color .2s; }
@media (min-width: 860px) { .sp-list__go { grid-column: 4; } }
.sp-list a:hover b { color: var(--brand); }
.sp-list a:hover .sp-list__go { color: var(--brand); transform: translateX(3px); }
.sp-list a:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.sp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.sp-pill .lp-ico { width: 14px; height: 14px; color: var(--brand); }
.sp-pill--video { border-color: transparent; background: var(--brand-light); color: var(--brand-dark); }

/* ---------- Page d'ensemble : vidéos ---------- */
.sp-reel { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 40px 28px; }
.sp-reel__item { display: flex; flex-direction: column; gap: 14px; }
.sp-reel .sp-video__frame { max-width: 260px; border-width: 6px; border-radius: 22px; box-shadow: var(--shadow); }
.sp-reel .sp-video__frame iframe { border-radius: 16px; }
.sp-reel .pr-link { justify-content: center; font-size: .95rem; }

/* ---------- Vidéo : façade (vignette + bouton), remplacée par l'iframe au clic ---------- */
.sp-video__play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 20px; overflow: hidden; cursor: pointer; background: #0b1a22; }
.sp-reel .sp-video__play { border-radius: 16px; }
.sp-video__play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.sp-video__btn {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(0, 124, 145, .92); color: #fff; box-shadow: 0 0 0 10px rgba(255, 255, 255, .18), 0 14px 30px rgba(0, 0, 0, .35);
  transition: transform .2s ease, background .2s ease;
}
.sp-video__btn svg { width: 32px; height: 32px; margin-left: 4px; }
.sp-video__play:hover .sp-video__btn { transform: scale(1.06); background: #005B66; }
.sp-video__play:hover img { transform: scale(1.02); }
.sp-video__play:focus-visible { outline: none; box-shadow: inset 0 0 0 4px #2bc4cf; }
@media (prefers-reduced-motion: reduce) { .sp-video__play img, .sp-video__btn { transition: none; } }
