/* ============================================================
   ANNATEL — design premium épuré (style Apple) · magenta / blanc / noir
   ============================================================ */
:root {
  --rose:        #ec0a87;
  --rose-dark:   #c70873;
  --rose-soft:   #fdeef6;
  --ink:         #111113;
  --ink-soft:    #6b6b70;
  --ink-faint:   #9a9aa0;
  --white:       #ffffff;
  --bg:          #ffffff;
  --line:        #ececee;
  --line-soft:   #f0f0f2;
  --shadow:      0 1px 2px rgba(17,17,19,.03), 0 8px 24px rgba(17,17,19,.035);
  --shadow-hover:0 14px 40px rgba(17,17,19,.10);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, system-ui, 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
::selection { background: #fbd6ea; }
@keyframes annRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Barre de navigation ---------- */
header.nav {
  flex: 0 0 auto;
  position: sticky; top: 0;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 34px;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
  z-index: 20;
}
.nav-left { display: flex; align-items: center; gap: 18px; }
.nav-left img { height: 22px; display: block; }
.nav-left .sep { width: 1px; height: 22px; background: #e6e6e9; }
.nav-left .tag { font-size: 14px; font-weight: 500; color: #86868b; letter-spacing: -0.01em; }
.nav-right { font-size: 13px; font-weight: 500; color: #a6a6ac; letter-spacing: -0.01em; }

/* Co-brand campagne (annatel × partenaire) */
.cobrand { display: inline-flex; align-items: center; gap: 13px; }
.cobrand:empty { display: none; }
.cobrand-x { display: inline-flex; color: #c0c0c8; }
.cobrand-x svg { width: 23px; height: 23px; display: block; }
.cobrand-logo { height: 44px; display: block; }

/* Bandeau de campagne sous la nav */
.campaign-banner {
  flex: 0 0 auto; text-align: center;
  background: var(--ink); color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: -0.01em;
  padding: 9px 16px;
}

/* Note d'économie (mois offerts) dans le récap */
.campaign-note {
  margin-top: 13px; display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.4;
  background: linear-gradient(135deg, #fff4fa, #ffe9f4);
  border: 1px solid var(--rose-soft); padding: 11px 13px; border-radius: 12px;
}
.campaign-note .cn-gift { font-size: 18px; flex: 0 0 auto; }
.campaign-note b { font-weight: 800; color: var(--rose); }
.nav-back {
  display: none; align-items: center; gap: 5px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--rose);
  background: none; border: none; font-family: var(--font); padding: 0;
}
.nav-back:hover { color: var(--rose-dark); }
body.in-sim .nav-back { display: none; }   /* plus de navigation par catégorie : on arrive direct en Combinaisons */

/* ---------- Accueil ---------- */
.home {
  flex: 1 1 auto; min-height: 0; overflow: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 56px 24px; text-align: center;
}
body.in-sim .home { display: none; }
.home-hero { max-width: 780px; animation: annRise .5s cubic-bezier(.22,1,.36,1) both; }
.home-hero .overline { font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose); margin-bottom: 20px; }
.home-hero h2 { font-size: 46px; line-height: 1.04; font-weight: 800; letter-spacing: -0.04em; }
.home-hero p { font-size: 19px; color: var(--ink-soft); margin-top: 18px; font-weight: 500; line-height: 1.45; }
.home-grid {
  margin-top: 50px; display: grid; grid-template-columns: repeat(4, 212px);
  gap: 18px; max-width: 100%;
  animation: annRise .6s .06s cubic-bezier(.22,1,.36,1) both;
}
.home-card {
  background: var(--white); border-radius: 24px; padding: 32px 24px;
  box-shadow: 0 1px 2px rgba(17,17,19,.03), 0 10px 30px rgba(17,17,19,.04);
  border: 1px solid var(--line); cursor: pointer;
  transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s, border-color .28s;
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.home-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: #e2e2e6; }
.home-card .hc-icon {
  width: 64px; height: 64px; border-radius: 19px; display: grid; place-items: center;
  background: #f6f6f8; color: var(--ink);
}
.home-card .hc-icon svg { width: 27px; height: 27px; }
.home-card .hc-name { font-size: 19px; font-weight: 700; letter-spacing: -0.025em; }
.home-card .hc-desc { font-size: 13.5px; color: var(--ink-faint); font-weight: 500; line-height: 1.35; }
.home-card.featured { background: var(--ink); border-color: var(--ink); box-shadow: 0 10px 30px rgba(17,17,19,.18); }
.home-card.featured:hover { box-shadow: 0 18px 46px rgba(17,17,19,.28); border-color: var(--ink); }
.home-card.featured .hc-name { color: #fff; }
.home-card.featured .hc-desc { color: var(--ink-faint); }
.home-card.featured .hc-icon { background: rgba(255,255,255,.08); color: #ff52b2; }
.home-card.featured .hc-icon svg { width: 25px; height: 25px; }
@media (max-width: 980px) { .home-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Layout simulateur ---------- */
.wrap {
  flex: 1 1 auto; min-height: 0;
  display: grid; grid-template-columns: 1fr 376px; gap: 38px;
  padding: 30px 40px; max-width: 1460px; width: 100%; margin: 0 auto;
}
body:not(.in-sim) .wrap { display: none; }

main { min-height: 0; display: flex; flex-direction: column; }
.intro { margin-bottom: 24px; }
.intro h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.035em; }
.intro p  { color: var(--ink-soft); font-size: 15.5px; margin-top: 6px; font-weight: 500; }

/* ---------- Catégories ---------- */
.catalog {
  display: grid; gap: 34px; align-content: start;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.catalog.single { grid-template-columns: 1fr; max-width: 940px; margin: 0 auto; }
.category { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.category-head { display: flex; align-items: center; gap: 10px; padding: 0 4px 4px; }
.category-head .cat-ic { color: var(--rose); display: inline-flex; }
.category-head .cat-ic svg { width: 19px; height: 19px; }
.category-head h3 {
  font-size: 14px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft);
}
.catalog .cards { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.catalog.single .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .catalog.single .cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Carte produit ---------- */
.card {
  position: relative;
  background: var(--white); min-width: 0;
  border-radius: 20px; padding: 16px 16px 14px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s, transform .2s cubic-bezier(.22,1,.36,1);
  display: flex; flex-direction: column; gap: 12px;
}
.card:hover { transform: translateY(-2px); }
.card.active { border-color: var(--rose); box-shadow: 0 0 0 4px var(--rose-soft), 0 1px 2px rgba(17,17,19,.04); }

/* La carte s'agrandit uniquement quand la description est ouverte : la hauteur
   exacte (pour tout afficher sans scroll) est calculée en JS (style inline). */
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-top > div:first-child { min-width: 0; }
.card .name { font-size: 15.5px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.card .desc { font-size: 12.5px; color: var(--ink-faint); margin-top: 3px; line-height: 1.3; font-weight: 500; }
.card .price { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.card .price small { font-size: 10px; font-weight: 600; color: var(--ink-faint); display: block; letter-spacing: 0; }
.card .price .price-incl { font-size: 14px; color: var(--rose); font-weight: 800; letter-spacing: -0.02em; }
.card .promo {
  font-size: 11px; font-weight: 700; color: var(--rose);
  background: var(--rose-soft); padding: 4px 9px; border-radius: 8px;
  width: fit-content; line-height: 1.2;
}

/* Bouton "i" d'information à côté du nom */
.info-btn {
  display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 7px;
  border: none; border-radius: 50%; background: #ececef; color: var(--ink-soft);
  font-family: Georgia, 'Times New Roman', serif; font-size: 11px; font-weight: 700; font-style: italic;
  cursor: pointer; vertical-align: middle; line-height: 1; transition: background .15s, color .15s;
}
.info-btn:hover { background: var(--rose-soft); color: var(--rose); }

/* Couche de description (remplace le contenu de la carte au clic sur "i") */
.card-info {
  position: absolute; inset: 0; z-index: 5; cursor: pointer;
  background: var(--white); border-radius: 20px; padding: 16px;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 12px;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.card-info.show { opacity: 1; visibility: visible; }
.card-info .ci-list { display: flex; flex-direction: column; gap: 6px; }
.card-info .ci-li {
  position: relative; padding-left: 15px;
  font-size: 12px; line-height: 1.32; color: var(--ink-soft); font-weight: 500;
}
.card-info .ci-li::before {
  content: ''; position: absolute; left: 2px; top: 5px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--rose);
}
.card-info .ci-hint { margin-top: auto; padding-top: 4px; font-size: 10px; font-weight: 700; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Stepper ---------- */
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.stepper .lbl { font-size: 12.5px; color: var(--ink-faint); font-weight: 600; }
.stepper .controls { display: flex; align-items: center; gap: 10px; }
.step-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: #f3f3f5;
  font-size: 19px; font-weight: 500; color: var(--ink);
  cursor: pointer; display: grid; place-items: center;
  transition: background .15s, color .15s, transform .08s;
  user-select: none; line-height: 1; font-family: var(--font);
}
.step-btn:hover { background: #e9e9ec; }
.step-btn[data-act="inc"] { background: var(--rose); color: #fff; }
.step-btn[data-act="inc"]:hover { background: var(--rose-dark); }
.step-btn:active { transform: scale(.88); }
.step-btn:disabled { opacity: .35; cursor: not-allowed; }
.qty-val { min-width: 20px; text-align: center; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }

/* ---------- Sélecteur d'option (segmented control, ex. 50/300 Go) ---------- */
.opt-toggle { display: flex; gap: 2px; padding: 3px; background: #f3f3f5; border-radius: 11px; }
.opt-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid transparent; background: transparent; cursor: pointer; font-family: var(--font);
  font-size: 11.5px; font-weight: 700; color: var(--ink-soft); line-height: 1.1;
  padding: 6px; border-radius: 8px; transition: background .16s, color .16s, box-shadow .16s, border-color .16s;
}
.opt-btn span { font-size: 10px; font-weight: 600; color: var(--ink-faint); }
/* Liseré rose pâle sur la valeur choisie (data ET portabilité) */
.opt-btn.active { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(17,17,19,.10); border-color: rgba(236,10,135,.35); }
.opt-btn.active span { color: var(--rose); }

/* Options ligne par ligne (sous la carte) */
.line-opts { display: flex; flex-direction: column; gap: 11px; margin-top: 2px; }
.line-opt { display: flex; flex-direction: column; gap: 6px; }
.lo-head { font-size: 11px; font-weight: 800; color: var(--ink-soft); letter-spacing: -0.01em; }
.lo-row { display: flex; align-items: center; gap: 10px; }
.lo-row .lo-label { font-size: 11px; font-weight: 700; color: var(--ink-faint); flex: 0 0 auto; min-width: 66px; }
.lo-row .opt-toggle { flex: 1; }

/* ---------- Panneau récap ---------- */
aside { position: sticky; top: 84px; align-self: start; }
.summary {
  background: var(--white); border-radius: 26px;
  box-shadow: 0 1px 2px rgba(17,17,19,.03), 0 14px 40px rgba(17,17,19,.06);
  border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; width: 100%;
  min-height: 300px;
  max-height: calc(100vh - 100px); overflow-y: auto;   /* défile en bloc seulement si très long */
}
.summary-head { flex: 0 0 auto; padding: 22px 24px 16px; }
.summary-head h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.summary-head p  { font-size: 13px; color: var(--ink-faint); margin-top: 3px; font-weight: 600; }

.lines { padding: 2px 24px 6px; }
.line {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 12px 2px; border-bottom: 1px solid #f4f4f6;
}
.line:last-child { border-bottom: none; }
.line .l-name { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; }
.line .l-sub  { font-size: 11.5px; color: var(--ink-faint); margin-top: 3px; line-height: 1.35; font-weight: 500; }
.line .l-price { font-size: 14px; font-weight: 700; white-space: nowrap; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.empty { flex: 1 1 auto; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--ink-faint); font-size: 13.5px; padding: 44px 36px; gap: 16px; }
.empty .ic { width: 56px; height: 56px; border-radius: 17px; background: #f6f6f8; display: grid; place-items: center; color: #cdcdd3; }
.empty .txt { font-weight: 600; color: var(--ink-soft); max-width: 200px; }

.totals { flex: 0 0 auto; padding: 18px 24px; background: #fafafb; border-top: 1px solid var(--line-soft); }
.total-row { display: flex; align-items: baseline; justify-content: space-between; padding: 5px 0; }
.total-row .t-label { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.total-row .t-label b { color: var(--ink); font-weight: 700; }
.total-row .t-val { font-size: 13.5px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.total-row.main { padding-top: 13px; margin-top: 7px; border-top: 1px solid #e9e9ec; }
.total-row.main .t-label b { font-size: 14px; }
.total-row.main .t-val { font-size: 29px; font-weight: 800; letter-spacing: -0.04em; color: var(--rose); white-space: nowrap; }
.total-row.then { padding-top: 3px; }
.total-row.then .t-label { font-weight: 600; color: var(--ink-soft); }
.total-row.then .t-val { font-size: 15px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.total-row .unit { font-size: 12px; font-weight: 600; color: var(--ink-faint); }
.save-note {
  margin-top: 13px; font-size: 11.5px; color: var(--rose); font-weight: 700;
  background: var(--rose-soft); padding: 10px 12px; border-radius: 11px; line-height: 1.45;
}
.save-note b { font-weight: 800; }

/* Notes de frais uniques sur les cartes */
.fee-note { display: flex; align-items: baseline; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--ink-faint); }
.fee-note b { color: var(--ink-soft); font-weight: 800; }
.fee-note span { font-size: 10px; }

/* Prix standard barré → prix campagne (mise en avant de l'avantage) */
.fee-old { text-decoration: line-through; color: var(--ink-faint); font-weight: 600; }
.fee-note .fee-new, .fee-new { color: var(--rose); }

/* Ligne option installation (sous la carte Abox) */
.install-row { display: flex; align-items: center; gap: 10px; }
.install-row .lo-label { font-size: 11px; font-weight: 700; color: var(--ink-faint); flex: 0 0 auto; min-width: 66px; }
.install-row .opt-toggle { flex: 1; }

/* Section "Frais uniques" dans le récap */
.onetime { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ot-head { display: flex; align-items: baseline; gap: 6px; font-size: 11px; font-weight: 800; color: var(--ink); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.ot-head span { font-size: 10px; font-weight: 600; color: var(--ink-faint); text-transform: none; letter-spacing: 0; }
.ot-row { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; font-size: 12.5px; color: var(--ink-soft); font-weight: 500; }
.ot-row > span:last-child { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ot-total { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line); }
.ot-total > span { font-weight: 800; }

.actions { flex: 0 0 auto; padding: 0 24px 22px; background: #fafafb; display: flex; gap: 10px; }
.btn {
  flex: 1; padding: 13px; border-radius: 980px; border: none; cursor: pointer;
  font-family: var(--font); font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em;
  transition: transform .08s, background .15s, color .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--rose); color: #fff; }
.btn-primary:hover { background: var(--rose-dark); }
.btn-ghost { background: #ededf0; color: var(--ink); flex: 0 0 auto; padding: 13px 20px; }
.btn-ghost:hover { background: #e2e2e6; }

/* ---------- Blocs Pack ---------- */
.pack-group {
  border: 1px solid #fbdcee; border-radius: 16px;
  margin: 10px 0; overflow: hidden;
}
.pack-group-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; background: var(--rose-soft); color: var(--rose);
  font-weight: 800; font-size: 12.5px; letter-spacing: -0.01em;
}
.pack-group .line { padding: 10px 14px; border-top: 1px solid #f4f4f6; border-bottom: none; }
.leftover-head {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--ink-faint); font-weight: 700; margin: 16px 0 2px; padding: 0 2px;
}

.lines::-webkit-scrollbar, main::-webkit-scrollbar { width: 8px; }
.lines::-webkit-scrollbar-thumb, main::-webkit-scrollbar-thumb { background: #e4e4e8; border-radius: 999px; }
.lines::-webkit-scrollbar-thumb:hover, main::-webkit-scrollbar-thumb:hover { background: #d6d6dc; }

/* Élements mobiles (barre flottante / bottom sheet) — masqués sur desktop */
#mobilebar, #sheet-backdrop, .sheet-grip, .sheet-close { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Tablette : on empile catalogue + récap, la page entière défile (récap visible) */
@media (max-width: 1000px) {
  body { height: auto; min-height: 100vh; overflow: auto; }
  .wrap { grid-template-columns: 1fr; padding: 26px 24px; gap: 22px; }
  main { overflow: visible; }
  aside { display: block; position: static; }
  .summary { overflow: visible; max-height: none; min-height: 0; }
  .lines { overflow: visible; max-height: none; }
}

/* Téléphone */
@media (max-width: 640px) {
  header.nav { height: 54px; padding: 0 16px; }
  .nav-left { gap: 11px; }
  .nav-left img { height: 19px; }
  .nav-left .sep { height: 18px; }
  .nav-right { display: none; }
  body.in-sim .nav-left .tag { display: none; }  /* remplacé par « ‹ Accueil » */

  .home { padding: 36px 20px; }
  .home-hero .overline { font-size: 11.5px; letter-spacing: 0.14em; margin-bottom: 14px; }
  .home-hero h2 { font-size: 31px; letter-spacing: -0.035em; }
  .home-hero p { font-size: 15.5px; margin-top: 14px; }
  .home-grid { margin-top: 32px; grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; }
  .home-card { padding: 22px 16px; border-radius: 20px; gap: 12px; }
  .home-card .hc-icon { width: 52px; height: 52px; border-radius: 16px; }
  .home-card .hc-name { font-size: 16.5px; }
  .home-card .hc-desc { font-size: 12.5px; }

  .wrap { padding: 18px 15px 28px; gap: 18px; }
  .intro { margin-bottom: 16px; }
  .intro h2 { font-size: 24px; }
  .intro p { font-size: 13.5px; margin-top: 4px; }
  .catalog { gap: 22px; }

  .summary { border-radius: 22px; }
  .summary-head { padding: 20px 20px 14px; }
  .lines { padding: 2px 20px 6px; }
  .totals, .actions { padding-left: 20px; padding-right: 20px; }
  .total-row.main .t-val { font-size: 27px; }

  /* cibles tactiles plus généreuses */
  .step-btn { width: 36px; height: 36px; font-size: 20px; }
  .stepper .controls { gap: 12px; }
  .btn { padding: 14px; }

  /* ---- Récap → bottom sheet (téléphone uniquement) ---- */
  main { padding-bottom: 90px; }  /* place pour la barre flottante */
  aside {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 60;
    display: block; min-height: 0;
    transform: translateY(101%);
    transition: transform .38s cubic-bezier(.22,1,.36,1);
    will-change: transform;
  }
  body.sheet-open aside { transform: translateY(0); }
  .summary {
    width: 100%; max-height: 86vh; overflow: hidden;
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -14px 48px rgba(17,17,19,.22);
  }
  .lines { flex: 1 1 auto; overflow-y: auto; min-height: 0; max-height: none; }
  .actions { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }

  /* poignée + bouton fermer */
  .summary-head { position: relative; padding-top: 26px; }
  .sheet-grip {
    display: block; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    width: 38px; height: 4px; border-radius: 999px; background: #dcdce0;
  }
  .sheet-close {
    display: grid; place-items: center; position: absolute; top: 18px; right: 18px;
    width: 30px; height: 30px; border-radius: 50%; border: none; cursor: pointer;
    background: #f1f1f3; color: var(--ink-soft); font-size: 14px; font-family: var(--font);
  }

  /* fond sombre derrière le sheet */
  #sheet-backdrop {
    display: block; position: fixed; inset: 0; z-index: 55;
    background: rgba(17,17,19,.44);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  body.sheet-open #sheet-backdrop { opacity: 1; visibility: visible; }

  /* ---- Barre flottante en bas ---- */
  #mobilebar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--line);
    transform: translateY(130%);
    transition: transform .32s cubic-bezier(.22,1,.36,1);
  }
  body.in-sim #mobilebar { transform: translateY(0); }
  #mobilebar .mb-total { display: flex; flex-direction: column; line-height: 1.15; }
  #mobilebar .mb-label { font-size: 11px; font-weight: 600; color: var(--ink-faint); }
  #mobilebar .mb-val { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; color: var(--rose); font-variant-numeric: tabular-nums; white-space: nowrap; }
  #mobilebar .btn { flex: 0 0 auto; padding: 12px 22px; }
}

/* Petits téléphones : accueil en une colonne */
@media (max-width: 380px) {
  .home-grid { grid-template-columns: 1fr; max-width: 280px; }
  .home-hero h2 { font-size: 27px; }
}
