/* ============================================================
   DELISHIRT — style.css
   Mobile-first · CSS Custom Properties · No framework
   ============================================================ */

/* ============================================================
   0. TOKENS CSS (from DESIGN.md)
   ============================================================ */
:root {
  /* === Couleurs de fond === */
  --color-bg:           #0A0A14;
  --color-bg-alt:       #0D0D18;
  --color-surface:      #13131F;
  --color-surface-raised: #1A1A28;
  --color-border:       rgba(255, 255, 255, 0.08);

  /* === Texte === */
  --color-text-primary: #FFFFFF;
  --color-text-secondary: rgba(255, 255, 255, 0.60);
  --color-text-muted:   rgba(255, 255, 255, 0.35);

  /* === Dégradé signature === */
  --gradient-sig: linear-gradient(
    90deg,
    #FF8A3D 0%,
    #FF2D9B 40%,
    #A93DFF 70%,
    #3DBEFF 100%
  );
  --gradient-sig-angle: linear-gradient(
    135deg,
    #FF8A3D 0%,
    #FF2D9B 40%,
    #A93DFF 70%,
    #3DBEFF 100%
  );

  --c-orange:  #FF8A3D;
  --c-magenta: #FF2D9B;
  --c-violet:  #A93DFF;
  --c-cyan:    #3DBEFF;

  /* === Typographie fluid === */
  --step--1: clamp(0.75rem,  0.70rem + 0.25vw, 0.875rem);
  --step-0:  clamp(1rem,     0.93rem + 0.35vw, 1.125rem);
  --step-1:  clamp(1.125rem, 1.00rem + 0.60vw, 1.375rem);
  --step-2:  clamp(1.375rem, 1.15rem + 1.10vw, 1.875rem);
  --step-3:  clamp(1.75rem,  1.35rem + 2.00vw, 2.75rem);
  --step-4:  clamp(2.25rem,  1.55rem + 3.50vw, 4.00rem);
  --step-5:  clamp(3.00rem,  1.80rem + 6.00vw, 6.50rem);

  /* === Espacements === */
  --space-3xs: clamp(0.25rem, 0.20rem + 0.25vw, 0.375rem);
  --space-2xs: clamp(0.50rem, 0.45rem + 0.25vw, 0.625rem);
  --space-xs:  clamp(0.75rem, 0.65rem + 0.50vw, 1.00rem);
  --space-s:   clamp(1.00rem, 0.85rem + 0.75vw, 1.375rem);
  --space-m:   clamp(1.50rem, 1.20rem + 1.50vw, 2.25rem);
  --space-l:   clamp(2.00rem, 1.50rem + 2.50vw, 3.50rem);
  --space-xl:  clamp(3.00rem, 2.00rem + 5.00vw, 6.00rem);
  --space-2xl: clamp(4.50rem, 3.00rem + 7.50vw, 9.00rem);

  /* === Rayons === */
  --radius-s:   4px;
  --radius-m:   10px;
  --radius-l:   20px;
  --radius-xl:  32px;
  --radius-pill: 999px;

  /* === Ombres === */
  --shadow-s: 0 1px 3px rgba(0, 0, 0, 0.50);
  --shadow-m: 0 4px 16px rgba(0, 0, 0, 0.60);
  --shadow-l: 0 12px 40px rgba(0, 0, 0, 0.70);
  --shadow-glow-orange:  0 0 20px rgba(255, 138, 61,  0.35);
  --shadow-glow-magenta: 0 0 20px rgba(255, 45,  155, 0.35);
  --shadow-glow-violet:  0 0 20px rgba(169, 61,  255, 0.35);
  --shadow-glow-cyan:    0 0 20px rgba(61,  190, 255, 0.35);
  --shadow-glow-sig:     0 0 32px rgba(255, 45, 155, 0.25),
                         0 0 64px rgba(169, 61, 255, 0.15);

  /* === Durées & easings === */
  --dur-instant: 80ms;
  --dur-fast:   160ms;
  --dur-base:   280ms;
  --dur-slow:   480ms;
  --dur-enter:  600ms;
  --ease-out:      cubic-bezier(0.16, 1, 0.30, 1);
  --ease-in-out:   cubic-bezier(0.45, 0, 0.55, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);

  /* === Typographie === */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body:    'Inter',  system-ui, sans-serif;
}

/* ============================================================
   1. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0; /* Prevents flex/grid overflow — min-width:auto is the classic cause */
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  overflow-x: hidden;
  max-width: 100%;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* ============================================================
   2. ACCESSIBILITÉ
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}

.btn-primary:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
  box-shadow: var(--shadow-glow-cyan);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .speed-lines,
  .glow-pulse {
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   3. LAYOUT HELPERS
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-s);
  box-sizing: border-box;
}

.section-gap {
  padding-block: var(--space-2xl);
}

.section-gap-sm {
  padding-block: var(--space-xl);
}

.text-center {
  text-align: center;
}

/* ============================================================
   4. TYPOGRAPHIE
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Section eyebrow — petit label au-dessus des titres */
.section-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xs);
}

.section-title {
  font-size: var(--step-3);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-s);
}

.section-subtitle {
  font-size: var(--step-1);
  color: var(--color-text-secondary);
  max-width: min(56ch, 100%);
  margin-inline: auto;
  margin-bottom: var(--space-m);
}

.section-body {
  font-size: var(--step-1);
  color: var(--color-text-secondary);
  max-width: min(52ch, 100%);
  margin-bottom: var(--space-m);
}

/* Gradient text — un seul par page */
.gradient-text {
  background: var(--gradient-sig);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================================
   5. BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-0);
  padding: 0.75em 1.6em;
  border-radius: var(--radius-pill);
  transition:
    transform var(--dur-instant) var(--ease-in-out),
    box-shadow var(--dur-fast) var(--ease-in-out),
    filter var(--dur-fast) var(--ease-in-out),
    border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  max-width: 100%;
  min-width: 0;
}

