/* ═══════════════════════════════════════════════════════════
   SCROLL STOP — offres.css
   Police Geist + sections ajoutées au template (portfolio vidéo,
   inclus, tarifs, abonnements, FAQ, CTA final). Tout est piloté par
   les tokens de styles.css : le thème et l'accent suivent.
   ═══════════════════════════════════════════════════════════ */

:root {
  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ═══════════ PORTFOLIO VIDÉO 9:16 (dans le panneau #travaux) ═══════════ */
.ss-reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 300px));
  justify-content: center;
  gap: clamp(16px, 2.4vw, 40px);
  margin: 0 auto 16vh;
  position: relative; z-index: 2;
}
.ss-reel:nth-child(2) { margin-top: 8vh; }
.ss-reel-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bone);
  box-shadow: 0 0 0 1px rgba(var(--ink-rgb), 0.08), 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}
.ss-reel-poster, .ss-reel video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 0; max-width: none;
}
.ss-reel-poster { animation: ss-kb 14s ease-in-out infinite alternate; }
.ss-reel:nth-child(2) .ss-reel-poster { animation-delay: -5s; }
.ss-reel:nth-child(3) .ss-reel-poster { animation-delay: -9s; }
@keyframes ss-kb { from { transform: scale(1.02); } to { transform: scale(1.14) translateY(-2%); } }
.ss-reel video { opacity: 0; transition: opacity .6s var(--ease-out); }
.ss-reel.has-video video { opacity: 1; }
.ss-reel figcaption { margin-top: 14px; font-size: 19px; letter-spacing: -0.007em; }
.ss-reel figcaption .mono { display: block; color: var(--ash); margin-top: 3px; }

.ss-forwho { text-align: center; margin-bottom: 7vh; position: relative; z-index: 2; }

/* ═══════════ SECTIONS AJOUTÉES — base commune ═══════════ */
.ss-section {
  position: relative; z-index: 2;
  background: var(--bone);
  padding: 18vh var(--gutter) 6vh;
}
.ss-head { text-align: center; max-width: 900px; margin: 0 auto 9vh; }
.ss-title {
  font-size: var(--t-heading);
  letter-spacing: -0.02em; line-height: 1.12;
  margin-top: 16px;
}
.ss-sub { color: var(--ash); margin-top: 14px; }
.ss-note { text-align: center; margin-top: 6vh; }

