:root{
  --bg:#fafafa;
  --card:#fff;
  --line:#eaeaea;
  --txt:#111;
  --muted:#666;

  --brand:#111;
  --offerBg:#f8fafc;
  --offerLine:#e0e7ff;
  --offerDash:#c7d2fe;
}

*,
*::before,
*::after{ box-sizing:border-box; }

html, body{ height:100%; }

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:var(--bg);
  color:var(--txt);
}

a{ color:inherit; }

/* =========================
   LAYOUT
========================= */
.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:18px;
  padding-bottom:92px; /* laisse la place au sticky bottom */
}

/* =========================
   HEADER STICKY (logo + titre + contact)
========================= */
.siteHeader{
  position:sticky;
  top:0;
  z-index:1000;
  background:#fff;
  border-bottom:1px solid var(--line);
  margin-bottom:18px;
}

.headerInner{
  max-width:1100px;
  margin:0 auto;
  padding:12px 18px;
  position:relative;              /* ✅ nécessaire */
  display:flex;                   /* ✅ plus simple que grid */
  align-items:center;
  justify-content:space-between;  /* logo à gauche / contact à droite */
  gap:6px;
}

/* Logo */
.headerLogo img{
  height:84px;
  width:auto;
  display:block;
}

/* ✅ Titre vraiment centré dans la page */
.headerTitle{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  text-align:center;
  max-width:640px;
  width:calc(100% - 220px); /* évite chevauchement logo/contact */
  pointer-events:none;      /* le titre ne “bloque” pas les clics */
}

.headerTitle .pageTitle{
  margin:0;
  font-size:22px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.headerTitle .hint{
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}

/* Contact */
.headerContact{
  text-align:right;
  font-size:13px;
  line-height:1.25;
  color:#111;
  white-space:nowrap;
}

/* Mobile : on repasse en colonne */
@media (max-width:768px){
  .headerInner{
    flex-direction:column;
    align-items:center;
  }

  .headerTitle{
    position:static;
    transform:none;
    width:100%;
    pointer-events:auto;
  }

  .headerContact{
    text-align:center;
    white-space:normal;
  }

  .headerLogo img{
    height:40px;
  }
}

/* =========================
   ALERTS
========================= */
.alert{ padding:12px 14px; border-radius:14px; margin:12px 0; }
.err{ background:#ffecec; border:1px solid #ffc8c8; }
.ok{ background:#ecfff1; border:1px solid #bff0cc; }

/* =========================
   TITRES DE SECTION (hors card)
========================= */
.sectionTitle{
  margin:68px 0 26px;
  text-align:center;
  font-size:28px;
  font-weight:200;
  letter-spacing:.2px;
  text-transform:uppercase;
}

/* =========================
   CARDS
========================= */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  box-shadow:0 2px 10px rgba(0,0,0,.04);
}
.card + .card{ margin-top:20px; }

.blockTitle{
  margin:0 0 10px;
  font-size:16px;
  font-weight:800;
}

.blockTitle-center{
  text-align:center;
  font-size:20px;
  font-weight:700; /* plus fin */
  letter-spacing:.4px;
}

/* =========================
   FORM GRID
========================= */
.grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:14px; /* avant 12 */
}
.grid > div{ min-width:0; }

label{ display:block; font-size:13px; color:var(--muted); margin:0 0 6px; }

input[type="text"],
input[type="email"],
textarea{
  width:100%;
  max-width:100%;
  padding:10px 12px;
  border:1px solid #dcdcdc;
  border-radius:12px;
  font-size:15px;
  background:#fff;
}
textarea{ min-height:64px; resize:vertical; }

@media (max-width:820px){
  .grid{ grid-template-columns:1fr; }
}

/* =========================
   CONDITIONS (2 colonnes)
========================= */
.condGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px; /* avant 14 */
  margin-top:10px;
}

.condTitle{
  text-align:center;
  font-size:16px;
  font-weight:500;
  margin:0 0 10px;
  color:#111;
}

.conditions{
  white-space:pre-line;
  background:#fff;
  border:1px dashed #d8d8d8;
  border-radius:16px;
  padding:14px 16px; /* avant 12 14 */
  color:#222;
  line-height:1.45;
  font-size:14px;
}
.conditions b{ font-weight:900; }

