/* ============================================================
   WP-01 — Accueil
   Styles spécifiques à cette page uniquement.
   ============================================================ */


/* ================================================================
   HERO SLIDER
   ================================================================ */

/* ── Conteneur ─────────────────────────────────────────────────── */
.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background: var(--color-primary);
}

@media (max-width: 768px) { .hero-slider { min-height: 500px; } }
@media (max-width: 480px) { .hero-slider { min-height: 460px; } }

/* ── Slides : empilées, cross-fade ─────────────────────────────── */
.hs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
  user-select: none;
}

/* La slide active prend la hauteur naturelle et devient interactive */
.hs-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  user-select: auto;
  position: relative;
  z-index: 1;
}

/* ── Fonds : dégradé + image SVG ───────────────────────────────── */
.hs-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hs-bg--blue {
  background:
    url('../img/slide-1-pressing.svg') center/cover no-repeat,
    linear-gradient(135deg, #133233 0%, #1B4041 45%, #0F2B2D 100%);
}
.hs-bg--green {
  background:
    url('../img/slide-2-livraison.svg') center/cover no-repeat,
    linear-gradient(135deg, #547867 0%, #7FB77F 45%, #133233 100%);
}
.hs-bg--dark {
  background:
    url('../img/slide-3-express.svg') center/cover no-repeat,
    linear-gradient(135deg, #0F2B2D 0%, #133233 50%, #1B4041 100%);
}

/* ── Overlay dégradé (contraste texte, côté gauche renforcé) ───── */
.hs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,.52) 0%,
    rgba(0,0,0,.30) 50%,
    rgba(0,0,0,.08) 100%
  );
  z-index: 1;
}

/* ── Contenu texte — centré ─────────────────────────────────────── */
.hs-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  padding-top: var(--sp-10);
  padding-bottom: var(--sp-16); /* laisse de la place pour flèches + dots */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Evite tout debordement horizontal des blocs textes du slider */
.hs-content > * {
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 768px) {
  .hs-content {
    padding-top: var(--sp-8);
    padding-bottom: var(--sp-20);
  }

  .hs-controls {
    bottom: calc(var(--sp-2) + env(safe-area-inset-bottom, 0px));
  }
}

/* ── État repos : invisible ──────────────────────────────────────── */
.hs-eyebrow,
.hs-title,
.hs-desc,
.hs-actions { opacity: 0; }

/* ── Keyframes ──────────────────────────────────────────────────── */
@keyframes hs-fade-up {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hs-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Animations cascade (.is-active) ──────────────────────────── */
.hs-slide.is-active .hs-eyebrow {
  animation: hs-fade-up .5s ease .1s both;
}
.hs-slide.is-active .hs-title {
  animation: hs-fade-up .6s cubic-bezier(.22,.61,.36,1) .25s both;
}
.hs-slide.is-active .hs-desc {
  animation: hs-fade-in .55s ease .5s both;
}
.hs-slide.is-active .hs-actions {
  animation: hs-fade-up .5s ease .65s both;
}

/* ── Typographie ────────────────────────────────────────────────── */
.hs-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--text-small);
  font-weight: var(--fw-medium);
  margin-bottom: var(--sp-5);
  max-width: 100%;
}

.hs-title {
  width: min(100%, 680px);
  font-size: clamp(1.875rem, 5vw, 3.25rem);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  margin-bottom: var(--sp-5);
  color: var(--color-white);
  max-width: 680px;
}

.hs-highlight { color: var(--color-secondary); }

.hs-desc {
  width: min(100%, 560px);
  font-size: clamp(var(--text-body), 2vw, 1.125rem);
  opacity: .88;
  max-width: 560px;
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-8);
}

.hs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}

/* ── Contrôles (flèches + dots) — positionnés en bas ────────────── */
/*
   Sur desktop : flèches de chaque côté au centre vertical de la ZONE BASSE
   Sur mobile  : flèches et dots alignés en bas, centrés côte à côte.
*/
.hs-controls {
  position: absolute;
  bottom: var(--sp-5);
  left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  padding: 0 var(--sp-4);
}

/* ── Flèches ────────────────────────────────────────────────────── */
.hs-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--color-white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast);
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}
.hs-arrow:hover { background: rgba(255,255,255,.3); }

/* ── Dots ────────────────────────────────────────────────────────── */
.hs-dots {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}

.hs-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--t-fast), width var(--t-normal);
}
.hs-dot.is-active {
  background: var(--color-white);
  width: 24px;
  border-radius: 4px;
}

/* ── Barre de suivi rapide (sous le slider) ─────────────────────── */
.hs-track-wrap {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--sp-5) 0;
}

.hs-track-wrap .quick-track {
  margin: 0 auto;  /* centrage — max-width défini dans wp-global.css */
}

/* ── Grille avantages 2 colonnes ─────────────────────────────────── */
.avantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8);
}

@media (max-width: 768px) {
  .avantages-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
}

/* ── Grille témoignages ──────────────────────────────────────────── */
.temoignages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

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

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

@media (max-width: 480px) {
  .hero-slider { min-height: 420px; }
  .hs-title { font-size: clamp(1.5rem, 7vw, 2rem); }
  .hs-desc  { font-size: var(--text-body); margin-bottom: var(--sp-6); }
  .hs-actions .btn { width: 100%; justify-content: center; }
  .hs-content { padding-bottom: calc(var(--sp-20) + var(--sp-2)); }
  .hs-track-wrap { padding: var(--sp-4) 0; }
  .avantages-grid { gap: var(--sp-4); }
}
