/* ==========================================================================
   HOME.CSS - Nouvelle page d'accueil (hero animé, diagnostic express,
   arrivages en direct, exclusivités, avis défilants)
   ========================================================================== */

:root {
  --hx-deep: #243442;
  --hx-base: #2e4051;
  --hx-alt: #364d61;
  --hx-raise: #3a5269;
  --hx-ink: #F5F8FB;
  --hx-muted: #b0c0d0;
  --hx-line: rgba(197, 208, 219, 0.16);
  --hx-orange: #FF7A00;
  --hx-orange-2: #FFA040;
  --hx-ease: cubic-bezier(.2, .8, .2, 1);
}

.hx-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-family-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hx-orange);
  margin-bottom: .9rem;
}

.hx-kicker::before {
  content: '';
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.hx-title {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  color: var(--hx-ink);
  letter-spacing: -0.02em;
  margin-bottom: .75rem;
}

.hx-title em {
  font-style: normal;
  color: var(--hx-orange);
}

.hx-lead {
  color: var(--hx-muted);
  font-size: 1.1rem;
  max-width: 620px;
}

.hx-head {
  margin-bottom: 2.5rem;
}

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

.hx-head--center .hx-lead {
  margin-left: auto;
  margin-right: auto;
}

.hx-section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  position: relative;
}

/* Apparition au scroll (uniquement si JS actif) */
.hx-js .hx-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--hx-ease), transform .8s var(--hx-ease);
  transition-delay: var(--d, 0s);
}

.hx-js .hx-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hx-hero {
  position: relative;
  overflow: hidden;
  background: var(--hx-deep);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  isolation: isolate;
}

/* Photo du magasin + voile bleu-gris pour garder le texte lisible */
.hx-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(36, 52, 66, .95) 0%, rgba(36, 52, 66, .86) 42%, rgba(36, 52, 66, .55) 100%),
    url('../img/hero/hero-magasin.jpg') center 60% / cover no-repeat;
}


.hx-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hx-status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .95rem .45rem .7rem;
  border-radius: 999px;
  background: rgba(245, 248, 251, .07);
  border: 1px solid var(--hx-line);
  color: var(--hx-ink);
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
  backdrop-filter: blur(6px);
}

.hx-status__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9aa9b8;
  position: relative;
}

.hx-status--open .hx-status__dot {
  background: #34D399;
}

.hx-status--open .hx-status__dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid #34D399;
  animation: hxPing 1.8s ease-out infinite;
}

.hx-status--soon .hx-status__dot {
  background: var(--hx-orange-2);
}

@keyframes hxPing {
  0% { transform: scale(.5); opacity: .9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hx-hero__title {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: .98;
  letter-spacing: -0.025em;
  color: var(--hx-ink);
  margin-bottom: 1.4rem;
  font-weight: 800;
}

.hx-hero__title .hx-brand {
  display: block;
  font-size: .42em;
  letter-spacing: 0;
  color: var(--hx-orange);
  margin-bottom: .6rem;
  font-weight: 700;
}

.hx-hl {
  position: relative;
  white-space: nowrap;
  color: var(--hx-orange);
}

.hx-hl svg {
  position: absolute;
  left: -2%;
  bottom: -.12em;
  width: 104%;
  height: .32em;
  overflow: visible;
}

.hx-hl path {
  stroke: var(--hx-orange);
  stroke-width: 6;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: hxDraw 1.2s .6s var(--hx-ease) forwards;
}

@keyframes hxDraw {
  to { stroke-dashoffset: 0; }
}

.hx-hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--hx-muted);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hx-hero__sub strong {
  color: var(--hx-ink);
}

.hx-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 2.6rem;
}

.hx-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.6rem;
  border-radius: 14px;
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0;
  transition: transform .25s var(--hx-ease), box-shadow .25s var(--hx-ease), background .25s;
  cursor: pointer;
  border: 0;
}

