/* ==========================================================================
   AmaxPrint — Packs & solutions entreprises
   1. Hero + scène d'assemblage · 2. Sous-navigation · 3. Pour qui
   4. Packs · 5. Sur mesure · 6. Volume · 7. Accompagnement · 8. FAQ
   ========================================================================== */

/* 1. HERO ---------------------------------------------------------------- */
.sx-hero {
  background: var(--color-parchment);
  padding-top: calc(var(--header-h) + clamp(24px, 4vw, 48px));
  padding-bottom: clamp(40px, 6vw, 88px);
  overflow: clip;
}
.sx-hero__grid { display: grid; gap: 40px; align-items: center; }
.sx-hero__title {
  font-size: clamp(3rem, 1.2rem + 6.6vw, 7.25rem);
  font-weight: var(--weight-medium);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin: 16px 0 24px;
  max-width: 11ch;
}
.sx-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (min-width: 1024px) {
  .sx-hero__grid { grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); }
}

.sx-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-card);
  background: var(--color-lime);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 1024px) { .sx-stage { aspect-ratio: auto; height: min(72svh, 640px); } }

.sx-stage__status {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sx-item {
  position: absolute; z-index: 2;
  width: 22%; aspect-ratio: 1;
  padding: 3%;
  border-radius: var(--radius-inner);
  background: var(--color-white);
  will-change: transform;
}
.sx-item .illus { width: 100%; height: 100%; }
.sx-item--mug    { left: 7%;  top: 16%; transform: rotate(-8deg); }
.sx-item--tshirt { left: 39%; top: 9%;  transform: rotate(4deg); }
.sx-item--carnet { left: 71%; top: 15%; transform: rotate(9deg); }
.sx-item--stylo  { left: 9%;  top: 47%; transform: rotate(6deg); }
.sx-item--gourde { left: 69%; top: 46%; transform: rotate(-7deg); }

.sx-box {
  position: absolute; z-index: 1;
  left: 31%; bottom: 7%;
  width: 38%; aspect-ratio: 1;
}
.sx-box .illus { width: 100%; height: 100%; }
.sx-box .illus__lines path { stroke-width: 1.4; }

.sx-stage__label {
  position: absolute; left: 50%; bottom: 18px; z-index: 3;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-lime);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

/* 2. SOUS-NAVIGATION ------------------------------------------------------ */
.sx-subnav {
  position: sticky; top: var(--header-h); z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--color-ash);
  transition: top 0.6s var(--ease-out);
}
.header-hidden .sx-subnav { top: 0; }
.sx-subnav__list {
  display: flex; gap: 6px;
  overflow-x: auto;
  padding-block: 10px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent);
  mask-image: linear-gradient(90deg, #000 90%, transparent);
}
.sx-subnav__list::-webkit-scrollbar { display: none; }
.sx-subnav a {
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--text-body-sm); font-weight: var(--weight-medium);
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s;
}
.sx-subnav a:hover { background: var(--color-parchment); }
.sx-subnav a.is-active { background: var(--color-ink); color: var(--color-white); }
@media (min-width: 1024px) { .sx-subnav__list { -webkit-mask-image: none; mask-image: none; } }

/* 3. POUR QUI ------------------------------------------------------------- */
.sx-head { display: grid; gap: 20px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 820px; }
.sx-who__grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .sx-who__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .sx-who__grid { grid-template-columns: repeat(4, 1fr); } }
.sx-who__card {
  display: flex; flex-direction: column; gap: 14px;
  min-height: 260px;
  padding: var(--card-padding);
  border-radius: var(--radius-card);
  background: var(--color-parchment);
}
.sx-who__card p { color: var(--color-graphite); margin-top: auto; }
.sx-who__card--lime { background: var(--color-lime); }
.sx-who__card--lime p { color: var(--color-ink); }
.sx-who__n {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--color-ink);
  font-size: var(--text-caption); font-weight: var(--weight-medium);
  margin-bottom: 12px;
}

