/* ==========================================================================
   ClipForSocial — habillage "app mobile"
   Se charge APRÈS style.css : reprend les tokens (couleurs, police, ombres)
   et ajoute des composants propres à l'expérience mobile (cadre app, puces
   défilantes, timeline verticale, liste compacte, barre CTA collante).
   ========================================================================== */

body.app-body {
  background: var(--black);
  min-height: 100vh;
}

.app-shell {
  max-width: 460px;
  margin: 0 auto;
  background: var(--white);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 96px; /* laisse la place à la barre CTA collante */
}
@media (min-width: 560px) {
  body.app-body { padding: 36px 0; }
  .app-shell {
    min-height: calc(100vh - 72px);
    border-radius: 44px;
    box-shadow:
      0 40px 100px rgba(0,0,0,0.55),
      0 0 0 10px #06110c,
      0 0 0 11px rgba(255,255,255,0.07);
  }
}

/* ---------- Barre du haut ---------- */
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 6px;
}
.app-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gray-500);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 13px;
}
.app-switch svg { width: 13px; height: 13px; }

/* ---------- Hero app ---------- */
.app-hero {
  background:
    radial-gradient(ellipse 480px 280px at 15% 0%, rgba(34,151,96,0.4), transparent 65%),
    var(--black);
  color: var(--white);
  padding: 22px 22px 34px;
  text-align: center;
}
.app-hero .eyebrow {
  background: rgba(255,255,255,0.1);
  color: var(--green-light);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 11px;
  padding: 5px 12px 5px 9px;
}
.app-hero .eyebrow::before { background: var(--green-light); box-shadow: 0 0 8px var(--green-light); }
.app-hero h1 {
  color: var(--white);
  font-size: clamp(27px, 8.5vw, 33px);
  line-height: 1.15;
  margin: 14px 0 10px;
  text-wrap: balance;
}
.app-hero h1 .accent {
  background: linear-gradient(120deg, var(--green-light), #6fe3ac);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.app-hero p.lead {
  color: rgba(255,255,255,0.7);
  font-size: 14.5px;
  margin: 0 0 22px;
}
.app-hero .btn { width: 100%; max-width: none; }
.app-hero .app-link {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
}

/* ---------- Puces défilantes (bandeau engagements) ---------- */
.chip-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  scroll-snap-align: start;
  flex: none;
  background: var(--green-tint-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  min-width: 136px;
}
.chip strong { display: block; font-size: 22px; font-weight: 900; color: var(--green-dark); letter-spacing: -0.02em; }
.chip span { display: block; font-size: 11.5px; color: var(--gray-500); margin-top: 4px; line-height: 1.35; }

/* ---------- Sections app ---------- */
.app-section { padding: 30px 22px; }
.app-section.tint { background: var(--green-tint-2); }
.app-section .eyebrow { font-size: 11px; margin-bottom: 10px; }
.app-section h2 { font-size: 20px; margin-bottom: 6px; }
.app-section p.lead { font-size: 14px; margin-bottom: 4px; }

/* ---------- Cartes "problème" en carrousel horizontal ---------- */
.swipe-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 22px 4px;
  margin: 0 -22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.swipe-row::-webkit-scrollbar { display: none; }
.swipe-card {
  scroll-snap-align: start;
  flex: none;
  width: 76%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.swipe-card p { margin: 10px 0 0; font-size: 14px; color: var(--gray-700); }
.swipe-hint { text-align: right; font-size: 11.5px; color: var(--gray-400); margin-top: 2px; }

/* ---------- Timeline verticale (comment ça marche) ---------- */
.timeline { position: relative; padding: 14px 4px 0 40px; margin-top: 4px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 13px; top: 6px; bottom: 10px;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-num {
  position: absolute;
  left: -40px; top: -1px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 0 0 4px var(--green-tint-2);
}
.timeline-item h3 { font-size: 15px; margin-bottom: 3px; }
.timeline-item p { font-size: 13.5px; color: var(--gray-500); margin: 0; }

/* ---------- Liste de services compacte ---------- */
.service-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.service-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 15px;
}
.service-row .num {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--green-tint);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.service-row.highlight { background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%); border-color: transparent; }
.service-row.highlight .num { background: rgba(255,255,255,0.18); color: var(--white); }
.service-row.highlight h3, .service-row.highlight p { color: var(--white); }
.service-row.highlight p { color: rgba(255,255,255,0.82); }
.service-row h3 { font-size: 14px; margin: 0 0 2px; }
.service-row p { font-size: 12.5px; color: var(--gray-500); margin: 0; }

/* ---------- Comparatif condensé ---------- */
.compare-mini { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.compare-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 15px;
}
.compare-mini-row span { font-size: 13px; color: var(--gray-700); }
.compare-mini-row strong { font-size: 12.5px; font-weight: 800; color: var(--green-dark); text-align: right; flex: none; }

/* ---------- Crédibilité (carte compacte) ---------- */
.app-section .credibility-card { padding: 24px 20px; }
.app-section .credibility-card blockquote { font-size: 15px; }

/* ---------- CTA final app ---------- */
.app-cta { background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%); color: var(--white); text-align: center; }
.app-cta .recap-list { margin: 20px 0 26px; max-width: none; }
.app-cta .btn { width: 100%; max-width: none; }

/* ---------- Footer app ---------- */
.app-footer { padding: 26px 22px 22px; text-align: center; background: var(--black); color: rgba(255,255,255,0.5); }
.app-footer .legal-links { font-size: 12.5px; margin-bottom: 12px; }
.app-footer .legal-links a { margin: 0 8px; color: rgba(255,255,255,0.65); }
.app-footer .copyright { font-size: 11px; color: rgba(255,255,255,0.35); }

/* ---------- Barre CTA collante ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-top: 1px solid var(--border);
  padding: 12px 22px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
}
@media (min-width: 560px) {
  .sticky-cta { max-width: 460px; margin: 0 auto; }
}
.sticky-cta .btn { max-width: none; min-height: 52px; font-size: 15.5px; }
