*{box-sizing:border-box}
html,body{margin:0;padding:0;height:100%;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial,sans-serif;color:#f2f3f5;overflow-y:auto;-webkit-overflow-scrolling:touch}
:root{--bg:#0b0e12;--glass:rgba(255,255,255,.18);--glass-strong:rgba(255,255,255,.22);--border:rgba(255,255,255,.2);--muted:#aeb4c0;--accent:#0ad12b;--black:rgba(0,0,0,.6)}
#bg{position:fixed;inset:0;background:radial-gradient(1000px 600px at 20% -10%, rgba(58, 240, 67, 0.25), transparent 60%),radial-gradient(1200px 800px at 120% 20%, rgba(0, 180, 39, 0.18), transparent 60%), var(--bg);background-size:cover;z-index:-2}
body.has-bg #bg{background-image: var(--bgimg), radial-gradient(1000px 600px at 20% -10%, rgba(58,96,240,.20), transparent 60%), radial-gradient(1200px 800px at 120% 20%, rgba(0, 180, 81, 0.14), transparent 60%), linear-gradient(180deg,#0b0e12,#0b0e12)}
.app-header{position:sticky;top:0;display:flex;justify-content:center;align-items:center;padding:16px 16px;backdrop-filter:blur(14px);background:rgba(10,12,16,.7);border-bottom:1px solid var(--border);z-index:5}
.logo{height:68px;max-width:260px;object-fit:contain;filter:drop-shadow(0 6px 16px rgba(0,0,0,.45))}
@media (min-width:768px){.logo{height:230px;max-width:700px}}
main#app{padding:16px 16px 92px}
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media (min-width:900px){.grid{grid-template-columns:repeat(3,1fr)}}
.card{position:relative;background:rgba(255,255,255,.12);border:1px solid var(--border);border-radius:18px;overflow:hidden;box-shadow:0 10px 28px var(--black);transition:transform .12s ease, box-shadow .12s ease}
.card:active{transform:scale(.98)}.card:hover{box-shadow:0 12px 32px rgba(0,0,0,.65)}
.card img.cover{display:block;width:100%;height:180px;object-fit:cover}
.card .content{padding:10px 12px 12px}
.title{font-weight:800;letter-spacing:.2px}
.subtitle{color:#cfd6e2;font-size:12px;margin-top:2px}
.badge{position:absolute;top:10px;left:10px;background:rgba(0,0,0,.55);color:#fff;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800;border:1px solid rgba(255,255,255,.2)}
.flags{display:flex;align-items:center;gap:6px;font-size:16px;margin-top:6px}
.product{max-width:860px;margin:0 auto}
.hero-wrap{background:var(--glass-strong);border:1px solid var(--border);border-radius:18px;overflow:hidden;position:relative}
.hero{display:block;width:100%;height:220px;object-fit:cover}
.back-fab{position:absolute;top:10px;left:10px;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:999px;background:rgba(0,0,0,.55);border:1px solid rgba(255,255,255,.3);box-shadow:0 6px 18px rgba(0,0,0,.45)}
.back-fab img{width:20px;height:20px;filter:drop-shadow(0 2px 6px rgba(0,0,0,.4))}
.pane{background:rgba(255,255,255,.12);border:1px solid var(--border);border-radius:18px;margin-top:12px;padding:14px;box-shadow:0 10px 28px var(--black)}
.h1{font-size:24px;font-weight:900;letter-spacing:.3px;margin:8px 0 2px}
.muted{color:#cfd6e2}
.bullets{margin:10px 0 6px}.bullets li{margin:6px 0}
.pricegrid{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
.chip{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:999px;background:rgba(255,255,255,.10);border:1px solid var(--border);font-weight:700}
.ctas{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.btn{display:flex;align-items:center;justify-content:center;padding:13px 16px;border-radius:12px;text-decoration:none;font-weight:800;border:1px solid var(--border);background:rgba(255,255,255,.12);color:#fff}
.btn.tg{background:#229ed9;border-color:transparent}.btn.sc{background:#ffd800;color:#101318;border-color:transparent}
.section{background:rgba(255,255,255,.12);border:1px solid var(--border);border-radius:14px;padding:12px}
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 88px; /* ✅ hauteur augmentée (par défaut 72px) */
  background: rgba(10,12,16,0.9);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,0.15);
  display: grid;
  grid-template-columns: repeat(5,1fr);
  z-index: 4;
}

/* chaque onglet */
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px; /* un peu plus d’espace entre icône et texte */
  text-decoration: none;
  color: #cfd6e2;
  font-weight: 800;
  font-size: 12px; /* ✅ texte un peu plus gros */
}

/* icônes plus grandes */
.tab img {
  width: 26px; /* ✅ icône agrandie */
  height: 26px;
  opacity: 0.95;
}

/* effet actif (onglet sélectionné) */
.tab.active {
  color: #40ff06;
}
.tab.active img {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(3, 252, 44, 0.466));
}

.category-select select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  outline: none;
  appearance: none;
  backdrop-filter: blur(6px);
}

.category-select select option {
  background: #0b0e12;
  color: #fff;
}

/* Vidéos intégrées */
.hero video, video.hero {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
}

/* Bouton de lecture si autoplay bloqué */
.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, .6);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(6px);
  z-index: 3;
}

/* Vidéo dans les cartes du menu */
.card video.cover{
  display:block;
  width:100%;
  height:132px;   /* augmente si tu veux voir plus de vidéo (ex: 180px/200px) */
  object-fit:cover;
  border:0;
}

/* Centrer le contenu de la page (accueil & autres) */
.catalog{max-width:1150px;margin:0 auto;padding:0 16px}

/* Grille 2 colonnes sur desktop, 1 colonne mobile */
.catalog .grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
@media (max-width:900px){ .catalog .grid{grid-template-columns:1fr;gap:14px} }

/* Cartes : média carré visible (prend le dessus sur height:132px) */
.catalog .card .cover{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;display:block;border-radius:10px}
.catalog .card .media-wrap{position:relative}
.catalog .card .badge{position:absolute;top:10px;right:10px;background:rgba(0,0,0,.55);color:#fff;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800;border:1px solid rgba(255,255,255,.15)}
.catalog .card{cursor:pointer}

/* Barre de catégories en pills scrollables */
.category-bar{display:flex;gap:10px;overflow-x:auto;padding:8px 6px 18px 6px;align-items:center;scrollbar-width:none;-ms-overflow-style:none}
.category-bar::-webkit-scrollbar{display:none}
.category-bar .pill {
  display: inline-block;               /* ✅ ne s’étire plus */
  width: auto;                         /* ✅ taille auto selon texte */
  padding: 6px 10px;                   /* réduit l’espace intérieur */
  margin: 0;                           /* supprime tout espace parasite */
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #f3f4f7;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;                 /* reste sur une ligne */
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.3px;
  flex: 0 0 auto;                      /* ✅ empêche flex de les agrandir */
}

.category-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  justify-content: flex-start;
  padding: 8px 10px 18px 10px;
  scrollbar-width: none;
}
.category-bar::-webkit-scrollbar {
  display: none;
}

.category-bar .pill.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(42, 134, 255, 0.25);
  transform: translateY(-1px);
}

/* Ribbon sur les cartes : largeur auto, style pill */
.card .badge{
  position: absolute;
  top: 10px;
  left: auto;              /* ou right:10px si tu le veux à droite */
  right: 10px;             /* évite l'étirement si tu as mis right avant */
  display: inline-flex;    /* <-- largeur calée sur le contenu */
  align-items: center;
  height: 26px;
  padding: 0 10px;         /* réduit la “garniture” autour du texte */
  width: auto !important;  /* <-- empêche toute largeur forcée */
  max-width: 70%;
  white-space: nowrap;     /* reste sur une ligne */
  background: rgba(0,0,0,.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;          /* évite de gonfler la hauteur */
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

/* —— Panier —— */
.fab-cart{
  position:fixed; right:16px; bottom:88px; z-index:50;
  display:flex; align-items:center; justify-content:center;
  width:56px; height:56px; border-radius:999px;
  background:#2a86ff; color:#fff; font-weight:900; border:none;
  box-shadow:0 14px 36px rgba(42,134,255,.35); cursor:pointer;
}
.fab-cart .count{
  position:absolute; top:-6px; right:-6px; min-width:22px; height:22px;
  background:#ff3b30; color:#fff; border-radius:999px; font-size:12px;
  display:flex; align-items:center; justify-content:center; padding:0 6px;
  border:2px solid #0b0e12;
}

/* Drawer panier */
.cart-drawer{
  position:fixed; left:0; right:0; bottom:0; z-index:60;
  background:rgba(13,16,22,.95); border-top:1px solid rgba(255,255,255,.08);
  box-shadow:0 -20px 40px rgba(0,0,0,.6); backdrop-filter: blur(10px);
  transform:translateY(100%); transition:transform .25s ease;
}
.cart-drawer.open{ transform:translateY(0); }
.cart-head{display:flex; align-items:center; justify-content:space-between; padding:14px 16px; font-weight:900}
.cart-list{max-height:45vh; overflow:auto; padding:0 16px 8px}
.cart-item{display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid rgba(255,255,255,.06)}
.cart-item img{width:56px; height:56px; object-fit:cover; border-radius:8px}
.cart-item .meta{flex:1}
.cart-item .qty{display:flex; align-items:center; gap:8px}
.cart-item .qty button{width:28px; height:28px; border-radius:8px; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.08); color:#fff}
.cart-foot{padding:12px 16px 16px; border-top:1px solid rgba(255,255,255,.08)}
.cart-total{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; font-weight:900}
.cart-actions{display:flex; gap:10px}
.cart-actions .btn{flex:1}

/* chips sélectionnables sur la page produit */
.chip.selectable{cursor:pointer; user-select:none}
.chip.selectable.active{background:rgba(42,134,255,.18); border-color:rgba(42,134,255,.6)}

.inline-buy {
  display: flex;
  gap: 8px;
  padding: 10px 12px 14px;
  align-items: center;
}

.inline-buy .variant-select {
  flex: 1;
  background: #0e1117; /* fond sombre */
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f5f5f5; /* texte clair */
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
  outline: none;
  appearance: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='12' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M2 4l4 4 4-4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

.inline-buy .variant-select option {
  background: #0b0e12; /* fond sombre du menu */
  color: #fff;         /* texte clair */
}

.inline-buy .add-inline {
  background: #018529;          /* bouton vert vif */
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease;
}

.inline-buy .add-inline:hover {
  background: #0bb13f;          /* vert plus foncé au survol */
}

/* ==== Product page hero : un peu moins haut, même largeur ==== */
.product .hero-wrap {
  position: relative;
  aspect-ratio: 16 / 11;   /* ✅ moins haut que carré (ex : 16/9 est très plat) */
  border-radius: 18px;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}

.product .hero {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Desktop : légèrement plus panoramique */
@media (min-width: 900px) {
  .product .hero-wrap {
    aspect-ratio: 16 / 9;   /* ✅ un peu plus plat sur grands écrans */
  }
}

/* ==== Product page : effet verre flouté sur le panneau infos ==== */
.product .pane {
  background: rgba(20, 22, 26, 0.55);       /* ✅ fond sombre semi-transparent */
  backdrop-filter: blur(14px);              /* ✅ flou doux type iOS */
  -webkit-backdrop-filter: blur(14px);      /* compatibilité Safari */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  margin-top: 14px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* améliore aussi le contraste du texte */
.product .pane .h1,
.product .pane .muted,
.product .pane .section {
  color: #f8f9fa;
}

.app-header {
  width: 100%;
  height: 180px; /* Ajuste ici selon ta bannière mobile */
  background-image: url('./assets/header-banner.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .app-header {
    height: 220px; /* pour les écrans plus larges */
  }
}

.catalog {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.45); /* fond sombre */
  backdrop-filter: blur(12px); /* flou moderne */
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
  max-width: 1100px;
  margin: 0 auto;
}


.fab-cart {
  position: fixed;
  right: 20px;
  bottom: 1000px; /* ← avant c’était probablement 20px ou 40px */
  background: #ffffff; /* vert stylé */
  color: rgb(0, 0, 0);
  font-size: 24px;
  border: none;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 999;
}

/* ===== AUTH OVERLAY (namespacé .auth-*) ===== */
.auth-ovl{
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 7, 10, 0.55); /* voile sombre */
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.auth-ovl[aria-hidden="true"]{ display: none; } /* on retire l’overlay une fois autorisé */

.auth-ovl__root{
  width: min(720px, 92vw);
}

.auth-card{
  background: rgba(20,22,26,0.72);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 16px;
  color: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}

.auth-title{ margin: 0 0 10px; font-size: 20px; font-weight: 900; }
.auth-lead{ margin: 0 0 14px; color: #cfd6e2; }

.auth-row{ display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
.auth-input{
  padding: 10px 12px; border-radius: 10px; outline: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06); color: #fff; font-weight: 700;
}
.auth-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 8px; }
.auth-btn{
  padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.10); color: #fff; font-weight: 800; cursor: pointer;
}
.auth-btn--accent{ background: #10d24b; color: #04120a; border-color: transparent; }
.auth-btn--ghost{ background: transparent; }
.auth-btn--warn{ background:#ff7a59; color:#111; border-color: transparent; }

.auth-small{ font-size: 13px; color: #aeb4c0; }

.auth-two{
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 720px){ .auth-two{ grid-template-columns: 1fr; } }

.auth-list{ margin-top: 10px; border:1px solid rgba(255,255,255,0.08); border-radius: 10px; overflow: hidden; }
.auth-list .row{ display:flex; justify-content:space-between; padding:8px 12px; border-bottom:1px solid rgba(255,255,255,0.06); }
.auth-list .row:last-child{ border-bottom: 0; }

.auth-msg{ margin-top: 8px; padding: 8px 10px; border-radius: 10px; }
.auth-msg.ok{ background: rgba(16,210,75,0.15); color: #bff0c9; }
.auth-msg.err{ background: rgba(255,80,80,0.12); color: #ffc7c7; }


/* le header doit être un conteneur positionné */
.app-header{ position: relative; z-index: 5; }

/* bouton logout au-dessus du logo */
.auth-logout-btn{
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 6;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.auth-logout-btn:active{ transform: translateY(1px); }
@media (min-width:768px){ .auth-logout-btn{ left:14px; top:14px; } }


/* ===== Auth overlay: plein écran + fond flouté ===== */
#authOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10,12,16,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;               /* pour respirer sur mobile */
}

/* caché quand aria-hidden="true" */
#authOverlay[aria-hidden="true"] {
  display: none;
}

/* Conteneur des écrans d'auth: scrollable si contenu long */
#authRoot {
  width: 100%;
  max-width: 760px;            /* belle largeur sur desktop */
  max-height: 85vh;            /* limite la hauteur */
  overflow: auto;              /* ✅ scroll interne autorisé */
}

/* Empêcher le scroll du fond quand overlay ouvert */
html.no-scroll,
body.no-scroll {
  height: 100%;
  overflow: hidden !important;
}

/* Bonus: bouton logout (si tu ne l’as pas déjà stylé) */
.auth-logout-btn {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-weight: 800;
}

/* Si tes cartes ont déjà un style, tu peux ignorer ce bloc: 
   il est juste là pour que le panneau admin très long reste scrol­lable proprement. */
.auth-card {
  background: rgba(0, 0, 0, 0.836);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
}

.copy-key-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}
.copy-key-btn:hover {
  transform: scale(1.2);
}













