/* ============================================================
 * EurekaDev — feuille de style
 * ============================================================ */
:root {
  --primary: #2355f5;
  --primary-dark: #1a3fc2;
  --primary-soft: #e8eeff;
  --accent: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .18);
  --c-materiel: #2355f5;
  --c-licence: #7c3aed;
  --c-service: #0d9488;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4, h5 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.muted { color: var(--ink-2); font-size: .92rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: 10px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; transition: .18s ease; white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--primary:disabled { background: var(--ink-3); cursor: not-allowed; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--sm { padding: .5rem .9rem; font-size: .85rem; }
.btn--block { width: 100%; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: var(--bg-alt); color: var(--ink); font-size: 1rem;
}
.icon-btn:hover { background: var(--line); }
.link-btn { border: 0; background: none; color: var(--ink-3); font-size: .8rem; padding: 0; }
.link-btn:hover { color: var(--danger); }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 2rem; height: 68px; }
.logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; }
.logo img { display: block; height: 38px; width: auto; }
.logo--light img { height: 40px; }
.logo__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff; font-size: 1.05rem;
}
.logo--light { color: #fff; }
.nav { display: flex; gap: 1.3rem; margin-left: auto; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: .95rem; white-space: nowrap; }
@media (max-width: 1140px) {
  .nav { gap: .9rem; }
  .nav a { font-size: .9rem; }
  .header .logo img { height: 32px; }
}
.nav a:hover { color: var(--primary); }
.header__actions { display: flex; align-items: center; gap: .5rem; }
.cart-btn {
  position: relative; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: grid; place-items: center;
}
.cart-btn:hover { border-color: var(--primary); color: var(--primary); }
.cart-btn__count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700;
  display: grid; place-items: center;
}
.cart-btn.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.15); } }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(124, 58, 237, .12), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(35, 85, 245, .10), transparent 60%),
    var(--bg-alt);
  padding: 80px 0 90px;
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.badge {
  display: inline-block; padding: .35rem .8rem; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: .8rem; margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; }