.btn-sm {
  font-size: var(--step--1);
  padding: 0.5em 1.2em;
}

.btn-lg {
  font-size: var(--step-1);
  padding: 0.85em 2em;
}

.btn-full {
  width: 100%;
}

/* Primary — dégradé — réservé aux CTA principaux */
.btn-primary {
  background: var(--gradient-sig);
  color: #fff;
  box-shadow: var(--shadow-m);
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: var(--shadow-glow-sig);
}

.btn-primary:active {
  transform: scale(0.96);
  filter: brightness(0.95);
  box-shadow: none;
  transition-duration: var(--dur-instant);
}

/* Outline — boutons secondaires */
.btn-outline {
  color: var(--color-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
}

.btn-outline:hover {
  border-color: rgba(169, 61, 255, 0.5);
  box-shadow: var(--shadow-glow-violet);
}

.btn-outline:active {
  transform: scale(0.97);
}

/* Ghost */
.btn-ghost {
  color: var(--color-text-secondary);
  border: 1.5px solid var(--color-border);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--color-text-primary);
  border-color: rgba(61, 190, 255, 0.4);
}

/* ============================================================
   6. REVEAL ANIMATIONS (IntersectionObserver)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-enter) var(--ease-out),
    transform var(--dur-enter) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 120ms;
}

.reveal-delay-2 {
  transition-delay: 240ms;
}

/* ============================================================
   7. HEADER
   ============================================================ */
#site-header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 20, 0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  width: 100%;
  overflow: hidden;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  padding-block: var(--space-xs);
  overflow: hidden;
  max-width: 100%;
}

.logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  min-width: 0;
}

.logo-svg {
  height: 56px;
  width: auto;
}

/* Logo SVG sizing — fluid, never imposes a fixed width */
.logo-graphic {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  max-width: 40px;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-1);
  line-height: 1.1;
  white-space: nowrap;
}

.logo-tagline {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

/* MOBILE: hide tagline to prevent overflow */
@media (max-width: 767px) {
  .logo-tagline {
    display: none;
  }
}

.main-nav {
  display: none;
  flex: 1;
}

.nav-list {
  display: flex;
  gap: var(--space-m);
  align-items: center;
}

.nav-link {
  font-size: var(--step--1);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-link:hover {
  color: var(--color-text-primary);
}

/* Burger */
.burger-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  border-radius: var(--radius-s);
}

.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-secondary);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-in-out),
              opacity var(--dur-base) var(--ease-in-out),
              background var(--dur-fast) var(--ease-out);
}

.burger-btn[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--c-cyan);
}
.burger-btn[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}
.burger-btn[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--c-cyan);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  padding-block: var(--space-m);
  border-top: 1px solid var(--color-border);
  background: rgba(10, 10, 20, 0.95);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding-inline: var(--space-m);
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--color-text-secondary);
  transition: color var(--dur-fast) var(--ease-out);
}

.mobile-nav-link:hover {
  color: var(--color-text-primary);
}

.mobile-cta {
  margin-top: var(--space-s);
  text-align: center;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }

  .burger-btn {
    display: none;
  }

  /* Desktop header: logo left, nav centered, actions right */
  .header-inner {
    gap: var(--space-m);
  }

  #site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-m);
    flex: 1;
    justify-content: center;
  }

  .header-cta {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    flex-shrink: 0;
    margin-left: var(--space-l);
  }
}

/* ============================================================
   8. HERO
   ============================================================ */
.hero {
  padding-block: var(--space-2xl) var(--space-xl);
  overflow: hidden;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
  overflow: hidden;
  width: 100%;
}

.hero-content {
  max-width: min(56ch, 100%);
  width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-title {
  font-size: var(--step-4);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-m);
}

.hero-subtitle {
  font-size: var(--step-1);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-l);
  max-width: min(48ch, 100%);
}

.hero-actions,
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-bottom: var(--space-l);
}

/* Réassurances */
.hero-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s) var(--space-m);
}

.hero-reassurance li {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--step--1);
  color: var(--color-text-secondary);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img-wrap,
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .hero-img-wrap,
  .hero-image-wrap {
    max-width: 480px;
  }
}

.hero-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-xl);
  display: block;
}

.hero-img-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  box-shadow: inset 0 -80px 80px rgba(169, 61, 255, 0.18),
              0 0 80px rgba(169, 61, 255, 0.12);
  pointer-events: none;
}

/* Speed lines décoratives */
.speed-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.sl {
  position: absolute;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-sig);
  opacity: 0.3;
}

.sl-1 {
  width: 60px;
  top: 20%;
  left: -10%;
  transform: rotate(-8deg);
  animation: slide-in 3s var(--ease-out) infinite;
}

.sl-2 {
  width: 40px;
  top: 50%;
  left: -8%;
  transform: rotate(-8deg);
  animation: slide-in 3s 0.5s var(--ease-out) infinite;
}

.sl-3 {
  width: 25px;
  top: 70%;
  left: -6%;
  transform: rotate(-8deg);
  animation: slide-in 3s 1s var(--ease-out) infinite;
}

@keyframes slide-in {
  0% { opacity: 0; transform: translateX(-20px) rotate(-8deg); }
  30% { opacity: 0.4; }
  70% { opacity: 0.25; }
  100% { opacity: 0; transform: translateX(40px) rotate(-8deg); }
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title {
    font-size: var(--step-5);
  }

  .hero-visual {
    justify-content: flex-end;
  }

  .speed-lines {
    z-index: 0;
  }
}

/* ============================================================
   9. HOW IT WORKS
   ============================================================ */
.how-it-works {
  background-color: var(--color-bg-alt);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
  margin-top: var(--space-m);
}

.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: var(--space-l);
  position: relative;
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-l), var(--shadow-glow-violet);
  border-color: rgba(169, 61, 255, 0.35);
}

.step-num {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 800;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: var(--space-s);
  user-select: none;
}