/* 4. PACKS ---------------------------------------------------------------- */
.sx-pack { padding-block: var(--section-gap); background: var(--color-white); scroll-margin-top: calc(var(--header-h) + 60px); }
#packs-liste .sx-pack:nth-child(odd):not(.sx-pack--season) { background: var(--color-parchment); }
.sx-pack__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) {
  .sx-pack__grid { grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 6vw, 112px); }
  .sx-pack__grid--rev .sx-pack__text { order: 2; }
}
.sx-pack__text { display: grid; gap: 20px; justify-items: start; align-content: start; }
.sx-pack__n {
  font-size: clamp(5rem, 2rem + 9vw, 10rem);
  font-weight: var(--weight-medium);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--color-ash);
  margin-bottom: -8px;
}
.sx-pack__title {
  font-size: var(--text-heading-lg);
  font-weight: var(--weight-medium);
  line-height: 0.98;
  letter-spacing: var(--tracking-tight);
}
.sx-pack__lead { font-size: var(--text-body-lg); color: var(--color-graphite); max-width: 44ch; }

.sx-pack__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  width: 100%; margin: 0;
  border-top: 1px solid var(--color-ash); border-bottom: 1px solid var(--color-ash);
}
.sx-pack__facts div { padding: 14px 12px 14px 0; }
.sx-pack__facts div + div { padding-left: 12px; border-left: 1px solid var(--color-ash); }
.sx-pack__facts dt { font-size: var(--text-caption); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-graphite); font-weight: var(--weight-medium); }
.sx-pack__facts dd { margin: 6px 0 0; font-size: var(--text-body-sm); font-weight: var(--weight-medium); line-height: 1.35; }
@media (max-width: 559px) {
  .sx-pack__facts { grid-template-columns: 1fr 1fr; }
  .sx-pack__facts div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--color-ash); }
  .sx-pack__facts div:nth-child(2) { padding-left: 0; border-left: 0; }
}

.sx-pack__adapt { display: grid; gap: 10px; }
.sx-pack__adapt li { display: flex; gap: 12px; align-items: flex-start; font-weight: var(--weight-medium); }
.sx-pack__adapt li::before {
  content: "+"; flex-shrink: 0;
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--color-lime); color: var(--color-ink);
  font-size: 15px; line-height: 1;
  margin-top: 1px;
}
.sx-pack__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }

.sx-pack__visual { position: relative; }
.sx-pack__photo {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-smoke);
}
.sx-pack__photo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }

.sx-compo {
  position: relative;
  margin: -64px 16px 0;
  padding: 12px;
  border-radius: var(--radius-card);
  background: var(--color-white);
  border: 1px solid var(--color-ash);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
.sx-compo:empty { display: none; }
@media (min-width: 640px) { .sx-compo { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-inline: 24px; } }
.sx-compo__title {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; gap: 12px;
  padding: 4px 6px 6px;
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-graphite);
}
.sx-compo__item {
  display: grid; gap: 6px; align-content: start;
  padding: 6px;
  border-radius: 14px;
  font-size: 11px; font-weight: var(--weight-medium); line-height: 1.25;
  text-align: center;
  transition: background-color 0.3s;
}
.sx-compo__thumb {
  position: relative; aspect-ratio: 1;
  border-radius: 10px; overflow: hidden;
  background: var(--color-parchment);
}
.sx-compo__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sx-compo__thumb .illus-wrap { background: var(--color-parchment); padding: 12%; }
@media (hover: hover) { .sx-compo__item:hover { background: var(--color-lime); } }

