/* =====================================================================
   SA ÉQUIPEMENT — FEUILLE DE STYLE (FULL) — MODE “ANGLES DROITS”
   - Tous les boutons, badges, cartes, modales, champs : border-radius = 0
   - Bouton “Sortir du catalogue” en gris charte
   ===================================================================== */


/* =====================================================================
   0) POLICE / RESET / THÈME
   ===================================================================== */

/* -- Déclarations @font-face (TTHovesPro) -- */
@font-face{font-family:"TTHovesPro";src:url("../fonts/tt-hoves-pro/TTHovesPro-Lt.ttf") format("truetype");font-weight:300;font-style:normal;font-display:swap;}
@font-face{font-family:"TTHovesPro";src:url("../fonts/tt-hoves-pro/TTHovesPro-Rg.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:"TTHovesPro";src:url("../fonts/tt-hoves-pro/TTHovesPro-It.ttf") format("truetype");font-weight:400;font-style:italic;font-display:swap;}
@font-face{font-family:"TTHovesPro";src:url("../fonts/tt-hoves-pro/TTHovesPro-Md.ttf") format("truetype");font-weight:500;font-style:normal;font-display:swap;}
@font-face{font-family:"TTHovesPro";src:url("../fonts/tt-hoves-pro/TTHovesPro-Bd.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap;}
@font-face{font-family:"TTHovesPro";src:url("../fonts/tt-hoves-pro/TTHovesPro-BdIt.ttf") format("truetype");font-weight:700;font-style:italic;font-display:swap;}
@font-face{font-family:"TTHovesPro";src:url("../fonts/tt-hoves-pro/TTHovesPro-XBd.ttf") format("truetype");font-weight:800;font-style:normal;font-display:swap;}
@font-face{font-family:"TTHovesPro";src:url("../fonts/tt-hoves-pro/TTHovesPro-XBdIt.ttf") format("truetype");font-weight:800;font-style:italic;font-display:swap;}

/* -- Variables de thème global -- */
:root{
  /* Couleurs de base */
  --bg:#fff; --fg:#111; --muted:#6e6e6e; --border:#e6e6e6; --card:#fff; /* border => gris charte */
  --accent:#000; --accent-2:#1f1f1f; --hover:#f7f7f7;

  /* Couleurs de marque */
  --brand-orange:#f2541b; --brand-blue:#283cb7;
  --brand-grey:#e6e6e6; --brand-brown:#464540; --brand-kaki-lite:#d8d5c6; --brand-kaki:#a9a692;

  /* Rayons & ombres — ✅ ANGLES DROITS */
  --radius-s:0px; --radius-m:0px; --radius-l:0px;
  --shadow-subtle:0 2px 8px rgba(0,0,0,.06);
  --shadow-soft:0 8px 20px rgba(0,0,0,.08);
  --shadow-strong:0 14px 34px rgba(0,0,0,.10);

  /* Backdrops (flou très léger + voile discret) */
  --backdrop-darken:.18;              /* fond global */
  --modal-backdrop-darken:.10;        /* fond modales */
  --backdrop-saturate:105%;
  --backdrop-blur:1.5px;              /* blur global */
  --backdrop-blur-cart:1px;           /* blur panier */
  --backdrop-blur-shared:1px;         /* blur modales partagées */

  /* Logo unique en arrière-plan (backdrop) */
  --solo-logo-size:270px;             /* taille du logo masqué */
  --solo-logo-alpha-factor:.34;       /* alpha relatif */

  /* Focus image (carte produit ouverte) */
  --focus-img-h:60vh;
}

/* -- Reset + base typographique -- */
*,*::before,*::after{box-sizing:border-box;}
html,body{height:100%;margin:0;padding:0;}
body{
  font-family:"TTHovesPro",Calibri,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-weight:400;background:var(--bg);color:var(--fg);letter-spacing:.2px;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%;
}
img{display:block;max-width:100%;}
a{color:inherit;text-decoration:none;}
a:hover{text-decoration:none;}
.err{color:#c62828;margin-top:8px;font-weight:700;display:none;}
html.no-scroll,body.no-scroll{overflow:hidden!important;}

/* ✅ Sécurité : si un truc échappe, on force les angles droits sur l’UI */
button,.btn,.btn-prim,.btn-outline,.btn-mini,.action-btn,
input,select,textarea,
.partner-badge,.badge,
.product,#codeSection,#orderModal,.track-card,.track-box,.addr,
.success-card,.acc-item{
  border-radius:0 !important;
}


/* =====================================================================
   1) BACKDROP GLOBAL (un seul logo centré)
   ===================================================================== */

#backdrop{
  position:fixed;inset:0;display:none;z-index:120;
  background:rgba(0,0,0, var(--backdrop-darken));
  -webkit-backdrop-filter:blur(var(--backdrop-blur)) saturate(var(--backdrop-saturate));
  backdrop-filter:blur(var(--backdrop-blur)) saturate(var(--backdrop-saturate));
  will-change:backdrop-filter;
}
#backdrop.show{display:block;}

/* -- Incrustation du logo via masque, sans image visible doublée -- */
#backdrop::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  -webkit-mask-image:url("../img/logo.svg");
  -webkit-mask-repeat:no-repeat;
  -webkit-mask-position:center center;
  -webkit-mask-size:var(--solo-logo-size) auto;
  mask-image:url("../img/logo.svg");
  mask-repeat:no-repeat;
  mask-position:center center;
  mask-size:var(--solo-logo-size) auto;
  background-color:rgba(255,255,255, calc(var(--backdrop-darken) * var(--solo-logo-alpha-factor)));
  opacity:1;
}

/* -- texture légère (optionnelle) -- */
#backdrop::before{
  content:"";position:absolute;inset:-20%;pointer-events:none;
  background:
    radial-gradient(1px 1px at 25% 35%,rgba(255,255,255,.08) 0,rgba(255,255,255,0) 100%) repeat,
    radial-gradient(1px 1px at 70% 80%,rgba(255,255,255,.06) 0,rgba(255,255,255,0) 100%) repeat;
  background-size:200px 200px,240px 240px;
  opacity:.55;
}

/* -- Ajustements de blur selon contexte -- */
body:has(.product.zoom-card) #backdrop{
  -webkit-backdrop-filter:none!important; backdrop-filter:none!important;
  background:rgba(0,0,0,.16);
}
body:has(.product.zoom-card) #backdrop::after{opacity:1!important;}
body:has(#cartPanel.open) #backdrop{
  -webkit-backdrop-filter:blur(var(--backdrop-blur-cart)) saturate(var(--backdrop-saturate));
  backdrop-filter:blur(var(--backdrop-blur-cart)) saturate(var(--backdrop-saturate));
}


/* =====================================================================
   2) VIDÉO DE FOND (vitrine)
   ===================================================================== */

#videoBg{position:fixed;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;}
#videoOverlay{position:fixed;inset:0;background:rgba(0,0,0,.35);backdrop-filter:blur(.5px);-webkit-backdrop-filter:blur(.5px);z-index:-1;}


/* =====================================================================
   3) CARTE CODE CATALOGUE (landing) — ✅ ANGLES DROITS
   ===================================================================== */

#codeSection{
  position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:5;max-width:460px;width:92%;
  margin:0 auto;padding:28px 22px;display:flex;flex-direction:column;align-items:center;text-align:center;
  background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.25);border-radius:0;
  -webkit-backdrop-filter:blur(12px) saturate(160%);backdrop-filter:blur(12px) saturate(160%);
  box-shadow:0 8px 40px rgba(0,0,0,.25);color:#fff;
  padding-left:calc(22px + env(safe-area-inset-left));padding-right:calc(22px + env(safe-area-inset-right));
}
.code-card{width:100%;display:flex;flex-direction:column;align-items:center;gap:1rem;}
.code-logo{
  height:56px;
  width:auto;
  /* transforme un logo sombre en blanc */
  filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0,0,0,.4));
}#codeSection h2{font-size:1.5rem;font-weight:800;margin:0 0 8px;letter-spacing:.3px;}
#codeSection p{margin:0 0 .25rem;opacity:.9;}
.input-glass{
  display:flex;align-items:center;width:100%;
  background:rgba(255,255,255,.18);
  border-radius:0;
  overflow:hidden;border:1px solid rgba(255,255,255,.25);
  box-shadow:0 4px 16px rgba(0,0,0,.15);
}
#codeInput{
  flex:1;background:transparent;border:none;outline:none;padding:.9rem 1.1rem;font-size:1.1rem;color:#fff;
  letter-spacing:1px;font-weight:800;text-transform:uppercase;text-align:center;
}
#codeInput::placeholder{color:rgba(255,255,255,.65);}
.btn-glass{
  background:var(--brand-orange);border:none;color:#fff;font-size:1.3rem;font-weight:800;
  width:56px;height:56px;border-radius:0;cursor:pointer;
  transition:background .25s ease,transform .15s ease;
}
.btn-glass:hover{background:#ff6e36;transform:translateY(-2px);}
.btn-glass:disabled{opacity:.4;cursor:not-allowed;}
#codeErr{color:#ffe0e0;font-weight:700;margin-top:.6rem;}


/* =====================================================================
   4) HEADER / BOUTONS / BADGES / CTA — ✅ ANGLES DROITS
   ===================================================================== */

.btn,.btn-prim,.btn-outline,.btn-mini,.action-btn{
  font-family:"TTHovesPro",Calibri,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-weight:800;border-radius:0;
}
.btn{
  background:var(--accent);color:#fff;border:none;cursor:pointer;padding:14px 20px;border-radius:0;width:100%;
  font-size:.95rem;text-transform:uppercase;letter-spacing:.6px;transition:transform .15s ease,background .2s ease,box-shadow .2s ease;
  min-height:44px;
}
.btn:hover{background:var(--brand-orange);transform:translateY(-1px);box-shadow:0 6px 16px rgba(242,84,27,.22);}
.header-btn{width:auto;}

.icon-btn{
  font-size:1.6rem;background:none;border:none;cursor:pointer;color:var(--fg);padding:8px 10px;
  transition:color .2s ease,transform .1s ease;min-height:44px;min-width:44px;
}
.icon-btn:hover{color:var(--brand-orange);transform:translateY(-1px);}

#btnCart{position:relative;}
#btnCart .cart-badge{
  position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 6px;
  display:inline-grid;place-items:center;background:var(--brand-orange);color:#fff;border-radius:0;
  font:700 .72rem/1 "TTHovesPro",system-ui;box-shadow:0 2px 6px rgba(0,0,0,.25);transform:scale(0);
  transform-origin:100% 0;transition:transform .18s ease;
}
#btnCart.has-items .cart-badge{transform:scale(1);}
.icon-btn img{height:26px;width:26px;object-fit:contain;vertical-align:middle;transition:transform .2s ease;}
.icon-btn:hover img{transform:scale(1.1);}