.step-icon {
  margin-bottom: var(--space-s);
}

.step-title {
  font-size: var(--step-2);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.step-desc {
  font-size: var(--step-0);
  color: var(--color-text-secondary);
}

@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   10. EXPERIENCE
   ============================================================ */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.experience-text .section-title {
  margin-bottom: var(--space-m);
}

.experience-quote {
  font-style: italic;
  color: var(--color-text-secondary);
  border-left: 2px solid;
  border-image: var(--gradient-sig) 1;
  padding-left: var(--space-m);
  margin-block: var(--space-m);
}

.experience-quote footer {
  font-style: normal;
  font-size: var(--step--1);
  color: var(--color-text-muted);
  margin-top: var(--space-2xs);
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-m);
}

.experience-list li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--step-0);
  color: var(--color-text-secondary);
}

/* Product card */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-l), var(--shadow-glow-violet);
  border-color: rgba(169, 61, 255, 0.50);
}

.experience-card {
  position: relative;
}

.experience-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
}

.experience-badge {
  position: absolute;
  bottom: var(--space-m);
  left: var(--space-m);
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(61, 190, 255, 0.3);
  border-radius: var(--radius-pill);
  padding: var(--space-2xs) var(--space-s);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--c-cyan);
}

@media (min-width: 768px) {
  .experience-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   11. LOOKBOOK
   ============================================================ */
.lookbook-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-m);
  margin-bottom: var(--space-l);
}

.lookbook-card {
  display: flex;
  flex-direction: column;
}

.lookbook-placeholder {
  height: 240px;
  background: var(--color-surface-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.lookbook-caption {
  padding: var(--space-m);
}

.lookbook-label {
  display: block;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2xs);
}

.lookbook-brief {
  font-size: var(--step-0);
  color: var(--color-text-secondary);
  font-style: italic;
}

.lookbook-cta {
  margin-top: var(--space-l);
}

@media (min-width: 640px) {
  .lookbook-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .lookbook-placeholder {
    height: 280px;
  }
}

/* ============================================================
   12. PRICING
   ============================================================ */
/* ============================================================
   12. PRICING GRID (v2 — 4 offres, alignement parfait)
   ============================================================ */

/* --- Grid --- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-s);
  margin-top: var(--space-l);
  align-items: stretch;
  max-width: 100%;
  /* overflow:visible needed for badge to stick out above cards */
  overflow: visible;
}

/* Clip horizontal overflow at section level without blocking the badge (vertical) */
#pricing {
  overflow-x: clip;
}



/* >=1200px : 4 colonnes */
@media (min-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  /* Hauteur fixe pour forcer l'alignement des CTA sur 4 colonnes */
  .pricing-card {
    min-height: 540px;
  }
}

/* 900-1199px : 2 colonnes */
@media (min-width: 900px) and (max-width: 1199px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Carte de base --- */
.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  padding: var(--space-m);
  /* Espace en haut pour le badge (réservé même sans badge) */
  padding-top: calc(var(--space-m) + 22px); /* hauteur badge + marge */
  max-width: 100%;
  min-width: 0;
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-l);
}

/* --- Placeholder badge (cartes sans badge, pour alignement vertical) --- */
.pricing-badge-placeholder {
  display: none; /* géré via padding-top sur la carte */
}

/* --- Badge "Populaire" --- */
.pricing-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--gradient-sig);
  color: #0A0A14;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  padding: 0.3em 1.2em;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
  z-index: 2;
  line-height: 1.4;
}

/* --- Carte populaire --- */
.pricing-card--popular {
  border-color: transparent;
  position: relative;
  z-index: 1;
}

/* Bordure en dégradé via pseudo-élément */
.pricing-card--popular::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-l);
  background: var(--gradient-sig-angle);
  z-index: -1;
  /* Displayed as a thick background; the ::after will overlay it leaving a 2px ring */
}

/* Fond de la carte par-dessus le pseudo-élément : laisse une bordure de 2px visibles */
.pricing-card--popular::after {
  content: '';
  position: absolute;
  inset: 2px; /* laisse 2px de l'::before visible = borde de 2px */
  border-radius: calc(var(--radius-l) - 2px);
  background: var(--color-surface);
  z-index: -1;
}

.pricing-card--popular {
  box-shadow:
    var(--shadow-glow-sig),
    var(--shadow-l);
}

/* Scale desktop uniquement */
@media (min-width: 1024px) {
  .pricing-card--popular {
    transform: scale(1.03);
  }
  .pricing-card--popular:hover {
    transform: scale(1.03) translateY(-4px);
  }
}

/* Désactiver scale si prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .pricing-card--popular {
    transform: none !important;
  }
  .pricing-card--popular:hover {
    transform: translateY(-4px) !important;
  }
}

/* Sur mobile, la carte populaire remonte en premier */
@media (max-width: 899px) {
  .pricing-card--popular {
    order: -1;
    transform: none !important;
  }
  .pricing-card--popular:hover {
    transform: translateY(-4px) !important;
  }

  /* Prévention overflow mobile */
  .pricing-card {
    padding: var(--space-m);
    padding-top: calc(var(--space-m) + 22px);
  }

  .pricing-price-block {
    white-space: nowrap;
    overflow: hidden;
  }

  .pricing-accroche {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .pricing-features li span {
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
  }
}

/* --- Nom de l'offre --- */
.pricing-name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2xs);
}

/* --- Bloc prix : hauteur min réservée pour l'alignement --- */
.pricing-header-block {
  min-height: 130px; /* Réserve la même hauteur pour le bloc nom+prix+accroche */
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.pricing-price-block {
  display: flex;
  align-items: baseline;
  gap: var(--space-2xs);
  margin-bottom: var(--space-3xs);
  max-width: 100%;
  overflow: hidden;
  /* nowrap sur le contenu du bloc prix seulement, pas en cascade */
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 0.8rem + 1.5vw, 2rem);
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1;
}

