/* Page /shopify. Espace de noms .sh-*. Couleurs : uniquement les jetons de variables.css.
   Les maquettes (téléphone, navigateur) reprennent le rendu réel des blocs de l'extension
   Shopify (extensions/caast-theme/assets/caast.css) ; seules les vignettes sont cliquables. */

.sh {
  --sh-ink: var(--color-primary);
  --sh-violet: var(--color-secondary);
  --sh-live: var(--color-live);
  --sh-white: var(--color-white);
  --sh-text-2: color-mix(in srgb, var(--color-primary) 72%, var(--color-white));
  --sh-line: color-mix(in srgb, var(--color-primary) 11%, transparent);
  --sh-mist: color-mix(in srgb, var(--color-light) 24%, var(--color-white));
  --sh-tint: color-mix(in srgb, var(--color-secondary) 8%, var(--color-white));
  --sh-on-ink-2: color-mix(in srgb, var(--color-white) 74%, var(--color-primary));
  --sh-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --sh-shadow: 0 1px 2px color-mix(in srgb, var(--color-primary) 6%, transparent), 0 12px 32px -8px color-mix(in srgb, var(--color-primary) 18%, transparent);
  --sh-shadow-lg: 0 2px 4px color-mix(in srgb, var(--color-primary) 6%, transparent), 0 32px 64px -24px color-mix(in srgb, var(--color-primary) 32%, transparent);
  --sh-section: clamp(4.5rem, 8vw, 7.5rem);
  color: var(--sh-ink);
  -webkit-font-smoothing: antialiased;
}

/* Ancres : la nav fixe fait 72 px */
.sh [id] { scroll-margin-top: 88px; }
.sh :focus-visible { outline: 2px solid var(--sh-violet); outline-offset: 3px; border-radius: 6px; }
.sh a:not(.btn) { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.sh .btn { transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 140ms var(--sh-ease-out); touch-action: manipulation; }
.sh .btn .material-symbols-rounded { font-size: 18px; }
.sh .btn:active { transform: scale(0.97); }
.sh-nw { white-space: nowrap; }
.sh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typographie commune ---------- */
.sh-section { padding-block: var(--sh-section); }
.sh-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.sh-h2 { font-size: clamp(1.875rem, 1.25rem + 2.1vw, 2.875rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.028em; text-wrap: balance; color: var(--sh-ink); }
.sh-h3 { font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.012em; text-wrap: balance; }
.sh-lead { margin-top: 1rem; font-size: var(--fs-lg); line-height: 1.55; color: var(--sh-text-2); text-wrap: pretty; }
.sh-label { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.75rem; border-radius: 999px; background: var(--sh-tint); color: var(--sh-violet); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.01em; }
.sh-label .material-symbols-rounded { font-size: 18px; }

/* ---------- Hero ---------- */
.sh-hero { padding-block: clamp(6.5rem, 10vw, 8rem) clamp(3.5rem, 6vw, 5rem); background: linear-gradient(180deg, var(--sh-mist), var(--sh-white)); overflow: hidden; }
.sh-hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .sh-hero__grid { grid-template-columns: 1.08fr 0.92fr; } }
.sh-hero__title { margin-top: 1.1rem; font-size: clamp(2.375rem, 1.5rem + 3.6vw, 4rem); font-weight: 800; line-height: 1.03; letter-spacing: -0.035em; text-wrap: balance; }
.sh-hero__sub { margin-top: 1.25rem; max-width: 34rem; font-size: var(--fs-lg); line-height: 1.55; color: var(--sh-text-2); text-wrap: pretty; }
.sh-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.sh-hero__facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1.5rem; padding: 0; list-style: none; font-size: var(--fs-sm); font-weight: 600; color: var(--sh-text-2); }
.sh-hero__facts li { display: inline-flex; align-items: center; gap: 0.35rem; }
.sh-hero__facts .material-symbols-rounded { font-size: 18px; color: var(--sh-violet); }
.sh-hero__proof { margin-top: 1.5rem; font-size: var(--fs-sm); color: var(--sh-text-2); }
.sh-hero__visual { display: grid; justify-items: center; gap: 1rem; }
.sh-hero__hint { display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--fs-sm); font-weight: 600; color: var(--sh-violet); }
.sh-hero__hint .material-symbols-rounded { font-size: 18px; }

