/* ═══════════════════════════════════════════════════════════════
   SIM Direct — Charte graphique
   Bleu marine (sérieux) + bleu vif (action) + menthe (économies),
   sur fonds très clairs. Légèreté : grands arrondis, ombres douces,
   beaucoup d'air. Mobile-first, cibles ≥ 44 px, contrastes WCAG AA.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --navy: #0f1e44;        /* 15,1:1 sur blanc */
  --ink: #22304a;         /* 11,4:1 */
  --ink-soft: #4a5a76;    /* 7,1:1  */
  --ink-faint: #66758f;   /* 4,7:1  */

  --blue: #1b5cff;
  --blue-deep: #0f45d6;
  --blue-tint: #e9f0ff;
  --blue-soft: #7fa8ff;

  --mint: #10dfa0;
  --mint-deep: #067a56;
  --mint-tint: #e6fbf3;

  --gold: #f5c518;
  --gold-tint: #fff8e0;

  --paper: #ffffff;
  --paper-alt: #f6f9fd;
  --paper-deep: #e9eff8;

  --line: #dfe6f2;
  --line-soft: #edf1f8;

  --amber-tint: #fff6e6;
  --amber-ink: #8a5c10;
  --rose-tint: #fdeef0;
  --rose-ink: #b3243b;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --r: 20px;
  --r-sm: 13px;
  --shadow: 0 1px 2px rgba(15, 30, 68, .04), 0 10px 30px rgba(15, 30, 68, .07);
  --shadow-lg: 0 24px 70px rgba(15, 30, 68, .18);
  --bar-h: 78px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.14; font-weight: 800; letter-spacing: -.025em; color: var(--navy); }