.pricing-unit {
  font-size: var(--step-0);
  color: var(--color-text-muted);
}

/* --- Accroche sous le prix : réserve 2 lignes --- */
.pricing-accroche {
  font-size: var(--step--1);
  color: var(--color-text-muted);
  min-height: 2.8em; /* ~2 lignes */
  line-height: 1.4;
  margin-top: var(--space-3xs);
}

/* --- Séparateur --- */
.pricing-divider {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin-block: var(--space-s);
}

/* --- Liste bénéfices --- */
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1; /* absorbe l'espace restant */
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 0; /* Permet à overflow-wrap de fonctionner dans les enfants flex */
  width: 100%;
  max-width: 100%;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2xs);
  font-size: var(--step-0);
  color: var(--color-text-secondary);
  line-height: 1.45;
  min-width: 0; /* prevent flex item overflow */
  overflow-wrap: break-word;
  word-break: break-word;
}

.pricing-features li span {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Check SVG inline */
.pf-check {
  flex-shrink: 0;
  margin-top: 0.15em; /* aligne visuellement avec la 1re ligne de texte */
}

/* --- CTA --- */
.pricing-cta {
  margin-top: auto; /* pousse le bouton vers le bas */
  padding-top: var(--space-m);
}

/* Bouton CTA pricing : police réduite pour tenir dans les cartes étroites */
.pricing-cta .btn {
  font-size: var(--step--1);
  padding-inline: 1em;
}

/* --- Note garantie --- */
.pricing-guarantee {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--step--1);
  margin-top: var(--space-l);
}

/* ============================================================
   13. ABONNEMENT — RÉASSURANCE
   ============================================================ */
.sub-reassurance {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-2xl);
}

.sub-reassurance-title {
  font-size: var(--step-2);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-l);
}

.reassurance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
}

.reassurance-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: var(--space-l);
  transition:
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.reassurance-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 45, 155, 0.3);
}

.reassurance-icon {
  margin-bottom: var(--space-s);
}

.reassurance-title {
  font-size: var(--step-1);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.reassurance-text {
  font-size: var(--step-0);
  color: var(--color-text-secondary);
}

@media (min-width: 640px) {
  .reassurance-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   14. CRÉATEURS
   ============================================================ */
.creators {
  background-color: var(--color-bg);
}

.creators-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.creators-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  margin-top: var(--space-l);
}

.creator-option {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: var(--space-l);
  transition:
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.creator-option:hover {
  transform: translateY(-3px);
  border-color: rgba(169, 61, 255, 0.35);
}

.creator-option-title {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--step-1);
  font-weight: 700;
  margin-bottom: var(--space-s);
}

.creator-option p {
  font-size: var(--step-0);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-m);
}

/* Stat card */
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
}

.stat-label {
  font-size: var(--step--1);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-s);
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-m);
}

.stat-note {
  font-size: var(--step-0);
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .creators-inner {
    grid-template-columns: 3fr 2fr;
  }
}

/* ============================================================
   15. TÉMOIGNAGES
   ============================================================ */
.testimonials {
  background: var(--color-bg-alt);
}

.testimonials-track-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-inline: calc(-1 * var(--space-m));
  padding-inline: var(--space-m);
}

.testimonials-track-wrap::-webkit-scrollbar {
  display: none;
}

.testimonials-track {
  display: flex;
  gap: var(--space-m);
  padding-bottom: var(--space-s);
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: var(--space-l);
  flex: 0 0 300px;
  transition:
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 45, 155, 0.3);
}

.testimonial-text {
  font-size: var(--step-1);
  font-style: italic;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-m);
}

.testimonial-author {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}

.author-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-0);
}

.author-loc {
  font-size: var(--step--1);
  color: var(--color-text-muted);
}

.author-loc::before {
  content: '·';
  margin-right: var(--space-xs);
}

/* Brand promise */
.brand-promise {
  margin-top: var(--space-xl);
}

.promise-border {
  border-left: 2px solid;
  border-image: var(--gradient-sig) 1;
  padding: var(--space-m) var(--space-l);
  background: var(--color-surface);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.promise-border p {
  font-size: var(--step-0);
  color: var(--color-text-secondary);
}

.promise-border strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.promise-border em {
  color: var(--color-text-secondary);
}

/* ============================================================
   16. FAQ
   ============================================================ */
.faq {
  background: var(--color-bg);
}

.faq-container {
  max-width: 780px;
}

.faq-list {
  margin-top: var(--space-m);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out);
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: rgba(169, 61, 255, 0.35);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-m) var(--space-l);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-0);
  color: var(--color-text-primary);
  text-align: left;
  transition: background var(--dur-fast) var(--ease-out);
  gap: var(--space-m);
}

.faq-question:hover {
  background: var(--color-surface-raised);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform var(--dur-base) var(--ease-out);
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--c-violet);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height var(--dur-slow) var(--ease-out),
    opacity var(--dur-base) var(--ease-out),
    padding var(--dur-slow) var(--ease-out);
  padding: 0 var(--space-l);
}

/* When open: JS removes [hidden] and adds .is-open */
.faq-answer.is-open {
  max-height: 600px;
  opacity: 1;
  padding: 0 var(--space-l) var(--space-l);
  border-top: 1px solid var(--color-border);
}

.faq-answer[hidden] {
  display: none !important;
}

.faq-answer p {
  font-size: var(--step-0);
  color: var(--color-text-secondary);
  padding-top: var(--space-m);
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer {
    transition: none !important;
  }
}

/* ============================================================
   16b. CDJ SEARCH
   ============================================================ */
.cdj-search-wrap {
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-m);
}

