/* ===============================
   PRODUIT — MOBILE (≤980px)
   Scope: .ebp-* uniquement
   Typo agrandie + overrides sûrs
   =============================== */

.ebp-product{
  --brand:#2E8BC0; --brand-2:#49a6db; --ink:#0f172a; --muted:#667085;
  --border:rgba(16,24,40,.12); --ring:rgba(46,139,192,.22);
  --ok:#16a34a; --err:#b42318;

  /* Base lisible + neutralise zoom iOS */
  font-size:16px !important;
  line-height:1.45;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;

  /* léger recul pour ne pas coller aux bords */
  padding-inline:16px;
  box-sizing:border-box;
}

/* Conteneurs internes centrés */
.ebp-hero, .ebp-packs, .ebp-pricebox, .ebp-form{
  margin-inline:auto;
  padding-inline:12px;
  box-sizing:border-box;
}

/* ---- Hero ---- */
.ebp-hero{ margin-bottom:.9rem; }
.ebp-title{
  margin:0 0 .3rem;
  font-weight:900;
  letter-spacing:.2px;
  color:var(--ink);
  font-size:clamp(1.7rem, 5.4vw, 2rem) !important;  /* + grand, constant */
  line-height:1.15;
  text-align:center;
}
.ebp-title::after{
  content:"";
  display:block;
  width:72px; height:4px;
  margin:.5rem auto 0;
  border-radius:999px;
  background:linear-gradient(90deg,var(--brand),var(--brand-2));
  box-shadow:0 8px 22px rgba(46,139,192,.35);
}
.ebp-subtitle{
  margin:.45rem 0 1.1rem;
  color:var(--muted);
  font-size:clamp(1.06rem, 3.8vw, 1.18rem) !important;
  text-align:center;
}