.hx-btn--orange {
  background: linear-gradient(135deg, var(--hx-orange), #ff8f26);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(255, 122, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.hx-btn--orange:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -8px rgba(255, 122, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.hx-btn--glass {
  background: rgba(245, 248, 251, .08);
  color: var(--hx-ink);
  border: 1px solid var(--hx-line);
}

.hx-btn--glass:hover {
  background: rgba(245, 248, 251, .15);
  color: #fff;
  transform: translateY(-3px);
}

.hx-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hx-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--hx-line);
}

.hx-stat__val {
  display: block;
  font-family: var(--font-family-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  color: var(--hx-ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.hx-stat__val small {
  font-size: .55em;
  color: var(--hx-orange);
  margin-left: 2px;
}

.hx-stat__label {
  font-size: .82rem;
  color: var(--hx-muted);
}

@keyframes hxFloat2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   DIAGNOSTIC EXPRESS
   ========================================================================== */
.hx-diag-section {
  background: var(--hx-base);
}

.hx-diag {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.hx-diag__panel {
  background: var(--hx-alt);
  border: 1px solid var(--hx-line);
  border-radius: 24px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.hx-diag__step + .hx-diag__step {
  margin-top: 2rem;
}

.hx-diag__label {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--hx-ink);
  margin-bottom: 1rem;
}

.hx-diag__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .85rem;
  background: rgba(255, 122, 0, .15);
  color: var(--hx-orange);
  border: 1px solid rgba(255, 122, 0, .4);
}

.hx-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: .65rem;
}

.hx-opt {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1rem;
  border-radius: 14px;
  background: rgba(36, 52, 66, .55);
  border: 1.5px solid var(--hx-line);
  color: var(--hx-ink);
  font-weight: 600;
  font-size: .95rem;
  text-align: left;
  transition: border-color .2s, background .2s, transform .2s var(--hx-ease);
}

.hx-opt:hover {
  border-color: rgba(255, 122, 0, .6);
  transform: translateY(-2px);
}

.hx-opt[aria-pressed="true"] {
  border-color: var(--hx-orange);
  background: rgba(255, 122, 0, .14);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, .12);
}

.hx-opt__ico {
  font-size: 1.25rem;
  line-height: 1;
}

.hx-opt {
  justify-content: center;
  text-align: center;
  min-height: 52px;
}

.hx-input {
  width: 100%;
  padding: .95rem 1.1rem;
  border-radius: 14px;
  background: rgba(36, 52, 66, .55);
  border: 1.5px solid var(--hx-line);
  color: var(--hx-ink);
  font-family: var(--font-family-display);
  font-size: 1.1rem;
  font-weight: 600;
  transition: border-color .2s, box-shadow .2s;
}

.hx-input::placeholder {
  color: #8496a8;
  font-weight: 500;
}

.hx-input:focus {
  outline: none;
  border-color: var(--hx-orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, .14);
}

.hx-diag__hint {
  margin: .6rem 0 0;
  font-size: .85rem;
  color: var(--hx-muted);
}

.hx-diag__hint strong {
  color: var(--hx-ink);
}

.hx-result__phone {
  display: block;
  margin-top: .3rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--hx-orange);
  letter-spacing: 0;
}

.hx-diag__step--locked {
  opacity: .4;
  pointer-events: none;
}

.hx-result {
  position: sticky;
  top: 160px;
  border-radius: 24px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 122, 0, .22), transparent 55%),
    var(--hx-raise);
  border: 1px solid rgba(255, 122, 0, .3);
  min-height: 100%;
  color: var(--hx-ink);
}

.hx-result__empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--hx-muted);
}

.hx-result__empty .hx-result__big {
  font-size: 3rem;
  margin-bottom: .6rem;
  display: block;
  animation: hxFloat2 4s ease-in-out infinite;
}

.hx-result__tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hx-orange);
  margin-bottom: .4rem;
}

.hx-result h3 {
  color: var(--hx-ink);
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.hx-result__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  margin-bottom: 1.2rem;
}

.hx-metric {
  background: rgba(36, 52, 66, .5);
  border: 1px solid var(--hx-line);
  border-radius: 14px;
  padding: .8rem .9rem;
}

