/* home.css — Homepage — Lonewolf boutique — LONEWOLF 2026 */
/* Chargé uniquement sur la page d'accueil. Zéro couleur en dur : tokens uniquement. */

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .home-marquee-track { animation: none !important; }
  .hero-wolf-mark { view-transition-name: none !important; }
}

/* ========================================
   HERO — typographique pleine largeur, loup en filigrane
   ======================================== */
.hero-premium {
  position: relative;
  overflow: hidden;
  text-align: left;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-7) var(--space-4) var(--space-6);
  min-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Éclairage ambiant : UN seul glow violet très désaturé */
.hero-premium::before {
  content: '';
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  right: -15%;
  top: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 11%, transparent) 0%, transparent 65%);
  filter: blur(80px);
  pointer-events: none;
}

/* Loup filigrane */
.hero-wolf-mark {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: min(48vw, 560px);
  color: var(--text);
  opacity: .06;
  pointer-events: none;
  z-index: 0;
}

.hero-wolf-mark svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-premium > :not(.hero-wolf-mark) {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 6px 12px;
  color: var(--accent-text);
  display: inline-block;
  align-self: flex-start;
}

.hero-headline {
  font-size: var(--fs-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--ls-display);
  line-height: .92;
  margin: var(--space-3) 0 var(--space-4);
  color: var(--text);
  max-width: 12ch;
}

/* Un seul mot accent autorisé — pas de gradient-text */
.hero-headline-accent {
  color: var(--accent-text);
}

.hero-baseline {
  font-size: clamp(1rem, .9rem + .5vw, 1.125rem);
  line-height: 1.6;
  color: var(--gray-7);
  max-width: 46ch;
  margin-bottom: var(--space-5);
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  padding: 16px 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-decoration: none;
  box-shadow: none;
  transition: background var(--transition), transform var(--transition);
}

.hero-cta-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.hero-cta-primary:active {
  transform: scale(.98);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.hero-cta-secondary:hover {
  border-color: var(--gray-6);
  background: var(--gray-2);
  transform: translateY(-2px);
}

.hero-cta-secondary:active {
  transform: scale(.98);
}

/* ── Hero SOMBRE (2026-08-02) ──────────────────────────────────────────────
   Le hero clair contredisait la promesse « dark streetwear / pièces noires » dès le
   premier écran. Fond encre + loup blanc plus présent, texte clair forcé dans les deux
   thèmes (le hero est une signature sombre, indépendante du toggle clair/sombre). */
.hero-premium {
  background: #0A0A0C;
  margin-top: 0;
}
.hero-premium .hero-headline { color: #ffffff; }
.hero-premium .hero-baseline { color: #a8a8b3; }
.hero-premium .hero-eyebrow {
  color: #ffffff;
  border-color: rgba(255, 255, 255, .28);
}
.hero-wolf-mark { color: #ffffff; opacity: .14; }

/* Photo d'ambiance (desktop seulement) : silhouette de dos face aux montagnes,
   génération maison — usage AMBIANCE DE MARQUE uniquement, jamais en photo produit
   (règle lifestyle du 03/08). Fondu vers l'encre à gauche pour la lisibilité du
   texte ; le mobile garde le fond uni (0 octet, 0 risque LCP). 24 Ko WebP. */
@media (min-width: 1025px) {
  .hero-premium {
    /* Image portrait affichée à sa hauteur (bande droite ~480 px) — PAS en cover :
       cover la zoomait en tranche floue illisible. Fondu en PIXELS depuis la droite
       (stable à toutes les largeurs) : 300 px nets, fusion sur ~220 px, encre au-delà. */
    background-image:
      linear-gradient(270deg, rgba(10, 10, 12, 0) 0px, rgba(10, 10, 12, .08) 300px, #0A0A0C 540px),
      url('/assets/img/hero-ambiance.webp');
    background-size: auto, auto 100%;
    background-position: right center;
    background-repeat: no-repeat;
  }
  /* Le filigrane SVG est remplacé par la photo (doublon visuel sinon) */
  .hero-wolf-mark { display: none; }
}
.hero-premium .hero-cta-secondary { color: #ffffff; border-color: rgba(255, 255, 255, .4); }
.hero-premium .hero-cta-secondary:hover {
  border-color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .06);
}

@media (max-width: 768px) {
  .hero-premium {
    padding: var(--space-6) 20px;
    min-height: 0;
  }
  .hero-wolf-mark {
    width: 80vw;
    right: -25%;
    opacity: .1;
  }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
}

/* ========================================
   MARQUEE TICKER (entre hero et suite de page)
   ======================================== */
.home-marquee {
  border-block: 1px solid var(--border);
  padding: 12px 0;
  overflow: hidden;
}

.home-marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}

.home-marquee-track > span {
  padding-right: .5em;
}

/* ========================================
   SECTION PILLIERS "POURQUOI LONEWOLF"
   ======================================== */
.why-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: var(--space-7) var(--space-4);
}

.why-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  text-align: left;
  margin-bottom: 12px;
}

.section-title {
  text-align: left;
  font-size: var(--fs-h2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--ls-display);
  color: var(--text);
  margin-bottom: var(--space-5);
  line-height: 1.05;
}

.why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.why-card {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: left;
  transition: border-color var(--transition);
}

.why-card:hover {
  border-color: var(--gray-5);
}

.why-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px;
  color: var(--accent-text);
}

.why-card-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 10px;
}

