/* ============================================================
   H-PAT · Feuille de style principale — v2
   Matériel & équipement médical · Abidjan, Côte d'Ivoire
   Hero vidéo + galerie produits + animations
   ============================================================ */

/* ---------- Jetons (tokens) ---------- */
:root{
  --brand-red:        #D8232A;
  --brand-red-dark:   #A8171E;
  --brand-red-light:  #FBE9EA;
  --brand-blue:       #1560C0;
  --brand-blue-dark:  #0D4487;
  --brand-blue-light: #E8F0FB;

  --ink:    #232A38;
  --text:   #2E2E2E;
  --muted:  #6B6B6B;
  --line:   #E7ECF3;
  --bg:     #FFFFFF;
  --bg-alt: #F7F9FC;
  --night:  #0B1626;

  --success:#10893E;

  --r-sm:10px; --r-md:16px; --r-lg:24px; --r-pill:999px;

  --sh-1:0 1px 2px rgba(16,32,64,.06), 0 1px 3px rgba(16,32,64,.05);
  --sh-2:0 10px 30px rgba(16,45,90,.10), 0 2px 8px rgba(16,45,90,.06);
  --sh-3:0 24px 60px rgba(13,68,135,.16);

  --font-head: Montserrat, "Segoe UI", Arial, sans-serif;
  --font-body: Inter, "Segoe UI", system-ui, Arial, sans-serif;

  --container: 1180px;
  --header-h: 74px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--font-body); font-size:16px; line-height:1.6;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img,svg,video{ max-width:100%; }
img{ display:block; }
a{ color:var(--brand-blue); text-decoration:none; }
h1,h2,h3,h4{ font-family:var(--font-head); color:var(--ink); margin:0 0 .5em; line-height:1.15; letter-spacing:-.01em; }
p{ margin:0 0 1em; }
ul{ margin:0; padding:0; list-style:none; }
button{ font:inherit; }
section{ scroll-margin-top:90px; }
:focus-visible{ outline:3px solid rgba(21,96,192,.5); outline-offset:2px; border-radius:6px; }

.skip-link{
  position:absolute; left:-9999px; top:0; z-index:300;
  background:var(--brand-blue); color:#fff; padding:10px 16px; border-radius:0 0 10px 0;
}
.skip-link:focus{ left:0; }

/* ---------- Layout ---------- */
.container{ width:min(var(--container), 92vw); margin:0 auto; }
.section{ padding:78px 0; }
.section--alt{ background:var(--bg-alt); }
.section-head{ max-width:680px; margin-bottom:36px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size:clamp(1.6rem, 3vw, 2.15rem); font-weight:800; }
.section-head p{ color:var(--muted); margin:0; }