.cdj-search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.cdj-search-icon {
  position: absolute;
  left: var(--space-m);
  color: var(--color-text-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.cdj-search-input {
  width: 100%;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 1rem; /* min 16px — évite le zoom iOS */
  padding: 0.75em var(--space-2xl) 0.75em calc(var(--space-m) + 18px + var(--space-xs));
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.cdj-search-input::placeholder {
  color: var(--color-text-muted);
}

.cdj-search-input:focus {
  outline: none;
  border-color: var(--c-violet);
  box-shadow: 0 0 0 3px rgba(169, 61, 255, 0.15);
}

/* Hide native clear button (Chrome/Safari) */
.cdj-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  display: none;
}

.cdj-search-clear {
  position: absolute;
  right: var(--space-s);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-surface-raised);
  color: var(--color-text-muted);
  border: none;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.cdj-search-clear:hover {
  color: var(--color-text-primary);
  background: var(--color-border);
}

.cdj-search-clear[hidden] {
  display: none !important;
}

.cdj-search-count {
  font-size: var(--step--1);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-xs);
  min-height: 1.4em;
}

.cdj-search-empty {
  text-align: center;
  padding: var(--space-xl) var(--space-m);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s);
}

.cdj-search-empty[hidden] {
  display: none !important;
}

.cdj-search-empty-msg {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--color-text-primary);
}

.cdj-search-empty-hint {
  font-size: var(--step-0);
  color: var(--color-text-muted);
}

/* ============================================================
   17. NEWSLETTER
   ============================================================ */
.newsletter {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.newsletter-inner {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
}

.newsletter-title {
  font-size: var(--step-2);
  font-weight: 700;
  margin-bottom: var(--space-l);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.newsletter-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.newsletter-input {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--step-0);
  padding: 0.85em 1.2em;
  border-radius: var(--radius-pill);
  width: 100%;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.newsletter-input::placeholder {
  color: var(--color-text-muted);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--c-cyan);
  box-shadow: 0 0 0 3px rgba(61, 190, 255, 0.15);
}

.newsletter-promise {
  font-size: var(--step--1);
  color: var(--color-text-muted);
}

@media (min-width: 540px) {
  .newsletter-field {
    flex-direction: row;
  }

  .newsletter-input {
    flex: 1;
  }

  .newsletter-btn {
    flex-shrink: 0;
  }
}

/* ============================================================
   18. CTA FINAL
   ============================================================ */
.cta-final {
  background: var(--color-bg);
}

.cta-baseline {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: var(--space-m);
}

.cta-final-title {
  font-size: var(--step-4);
  font-weight: 800;
  margin-bottom: var(--space-l);
  color: var(--color-text-primary);
}

/* ============================================================
   19. FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-2xl) var(--space-xl);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-logo-link {
  display: inline-flex;
  margin-bottom: var(--space-m);
}

.footer-logo {
  height: 36px;
  width: auto;
}

.footer-tagline {
  font-size: var(--step-0);
  color: var(--color-text-secondary);
  max-width: 36ch;
  margin-bottom: var(--space-xs);
}

.footer-eco {
  font-size: var(--step--1);
  color: var(--color-text-muted);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-link {
  font-size: var(--step--1);
  color: var(--color-text-muted);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-link:hover {
  color: var(--color-text-secondary);
}

.footer-social-label {
  font-size: var(--step--1);
  color: var(--color-text-muted);
  margin-bottom: var(--space-s);
}

.social-list {
  display: flex;
  gap: var(--space-s);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  color: var(--color-text-muted);
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.social-link:hover {
  color: var(--color-text-primary);
  border-color: rgba(169, 61, 255, 0.4);
  box-shadow: var(--shadow-glow-violet);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-m);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: var(--step--1);
  color: var(--color-text-muted);
}

.footer-domain {
  font-size: var(--step--1);
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ============================================================
   20. CRÉATIONS DU JOUR
   ============================================================ */
.creations-du-jour {
  background-color: var(--color-bg);
}

/* --- Filtres --- */
.cdj-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  margin-bottom: var(--space-l);
}

.cdj-filter-btn {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  padding: 0.45em 1.1em;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  color: var(--color-text-secondary);
  background: transparent;
  cursor: pointer;
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.cdj-filter-btn:hover {
  color: var(--color-text-primary);
  border-color: rgba(169, 61, 255, 0.4);
}

.cdj-filter-btn.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--gradient-sig);
  box-shadow: var(--shadow-glow-sig);
}

/* --- Grille --- */
.cdj-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
}

@media (min-width: 640px) {
  .cdj-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .cdj-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .cdj-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Carte création --- */
.cdj-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Solidarité image + texte: pas de hauteur fixe externe */
  height: auto;
  align-self: stretch;
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.cdj-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-l), var(--shadow-glow-violet);
  border-color: rgba(169, 61, 255, 0.35);
}

.cdj-card[hidden] {
  display: none;
}

/* Vignette t-shirt portrait 4:5 */
.cdj-thumb {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-surface);
  /* Solidaire du corps: pas de min-height externe */
  width: 100%;
}

/* Dark neutral background with radial vignette */
.cdj-thumb-bg {
  position: absolute;
  inset: 0;
  background: var(--color-surface) !important;
}

.cdj-thumb-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

/* T-shirt SVG container centered in thumb */
.cdj-thumb-tshirt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* T-shirt SVG sizing — ~70% of thumb */
.cdj-tshirt-svg {
  width: 65%;
  max-width: 180px;
  aspect-ratio: 100 / 110;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  flex-shrink: 0;
}

/* Design print area with gradient — centered on t-shirt body */
.cdj-thumb-print {
  position: absolute;
  top: 48%;
  left: 30%;
  right: 30%;
  height: 20%;
  border-radius: var(--radius-s);
  z-index: 2;
  opacity: 0.90;
}

/* Title hidden — already shown in card body below */
.cdj-thumb-title {
  display: none;
}

/* Corps de carte */
.cdj-body {
  padding: var(--space-s) var(--space-m) var(--space-m);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.cdj-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xs);
}

.cdj-card-title {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-primary);
  flex: 1;
}