.why-card-desc {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  /* Empilées, les 3 cartes promesse coûtaient 1 133 px de défilement (mesure 07/08).
     En rail horizontal, la section tient dans une hauteur de carte. */
  .why-cards {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .why-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
    padding: 24px 20px;
  }
  .why-section { padding: var(--space-6) 20px; }
}

/* ========================================
   SOUS-SECTIONS HOME (sélection, best-sellers)
   ======================================== */
.home-sub-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) 0;
}

.home-sub-section .section-title {
  margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
  /* Même logique que les cartes promesse : la sélection empilée = 2 110 px de
     défilement. Rail horizontal avec aperçu de la carte suivante (62 %). */
  .home-sub-section .related-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .home-sub-section .related-grid .product-card {
    flex: 0 0 62%;
    scroll-snap-align: start;
  }
}

/* ========================================
   BEST SELLER BADGE
   ======================================== */
.badge-bestseller {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gray-8);
  color: var(--gray-0);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 2px;
  z-index: 3;
  box-shadow: none;
}

/* S'assure que product-card-wrap a position relative pour les badges absolus */
.product-card-wrap { position: relative; }

/* ========================================
   TESTIMONIALS CAROUSEL
   ======================================== */
.testimonials-section {
  padding: var(--space-7) var(--space-4);
  max-width: var(--max-width);
  margin: 0 auto;
}

.testimonials-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.testimonials-carousel::-webkit-scrollbar { display: none; }

.testimonial-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--gray-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition);
}

.testimonial-card:hover {
  border-color: var(--gray-5);
}

.testimonial-stars {
  color: var(--accent-text);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial-text {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 18px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-ink);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.testimonial-location {
  font-size: 12px;
  color: var(--text-muted);
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), width var(--transition);
}

.carousel-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .testimonials-section { padding: var(--space-6) 20px; }
  .testimonial-card { flex: 0 0 280px; }
}

/* ========================================
   NEWSLETTER "REJOINS LA MEUTE"
   ======================================== */
.newsletter-section {
  background: var(--gray-1);
  border-block: 1px solid var(--border);
  padding: var(--space-7) var(--space-4);
  text-align: center;
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-headline {
  font-size: var(--fs-h2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--ls-display);
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.05;
}

.newsletter-headline em {
  font-style: normal;
  color: var(--accent-text);
}

.newsletter-sub {
  font-size: var(--fs-body);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  background: var(--gray-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-family);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.newsletter-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

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

.newsletter-submit {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  transition: background var(--transition), transform var(--transition);
}

.newsletter-submit:hover {
  background: var(--accent-hover);
}

.newsletter-submit:active {
  transform: scale(.98);
}

.newsletter-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
  opacity: .7;
}

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-section { padding: var(--space-6) 20px; }
}

/* ========================================
   INSTAGRAM STYLE FEED
   ======================================== */
.ig-section {
  padding: var(--space-7) var(--space-4);
  max-width: var(--max-width);
  margin: 0 auto;
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-radius: var(--radius);
  overflow: hidden;
}

.ig-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface);
  display: block;
  text-decoration: none;
}

.ig-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}

.ig-tile:hover img {
  transform: scale(1.04);
}

.ig-tile-overlay {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--gray-0) 55%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity var(--transition);
}

.ig-tile:hover .ig-tile-overlay {
  opacity: 1;
}

.ig-tile-label {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  text-align: center;
  padding: 0 12px;
}

.ig-tile-corner {
  position: absolute;
  top: 10px;
  right: 10px;
  color: color-mix(in srgb, var(--text) 70%, transparent);
  width: 20px;
  height: 20px;
}

/* Placeholder pour tiles sans image */
.ig-tile-placeholder {
  background: var(--accent-dim);
}