.accent { background: linear-gradient(90deg, var(--primary), #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.1rem; color: var(--ink-2); max-width: 560px; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.8rem 0 2.2rem; }
.hero__stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero__stats strong { display: block; font-size: 1.5rem; font-weight: 800; }
.hero__stats span { color: var(--ink-2); font-size: .88rem; }

.hero__visual { position: relative; height: 380px; }
.card-float {
  position: absolute; display: flex; align-items: center; gap: .9rem;
  background: #fff; border-radius: 16px; padding: 1rem 1.3rem; box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.card-float svg { width: 42px; height: 42px; padding: 9px; border-radius: 12px; }
.card-float b { display: block; font-size: .95rem; }
.card-float small { color: var(--ink-2); }
.card-float--1 { top: 10px; left: 0; }
.card-float--1 svg { background: #e8eeff; color: var(--c-materiel); }
.card-float--2 { top: 140px; right: 0; animation-delay: -2s; }
.card-float--2 svg { background: #f1e9ff; color: var(--c-licence); }
.card-float--3 { bottom: 20px; left: 40px; animation-delay: -4s; }
.card-float--3 svg { background: #dcf7f2; color: var(--c-service); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; margin-bottom: 2.5rem; }
.section__head h2, .pro h2, .contact h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.section__head p { color: var(--ink-2); }

/* ---------- Catégories ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: -100px; position: relative; }
.cat {
  display: block; color: inherit; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); transition: .2s ease;
}
.cat:hover { transform: translateY(-4px); border-color: var(--primary); }
.cat svg { width: 46px; height: 46px; padding: 10px; border-radius: 12px; margin-bottom: 1rem; }
.cat[data-cat="materiel"] svg { background: #e8eeff; color: var(--c-materiel); }
.cat[data-cat="licence"] svg { background: #f1e9ff; color: var(--c-licence); }
.cat[data-cat="service"] svg { background: #dcf7f2; color: var(--c-service); }
.cat h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.cat p { color: var(--ink-2); margin: 0; font-size: .92rem; }

/* ---------- Barre d'outils catalogue ---------- */
.toolbar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.tabs { display: flex; gap: .4rem; background: var(--bg-alt); padding: .3rem; border-radius: 12px; flex-wrap: wrap; }
.tab { border: 0; background: none; padding: .55rem 1rem; border-radius: 9px; font-weight: 600; color: var(--ink-2); font-size: .9rem; }
.tab.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.toolbar__right { display: flex; gap: .6rem; flex-wrap: wrap; }
.toolbar__right .input { width: auto; }
#search { min-width: 240px; }

.input {
  width: 100%; padding: .72rem .9rem; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .95rem; background: #fff; color: var(--ink); transition: border-color .15s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input.is-invalid { border-color: var(--danger); }
textarea.input { resize: vertical; }

/* ---------- Grille produits ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.3rem; }
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; cursor: pointer; transition: .2s ease;
}
.product:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product__media { position: relative; height: 170px; display: grid; place-items: center; }
.product__media svg { width: 72px; height: 72px; }
.product__media--materiel { background: linear-gradient(135deg, #eef2ff, #dbe4ff); color: var(--c-materiel); }
.product__media--licence  { background: linear-gradient(135deg, #f5efff, #e7dbff); color: var(--c-licence); }
.product__media--service  { background: linear-gradient(135deg, #e9faf6, #cdf1e9); color: var(--c-service); }
.tag { position: absolute; top: 12px; padding: .2rem .55rem; border-radius: 6px; font-size: .72rem; font-weight: 700; }
.tag--promo { left: 12px; background: var(--danger); color: #fff; }
.tag--digital { right: 12px; background: #fff; color: var(--c-licence); }
.product__body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.product__cat { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.product__name { font-size: 1.02rem; margin: .3rem 0 .1rem; }
.product__brand { color: var(--ink-2); font-size: .87rem; }
.product__foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 1rem; }
.price s { display: block; color: var(--ink-3); font-size: .82rem; }
.price strong { font-size: 1.25rem; font-weight: 800; white-space: nowrap; }
.price--lg strong { font-size: 1.9rem; }
.price--lg { margin-top: 1rem; }
.stock { font-size: .78rem; font-weight: 600; margin-top: .7rem; }
.stock::before { content: "●"; margin-right: .35rem; }
.stock--ok { color: var(--accent); }
.stock--low { color: var(--warn); }
.stock--out { color: var(--danger); }
.empty { text-align: center; color: var(--ink-2); padding: 3rem 0; }

/* ---------- Partenariat Microsoft ---------- */
.partner-pill {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 2rem;
  padding: .55rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--ink-2); font-size: .88rem; box-shadow: var(--shadow);
}
.partner-pill svg { color: var(--primary); flex-shrink: 0; }
.partner-pill b { color: var(--ink); }
.partner-pill:hover { border-color: var(--primary); }
.partner {
  display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: center;
  background: linear-gradient(135deg, #f4f7ff, #fff); border: 1px solid var(--line);
  border-radius: 20px; padding: 2.5rem;
}
.partner h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); letter-spacing: -.02em; }
.partner p { color: var(--ink-2); font-size: 1.05rem; }
.partner__badge { display: grid; place-items: center; }
.partner__badge img { max-width: 100%; height: auto; }
.partner__fallback {
  width: 220px; aspect-ratio: 1; border-radius: 24px; background: #fff; box-shadow: var(--shadow-lg);
  display: grid; place-items: center; align-content: center; gap: .8rem; text-align: center;
  color: var(--primary); border: 1px solid var(--line);
}
.partner__fallback b { color: var(--ink); font-size: 1.3rem; line-height: 1.25; }
.checklist--cols { grid-template-columns: 1fr 1fr; margin-bottom: 1.8rem; }
.ms-partner { font-size: .75rem; font-weight: 600; color: var(--primary); margin-top: .35rem; }
.footer__partner { color: #fff; font-weight: 600; display: flex; align-items: center; gap: .4rem; }

/* ---------- Arguments ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature { background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); }
.feature__icon { font-size: 1.7rem; display: block; margin-bottom: .7rem; }
.feature h4 { font-size: 1.02rem; }
.feature p { color: var(--ink-2); font-size: .92rem; margin: 0; }

/* ---------- Pro / contact ---------- */
.pro, .contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.pro__text p, .contact p { color: var(--ink-2); font-size: 1.05rem; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.checklist li { padding-left: 1.9rem; position: relative; font-weight: 500; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: #d1fae5; color: #047857; display: grid; place-items: center; font-size: .75rem; font-weight: 800;
}
.contact__list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.contact__list b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }

.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow); display: grid; gap: 1rem;
}
.form--flat { border: 0; box-shadow: none; padding: 0; }
.form h3 { margin: 0; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .87rem; }
.form label small { font-weight: 400; color: var(--ink-3); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__msg { margin: 0; font-size: .9rem; min-height: 1.2em; }
.form__msg.is-success { color: #047857; }
.form__msg.is-error { color: var(--danger); }
.form .check { display: flex; align-items: center; gap: .5rem; font-weight: 500; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-alt); border-radius: 10px; padding: .3rem; }
.segmented label { display: flex; justify-content: center; align-items: center; gap: .4rem; padding: .55rem; border-radius: 8px; cursor: pointer; }
.segmented label:has(input:checked) { background: #fff; box-shadow: var(--shadow); }
.segmented input { accent-color: var(--primary); }
.pay { border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; margin: 0; display: grid; gap: .5rem; }
.pay legend { font-weight: 700; font-size: .87rem; padding: 0 .3rem; }
.pay label { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.recap { background: var(--bg-alt); border-radius: 10px; padding: 1rem; display: grid; gap: .4rem; font-size: .9rem; }
.recap div { display: flex; justify-content: space-between; gap: 1rem; }
.recap__total { border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .2rem; font-weight: 800; font-size: 1.05rem; }

/* ---------- FAQ ---------- */
.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: .7rem; }
.faq summary { padding: 1.1rem 1.3rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 1.3rem 1.1rem; margin: 0; color: var(--ink-2); }

/* ---------- Pied de page ---------- */
.footer { background: var(--ink); color: #cbd5e1; padding: 60px 0 24px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr 1fr; gap: 2rem; }
.footer p { margin-top: 1rem; font-size: .92rem; }
.footer h5 { color: #fff; font-size: .9rem; margin-bottom: 1rem; }
.footer a:not(.logo) { display: block; color: #94a3b8; font-size: .92rem; margin-bottom: .55rem; }
.footer a:not(.logo):hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; border-top: 1px solid #1e293b; margin-top: 2.5rem; padding-top: 1.5rem; font-size: .85rem; color: #64748b; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); z-index: 200;
  background: var(--ink); color: #fff; padding: .85rem 1.3rem; border-radius: 12px; font-size: .92rem;
  box-shadow: var(--shadow-lg); transition: transform .3s ease; max-width: calc(100% - 32px);
}
.toast.is-visible { transform: translate(-50%, 0); }

/* ---------- Barre supérieure & recherche ---------- */
.topbar { background: var(--ink); color: #cbd5e1; font-size: .8rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 34px; }
.topbar a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.header__search .input { width: 190px; padding: .55rem .8rem; font-size: .88rem; }
.nav a[aria-current="page"] { color: var(--primary); font-weight: 600; }
.btn--lg { padding: 1rem 1.6rem; font-size: 1rem; }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { background: var(--primary-soft); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.link-back { display: inline-block; border: 0; background: none; padding: 0; color: var(--ink-2); font-size: .9rem; font-weight: 500; }
.link-back:hover { color: var(--primary); }
.center { text-align: center; margin-top: 2rem; }
.loading { color: var(--ink-3); padding: 2rem 0; }

/* ---------- En-têtes de page ---------- */
.section--tight { padding: 40px 0; }
.section--flush { padding-top: 0; }
.section__head--row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; text-align: left; }
.section__head--row h2 { margin-bottom: .2rem; }
.section__head--row p { margin: 0; }
.page-head { background: var(--bg-alt); padding: 36px 0 32px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.02em; margin-top: .6rem; }
.page-head p { color: var(--ink-2); margin: 0; max-width: 720px; }
.page-title { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.02em; margin-bottom: 1.5rem; }
.crumbs { font-size: .85rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--primary); }
.result-count { color: var(--ink-3); font-size: .88rem; margin: -.6rem 0 1rem; }
.product__name a { color: inherit; }
.product__name a:hover { color: var(--primary); }
.cta-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--primary), #7c3aed); color: #fff; border-radius: 20px; padding: 2.4rem;
}
.cta-banner h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-banner p { margin: 0; opacity: .9; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-2); }
.empty-state svg { margin: 0 auto 1rem; color: var(--ink-3); }
.empty-state h1, .empty-state h2 { color: var(--ink); }

/* ---------- Fiche produit ---------- */
.pdetail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; margin-top: 1.5rem; }
.pdetail__media { position: relative; min-height: 420px; border-radius: 18px; }
.pdetail__media svg { width: 140px; height: 140px; }
.pdetail__info h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; margin: .4rem 0 .3rem; }
.pdetail__desc { font-size: 1.05rem; color: var(--ink-2); margin: 1rem 0; }
.specs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.specs li { background: var(--bg-alt); border: 1px solid var(--line); padding: .3rem .65rem; border-radius: 8px; font-size: .82rem; font-weight: 500; }
.buybox { margin-top: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.buybox .price--lg { margin-top: 0; }
.buybox .muted { margin: .2rem 0 .4rem; }
.pdetail__actions { display: flex; gap: .7rem; margin-top: 1.2rem; flex-wrap: wrap; }
.reassure { list-style: none; padding: 1.1rem 0 0; margin: 1.3rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .6rem; font-size: .88rem; color: var(--ink-2); }
.reassure li { display: flex; align-items: center; gap: .6rem; }
.reassure svg { color: var(--primary); flex-shrink: 0; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { width: 40px; height: 44px; border: 0; background: #fff; font-size: 1.1rem; }
.qty button:hover { background: var(--bg-alt); }
.qty input { width: 50px; border: 0; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm button { width: 32px; height: 34px; font-size: .95rem; }
.qty--sm span { min-width: 28px; text-align: center; font-weight: 600; font-size: .9rem; }

/* ---------- Étapes de commande ---------- */
.stepper { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.stepper li { flex: 1; min-width: 120px; display: flex; align-items: center; gap: .55rem; padding: .7rem .9rem; border-radius: 10px; background: var(--bg-alt); color: var(--ink-3); font-weight: 600; font-size: .88rem; }
.stepper li a { color: inherit; display: flex; align-items: center; gap: .55rem; }
.stepper span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); font-size: .78rem; flex-shrink: 0; }
.stepper .is-current { background: var(--primary-soft); color: var(--primary); }
.stepper .is-current span { background: var(--primary); border-color: var(--primary); color: #fff; }
.stepper .is-done { color: var(--ink-2); }
.stepper .is-done span { background: #d1fae5; border-color: #d1fae5; color: #047857; }

/* ---------- Panier & commande ---------- */
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.checkout__main { display: grid; gap: 1.2rem; min-width: 0; }
.notice { background: var(--primary-soft); color: var(--primary-dark); padding: .85rem 1.1rem; border-radius: 10px; font-size: .92rem; }
.notice--warn { background: #fef3c7; color: #92400e; margin-bottom: 1.5rem; }
.cart-list { border: 1px solid var(--line); border-radius: var(--radius); }
.cart-row { display: grid; grid-template-columns: 72px 1fr auto 120px; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; }
.cart-row + .cart-row { border-top: 1px solid var(--line); }
.cart-row__media { width: 72px; height: 72px; border-radius: 12px; display: grid; place-items: center; }
.cart-row__media svg { width: 34px; height: 34px; }
.cart-row__info { display: grid; gap: .15rem; }
.cart-row__info a { color: var(--ink); }
.cart-row__info .muted { font-size: .85rem; }
.cart-row__total { display: grid; justify-items: end; gap: .25rem; }
.chip { justify-self: start; margin-top: .2rem; font-size: .72rem; font-weight: 600; padding: .15rem .5rem; border-radius: 6px; background: #f1e9ff; color: var(--c-licence); }

.summary { position: sticky; top: 90px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: 1rem; }
.summary h3 { margin: 0; font-size: 1.1rem; }
.summary__rows, .paybox__lines { display: grid; gap: .5rem; font-size: .93rem; }
.summary__rows > div, .paybox__lines > div { display: flex; justify-content: space-between; gap: 1rem; }
.summary__total { border-top: 1px solid var(--line); padding-top: .7rem; margin-top: .2rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.summary .muted, .paybox__lines .muted { font-size: .82rem; }
.summary__secure { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: 0; font-size: .82rem; color: var(--ink-2); }
.summary__items { display: grid; gap: .8rem; }
.summary__item { display: grid; grid-template-columns: 46px 1fr auto; gap: .8rem; align-items: center; font-size: .88rem; }
.summary__thumb { position: relative; width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; }
.summary__thumb svg { width: 22px; height: 22px; }
.summary__thumb i { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ink-2); color: #fff; font-size: .7rem; font-style: normal; font-weight: 700; display: grid; place-items: center; }
.summary__name { line-height: 1.3; }
.summary .link-back { justify-self: center; font-size: .85rem; }

.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin: 0; display: grid; gap: 1rem; min-width: 0; }
.step__title { font-size: 1.25rem; font-weight: 700; padding: 0; float: left; width: 100%; margin-bottom: .2rem; }
.step label { display: grid; gap: .35rem; font-weight: 600; font-size: .87rem; }
.step label small { font-weight: 400; color: var(--ink-3); }
.step__nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .5rem; flex-wrap: wrap; }
.options { display: grid; gap: .7rem; }
.step .option { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s; }
.step .option:hover { border-color: #b8c6f8; }
.step .option:has(input:checked) { border-color: var(--primary); background: #f7f9ff; }
.option input { accent-color: var(--primary); width: 18px; height: 18px; }
.option__body { display: grid; gap: .15rem; }
.option__body b { font-size: .95rem; }
.option__body small { font-weight: 400; color: var(--ink-2); font-size: .83rem; }
.option__price { font-weight: 700; }
.option__icons { font-size: 1.4rem; }
.step .check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 500; }
.step .check input { margin-top: .2rem; width: 17px; height: 17px; accent-color: var(--primary); flex-shrink: 0; }
.check:has(input.is-invalid) { color: var(--danger); }
.review { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.review__block { background: var(--bg-alt); border-radius: 10px; padding: 1rem; font-size: .9rem; }
.review__block > div { display: flex; justify-content: space-between; margin-bottom: .4rem; }
.review__block .link-btn { color: var(--primary); }
.review__block p { margin: 0; color: var(--ink-2); }
.demo-note { margin: 0; font-size: .85rem; color: #92400e; background: #fef3c7; padding: .6rem .9rem; border-radius: 8px; }
.segmented label { font-weight: 600; }

/* ---------- Paiement & confirmation ---------- */
.paybox, .order-card, .bankbox { border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; display: grid; gap: 1.2rem; background: #fff; }
.paybox { box-shadow: var(--shadow); }
.paybox__head { display: flex; align-items: center; gap: .9rem; }
.paybox__head svg { color: var(--accent); }
.paybox__head small { display: block; color: var(--ink-3); }
.paybox__amount { margin-left: auto; font-size: 1.6rem; font-weight: 800; }
.paybox__actions { display: grid; gap: .7rem; justify-items: center; }
.demo-banner { background: #fef3c7; border: 1px solid #fcd34d; border-radius: 12px; padding: 1rem 1.2rem; color: #78350f; font-size: .9rem; }
.demo-banner p { margin: .3rem 0 0; }
.confirm { text-align: center; padding: 1rem 0 2rem; }
.confirm h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.confirm p { color: var(--ink-2); }
.confirm__check { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 800; margin: 0 auto 1.2rem; }
.confirm__check--ok { background: #d1fae5; color: #047857; }
.confirm__check--wait { background: #fef3c7; color: #92400e; }
.bankbox { background: var(--bg-alt); margin-bottom: 1.5rem; }
.bankbox h3, .order-card h3 { margin: 0; }
.bankbox dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.5rem; margin: 0; }
.bankbox dt { color: var(--ink-2); }
.bankbox dd { margin: 0; overflow-wrap: anywhere; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; background: #fff; border: 1px solid var(--line); padding: .1rem .4rem; border-radius: 6px; font-size: .9em; }
.order-card__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.2rem; font-size: .92rem; }
.order-card__cols p { color: var(--ink-2); margin: .4rem 0 0; }
.next-steps { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--ink-2); display: grid; gap: .35rem; }

/* ---------- Pages légales ---------- */
.legal { padding: 60px 0; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.2rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .header__search { display: none; }
}
@media (max-width: 960px) {
  .hero__inner, .pro, .contact { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero { padding: 56px 0 120px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .pdetail { grid-template-columns: 1fr; gap: 1.5rem; }
  .pdetail__media { min-height: 220px; }
  .partner { grid-template-columns: 1fr; padding: 1.6rem; gap: 1.5rem; }
  .checklist--cols { grid-template-columns: 1fr; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 1rem 16px; border-top: 1px solid var(--line); }
  .header__actions { margin-left: auto; }
}
@media (max-width: 680px) {
  .topbar__inner > span { display: none; }
  .topbar__inner { justify-content: center; }
  .cats { grid-template-columns: 1fr; }
  .toolbar__right, .toolbar__right .input, #search { width: 100%; min-width: 0; }
  .form__row, .review, .order-card__cols { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .section { padding: 48px 0; }
  .section--tight { padding: 28px 0; }
  .cart-row { grid-template-columns: 56px 1fr; }
  .cart-row__media { width: 56px; height: 56px; }
  .cart-row .qty { grid-column: 2; justify-self: start; }
  .cart-row__total { grid-column: 2; justify-items: start; grid-auto-flow: column; gap: 1rem; align-items: center; justify-content: start; }
  .stepper li { min-width: 0; padding: .55rem; justify-content: center; font-size: 0; }
  .stepper li span { font-size: .78rem; }
  .stepper .is-current { font-size: .8rem; flex: 2; }
  .step, .paybox, .order-card, .bankbox { padding: 1.2rem; }
  .step__nav { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .paybox__head { flex-wrap: wrap; }
}

/* ============================================================
 * Laravel : comptes clients, statuts, formulaires
 * ============================================================ */
.js .no-js-only { display: none; }
.tab { display: inline-block; }
.icon-link { display: inline-flex; align-items: center; gap: .4rem; height: 44px; padding: 0 .7rem; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .88rem; }
.icon-link:hover { border-color: var(--primary); color: var(--primary); }
.actions-row { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }
.notice ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.notice--error { background: #fee2e2; color: #991b1b; margin-bottom: 1rem; }
.notice--success { background: #d1fae5; color: #065f46; margin-bottom: 1rem; }
.summary__hint { margin: 0; font-size: .82rem; color: var(--ink-2); text-align: center; }
.empty-state--small { padding: 1.5rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); }
.confirm__check--ko { background: #fee2e2; color: #991b1b; }
.form + .form { margin-top: 1.5rem; }
.form .notice { margin: 0; }
.form .check { display: flex; align-items: flex-start; gap: .55rem; font-weight: 500; }
.form .check input { margin-top: .2rem; accent-color: var(--primary); }

/* Statuts */
.status { display: inline-block; padding: .25rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.status--warning { background: #fef3c7; color: #92400e; }
.status--info { background: var(--primary-soft); color: var(--primary-dark); }
.status--success { background: #d1fae5; color: #065f46; }
.status--danger { background: #fee2e2; color: #991b1b; }
.status--muted { background: var(--bg-alt); color: var(--ink-3); }

/* ---------- Abonnements ---------- */
.plans { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.plans legend { font-weight: 700; font-size: .92rem; margin-bottom: .5rem; }
.plan { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .15rem .7rem; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: .15s; }
.plan:hover { border-color: var(--primary); }
.plan:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.plan input { grid-row: span 2; accent-color: var(--primary); }
.plan__name { font-weight: 700; }
.plan__price { font-weight: 800; white-space: nowrap; }
.plan__month { grid-column: 2 / 4; color: var(--ink-3); font-size: .8rem; }
.price__from { text-decoration: none !important; }
.chip--sub { background: var(--primary-soft); color: var(--primary-dark); }
.subs { display: grid; gap: 1rem; }
.sub-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: grid; gap: .9rem; }
.sub-card--expired { opacity: .75; }
.sub-card__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.sub-card__head h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.sub-card__dates { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0; padding: .8rem; background: var(--bg-alt); border-radius: 10px; }
.sub-card__dates dt { font-size: .75rem; color: var(--ink-3); }
.sub-card__dates dd { margin: 0; }
.sub-card__key { margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.sub-card__foot { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.sub-card__note { margin: 0; font-size: .8rem; }

/* Espace client */
.account { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
.account__nav { display: grid; gap: .25rem; position: sticky; top: 90px; }
.account__nav a, .account__logout { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.account__nav a:hover { background: var(--bg-alt); color: var(--ink); }
.account__nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
.account__logout { width: 100%; border: 0; background: none; color: var(--danger); margin-top: .5rem; }
.account__logout:hover { background: #fee2e2; }
.account__main { min-width: 0; display: grid; gap: 1.2rem; align-content: start; }
.account__h2 { font-size: 1.2rem; margin: .5rem 0 0; }
.account-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.account-card { display: grid; gap: .3rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: .15s; }
.account-card svg { color: var(--primary); margin-bottom: .3rem; }
.account-card span { color: var(--ink-2); font-size: .85rem; }
.account-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.orders-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.orders-table__head, .orders-table__row { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr 1fr 60px; gap: 1rem; align-items: center; padding: .9rem 1.2rem; }
.orders-table__head { background: var(--bg-alt); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.orders-table__row { color: var(--ink); border-top: 1px solid var(--line); font-size: .92rem; }
.orders-table__row:hover { background: #f8faff; }
.orders-table__more { color: var(--primary); font-weight: 600; font-size: .85rem; text-align: right; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.order-head > div:first-child { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.tracking { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.tracking li { display: flex; align-items: center; gap: .55rem; padding: .8rem 1rem; border-radius: 10px; background: var(--bg-alt); color: var(--ink-3); font-weight: 600; font-size: .88rem; }
.tracking span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); font-size: .78rem; }
.tracking .is-done { background: #ecfdf5; color: #065f46; }
.tracking .is-done span { background: #10b981; border-color: #10b981; color: #fff; }
.keysbox { border: 1.5px solid #c4b5fd; background: #faf5ff; border-radius: 18px; padding: 1.5rem; display: grid; gap: .9rem; }
.keysbox h3 { display: flex; align-items: center; gap: .5rem; margin: 0; color: var(--c-licence); }
.keysbox__item { display: grid; gap: .4rem; justify-items: start; }
.license-key { font-size: 1rem; letter-spacing: .05em; padding: .5rem .8rem; user-select: all; }
.keysbox .muted { margin: 0; font-size: .85rem; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.pagination__item { padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: .88rem; color: var(--ink); }
.pagination__item.is-disabled { color: var(--ink-3); }
.pagination__info { color: var(--ink-2); font-size: .88rem; }

/* Connexion / inscription */
.auth__inner { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: 3rem; align-items: center; }
.auth__card { border: 1px solid var(--line); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow); display: grid; gap: 1rem; }
.auth__card h1 { font-size: 1.7rem; margin: 0; }
.auth__card .muted { margin: 0; }
.auth__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .88rem; }
.auth__switch { margin: 0; text-align: center; color: var(--ink-2); font-size: .92rem; }
.auth__aside { background: var(--bg-alt); border-radius: 20px; padding: 2.2rem; }
.auth__aside h2 { font-size: 1.4rem; }

@media (max-width: 960px) {
  .account { grid-template-columns: 1fr; }
  .account__nav { position: static; display: flex; flex-wrap: wrap; }
  .account__nav form { width: auto; }
  .account__logout { margin: 0; }
  .auth__inner { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
}
@media (max-width: 680px) {
  .icon-link__label { display: none; }
  .icon-link { padding: 0; width: 44px; justify-content: center; }
  .account-cards { grid-template-columns: 1fr; }
  .orders-table__head { display: none; }
  .orders-table__row { grid-template-columns: 1fr auto; gap: .3rem .8rem; }
  .orders-table__row > span:nth-child(2) { color: var(--ink-3); font-size: .82rem; grid-row: 2; }
  .orders-table__row > span:nth-child(3) { grid-row: 3; }
  .orders-table__row > span:nth-child(4) { grid-column: 2; grid-row: 1; }
  .orders-table__more { display: none; }
  .tracking li { font-size: .75rem; padding: .6rem; }
  .auth__card { padding: 1.3rem; }
}

/* Paiement GeniusPay (FCFA) */
.option__fcfa { color: var(--ink) !important; }
.option__fcfa b { color: var(--primary); }
.paybox__fcfa { margin: -.4rem 0 0; font-size: .9rem; color: var(--ink-2); text-align: right; }

/* Libellé bancaire GeniusPay */
.statement-notice { display: flex; gap: .6rem; align-items: flex-start; background: var(--primary-soft); color: var(--primary-dark); padding: .85rem 1.1rem; border-radius: 10px; font-size: .9rem; margin: 0 0 1.2rem; }
.statement-notice svg { flex-shrink: 0; margin-top: .15rem; }

/* Logos de marque (Microsoft, Office) */
.product__media:has(.product__logo) { background: #fff; border-bottom: 1px solid var(--line); }
.product__logo { max-width: 72%; max-height: 42%; object-fit: contain; }
.pdetail__media .product__logo { max-width: 65%; max-height: 35%; }
.pdetail__media:has(.product__logo) { border: 1px solid var(--line); }
.cart-row__media .product__logo, .summary__thumb .product__logo { max-width: 86%; max-height: 60%; }
.cart-row__media:has(.product__logo), .summary__thumb:has(.product__logo) { background: #fff; border: 1px solid var(--line); }
.partner__logos { width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 2rem 1.8rem; display: grid; gap: 1.4rem; justify-items: center; }
.partner__logos img { width: 100%; height: auto; }
.partner__logos img + img { width: 78%; }
.partner__logos span { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 700; color: var(--primary); border-top: 1px solid var(--line); padding-top: 1rem; width: 100%; justify-content: center; }

/* Photos produits */
.product__media { overflow: hidden; }
.product__media:has(.product__photo) { padding: 0; background: #f8fafc; }
.product__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product:hover .product__photo { transform: scale(1.04); }
.product__media .tag { z-index: 1; }
.pdetail__media .product__photo { border-radius: 18px; }
.cart-row__media, .summary__thumb { position: relative; overflow: hidden; }
.photo-note { position: absolute; right: 10px; bottom: 10px; z-index: 1; background: rgba(15, 23, 42, .65); color: #fff; font-size: .72rem; padding: .2rem .55rem; border-radius: 6px; }

/* ---------- Historique de commande, reçu ---------- */
.timeline { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: 0; }
.timeline__item { display: grid; grid-template-columns: 32px 1fr; gap: .8rem; position: relative; padding-bottom: 1rem; }
.timeline__item:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.timeline__dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 800; background: var(--bg-alt); border: 1.5px solid var(--line); }
.timeline__item--success .timeline__dot { background: #d1fae5; border-color: #a7f3d0; color: #047857; }
.timeline__item--info .timeline__dot { background: var(--primary-soft); border-color: #c7d4fe; color: var(--primary); }
.timeline__item--danger .timeline__dot { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.timeline__item b { display: block; font-size: .92rem; font-weight: 600; margin-top: .3rem; }
.timeline__item small { font-size: .8rem; }
.order-footer { display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.btn--danger-ghost { background: #fff; color: var(--danger); border-color: #fecaca; }
.btn--danger-ghost:hover { background: #fee2e2; }
.order-note { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; border-radius: 10px; padding: .7rem 1rem; font-size: .9rem; }
.checkout .step textarea.input { font-weight: 400; }
.verify-card { text-align: center; border: 1px solid var(--line); border-radius: 20px; padding: 2.4rem 2rem; box-shadow: var(--shadow-lg); background: #fff; }
.verify-card__seal { width: 84px; height: 84px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 10px 30px rgba(5, 150, 105, .35); }
.verify-card h1 { font-size: 1.7rem; margin-bottom: .3rem; }
.verify-card__list { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.4rem; text-align: left; margin: 1.8rem auto 1.2rem; max-width: 440px; }
.verify-card__list dt { color: var(--ink-2); }
.verify-card__list dd { margin: 0; }
.verify-card__foot { font-size: .8rem; margin: 0; }

/* ---------- Coordonnées, WhatsApp ---------- */
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-list svg { flex-shrink: 0; color: var(--primary); margin-top: .15rem; }
.contact-list b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.contact-list a { color: var(--ink); font-weight: 600; }
.contact-list a:hover { color: var(--primary); }
.btn--whatsapp { background: #25d366; color: #fff; }
.btn--whatsapp:hover { background: #1ebe5b; }
.footer a:not(.logo) svg, .footer__text svg { display: inline-block; vertical-align: -2px; margin-right: .3rem; }
.footer__text { display: block; color: #94a3b8; font-size: .92rem; }
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 150; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(37, 211, 102, .45); transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.08); }
@media (max-width: 960px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .footer__inner { grid-template-columns: 1fr; } .whatsapp-float { right: 14px; bottom: 14px; } }

/* ---------- Comptes administrateurs ---------- */
.admin-bar { background: #f59e0b; color: #1f1300; font-size: .82rem; }
.admin-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 34px; flex-wrap: wrap; }
.admin-bar svg { display: inline-block; vertical-align: -2px; }
.admin-bar a { color: #1f1300; font-weight: 700; text-decoration: underline; }
.icon-link--admin { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.icon-link--admin:hover { border-color: #f59e0b; color: #78350f; }
@media (max-width: 680px) { .admin-bar__inner > span { font-size: .75rem; } }

/* ============================================================
 * MOBILE — expérience optimisée petits écrans
 * ============================================================ */
.nav__search, .mobile-bar { display: none; }

@media (max-width: 860px) {
  /* Recherche en tête du menu mobile */
  .nav.is-open .nav__search { display: block; padding: .8rem 16px; }
  .nav__search .input { width: 100%; }
}

@media (max-width: 680px) {
  html { -webkit-text-size-adjust: 100%; }
  /* Champs à 16 px : évite le zoom automatique d'iPhone à chaque saisie */
  .input, input, select, textarea { font-size: 16px !important; }

  /* En-tête compact */
  .header__inner { height: 60px; gap: .6rem; }
  .nav { top: 60px; max-height: calc(100vh - 60px); overflow-y: auto; }
  .logo { font-size: 1.15rem; }
  .logo__mark { width: 30px; height: 30px; }
  .logo img { height: 32px; }
  .icon-link, .cart-btn { width: 42px; height: 42px; }

  /* Hero */
  .hero { padding: 36px 0 100px; }
  .hero h1 { font-size: 1.85rem; }
  .hero p { font-size: 1rem; }
  .hero__cta { flex-direction: column; margin: 1.4rem 0 1.4rem; }
  .hero__cta .btn { width: 100%; padding: .9rem; }
  .partner-pill { margin-bottom: 1.4rem; font-size: .8rem; }
  .hero__stats { gap: 0; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
  .hero__stats strong { font-size: 1.25rem; }
  .hero__stats span { font-size: .75rem; }

  /* Catégories : lignes compactes */
  .cats { margin-top: -80px; gap: .6rem; }
  .cat { display: grid; grid-template-columns: 44px 1fr; column-gap: .9rem; align-items: center; padding: .9rem 1rem; }
  .cat svg { margin: 0; grid-row: span 2; width: 44px; height: 44px; }
  .cat h3 { margin: 0; font-size: 1rem; }
  .cat p { font-size: .82rem; }

  /* Titres de section */
  .section__head--row { align-items: flex-start; }
  .section__head--row .btn { padding: .55rem .9rem; font-size: .85rem; }
  .section__head h2 { font-size: 1.45rem; }

  /* Grille produits : 2 colonnes, cartes compactes */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .product { border-radius: 12px; }
  .product:hover { transform: none; }
  .product__media { height: 118px; }
  .product__media svg { width: 46px; height: 46px; }
  .product__logo { max-width: 78%; max-height: 38%; }
  .tag { top: 7px; font-size: .62rem; padding: .15rem .4rem; }
  .tag--promo { left: 7px; }
  .tag--digital { right: 7px; }
  .product__body { padding: .65rem .7rem .75rem; }
  .product__cat { font-size: .62rem; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .product__name { font-size: .88rem; line-height: 1.25; margin: .2rem 0 .1rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .product__brand { font-size: .76rem; }
  .product .ms-partner { display: none; }
  .product__foot { flex-direction: column; align-items: stretch; gap: .5rem; padding-top: .6rem; }
  .product .price s { display: block; font-size: .72rem; }
  .product .price strong { font-size: 1.02rem; }
  .price--lg strong { font-size: 1.7rem; }
  .product__foot .btn { width: 100%; padding: .6rem; font-size: .85rem; }
  .product .stock { font-size: .7rem; margin-top: .45rem; }

  /* Catalogue : onglets défilants, recherche + tri côte à côte */
  .toolbar { gap: .7rem; margin-bottom: 1rem; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; flex-shrink: 0; }
  .toolbar__right { display: grid; grid-template-columns: 1fr auto; width: 100%; }
  .toolbar__right .input, #search { width: 100% !important; }
  .toolbar__right select.input { width: auto !important; }
  .page-head { padding: 22px 0 20px; }
  .page-head h1 { font-size: 1.6rem; }

  /* Avantages : 2 colonnes compactes */
  .features { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .feature { padding: 1rem; }
  .feature__icon { font-size: 1.4rem; margin-bottom: .4rem; }
  .feature h4 { font-size: .9rem; }
  .feature p { font-size: .8rem; }
  .cta-banner { padding: 1.6rem 1.3rem; }
  .cta-banner .btn { width: 100%; }
  .partner { padding: 1.3rem; }
  .partner__logos { width: 100%; max-width: 260px; }

  /* Fiche produit */
  .pdetail { margin-top: 1rem; }
  .pdetail__media { min-height: 200px; }
  .pdetail__info h1 { font-size: 1.5rem; }
  .buybox { padding: 1.1rem; }
  .pdetail__actions { display: grid; grid-template-columns: auto 1fr; }
  .pdetail__actions .btn { width: 100%; }
  .pdetail__actions .btn--ghost { grid-column: 1 / -1; }
  .qty button { width: 44px; }

  /* Produits similaires : carrousel horizontal */
  #relatedGrid { grid-auto-flow: column; grid-auto-columns: 46%; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; scrollbar-width: none; }
  #relatedGrid > * { scroll-snap-align: start; }

  /* Barre fixée en bas : fiche produit et panier */
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 140; align-items: center; justify-content: space-between; gap: .8rem;
    padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15, 23, 42, .08); }
  .mobile-bar__price { display: grid; line-height: 1.2; }
  .mobile-bar__price small { color: var(--ink-3); font-size: .72rem; }
  .mobile-bar__price b { font-size: 1.15rem; }
  .mobile-bar .btn { flex: 1; max-width: 220px; padding: .85rem 1rem; }
  body:has(.mobile-bar) { padding-bottom: 76px; }
  body:has(.mobile-bar) .whatsapp-float { bottom: 88px; }
  body:has(.mobile-bar) .toast { bottom: 90px; }

  /* Panier */
  .cart-row { padding: .9rem; gap: .6rem .9rem; }
  .qty--sm button { width: 38px; height: 38px; }
  .link-btn { padding: .4rem 0; font-size: .85rem; }

  /* Commande : récapitulatif (total) visible en premier */
  .checkout:has(#checkout) .summary { order: -1; padding: 1rem; gap: .6rem; }
  .checkout:has(#checkout) .summary__items, .checkout:has(#checkout) .summary__secure, .checkout:has(#checkout) .summary > .link-back { display: none; }
  .checkout:has(#checkout) .summary h3 { font-size: 1rem; }
  .step { padding: 1.1rem; }
  .step__nav .btn { width: 100%; }
  .options .option { padding: .85rem; gap: .7rem; }

  /* Espace client : menu en pastilles défilantes */
  .account__nav { flex-wrap: nowrap; overflow-x: auto; gap: .4rem; scrollbar-width: none; }
  .account__nav::-webkit-scrollbar { display: none; }
  .account__nav a, .account__logout { white-space: nowrap; flex-shrink: 0; border: 1px solid var(--line); padding: .55rem .8rem; font-size: .85rem; }
  .order-head { flex-direction: column; align-items: flex-start; }
  .order-head .actions-row { justify-content: flex-start; }
  .order-footer .btn { width: 100%; }
  .order-footer form { flex: 1; }

  /* Formulaires */
  .form { padding: 1.2rem; }
  .auth__card { border: 0; box-shadow: none; padding: .4rem 0; }
  .auth { padding-top: 24px; }

  /* Pied de page compact : liens sur 2 colonnes */
  .footer { padding: 36px 0 20px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
  .footer__inner > div:first-child { grid-column: 1 / -1; }
  .footer h5 { margin-bottom: .6rem; }
  .footer a:not(.logo) { margin-bottom: .45rem; font-size: .88rem; }
  .footer__bottom { margin-top: 1.6rem; font-size: .78rem; text-align: center; align-items: center; }
}

@media (max-width: 360px) {
  .grid { gap: .5rem; }
  .product__media { height: 100px; }
  .hero h1 { font-size: 1.6rem; }
}