.cdj-badge {
  font-size: var(--step--1);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-violet);
  background: rgba(169, 61, 255, 0.12);
  border: 1px solid rgba(169, 61, 255, 0.25);
  border-radius: var(--radius-pill);
  padding: 0.15em 0.6em;
  white-space: nowrap;
  flex-shrink: 0;
}

.cdj-price {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 800;
  color: var(--color-text-primary);
}

/* Bouton panier — style secondaire (gradient réservé aux CTA principaux) */
.cdj-add-btn {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  padding: 0.55em 1em;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  width: 100%;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    transform var(--dur-instant) var(--ease-in-out);
}

.cdj-add-btn:hover {
  border-color: var(--c-violet);
  box-shadow: 0 0 0 1px var(--c-violet), var(--shadow-glow-violet);
}

.cdj-add-btn:active {
  transform: scale(0.96);
}

/* Prompt de la carte */
.cdj-prompt {
  font-family: 'Courier New', Courier, monospace;
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin-top: var(--space-3xs);
}

.cdj-prompt-prefix {
  font-style: normal;
  margin-right: 0.3em;
}

/* Lien « recevoir un fil » */
.cdj-use-prompt {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: var(--step--1);
  color: var(--c-cyan);
  opacity: 0.75;
  margin-top: var(--space-3xs);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.cdj-use-prompt:hover {
  opacity: 1;
}

/* ============================================================
   21. FIL DE CRÉATIONS
   ============================================================ */
.fil-creations {
  background-color: var(--color-bg-alt);
}

.fil-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  max-width: 780px;
  margin-inline: auto;
  margin-top: var(--space-m);
}

/* Label section */
.fil-section-label {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-s);
  display: block;
}

/* --- Prompt wrap --- */
.fil-prompt-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  max-width: 720px;
  margin-inline: auto;
  width: 100%;
  box-sizing: border-box;
}

.fil-prompt-label {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--color-text-primary);
}

.fil-prompt-textarea {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-m);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: max(16px, var(--step-0)); /* anti-zoom iOS */
  line-height: 1.6;
  padding: var(--space-s);
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 120px;
  display: block;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.fil-prompt-textarea::placeholder {
  color: var(--color-text-muted);
}

.fil-prompt-textarea:focus {
  outline: 2px solid var(--c-violet);
  outline-offset: 2px;
  border-color: var(--c-violet);
  box-shadow: 0 0 0 4px rgba(169, 61, 255, 0.15);
}

.fil-prompt-hint {
  font-size: var(--step--1);
  color: var(--color-text-muted);
}

/* Chips exemples */
.fil-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.fil-chip {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 500;
  padding: 0.35em 0.9em;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  color: var(--color-text-secondary);
  background: transparent;
  cursor: pointer;
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.fil-chip:hover {
  color: var(--color-text-primary);
  border-color: rgba(169, 61, 255, 0.4);
}

/* --- Fréquence --- */
.fil-frequence {
  border: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
  margin-inline: auto;
  width: 100%;
}

.fil-freq-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-s);
}

.fil-freq-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
  padding: 0.6em 1.2em;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--color-text-secondary);
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.fil-freq-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.fil-freq-btn:has(input:checked) {
  color: var(--color-text-primary);
  border-color: var(--c-violet);
  box-shadow: 0 0 0 2px rgba(169, 61, 255, 0.2);
}

.fil-freq-badge {
  font-style: normal;
  font-size: var(--step--1);
  background: var(--gradient-sig);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
  margin-left: var(--space-3xs);
}

.fil-freq-note {
  font-size: var(--step--1);
  color: var(--color-text-muted);
}

.fil-freq-note strong {
  color: var(--color-text-secondary);
}

/* --- Mode de réception --- */
.fil-mode-wrap {
  border: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
  margin-inline: auto;
  width: 100%;
}

.fil-mode-sub {
  font-size: var(--step--1);
  color: var(--color-text-muted);
  margin-bottom: var(--space-m);
}

.fil-mode-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-s);
}

@media (min-width: 768px) {
  .fil-mode-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fil-mode-card {
  display: flex;
  cursor: pointer;
  border-radius: var(--radius-l);
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.fil-mode-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.fil-mode-card:has(.fil-mode-radio:checked) {
  border-color: transparent;
  box-shadow:
    0 0 0 2px var(--c-violet),
    var(--shadow-glow-sig);
  transform: translateY(-2px);
}

.fil-mode-card:hover {
  border-color: rgba(169, 61, 255, 0.45);
}

.fil-mode-card-inner {
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  position: relative;
  z-index: 1;
  width: 100%;
}

.fil-mode-icon {
  margin-bottom: var(--space-xs);
}

.fil-mode-title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--color-text-primary);
}

.fil-mode-desc {
  font-size: var(--step-0);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.fil-mode-arg {
  font-style: italic;
  font-size: var(--step--1);
  color: var(--color-text-muted);
  margin-top: var(--space-3xs);
}

/* Prompt area (conteneur principal du formulaire fil) */
.prompt-area {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  width: 100%;
}

/* Reassurance fil */
.fil-reassurance {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: var(--space-m);
}

.fil-reassurance-title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-m);
}

.objection-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.objection-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2xs);
}

.objection-item p {
  font-size: var(--step--1);
  color: var(--color-text-secondary);
}

/* CTA fil */
.fil-cta {
  text-align: center;
  padding-top: var(--space-s);
  margin-top: var(--space-m);
}

/* Legend mode réception - stylisée comme sous-titre */
.fil-mode-legend {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-s);
  text-align: left;
  float: none;
  width: 100%;
  padding: 0;
}

