/* ============================================================
   SPO — COMMENT ÇA MARCHE — CSS (2026) — PIMP PRO / SAFE
   - Scope strict: .spo-how uniquement (zéro impact ailleurs)
   - Conserve full-width + container + split + anti-parasites
   - Ajouts: cards premium, boutons cohérents, accordéons propres,
             micro-rythme, hover/focus, responsive fin
   - Compatible ListingHive/HivePress (pas de JS, pas de reset global)
   ============================================================ */

/* =========================
   0) Tokens locaux (safe)
   ========================= */
.spo-how{
  --spo-accent:var(--spo-azure);
  --spo-radius:22px;
  --spo-radius-sm:14px;
  --spo-shadow:0 10px 30px rgba(15,42,68,.10);
  --spo-shadow-sm:0 6px 18px rgba(15,42,68,.10);
  --spo-ring:0 0 0 3px rgba(46,111,174,.22);
  --spo-border-soft:rgba(15,42,68,.12);
  --spo-border-mid:rgba(15,42,68,.18);
  --spo-text-strong:rgba(17,24,39,.92);
  --spo-text-soft:rgba(17,24,39,.82);
  --spo-muted-2:rgba(100,116,139,.92);

  width:100vw !important;
  margin-left:calc(50% - 50vw) !important;
  margin-right:calc(50% - 50vw) !important;
  overflow-x:hidden;
}
.spo-how *{ box-sizing:border-box; }

/* Neutralise les containers du thème à l'intérieur de la page */
.spo-how :is(.site-content,.content,.content__wrap,.container,.page__content,.page__wrapper){
  max-width:none !important;
  width:100% !important;
}

/* Container interne */
.spo-how .spo-how__container{
  width:min(1400px, calc(100vw - 56px));
  margin-left:auto;
  margin-right:auto;
}
@media (max-width:720px){
  .spo-how .spo-how__container{ width:calc(100vw - 28px); }
}

/* =========================
   1) Hero premium
   ========================= */
.spo-how__hero{
  padding:26px 0 14px;
  background:
    radial-gradient(1200px 520px at 15% 0%, rgba(46,111,174,.22), transparent 60%),
    radial-gradient(900px 420px at 90% 15%, rgba(30,79,122,.18), transparent 60%),
    linear-gradient(180deg, rgba(234,242,251,.92), rgba(255,255,255,0));
}
.spo-how .spo-heroCard{
  position:relative;
  background:linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.90)) !important;
  border:1px solid rgba(46,111,174,.26) !important;
  border-radius:var(--spo-radius) !important;
  padding:22px 18px;
  overflow:hidden;
  box-shadow:var(--spo-shadow);
}
.spo-how .spo-heroCard:after{
  content:"";
  position:absolute; left:0; top:0; bottom:0; width:7px;
  background:linear-gradient(180deg, var(--spo-accent), var(--spo-secondary));
  opacity:.95;
}
.spo-how__kicker{
  margin:0 0 6px;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
  color:var(--spo-secondary);
  font-size:12px;
}
.spo-how__title{
  margin:0 0 10px;
  font-size:clamp(28px, 3.2vw, 40px);
  line-height:1.12;
  color:var(--spo-primary);
}
.spo-how__subtitle{
  margin:0;
  color:var(--spo-text-soft);
  font-size:15.5px;
  line-height:1.65;
  max-width:78ch;
}

/* Badges (si présents) */
.spo-how .spo-how__badges{
  margin-top:12px;
  display:flex; flex-wrap:wrap; gap:8px;
}
.spo-how .spo-badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--spo-border-soft);
  background:rgba(255,255,255,.75);
  color:var(--spo-text-strong);
  box-shadow:0 1px 0 rgba(15,42,68,.05);
}

/* Note hero */
.spo-how .spo-note--hero{
  margin-top:12px;
  border-radius:var(--spo-radius-sm);
  border:1px solid rgba(46,111,174,.20);
  background:rgba(234,242,251,.55);
  padding:12px 12px;
}

/* =========================
   2) Cadre central + cards
   ========================= */
.spo-how .spo-how__frame{
  padding:12px 0 38px;
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  justify-items:stretch;
  align-items:start;
}
.spo-how .spo-how__frame > p,
.spo-how .spo-how__frame > br{ display:none !important; }