.hx-metric span {
  display: block;
  font-size: .75rem;
  color: var(--hx-muted);
  margin-bottom: .15rem;
}

.hx-metric strong {
  font-family: var(--font-family-display);
  font-size: 1.05rem;
  color: var(--hx-ink);
}

.hx-result__tip {
  font-size: .92rem;
  color: #dbe3ea;
  background: rgba(245, 248, 251, .06);
  border-left: 3px solid var(--hx-orange);
  padding: .75rem .9rem;
  border-radius: 0 10px 10px 0;
  margin-bottom: 1.4rem;
}

.hx-result__actions {
  display: grid;
  gap: .6rem;
}

.hx-result__actions .hx-btn {
  justify-content: center;
}

.hx-btn--wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(37, 211, 102, .8);
}

.hx-btn--wa:hover {
  color: #fff;
  transform: translateY(-2px);
}

.hx-result__actions .hx-btn--orange {
  padding: 1.1rem 1.4rem;
  font-size: 1.1rem;
}

.hx-result__alt {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .4rem 1.1rem;
  margin: 1rem 0 0;
  font-size: .9rem;
  color: var(--hx-muted);
}

.hx-result__alt a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--hx-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(245, 248, 251, .35);
  text-underline-offset: 3px;
}

.hx-result__alt a:hover {
  color: var(--hx-orange);
  text-decoration-color: currentColor;
}

.hx-result__alt svg {
  width: 16px;
  height: 16px;
  color: #25D366;
}

.hx-result__fine {
  margin: 1rem 0 0;
  font-size: .78rem;
  color: var(--hx-muted);
  text-align: center;
}

.hx-result--pop {
  animation: hxPop .45s var(--hx-ease);
}

@keyframes hxPop {
  0% { transform: scale(.97); opacity: .4; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   ARRIVAGES EN DIRECT
   ========================================================================== */
.hx-drops {
  background:
    radial-gradient(60% 50% at 10% 0%, rgba(255, 122, 0, .12), transparent 70%),
    var(--hx-deep);
  overflow: hidden;
}

.hx-drops__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hx-live {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255, 77, 77, .12);
  color: #ff8a8a;
  border: 1px solid rgba(255, 110, 110, .35);
  border-radius: 999px;
  padding: .3rem .75rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}

.hx-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5c5c;
  animation: hxBlink 1.2s steps(2) infinite;
}

@keyframes hxBlink {
  50% { opacity: .2; }
}

.hx-arrows {
  display: flex;
  gap: .5rem;
}

.hx-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--hx-line);
  background: rgba(245, 248, 251, .06);
  color: var(--hx-ink);
  font-size: 1.3rem;
  display: grid;
  place-items: center;
  transition: background .2s, transform .2s;
}

.hx-arrow:hover {
  background: var(--hx-orange);
  transform: scale(1.06);
}

.hx-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 280px);
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .5rem var(--spacing-md) 1.5rem;
  margin: 0 calc(var(--spacing-md) * -1);
  scrollbar-width: thin;
  scrollbar-color: var(--hx-raise) transparent;
}

.hx-drop {
  scroll-snap-align: start;
  background: var(--hx-alt);
  border: 1px solid var(--hx-line);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--hx-ink);
  transition: transform .35s var(--hx-ease), border-color .35s, box-shadow .35s;
}

.hx-drop:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 122, 0, .55);
  box-shadow: 0 24px 50px -24px rgba(255, 122, 0, .55);
  color: var(--hx-ink);
}

.hx-drop__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 40%, #ffffff, #e6edf3);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hx-drop__media img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  transition: transform .5s var(--hx-ease);
}

.hx-drop:hover .hx-drop__media img {
  transform: scale(1.07) rotate(-2deg);
}

.hx-drop__badges {
  position: absolute;
  top: .7rem;
  left: .7rem;
  right: .7rem;
  display: flex;
  justify-content: space-between;
  gap: .4rem;
}

.hx-badge {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 999px;
  background: var(--hx-deep);
  color: #fff;
}

