/* =====================================================================
   PAGE D'ACCUEIL — style inspiré d'oraimo (blanc aéré, gris clair, arrondis)
   Toutes les classes sont préfixées h- / hc- pour ne rien casser ailleurs.
   ===================================================================== */
.home{
  --h-primary:var(--primary,#2f6fed);
  --h-primary-dark:var(--primary-dark,#1e56c9);
  --h-red:#e11d48;
  --h-ink:#111827;
  --h-muted:#6b7280;
  --h-line:#eceef2;
  --h-soft:#f5f6f8;
  font-family:'Poppins','Segoe UI',Roboto,Arial,sans-serif;
  color:var(--h-ink);
}
.h-wrap{max-width:1280px;margin:0 auto;padding:0 20px}
.h-section{padding:36px 0}
.h-gray{background:var(--h-soft)}

/* ---------- En-têtes de section ---------- */
.h-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:20px}
.h-head h2{font-size:26px;font-weight:700;letter-spacing:-.4px;line-height:1.2}
.h-head a{font-size:14px;font-weight:600;color:var(--h-ink);white-space:nowrap;display:inline-flex;gap:6px;align-items:center}
.h-head a span{transition:transform .2s}
.h-head a:hover{color:var(--h-primary)}
.h-head a:hover span{transform:translateX(3px)}

/* ---------- 1. Carrousel bannières ---------- */
.h-hero{position:relative;background:#0f172a;overflow:hidden}
.h-hero-track{position:relative;aspect-ratio:3/1}
.h-hero-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .6s ease,visibility .6s}
.h-hero-slide.is-active{opacity:1;visibility:visible}
.h-hero-slide a,.h-hero-slide picture{display:block;width:100%;height:100%}
.h-hero-slide img{width:100%;height:100%;object-fit:cover}
.h-hero-nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;
  background:rgba(255,255,255,.85);color:var(--h-ink);font-size:28px;line-height:1;display:grid;place-items:center;
  box-shadow:0 4px 14px rgba(0,0,0,.15);opacity:0;transition:opacity .2s}
.h-hero:hover .h-hero-nav{opacity:1}
.h-prev{left:20px}.h-next{right:20px}
.h-hero-dots{position:absolute;left:0;right:0;bottom:16px;display:flex;justify-content:center;gap:8px}
.h-hero-dots button{width:8px;height:8px;border-radius:99px;background:rgba(255,255,255,.55);transition:width .3s,background .3s}
.h-hero-dots button.is-active{width:26px;background:#fff}

/* Bandeau sans bannière */
.h-hero-empty{background:linear-gradient(120deg,#0f172a 0%,#1e3a8a 60%,var(--h-primary) 100%);color:#fff;padding:72px 0}
.h-kicker{display:inline-block;font-size:12px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;opacity:.8;margin-bottom:12px}
.h-hero-empty h1{font-size:44px;font-weight:700;line-height:1.1;letter-spacing:-1px;max-width:640px}
.h-hero-empty p{margin:14px 0 26px;max-width:520px;opacity:.85}
.h-cta{display:inline-block;background:#fff;color:var(--h-ink);font-weight:600;padding:13px 28px;border-radius:99px;transition:transform .2s,box-shadow .2s}
.h-cta:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.18)}

/* ---------- 2. Catégories ---------- */
.h-cats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:16px}
.h-cat{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.h-cat-img{width:100%;aspect-ratio:1;border-radius:20px;background:var(--h-soft);display:grid;place-items:center;overflow:hidden;transition:transform .25s,box-shadow .25s}
.h-cat-img img{width:100%;height:100%;object-fit:cover}
.h-cat-emoji{font-size:44px}
.h-cat:hover .h-cat-img{transform:translateY(-3px);box-shadow:0 10px 22px rgba(17,24,39,.08)}
.h-cat-name{font-size:14px;font-weight:600;line-height:1.25}

/* ---------- Grilles produits ---------- */
.h-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.h-row{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 3*18px)/4);gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;
  padding-bottom:6px;scrollbar-width:thin}
.h-row > *{scroll-snap-align:start}