/* boutons */
.ss-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 15px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--ink-rgb), 0.22);
  color: var(--ink);
  transition: background .3s var(--ease-out), border-color .3s, filter .3s;
  text-align: center;
}
.ss-btn:hover { border-color: var(--ink); }
.ss-btn-accent { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.ss-btn-accent:hover { filter: brightness(0.94); border-color: var(--lime); }

/* ═══════════ CE QUI EST INCLUS ═══════════ */
.ss-incl {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1280px; margin: 0 auto;
  border-top: 1px solid var(--ink-faint);
}
.ss-incl li { padding: 28px 28px 8px 0; }
.ss-incl li + li { padding-left: 28px; border-left: 1px solid var(--ink-faint); }
.ss-incl-n { color: var(--lime); display: block; margin-bottom: 44px; }
.ss-incl h3 { font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -0.02em; margin-bottom: 12px; }
.ss-incl p { color: var(--ash); font-size: 17px; line-height: 1.45; }

/* ═══════════ CARTES DE PRIX ═══════════ */
.ss-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  border-radius: var(--radius);
  padding: 30px 28px 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.ss-price { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.ss-amount {
  font-size: clamp(54px, 5.6vw, 84px); font-weight: 300;
  letter-spacing: -0.045em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ss-cur { font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; color: var(--ash); }
.ss-card-note { color: var(--ash); font-size: 17px; }
.ss-card .ss-btn { margin-top: auto; }

.ss-unit {
  display: grid; grid-template-columns: repeat(2, minmax(0, 440px));
  justify-content: center; gap: clamp(14px, 1.8vw, 24px);
}
.ss-split { list-style: none; border-top: 1px solid var(--ink-faint); margin: 8px 0 18px; }
.ss-split li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--ink-faint); }
.ss-split li span:last-child { color: var(--ink); }
.ss-split li span:first-child { color: var(--ash); }

/* ═══════════ ABONNEMENTS ═══════════ */
.ss-switch {
  position: relative;
  display: inline-grid; grid-template-columns: 1fr 1fr;
  margin-top: 34px; padding: 4px;
  background: var(--white);
  border: 1px solid rgba(var(--ink-rgb), 0.1);
  border-radius: 999px;
}
.ss-switch button {
  position: relative; z-index: 1;
  appearance: none; border: 0; background: none; cursor: pointer;
  color: var(--ash);
  padding: 11px 26px;
  transition: color .35s var(--ease-out);
}
.ss-switch button[aria-pressed="true"] { color: var(--lime-ink); }
.ss-switch-knob {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  background: var(--lime); border-radius: 999px;
  transition: transform .5s var(--ease-inout);
}
.ss-switch.is-30 .ss-switch-knob { transform: translateX(100%); }

.ss-plans {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
  max-width: 1320px; margin: 0 auto;
  transition: opacity .18s linear;
}
.ss-plans.swapping { opacity: 0; }
.ss-plan h3 { font-size: clamp(30px, 2.6vw, 40px); letter-spacing: -0.02em; }
.ss-plan .ss-amount { font-size: clamp(46px, 4.2vw, 66px); }
.ss-per { color: var(--ash); margin-bottom: 12px; }
.ss-per em { font-style: normal; color: var(--lime); display: block; margin-top: 4px; }
.ss-plan.is-reco { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 40px 90px -40px rgba(169, 231, 245, 0.35); }
.ss-badge {
  position: absolute; top: -11px; left: 26px;
  background: var(--lime); color: var(--lime-ink);
  padding: 4px 9px; border-radius: var(--radius);
  font-size: 11px;
}

/* ═══════════ PARRAINAGE ═══════════ */
.ss-parrain { padding-bottom: 0; }
.ss-parrain .ss-head { margin-bottom: 0; }
.ss-parrain .ss-sub { font-size: clamp(18px, 1.5vw, 22px); max-width: 34em; margin-left: auto; margin-right: auto; }
.ss-parrain-cta { display: flex; justify-content: center; margin-top: 30px; }
.ss-parrain-fine { margin: 22px auto 0; max-width: 46em; font-size: 11px; line-height: 1.6; letter-spacing: .04em; }

/* ═══════════ FAQ ═══════════ */
.ss-faq { padding-bottom: 6vh; }
.ss-faq-list { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--ink-faint); }
.ss-q { border-bottom: 1px solid var(--ink-faint); }
.ss-q summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0;
  font-size: clamp(20px, 1.9vw, 27px); letter-spacing: -0.015em;
}
.ss-q summary::-webkit-details-marker { display: none; }
.ss-q-plus { position: relative; flex: 0 0 16px; height: 16px; }
.ss-q-plus::before, .ss-q-plus::after {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 16px; height: 1px; background: var(--ink);
  transition: transform .4s var(--ease-inout);
}
.ss-q-plus::after { transform: rotate(90deg); }
.ss-q[open] .ss-q-plus::after { transform: rotate(0deg); }
.ss-q p { color: var(--ash); font-size: 18px; line-height: 1.5; padding: 0 48px 28px 0; max-width: 40em; }

/* ═══════════ CTA FINAL (footer) ═══════════ */
.ss-final-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1100px) {
  .ss-plans { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
  .ss-incl { grid-template-columns: repeat(2, 1fr); }
  .ss-incl li:nth-child(3) { padding-left: 0; border-left: 0; }
  .ss-incl li:nth-child(n+3) { border-top: 1px solid var(--ink-faint); }
}

@media (max-width: 900px) {
  /* le portfolio devient un carrousel horizontal à glisser au doigt */
  .ss-reels {
    grid-template-columns: none;
    grid-auto-flow: column; grid-auto-columns: 68vw;
    justify-content: start;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter)) 10vh;
    padding: 0 var(--gutter) 8px;
    scrollbar-width: none;
  }
  .ss-reels::-webkit-scrollbar { display: none; }
  .ss-reel { scroll-snap-align: center; }
  .ss-reel:nth-child(2) { margin-top: 0; }
  .ss-reel figcaption { font-size: 16px; }

  .ss-section { padding: 12vh var(--gutter) 4vh; }
  .ss-head { margin-bottom: 6vh; }
  .ss-sub { font-size: 17px; }
  .ss-unit { grid-template-columns: 1fr; }
  .ss-plans { grid-template-columns: 1fr; max-width: 520px; }
  .ss-card { padding: 26px 22px 22px; }
  .ss-q summary { font-size: 19px; padding: 22px 0; }
  .ss-q p { font-size: 16px; padding-right: 0; }
  .ss-faq { padding-bottom: 4vh; }
  .ss-final-ctas .ss-btn { width: 100%; max-width: 360px; }
}

@media (max-width: 560px) {
  .ss-incl { grid-template-columns: 1fr; }
  .ss-incl li, .ss-incl li + li { padding: 22px 0 18px; border-left: 0; }
  .ss-incl li + li { border-top: 1px solid var(--ink-faint); }
  .ss-incl-n { margin-bottom: 18px; }
}

