/* ============================================================
   GALERIE MOBILE ACCUEIL (.hg-) — activée uniquement sous 760px.
   La section « featured-scroll » d'origine reste strictement
   inchangée sur ordinateur ; elle est simplement masquée sur
   mobile, où cette galerie horizontale prend le relais.
   ============================================================ */

.home-gallery{display:none}

@media (max-width:760px){
  .featured-scroll-section{display:none!important}

  .home-gallery{
    display:block;
    position:relative;
    padding:84px 0 90px;
    overflow:hidden;
    background:
      radial-gradient(circle at 78% 10%,rgba(88,80,255,.16),transparent 38%),
      radial-gradient(circle at 12% 82%,rgba(255,255,255,.045),transparent 30%),
      linear-gradient(180deg,#030307 0%,#060610 55%,#030307 100%);
  }

  .hg-head{padding:0 20px;max-width:560px}
  .hg-head .section-title{
    font-size:clamp(2rem,9.6vw,3.2rem);
    line-height:1.04;
    letter-spacing:-.06em;
    margin:0;
  }
  .hg-intro{
    color:var(--muted);
    font-size:1rem;
    line-height:1.65;
    margin:16px 0 0;
  }
  .hg-cta{margin-top:22px}

  .hg-viewport{
    margin-top:38px;
    overflow:hidden;
    touch-action:pan-y; /* le scroll vertical de la page reste prioritaire */
    cursor:grab;
    user-select:none;
    -webkit-user-select:none;
  }
  .hg-viewport.is-dragging{cursor:grabbing}

  .hg-track{
    display:flex;
    gap:14px;
    width:max-content;
    padding:0 20px;
    will-change:transform;
  }

  .hg-card{
    flex:none;
    width:min(76vw,330px);
    display:flex;
    flex-direction:column;
    border-radius:24px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.13);
    background:rgba(10,10,18,.72);
    -webkit-tap-highlight-color:transparent;
  }
  .hg-card-media{
    display:block;
    aspect-ratio:1/1.02;
    overflow:hidden;
    background:#0a0a14;
  }
  .hg-card-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    pointer-events:none;
  }
  .hg-card-body{
    display:flex;
    flex-direction:column;
    gap:8px;
    padding:16px 18px 20px;
  }
  .hg-card-label{
    font-size:.62rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.14em;
    color:#a89fff;
  }
  .hg-card-title{
    font-size:1.35rem;
    font-weight:800;
    letter-spacing:-.03em;
    color:#fff;
  }
  .hg-card-text{
    font-size:.82rem;
    line-height:1.5;
    color:rgba(255,255,255,.62);
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .hg-hint{
    display:flex;
    align-items:center;
    gap:10px;
    margin:24px 20px 0;
    font-size:.7rem;
    font-weight:600;
    letter-spacing:.14em;
    text-transform:uppercase;
    color:rgba(255,255,255,.5);
  }
  .hg-hint:before{
    content:"";
    width:34px;
    height:1px;
    background:linear-gradient(90deg,var(--logada),transparent);
  }

  /* Réduction des animations : liste horizontale manuelle classique. */
  .hg-viewport.hg-static{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
  }
  .hg-viewport.hg-static::-webkit-scrollbar{display:none}
  .hg-viewport.hg-static .hg-track{transform:none!important}
  .hg-viewport.hg-static .hg-card{scroll-snap-align:start}
}

@media (max-width:420px){
  .hg-card{width:min(79vw,330px)}
  .hg-head .section-title{font-size:clamp(1.85rem,10.4vw,2.6rem)}
}