/* Outer chips wrapper */
.fil-chips-outer {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* Ensure fil-chips are centered properly */
.fil-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* ============================================================
   22. MOBILE / DESKTOP FIXES
   ============================================================ */

/* --- Hero: CTA min-height 44px pour pouce --- */
.hero-ctas .btn {
  min-height: 44px;
}

/* Mobile: hero CTAs stack + full-width to avoid overflow */
@media (max-width: 479px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn {
    width: 100%;
    text-align: center;
  }
}

/* --- Hero image: cadrage correct mobile --- */
.hero-image-wrap img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 767px) {
  .hero-image-wrap {
    max-width: 100%;
    border-radius: var(--radius-l);
  }

  .hero-image-wrap img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    border-radius: var(--radius-l);
  }

  /* Grille créations: 1 colonne mobile */
  #creations-grid {
    grid-template-columns: 1fr !important;
  }

  /* Mode réception: toujours empilé en mobile */
  .mode-cards {
    grid-template-columns: 1fr !important;
    display: flex;
    flex-direction: column;
  }

  /* Pricing: responsive géré dans section 12 */

  /* Sections: espacements verticaux réduits sur mobile */
  #creations-du-jour,
  #fil-de-creations,
  #comment-ca-marche,
  #pricing,
  #pour-les-createurs,
  #faq,
  #newsletter {
    padding-block: var(--space-l);
  }

  /* Pricing cards: compact sur mobile */
  .pricing-card {
    padding: var(--space-s);
    padding-top: calc(var(--space-s) + 20px);
    gap: var(--space-xs);
  }
  .pricing-grid {
    align-items: start; /* cartes prennent leur hauteur naturelle */
  }
  .pricing-features {
    flex: 0 1 auto; /* ne pas grossir pour remplir la carte */
  }

  /* Step cards: padding réduit sur mobile */
  .step-card {
    padding: var(--space-m);
  }

  /* Pas de sections collées: assurer espacement minimum */
  section + section {
    margin-top: 0;
  }

  /* Header CTA: masqués en mobile */
  .header-cta {
    display: none !important;
  }

  /* Nav masquée en mobile (gérée par hamburger) */
  #site-nav {
    display: none !important;
  }

  /* Steps: 1 colonne mobile */
  .steps-grid {
    grid-template-columns: 1fr;
  }

  /* Creators: 1 colonne mobile */
  .creators-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Input size: min 16px iOS --- */
input,
textarea,
select {
  font-size: max(16px, var(--step-0));
}

/* Exception: petits boutons-filtres (pas des inputs saisis) */
.cdj-filter-btn,
.fil-chip {
  font-size: var(--step--1);
}

/* --- Desktop: max-width conteneurs texte --- */
@media (min-width: 1200px) {
  .section-subtitle,
  .section-body {
    max-width: min(65ch, 100%);
  }

  /* Paragraphes inline: lisibles (65-70 chars max) */
  p:not([class]) {
    max-width: min(70ch, 100%);
  }
}

/* --- Débordement horizontal: forcer overflow caché --- */
body {
  overflow-x: hidden;
  max-width: 100%;
}

.container {
  max-width: min(1200px, 100%);
}

/* Mobile safety net */
@media (max-width: 767px) {
  .hero-content,
  .hero-ctas,
  .hero-image-wrap,
  .section-title,
  .section-subtitle,
  .section-body {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  /* sections and main hide any overflow */
  main, section, .container {
    overflow-x: hidden;
  }
  /* Carousel: clip at multiple levels to prevent layout bleed */
  #creations-du-jour {
    overflow-x: clip;
  }
  #creations-du-jour .container {
    overflow-x: clip;
  }
}

/* --- Header: nav links hover state (desktop) --- */
#site-nav a {
  font-size: var(--step--1);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--dur-fast) var(--ease-out);
  padding: 0.25em 0.5em;
  border-radius: var(--radius-s);
}

#site-nav a:hover {
  color: var(--color-text-primary);
}

/* --- Hamburger: target area 44px --- */
#hamburger-btn {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-s);
  transition: background var(--dur-fast) var(--ease-out);
}

#hamburger-btn:hover {
  background: var(--color-surface);
}

@media (min-width: 768px) {
  #hamburger-btn {
    display: none;
  }
}

/* --- Sections grid: creators --- */
.creators-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
  margin-top: var(--space-m);
}

@media (min-width: 640px) {
  .creators-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Creators cards hover --- */
.creators-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  transition:
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.creators-card:hover {
  transform: translateY(-3px);
  border-color: rgba(169, 61, 255, 0.35);
  box-shadow: var(--shadow-l);
}

.creators-card-icon {
  font-size: 2rem;
}

.creators-card h3 {
  font-size: var(--step-1);
  font-weight: 700;
}

.creators-card p {
  font-size: var(--step-0);
  color: var(--color-text-secondary);
  flex: 1;
}

/* --- Footer brand desc: max-width --- */
.footer-desc {
  font-size: var(--step-0);
  color: var(--color-text-secondary);
  max-width: 36ch;
  margin-bottom: var(--space-m);
}

/* --- Footer inner grid: desktop --- */
@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 3fr;
  }
}

/* --- Footer nav: horizontal on desktop --- */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-l);
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-nav-group h4 {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xs);
}

.footer-nav-group a {
  font-size: var(--step--1);
  color: var(--color-text-muted);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-nav-group a:hover {
  color: var(--color-text-secondary);
}

/* Pricing card old rules removed — see section 12 for v2 */

/* --- Hero inner: 2 colonnes desktop --- */
@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

/* --- Reveal delay classes (manquant dans CSS) --- */
.reveal-delay-1 {
  transition-delay: 120ms;
}

.reveal-delay-3 {
  transition-delay: 360ms;
}

/* ============================================================
   23. SÉPARATEURS / UTILITAIRES (ex section 20)
   ============================================================ */
.grad-line {
  height: 1px;
  background: var(--gradient-sig);
  opacity: 0.3;
  border: none;
  margin-block: var(--space-l);
}

/* ============================================================
   23. ALIASES & COMPLÉMENTS
   ============================================================ */

/* --- Alias pour les IDs HTML réels de la grille créations --- */
#creations-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  margin-bottom: var(--space-l);
  margin-top: var(--space-m);
}

/* #creations-grid is now the scroll track — layout handled by .cdj-track / .cdj-track--grid */