/* ═══════════ OUVERTURE · LOGO EN PAILLETTES (paillettes.js) ═══════════ */
#sparkles {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 50;               /* au-dessus du contenu, sous la barre (100) et le loader (200) */
  pointer-events: none; display: block;
}
.ss-intro {
  position: relative; z-index: 1;
  height: 100vh;
  background: radial-gradient(90% 70% at 50% 42%, rgba(169, 231, 245, 0.07), transparent 70%), var(--bone);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 7vh; text-align: center;
}
.ss-intro-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ss-intro-hint .hint-touch { display: none; }
@media (hover: none) {
  .ss-intro-hint .hint-mouse { display: none; }
  .ss-intro-hint .hint-touch { display: inline; }
}
.ss-intro-line {
  width: 1px; height: 46px; margin-top: 6px;
  background: linear-gradient(var(--lime), transparent);
  animation: ss-hint 2.2s var(--ease-inout) infinite;
  transform-origin: 50% 0;
}
@keyframes ss-hint {
  0% { transform: scaleY(0); transform-origin: 50% 0; }
  50% { transform: scaleY(1); transform-origin: 50% 0; }
  51% { transform-origin: 50% 100%; }
  100% { transform: scaleY(0); transform-origin: 50% 100%; }
}
/* repli sans WebGL : le logo en texte */
.ss-intro-fb { display: none; }
.no-gl .ss-intro-fb {
  display: flex; align-items: center; gap: .25em;
  margin: auto 0;
  font-size: clamp(3rem, 11vw, 8rem); font-weight: 500; letter-spacing: -0.04em;
}
.ss-dot { width: .5em; height: .5em; border-radius: 50%; background: var(--lime); display: inline-block; }
/* en bas de page, les paillettes reforment le logo à la place du grand nom */
/* en bas, les paillettes dispersées remplacent le grand nom du footer */
.has-gl .footer-name .ch { visibility: hidden; }
.ss-plan-note { font-size: 11px; margin: -4px 0 10px; }

/* devise : la phrase sous chaque mot, lisible (plus grande, casse normale) */
.s-motto .motto-hint {
  font-family: var(--sans); text-transform: none; letter-spacing: -0.01em;
  font-size: clamp(19px, 2.3vw, 32px); line-height: 1.25; font-weight: 500;
  width: max-content; max-width: 88vw;
}

/* choix du canal pour l'aperçu gratuit */
.ss-pick { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px;
  background: rgba(5, 8, 10, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .25s; }
.ss-pick.is-open { opacity: 1; pointer-events: auto; }
.ss-pick-box { position: relative; width: min(440px, 100%); background: var(--bone, #111); color: var(--ink);
  border: 1px solid rgba(169, 231, 245, .22); border-radius: 18px; padding: 34px 28px 26px;
  transform: translateY(14px) scale(.98); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.ss-pick.is-open .ss-pick-box { transform: none; }
.ss-pick-box h3 { font-family: var(--sans); font-size: clamp(26px, 4vw, 34px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 10px 0 10px; }
.ss-pick-box > p { margin: 0 0 22px; opacity: .8; font-size: 16px; line-height: 1.45; }
.ss-pick-opts { display: grid; gap: 10px; }
.ss-pick-opts .ss-btn { width: 100%; justify-content: center; text-align: center; }
.ss-pick-foot { margin: 18px 0 0; text-align: center; }
.ss-pick-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14); background: none; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.s-motto .motto-kicker { font-size: clamp(14px, 1.5vw, 20px); letter-spacing: .08em; opacity: .85; white-space: nowrap; font-weight: 500; }
/* mobile seulement : la phrase remonte juste sous le mot, hors de portée de la barre du navigateur */
@media (max-width: 900px) {
  .s-motto .motto-hint { bottom: auto; top: calc(50% + 25vw); }
}

/* traînée de photos : active dès que la scène entre, sans zone morte */
.s-final .pin, .s-final .trail { overflow: visible; }

/* signature du fondateur : elle s'écrit au fil du défilement */
.ss-sign { margin: 7vh auto 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ss-sig-box { position: relative; display: inline-block; width: clamp(230px, 34vw, 420px);
  filter: drop-shadow(0 6px 26px rgba(169, 231, 245, .32)); }
.ss-sig { display: block; width: 100%; aspect-ratio: 1600 / 707;
  background: linear-gradient(95deg, #f2fdff 0%, #a9e7f5 40%, #6fd0ea 70%, #4aa9e0 100%);
  -webkit-mask: url("images/signature.png?v=3") center / 100% 100% no-repeat; mask: url("images/signature.png?v=3") center / 100% 100% no-repeat;
  clip-path: inset(-20% 100% -20% 0); }
.ss-sig-pen { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 16px 6px rgba(169, 231, 245, .85); top: 55%; left: 0; opacity: 0; pointer-events: none; }
.ss-sign-note { color: var(--ash, #8a8a8a); }