.condBox-offer{
  background:var(--offerBg);
  border:1px solid var(--offerLine);
  border-radius:16px;
  padding:14px;
}
.condBox-offer .conditions{
  background:transparent;
  border:1px dashed var(--offerDash);
}

@media (max-width:820px){
  .condGrid{ grid-template-columns:1fr; }
}

/* =========================
   SECTIONS + BANNER
========================= */
.sectionCard{ margin-top:14px; }

.sectionHead{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.sectionHead h2{ margin:0; font-size:18px; }

.sectionDesc{
  margin:0 0 12px;
  text-align:center;
  color:var(--muted);
  font-size:14px;
  line-height:1.35;
}

.bannerWrap{ margin:10px 0 12px; }
.banner{
  width:100%;
  object-fit:cover;
  border-radius:16px;
  border:1px solid var(--line);
  background:#f1f1f1;
}
@media (max-width:820px){
  .banner{ max-height:140px; }
}

/* =========================
   TABLE DESKTOP
========================= */
.tableWrap{ overflow:visible; }

.orderTable{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
}

.orderTable th,
.orderTable td{
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  vertical-align:middle;
  white-space:nowrap;
}
.orderTable th{
  background:#f4f4f4;
  text-align:left;
  font-weight:700;
  font-size:13px;
}
.orderTable tr:last-child td{ border-bottom:none; }

/* image desktop (qualité) */
.imgZoomWrap{
  display:inline-block;
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
}
.img{
  width:90px;
  height:90px;
  display:block;
  object-fit:contain;
  object-position:center;
  transform:translateZ(0);
  transition:transform .18s ease, filter .18s ease;
  image-rendering:auto;
}
.imgPlaceholder{
  width:90px;
  height:90px;
  border-radius:12px;
  background:#f1f1f1;
}

@media (hover:hover) and (pointer:fine){
  .imgZoomWrap:hover .img{
    transform:scale(1.08);
    filter:saturate(1.03) contrast(1.02);
    cursor:zoom-in;
  }
}

.ref{
  font-weight:900;
  font-size:16px;
  letter-spacing:.2px;
  white-space:nowrap;
}

.desi{ white-space:normal; min-width:280px; }
.price{ font-weight:800; }
.unitPrice{ font-weight:900; }

.qty{
  width:110px;
  max-width:110px;
  padding:10px 12px;
  border:1px solid #dcdcdc;
  border-radius:14px;
  font-size:16px;
  font-weight:800;
  text-align:center;
}

/* Badge */
.badge-ideal{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 10px;
  font-size:12px;
  font-weight:800;
  border-radius:999px;
  background:#eef2ff;
  color:#1e40af;
  border:1px solid #c7d2fe;
  line-height:1;
  white-space:nowrap;
}
.badge-desktop{ margin-left:10px; }
.badge-mobile{ display:none; }

.refCell .refTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

/* =========================
   MOBILE “CARDS”
========================= */
@media (max-width:820px){
  .orderTable thead{ display:none; }

  .orderTable,
  .orderTable tbody,
  .orderTable tr,
  .orderTable td{
    display:block;
    width:100%;
  }

  .orderTable{ border:none; background:transparent; overflow:visible; }
  .orderTable tbody{ display:flex; flex-direction:column; gap:12px; }

  .orderRow{
    border:1px solid var(--line);
    background:#fff;
    border-radius:18px;
    padding:12px;
    box-shadow:0 2px 10px rgba(0,0,0,.04);

    display:grid;
    grid-template-columns:88px 1fr;
    grid-template-rows:auto auto auto;
    grid-template-areas:
      "img ref"
      "img des"
      "img bottom";
    gap:8px 12px;
    align-items:start;
  }

  .orderTable td{
    border:none !important;
    padding:0 !important;
    white-space:normal;
  }

  .colImg{ grid-area:img; }
  .imgZoomWrap{ border-radius:18px; }
  .img, .imgPlaceholder{
    width:78px;
    height:78px;
    border-radius:18px;
  }

  .refCell{ grid-area:ref; }
  .refCell .refTop{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    flex-wrap:nowrap;
  }
  .ref{
    font-size:22px;
    font-weight:900;
    line-height:1.05;
    flex:1 1 auto;
    min-width:0;
  }

  .badge-mobile{ display:inline-flex; flex:0 0 auto; }
  .badge-desktop{ display:none; }

  .desi{
    grid-area:des;
    min-width:0;
    font-size:14px;
    line-height:1.25;
    color:#111;
  }

  .price{ grid-area:bottom; }
  .qtyCell{ grid-area:bottom; }

  .price{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    font-size:22px;
    font-weight:900;
    line-height:1;
  }

  .qtyCell{ justify-self:end; }

  .qty{
    width:132px;
    max-width:132px;
    padding:12px 12px;
    border-radius:16px;
    font-size:18px;
    font-weight:900;
    text-align:center;
  }
}

/* =========================
   SUMMARY
========================= */
.summaryCard{
  margin-top:14px;
  padding:14px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
}
.summaryRow{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:8px 0;
}
.summaryLabel{ color:var(--muted); font-size:13px; }
.summaryValue{ font-weight:900; text-align:right; }
.summaryDivider{ height:1px; background:var(--line); margin:10px 0; }
.summaryTotal .summaryLabel{ color:#111; font-size:14px; }
.summaryTotal .summaryValue{ font-size:18px; font-weight:900; }
.summaryGift .summaryValue{ font-weight:700; color:#111; max-width:70%; }

/* =========================
   CTA BAR (dans la page)
========================= */
.bar{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  margin-top:14px;
  flex-wrap:wrap;
}

.btn{
  background:#111;
  color:#fff;
  border:0;
  border-radius:14px;
  padding:12px 16px;
  font-weight:900;
  cursor:pointer;
}
.btn:active{ transform:translateY(1px); }

.note{ color:var(--muted); font-size:13px; }

/* =========================
   STICKY BOTTOM (base)
========================= */
.stickyBottom{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:1200;
  background:#111;
  color:#fff;
  border-top:1px solid rgba(255,255,255,.12);
}

.stickyBottomInner{
  max-width:1100px;
  margin:0 auto;
  padding:10px 18px;
  font-size:13px;
}

.miniTotal{
  font-weight:900;
  white-space:nowrap;
}

/* bouton sticky */
.btnSticky{
  padding:10px 14px;
  border-radius:12px;
  background:#fff;
  color:#111;
  font-weight:900;
  border:0;
  cursor:pointer;
  width:auto;
  white-space:nowrap;
}

/* =========================
   STICKY BOTTOM CART (total + milestones + bouton)
   ✅ version stable: GRID (pas de flex qui écrase)
========================= */
.stickyBottomCart .stickyBottomInner{
  position:relative;
  display:grid;
  grid-template-columns: auto 1fr auto; /* total | centre | bouton */
  align-items:center;
  gap:14px;
}

.stickyBottomCart .stickyCenter{
  justify-self:center;
  text-align:center;
  line-height:1.15;
  padding:4px 8px;
  min-width:0;
}

.stickyBottomCart .milestoneText{
  color:#ffd54a; /* jaune */
  font-weight:900;
  font-size:13px;
  letter-spacing:.2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.stickyBottomCart .milestoneNext{
  color:rgba(255,255,255,.85);
  font-weight:700;
  font-size:11px;
  margin-top:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.stickyBottomCart .milestoneFx{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:2;
  opacity:0;
}
.stickyBottomCart .milestoneFx.is-on{ opacity:1; }

/* bouton : jamais full width sur desktop */
.stickyBottomCart .btnSticky{
  justify-self:end;
  width:auto !important;
  min-width:220px;
  padding:12px 22px;
}

/* Mobile : empile et bouton full width */
@media (max-width:820px){
  .stickyBottomCart .stickyBottomInner{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap:8px;
    text-align:center;
  }

  .stickyBottomCart .miniTotal{ justify-self:center; }
  .stickyBottomCart .stickyCenter{ justify-self:center; }

  .stickyBottomCart .btnSticky{
    justify-self:stretch;
    min-width:0;
    width:100% !important;
  }

  .stickyBottomCart .milestoneText,
  .stickyBottomCart .milestoneNext{
    white-space:normal;
  }
}

/* =========================
   LIGHTBOX
========================= */
.imgLightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.72);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:18px;
}
.imgLightbox.is-open{ display:flex; }

.imgLightboxInner{
  position:relative;
  max-width:min(960px, 96vw);
  max-height:88vh;
}
.imgLightboxInner img{
  width:auto;
  height:auto;
  max-width:100%;
  max-height:88vh;
  border-radius:18px;
  box-shadow:0 12px 40px rgba(0,0,0,.35);
  background:#fff;
}

.imgLightboxClose{
  position:absolute;
  top:-12px;
  right:-12px;
  width:40px;
  height:40px;
  border-radius:999px;
  border:0;
  background:#fff;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,.22);
}

/* ===== Sticky Bottom ===== */
.stickyBottom{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:1200;
  background:#111;
  color:#fff;
  border-top:1px solid rgba(255,255,255,.12);
}

.stickyBottomCart .stickyBottomInner{
  max-width:1100px;
  margin:0 auto;
  padding:10px 18px;

  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:14px;
}

.miniTotal{
  font-weight:900;
  white-space:nowrap;
}

/* centre */
.stickyCenter{
  position:relative;
  justify-self:center;
  text-align:center;
  line-height:1.15;
  padding:4px 8px;
  min-width:260px; /* évite que ça se tasse trop */
}

/* ligne milestone + lien */
.stickyCenterTop{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}

.milestoneText{
  color:#ffd54a;
  font-weight:900;
  font-size:13px;
  letter-spacing:.2px;
}

.milestoneNext{
  color:rgba(255,255,255,.85);
  font-weight:700;
  font-size:11px;
  margin-top:2px;
}

/* lien "voir mes avantages" */
.btnLinkSticky{
  background:transparent;
  border:0;
  color:#ffd54a;
  font-weight:900;
  cursor:pointer;
  padding:6px 10px;
  border-radius:10px;
  white-space:nowrap;
}
.btnLinkSticky:hover{
  background:rgba(255,255,255,.08);
}

/* bouton submit */
.btnSticky{
  width:auto;
  min-width:220px;
  padding:12px 22px;
  border-radius:14px;
  background:#fff;
  color:#111;
  font-weight:900;
  border:0;
  white-space:nowrap;
  cursor:pointer;
}

/* canvas FX, n'impacte pas le layout */
.milestoneFx{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:2;
  opacity:0;
}
.milestoneFx.is-on{ opacity:1; }

/* Mobile: on compacte */
@media (max-width: 680px){
  .stickyBottomCart .stickyBottomInner{
    grid-template-columns: 1fr;
    gap:8px;
    text-align:center;
  }

  .miniTotal{ justify-self:center; }
  .stickyCenter{ min-width:0; }
  .btnSticky{
    min-width:0;
    width:100%;
  }
}



/* ===== Popup Avantages ===== */
.advModal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.72);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9998;
  padding:18px;
}

.advModal.is-open{ display:flex; }

.advModalInner{
  position:relative;
  width:min(860px, 96vw);
  max-height:88vh;
  overflow:auto;
  background:#fff;
  border-radius:18px;
  box-shadow:0 12px 40px rgba(0,0,0,.35);
  padding:18px;
}

.advClose{
  position:sticky;
  top:0;
  float:right;
  width:40px;
  height:40px;
  border-radius:999px;
  border:0;
  background:#111;
  color:#fff;
  font-weight:900;
  cursor:pointer;
}

/* ===== Bandeau audio inline (sous header) ===== */
.helpInline{
  background:#fff7d1;
  border-bottom:1px solid #f1d787;
}

.helpInlineInner{
  max-width:1100px;
  margin:0 auto;
  padding:10px 18px;
  display:grid;
  grid-template-columns: 1fr minmax(260px, 380px) auto;
  align-items:center;
  gap:12px;
}

.helpInlineText{
  font-size:13px;
  line-height:1.25;
  color:#111;
}
.helpInlineText b{ font-weight:900; }

.helpInlineAudio{
  width:100%;
  height:34px; /* plus compact */
}

.helpInlineDetails summary{
  cursor:pointer;
  font-weight:900;
  font-size:12px;
  white-space:nowrap;
}

.helpInlineTranscript{
  margin-top:8px;
  font-size:13px;
  line-height:1.35;
}
.helpInlineTranscript p{ margin:0 0 6px; }

/* Mobile */
@media (max-width:820px){
  .helpInlineInner{
    grid-template-columns:1fr;
    align-items:stretch;
  }
  .helpInlineDetails summary{
    white-space:normal;
  }
}



/* =========================
   AIDE INLINE (sous header)
========================= */
.helpInline{
  background:#fff;
  border-bottom:1px solid var(--line);
}

.helpInlineInner{
  max-width:1100px;
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
  text-align:center;
}

.helpInlineText{
  font-size:14px;
  line-height:1.35;
  color:#111;
}

.helpInlineText span{
  display:block;
  color:var(--muted);
  font-size:13px;
  margin-top:2px;
}

.helpInlineAudio{
  max-width:260px;
  width:100%;
}

.helpInlineDetails{
  width:100%;
  max-width:640px;
  margin-top:6px;
}

.helpInlineDetails summary{
  cursor:pointer;
  font-size:13px;
  font-weight:700;
  color:#111;
}

.helpInlineTranscript{
  margin-top:10px;
  padding:14px 16px;
  background:#fafafa;
  border:1px dashed var(--line);
  border-radius:14px;
  text-align:left;
  font-size:14px;
  line-height:1.45;
  color:#222;
}

.helpInlineTranscript p{
  margin:0 0 10px;
}

.helpInlineTranscript p:last-child{
  margin-bottom:0;
}

/* Mobile */
@media (max-width:768px){
  .helpInlineInner{
    gap:12px;
  }

  .helpInlineAudio{
    max-width:100%;
  }
}

.toast{
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 12px;
  z-index: 99999;
}

.toast.is-open{ display: flex; }

.toast::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}