/* Téléphone : une fiche produit de boutique Shopify avec les blocs Caast */
.sh-phone { width: min(100%, 21rem); padding: 0.6rem; border-radius: 2.6rem; background: var(--sh-ink); box-shadow: var(--sh-shadow-lg); }
.sh-phone__screen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; padding: 1rem 1rem 1.25rem; border-radius: 2.05rem; background: var(--sh-white); }
.sh-shop__bar { display: flex; justify-content: space-between; align-items: center; font-weight: 800; letter-spacing: -0.01em; }
.sh-shop__bar .material-symbols-rounded { font-size: 22px; }
.sh-live { min-width: 0; display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.7rem; border-radius: 0.75rem; background: var(--sh-tint); font-size: 0.8rem; font-weight: 600; }
.sh-live__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-shop__product { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.85rem; align-items: center; }
.sh-shop__product img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 0.9rem; background: var(--sh-mist); }
.sh-shop__name { font-weight: 700; line-height: 1.3; font-size: 0.95rem; }
.sh-shop__price { margin-top: 0.35rem; font-weight: 800; }
.sh-stories__title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sh-text-2); }
.sh-stories { display: flex; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.sh-story { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 4.5rem; aspect-ratio: 1; padding: 3px; border-radius: 50%; background: conic-gradient(from 180deg, var(--gradient-start), var(--gradient-mid), var(--sh-live), var(--gradient-start)); transition: transform 160ms var(--sh-ease-out); }
.sh-story img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid var(--sh-white); display: block; }
.sh-story:hover { transform: scale(1.05); }
.sh-story:focus-visible { outline: 2px solid var(--sh-violet); outline-offset: 3px; }
.sh-shop__cart { display: block; padding: 0.8rem; border-radius: 999px; background: var(--sh-ink); color: var(--sh-white); text-align: center; font-weight: 700; font-size: 0.9rem; }

/* Badges, comme ceux de l'extension */
.sh-badge { display: inline-block; padding: 0.15rem 0.45rem; border-radius: 0.3rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; color: var(--sh-white); background: color-mix(in srgb, var(--color-primary) 70%, transparent); white-space: nowrap; }
.sh-badge--live { background: var(--sh-live); }
.sh-badge--live::before { content: ""; display: inline-block; width: 0.4rem; height: 0.4rem; margin-right: 0.3rem; border-radius: 50%; background: var(--sh-white); vertical-align: middle; animation: sh-pulse 1.4s ease-in-out infinite; }
@keyframes sh-pulse { 50% { opacity: 0.3; } }

/* ---------- Logos ---------- */
.sh-logos { padding-block: 2.25rem; border-block: 1px solid var(--sh-line); }
.sh-logos__inner { display: grid; gap: 1.25rem; justify-items: center; }
.sh-logos__title { font-size: var(--fs-sm); font-weight: 600; color: var(--sh-text-2); text-align: center; }
.sh-logos__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 2.75rem; margin: 0; padding: 0; list-style: none; }
.sh-logos__list img { height: 28px; width: auto; filter: grayscale(1); opacity: 0.7; }

/* ---------- Démo : navigateur avec la section de vidéos ---------- */
.sh-browser { border-radius: 1.25rem; background: var(--sh-white); box-shadow: var(--sh-shadow-lg); border: 1px solid var(--sh-line); overflow: hidden; }
.sh-browser__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.75rem 1rem; background: var(--sh-mist); border-bottom: 1px solid var(--sh-line); }
.sh-browser__bar span { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: color-mix(in srgb, var(--color-primary) 18%, var(--color-white)); }
.sh-browser__bar p { margin-left: 0.75rem; padding: 0.25rem 0.9rem; border-radius: 999px; background: var(--sh-white); font-size: 0.8rem; color: var(--sh-text-2); }
.sh-browser__page { padding: clamp(1.25rem, 3vw, 2.5rem); }
.sh-browser__heading { margin-bottom: 1rem; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); font-weight: 800; letter-spacing: -0.015em; }
.sh-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(9.5rem, 1fr); gap: 0.85rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0; padding: 0 0 0.5rem; list-style: none; }
@media (min-width: 750px) { .sh-rail { grid-auto-columns: minmax(11rem, 14rem); } }
.sh-rail > li { scroll-snap-align: start; }
.sh-card { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 0.5rem; width: 100%; }
.sh-card:focus-visible { outline: 2px solid var(--sh-violet); outline-offset: 3px; border-radius: 12px; }
.sh-card__media { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--sh-mist); }
.sh-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms ease; }
.sh-card:hover .sh-card__media img { transform: scale(1.04); }
.sh-card__media .sh-badge { position: absolute; top: 0.5rem; left: 0.5rem; }
.sh-card__play { position: absolute; right: 0.5rem; bottom: 0.5rem; width: 2rem; height: 2rem; border-radius: 50%; background: color-mix(in srgb, var(--color-primary) 55%, transparent); }
.sh-card__play::after { content: ""; position: absolute; left: 0.8rem; top: 0.6rem; border-style: solid; border-width: 0.4rem 0 0.4rem 0.65rem; border-color: transparent transparent transparent var(--sh-white); }
.sh-card__title { font-size: 0.9rem; font-weight: 600; line-height: 1.3; }