/* -- Header sticky (masqué par défaut jusqu’à init JS) -- */
header{
  display:none;justify-content:space-between;align-items:center;
  padding:14px calc(20px + env(safe-area-inset-right)) 14px calc(20px + env(safe-area-inset-left));
  background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:50;
}
.logo{font-size:1.25rem;font-weight:800;text-transform:uppercase;letter-spacing:1px;}
header .logo img{height:64px;width:auto;display:block;}
.header-actions{display:flex;gap:12px;align-items:center;}

/* -- Petites actions (facture / suivi) -- */
.action-btn{
  display:inline-flex;align-items:center;gap:.5rem;padding:.65rem .9rem;border-radius:0;text-decoration:none;white-space:nowrap;line-height:1;
  border:1px solid transparent;transition:transform .15s ease,background .2s ease,border-color .2s ease,color .2s ease;
}
.action-btn--black{background:#000;color:#fff;border-color:#000;}
.action-btn--black:hover{background:var(--brand-orange);border-color:var(--brand-orange);color:#fff;transform:translateY(-1px);}
.action-btn--ghost{background:#fff;color:#000;border-color:#111;}
.action-btn--ghost:hover{border-color:var(--brand-orange);color:var(--brand-orange);transform:translateY(-1px);}
.btn-mini{padding:.35rem .6rem;border-radius:0;border:1px solid #ddd;background:#fff;cursor:pointer;}
.btn-mini:hover{border-color:var(--brand-orange);color:var(--brand-orange);}

/* -- Badge partenaire (badge catalogue) — ✅ ANGLES DROITS -- */
.partner-badge{
  --badge-bg:#fff;--badge-fg:#111;--badge-br:var(--border);--badge-hi:var(--brand-orange);
  display:inline-flex;align-items:center;gap:.5rem;padding:.80rem 1.84rem;border:1px solid var(--badge-br);
  border-radius:0;background:var(--badge-bg);color:var(--badge-fg);
  font-family:"TTHovesPro",system-ui,Arial,sans-serif;font-weight:800;font-size:1.05rem;line-height:1;
  text-transform:uppercase;letter-spacing:.35px;white-space:nowrap;vertical-align:middle;position:relative;top:-2px;
}
.partner-badge::before{content:"";width:.5rem;height:.5rem;background:var(--badge-hi);}
.partner-badge:hover,.partner-badge:focus-visible{background:var(--badge-hi);border-color:#fff;color:#000;}
.partner-badge:hover::before,.partner-badge:focus-visible::before{background:#000;}


/* =====================================================================
   5) CATALOGUE (grille produits + interactions) — ✅ CARTES ANGLES DROITS
   ===================================================================== */

#catalogueSection{display:none;max-width:1200px;margin:36px auto 60px;padding:0 20px;}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:28px;}

.product{
  position:relative;background:linear-gradient(180deg,#fff,#fafafa);
  border:1px solid #e9e9e9;border-radius:0;overflow:hidden;
  transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease;
  box-shadow:0 6px 18px rgba(0,0,0,.06);cursor:default;
}
.product::before{
  content:"";position:absolute;inset:0;pointer-events:none;border-radius:0;
  background:linear-gradient(135deg,rgba(0,100,236,.18),transparent 35%,transparent 65%,rgba(0,100,236,.18));
  opacity:0;transition:opacity .25s ease;
}
.product:hover{transform:translateY(-4px);box-shadow:var(--shadow-strong);border-color:#e3e3e3;}
.product:hover::before{opacity:.5;}

.img-wrap{position:relative;overflow:hidden;background:#f3f6fb;cursor:default;}
.product img.prod-img{
  width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;transform-origin:50% 50%;
  transform:translate(0,0) scale(1);transition:transform .45s ease,filter .45s ease;will-change:transform;
}
.product:hover .prod-img{transform:scale(1.04);filter:saturate(1.02);}
.product .img-wrap.zoomed .prod-img{transition:transform .2s ease,filter .2s;}
.product .img-wrap.zoomable.is-dragging .prod-img{transition:transform 0s,filter .2s;}
.product .img-wrap.zoomed ~ *{pointer-events:auto;}

/* -- navigation images -- */
.img-nav{
  position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:40px;height:44px;padding:0;
  background:transparent;border:none;cursor:pointer;color:#111;opacity:.95;font-size:0;
  transition:opacity .2s ease,transform .12s ease,color .2s ease;
}
.img-nav:hover{color:var(--brand-orange);transform:translateY(-50%) scale(1.04);}
.img-nav:active{transform:translateY(-50%) scale(.98);}
.img-nav:focus-visible{outline:2px solid var(--brand-orange);outline-offset:2px;}
.img-nav::before{
  content:"";position:absolute;left:50%;top:50%;width:18px;height:18px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:translate(-50%,-50%) rotate(-45deg);
  filter:drop-shadow(0 0 1px rgba(255,255,255,.9)) drop-shadow(0 0 6px rgba(255,255,255,.5));
}
.nav-right::before{transform:translate(-50%,-50%) rotate(-45deg);}
.nav-left::before{transform:translate(-50%,-50%) rotate(135deg);}
.nav-left{left:6px;} .nav-right{right:6px;}

/* -- points (dots) -- */
.img-dots{position:absolute;right:8px;bottom:8px;display:flex;gap:6px;z-index:6;pointer-events:auto;}
.img-dot{
  width:8px;height:8px;border:none;padding:0;cursor:pointer;background:#111;opacity:.95;
  transition:transform .15s ease,background .2s ease,opacity .2s ease;
  box-shadow:0 1px 3px rgba(0,0,0,.15);
}
.img-dot:hover{transform:scale(1.12);}
.img-dot.active{background:var(--brand-orange);}

/* -- infos produit -- */
.product h3{font:700 1.08rem/1.2 "TTHovesPro",system-ui,Arial;padding:12px 14px 6px;margin:0;letter-spacing:.2px;}
.product .variant-row,.product .variant-badge,.product .variant-price{padding:0 14px;}
.variant-badge{color:var(--muted);min-height:1.2em;margin:2px 0 6px;}
.variant-price{font-weight:800;margin:4px 0 10px;}

.product select{
  width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:0;background:#fff;font-size:.95rem;outline:none;
  transition:border-color .2s ease,box-shadow .2s ease;min-height:44px;
}
.product select:focus{border-color:var(--brand-orange);box-shadow:0 0 0 3px rgba(242,84,27,.18);}
.product label span{display:block;font-size:.78rem;color:var(--muted);margin-bottom:6px;}

.product .qty-line{display:flex;gap:.6rem;align-items:center;padding:8px 14px 14px;flex-wrap:wrap;}
.qty-wrap{display:flex;align-items:center;border:1px solid var(--border);border-radius:0;overflow:hidden;flex:0 0 auto;}
.qty-btn{
  width:38px;height:38px;display:grid;place-items:center;background:#fff;border:none;cursor:pointer;font-size:1.1rem;font-weight:700;
  min-height:44px;min-width:44px;transition:color .2s ease,background .2s ease;
}
.qty-btn:hover{color:var(--brand-orange);background:#fff;}
.qty-input{width:70px;height:38px;text-align:center;border:none;border-left:1px solid #eee;border-right:1px solid #eee;outline:none;font-size:1rem;}
.qty-input[type="number"]::-webkit-outer-spin-button,.qty-input[type="number"]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.qty-input[type="number"]{-moz-appearance:textfield;appearance:textfield;}

.add-btn{
  margin-left:auto;background:#000;color:#fff;border:none;cursor:pointer;padding:11px 14px;border-radius:0;font-weight:800;
  letter-spacing:.3px;text-transform:uppercase;transition:transform .15s ease,background .2s ease,box-shadow .2s ease;
  min-height:44px;flex:1 1 auto;min-width:140px;margin-top:6px;
}
.add-btn:hover{background:var(--brand-orange);transform:translateY(-1px);box-shadow:0 6px 16px rgba(242,84,27,.22);}
.add-btn:disabled{opacity:.45;cursor:not-allowed;}
.variant-status{font-size:.9rem;color:var(--muted);padding:0 14px 12px;}


/* =====================================================================
   6) PANIER (panneau coulissant)
   ===================================================================== */

#cartPanel{
  position:fixed;top:0;right:0;height:100vh;width:min(92vw,380px);
  display:flex;flex-direction:column;background:#fff;border-left:1px solid #eee;
  box-shadow:-10px 0 28px rgba(0,0,0,.08);
  padding:20px;padding-right:calc(20px + env(safe-area-inset-right));z-index:200;
  transform:translateX(100%);transition:transform .35s ease;
}
#cartPanel.open{transform:translateX(0);}
.closeCart{
  position:absolute;right:calc(14px + env(safe-area-inset-right));top:14px;background:none;border:none;cursor:pointer;
  font-size:2rem;line-height:1;color:var(--fg);opacity:.9;min-width:44px;min-height:44px;
}
.closeCart:hover{opacity:1;}
#cartList{flex:1;overflow-y:auto;padding-bottom:70px;}

.cart-item{border-bottom:1px solid var(--border);padding:12px 0;}
.cart-item strong{font-weight:800;}
.cart-item .meta{color:var(--muted);font-size:.9rem;}
#cartTotal{font-weight:800;font-size:1.05rem;}
#cartPay{width:100%;margin-top:14px;position:sticky;bottom:env(safe-area-inset-bottom);min-height:44px;}
.cart-item-row{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem;}
.cart-item-main{flex:1}
.cart-del{
  --sz:34px;width:var(--sz);height:var(--sz);display:inline-grid;place-items:center;border:1px solid var(--border);
  border-radius:0;background:#fff;color:#111;font-weight:800;line-height:1;cursor:pointer;
  transition:transform .12s ease, border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  min-width:44px;min-height:44px;aspect-ratio:1/1;
}
.cart-del:hover{background:var(--brand-orange);border-color:var(--brand-orange);color:#fff;transform:translateY(-1px);box-shadow:0 6px 16px rgba(242,84,27,.22);}
.cart-del:active{transform:scale(.96);}
.cart-del:focus-visible{outline:3px solid rgba(242,84,27,.28);outline-offset:2px;}
.cart-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;color:var(--muted);padding:28px 10px; min-height:160px;}
.cart-empty img{width:54px;height:auto;opacity:.9;user-select:none;pointer-events:none;filter:drop-shadow(0 2px 6px rgba(0,0,0,.08));}
.cart-empty p{margin:0;font-weight:800;letter-spacing:.2px;color:#333;}


/* =====================================================================
   7) MODALE SUIVI DE COMMANDE (fond + carte) — ✅ ANGLES DROITS
   ===================================================================== */

#orderModalBg{
  position:fixed;inset:0;display:none;justify-content:center;align-items:flex-start;padding:20px 12px;z-index:300;
  background:rgba(0,0,0,var(--modal-backdrop-darken));
  -webkit-backdrop-filter:blur(var(--backdrop-blur-shared)) saturate(var(--backdrop-saturate));
  backdrop-filter:blur(var(--backdrop-blur-shared)) saturate(var(--backdrop-saturate));
}

/* -- un seul logo via masque, aucun doublon -- */
#orderModalBg::after,#orderModalBg::before{position:absolute;content:"";pointer-events:none;z-index:0;inset:0;}
#orderModalBg::after{
  -webkit-mask-image:url("../img/logo.svg"); -webkit-mask-repeat:no-repeat; -webkit-mask-position:center center; -webkit-mask-size:var(--solo-logo-size) auto;
  mask-image:url("../img/logo.svg"); mask-repeat:no-repeat; mask-position:center center; mask-size:var(--solo-logo-size) auto;
  background-color:rgba(255,255,255, calc(var(--modal-backdrop-darken) * var(--solo-logo-alpha-factor)));
  opacity:1;
}
/* -- petite texture optionnelle -- */
#orderModalBg::before{
  inset:-20%;
  background:radial-gradient(1px 1px at 25% 35%,rgba(255,255,255,.08) 0,rgba(255,255,255,0) 100%) repeat,
             radial-gradient(1px 1px at 70% 80%,rgba(255,255,255,.06) 0,rgba(255,255,255,0) 100%) repeat;
  background-size:200px 200px,240px 240px;
  opacity:.5;
}

/* -- carte modale -- */
#orderModal{
  position:relative;z-index:1;background:#fff;padding:26px;width:90%;max-width:520px;border-radius:0;
  box-shadow:0 8px 24px rgba(0,0,0,.12);display:flex;flex-direction:column;gap:14px;text-align:left;
  max-height:calc(100vh - 40px);overflow:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y;
  border:1px solid var(--border);
}
#orderModal h3{margin:0 0 4px;font-size:1.2rem;font-weight:800;}
#orderModal p{margin:0 0 6px;color:var(--muted);}
#orderModal input{
  width:100%;padding:12px;border-radius:0;border:1px solid var(--border);outline:none;
  transition:border-color .2s ease,box-shadow .2s ease;min-height:44px;background:#fff;
}
#orderModal input:focus{border-color:var(--brand-orange);box-shadow:0 0 0 3px rgba(242,84,27,.18);}
.modal-x,.zoom-close{
  position:absolute;top:10px;right:10px;width:26px;height:26px;padding:0;border:none;background:transparent;color:#111;
  font-size:22px;line-height:1;cursor:pointer;box-shadow:none;z-index:3;
}
.modal-x:hover,.zoom-close:hover{color:var(--brand-orange);transform:scale(1.06);}
.modal-x:active,.zoom-close:active{transform:scale(.96);}

/* -- récapitulatif (montant aligné à droite) -- */
.sum-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:-2px 0 10px;}
.sum-row .sum-left{min-width:0;}
.sum-row .sum-left .label{display:block;font-weight:700;color:#4a4a4a;margin-bottom:2px;font-size:.92rem;}
.sum-row .sum-left .order-ref{display:block;font-weight:800;word-break:break-all;}
.sum-row .amount{font-weight:900;font-size:1.15rem;white-space:nowrap;margin-left:auto;}


/* =====================================================================
   8) TRACKING UI (cartes + mini-table) — ✅ ANGLES DROITS
   ===================================================================== */

.track-card{text-align:left;background:#fff;border:1px solid var(--border);border-radius:0;box-shadow:var(--shadow-soft);padding:16px;}
.track-card .head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px;}
.track-card .ref{font-weight:800;font-size:1.05rem;}
.track-card .amount{font-weight:900;font-size:1.1rem;letter-spacing:.2px;}
.track-card .row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:8px 0 12px;}
.track-card .pill{display:inline-block;padding:.28rem .6rem;font-weight:800;border:1px solid rgba(0,0,0,.06);border-radius:0;}
.track-card .btns{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0 10px;}
.track-box{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px dashed #d8d8d8;border-radius:0;background:#fcfcfc;}
.track-num{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-weight:700;}
.details{margin-top:6px;}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:10px;}
.addr{padding:8px 10px;background:#fafafa;border:1px solid #ededed;border-radius:0;}

/* -- mini-table : prix visibles + scroll mobile -- */
.mini-table-wrap{width:100%;overflow-x:auto;}
.mini-table{width:720px;max-width:100%;border-collapse:collapse;margin-top:6px;font-size:.95rem;table-layout:fixed;}
.mini-table th,.mini-table td{border-bottom:1px solid #eee;padding:10px 6px;vertical-align:top;}
.mini-table thead th{color:#4a4a4a;font-weight:800;position:sticky;top:0;background:#fff;z-index:1;}
.mini-table th:nth-child(1),.mini-table td:nth-child(1){width:62%;word-break:break-word;}
.mini-table th:nth-child(2),.mini-table td:nth-child(2){width:12%;text-align:center;}
.mini-table th:nth-child(3),.mini-table td:nth-child(3){width:26%;text-align:right;white-space:nowrap;}


/* =====================================================================
   9) UTILITAIRES / FLY-TO-CART
   ===================================================================== */

.container{max-width:1200px;margin:0 auto;padding:0 20px;}
.center{display:grid;place-items:center;}
.hide{display:none!important;}
.muted{color:var(--muted);}
.hr{height:1px;background:var(--border);border:0;margin:14px 0;}
.badge{display:inline-block;padding:4px 8px;font-size:.8rem;border:1px solid var(--border);border-radius:0;background:#fff;color:var(--fg);}
.product .qty-input,.product select{box-shadow:none;}

.fly-ball{
  position:fixed;left:0;top:0;width:34px;height:34px;border-radius:999px;pointer-events:none;z-index:9999;
  background:radial-gradient(35% 35% at 35% 35%,rgba(255,255,255,.65),rgba(255,255,255,0) 60%),
             radial-gradient(80% 80% at 70% 70%,rgba(0,0,0,.12),rgba(0,0,0,0) 60%),#f2541b;
  box-shadow:0 6px 18px rgba(0,0,0,.25);transform:translate(-50%,-50%) scale(1);opacity:1;
}

/* -- petit bump sur l’icône panier -- */
@keyframes cart-bump{0%{transform:scale(1);filter:brightness(1);}30%{transform:scale(1.25);filter:brightness(1.2);}55%{transform:scale(1.1);filter:brightness(1.1);}100%{transform:scale(1);filter:brightness(1);}}
#btnCart.bump,#btnCart.bump img{animation:cart-bump 420ms cubic-bezier(.25,1.6,.35,1);}


/* =====================================================================
   10) FOCUS PRODUIT (zoom + pan)
   ===================================================================== */

.product-placeholder{border-radius:0;}
.product.zoom-card{
  position:fixed!important;top:50vh;left:50vw;transform:translate(-50%,-50%) scale(1)!important;
  width:min(92vw,720px);max-height:92vh;overflow:auto;z-index:210;
  box-shadow:0 30px 80px rgba(0,0,0,.28),0 8px 26px rgba(0,0,0,.18);
  border-color:#e5e5e5;background:#fff;cursor:default;border-radius:0;
}
.product.zoom-card .img-wrap{display:flex;align-items:center;justify-content:center;background:#f3f6fb;height:var(--focus-img-h);max-height:var(--focus-img-h);min-height:260px;overflow:hidden;}
.product.zoom-card .img-wrap img.prod-img{max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;object-fit:contain!important;aspect-ratio:auto!important;}
.product.zoom-card .qty-line{position:sticky;bottom:0;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 26%);padding-top:12px;}
.product,.product *{cursor:default;}
.product button,.product .img-nav,.product .qty-btn,.product .add-btn,.zoom-close{cursor:pointer;}
.img-wrap.zoomable{cursor:default!important;}
.product.zoom-card .img-wrap img.prod-img{cursor:default!important;}
.product.zoom-card .img-wrap.zoomed,.product.zoom-card .img-wrap.is-dragging{cursor:pointer!important;}
.product.zoom-card .img-wrap.zoomed img.prod-img,.product.zoom-card .img-wrap.is-dragging img.prod-img{cursor:pointer!important;}


/* =====================================================================
   11) RESPONSIVE (paliers)
   ===================================================================== */

@media (max-width:960px){
  .grid{gap:22px;}
  .product.zoom-card{width:min(96vw,720px);}
}

@media (max-width:540px){
  header{padding:12px 16px;}
  header .logo img{height:48px;}
  #catalogueSection{margin:24px auto 40px;padding:0 12px;}
  .grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px;}
  .product .variant-row{display:flex;flex-direction:column;gap:8px;}
  .qty-btn{width:40px;height:40px;}
  .qty-input{width:64px;height:40px;}
  .img-nav{width:34px;height:40px;}
  .img-nav::before{width:15px;height:15px;border-width:2px;}
  #videoOverlay{background:rgba(0,0,0,.28);}
  #orderModal{max-width:440px;padding:22px 16px;}
  .track-card .row{grid-template-columns:1fr;}
  .detail-grid{grid-template-columns:1fr;}
  :root{--focus-img-h:52vh;}
  .product.zoom-card{width:min(96vw,540px);max-height:90vh;}
}

@media (max-width:380px){
  .grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;}
  :root{--focus-img-h:48vh;}
}

/* -- smartphone compact (icônes, textes + boutons) -- */
@media (max-width:430px){
  :root{ --solo-logo-size:192px; }
  header{padding:8px 10px;}
  header .logo img{height:40px;}
  .logo{font-size:1rem;letter-spacing:.5px;}
  .header-actions{gap:6px;flex-wrap:wrap;}
  .header-btn,header .btn{padding:8px 10px;min-height:32px;font-size:.72rem;font-weight:800;}
  #btnCart.icon-btn{font-size:1.2rem;min-width:34px;min-height:34px;padding:4px;}
  #btnCart .cart-badge{min-width:16px;height:16px;font-size:.6rem;top:-5px;right:-5px;}
  #catalogueSection{margin:16px auto 26px;padding:0 10px;}
  .grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;}
  .product{box-shadow:var(--shadow-subtle);}
  .product h3{font-size:.95rem;padding:8px 10px 4px;}
  .product .variant-row,.product .variant-badge,.product .variant-price{padding:0 10px;}
  .variant-badge{font-size:.82rem;margin:0 0 4px;}
  .variant-price{font-size:.95rem;margin:2px 0 6px;}
  .product img{aspect-ratio:1/1;}
  .product label span{font-size:.72rem;margin-bottom:4px;}
  .product select{padding:8px 10px;font-size:.9rem;min-height:38px;}
  .product .qty-line{display:flex;align-items:center;gap:.5rem;padding:6px 10px 10px;position:relative;z-index:0;flex-wrap:wrap;}
  .qty-btn{width:34px;height:34px;min-width:34px;min-height:34px;font-size:1rem;}
  .qty-input{width:54px;height:34px;font-size:.95rem;}
  .add-btn{flex:1 1 100%;min-width:0;min-height:36px;padding:9px 12px;font-size:.82rem;position:relative;z-index:1;order:2;margin-top:6px;}
  #cartPanel{width:min(88vw,340px);padding:14px;}
  .closeCart{right:calc(8px + env(safe-area-inset-right));top:8px;font-size:1.6rem;min-width:38px;min-height:38px;}
  #cartList{padding-bottom:60px;}
  .cart-item{padding:8px 0;}
  .cart-item .meta{font-size:.82rem;}
  #cartTotal{font-size:.95rem;}
  #cartPay{min-height:40px;font-size:.9rem;}

  #codeSection{width:92%;padding:18px 14px;border-radius:0;}
  #codeSection h2{font-size:1.3rem;margin-bottom:6px;}
  #codeForm input{min-height:38px;padding:10px 12px;font-size:.95rem;}
  #codeSection .btn{min-height:40px;}

  #orderModal{max-width:410px;}
  .track-card{padding:14px;}
}

/* -- Titres & colonnes montants -- */
h1{font-weight:800;}
h2,h3{font-weight:700;}
.small,.muted{font-weight:300;}
.btns-inline{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0 10px;}
.btns-inline .action-btn{height:40px;}
.amount-col{text-align:right;min-width:140px;}
.amount-col .amount{font-weight:900;font-size:1.15rem;white-space:nowrap;}
.amount-col .label{display:block;color:#6e6e6e;font-weight:700;font-size:.9rem;margin-bottom:4px;text-transform:none;}
.track-card .row{display:none;}

/* =====================================================================
   ✅ Bouton “Sortir du catalogue” — GRIS CHARTE + ANGLES DROITS
   ===================================================================== */

#btnExit,.btn-exit{
  padding:.48rem .72rem;min-height:36px;font-size:.82rem;line-height:1;
  background:var(--brand-grey) !important;
  color:#111 !important;
  border:1px solid var(--brand-brown) !important;
  text-transform:uppercase;letter-spacing:.06rem;
}
#btnExit:hover,.btn-exit:hover{
  border-color:var(--brand-orange) !important;
  box-shadow:0 6px 16px rgba(242,84,27,.16);
  transform:translateY(-1px);
}
#btnExit::before,.btn-exit::before{
  content:"";display:inline-block;width:10px;height:10px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg);margin-right:.4rem;
}
@media (max-width:600px){
  #btnExit,.btn-exit{padding:.42rem .6rem;min-height:32px;font-size:.78rem;}
  #btnExit,.btn-exit{position:relative;font-size:0;padding:.36rem .58rem;min-height:30px;}
  #btnExit::before,.btn-exit::before{margin-right:.45rem;}
  #btnExit::after,.btn-exit::after{content:"Sortir";font-size:.74rem;line-height:1;letter-spacing:.2px;}
}

/* -- Option : couper totalement le logo de backdrop si besoin -- */
body.no-mosaic #backdrop::after,
body.no-mosaic #orderModalBg::after{display:none!important;}


/* =====================================================================
   12) PORTES D’ENTRÉE (S/A) — sans joint + aura CTA (déjà angles droits)
   ===================================================================== */

:root{
  --doors-z: 1200;
  --doors-bg:#000;
  --doors-logo-color:#fff;
  --doors-logo-size: clamp(280px, 56vmin, 520px);

  --logo-top: 120px;
  --cta-bottom: 120px;

  /* ✅ 1 SEULE VARIABLE (PC) */
  --doors-tight-desktop: 20px; /* 👈 TU JOUES ICI (ex: 52 / 64 / 78) */
  --doors-gap-desktop:  clamp(6px, calc(var(--doors-tight-desktop) * 0.20), 14px);
  --doors-join-desktop: var(--doors-tight-desktop);

  /* Valeurs actives (par défaut = desktop) */
  --doors-join: var(--doors-join-desktop);
  --doors-gap:  var(--doors-gap-desktop);

  /* ✅ 1 SEULE VARIABLE (MOBILE) */
  --doors-tight-mobile: 42px; /* 👈 TU JOUES ICI (ex: 34 / 42 / 55) */
  --doors-gap-mobile:  clamp(8px, calc(var(--doors-tight-mobile) * 0.22), 18px);
  --doors-join-mobile: var(--doors-tight-mobile);

  /* micro-ajustements */
  --doors-s-nudge: -45px;
  --doors-a-nudge: -45px;

  /* ✅ VITESSE OUVERTURE */
  --doors-open-duration: 4000ms;
  --doors-open-ease: cubic-bezier(.22,1,.23,1);
  --doors-open-overshoot: 101.2%;
}

html.doors-open, body.doors-open{ overflow:hidden !important; }

.doors{
  position:fixed; inset:0; z-index:var(--doors-z);
  background:transparent; width:100%; height:100dvh; overflow:hidden;
  touch-action:none; isolation:isolate;
}
.doors.init-hide{display:none !important;}
.doors.hidden{display:none !important;}

/* battants */
.doors .door{
  position:absolute; top:0; bottom:0;
  background:var(--doors-bg);
  z-index:1;
  overflow:hidden;
  will-change:transform;
  transform:translate3d(0,0,0);
  backface-visibility:hidden;
  contain:paint;
}
.doors .door-left{  left:0; right:calc(50% + 0px); }
.doors .door-right{ left:calc(50% - 1px); right:0; }

/* base lettre */
.doors .door-fill{
  position:absolute;
  top:var(--logo-top);
  width:var(--doors-logo-size);
  height:var(--doors-logo-size);
  background:var(--doors-logo-color);
  pointer-events:none;
  transform:translateZ(0);
}

/* S */
.doors .door-left .door-fill{
  right:0;
  transform: translateX(calc((var(--doors-join) - var(--doors-gap)) + var(--doors-s-nudge)));
  -webkit-mask: url("../img/logo_S_blanc.svg") right center/contain no-repeat;
          mask: url("../img/logo_S_blanc.svg") right center/contain no-repeat;
}

/* A */
.doors .door-right .door-fill{
  left:0;
  transform: translateX(calc(-1 * (var(--doors-join) - var(--doors-gap)) - var(--doors-a-nudge)));
  -webkit-mask: url("../img/logo_A_blanc.svg") left center/contain no-repeat;
          mask: url("../img/logo_A_blanc.svg") left center/contain no-repeat;
}

/* CTA */
.doors-cta{
  position:absolute; left:50%; bottom:var(--cta-bottom); transform:translateX(-50%); z-index:3;
  display:inline-flex; flex-direction:column; align-items:center; justify-content:center;
  background:#fff;color:#000;border:1px solid #000;border-radius:0;
  cursor:pointer;
  font:800 .9rem/1 "TTHovesPro",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  letter-spacing:.12rem;text-transform:uppercase;
  padding:.78rem 1.2rem;
  min-width:200px; max-width:300px;
  white-space:normal;
  transition:opacity .2s ease, transform .2s ease;
  pointer-events:auto;
}
.doors-cta .cta-top{display:block; font-size:.9rem; line-height:1; color:#000;}
.doors-cta .cta-sub{display:block; font-size:.74rem; line-height:1; opacity:.9; margin-top:.32rem; letter-spacing:.08rem; color:#000;}

.doors-cta::before,
.doors-cta::after{
  content:""; position:absolute; inset:-4px; pointer-events:none; z-index:-1;
  border:1px solid rgba(255,255,255,.7);
  box-shadow:0 0 16px rgba(255,255,255,.35), 0 0 28px rgba(255,255,255,.2);
  animation:doorsPulse 2.2s ease-out infinite;
  border-radius:0;
}
.doors-cta::after{
  inset:-10px; border-color:rgba(255,255,255,.55); animation-delay:.8s; opacity:.8;
}
@keyframes doorsPulse{
  0%{transform:scale(.96);opacity:0;}
  25%{transform:scale(1);opacity:.9;}
  60%{transform:scale(1.06);opacity:.35;}
  100%{transform:scale(1.1);opacity:0;}
}

/* ouverture */
.doors.open .doors-cta{ opacity:0; transform:translateX(-50%) scale(.98); pointer-events:none; }

.doors.open .door-left{ animation:doorLeft var(--doors-open-duration) var(--doors-open-ease) forwards; }
.doors.open .door-right{ animation:doorRight var(--doors-open-duration) var(--doors-open-ease) forwards; }
@keyframes doorLeft  { to { transform:translate3d(calc(-1 * var(--doors-open-overshoot)),0,0); } }
@keyframes doorRight { to { transform:translate3d(var(--doors-open-overshoot),0,0); } }

/* ✅ MOBILE : on bascule sur la variable unique mobile */
@media (max-width:480px){
  :root{
    --logo-top: 80px;
    --cta-bottom: 84px;
    --doors-join: var(--doors-join-mobile);
    --doors-gap:  var(--doors-gap-mobile);
  }
}

/* ✅ Pendant l’anim : l’overlay ne bloque plus le champ code */
.doors.open{ pointer-events:none; }


/* =====================================================================
   13) PAGE SUCCÈS (success.php) — ✅ ANGLES DROITS
   ===================================================================== */

.success-page body{background:var(--bg);color:var(--fg);}
.success-page header{
  display:flex;justify-content:space-between;align-items:center;padding:14px 20px;border-bottom:1px solid var(--border);
}
.success-page header .logo img{height:56px;width:auto;}
.success-page header .header-actions{display:none !important;}

/* -- backdrop succès (logo unique) -- */
.success-backdrop{
  position:fixed;inset:0;background:rgba(0,0,0,var(--modal-backdrop-darken));
  -webkit-backdrop-filter:blur(var(--backdrop-blur-shared)) saturate(var(--backdrop-saturate));
  backdrop-filter:blur(var(--backdrop-blur-shared)) saturate(var(--backdrop-saturate));
  display:grid;place-items:center;padding:20px 12px;z-index:10;
}
.success-backdrop::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  -webkit-mask-image:url("../img/logo.svg"); -webkit-mask-repeat:no-repeat; -webkit-mask-position:center center; -webkit-mask-size:var(--solo-logo-size) auto;
  mask-image:url("../img/logo.svg"); mask-repeat:no-repeat; mask-position:center center; mask-size:var(--solo-logo-size) auto;
  background-color:rgba(255,255,255, calc(var(--modal-backdrop-darken) * var(--solo-logo-alpha-factor)));
  opacity:1;
}

/* -- carte succès -- */
.success-card{
  position:relative;z-index:1;width:90%;max-width:520px;background:#fff;border:1px solid var(--border);
  border-radius:0;box-shadow:var(--shadow-soft);padding:26px 22px;text-align:left;
}
.success-head{display:flex;align-items:center;gap:12px;margin-bottom:8px;}
.success-badge{
  width:36px;height:36px;display:inline-grid;place-items:center;background:#e8fff0;color:#0f8a4b;
  font-weight:900;font-size:1.1rem;line-height:1;border-radius:0;
}
.success-title{margin:0;font-weight:800;font-size:1.25rem;}
.success-muted{color:var(--muted);}
.success-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;}
.success-actions .btn,.success-actions .action-btn{width:auto;}
.success-actions .action-btn{border:1px solid #ddd;}

@media (max-width:430px){
  .success-page header{padding:10px 12px;}
  .success-page header .logo img{height:44px;}
  .success-card{max-width:410px;padding:22px 16px;}
}


/* =====================================================================
   14) OVERRIDES SPÉCIFIQUES TRACK.PHP (centrage + accordéon) — ✅ ANGLES DROITS
   ===================================================================== */

/* -- contexte : on garde le header et on coupe les backdrops de la boutique -- */
html.success-page body.track-page{ background:var(--bg); color:var(--fg); }
html.success-page body.track-page #backdrop,
html.success-page body.track-page #orderModalBg,
html.success-page body.track-page .success-backdrop{display:none!important;}
html.success-page body.track-page::before,
html.success-page body.track-page::after{content:none!important;}

/* -- header visible -- */
html.success-page body.track-page header{display:flex!important;}

/* -- conteneur sous header, centré et respirant -- */
:root{ --track-gap-top: clamp(10px, 2.8vh, 28px); }
html.success-page body.track-page .wrap{
  min-height:100dvh; display:grid; align-items:start; justify-items:center; width:100%;
  max-width:none; padding: var(--track-gap-top) 16px 24px;
}

/* -- carte principale : largeur fluide plafonnée -- */
html.success-page body.track-page .success-card{
  margin:0 auto; justify-self:center; width:min(100%, 820px) !important; max-width:none !important;
  background:#fff; border:1px solid var(--border); border-radius:0;
  box-shadow:var(--shadow-soft); padding:22px 18px; text-align:left;
}

/* -- titres / badges -- */
html.success-page body.track-page .success-title{margin:0;font-weight:800;font-size:1.25rem;}
html.success-page body.track-page .success-badge{
  width:36px;height:36px;display:inline-grid;place-items:center;background:#e8fff0;color:#0f8a4b;
  font-weight:900;font-size:1.1rem;line-height:1;border-radius:0;
}

/* -- accordéon -- */
html.success-page body.track-page .accordion{display:grid;gap:12px;margin-top:10px;}
html.success-page body.track-page .acc-item{border:1px solid var(--border);border-radius:0;background:var(--card,#fff);overflow:hidden;}
html.success-page body.track-page .acc-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;cursor:pointer;flex-wrap:nowrap;
}
html.success-page body.track-page .acc-head:focus-visible{outline:3px solid rgba(242,84,27,.28);outline-offset:2px;}
html.success-page body.track-page .acc-left{display:flex;align-items:baseline;gap:10px;flex:1 1 auto;min-width:0;flex-wrap:nowrap;}
html.success-page body.track-page .caret{flex:0 0 auto;transition:transform .18s ease;}
html.success-page body.track-page .acc-item.open .caret{transform:rotate(90deg);}
html.success-page body.track-page .acc-ref{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60vw;}
html.success-page body.track-page .acc-date,
html.success-page body.track-page .acc-left .pill{white-space:nowrap;}
html.success-page body.track-page .acc-amount{flex:0 0 auto;white-space:nowrap;margin-left:12px;font-weight:800;}
html.success-page body.track-page .acc-body{display:none;padding:0 14px 14px;}
html.success-page body.track-page .acc-item.open .acc-body{display:block;}

/* -- boutons / détails / mini-table -- */
html.success-page body.track-page .btns-inline{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0;}
html.success-page body.track-page .action-btn{
  display:inline-flex;align-items:center;gap:.5rem;padding:.55rem .8rem;border-radius:0;border:1px solid var(--border);
  text-decoration:none;line-height:1;white-space:nowrap;
}
html.success-page body.track-page .action-btn--black{background:#111;color:#fff;border-color:#111;}
html.success-page body.track-page .action-btn--black:hover{background:var(--brand-orange);border-color:var(--brand-orange);color:#fff;transform:translateY(-1px);}
html.success-page body.track-page .btn-mini{padding:.35rem .6rem;border-radius:0;border:1px solid #ddd;background:#fff;cursor:pointer;}
html.success-page body.track-page .btn-mini:hover{border-color:var(--brand-orange);color:var(--brand-orange);}

html.success-page body.track-page .detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:10px;}
html.success-page body.track-page .addr{padding:8px 10px;background:#fafafa;border:1px solid #ededed;border-radius:0;white-space:pre-wrap;}
html.success-page body.track-page .mini-table-wrap{width:100%;overflow-x:auto;}
html.success-page body.track-page .mini-table{width:720px;max-width:100%;border-collapse:collapse;margin-top:6px;font-size:.95rem;table-layout:fixed;}
html.success-page body.track-page .mini-table th,
html.success-page body.track-page .mini-table td{border-bottom:1px solid #eee;padding:10px 6px;vertical-align:top;}
html.success-page body.track-page .mini-table thead th{color:#4a4a4a;font-weight:800;position:sticky;top:0;background:#fff;z-index:1;}
html.success-page body.track-page .mini-table th:nth-child(1),
html.success-page body.track-page .mini-table td:nth-child(1){width:62%;word-break:break-word;}
html.success-page body.track-page .mini-table th:nth-child(2),
html.success-page body.track-page .mini-table td:nth-child(2){width:12%;text-align:center;}
html.success-page body.track-page .mini-table th:nth-child(3),
html.success-page body.track-page .mini-table td:nth-child(3){width:26%;text-align:right;white-space:nowrap;}

/* -- responsive tracking -- */
@media (max-width: 540px){
  html.success-page body.track-page .wrap{padding: var(--track-gap-top) 12px 20px;justify-items:center;}
  html.success-page body.track-page .success-card{width:min(100%, 820px) !important;margin-inline:auto;justify-self:center;padding:18px 14px;}
  html.success-page body.track-page .detail-grid{grid-template-columns:1fr;}
}
@media (max-width: 480px){
  html.success-page body.track-page .acc-head{align-items:flex-start;}
  html.success-page body.track-page .acc-left{flex-wrap:wrap;gap:6px 10px;min-width:0;}
  html.success-page body.track-page .acc-ref{max-width:58vw;}
  html.success-page body.track-page .acc-amount{margin-left:auto;align-self:center;padding-left:6px;}
  html.success-page body.track-page .acc-left .acc-date,
  html.success-page body.track-page .acc-left .pill{order:2;flex-basis:100%;line-height:1.1;}
  html.success-page body.track-page .pill{font-size:.78rem;padding:.22rem .5rem;}
}
@media (max-width: 360px){
  html.success-page body.track-page .acc-ref{max-width:54vw;}
  html.success-page body.track-page .acc-amount{font-size:.95rem;}
}


/* =====================================================================
   15) PRÉBOOT (anti-flicker avant init JS)
   ===================================================================== */

body.preboot #codeSection,
body.preboot #videoBg,
body.preboot #videoOverlay,
body.preboot #mainHeader,
body.preboot #catalogueSection {
  display: none !important;
  visibility: hidden !important;
}
body.preboot {
  background: #000;
  overflow: hidden;
}

/* ✅ FIX MOBILE : le tap doit rester un tap (sinon iOS avale le click) */
.product .img-wrap.zoomable{
  touch-action: manipulation;          /* favorise le tap */
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ✅ Quand c'est zoomé : on bloque le scroll/gestes qui cassent le click */
.product .img-wrap.zoomable.zoomed{
  touch-action: none;                  /* laisse JS gérer pan + tap */
}

/* ✅ Evite le “rubber band” iOS qui flingue les interactions */
.product.zoom-card{
  overscroll-behavior: contain;
}


/* ============================================================
   FIX MOBILE — Empêcher le scroll horizontal (glissade gauche/droite)
   ============================================================ */
html, body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;              /* coupe le débordement */
  overscroll-behavior-x:none;     /* coupe le bounce horizontal (navigateurs compatibles) */
}

/* iOS/Android : autorise le scroll vertical, limite les gestes horizontaux */
body{
  position:relative;
  touch-action: pan-y;
}

/* Sécurise les gros overlays/fixed (évite 1-2px de dépassement) */
#videoBg, #videoOverlay,
#backdrop, #orderModalBg,
.doors, #cartPanel{
  max-width:100%;
}

/* (optionnel mais utile sur Safari iOS) */
#cartPanel{
  overflow-x:hidden;
}
/* === Patch discret : bouton Payer toujours visible sur mobile === */
#cartPanel{
  height: 100dvh;                     /* tient compte des barres d’UI */
  overflow-y: auto;                   /* le panel scrolle, pas la liste */
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(20px + env(safe-area-inset-bottom)); /* espace sous le bouton */
}

#cartList{
  overflow: visible;                  /* on laisse le scroll au panel */
  padding-bottom: 0;                  /* plus besoin du faux espace */
}

#cartPay{
  position: sticky;                   /* colle en bas du panel */
  bottom: env(safe-area-inset-bottom);
  z-index: 1;                         /* au-dessus du contenu */
}

/* bonus léger: garde le total + bouton lisibles quand la liste passe derrière */
#cartTotal{
  background: #fff;
}

/* === Partner badge : version compacte sur mobile === */
@media (max-width: 430px){
  .partner-badge{
    padding: .56rem .9rem;
    font-size: .82rem;
    letter-spacing: .2px;
    border-width: 1px;
    gap: .4rem;
  }
  .partner-badge::before{
    width: .38rem;
    height: .38rem;
  }
  /* titre + badge sur une ligne, puis wrap propre si besoin */
  #catalogueSection h1{
    display:flex; align-items:center; gap:.5rem; flex-wrap:wrap;
    font-size: 1.05rem;
  }
}

/* encore plus compact sur très petits écrans */
@media (max-width: 360px){
  .partner-badge{
    padding: .45rem .7rem;
    font-size: .75rem;
    gap: .35rem;
  }
  .partner-badge::before{
    width: .34rem;
    height: .34rem;
  }
}

@media (prefers-reduced-motion: reduce){
  #videoBg{ display:none !important; }
  #videoOverlay{ background:transparent !important; }
}