.eyebrow{
  display:inline-flex; align-items:center; gap:9px;
  font-family:var(--font-head); font-size:.74rem; font-weight:700;
  letter-spacing:.2em; text-transform:uppercase; color:var(--brand-blue); margin-bottom:14px;
}
.eyebrow::before{ content:""; width:26px; height:2px; background:var(--brand-red); border-radius:2px; }
.center .eyebrow{ justify-content:center; }
.eyebrow--light{ color:#9CC1F0; }

.section-head--row{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; max-width:none; flex-wrap:wrap; }
.link-arrow{ font-family:var(--font-head); font-weight:700; font-size:.9rem; display:inline-flex; align-items:center; gap:7px; }
.link-arrow svg{ width:16px; height:16px; transition:transform .2s var(--ease); }
.link-arrow:hover svg{ transform:translateX(4px); }

/* ---------- Boutons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px; cursor:pointer;
  font-family:var(--font-head); font-weight:700; font-size:.92rem; line-height:1;
  padding:13px 24px; border-radius:var(--r-pill); border:1.5px solid transparent;
  transition:transform .18s var(--ease), background .18s, box-shadow .18s, border-color .18s, color .18s;
  white-space:nowrap;
}
.btn svg{ width:18px; height:18px; }
.btn-primary{ background:var(--brand-blue); color:#fff; box-shadow:0 8px 20px rgba(21,96,192,.30); }
.btn-primary:hover{ background:var(--brand-blue-dark); transform:translateY(-2px); }
.btn-accent{ background:var(--brand-red); color:#fff; box-shadow:0 8px 20px rgba(216,35,42,.28); }
.btn-accent:hover{ background:var(--brand-red-dark); transform:translateY(-2px); }
.btn-outline{ background:#fff; color:var(--brand-blue-dark); border-color:var(--line); }
.btn-outline:hover{ border-color:var(--brand-blue); color:var(--brand-blue); }
.btn-ghost{ background:transparent; color:var(--brand-blue-dark); }
.btn-ghost:hover{ background:var(--brand-blue-light); }
.btn-white{ background:#fff; color:var(--brand-blue-dark); }
.btn-white:hover{ background:#EAF1FB; transform:translateY(-2px); }
.btn-outline-light{ background:rgba(255,255,255,.06); color:#fff; border-color:rgba(255,255,255,.45); backdrop-filter:blur(6px); }
.btn-outline-light:hover{ border-color:#fff; background:rgba(255,255,255,.14); }
.btn-sm{ padding:10px 16px; font-size:.83rem; }
.btn-wa{ background:#25D366; color:#06301A; }
.btn-wa:hover{ background:#1FB757; transform:translateY(-2px); }
.btn[disabled],.btn[aria-disabled="true"]{ opacity:.45; cursor:not-allowed; transform:none !important; box-shadow:none; }

/* ---------- Badges ---------- */
.badge{ display:inline-flex; align-items:center; gap:7px; font-size:.74rem; font-weight:700;
  padding:6px 12px; border-radius:var(--r-pill); font-family:var(--font-head); letter-spacing:.01em; }
.badge-blue{ background:var(--brand-blue-light); color:var(--brand-blue-dark); }
.badge-red{ background:var(--brand-red-light); color:var(--brand-red-dark); }
.badge-green{ background:#E6F6EC; color:var(--success); }
.badge-gray{ background:#EEF1F6; color:var(--muted); }
.badge-glass{ background:rgba(255,255,255,.14); color:#fff; border:1px solid rgba(255,255,255,.22); backdrop-filter:blur(6px); }
.badge .dot{ width:7px; height:7px; border-radius:50%; background:currentColor; }

/* ---------- Barre de progression du défilement ---------- */
.scroll-progress{
  position:fixed; top:0; left:0; height:3px; width:0%;
  background:linear-gradient(90deg, var(--brand-blue), var(--brand-red));
  z-index:210; transition:width .08s linear;
}

/* ---------- Barre utilitaire ---------- */
.topbar{ background:var(--night); color:#D7E5F8; font-size:.82rem; }
.topbar .container{ display:flex; align-items:center; gap:22px; min-height:40px; flex-wrap:wrap; }
.topbar a{ color:#D7E5F8; }
.topbar a:hover{ color:#fff; }
.topbar .t-item{ display:inline-flex; align-items:center; gap:7px; }
.topbar .t-item svg{ width:15px; height:15px; opacity:.85; }
.topbar .spacer{ margin-left:auto; }
.topbar .pro-link{ display:inline-flex; align-items:center; gap:6px; font-weight:600; color:#fff; }
@media (max-width:760px){ .topbar .t-hide{ display:none; } }

/* ---------- En-tête ---------- */
.site-header{
  position:sticky; top:0; z-index:80;
  background:rgba(255,255,255,.92); backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
  transition:box-shadow .25s;
}
.site-header.is-scrolled{ box-shadow:var(--sh-2); }
.site-header .container{ display:flex; align-items:center; gap:20px; min-height:var(--header-h); }
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:44px; width:auto; border-radius:7px; }
.brand .brand-txt{ display:flex; flex-direction:column; line-height:1.05; }
.brand .brand-txt b{ font-family:var(--font-head); font-weight:800; font-size:1.06rem; color:var(--ink); }
.brand .brand-txt small{ font-size:.62rem; letter-spacing:.22em; text-transform:uppercase; color:var(--muted); }

.main-nav{ display:flex; align-items:center; gap:4px; margin-left:14px; }
.main-nav a{
  color:var(--text); font-weight:600; font-size:.92rem; padding:10px 14px; border-radius:var(--r-pill);
  position:relative;
}
.main-nav a:hover{ background:var(--brand-blue-light); color:var(--brand-blue-dark); }
.main-nav a.is-active{ color:var(--brand-blue); }
.main-nav a::after{
  content:""; position:absolute; left:14px; right:14px; bottom:4px; height:2px;
  background:var(--brand-red); border-radius:2px;
  transform:scaleX(0); transform-origin:center; transition:transform .28s var(--ease);
}
.main-nav a.is-active::after{ transform:scaleX(1); }
.header-actions{ margin-left:auto; display:flex; align-items:center; gap:10px; }
.icon-btn{
  width:44px; height:44px; border-radius:12px; border:1.5px solid var(--line); background:#fff;
  display:inline-flex; align-items:center; justify-content:center; cursor:pointer; color:var(--ink); position:relative;
  transition:border-color .18s, color .18s, transform .18s;
}
.icon-btn:hover{ border-color:var(--brand-blue); color:var(--brand-blue); transform:translateY(-1px); }
.icon-btn svg{ width:20px; height:20px; }
.cart-count{
  position:absolute; top:-6px; right:-6px; min-width:20px; height:20px; padding:0 5px;
  background:var(--brand-red); color:#fff; border-radius:999px; font-size:.7rem; font-weight:700;
  display:flex; align-items:center; justify-content:center; font-family:var(--font-head);
}
.hamburger{ display:none; }
@media (max-width:1000px){
  .main-nav{ display:none; }
  .hamburger{ display:inline-flex; }
  .header-actions .hide-sm{ display:none; }
}

/* ---------- Menu mobile ---------- */
.mobile-nav{ display:none; position:fixed; inset:0; z-index:120; background:rgba(10,20,40,.45); }
.mobile-nav.open{ display:block; }
.mobile-nav .panel{
  position:absolute; top:0; right:0; height:100%; width:min(360px,88vw); background:#fff;
  padding:22px; box-shadow:var(--sh-3); overflow:auto;
  animation:slideIn .32s var(--ease);
}
@keyframes slideIn{ from{ transform:translateX(40px); opacity:0; } to{ transform:none; opacity:1; } }
.mobile-nav .panel .close{ display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.mobile-nav .panel a{ display:block; padding:13px 10px; border-bottom:1px solid var(--line); color:var(--ink); font-weight:600; }
.mobile-nav .panel .btn{ width:100%; margin-top:16px; }

/* ============================ HERO VIDÉO ============================ */
.hero{
  position:relative; display:flex; align-items:center;
  min-height:min(60vh, 560px); padding:92px 0 76px;
  background:var(--night); overflow:hidden;
}
.hero-video{
  position:absolute; inset:-3% 0; width:100%; height:106%; object-fit:cover; z-index:0;
  opacity:0; transition:opacity 1.4s var(--ease); will-change:transform, opacity;
}
.hero-video.is-active{ opacity:1; }
.hero-overlay{
  position:absolute; inset:0; z-index:1;
  background:
    radial-gradient(900px 500px at 78% 18%, rgba(21,96,192,.38), transparent 60%),
    linear-gradient(180deg, rgba(9,17,31,.86) 0%, rgba(10,24,44,.66) 45%, rgba(9,17,31,.90) 100%);
}
.hero .hero-inner{ position:relative; z-index:2; display:grid; grid-template-columns:1fr 1.25fr; gap:48px; align-items:center; }
.hero h1{ color:#fff; font-size:clamp(2rem, 4.4vw, 3.3rem); font-weight:800; }
.hero h1 .accent{ color:#FF6B70; }
.hero .lead{ color:#C9DDF6; font-size:1.08rem; max-width:56ch; }
.hero .slogan{
  display:inline-flex; align-items:center; gap:10px; margin:4px 0 0;
  font-family:var(--font-head); font-weight:600; font-style:italic; color:#fff; font-size:1.02rem;
}
.hero .slogan svg{ width:18px; height:18px; color:#FF6B70; flex:0 0 auto; }
.hero .hero-cta{ display:flex; gap:12px; flex-wrap:wrap; margin-top:26px; }
.hero .hero-chips{ display:flex; gap:10px; flex-wrap:wrap; margin-top:24px; }

/* Apparition du contenu hero */
.hero .fade-up{ opacity:0; transform:translateY(26px); animation:fadeUp .9s var(--ease) forwards; }
.hero .d1{ animation-delay:.12s; } .hero .d2{ animation-delay:.24s; } .hero .d3{ animation-delay:.36s; }
.hero .d4{ animation-delay:.48s; } .hero .d5{ animation-delay:.60s; }
@keyframes fadeUp{ to{ opacity:1; transform:none; } }

/* Barre de recherche glass (sur vidéo) */
.search-bar{
  margin-top:30px; background:rgba(255,255,255,.10); backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.22); border-radius:var(--r-lg);
  padding:12px; display:flex; gap:10px; align-items:center; flex-wrap:wrap;
  box-shadow:0 18px 50px rgba(0,0,0,.28);
}
.search-bar .sf{ flex:1 1 150px; display:flex; flex-direction:column; gap:3px; padding:6px 12px; border-right:1px solid rgba(255,255,255,.16); }
.search-bar .sf:last-of-type{ border-right:0; }
.search-bar label{ font-size:.68rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#9CC1F0; font-family:var(--font-head); }
.search-bar select, .search-bar input{
  border:0; background:transparent; font:inherit; color:#fff; width:100%;
}
.search-bar select option{ color:var(--ink); }
.search-bar select, .search-bar input{ color-scheme:dark; }
.search-bar select:focus, .search-bar input:focus{ outline:none; }
.search-bar input::placeholder{ color:rgba(255,255,255,.55); }
.search-bar .btn{ flex:0 0 auto; }

/* Visuel hero flottant (image au premier plan) */
.hero-visual{ position:relative; display:flex; justify-content:center; }
.hero-shot{
  position:relative; z-index:3; width:min(100%, 680px); aspect-ratio:4 / 3;
  border-radius:var(--r-lg); overflow:hidden;
  background:transparent;
  animation:floaty 6.5s ease-in-out infinite;
}
.hero-shot .shot-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; opacity:0; transition:opacity 1.2s var(--ease); }
.hero-shot .shot-img.is-active{ opacity:1; }
.hero-shot .hero-shot-video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; background:#0F1B2E; }
.hero-visual .frame{
  position:relative; border-radius:var(--r-lg); overflow:hidden;
  border:1px solid rgba(255,255,255,.18); box-shadow:var(--sh-3);
  background:linear-gradient(150deg,#123156,#0D4487);
  height:clamp(320px, 48vh, 480px); display:flex; align-items:center; justify-content:center;
}
.hero-visual .frame video, .hero-visual .frame img{ width:100%; height:100%; object-fit:cover; }
.hero-visual .frame::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(200deg, rgba(13,68,135,.20), rgba(11,22,38,.42));
  pointer-events:none;
}
.hero-visual .frame .live{
  position:absolute; z-index:2; top:14px; left:14px;
}
.float-card{
  position:absolute; z-index:3; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:var(--sh-2);
  padding:12px 14px; display:flex; align-items:center; gap:10px; font-size:.82rem; font-weight:600; color:var(--ink);
  animation:floaty 5.5s ease-in-out infinite;
}
.float-card .fc-ic{ width:34px; height:34px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:var(--brand-blue-light); color:var(--brand-blue); }
.float-card .fc-ic svg{ width:18px; height:18px; }
.float-card small{ display:block; color:var(--muted); font-weight:500; font-size:.72rem; }
.fc-1{ top:18px; left:-12px; animation-delay:0s; }
.fc-2{ bottom:26px; right:-12px; animation-delay:2.4s; }
@keyframes floaty{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-10px); } }
@media (max-width:960px){
  .hero .hero-inner{ grid-template-columns:1fr; gap:30px; }
  .hero-shot{ width:min(100%, 560px); }
}

/* ---------- Bandeau réassurance ---------- */
.strip{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:#fff; }
.strip .container{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; padding:26px 0; }
.strip .item{ display:flex; gap:13px; align-items:center; padding:6px 14px; }
.strip .item + .item{ border-left:1px solid var(--line); }
.strip .item .ic{ width:44px; height:44px; flex:0 0 44px; border-radius:12px; background:var(--brand-blue-light); color:var(--brand-blue); display:flex; align-items:center; justify-content:center; }
.strip .item .ic svg{ width:22px; height:22px; }
.strip .item b{ font-family:var(--font-head); font-size:.9rem; color:var(--ink); display:block; }
.strip .item small{ color:var(--muted); font-size:.78rem; }
@media (max-width:900px){ .strip .container{ grid-template-columns:repeat(2,1fr); } .strip .item+.item{ border-left:0; } }
@media (max-width:520px){ .strip .container{ grid-template-columns:1fr; } }

/* ---------- Catégories ---------- */
.cat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.cat-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--r-md); padding:24px;
  display:flex; flex-direction:column; gap:12px; transition:transform .22s var(--ease), box-shadow .22s; box-shadow:var(--sh-1); min-height:168px;
}
.cat-card:hover{ transform:translateY(-5px); box-shadow:var(--sh-2); border-color:#D8E3F3; }
.cat-card .ic{ width:52px; height:52px; border-radius:14px; background:var(--brand-blue-light); color:var(--brand-blue); display:flex; align-items:center; justify-content:center; transition:transform .25s var(--ease); }
.cat-card:hover .ic{ transform:scale(1.08) rotate(-4deg); }
.cat-card .ic svg{ width:26px; height:26px; }
.cat-card h3{ font-size:1.02rem; margin:0; }
.cat-card span{ color:var(--muted); font-size:.83rem; }
.cat-card .go{ margin-top:auto; font-family:var(--font-head); font-weight:700; font-size:.82rem; color:var(--brand-blue); display:inline-flex; gap:6px; align-items:center; }
.cat-card .go svg{ width:15px; height:15px; transition:transform .2s; }
.cat-card:hover .go svg{ transform:translateX(4px); }
@media (max-width:960px){ .cat-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .cat-grid{ grid-template-columns:1fr; } }

/* ---------- Galerie produits ---------- */
.filters{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:26px; }
.chip{
  cursor:pointer; border:1.5px solid var(--line); background:#fff; color:var(--text);
  padding:9px 16px; border-radius:var(--r-pill); font-size:.85rem; font-weight:600; font-family:var(--font-head);
  transition:.16s;
}
.chip:hover{ border-color:var(--brand-blue); color:var(--brand-blue); }
.chip.is-active{ background:var(--brand-blue); border-color:var(--brand-blue); color:#fff; box-shadow:0 6px 16px rgba(21,96,192,.25); }

.prod-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.prod-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--r-md); overflow:hidden;
  display:flex; flex-direction:column; transition:transform .22s var(--ease), box-shadow .22s; box-shadow:var(--sh-1);
}
.prod-card:hover{ transform:translateY(-5px); box-shadow:var(--sh-2); }
.prod-card.is-hidden{ display:none; }
.p-thumb{ position:relative; height:210px; overflow:hidden; background:#F1F5FA; cursor:zoom-in; }
.p-thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease); }
.prod-card:hover .p-thumb img{ transform:scale(1.06); }
.p-thumb .tag{ position:absolute; top:12px; left:12px; z-index:2; }
.p-thumb .fav{
  position:absolute; top:10px; right:10px; z-index:2; width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.92);
  border:1px solid var(--line); display:flex; align-items:center; justify-content:center; color:var(--muted); cursor:pointer;
  transition:.18s;
}
.p-thumb .fav:hover{ color:var(--brand-red); border-color:var(--brand-red); transform:scale(1.08); }
.p-thumb .fav svg{ width:18px; height:18px; }
.p-body{ padding:16px; display:flex; flex-direction:column; gap:8px; flex:1; }
.p-cat{ font-family:var(--font-head); font-size:.7rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--brand-blue); }
.p-name{ font-family:var(--font-head); font-weight:700; color:var(--ink); font-size:.98rem; line-height:1.3; margin:0; }
.p-name a{ color:inherit; }
.p-desc{ color:var(--muted); font-size:.84rem; margin:0; line-height:1.5; }
.p-foot{ margin-top:auto; display:flex; flex-direction:column; gap:10px; padding-top:12px; }
.p-price{ font-family:var(--font-head); font-weight:800; color:var(--ink); font-size:1.12rem; line-height:1.1; }
.p-price small{ display:block; font-size:.66rem; color:var(--muted); font-weight:600; letter-spacing:.06em; }
.p-price--pod{ font-size:.86rem; color:var(--brand-blue-dark); }
.p-add{
  width:42px; height:42px; border-radius:12px; border:0; background:var(--brand-blue); color:#fff; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:.18s;
}
.p-add.p-wa{ background:#25D366; box-shadow:0 6px 14px rgba(37,211,102,.30); }
.p-add.p-wa:hover{ background:#1FB757; transform:scale(1.08); }
.p-wa-wide{
  display:inline-flex; align-items:center; justify-content:center; gap:9px; cursor:pointer;
  font-family:var(--font-head); font-weight:700; font-size:.9rem; line-height:1;
  padding:12px 22px; border-radius:var(--r-pill); border:0;
  background:#25D366; color:#06301A; box-shadow:0 8px 18px rgba(37,211,102,.32);
  transition:transform .18s var(--ease), background .18s;
}
.p-wa-wide:hover{ background:#1FB757; transform:translateY(-2px); }
.p-wa-wide svg{ width:18px; height:18px; }
.p-add:hover{ background:var(--brand-blue-dark); transform:scale(1.06); }
.p-add svg{ width:20px; height:20px; }
.p-add.done{ background:var(--success); }
@media (max-width:1000px){ .prod-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .prod-grid{ grid-template-columns:1fr; } }

/* ---------- Carrousel (cartes produits) ---------- */
.p-thumb .slides{ position:absolute; inset:0; }
.p-thumb .slide{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity .6s var(--ease); pointer-events:none; }
.p-thumb .slide.is-active{ opacity:1; }
.p-thumb .dots{ position:absolute; left:50%; bottom:10px; transform:translateX(-50%); z-index:3; display:flex; gap:6px; }
.p-thumb .dot{ width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,.7); box-shadow:0 0 0 1px rgba(0,0,0,.12); cursor:pointer; transition:width .2s var(--ease), background .2s; }
.p-thumb .dot.is-active{ background:#fff; width:20px; border-radius:4px; }

/* ---------- Groupes par catégorie ---------- */
.cat-group{ margin-bottom:44px; }
.cat-group:last-child{ margin-bottom:0; }
.cat-group.is-hidden{ display:none; }
.cat-group-title{
  display:flex; align-items:center; gap:12px;
  font-family:var(--font-head); font-weight:800; font-size:clamp(1.05rem,2vw,1.3rem); color:var(--ink);
  margin:0 0 18px; padding-bottom:12px; border-bottom:2px solid var(--line);
}
.cat-group-title::before{ content:""; width:6px; height:22px; background:var(--brand-red); border-radius:3px; }
.cat-group-title span{
  font-size:.72rem; font-weight:700; font-family:var(--font-head); color:var(--brand-blue-dark);
  background:var(--brand-blue-light); border-radius:999px; padding:3px 10px;
}

/* ---------- Lightbox ---------- */
.lightbox{
  position:fixed; inset:0; z-index:200; display:flex; align-items:center; justify-content:center;
  background:rgba(8,15,28,.82); backdrop-filter:blur(8px); padding:22px;
  opacity:0; pointer-events:none; transition:opacity .25s;
}
.lightbox.open{ opacity:1; pointer-events:auto; }
.lightbox .lb-card{
  background:#fff; border-radius:var(--r-lg); overflow:hidden; width:min(760px, 100%);
  max-height:92vh; display:flex; flex-direction:column; transform:scale(.96); transition:transform .25s var(--ease);
  box-shadow:var(--sh-3);
}
.lightbox.open .lb-card{ transform:none; }
.lightbox .lb-media{ background:#0F1B2E; height:min(56vh, 460px); position:relative; overflow:hidden; }
.lb-media .slides{ position:absolute; inset:0; }
.lb-media .slide{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; opacity:0; transition:opacity .5s var(--ease); }
.lb-media .slide.is-active{ opacity:1; }
.lb-nav{ position:absolute; top:50%; transform:translateY(-50%); z-index:4; width:44px; height:44px; border-radius:50%; border:0; background:rgba(255,255,255,.88); color:var(--ink); font-size:1.6rem; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:var(--sh-2); }
.lb-nav:hover{ background:#fff; }
.lb-prev{ left:12px; } .lb-next{ right:12px; }
.lb-dots{ position:absolute; left:50%; bottom:12px; transform:translateX(-50%); z-index:4; display:flex; gap:7px; }
.lb-dots .dot{ width:9px; height:9px; border-radius:50%; background:rgba(255,255,255,.55); cursor:pointer; box-shadow:0 0 0 1px rgba(0,0,0,.2); }
.lb-dots .dot.is-active{ background:#fff; }
/* Navigation produit (même catégorie) */
.lb-nav.lb-prod-prev{ left:14px; }
.lb-nav.lb-prod-next{ right:14px; }
.lb-counter{ display:block; font-family:var(--font-head); font-size:.76rem; font-weight:700; letter-spacing:.04em; color:var(--brand-blue); margin:2px 0 8px; }
.lb-hint{ display:none; font-size:.74rem; color:var(--muted); margin-top:8px; }
@media (hover:none){ .lb-hint{ display:block; } }
@media (max-width:600px){ .lb-nav{ width:40px; height:40px; font-size:1.4rem; } .lb-nav.lb-prod-prev{ left:8px; } .lb-nav.lb-prod-next{ right:8px; } }
.lightbox .lb-body{ padding:22px 24px; overflow:auto; }
.lightbox .lb-body h3{ margin-bottom:6px; }
.lightbox .lb-body .lb-desc{ color:var(--muted); }
.lightbox .lb-row{ display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:16px; flex-wrap:wrap; }
.lightbox .lb-price{ font-family:var(--font-head); font-weight:800; font-size:1.5rem; color:var(--ink); }
.lightbox .lb-price small{ display:block; font-size:.7rem; color:var(--muted); letter-spacing:.06em; }
.lightbox .lb-close{
  position:absolute; top:18px; right:18px; z-index:3;
}

/* ---------- Bandeau "Pourquoi H-PAT" ---------- */
.feature-band{
  background:linear-gradient(150deg,#0D4487,#1560C0); color:#fff; border-radius:var(--r-lg);
  padding:48px; overflow:hidden; position:relative;
}
.feature-band::before{
  content:""; position:absolute; right:-120px; top:-120px; width:380px; height:380px; border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.14), transparent 65%); pointer-events:none;
}
.feature-band .fb-head{ max-width:560px; margin-bottom:32px; position:relative; }
.feature-band h2{ color:#fff; font-size:clamp(1.5rem,2.6vw,2rem); }
.feature-band p{ color:#C9DDF6; }
.feature-band .fb-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; position:relative; }
.feature-band .fb-item{ border-left:2px solid rgba(255,255,255,.18); padding-left:18px; }
.feature-band .fb-item .n{ font-family:var(--font-head); font-weight:800; font-size:2.3rem; color:#fff; display:block; line-height:1.1; }
.feature-band .fb-item span{ color:#C9DDF6; font-size:.9rem; }
@media (max-width:820px){ .feature-band{ padding:32px; } .feature-band .fb-grid{ grid-template-columns:repeat(2,1fr); } }

/* ---------- Marques (défilement infini) ---------- */
.marquee{ overflow:hidden; position:relative; }
.marquee::before, .marquee::after{
  content:""; position:absolute; top:0; bottom:0; width:90px; z-index:2; pointer-events:none;
}
.marquee::before{ left:0; background:linear-gradient(90deg, var(--bg-alt), transparent); }
.marquee::after{ right:0; background:linear-gradient(-90deg, var(--bg-alt), transparent); }
.marquee .track{ display:flex; gap:64px; width:max-content; animation:marquee 26s linear infinite; }
.marquee:hover .track{ animation-play-state:paused; }
.marquee .logo{
  font-family:var(--font-head); font-weight:800; letter-spacing:.08em; color:#9AA7B8; font-size:1.1rem;
  text-transform:uppercase; opacity:.85; white-space:nowrap;
}
.marquee .logo:hover{ color:var(--brand-blue); opacity:1; }
@keyframes marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* ---------- Bandeau CTA devis ---------- */
.cta-band{
  background:var(--brand-red-light); border:1px solid #F3D2D4; border-radius:var(--r-lg);
  padding:42px; display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
}
.cta-band h2{ font-size:clamp(1.4rem,2.4vw,1.9rem); margin-bottom:6px; }
.cta-band p{ color:var(--muted); margin:0; max-width:56ch; }
.cta-band .actions{ display:flex; gap:12px; flex-wrap:wrap; }

/* ---------- Blog ---------- */
.blog-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.blog-card{ background:#fff; border:1px solid var(--line); border-radius:var(--r-md); overflow:hidden; box-shadow:var(--sh-1); transition:transform .22s var(--ease), box-shadow .22s; }
.blog-card:hover{ transform:translateY(-5px); box-shadow:var(--sh-2); }
.blog-card .banner{ height:150px; background:linear-gradient(150deg,#EEF3FA,#DCE7F6); display:flex; align-items:center; justify-content:center; color:var(--brand-blue); overflow:hidden; }
.blog-card .banner svg{ width:56px; height:56px; transition:transform .4s var(--ease); }
.blog-card:hover .banner svg{ transform:scale(1.12) rotate(-4deg); }
.blog-card .bbody{ padding:18px; }
.blog-card .meta{ font-size:.74rem; color:var(--muted); margin-bottom:8px; }
.blog-card h3{ font-size:1.05rem; }
.blog-card p{ color:var(--muted); font-size:.88rem; margin:0 0 12px; }
@media (max-width:900px){ .blog-grid{ grid-template-columns:1fr; } }

/* ---------- Newsletter ---------- */
.newsletter{ background:var(--bg-alt); border-top:1px solid var(--line); }
.newsletter .inner{ display:flex; align-items:center; justify-content:space-between; gap:28px; flex-wrap:wrap; padding:52px 0; }
.newsletter h2{ margin:0 0 6px; font-size:1.5rem; }
.newsletter p{ color:var(--muted); margin:0; }
.nl-form{ display:flex; gap:10px; flex-wrap:wrap; }
.nl-form input{ padding:13px 16px; border-radius:var(--r-pill); border:1.5px solid var(--line); min-width:260px; font:inherit; }
.nl-form input:focus{ outline:none; border-color:var(--brand-blue); box-shadow:0 0 0 4px rgba(21,96,192,.12); }

/* ---------- Footer ---------- */
.site-footer{ background:var(--night); color:#9FB0C6; font-size:.9rem; }
.site-footer .f-top{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1.2fr; gap:36px; padding:60px 0 40px; }
.site-footer h4{ color:#fff; font-size:.95rem; margin-bottom:16px; }
.site-footer a{ color:#9FB0C6; }
.site-footer a:hover{ color:#fff; }
.site-footer li{ margin-bottom:10px; }
.site-footer .f-brand img{ height:46px; border-radius:7px; margin-bottom:16px; background:#fff; padding:4px; }
.site-footer .f-brand p{ max-width:34ch; }
.site-footer .socials{ display:flex; gap:10px; margin-top:16px; }
.site-footer .socials a{ width:38px; height:38px; border-radius:10px; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; transition:background .2s, transform .2s; }
.site-footer .socials a:hover{ background:var(--brand-blue); transform:translateY(-2px); }
.site-footer .socials svg{ width:18px; height:18px; }
.site-footer .certifs{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.site-footer .certifs span{ font-size:.72rem; border:1px solid rgba(255,255,255,.18); padding:5px 10px; border-radius:8px; color:#C6D3E6; }
.legal-bar{ border-top:1px solid rgba(255,255,255,.1); padding:18px 0; }
.legal-bar .container{ display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:.8rem; }
.legal-bar .pay{ display:flex; gap:8px; flex-wrap:wrap; }
.legal-bar .pay span{ border:1px solid rgba(255,255,255,.18); padding:3px 9px; border-radius:6px; font-size:.72rem; }
@media (max-width:900px){ .site-footer .f-top{ grid-template-columns:1fr 1fr; gap:28px; } }
@media (max-width:560px){ .site-footer .f-top{ grid-template-columns:1fr; } }

/* ---------- Toast panier ---------- */
.toast{
  position:fixed; bottom:24px; left:24px; z-index:260; background:var(--ink); color:#fff;
  padding:14px 18px; border-radius:12px; box-shadow:var(--sh-3); font-size:.9rem; font-weight:600;
  display:flex; align-items:center; gap:10px; opacity:0; transform:translateY(14px); pointer-events:none; transition:.28s var(--ease);
}
.toast.show{ opacity:1; transform:translateY(0); }
.toast svg{ width:20px; height:20px; color:#4ADE80; }

/* ---------- Bouton flottant WhatsApp ---------- */
.wa-float{
  position:fixed; bottom:24px; right:24px; z-index:150; width:58px; height:58px; border-radius:50%;
  background:#25D366; color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:0 12px 30px rgba(37,211,102,.45); transition:transform .2s var(--ease);
}
.wa-float:hover{ transform:scale(1.08); }
.wa-float svg{ width:30px; height:30px; }
.wa-float::after{
  content:""; position:absolute; inset:-6px; border-radius:50%; border:2px solid rgba(37,211,102,.55);
  animation:waPulse 2.4s ease-out infinite;
}
@keyframes waPulse{ 0%{ transform:scale(.85); opacity:1; } 70%{ transform:scale(1.25); opacity:0; } 100%{ opacity:0; } }

/* ---------- Retour en haut ---------- */
.to-top{
  position:fixed; bottom:94px; right:30px; z-index:150; width:46px; height:46px; border-radius:12px;
  background:#fff; border:1px solid var(--line); color:var(--brand-blue-dark); cursor:pointer;
  display:flex; align-items:center; justify-content:center; box-shadow:var(--sh-2);
  opacity:0; pointer-events:none; transform:translateY(10px); transition:.25s var(--ease);
}
.to-top.show{ opacity:1; pointer-events:auto; transform:none; }
.to-top:hover{ border-color:var(--brand-blue); }
.to-top svg{ width:20px; height:20px; }

/* ---------- Révélations au défilement ---------- */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform:none; }
.reveal[data-delay="1"]{ transition-delay:.10s; }
.reveal[data-delay="2"]{ transition-delay:.20s; }
.reveal[data-delay="3"]{ transition-delay:.30s; }

/* ---------- Hero : accent animé + indication de défilement ---------- */
.hero h1 .accent{
  background:linear-gradient(100deg,#FF6B70 0%,#FFB3B6 30%,#FF6B70 55%,#F7C9CB 80%,#FF6B70 100%);
  background-size:220% 100%;
  -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:shimmer 6s linear infinite;
}
@keyframes shimmer{ from{ background-position:0% 0; } to{ background-position:-220% 0; } }
.hero .scroll-cue{
  position:absolute; left:50%; bottom:20px; transform:translateX(-50%); z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:9px;
  color:#9CC1F0; font-size:.66rem; letter-spacing:.22em; text-transform:uppercase; font-family:var(--font-head);
}
.hero .scroll-cue .mouse{ width:26px; height:42px; border:2px solid rgba(255,255,255,.42); border-radius:14px; position:relative; }
.hero .scroll-cue .mouse::after{
  content:""; position:absolute; left:50%; top:8px; width:4px; height:8px; background:#fff; border-radius:2px;
  transform:translateX(-50%); animation:wheel 1.7s ease-in-out infinite;
}
@keyframes wheel{ 0%{ opacity:0; transform:translate(-50%,0);} 30%{ opacity:1; } 100%{ opacity:0; transform:translate(-50%,14px);} }
@media (max-width:960px){ .hero .scroll-cue{ display:none; } }

/* Actions carte produit (panier + whatsapp) */
.p-actions{ display:flex; gap:8px; align-items:stretch; }
.p-add--cart{
  background:var(--brand-blue); color:#fff; flex:1 1 auto; width:auto; height:auto;
  padding:11px 14px; border-radius:12px; font-family:var(--font-head); font-weight:700; font-size:.8rem;
  display:inline-flex; align-items:center; justify-content:center; gap:7px; border:0; cursor:pointer;
  box-shadow:0 6px 16px rgba(21,96,192,.20);
}
.p-add--cart:hover{ background:var(--brand-blue-dark); transform:translateY(-1px); }
.p-add--cart svg{ width:17px; height:17px; }
.p-add--cart span{ white-space:nowrap; }
.p-add--cart.done{ background:var(--success); }

/* ---------- Tiroir panier ---------- */
.cart-overlay{ position:fixed; inset:0; background:rgba(8,15,28,.52); opacity:0; pointer-events:none; transition:opacity .28s; z-index:180; }
.cart-overlay.open{ opacity:1; pointer-events:auto; }
.cart-drawer{
  position:fixed; top:0; right:0; height:100%; width:min(430px,92vw); background:#fff; z-index:190;
  display:flex; flex-direction:column; transform:translateX(106%); transition:transform .36s cubic-bezier(.22,.61,.36,1);
  box-shadow:var(--sh-3);
}
.cart-drawer.open{ transform:none; }
.cart-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px 22px; border-bottom:1px solid var(--line); }
.cart-head h3{ margin:0; font-size:1.05rem; display:flex; align-items:center; gap:9px; }
.cart-head .n{ font-family:var(--font-head); font-size:.72rem; font-weight:800; background:var(--brand-blue-light); color:var(--brand-blue-dark); border-radius:999px; padding:3px 9px; }
.cart-items{ flex:1; overflow:auto; padding:14px 22px; }
.cart-empty{ text-align:center; color:var(--muted); padding:54px 12px; }
.cart-empty svg{ width:56px; height:56px; color:#C7D3E3; margin:0 auto 12px; }
.cart-empty .btn{ margin-top:14px; }
.c-item{ display:flex; gap:12px; padding:13px 0; border-bottom:1px solid var(--line); animation:fadeUp .35s var(--ease); }
.c-item img{ width:66px; height:66px; border-radius:10px; object-fit:cover; flex:0 0 66px; background:#F1F5FA; }
.ci-main{ flex:1; min-width:0; }
.ci-name{ font-family:var(--font-head); font-weight:700; font-size:.9rem; color:var(--ink); display:block; line-height:1.25; }
.ci-price{ font-size:.82rem; color:var(--muted); display:block; margin-top:2px; }
.ci-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:8px; }
.qty{ display:inline-flex; align-items:center; border:1.5px solid var(--line); border-radius:999px; overflow:hidden; }
.qty button{ width:28px; height:28px; border:0; background:#fff; cursor:pointer; color:var(--ink); font-weight:800; line-height:1; }
.qty button:hover{ background:var(--brand-blue-light); color:var(--brand-blue-dark); }
.qty span{ min-width:28px; text-align:center; font-weight:700; font-size:.85rem; }
.ci-remove{ background:none; border:0; color:var(--muted); cursor:pointer; font-size:.76rem; text-decoration:underline; padding:0; }
.ci-remove:hover{ color:var(--brand-red); }
.cart-foot{ border-top:1px solid var(--line); padding:18px 22px 22px; background:var(--bg-alt); }
.cart-total{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:14px; }
.cart-total span{ color:var(--muted); font-size:.86rem; }
.cart-total b{ font-family:var(--font-head); font-size:1.45rem; color:var(--ink); }
.cart-foot .p-wa-wide{ width:100%; }
.cart-foot .btn{ width:100%; margin-top:10px; }
.cart-note{ font-size:.74rem; color:var(--muted); margin:10px 0 0; text-align:center; }

/* ---------- Animations interactives ---------- */
.hero-spotlight{
  position:absolute; left:0; top:0; z-index:1; width:560px; height:560px; margin:-280px 0 0 -280px;
  border-radius:50%; pointer-events:none; opacity:0; transition:opacity .35s;
  background:radial-gradient(circle, rgba(96,164,255,.20), rgba(96,164,255,0) 62%);
}
.hero:hover .hero-spotlight{ opacity:1; }
.btn, .p-wa-wide, .p-add, .chip{ position:relative; overflow:hidden; }
.ripple{
  position:absolute; border-radius:50%; background:rgba(255,255,255,.45);
  transform:scale(0); pointer-events:none; animation:ripple .6s ease-out forwards;
}
@keyframes ripple{ to{ transform:scale(2.6); opacity:0; } }
.section-head h2 .w{ display:inline-block; overflow:hidden; vertical-align:top; }
.section-head h2 .wi{ display:inline-block; }

/* ---------- Ligne ECG animée ---------- */
.ecg{ width:100%; max-width:420px; height:44px; margin:6px 0 2px; display:block; }
.ecg-line{
  fill:none; stroke:#FF6B70; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round;
  filter:drop-shadow(0 0 6px rgba(255,107,112,.55));
}

/* ---------- Curseur personnalisé ---------- */
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor .btn, body.has-cursor .chip, body.has-cursor .p-add{ cursor:none; }
body.has-cursor input, body.has-cursor textarea, body.has-cursor select{ cursor:auto; }
.cursor-dot, .cursor-ring{ position:fixed; left:0; top:0; z-index:400; pointer-events:none; border-radius:50%; }
.cursor-dot{ width:7px; height:7px; margin:-3.5px 0 0 -3.5px; background:var(--brand-red); }
.cursor-ring{
  width:34px; height:34px; margin:-17px 0 0 -17px; border:1.5px solid rgba(21,96,192,.55);
  transition:width .2s var(--ease), height .2s var(--ease), margin .2s var(--ease), background .2s, border-color .2s;
}
.cursor-ring.grow{ width:56px; height:56px; margin:-28px 0 0 -28px; background:rgba(21,96,192,.08); border-color:rgba(216,35,42,.55); }
.cursor-ring.press{ width:24px; height:24px; margin:-12px 0 0 -12px; }

/* ---------- Hero : si GSAP prend le relais, on coupe l'animation CSS ---------- */
/* (désactivé : l'apparition du hero est 100% CSS pour rester fiable sur mobile) */

/* ---------- Hero : rendu mobile ---------- */
@media (max-width:640px){
  .hero{ min-height:auto; padding:40px 0 52px; }
  .hero-overlay{
    background:linear-gradient(180deg, rgba(9,17,31,.93) 0%, rgba(10,24,44,.84) 55%, rgba(9,17,31,.96) 100%);
  }
  .hero h1{ font-size:clamp(1.75rem, 8vw, 2.2rem); }
  .hero .lead{ font-size:1rem; }
  .hero .hero-cta{ margin-top:20px; }
  .hero .hero-cta .btn{ flex:1 1 auto; justify-content:center; }
  .hero .hero-chips{ gap:8px; margin-top:18px; }
  .hero-visual{ margin-top:4px; }
  .hero-shot{ width:min(100%, 300px); }
  .hero .ecg{ height:34px; margin:2px 0 0; }
}

/* ---------- Marque H-PAT : « H-PAT » rouge, « Médical service » noir ---------- */
.brand .brand-txt b{ color:var(--brand-red); }
.brand .brand-txt small{ color:var(--ink); }
.brand-word{ color:var(--brand-red); font-weight:700; }
.legal-bar .bw-red{ color:var(--brand-red); font-weight:700; }
.legal-bar .bw-black{ color:#fff; font-weight:600; }
.p-cat .bw{ color:var(--brand-red); font-weight:800; }

/* ---------- Écran de chargement (preloader) ---------- */
.preloader{
  position:fixed; inset:0; z-index:9999; background:#ffffff;
  display:flex; align-items:center; justify-content:center;
  transition:opacity .45s ease, visibility .45s ease;
  animation:plAutoHide .5s ease 3s forwards;
}
.preloader.hide{ opacity:0; visibility:hidden; }
.preloader .pl-inner{ display:flex; flex-direction:column; align-items:center; gap:22px; }
.preloader .pl-logo{
  width:min(260px, 62vw); border-radius:12px;
  animation:plIn .6s cubic-bezier(.2,.7,.3,1) both, plBeat 1.3s ease-in-out .6s infinite;
}
@keyframes plIn{ from{ opacity:0; transform:scale(.85); } to{ opacity:1; transform:scale(1); } }
@keyframes plBeat{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.045); } }
.pl-bar{ width:min(260px,62vw); height:4px; border-radius:4px; background:#E8EEF7; overflow:hidden; }
.pl-bar span{ display:block; height:100%; width:0%; border-radius:4px;
  background:linear-gradient(90deg, var(--brand-blue), var(--brand-red));
  animation:plFill .9s cubic-bezier(.3,.7,.3,1) forwards; }
@keyframes plFill{ to{ width:100%; } }
@keyframes plAutoHide{ to{ opacity:0; visibility:hidden; } }

/* ---------- Réduction des animations ---------- */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; }
  .reveal, .hero .fade-up{ opacity:1 !important; transform:none !important; }
  .cursor-dot, .cursor-ring{ display:none !important; }
  html{ scroll-behavior:auto; }
}