/* ---------- Étapes ---------- */
.sh-steps { background: var(--sh-mist); }
.sh-steps__list { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
@media (min-width: 860px) { .sh-steps__list { grid-template-columns: repeat(3, 1fr); } }
.sh-step { position: relative; display: grid; gap: 0.6rem; align-content: start; padding: 1.75rem; border-radius: 1.25rem; background: var(--sh-white); box-shadow: var(--sh-shadow); }
.sh-step p { color: var(--sh-text-2); line-height: 1.55; }
.sh-step__num { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--sh-ink); color: var(--sh-white); font-weight: 800; }

/* ---------- Fonctionnalités ---------- */
.sh-features__grid { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .sh-features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .sh-features__grid { grid-template-columns: repeat(3, 1fr); } }
.sh-feature { display: grid; gap: 0.6rem; align-content: start; padding: 1.6rem; border-radius: 1.25rem; border: 1px solid var(--sh-line); background: var(--sh-white); }
.sh-feature > .material-symbols-rounded { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.85rem; background: var(--sh-tint); color: var(--sh-violet); font-size: 24px; }
.sh-feature p { color: var(--sh-text-2); line-height: 1.55; }

/* ---------- Performance (fond encre) ---------- */
.sh-perf { background: var(--sh-ink); color: var(--sh-white); }
.sh-perf .sh-h2 { color: var(--sh-white); }
.sh-head--on-ink .sh-lead { color: var(--sh-on-ink-2); }
.sh-perf__grid { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .sh-perf__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .sh-perf__grid { grid-template-columns: repeat(4, 1fr); } }
.sh-perf__grid li { display: grid; gap: 0.4rem; align-content: start; padding: 1.5rem; border-radius: 1.25rem; background: color-mix(in srgb, var(--color-white) 6%, transparent); border: 1px solid color-mix(in srgb, var(--color-white) 12%, transparent); }
.sh-perf__grid strong { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sh-perf__grid span { color: var(--sh-on-ink-2); line-height: 1.5; }
.sh-perf__note { margin-top: 1.5rem; color: var(--sh-on-ink-2); }

/* ---------- Studio ---------- */
.sh-studio__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .sh-studio__grid { grid-template-columns: 1.1fr 0.9fr; } }
.sh-studio__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.sh-studio__shot img { width: 100%; height: auto; max-height: 34rem; object-fit: cover; border-radius: 1.5rem; box-shadow: var(--sh-shadow-lg); }

/* ---------- Comparatif ---------- */
.sh-compare { background: var(--sh-mist); }
.sh-compare__wrap { overflow-x: auto; border-radius: 1.25rem; background: var(--sh-white); box-shadow: var(--sh-shadow); }
.sh-compare__table { width: 100%; min-width: 44rem; border-collapse: collapse; font-size: var(--fs-sm); }
.sh-compare__table th, .sh-compare__table td { padding: 1rem 1.1rem; text-align: left; border-bottom: 1px solid var(--sh-line); vertical-align: middle; }
.sh-compare__table thead th { font-weight: 700; color: var(--sh-text-2); }
.sh-compare__table tbody th { font-weight: 600; }
.sh-compare__table tbody tr:last-child > * { border-bottom: 0; }
.sh-compare__us { background: var(--sh-tint); }
.sh-compare__table thead .sh-compare__us { color: var(--sh-violet); font-weight: 800; }
.sh-yes, .sh-no, .sh-maybe { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; }
.sh-yes::before, .sh-no::before, .sh-maybe::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; }
.sh-yes::before { background: var(--sh-violet); }
.sh-no { color: var(--sh-text-2); }
.sh-no::before { background: color-mix(in srgb, var(--color-primary) 22%, var(--color-white)); }
.sh-maybe { color: var(--sh-text-2); }
.sh-maybe::before { background: var(--color-soft); }

/* ---------- FAQ et final ---------- */
.sh-faq__title { margin-bottom: 2rem; text-align: center; }
.sh-final { text-align: center; }
.sh-final__inner { display: grid; justify-items: center; gap: 1.25rem; max-width: 46rem; }
.sh-final .sh-lead { margin-top: 0; }
.sh-final__alt { color: var(--sh-text-2); font-size: var(--fs-sm); }

@media (prefers-reduced-motion: reduce) {
  .sh-badge--live::before { animation: none; }
  .sh-card__media img, .sh-story, .sh .btn { transition: none; }
}