/* --- is-selected sur mode-card (fallback sans :has) --- */
.mode-card.is-selected .mode-card-inner,
.fil-mode-card.is-selected .fil-mode-card-inner {
  border-color: var(--c-violet);
}

.mode-card.is-selected,
.fil-mode-card.is-selected {
  border-color: transparent;
  box-shadow:
    0 0 0 2px var(--c-violet),
    var(--shadow-glow-sig);
  transform: translateY(-2px);
}

/* --- Chips exemples fil (dans #prompt-chips) --- */
#prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
}

/* --- Sections padding RÉDUIT (fix espace noir excessif) --- */
#creations-du-jour,
#fil-de-creations,
#comment-ca-marche,
#pricing,
#pour-les-createurs,
#faq,
#newsletter {
  padding-block: var(--space-xl);
}

/* Neutraliser marges parasites premier/dernier enfant */
section > *:first-child { margin-top: 0; }
section > *:last-child { margin-bottom: 0; }

#hero {
  padding-block: var(--space-xl) var(--space-l);
  overflow: hidden;
  overflow-x: clip;
  position: relative;
}

/* --- Reduced motion: no-op for dynamic cards --- */
@media (prefers-reduced-motion: reduce) {
  .cdj-card {
    transition: none !important;
    transform: none !important;
  }
  .mode-card,
  .fil-mode-card {
    transition: none !important;
  }
}

/* ============================================================
   24. CARROUSEL & GRILLE HORIZONTALE — CDJ
   ============================================================ */

/* --- Sélecteur de vue --- */
.cdj-view-switcher {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-m);
  flex-wrap: wrap;
}

.cdj-view-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  padding: 0.45em 1em;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  color: var(--color-text-secondary);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.cdj-view-btn:hover {
  color: var(--color-text-primary);
  border-color: rgba(169, 61, 255, 0.4);
}

.cdj-view-btn.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--gradient-sig);
  box-shadow: var(--shadow-glow-sig);
}

/* Mobile: reduce padding so both buttons fit at 390px */
@media (max-width: 479px) {
  .cdj-view-btn {
    padding: 0.4em 0.7em;
    font-size: 0.72rem;
    gap: 4px;
  }
  .cdj-view-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* --- Wrapper du carrousel --- */
.cdj-display-wrap {
  position: relative;
  overflow: hidden; /* Empêche le track de faire déborder le document */
  overflow-x: clip; /* Isole le scroll horizontal du track — empêche le layout bleed */
  max-width: 100%;
}

/* --- Boutons nav gauche/droite --- */
.cdj-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13, 13, 24, 0.88);
  border: 1.5px solid var(--color-border);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out);
}

.cdj-nav-btn:hover {
  background: rgba(169, 61, 255, 0.25);
  border-color: rgba(169, 61, 255, 0.5);
  box-shadow: var(--shadow-glow-violet);
}

.cdj-nav-btn[hidden] {
  display: none !important;
}

/* Masquer en mobile */
@media (max-width: 767px) {
  .cdj-nav-btn {
    display: none !important;
  }
}

.cdj-nav-prev {
  left: var(--space-xs);
}

.cdj-nav-next {
  right: var(--space-xs);
}

/* Dégradés de fondu sur les bords */
.cdj-display-wrap::before,
.cdj-display-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}

.cdj-display-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg) 0%, transparent 100%);
}

.cdj-display-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg) 0%, transparent 100%);
}

/* Activer fondu seulement en mode carrousel */
.cdj-display-wrap.is-carousel::before,
.cdj-display-wrap.is-carousel::after {
  opacity: 1;
}

/* --- Track commun (scroll horizontal) --- */
.cdj-track {
  display: flex;
  flex-direction: row;
  align-items: flex-start; /* cartes prennent leur hauteur naturelle, pas de gap vide */
  gap: var(--space-m);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px; /* room for focus outline */
  outline: none;
}

.cdj-track::-webkit-scrollbar {
  display: none;
}

/* --- MODE CARROUSEL --- */
.cdj-track.cdj-track--carousel {
  /* Largeur des cartes: 320px desktop, 78vw mobile */
}

.cdj-track.cdj-track--carousel .cdj-card {
  flex: 0 0 320px;
  width: 320px;
  scroll-snap-align: start;
}

@media (max-width: 767px) {
  .cdj-track.cdj-track--carousel .cdj-card {
    flex: 0 0 78vw;
    width: 78vw;
  }
}

/* --- MODE GRILLE (4 lignes, scroll horizontal) --- */
.cdj-track.cdj-track--grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(4, auto);
  gap: var(--space-s);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  align-items: start;
}

.cdj-track.cdj-track--grid .cdj-card {
  scroll-snap-align: start;
  width: 200px;
  flex: none;
}

/* Vignettes compactes en mode grille */
.cdj-track.cdj-track--grid .cdj-thumb {
  aspect-ratio: 1 / 1;
}

.cdj-track.cdj-track--grid .cdj-prompt,
.cdj-track.cdj-track--grid .cdj-use-prompt {
  display: none;
}

.cdj-track.cdj-track--grid .cdj-card-title {
  font-size: var(--step--1);
  -webkit-line-clamp: 2;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cdj-track.cdj-track--grid .cdj-price {
  font-size: var(--step-0);
}

.cdj-track.cdj-track--grid .cdj-add-btn {
  font-size: calc(var(--step--1) * 0.9);
  padding: 0.4em 0.7em;
}

/* Mobile: 2 lignes en grille */
@media (max-width: 767px) {
  .cdj-track.cdj-track--grid {
    grid-template-rows: repeat(2, auto);
  }

  .cdj-track.cdj-track--grid .cdj-card {
    width: 160px;
  }
}

/* --- prefers-reduced-motion : désactive scroll-behavior doux --- */
@media (prefers-reduced-motion: reduce) {
  .cdj-track {
    scroll-behavior: auto !important;
  }
}