h1 { font-size: clamp(2.05rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 4vw, 2.4rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section--alt { background: var(--paper-alt); }
.section__head { max-width: 660px; margin: 0 auto clamp(1.8rem, 4vw, 3rem); text-align: center; }
.section__head p { margin-top: .85rem; color: var(--ink-soft); font-size: 1.02rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue);
}

/* ── Boutons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .78rem 1.6rem;
  border: 1.5px solid var(--navy); border-radius: 999px;
  background: transparent; color: var(--navy);
  font-size: .96rem; font-weight: 650; text-align: center;
  transition: background .18s, color .18s, border-color .18s, transform .12s, box-shadow .18s, opacity .18s;
}
.btn:hover { background: var(--navy); color: #fff; }
.btn:active { transform: scale(.985); }
.btn--blue {
  background: var(--blue); border-color: var(--blue); color: #fff;
  box-shadow: 0 6px 18px rgba(27, 92, 255, .26);
}
.btn--blue:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn--navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--navy:hover { background: #071729; border-color: #071729; }
.btn--ghost { border-color: var(--line); color: var(--ink-soft); background: #fff; }
.btn--ghost:hover { background: var(--paper-alt); color: var(--navy); border-color: var(--line); }
.btn--block { width: 100%; }
.btn--lg { min-height: 58px; font-size: 1.02rem; padding: .95rem 2.1rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Bandeau + en-tête ────────────────────────────────────────── */
.announce {
  background: var(--navy); color: #dce7f7;
  text-align: center; font-size: .82rem; font-weight: 500;
  padding: .62rem 1rem;
}
.announce strong { color: #fff; font-weight: 700; }
.announce .dot { color: var(--blue-soft); margin: 0 .5rem; }

.header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 1rem;
  padding: .72rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header__logo { display: flex; align-items: center; margin-right: auto; }
.header__logo img { height: 32px; width: auto; }
.nav { display: none; gap: 1.7rem; font-size: .93rem; font-weight: 550; }
.nav a { color: var(--ink-soft); transition: color .18s; }
.nav a:hover { color: var(--blue); }
.header__actions { display: flex; align-items: center; gap: .6rem; }

.cart-toggle {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  min-height: 46px; padding: .5rem 1.15rem;
  border: 1.5px solid var(--navy); border-radius: 999px;
  background: var(--navy); color: #fff; font-size: .89rem; font-weight: 650;
}
.cart-toggle__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--mint); color: #fff; font-size: .74rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
@media (min-width: 900px) { .nav { display: flex; } }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.4rem, 6vw, 4.8rem) clamp(1rem, 4vw, 2.5rem);
}
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { margin: .85rem 0 0; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero__lede { margin-top: 1.15rem; font-size: 1.08rem; color: var(--ink-soft); max-width: 31rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }
.hero__points {
  display: grid; gap: .6rem; margin-top: 1.9rem; padding: 0; list-style: none;
  font-size: .95rem; color: var(--ink-soft);
}
.hero__points li { display: flex; align-items: flex-start; gap: .65rem; }
.hero__points svg { flex: 0 0 auto; width: 19px; height: 19px; color: var(--mint); margin-top: 2px; }
.hero__media { display: grid; place-items: center; }
.hero__media img { width: min(100%, 350px); filter: drop-shadow(0 26px 50px rgba(15, 30, 68, .16)); }

/* ── Bandeau chiffres ─────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats__item { background: #fff; padding: 1.5rem 1rem; text-align: center; }
.stats__num { display: block; font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; color: var(--navy); }
.stats__cap { font-size: .81rem; color: var(--ink-faint); }

/* ── Grille produits ──────────────────────────────────────────── */
.product-grid { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.4rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: #cbd7ea; box-shadow: var(--shadow); transform: translateY(-2px); }
.card--featured { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow); }

.card__flag {
  position: absolute; top: -12px; left: 1.4rem;
  padding: .3rem .8rem; border-radius: 999px;
  background: var(--blue); color: #fff;
  font-size: .69rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.card--best .card__flag { background: var(--navy); }

.card__media {
  background: linear-gradient(160deg, var(--blue-tint), var(--paper-alt));
  border-radius: var(--r-sm); padding: 1.1rem; display: grid; place-items: center;
  margin-bottom: 1.15rem;
}
.card__media img { width: min(100%, 168px); }

.card__name { font-size: 1.2rem; }
.card__data { margin-top: .2rem; font-size: .92rem; color: var(--ink-faint); }

.card__price { display: flex; align-items: baseline; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.card__amount { font-size: 2.1rem; font-weight: 800; letter-spacing: -.035em; color: var(--navy); }
.card__unit { font-size: .9rem; color: var(--ink-faint); }
.card__was { font-size: .95rem; color: var(--ink-faint); text-decoration: line-through; }
.badge-save {
  padding: .22rem .6rem; border-radius: 8px;
  background: var(--mint-tint); color: var(--mint-deep);
  font-size: .78rem; font-weight: 700;
}
.card__ht { font-size: .81rem; color: var(--ink-faint); margin-top: .2rem; }
.card__ht b { color: var(--mint-deep); font-weight: 650; }

.card__features {
  list-style: none; margin: 1.15rem 0 0; padding: 0;
  display: grid; gap: .5rem; font-size: .9rem; color: var(--ink-soft);
}
.card__features li { display: flex; gap: .58rem; align-items: flex-start; }
.card__features li::before {
  content: ""; flex: 0 0 auto; width: 17px; height: 17px; margin-top: 3px; border-radius: 50%;
  background: var(--mint-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23067a56' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

.card__foot { margin-top: auto; padding-top: 1.3rem; }

.qty {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  border: 1.5px solid var(--line); border-radius: 999px; padding: .27rem; margin-bottom: .7rem;
}
.qty__btn {
  width: 44px; height: 44px; flex: 0 0 auto; border: 0; border-radius: 50%;
  background: var(--paper-alt); font-size: 1.3rem; font-weight: 600; line-height: 1;
  color: var(--navy); display: grid; place-items: center; transition: background .15s;
}
.qty__btn:hover { background: var(--paper-deep); }
.qty__btn:disabled { opacity: .35; cursor: not-allowed; }
.qty__input {
  flex: 1 1 auto; min-width: 0; min-height: 44px; border: 0; background: transparent; text-align: center;
  font-size: 1.02rem; font-weight: 700; color: var(--navy); -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.card__hint {
  display: block; margin-top: .6rem; font-size: .82rem; text-align: center;
  color: var(--ink-faint); min-height: 1.2em;
}
.card__hint--on { color: var(--mint-deep); font-weight: 650; }

/* Apple Pay express sur la fiche produit */
.applepay {
  -webkit-appearance: -apple-pay-button;
  apple-pay-button-type: buy;
  apple-pay-button-style: black;
  width: 100%; height: 50px; margin-top: .55rem;
  border-radius: 999px; border: 0; cursor: pointer; display: block;
}
.applepay[hidden] { display: none; }
.applepay-sep {
  display: flex; align-items: center; gap: .7rem; margin: .7rem 0 .1rem;
  font-size: .74rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .1em;
}
.applepay-sep::before, .applepay-sep::after {
  content: ""; flex: 1 1 auto; height: 1px; background: var(--line);
}

/* ── Grille de remises ────────────────────────────────────────── */
.tiers { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.tiers table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: .94rem; }
.tiers th, .tiers td { padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
.tiers thead th {
  background: var(--paper-alt); font-size: .76rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-faint);
}
.tiers tbody tr:last-child td { border-bottom: 0; }
.tiers .t-off { color: var(--mint-deep); font-weight: 700; }
.tiers .t-price { font-weight: 700; white-space: nowrap; color: var(--navy); }
.tiers .t-best { background: var(--mint-tint); }

/* ── Étapes ───────────────────────────────────────────────────── */
.steps { display: grid; gap: 1.2rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.steps__item::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-tint); color: var(--blue); font-weight: 800; font-size: .98rem;
  margin-bottom: .95rem;
}
.steps__item p { margin-top: .45rem; color: var(--ink-soft); font-size: .94rem; }

/* ── Réassurance ──────────────────────────────────────────────── */
.trust { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust__item svg { width: 27px; height: 27px; color: var(--blue); margin-bottom: .75rem; }
.trust__item p { margin-top: .4rem; color: var(--ink-soft); font-size: .94rem; }

/* ── Cibles professionnelles ──────────────────────────────────── */
.targets { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 680px) { .targets { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .targets { grid-template-columns: repeat(3, 1fr); } }
.target {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.3rem; transition: border-color .2s, box-shadow .2s;
}
.target:hover { border-color: #cbd7ea; box-shadow: var(--shadow); }
.target h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.target p { color: var(--ink-soft); font-size: .92rem; }

/* ── Bloc professionnels ──────────────────────────────────────── */
.pro {
  display: grid; gap: 2rem; align-items: start;
  background: linear-gradient(155deg, var(--navy) 0%, #1b3566 100%);
  color: #fff; border-radius: var(--r); padding: clamp(1.6rem, 4vw, 3.2rem);
}
@media (min-width: 900px) { .pro { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.pro h2 { color: #fff; }
.pro p { color: #c3d2e8; margin-top: .85rem; }
.pro__list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .62rem; font-size: .95rem; }
.pro__list li { display: flex; gap: .62rem; align-items: flex-start; color: #e4ecf7; }
.pro__list svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; color: #6ee0c6; }

.segments { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.segments span {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .85rem; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .17);
  color: #e4ecf7; font-size: .84rem; font-weight: 550;
}

.form-card { background: #fff; border-radius: var(--r); padding: clamp(1.3rem, 3vw, 1.9rem); color: var(--ink); }

/* ── Formulaires ──────────────────────────────────────────────── */
.field { margin-bottom: .95rem; }
.field > label, .field-label {
  display: block; font-size: .83rem; font-weight: 650; color: var(--ink-soft); margin-bottom: .38rem;
}
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .72rem .95rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff;
  font-size: 16px; /* < 16px déclenche le zoom auto sur iOS */
  transition: border-color .16s, box-shadow .16s;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 92, 255, .15);
}
.field input[aria-invalid="true"] { border-color: #d64560; background: var(--rose-tint); }
.field__row { display: grid; gap: .9rem; }
@media (min-width: 620px) {
  .field__row--2 { grid-template-columns: 1fr 1fr; }
  .field__row--3 { grid-template-columns: .8fr 1.2fr 1fr; }
}
.field__hint { font-size: .81rem; color: var(--ink-faint); margin-top: .32rem; }

.segmented {
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .36rem; background: var(--paper-alt); border-radius: 999px; margin-bottom: 1.4rem;
}
.segmented__opt { position: relative; }
.segmented__opt input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.segmented__opt span {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 48px; border-radius: 999px; font-size: .96rem; font-weight: 650;
  color: var(--ink-soft); transition: background .18s, color .18s, box-shadow .18s;
}
.segmented__opt input:checked + span { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.segmented__opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.choice { display: grid; gap: .7rem; }
.choice__opt { position: relative; }
.choice__opt input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.choice__opt > span {
  display: block; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 1rem 1.15rem; transition: border-color .16s, background .16s;
}
.choice__opt input:checked + span { border-color: var(--blue); background: var(--blue-tint); }
.choice__opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.choice__title { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-weight: 650; color: var(--navy); }
.choice__desc { display: block; font-size: .86rem; color: var(--ink-faint); margin-top: .22rem; }

.checkbox { display: flex; gap: .68rem; align-items: flex-start; font-size: .89rem; color: var(--ink-soft); }
.checkbox input { width: 21px; height: 21px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--blue); }

.alert { border-radius: var(--r-sm); padding: .9rem 1.05rem; font-size: .91rem; margin-bottom: 1rem; }
.alert--error { background: var(--rose-tint); color: var(--rose-ink); border: 1px solid #f6ccd4; }
.alert--ok { background: var(--mint-tint); color: var(--mint-deep); border: 1px solid #c8ebe1; }
.alert--info { background: var(--amber-tint); color: var(--amber-ink); border: 1px solid #f6e3c2; }
.alert[hidden] { display: none; }

/* ── Tiroir panier ────────────────────────────────────────────── */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(15, 30, 68, .45);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; z-index: 80;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; z-index: 90;
  width: min(430px, 100%); height: 100%;
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.32, .72, 0, 1);
  box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--line-soft);
}
.drawer__head strong { color: var(--navy); font-size: 1.02rem; }
.drawer__close {
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--paper-alt); font-size: 1.35rem; line-height: 1; color: var(--navy);
}
.drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 1.25rem; -webkit-overflow-scrolling: touch; }
.drawer__foot {
  border-top: 1px solid var(--line-soft);
  padding: 1.15rem 1.25rem calc(1.15rem + env(safe-area-inset-bottom)); background: #fff;
}
.drawer__empty { text-align: center; color: var(--ink-faint); padding: 2.6rem 1rem; }

.cart-line {
  display: grid; grid-template-columns: 58px 1fr auto; gap: .9rem;
  padding: .95rem 0; border-bottom: 1px solid var(--line-soft);
}
.cart-line__img { background: var(--paper-alt); border-radius: 10px; padding: 5px; }
.cart-line__name { font-weight: 650; font-size: .96rem; color: var(--navy); }
.cart-line__meta { font-size: .83rem; color: var(--ink-faint); }
.cart-line__off { color: var(--mint-deep); font-weight: 700; }
.cart-line__price { font-weight: 700; white-space: nowrap; text-align: right; color: var(--navy); }
.cart-line__ctrl { display: inline-flex; align-items: center; gap: .35rem; margin-top: .48rem; }
.cart-line__ctrl button {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; line-height: 1; font-size: 1rem; color: var(--navy);
}
.cart-line__ctrl span { min-width: 26px; text-align: center; font-weight: 700; font-size: .9rem; }
.cart-line__del {
  border: 0; background: none; color: var(--ink-faint); font-size: .8rem;
  text-decoration: underline; padding: .75rem .2rem; margin-top: 0;
}

/* Choix du mode de livraison — présent uniquement dans le panier */
.ship-pick { margin: .2rem 0 1rem; }
.ship-pick__label {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: .45rem;
}
.ship-pick select {
  width: 100%; min-height: 46px; padding: .55rem .8rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: .93rem;
}

.totals { display: grid; gap: .42rem; font-size: .93rem; margin-bottom: .9rem; }
.totals__row { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-soft); }
.totals__row--save { color: var(--mint-deep); font-weight: 650; }
.totals__row--grand {
  font-size: 1.25rem; font-weight: 800; color: var(--navy);
  padding-top: .55rem; border-top: 1px solid var(--line-soft); margin-top: .35rem;
}
.totals__ht { font-size: .82rem; color: var(--ink-faint); text-align: right; }

.freeship {
  background: var(--blue-tint); border-radius: var(--r-sm);
  padding: .75rem .95rem; font-size: .86rem; color: var(--ink-soft); margin-bottom: .9rem;
}
.freeship__bar { height: 6px; border-radius: 999px; background: #fff; margin-top: .5rem; overflow: hidden; }
.freeship__fill { height: 100%; background: var(--mint); border-radius: 999px; transition: width .3s ease; }

.paylogos { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: .85rem; }
.paylogos span {
  font-size: .71rem; font-weight: 600; color: var(--ink-faint);
  border: 1px solid var(--line); border-radius: 7px; padding: .22rem .55rem;
}

/* ── Pop-up d'upsell volume ───────────────────────────────────── */
.upsell-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 30, 68, .5); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 1rem;
  opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s;
}
.upsell-backdrop.is-open { opacity: 1; visibility: visible; }
.upsell {
  width: min(430px, 100%); background: #fff; border-radius: 24px;
  padding: 1.7rem 1.6rem 1.5rem; box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(.98); transition: transform .26s cubic-bezier(.32,.72,0,1);
  text-align: center; position: relative;
}
.upsell-backdrop.is-open .upsell { transform: none; }
.upsell__close {
  position: absolute; top: .8rem; right: .8rem;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--paper-alt); color: var(--ink-soft); font-size: 1.2rem; line-height: 1;
}
.upsell__badge {
  display: inline-block; padding: .3rem .8rem; border-radius: 999px;
  background: var(--mint-tint); color: var(--mint-deep);
  font-size: .73rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.upsell h3 { margin: .85rem 0 .5rem; font-size: 1.32rem; }
.upsell p { color: var(--ink-soft); font-size: .95rem; }
.upsell__compare {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem;
  margin: 1.3rem 0; padding: 1.1rem; background: var(--paper-alt); border-radius: var(--r-sm);
}
.upsell__cell small { display: block; font-size: .74rem; color: var(--ink-faint); margin-bottom: .2rem; }
.upsell__cell b { font-size: 1.28rem; color: var(--navy); letter-spacing: -.02em; }
.upsell__cell--new b { color: var(--mint-deep); }
.upsell__arrow { color: var(--mint); font-size: 1.3rem; }
.upsell__save { font-size: .88rem; color: var(--mint-deep); font-weight: 650; margin-bottom: 1.2rem; }
.upsell__skip {
  display: block; width: 100%; min-height: 46px; margin-top: .5rem; border: 0; background: none;
  color: var(--ink-faint); font-size: .87rem; text-decoration: underline; padding: .6rem;
}

/* ── Barre d'achat mobile ─────────────────────────────────────── */
.mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; align-items: center; gap: .8rem;
  padding: .72rem 1rem calc(.72rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s ease;
}
.mobilebar.is-visible { transform: translateY(0); }
.mobilebar__info { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.mobilebar__total { font-size: 1.12rem; font-weight: 800; color: var(--navy); }
.mobilebar__cap {
  font-size: .77rem; color: var(--ink-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mobilebar .btn { flex: 0 0 auto; min-height: 48px; }
@media (min-width: 900px) { .mobilebar { display: none; } }
body.has-mobilebar { padding-bottom: var(--bar-h); }
@media (min-width: 900px) { body.has-mobilebar { padding-bottom: 0; } }

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.05rem 0; }
.faq summary {
  cursor: pointer; font-weight: 650; color: var(--navy); list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.35rem; color: var(--blue); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: .75rem; color: var(--ink-soft); font-size: .95rem; }

/* ── Checkout ─────────────────────────────────────────────────── */
.checkout { display: grid; gap: 2rem; align-items: start; padding-bottom: 3rem; }
@media (min-width: 940px) { .checkout { grid-template-columns: 1.25fr .75fr; gap: 3rem; } }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.2rem, 3vw, 1.8rem); margin-bottom: 1.2rem;
}
.panel__title { font-size: 1.06rem; margin-bottom: 1.05rem; display: flex; align-items: center; gap: .65rem; }
.panel__step {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-tint); color: var(--blue); font-size: .82rem; font-weight: 800; flex: 0 0 auto;
}

.summary { position: sticky; top: 94px; }
.summary__lines { margin-bottom: 1rem; }
.summary__line {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; font-size: .93rem; border-bottom: 1px solid var(--line-soft);
}
.summary__note { font-size: .81rem; color: var(--ink-faint); margin-top: .95rem; text-align: center; }

/* ── Page merci ───────────────────────────────────────────────── */
.thanks { max-width: 660px; margin: 0 auto; text-align: center; padding: clamp(2.5rem, 8vw, 5rem) 0; }
.thanks__icon {
  width: 72px; height: 72px; margin: 0 auto 1.5rem; border-radius: 50%;
  background: var(--mint-tint); color: var(--mint-deep); display: grid; place-items: center;
}
.thanks__icon svg { width: 34px; height: 34px; }
.thanks__icon--wait { background: var(--amber-tint); color: var(--amber-ink); }
.thanks__box {
  text-align: left; background: var(--paper-alt); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.4rem; margin-top: 2rem;
}
.thanks__box dl { display: grid; gap: .48rem; margin: 0; font-size: .94rem; }
.thanks__box .row { display: flex; justify-content: space-between; gap: 1rem; }
.thanks__box dt { color: var(--ink-soft); }
.thanks__box dd { margin: 0; font-weight: 650; text-align: right; color: var(--navy); }

/* ── Pages légales ────────────────────────────────────────────── */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) 0; }
.legal h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1.4rem; }
.legal h2 { font-size: 1.16rem; margin: 2.1rem 0 .65rem; }
.legal p, .legal li { color: var(--ink-soft); font-size: .96rem; }
.legal p + p { margin-top: .7rem; }
.legal ul { padding-left: 1.2rem; margin: .65rem 0; display: grid; gap: .35rem; }
.legal table { width: 100%; border-collapse: collapse; margin: .9rem 0; font-size: .93rem; }
.legal th, .legal td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line-soft); }
.legal th { color: var(--ink-faint); font-weight: 650; width: 42%; }

/* ── Pied de page ─────────────────────────────────────────────── */
.footer {
  background: var(--navy); color: #a9bcd6;
  padding: clamp(2.6rem, 6vw, 4rem) 0 2rem; font-size: .9rem;
}
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 {
  color: #fff; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .11em; margin-bottom: .85rem; font-weight: 700;
}
.footer a { color: #a9bcd6; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .48rem; }
/* Le logo comporte du bleu marine : sur le pied de page sombre il est
   posé sur une pastille blanche plutôt que recoloré. */
.footer__brand img {
  height: 32px; width: auto; margin-bottom: 1rem;
  background: #fff; padding: 9px 13px; border-radius: 12px;
}
.footer__legal {
  margin-top: 2.3rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: .8rem; color: #7d90ad;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Autocomplétion entreprise (checkout professionnel) ───────── */
.suggest { position: relative; }
.suggest__list {
  position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--shadow); max-height: 280px; overflow-y: auto; padding: .3rem;
}
.suggest__list[hidden] { display: none; }
.suggest__item {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: .6rem .7rem; border-radius: 9px; font-size: .9rem; line-height: 1.4;
}
.suggest__item:hover, .suggest__item:focus { background: var(--blue-tint); outline: none; }
.suggest__item strong { display: block; color: var(--navy); font-weight: 650; }
.suggest__item span { color: var(--ink-faint); font-size: .82rem; }
.suggest__status { padding: .6rem .7rem; font-size: .85rem; color: var(--ink-faint); }