/* ---------- Carte produit ---------- */
.hc{background:#fff;border-radius:18px;overflow:hidden;display:flex;flex-direction:column;border:1px solid var(--h-line);transition:box-shadow .25s,transform .25s}
.h-gray .hc{border-color:transparent}
.hc:hover{box-shadow:0 14px 30px rgba(17,24,39,.09);transform:translateY(-3px)}
.hc-media{position:relative;display:block;aspect-ratio:1;background:var(--h-soft);overflow:hidden}
.h-gray .hc-media{background:#f0f1f4}
.hc-media img{width:100%;height:100%;object-fit:contain;padding:18px;transition:transform .35s}
.hc:hover .hc-media img{transform:scale(1.05)}
.hc-fallback{display:grid;place-items:center;height:100%;font-size:48px}
.hc-badge{position:absolute;top:12px;left:12px;z-index:1;font-size:10.5px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;
  padding:4px 9px;border-radius:6px;background:var(--h-ink);color:#fff}
.hc-badge-new{background:var(--h-primary)}
.hc-badge-bf{background:#000}
.hc-badge-out{background:#9ca3af}
.hc-off{position:absolute;top:12px;right:12px;z-index:1;font-size:12px;font-weight:700;color:#fff;background:var(--h-red);padding:3px 8px;border-radius:99px}
.hc-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:6px;flex:1}
.hc-name{font-size:14.5px;font-weight:600;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em}
.hc-name:hover{color:var(--h-primary)}
.hc-rating{font-size:12px;color:#f59e0b}
.hc-rating small{color:var(--h-muted)}
.hc-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin-top:auto}
.hc-price strong{font-size:17px;font-weight:700}
.hc-price s{font-size:12.5px;color:var(--h-muted)}
.hc-btn{display:block;width:100%;margin-top:8px;padding:10px 12px;border-radius:99px;border:1.5px solid var(--h-ink);
  font-size:13.5px;font-weight:600;text-align:center;color:var(--h-ink);background:#fff;transition:background .2s,color .2s,border-color .2s}
.hc-btn:hover{background:var(--h-primary);border-color:var(--h-primary);color:#fff}
.hc-btn-ghost{border-color:var(--h-line);color:var(--h-muted)}
.hc-out .hc-media img{opacity:.5}

/* ---------- 4. Bannières promo ---------- */
.h-promos{display:grid;gap:18px}
.h-promos-2{grid-template-columns:1fr 1fr}
.h-promo{display:block;border-radius:20px;overflow:hidden;aspect-ratio:2/1;background:var(--h-soft)}
.h-promo img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.h-promo:hover img{transform:scale(1.03)}
.h-promos-1 .h-promo{aspect-ratio:4/1}

/* ---------- 6. Confiance ---------- */
.h-trust{border-top:1px solid var(--h-line);border-bottom:1px solid var(--h-line);padding:28px 0}
.h-trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.h-trust-item{display:flex;gap:12px;align-items:center}
.h-trust-item > span{flex:none;width:48px;height:48px;border-radius:14px;background:var(--h-soft);display:grid;place-items:center;font-size:22px}
.h-trust-item strong{display:block;font-size:14.5px}
.h-trust-item p{font-size:13px;color:var(--h-muted);margin:0}
.h-trust-item a{color:var(--h-primary);font-weight:600}
.h-all{text-align:center}
.h-all .h-cta{background:var(--h-ink);color:#fff}

/* ---------- Tablette ---------- */
@media (max-width:1024px){
  .h-grid{grid-template-columns:repeat(3,1fr)}
  .h-row{grid-auto-columns:calc((100% - 2*16px)/3);gap:16px}
  .h-trust-grid{grid-template-columns:repeat(2,1fr)}
}

/* ---------- Mobile ---------- */
@media (max-width:700px){
  .h-wrap{padding:0 16px}
  .h-section{padding:26px 0}
  .h-head h2{font-size:20px}
  .h-hero-track{aspect-ratio:1/1}
  .h-hero-nav{display:none}
  .h-hero-empty{padding:48px 0}
  .h-hero-empty h1{font-size:30px}
  .h-cats{display:flex;overflow-x:auto;gap:12px;scroll-snap-type:x mandatory;padding-bottom:4px}
  .h-cat{flex:0 0 84px;scroll-snap-align:start}
  .h-cat-img{border-radius:16px}
  .h-cat-emoji{font-size:32px}
  .h-cat-name{font-size:12px}
  .h-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .h-row{grid-auto-columns:46%;gap:12px}
  .hc{border-radius:14px}
  .hc-media img{padding:10px}
  .hc-body{padding:10px 12px 12px}
  .hc-name{font-size:13px}
  .hc-price strong{font-size:15px}
  .hc-btn{font-size:12.5px;padding:8px}
  .h-promos-2{grid-template-columns:1fr}
  .h-promos-1 .h-promo{aspect-ratio:2/1}
  .h-trust-grid{grid-template-columns:1fr 1fr;gap:14px}
  .h-trust-item{flex-direction:column;align-items:flex-start;gap:8px}
}