.hx-badge--hot {
  background: var(--hx-orange);
}

.hx-drop__body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  flex: 1;
}

.hx-drop__brand {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hx-muted);
}

.hx-drop__name {
  font-family: var(--font-family-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hx-drop__meta {
  font-size: .85rem;
  color: var(--hx-muted);
}

.hx-drop__foot {
  margin-top: auto;
  padding-top: .8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hx-drop__price {
  font-family: var(--font-family-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--hx-orange);
  letter-spacing: -0.01em;
}

.hx-drop__go {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(245, 248, 251, .08);
  display: grid;
  place-items: center;
  transition: background .2s, transform .2s;
}

.hx-drop:hover .hx-drop__go {
  background: var(--hx-orange);
  transform: rotate(-45deg);
}

/* Squelettes de chargement */
.hx-drop--skel .hx-drop__media,
.hx-skel-line {
  background: linear-gradient(90deg, #364d61 0%, #46607a 50%, #364d61 100%);
  background-size: 200% 100%;
  animation: hxShimmer 1.4s linear infinite;
}

.hx-skel-line {
  height: 14px;
  border-radius: 6px;
  margin: .3rem 0;
}

@keyframes hxShimmer {
  to { background-position: -200% 0; }
}

/* Carte "Voir tout" en fin de liste */
.hx-drop--all {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.4rem;
  background: linear-gradient(160deg, var(--hx-orange), #e86a00);
  border: 0;
  gap: .8rem;
}

.hx-drop--all:hover {
  color: #fff;
}

.hx-drop--all strong {
  font-family: var(--font-family-display);
  font-size: 1.5rem;
  line-height: 1.15;
  color: #fff;
}

.hx-drop--all span {
  color: rgba(255, 255, 255, .9);
  font-size: .92rem;
}

/* Repli si l'API ne répond pas */
.hx-drops__fallback {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
  background: var(--hx-alt);
  border: 1px solid var(--hx-line);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.hx-drops__fallback p {
  color: var(--hx-muted);
}

.hx-drops__fallback img {
  border-radius: 18px;
  max-width: 340px;
  width: 100%;
  margin: 0 auto;
}

/* ==========================================================================
   EXCLUSIVITÉS
   ========================================================================== */
.hx-perks {
  background: var(--hx-base);
}

.hx-perks__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hx-line);
}

.hx-perk {
  padding: 1.75rem 1.5rem .5rem;
  border-left: 1px solid var(--hx-line);
}

.hx-perk:first-child {
  border-left: 0;
  padding-left: 0;
}

.hx-perk__tag {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hx-orange);
  margin-bottom: .6rem;
}

.hx-perk h3 {
  color: var(--hx-ink);
  font-size: 1.15rem;
  margin-bottom: .45rem;
}

.hx-perk p {
  color: var(--hx-muted);
  font-size: .95rem;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   POURQUOI NOUS (photo + liste)
   ========================================================================== */
.why-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.why-split__photo {
  position: sticky;
  top: 140px;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.why-split__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.why-point {
  padding: 1.75rem 0;
  border-top: 1px solid var(--hx-line);
}

.why-point:first-child {
  padding-top: 0;
  border-top: 0;
}

.why-point:last-child {
  padding-bottom: 0;
}

.why-point h3 {
  color: var(--hx-orange);
  font-size: 1.3rem;
  margin-bottom: .6rem;
}

.why-point p {
  color: var(--hx-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   RÉPARATIONS (liste)
   ========================================================================== */
.hx-repairs {
  background: var(--hx-deep);
}

.hx-repairs__lead {
  text-align: center;
  color: var(--hx-muted);
  max-width: 560px;
  margin: 0 auto;
}

.hx-repairs__list {
  list-style: none;
  margin: 2.5rem auto 0;
  padding: 0;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 2.5rem;
}

.hx-repair {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 0;
  border-top: 1px solid var(--hx-line);
  color: inherit;
}

.hx-repair h3 {
  color: var(--hx-ink);
  font-size: 1.15rem;
  margin-bottom: .45rem;
  transition: color .2s;
}

.hx-repair p {
  color: var(--hx-muted);
  font-size: .95rem;
  line-height: 1.6;
  margin: 0 0 .9rem;
  flex: 1;
}

.hx-repair__more {
  color: var(--hx-orange);
  font-size: .9rem;
  font-weight: 600;
}

.hx-repair__more span {
  display: inline-block;
  transition: transform .2s var(--hx-ease);
}

.hx-repair:hover h3 {
  color: var(--hx-orange);
}

.hx-repair:hover .hx-repair__more span {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .hx-repairs__list {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* ==========================================================================
   AVIS DÉFILANTS
   ========================================================================== */
.hx-reviews {
  background: var(--hx-deep);
  overflow: hidden;
}

.hx-score {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  background: rgba(245, 248, 251, .06);
  border: 1px solid var(--hx-line);
}

.hx-score__val {
  font-family: var(--font-family-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hx-marquee {
  --gap: 1.1rem;
  display: flex;
  gap: var(--gap);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #fff 8%, #fff 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #fff 8%, #fff 92%, transparent);
}

.hx-marquee + .hx-marquee {
  margin-top: var(--gap);
}

.hx-marquee__track {
  display: flex;
  gap: var(--gap);
  flex-shrink: 0;
  min-width: 100%;
  animation: hxMarquee 60s linear infinite;
}

.hx-marquee--rev .hx-marquee__track {
  animation-direction: reverse;
}

.hx-marquee:hover .hx-marquee__track {
  animation-play-state: paused;
}

@keyframes hxMarquee {
  to { transform: translateX(calc(-100% - var(--gap))); }
}

.hx-reviews .google-review-card {
  width: 340px;
  flex-shrink: 0;
  border-radius: 20px;
  padding: 1.4rem;
  background: #F5F8FB;
  box-shadow: none;
}

.hx-reviews .google-review-card__text {
  font-size: .92rem;
  color: #2D3748;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hx-hero__bg {
    background:
      linear-gradient(180deg, rgba(36, 52, 66, .9) 0%, rgba(36, 52, 66, .84) 100%),
      url('../img/hero/hero-magasin.jpg') center / cover no-repeat;
  }

  .hx-hero__inner {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
    text-align: center;
  }

  .hx-hero__sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hx-hero__cta,
  .hx-stats {
    justify-content: center;
  }

  .hx-diag {
    grid-template-columns: 1fr;
  }

  .hx-result {
    position: static;
  }

  .hx-perks__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-split {
    grid-template-columns: 1fr;
  }

  .why-split__photo {
    position: static;
    aspect-ratio: 16 / 10;
  }

  .why-split__photo img {
    object-position: center 45%;
  }

  .hx-perk:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .hx-perk:nth-child(n+3) {
    border-top: 1px solid var(--hx-line);
  }

  .hx-drops__fallback {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hx-stats {
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 1.2rem 2.2rem;
  }

  .hx-hero__cta .hx-btn {
    width: 100%;
    justify-content: center;
  }

  .hx-chips {
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
  }

  .hx-opt {
    padding: .75rem .7rem;
    font-size: .88rem;
    gap: .45rem;
  }


  .hx-perks__list {
    grid-template-columns: 1fr;
  }

  .hx-perk,
  .hx-perk:nth-child(3) {
    border-left: 0;
    padding: 1.25rem 0;
  }

  .hx-perk + .hx-perk {
    border-top: 1px solid var(--hx-line);
  }

  .hx-result__grid {
    grid-template-columns: 1fr;
  }

  .hx-reviews .google-review-card {
    width: 280px;
  }

  .hx-arrows {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hx-marquee__track,
  .hx-result__empty .hx-result__big {
    animation: none !important;
  }

  .hx-hl path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .hx-js .hx-reveal {
    opacity: 1;
    transform: none;
  }
}

/* L'attribut hidden doit toujours l'emporter sur les display: grid/flex */
.hx-drops [hidden],
.hx-arrows[hidden] {
  display: none !important;
}