/* Pack de saison : îlot sombre */
.sx-pack--season { background: var(--color-charcoal); color: var(--color-parchment); }
.sx-pack--season .sx-pack__n { color: rgba(245, 245, 235, 0.14); }
.sx-pack--season .sx-pack__lead { color: var(--color-ash); }
.sx-pack--season .sx-pack__facts,
.sx-pack--season .sx-pack__facts div + div { border-color: rgba(210, 210, 200, 0.2); }
.sx-pack--season .sx-pack__facts div:first-child { border-color: rgba(210, 210, 200, 0.2); }
.sx-pack--season .sx-pack__facts dt { color: var(--color-ash); }
.sx-pack--season .link-underline { color: var(--color-parchment); }
.sx-pack--season .sx-compo { border-color: transparent; color: var(--color-ink); }
.sx-pack__season {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(190, 255, 80, 0.4);
  color: var(--color-lime);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
/* .pulse-dot est défini dans home.css : on le redéfinit ici pour cette page */
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--color-lime); flex-shrink: 0; }
.pulse-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--color-lime);
  animation: sx-pulse 2s var(--ease-out) infinite;
}
@keyframes sx-pulse { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* 5. SUR MESURE ----------------------------------------------------------- */
.sx-custom__card {
  display: grid; gap: 32px; align-items: end;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius-card);
  background: var(--color-parchment);
}
.sx-custom__card .h-xl { margin-top: 16px; max-width: 14ch; }
.sx-custom__body { display: grid; gap: 24px; }
@media (min-width: 1024px) { .sx-custom__card { grid-template-columns: 1.1fr 1fr; gap: 64px; } }

/* 6. VOLUME --------------------------------------------------------------- */
.sx-volume__grid { display: grid; gap: 40px; }
.sx-volume__intro { display: grid; gap: 20px; align-content: start; }
.sx-volume__list { display: grid; }
.sx-volume__item {
  display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 20px; align-items: start;
  padding-block: 24px;
  border-top: 1px solid var(--color-ink);
}
.sx-volume__big {
  font-size: var(--text-display);
  font-weight: var(--weight-medium);
  line-height: 0.82;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.sx-volume__big small { font-size: 0.4em; letter-spacing: 0; margin-left: 4px; }
.sx-volume__item h3 { font-size: var(--text-subheading); line-height: 1.2; letter-spacing: -0.01em; }
.sx-volume__item p { margin-top: 8px; color: var(--color-graphite); max-width: 48ch; }
.sx-volume__pay { display: grid; gap: 14px; }
@media (min-width: 1024px) {
  .sx-volume__grid { grid-template-columns: 0.9fr 1.1fr; column-gap: clamp(48px, 6vw, 112px); }
  .sx-volume__intro { position: sticky; top: calc(var(--header-h) + 96px); grid-row: span 2; }
}

/* 7. ACCOMPAGNEMENT ------------------------------------------------------- */
.sx-support { padding-block: var(--section-gap); background: var(--color-white); scroll-margin-top: calc(var(--header-h) + 60px); }
#volume { scroll-margin-top: calc(var(--header-h) + 60px); }
.sx-support__head { display: grid; gap: 20px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 820px; }
.sx-support__grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .sx-support__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .sx-support__grid { grid-template-columns: repeat(4, 1fr); } }
.sx-support__card {
  display: grid; gap: 14px; align-content: start;
  padding: var(--card-padding);
  border-radius: var(--radius-card);
  background: var(--color-parchment);
}
.sx-support__n { font-size: var(--text-heading-lg); font-weight: var(--weight-medium); letter-spacing: var(--tracking-tight); line-height: 0.9; margin-bottom: 24px; }
.sx-support__card h3 { font-size: var(--text-subheading); line-height: 1.2; }
.sx-support__card p { color: var(--color-graphite); }
.sx-support__ref {
  display: grid; gap: 16px; justify-items: start;
  margin-top: 12px;
  padding: var(--card-padding);
  border-radius: var(--radius-card);
  background: var(--color-lime);
}
.sx-support__quote { font-size: var(--text-heading); line-height: 1.25; letter-spacing: -0.015em; max-width: 34ch; }
.sx-support__quote strong { font-weight: var(--weight-medium); }

/* 8. FAQ ------------------------------------------------------------------ */
.sx-faq__grid { display: grid; gap: 32px; }
.sx-faq__grid > div:first-child { display: grid; gap: 20px; justify-items: start; align-content: start; }
@media (min-width: 1024px) { .sx-faq__grid { grid-template-columns: 0.8fr 1.2fr; gap: clamp(48px, 6vw, 112px); } }
.sx-faq + .cta-band { padding-top: 0; }
