/* ============================================================
   PAGES SEGMENT — même vocabulaire que la landing : hero sur le
   dégradé, kicker, accent violet, panneau gris, CTA identiques.
   Ce sont des pages de vente, pas des pages annexes.
   ============================================================ */

  /* ---------- Hero ---------- */
  .sp-hero {
    position: relative; isolation: isolate; overflow: hidden;
    padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 6.5rem);
    background-color: var(--surface-page);
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.42)),
      url('../assets/sun.avif');
    background-position: 0 0, 10% 40%;
    background-repeat: repeat, no-repeat;
    background-size: auto, 2200px;
  }
  .sp-hero::after { z-index: 1; }
  .sp-hero__inner {
    position: relative; z-index: 2;
    display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }
  .sp-hero__inner .kicker { margin-inline: 0; }

  .sp-hero__title { max-width: 18ch; }
  .sp-hero__accent { color: var(--k-purple); }
  .sp-hero__lead {
    margin: var(--space-xl) 0 0; max-width: 54ch;
    font-size: var(--fs-lead); color: var(--text-muted);
  }
  .sp-hero__proof {
    margin: var(--space-lg) 0 0; max-width: 46ch;
    padding-left: 0.95rem; border-left: 3px solid var(--k-purple);
    font-size: 0.9375rem; color: var(--text-primary); line-height: 1.55;
  }
  .sp-hero__proof b {
    font-family: var(--font-display); font-weight: 500;
    font-size: 1.5rem; color: var(--k-purple); margin-right: 0.35rem;
  }
  .sp-hero__cta { margin-top: var(--space-xl); }
  .sp-hero__cta .btn { padding: 0.95rem 1.4rem; font-size: 1rem; }

  /* ---------- Illustration ---------- */
  .sp-hero__visual { min-width: 0; }
  .sp__card {
    background: var(--k-white); border: 1px solid var(--hairline);
    border-radius: var(--radius-panel);
    box-shadow: 0 2px 8px rgba(10, 4, 6, 0.05), 0 22px 54px rgba(55, 12, 130, 0.16);
    overflow: hidden;
  }
  .sp__card-head {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1rem; border-bottom: 1px solid var(--hairline);
    font-size: 0.875rem; font-weight: 500; background: #FBFAFD;
  }
  .sp__dot { width: 8px; height: 8px; border-radius: 50%; background: #17A34A; flex: none; }
  .sp__age { margin-left: auto; font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }
  .sp__card-foot {
    margin: 0; padding: 0.8rem 1rem; border-top: 1px solid var(--hairline);
    font-size: 0.8125rem; color: var(--text-muted);
  }
  .sp__card-foot b { color: var(--text-primary); font-weight: 600; }

  .sp__table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
  .sp__table td { padding: 0.6rem 1rem; border-bottom: 1px solid #F3F0F7; }
  .sp__table tr:last-child td { border-bottom: 0; }
  .sp__table td:first-child { color: var(--text-muted); width: 32%; }
  .sp__table .was { color: #A79FB0; text-decoration: line-through; }
  .sp__table .now { color: var(--text-primary); font-weight: 500; text-align: right; }
  .sp__table .now--flag { color: #0B7A3B; }

  .sp__query {
    margin: 0; padding: 0.85rem 1rem; font-size: 0.875rem;
    border-bottom: 1px solid #F3F0F7; color: var(--text-primary);
  }
  .sp__rows { list-style: none; margin: 0; padding: 0; }
  .sp__rows li {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 1rem; border-bottom: 1px solid #F3F0F7; font-size: 0.875rem;
  }
  .sp__rows li:last-child { border-bottom: 0; }
  .sp__rows .is--out { color: #A79FB0; }
  .sp__av {
    display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
    background: var(--k-purple-bg); color: var(--k-purple-deep);
    font-size: 0.625rem; font-weight: 700; flex: none;
  }
  .sp__score { margin-left: auto; font-size: 0.75rem; color: var(--k-purple); font-weight: 600; }
  .sp__rows .is--out .sp__score { color: #A79FB0; font-weight: 400; }

  .sp__sig { list-style: none; margin: 0; padding: 0; }
  .sp__sig li {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.7rem 1rem; border-bottom: 1px solid #F3F0F7; font-size: 0.875rem;
  }
  .sp__sig li:last-child { border-bottom: 0; }
  .sp__sig li > span {
    width: 8px; height: 8px; border-radius: 50%; background: #DAD3E3; flex: none;
  }
  .sp__sig li.on > span { background: #17A34A; box-shadow: 0 0 0 3px rgba(23,163,74,0.16); }
  .sp__sig li:not(.on) { color: #A79FB0; }
  .sp__sig em { margin-left: auto; font-style: normal; font-size: 0.75rem; color: var(--text-muted); }

  /* ---------- Bande de logos ---------- */
  .sp-rail { padding-block: clamp(2.5rem, 5vw, 3.5rem); overflow: hidden; }
  .sp-rail__claim {
    margin: 0 0 1.2rem; text-align: center;
    font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text-muted);
  }
  .sp-rail__viewport {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  }
  .sp-rail__track { display: flex; width: max-content; animation: sp-rail 28s linear infinite; }
  .sp-rail__row {
    display: flex; align-items: center; gap: clamp(2.5rem, 5vw, 4.5rem);
    margin: 0; padding: 0 clamp(1.25rem, 2.5vw, 2.25rem); list-style: none;
  }
  .sp-rail__logo {
    display: grid; place-items: center; min-width: 7rem; height: 2.4rem;
    border: 1px dashed var(--hairline); border-radius: 8px;
    font-size: 0.8125rem; color: #A79FB0;
  }
  @keyframes sp-rail { to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) {
    .sp-rail__track { animation: none; width: 100%; justify-content: center; }
    .sp-rail__row:last-child { display: none; }
  }

  /* ---------- Témoignage ---------- */
  .sp-quote { text-align: center; }
  .sp-quote figure { margin: 0; }
  .sp-quote__text {
    margin: 0 auto; max-width: 30ch; quotes: none; text-wrap: balance;
    font-family: var(--font-display); font-weight: 500;
    font-size: clamp(1.5rem, 1rem + 2.1vw, 2.375rem);
    line-height: 1.12; letter-spacing: -0.01em; color: var(--text-primary);
  }
  .sp-quote__by {
    margin-top: clamp(1.75rem, 3vw, 2.5rem);
    display: flex; flex-direction: column; gap: 0.2rem;
    font-size: 0.8125rem; line-height: 1.5;
  }
  .sp-quote__name { font-weight: 500; color: var(--text-primary); font-style: normal; }
  .sp-quote__role { color: var(--text-muted); }

  /* ---------- Comment ça marche pour vous ---------- */
  .sp-how { position: relative; isolation: isolate; }
  .sp-how__title {
    text-align: center; max-width: 22ch; margin-inline: auto;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  }
  .sp-how__list {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: var(--space-lg);
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sp-how__item {
    display: flex; flex-direction: column; gap: var(--space-md);
    background: var(--k-white); border: 1px solid var(--hairline);
    border-radius: var(--radius-panel);
    padding: clamp(1.4rem, 2.2vw, 2rem);
  }
  .sp-how__n {
    display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px;
    background: var(--k-purple-bg); color: var(--k-purple);
    font-family: var(--font-display); font-weight: 500; font-size: 1rem;
  }
  .sp-how__h { margin: 0; font-size: 1.1875rem; }
  .sp-how__p { margin: 0.6rem 0 0; font-size: 0.9375rem; line-height: 1.6; color: var(--text-muted); }
  .sp-how__bullets { list-style: none; margin: var(--space-md) 0 0; padding: 0;
    display: flex; flex-direction: column; gap: 0.6rem; }
  .sp-how__bullets li {
    position: relative; padding-left: 1.5rem; font-size: 0.875rem; line-height: 1.5;
  }
  .sp-how__bullets li::before {
    content: '\2192'; position: absolute; left: 0; color: var(--k-purple);
  }
  .sp-how__cta { display: flex; justify-content: center; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
  .sp-how__cta .btn { padding: 0.95rem 1.4rem; font-size: 1rem; }

  @media (max-width: 960px) {
    .sp-hero__inner { grid-template-columns: 1fr; }
    .sp-how__list { grid-template-columns: 1fr; }
    .sp-hero__title { max-width: 100%; }
  }

  /* ---------- Puces du hero ---------- */
  .sp-hero__bul {
    list-style: none; margin: var(--space-lg) 0 0; padding: 0;
    display: flex; flex-direction: column; gap: 0.55rem;
  }
  .sp-hero__bul li {
    position: relative; padding-left: 1.65rem;
    font-size: 0.9375rem; line-height: 1.5; color: var(--text-primary);
  }
  /* Mêmes flèches que les listes de la landing, pas des pastilles. */
  .sp-hero__bul li::before {
    content: '\2192'; position: absolute; left: 0; top: 0;
    color: var(--k-purple); font-weight: 600;
  }

  /* ---------- Illustration sourcing ---------- */
  .sp__brief { padding: 0.9rem 1rem; border-bottom: 1px solid #F3F0F7; }
  .sp__brief-k {
    margin: 0 0 0.35rem; font-size: 0.625rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
  }
  .sp__brief-t { margin: 0; font-size: 0.8125rem; line-height: 1.5; color: var(--text-primary); }
  .sp__caret {
    display: inline-block; width: 2px; height: 0.95em; margin-left: 2px;
    vertical-align: -0.15em; background: var(--k-purple);
    animation: sp-caret 1.05s steps(1) infinite;
  }
  @keyframes sp-caret { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

  .sp__filters { list-style: none; margin: 0; padding: 0.35rem 0; }
  .sp__filters li {
    display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem;
    padding: 0.42rem 1rem; font-size: 0.75rem;
  }
  .sp__filters li > span { width: 5.5rem; flex: none; color: var(--text-muted); }
  .sp__filters li > span::after { content: ' \2192'; color: var(--k-purple); }
  .sp__filters i {
    font-style: normal; background: var(--k-white);
    border: 1px solid var(--hairline); border-radius: var(--radius-pill);
    padding: 0.15rem 0.5rem; color: var(--text-primary);
    opacity: 0; animation: sp-chip 0.35s ease forwards;
  }
  .sp__filters li:nth-child(1) i { animation-delay: 0.35s; }
  .sp__filters li:nth-child(2) i { animation-delay: 0.65s; }
  .sp__filters li:nth-child(3) i { animation-delay: 0.95s; }
  .sp__filters li:nth-child(4) i { animation-delay: 1.25s; }
  .sp__filters li:nth-child(5) i { animation-delay: 1.55s; }
  .sp__filters i.no { border-color: rgba(225, 29, 72, 0.4); color: #B91C3C; }
  .sp__filters i.more { background: var(--k-purple-bg); border-color: rgba(124,58,237,0.3); color: var(--k-purple); }
  @keyframes sp-chip { to { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) {
    .sp__filters i { opacity: 1; animation: none; }
    .sp__caret { animation: none; }
  }

  /* ---------- Build vs buy ---------- */
  .sp-why { position: relative; isolation: isolate; }
  .sp-why .kicker { margin-inline: auto; }
  .sp-why__title {
    text-align: center; max-width: 20ch; margin-inline: auto;
    margin-bottom: clamp(2rem, 4vw, 3rem);
  }
  .sp-why__list {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: var(--space-md);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 62rem; margin-inline: auto;
  }
  .sp-why__list li {
    padding: clamp(1.2rem, 2vw, 1.6rem);
    background: var(--k-white); border: 1px solid var(--hairline);
    border-radius: var(--radius-card);
    font-size: 0.9375rem; line-height: 1.6; color: var(--text-muted);
  }
  .sp-why__list b {
    display: block; margin-bottom: 0.35rem;
    font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem;
    color: var(--text-primary);
  }
  @media (max-width: 780px) { .sp-why__list { grid-template-columns: 1fr; } }