/* ---- Packs ---- */
.ebp-packs{
  margin:1rem 0 1.25rem;
  background:linear-gradient(180deg,#fbfdff,#f7f9fc);
  border-radius:12px;
  padding-block:8px;
}
.ebp-packs-title{
  margin:0 0 12px; font-weight:800; letter-spacing:.2px; color:#0f172a;
  font-size:clamp(1.32rem, 4.4vw, 1.45rem) !important;
  text-align:center;
}

.ebp-packs-grid{ display:grid; grid-template-columns:1fr; gap:.95rem; }
.ebp-pack{ position:relative; display:block; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.ebp-pack-media{ aspect-ratio:16/10; background:linear-gradient(180deg,#eef6ff,#e6eef8); overflow:hidden; }
.ebp-pack-media img{ width:100%; height:100%; object-fit:cover; transform:scale(1.02); transition:transform .35s ease; }
.ebp-pack:hover .ebp-pack-media img{ transform:scale(1.06); }

.ebp-pack-body{
  background:#fff;
  border:1px solid var(--border);
  border-top:0;
  border-radius:0 0 16px 16px;
  box-shadow:0 10px 24px rgba(16,24,40,.06), 0 1px 0 rgba(255,255,255,.6) inset;
  padding:1rem;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ebp-pack:hover .ebp-pack-body{
  transform:translateY(-2px);
  border-color:rgba(46,139,192,.28);
  box-shadow:0 16px 34px rgba(16,24,40,.12), 0 0 0 3px var(--ring);
}

.ebp-pack-name{
  margin:.2rem 0 .55rem; color:#0f172a; font-weight:900;
  font-size:clamp(1.22rem, 4.8vw, 1.32rem) !important;
}
.ebp-pack-points{
  margin:0 0 .85rem; padding:0; list-style:none; color:var(--muted);
  line-height:1.42;
  font-size:clamp(1.02rem, 3.8vw, 1.12rem) !important;
}
.ebp-pack-points li{ position:relative; padding-left:24px; margin-bottom:.44rem; }
.ebp-pack-points li::before{ content:"✓"; position:absolute; left:0; top:0; line-height:1; color:var(--brand); font-weight:900; }

.ebp-pack-price{ display:flex; align-items:baseline; gap:.6rem; }
.ebp-amount{
  font-weight:900;
  font-size:clamp(1.36rem, 5.2vw, 1.5rem) !important;
  background:linear-gradient(90deg,#0f172a,#334155);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.ebp-note{ font-size:clamp(1rem, 3.6vw, 1.08rem) !important; color:var(--muted); }

/* Badge "Meilleur prix" */
.ebp-pack .ebp-badge{
  position:absolute; top:.6rem; right:.6rem; z-index:2;
  font-size:.78rem !important; font-weight:800; letter-spacing:.2px; color:#0b1620;
  background:linear-gradient(90deg,#9be3ff,#d5f0ff);
  padding:.4rem .66rem; border-radius:999px;
  box-shadow:0 8px 20px rgba(73,166,219,.35);
}

/* ---- Boutons (pleine largeur) ---- */
.ebp-btn{
  display:inline-block; width:100%; text-align:center;
  margin-top:.85rem; padding:.9rem 1.05rem;
  border-radius:12px; font-weight:900; text-decoration:none; border:0; cursor:pointer;
  transition:transform .12s ease, box-shadow .18s ease;
  font-size:clamp(1.06rem, 3.8vw, 1.14rem) !important;
}
.ebp-btn--primary{
  background:linear-gradient(90deg,var(--brand),var(--brand-2)); color:#06121b;
  box-shadow:0 10px 26px rgba(46,139,192,.35);
}
.ebp-btn--primary:hover{ transform:translateY(-1px); }
.ebp-btn--primary:focus-visible{ outline:3px solid var(--ring); outline-offset:2px; box-shadow:0 0 0 4px rgba(46,139,192,.16); }
.ebp-btn--whatsapp{ border:1px solid rgba(22,163,74,.32); background:rgba(22,163,74,.06); color:#086d3b; font-weight:800; }

/* ---- Price box ---- */
.ebp-pricebox{
  margin:14px 0 16px; background:#fff; border:1px solid var(--border);
  border-radius:14px; padding:14px 16px; box-shadow:0 8px 22px rgba(16,24,40,.06);
}
.ebp-pricebox[hidden]{ display:none !important; }
.ebp-price-row{ display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.ebp-price-label{ color:#334155; font-weight:700; font-size:1.06rem !important; }
.ebp-price-value{ font-size:1.26rem !important; font-weight:900; color:#0b1324; }
.ebp-price-badge{ display:inline-block; padding:.32rem .6rem; border-radius:999px; background:rgba(46,139,192,.1); color:#0b2a3a; font-weight:700; font-size:1rem !important; }
.ebp-price-savings{ color:#067647; font-weight:700; font-size:1.06rem !important; }

/* ---- Formulaire (1 colonne) ---- */
.ebp-form{
  margin-top:12px; background:#fff; border:1px solid var(--border);
  border-radius:16px; padding:16px; box-shadow:0 12px 26px rgba(16,24,40,.06);
  display:grid; grid-template-columns:1fr; gap:1rem;
}

/* >>> Correctifs anti-conflit avec l'ancien CSS global */
.ebp-form .ebp-label{
  font-weight:800 !important;
  color:#1f2937 !important;
  margin-bottom:.35rem !important;
  display:block !important;
  text-transform:none !important;
  letter-spacing:.15px !important;
  font-size:16px !important;            /* **plus grand et fixé** */
}
.ebp-form .ebp-input,
.ebp-form .ebp-select,
.ebp-form .ebp-textarea{
  width:100% !important;
  border:1px solid rgba(16,24,40,.16) !important;
  border-radius:12px !important;
  padding:.9rem 1rem !important;
  background:#fff !important;
  color:#0f172a !important;
  font-weight:600 !important;
  font-size:16px !important;            /* **évite micro-polices héritées** */
  line-height:1.25 !important;
}
.ebp-form .ebp-input::placeholder,
.ebp-form .ebp-textarea::placeholder{
  color:#9aa7b4 !important;
  font-weight:500 !important;
  font-size:15px !important;
}
.ebp-form .ebp-input:focus,
.ebp-form .ebp-select:focus,
.ebp-form .ebp-textarea:focus{
  outline:none !important;
  border-color:rgba(46,139,192,.55) !important;
  box-shadow:0 0 0 4px rgba(46,139,192,.16) !important;
  background:#fbfeff !important;
}
.ebp-error{
  margin-top:.25rem !important;
  min-height:1.1em !important;
  font-size:1rem !important;
  color:var(--err) !important;
  font-weight:700 !important;
}

.ebp-actions{
  display:grid; grid-template-columns:1fr; gap:.9rem; margin-top:.25rem;
}

/* surlignage doux en cas d'erreur sur le select */
.ebp-select--invalid{
  border-color:#b42318 !important;
  box-shadow:0 0 0 4px rgba(180,35,24,.16) !important;
}