/* Style carte générique (safe si classes existent déjà) */
.spo-how .spo-card{
  background:rgba(255,255,255,.92);
  border:1px solid var(--spo-border-soft);
  border-radius:var(--spo-radius);
  box-shadow:var(--spo-shadow-sm);
  overflow:hidden;
}
.spo-how .spo-card__head{
  padding:16px 16px 12px;
  background:
    linear-gradient(180deg, rgba(244,246,248,.85), rgba(255,255,255,0));
  border-bottom:1px solid rgba(15,42,68,.06);
}
.spo-how .spo-card__title{
  margin:0 0 6px;
  font-size:18px;
  line-height:1.25;
  color:var(--spo-primary);
}
.spo-how .spo-card__desc{
  margin:0;
  color:var(--spo-muted-2);
  line-height:1.55;
}

/* =========================
   3) TOC + Quicklinks (HTML FINAL)
   ========================= */
.spo-how .spo-how__toc{ margin:14px 0 10px; }
.spo-how .spo-how__tocList{
  list-style:none; padding:0; margin:0;
  display:flex; flex-wrap:wrap; gap:8px;
}
.spo-how .spo-how__tocLink{
  display:inline-block;
  padding:7px 11px;
  border:1px solid rgba(15,42,68,.14);
  border-radius:999px;
  text-decoration:none;
  line-height:1.2;
  background:rgba(255,255,255,.70);
}
.spo-how .spo-how__tocLink:hover{
  border-color:rgba(46,111,174,.30);
  box-shadow:0 8px 20px rgba(15,42,68,.10);
  transform:translateY(-1px);
}
@media (prefers-reduced-motion:reduce){
  .spo-how .spo-how__tocLink:hover{ transform:none; }
}