@media (max-width: 768px) {
  .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 2px; }
  .ig-section { padding: var(--space-6) 20px; }
}

@media (max-width: 480px) {
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   EXISTING .hero OVERRIDE (remplace sur home)
   ======================================== */
/* On cache le hero simple existant si le hero-premium est présent */
.hero-simple-replaced { display: none; }

/* ── Capture email du hero (mode vitrine) ──────────────────────────────────
   La home était la seule page sans point de capture : le visiteur qui n'ouvrait
   pas une fiche produit repartait sans jamais pouvoir laisser son adresse.
   Cibles tactiles ≥ 44px (WCAG 2.5.5) : c'est le seul organe de conversion du site. */
.hero-statut {
  max-width: 46ch;
  margin: 0 0 18px;
  color: var(--accent-text);
  font-size: .95rem;
  line-height: 1.6;
}

.hero-waitlist {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 460px;
}

.hero-waitlist input {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-sm, 2px);
  color: #fff;
  font: inherit;
  font-size: 16px; /* < 16px déclenche un zoom automatique sur iOS */
}

.hero-waitlist input::placeholder { color: rgba(255, 255, 255, .5); }

.hero-waitlist input:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
  border-color: transparent;
}

.hero-waitlist button {
  min-height: 48px;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: var(--radius-sm, 2px);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background var(--transition, .2s ease);
}

.hero-waitlist button:hover { background: var(--accent-hover); }
.hero-waitlist button:disabled { opacity: .6; cursor: default; }

.hero-waitlist-note {
  margin: 10px 0 0;
  font-size: .78rem;
  color: rgba(255, 255, 255, .55);
}

.hero-waitlist-msg { margin: 10px 0 0; font-size: .9rem; min-height: 1.2em; }
.hero-waitlist-msg.ok  { color: var(--success, #2fbf71); }
.hero-waitlist-msg.err { color: #ff8891; }

.hero-ctas--secondaire { margin-top: 22px; }

@media (max-width: 600px) {
  .hero-waitlist { max-width: none; }
  .hero-waitlist input,
  .hero-waitlist button { flex: 1 1 100%; }
}

/* ── Bandeau cookies affiché : le CTA doit rester au-dessus de lui ─────────
   Le bandeau est fixé en bas de fenêtre : sur une fenêtre basse, le formulaire
   de capture tombe pile dans sa bande (mesuré 390×844 : bouton 649→697 sous un
   bandeau démarrant à 640 ; 1280×720 : bouton 670→721 pour 720px de haut).
   On resserre alors le rythme vertical du hero en remappant ses tokens
   d'espacement — pas en réécrivant chaque marge — et seulement tant que le
   consentement n'est pas donné : le choix fait, le hero reprend son rythme.
   Seuil 880px : mesuré, une fenêtre de 896px de haut laisse déjà ~98px entre
   le formulaire et le bandeau, une de 844px n'en laisse que 8. */
@media (max-height: 880px) {
  body.cookie-banner-visible .hero-premium {
    --space-7: var(--space-4);   /* 104 → 24 : padding haut (≥769px) */
    --space-6: var(--space-4);   /*  64 → 24 : padding haut/bas (≤768px) */
    --space-5: var(--space-4);   /*  40 → 24 : respiration sous la baseline */
    --space-3: var(--space-2);   /*  16 →  8 : marge haute du titre */
  }
}

/* Écrans étroits ET bas (360×800) : le bandeau pleine largeur mange ~130px de
   haut, il reste moins de 8px de marge — on resserre d'un cran de plus. */
@media (max-width: 600px) and (max-height: 880px) {
  body.cookie-banner-visible .hero-premium {
    --space-4: var(--space-3);   /*  24 → 16 : se propage aux tokens ci-dessus */
  }
}

/* iPhone SE & co (375×667) : 667px de haut pour un en-tête de 131px, un
   formulaire empilé de 110px et un bandeau de ~130px — le compte n'y est pas.
   Le champ et le bouton repassent côte à côte (−62px) le temps du consentement.
   Les deux gardent leurs 48px de haut : cible tactile WCAG 2.5.5 intacte. */
@media (max-width: 600px) and (max-height: 700px) {
  body.cookie-banner-visible .hero-waitlist {
    flex-wrap: nowrap;
  }
  body.cookie-banner-visible .hero-waitlist input { flex: 1 1 auto; min-width: 0; }
  body.cookie-banner-visible .hero-waitlist button { flex: 0 0 auto; padding: 12px 16px; }
  body.cookie-banner-visible .hero-statut { margin-bottom: 8px; }
}