.toastInner{
  position: relative;
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}

.toastTitle{
  font-weight: 800;
  margin-bottom: 6px;
}

.toastMsg{
  font-size: 14px;
  line-height: 1.35;
  opacity: .95;
}

.toastActions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.toastBtn{
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  background: #111;
  color: #fff;
  font-weight: 700;
}

.toastBtnGhost{
  background: #eee;
  color: #111;
}

/* ============================= */
/* OFFRE SPÉCIALE                */
/* ============================= */

.offerBlock {
  margin: 40px 0 60px;
  padding: 24px 32px 36px;               /* ✅ ajusté (plus clean, moins “gros”) */
  border-radius: 16px;
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
  border: 2px solid #f2c2c2;
}

.offerBlockHead {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;                   /* ✅ resserré pour mieux “lier” au titre */
}

.offerBadge {
  display: inline-block;
  width: fit-content;
  background: #e63946;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 10px rgba(230, 57, 70, 0.25); /* ✅ léger relief */
}

.offerSub {
  font-size: 14px;                       /* ✅ un poil plus discret */
  color: #777;                           /* ✅ plus doux */
  font-style: italic;                    /* ✅ “guidance” subtile */
}

.offerBlock .sectionTitle {
  color: #b5172e;
  font-weight: 700;
  font-size: 28px;                       /* ✅ plus “campagne” */
  letter-spacing: 0.4px;                 /* ✅ plus premium */
  margin-top: 8px;                       /* ✅ équilibre visuel avec le head */
}

.offerBlock .sectionDesc {
  font-size: 15px;                       /* ✅ lisible sans prendre trop de place */
  color: #666;
  margin-top: 6px;
}

.offerBlock .sectionCard {
  border: 2px solid #f2c2c2;
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.08);
}


/* ============================= */
/* CATALOGUE PERMANENT           */
/* ============================= */

.catalogDivider {
  margin: 80px 0 32px;
  padding-top: 32px;
  border-top: 2px dashed #ddd;
  text-align: center;
}

.catalogDivider h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.catalogDivider p {
  font-size: 14px;
  color: #666;
}

.catalogDivider + .sectionTitle {
  margin-top: 24px;
}

.sectionCard {
  background: #fff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}


.bannerTitle{
  text-align: center;
  text-transform: uppercase;
}