/* Quicklinks en grille */
.spo-how .spo-how__quicklist{
  list-style:none; padding:0; margin:14px 0 0;
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
@media (min-width:720px){
  .spo-how .spo-how__quicklist{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (min-width:1024px){
  .spo-how .spo-how__quicklist{ grid-template-columns:repeat(3, minmax(0,1fr)); }
}
.spo-how .spo-how__quicklist li{ min-width:0; }

/* =========================
   4) Boutons (cohérence 2026)
   ========================= */
.spo-how .spo-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  text-decoration:none;
  font-weight:800;
  line-height:1.15;
  border:1px solid transparent;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease, background-color .12s ease;
  min-height:46px;
}
.spo-how .spo-btn--primary{
  background:linear-gradient(180deg, rgba(30,79,122,.98), rgba(15,42,68,.98));
  color:#fff;
  border-color:rgba(15,42,68,.18);
  box-shadow:0 10px 24px rgba(15,42,68,.18);
}
.spo-how .spo-btn--primary:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(15,42,68,.22);
}
.spo-how .spo-btn--ghost{
  background:rgba(255,255,255,.80);
  color:var(--spo-primary);
  border-color:rgba(15,42,68,.14);
}
.spo-how .spo-btn--ghost:hover{
  transform:translateY(-1px);
  border-color:rgba(46,111,174,.28);
  box-shadow:0 10px 22px rgba(15,42,68,.12);
}
@media (prefers-reduced-motion:reduce){
  .spo-how .spo-btn{ transition:none; }
  .spo-how .spo-btn--primary:hover,
  .spo-how .spo-btn--ghost:hover{ transform:none; }
}

/* =========================
   5) Steps (parcours)
   ========================= */
.spo-how .spo-steps{ padding:14px 16px 16px; }
.spo-how .spo-step{
  display:grid;
  grid-template-columns:44px 1fr;
  gap:12px;
  padding:14px 0;
  border-top:1px dashed rgba(15,42,68,.14);
}
.spo-how .spo-step:first-child{ border-top:0; padding-top:6px; }
.spo-how .spo-step__n{
  width:44px; height:44px;
  border-radius:14px;
  display:grid; place-items:center;
  font-weight:900;
  color:var(--spo-primary);
  background:rgba(234,242,251,.75);
  border:1px solid rgba(46,111,174,.22);
}
.spo-how .spo-step__t{
  margin:0 0 6px;
  font-size:16px;
  color:var(--spo-primary);
}
.spo-how .spo-step__p{ margin:0 0 10px; color:var(--spo-text-soft); line-height:1.6; }
.spo-how .spo-step__cta{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
@media (min-width:720px){
  .spo-how .spo-step__cta{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

/* Notes */
.spo-how .spo-note{
  margin:0 16px 16px;
  border-radius:var(--spo-radius-sm);
  border:1px solid rgba(15,42,68,.12);
  background:rgba(244,246,248,.75);
  padding:12px 12px;
  color:var(--spo-text-strong);
}

/* =========================
   6) Split robuste (conservé)
   ========================= */
.spo-how :is(.spo-split, .spo-how__split){
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:16px !important;
  width:100% !important;
  margin:0 !important;
  float:none !important;
  clear:both !important;
  align-items:start !important;
}
.spo-how :is(.spo-split, .spo-how__split) > *{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  float:none !important;
}
@media (max-width:980px){
  .spo-how :is(.spo-split, .spo-how__split){ grid-template-columns:1fr !important; }
}

/* Anti-parasites éditeur dans split (conservé) */
.spo-how .spo-how__split p{ display:none !important; margin:0 !important; padding:0 !important; }
.spo-how .spo-how__split .spo-card p{ display:block !important; margin:0 0 10px !important; }
.spo-how .spo-how__split br{ display:none !important; }

/* =========================
   7) Accordéons (Guides/FAQ)
   ========================= */
.spo-how .spo-acc{ padding:14px 16px 16px; }
.spo-how .spo-acc__item{
  border:1px solid rgba(15,42,68,.12);
  border-radius:16px;
  background:rgba(255,255,255,.75);
  overflow:hidden;
  margin:0 0 10px;
}
.spo-how .spo-acc__sum{
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  font-weight:900;
  color:var(--spo-primary);
}
.spo-how .spo-acc__sum::-webkit-details-marker{ display:none; }
.spo-how .spo-acc__body{
  padding:0 12px 12px;
  color:var(--spo-text-soft);
}
.spo-how details[open] .spo-acc__sum{
  background:rgba(234,242,251,.60);
  border-bottom:1px solid rgba(15,42,68,.08);
}
.spo-how .spo-acc__item--alert{
  border-color:rgba(239,68,68,.25);
  background:rgba(254,242,242,.55);
}
.spo-how .spo-bullets{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--spo-text-soft);
  line-height:1.55;
}
.spo-how .spo-bullets li{ margin:6px 0; }

/* Boxes (privacy/soft) si présents */
.spo-how .spo-privacyBox,
.spo-how .spo-softBox{
  margin-top:12px;
  border-radius:16px;
  border:1px solid rgba(15,42,68,.12);
  background:rgba(244,246,248,.70);
  padding:12px 12px;
}
.spo-how .spo-privacyBox__head,
.spo-how .spo-softBox__head{ margin-bottom:8px; color:var(--spo-primary); }

/* Mini grid (checklists) */
.spo-how .spo-miniGrid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin:12px 0 0;
}
@media (min-width:720px){
  .spo-how .spo-miniGrid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
.spo-how .spo-miniCard{
  border:1px solid rgba(15,42,68,.12);
  border-radius:16px;
  background:rgba(255,255,255,.80);
  padding:12px 12px;
  color:var(--spo-text-soft);
}
.spo-how .spo-miniCard strong{
  display:block;
  margin-bottom:6px;
  color:var(--spo-primary);
}

/* CTA panel */
.spo-how .spo-panel__cta{
  margin-top:12px;
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
@media (min-width:720px){
  .spo-how .spo-panel__cta{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}

/* =========================
   8) Back to top + a11y
   ========================= */
.spo-how .spo-how__backtop{ margin:14px 16px 16px; }
.spo-how .spo-how__backtop a{ text-decoration:none; font-weight:800; }
.spo-how .spo-how__backtop a:hover{ text-decoration:underline; }

/* Anti-dépassement (titres/URLs/longs mots) */
.spo-how :is(h1,h2,h3,p,a,li){
  overflow-wrap:anywhere;
  word-break:normal;
}

/* Focus visible (accessibilité, sans toucher global) */
.spo-how a:focus-visible,
.spo-how summary:focus-visible{
  outline:none;
  box-shadow:var(--spo-ring);
  border-radius:12px;
}

/* Icônes (lisibilité sans impacter global) */
.spo-how .spo-ico{ opacity:.95; }


/* Tentative de rattrapage si WP a wrap les divs */
.spo-how #spo-cadre .spo-twoCols{
  display:flex !important;
  gap:16px !important;
  align-items:stretch !important;
  width:100% !important;
}
.spo-how #spo-cadre .spo-twoCols > *{
  flex:1 1 0 !important;
  min-width:0 !important;
}
/* Si WP a créé des intermédiaires */
.spo-how #spo-cadre .spo-twoCols > p{ display:contents !important; margin:0 !important; padding:0 !important; }
@media (max-width:980px){
  .spo-how #spo-cadre .spo-twoCols{ flex-direction:column !important; }
}/* SPO — Hide title (fallback sans :has) */
.page-id-56971 .page__title.entry-title,
.page-id-56971 .page__title,
.page-id-56971 h1.entry-title{
  display:none !important;
}

/* On neutralise le padding/marge autour du bloc titre */
.page-id-56971 .page__title.entry-title{
  margin:0 !important;
  padding:0 !important;
}
.page-id-56971 .page__content > .row:first-child{
  margin-top:0 !important;
  margin-bottom:0 !important;
}

/* ============================================================
   SPO - Comment ca marche - visual refresh v2.0.2
   The page owns its hero; do not layer a shared dark hero above it.
   ============================================================ */
body.page-id-56971 {
  background: #f5f7fa;
}

body.page-id-56971 .spo-how {
  width: 100% !important;
  margin: 0 !important;
  padding: 18px 0 48px;
  background: transparent;
}

body.page-id-56971 .spo-how__hero {
  padding: 0 0 22px;
  background: transparent;
}

body.page-id-56971 .spo-how .spo-how__container {
  width: min(1160px, calc(100% - 32px)) !important;
  max-width: 100% !important;
}

body.page-id-56971 .spo-how .spo-heroCard {
  padding: clamp(24px, 4vw, 42px) !important;
  border: 0 !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 90% 12%, rgba(197, 220, 236, .2), transparent 31%),
    linear-gradient(132deg, #102a43 0%, #153e61 56%, #10334d 100%) !important;
  box-shadow: 0 22px 48px rgba(15, 42, 68, .16) !important;
}

body.page-id-56971 .spo-how .spo-heroCard::after {
  display: none;
}

body.page-id-56971 .spo-how :is(.spo-how__kicker, .spo-how__title, .spo-how__subtitle) {
  color: #fff !important;
}

body.page-id-56971 .spo-how .spo-how__title {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.045em;
  line-height: 1.08;
}

body.page-id-56971 .spo-how .spo-how__subtitle {
  max-width: 70ch;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, .9) !important;
}

body.page-id-56971 .spo-how :is(.spo-how__skipLink, .spo-how__tocLink, .spo-badge) {
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

body.page-id-56971 .spo-how .spo-how__quicklinks .spo-btn--ghost {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .96);
  color: #123e66;
}

body.page-id-56971 .spo-how .spo-note--hero {
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .95);
}

body.page-id-56971 .spo-how .spo-how__frame {
  padding-top: 0;
}

body.page-id-56971 .spo-how :is(.spo-how__quicklist, .spo-step__cta, .spo-panel__cta) {
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.page-id-56971 .spo-how :is(.spo-how__quicklist, .spo-step__cta, .spo-panel__cta) > *,
body.page-id-56971 .spo-how :is(.spo-how__quicklist, .spo-step__cta, .spo-panel__cta) .spo-btn {
  min-width: 0 !important;
  max-width: 100% !important;
}

body.page-id-56971 .spo-how :is(.spo-how__quicklist, .spo-step__cta, .spo-panel__cta) .spo-btn {
  white-space: normal !important;
  text-align: center;
}

@media (max-width: 680px) {
  body.page-id-56971 .spo-how {
    padding-top: 12px;
  }

  body.page-id-56971 .spo-how .spo-heroCard {
    padding: 23px 18px !important;
    border-radius: 20px !important;
  }

  body.page-id-56971 .spo-how .spo-how__container {
    width: calc(100% - 24px) !important;
  }

  body.page-id-56971 .spo-how :is(.spo-how__quicklist, .spo-step__cta, .spo-panel__cta) {
    grid-template-columns: 1fr !important;
  }
}
