/* ==========================================================================
   BSA — Feuille de style
   Palette issue du logo : noir, gris du triangle, vert canard des filets.
   Typo : Barlow Condensed (titres, écho au lettrage condensé du logo) + Manrope.
   ========================================================================== */

:root {
  --ink: #232324;
  --ink-2: #3a3a3b;
  --ink-3: #656565;
  --grey: #6e6e6e; /* contraste ≥ 4,5:1 sur blanc (WCAG AA) */
  --grey-2: #b5b5b5;
  --grey-3: #dcdcdc;
  --line: #e6e6e6;
  --bg: #f4f5f5;
  --tile: #eeeeee;
  --paper: #ffffff;
  --teal: #1aa06d;
  --teal-2: #34c287;
  --teal-dark: #137a53;
  --teal-soft: #e4f5ed;
  --warn: #b7791f;
  --danger: #b4372f;

  --f-display: 'Poppins', system-ui, sans-serif;
  --f-body: 'Poppins', system-ui, sans-serif;

  --radius: 4px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .05), 0 8px 24px -12px rgba(20, 20, 20, .18);
  --shadow-lg: 0 24px 60px -24px rgba(20, 20, 20, .35);
  --container: 1240px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* filet de sécurité : jamais de défilement horizontal (n'empêche pas les éléments collants) */
}
/* Les éléments de grille et de flex peuvent rétrécir sous la largeur de leur contenu */
.cart > *, .shop > *, .product > *, .space > *, .od-grid > *, .admin__grid > *, .featured > *, .split > * { min-width: 0; }
img, svg { display: block; max-width: 100%; }

/* Barres de défilement : fines, sans flèches, gris neutre du navigateur */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }
@supports not selector(::-webkit-scrollbar) {
  html, * { scrollbar-width: thin; }
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.ic { width: 20px; height: 20px; flex: none; }

/* --- Signature : le double filet vert du logo ---------------------------- */
.rule {
  height: 9px;
  background: linear-gradient(var(--teal) 0 3px, transparent 3px 6px, var(--teal) 6px 9px);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: .14em; color: var(--teal);
}
.eyebrow::before {
  content: ''; width: 12px; height: 11px; background: currentColor;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.section { padding-block: 96px; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section__title { font-size: clamp(28px, 3.2vw, 42px); margin-top: 10px; }
.section__lead { color: var(--ink-3); max-width: 520px; }

/* --- Boutons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 1.5px solid transparent; border-radius: var(--radius);
  font-weight: 700; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn .ic { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .ic { transform: translateX(3px); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius);
  border: 0; background: var(--ink); color: #fff; transition: background .2s;
}
.btn-icon:hover { background: var(--teal); }
.btn-icon:disabled { background: var(--grey-3); color: var(--grey); cursor: not-allowed; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow .ic { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover { color: var(--teal); }
.link-arrow:hover .ic { transform: translateX(3px); }

/* --- Barre supérieure & en-tête ----------------------------------------- */
.topbar { background: var(--ink); color: #d7d7d3; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; gap: 24px; min-height: 38px; align-items: center; }
.topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar .ic { width: 16px; height: 16px; color: var(--teal-2); }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(0,0,0,.35); }
#site-header { display: contents; }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 64px; height: 64px; }

.nav { display: flex; gap: 2px; }
.nav__link { position: relative; padding: 10px 12px; font-weight: 600; font-size: 15px; color: var(--ink-2); border-radius: var(--radius); transition: color .2s; }
.nav__link::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }

/* Recherche de l'en-tête */
.hsearch { flex: 1; min-width: 180px; display: flex; align-items: center; height: 44px; background: var(--bg); border: 1.5px solid transparent; border-radius: 22px; padding: 0 4px 0 18px; transition: border-color .2s, background .2s, box-shadow .2s; }
.hsearch:focus-within { background: var(--paper); border-color: var(--teal); box-shadow: 0 0 0 4px rgba(26,160,109,.12); }
.hsearch input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 14px; }
.hsearch button { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: var(--teal); color: #fff; transition: background .2s; }
.hsearch button:hover { background: var(--teal-dark); }
.hsearch button .ic { width: 17px; height: 17px; }

/* Mon compte / Panier */
.header__actions { display: flex; align-items: center; gap: 28px; }
.action { display: inline-flex; align-items: center; gap: 12px; line-height: 1.25; transition: color .2s; }
.action__ic { position: relative; display: grid; place-items: center; }
.action__ic .ic { width: 28px; height: 28px; stroke-width: 1.6; }
.action__txt { display: flex; flex-direction: column; }
.action__txt strong { font-size: 15px; font-weight: 700; }
.action__txt small { font-size: 13px; color: var(--grey); }
.action:hover strong, .action.is-active strong { color: var(--teal); }
.count { position: absolute; top: -9px; left: -8px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 0 0 2px var(--paper); }
.count[hidden] { display: none; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; place-items: center; }
.burger .ic { width: 24px; height: 24px; }

/* --- Hero : diaporama de photos ------------------------------------------ */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--ink); isolation: isolate; }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slides { z-index: -1; }
.hero__slides::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35,35,36,.92) 0%, rgba(35,35,36,.72) 50%, rgba(35,35,36,.25) 100%); }
.hero__slide { background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 6s ease-out; }
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__inner { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 460px; padding-block: 64px; }
.hero__inner > div { max-width: 620px; }
.hero .eyebrow { color: var(--teal-2); }
.hero h1 { font-size: clamp(32px, 4vw, 52px); margin: 14px 0 18px; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: var(--teal-2); }
.hero__lead { font-size: 16px; color: rgba(255,255,255,.82); max-width: 540px; }
.hero__cta { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; margin-top: 30px; }
.hero__cta .btn { padding-inline: 22px; }
.hero__cta .btn--text { padding-inline: 8px; }
.hero__cta .btn--ghost { border-color: #fff; color: #fff; }
.hero__cta .btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--text { padding-inline: 8px; background: none; border-color: transparent; color: #fff; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: text-decoration-color .2s, color .2s; }
.btn--text:hover { color: var(--teal-2); text-decoration-color: currentColor; }
.hero__dots { position: absolute; left: 24px; bottom: 24px; display: flex; gap: 8px; }
.hero__dots button { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.35); transition: background .3s, width .3s; }
.hero__dots button[aria-selected="true"] { width: 48px; background: var(--teal-2); }

.live { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--teal); }
.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-2); box-shadow: 0 0 0 0 rgba(26,160,109,.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(26,160,109,0); } 100% { box-shadow: 0 0 0 0 rgba(26,160,109,0); } }

/* --- Bande des atouts ---------------------------------------------------- */
.perks { background: var(--paper); border-bottom: 1px solid var(--line); }
.perks__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 22px; }
.perk { display: flex; align-items: center; gap: 16px; }
.perk__ic { display: grid; place-items: center; flex: none; color: var(--teal); }
.perk__ic .ic { width: 32px; height: 32px; stroke-width: 1.6; }
.perk h3 { font-family: var(--f-body); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--ink); }
.perk p { font-size: 14px; color: var(--grey); line-height: 1.6; margin-top: 2px; }

/* --- Meilleure vente (bandeau compact) ----------------------------------- */
.best { position: relative; display: flex; flex-direction: column; background: var(--ink); color: #fff; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.best__badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: var(--teal); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.best__visual { display: grid; place-items: center; aspect-ratio: 1 / .82; padding: 24px; background: radial-gradient(circle at 50% 60%, #3a3a3c, var(--ink) 70%); }
.best__visual svg { width: 100%; max-width: 190px; filter: drop-shadow(0 18px 18px rgba(0,0,0,.4)); transition: transform .35s; }
.best:hover .best__visual svg { transform: scale(1.05) rotate(-2deg); }
.best__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.best__cat { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-2); }
.best h3 { font-family: var(--f-body); font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.best h3 a:hover { color: var(--teal-2); }
.best__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.best__meta small { color: rgba(255,255,255,.6); }
.best .live { font-size: 13px; color: var(--teal-2); }
.best__price { margin-top: auto; padding-top: 8px; }
.best__price strong { display: block; font-size: 26px; font-weight: 700; line-height: 1.1; }
.best__price small { font-size: 11px; color: rgba(255,255,255,.6); }
.best .btn { min-height: 42px; margin-top: 6px; }

/* --- Recherche + univers -------------------------------------------------- */
.section--tight { padding-block: 48px; }
.section--tight .section__head { margin-bottom: 20px; align-items: center; }
.finder { display: flex; gap: 12px; margin-bottom: 20px; position: relative; }
.search { flex: 1; display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0 6px 0 16px; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(26,160,109,.14); }
.search .ic { color: var(--ink-3); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 50px; font-size: 15px; }
.search .btn { min-height: 40px; padding: 0 18px; }
.filter-btn { display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; min-height: 54px; border: 1.5px solid var(--ink); background: var(--paper); border-radius: var(--radius); font-weight: 600; }
.filter-btn[aria-expanded="true"] { background: var(--ink); color: #fff; }
.filter-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 20; width: min(420px, 100%); background: var(--paper); border-radius: 6px; box-shadow: var(--shadow-lg); padding: 24px; display: none; }
.filter-pop.is-open { display: block; }
.filter-pop h4 { font-size: 15px; margin-bottom: 12px; }
.filter-pop .chips { margin-bottom: 18px; }
.filter-pop__row { display: flex; gap: 10px; margin-bottom: 18px; }
.filter-pop__row label { flex: 1; font-size: 13px; color: var(--ink-3); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Accordéon des univers : volets horizontaux (desktop), liste dépliable (mobile) */
.uacc { display: flex; gap: 8px; height: 440px; }
.uacc__item {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 6px; color: #fff;
  background: var(--ink) var(--img) center / cover no-repeat; isolation: isolate;
  transition: flex-grow .55s cubic-bezier(.4, 0, .2, 1);
}
.uacc__item::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(35,35,36,.72); transition: background .4s; }
.uacc__item.is-active { flex-grow: 5.5; }
.uacc__item.is-active::before { background: linear-gradient(90deg, rgba(35,35,36,.92) 0%, rgba(35,35,36,.7) 55%, rgba(35,35,36,.15) 100%); }
.uacc__item:not(.is-active):hover::before { background: rgba(19,122,83,.78); }

.uacc__tab {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 16px;
  padding: 22px 0; border: 0; background: none; color: inherit; text-align: left; transition: opacity .25s;
}
.uacc__icon { width: 34px; height: 34px; flex: none; stroke-width: 2.2; color: var(--teal-2); }
.uacc__label { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 600; font-size: 15px; white-space: nowrap; }
.uacc__chev { display: none; }
.uacc__item.is-active .uacc__tab { opacity: 0; pointer-events: none; }

.uacc__panel {
  position: absolute; left: 0; bottom: 0; width: min(440px, 100%); padding: 32px;
  opacity: 0; transform: translateY(12px); visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.uacc__item.is-active .uacc__panel { opacity: 1; transform: none; visibility: visible; transition: opacity .35s .3s, transform .35s .3s, visibility 0s; }
.uacc__count { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-2); }
.uacc__panel h3 { font-size: 30px; margin: 6px 0 8px; }
.uacc__panel > p { color: rgba(255,255,255,.8); font-size: 14px; }
.uacc__list { list-style: none; padding: 0; margin: 18px 0 22px; border-top: 1px solid rgba(255,255,255,.18); }
.uacc__list a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 14px; transition: color .2s, padding .2s; }
.uacc__list a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uacc__list a b { flex: none; font-weight: 600; }
.uacc__list a:hover { color: var(--teal-2); padding-left: 6px; }

/* --- Produits phares ------------------------------------------------------ */
.featured { display: grid; grid-template-columns: 3fr 1fr; gap: 16px; align-items: stretch; }
.top5 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.top5 .card__meta span:last-child { display: none; }

/* --- Bande services (pleine largeur, 3 colonnes séparées par un filet) ---- */
.services { background: var(--ink); color: #fff; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 44px; }
.service { padding: 4px 40px; }
.service:first-child { padding-left: 0; }
.service:last-child { padding-right: 0; }
.service + .service { border-left: 1px solid rgba(255,255,255,.16); }
.service__ic { display: block; color: var(--teal-2); margin-bottom: 14px; }
.service__ic .ic { width: 30px; height: 30px; stroke-width: 1.6; }
.service h3 { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.service p { font-size: 14px; color: rgba(255,255,255,.68); margin-top: 6px; max-width: 340px; }

/* --- Bannière Amazon ------------------------------------------------------- */
/* Couleurs de la charte Amazon : bleu nuit #232F3E / #131921, orange #FF9900, bouton jaune #FFD814 */
.amazon { position: relative; overflow: hidden; margin-top: 48px; background: linear-gradient(120deg, #131921 0%, #232F3E 60%, #37475A 100%); color: #fff; isolation: isolate; }
.amazon::before { content: ''; position: absolute; z-index: -1; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255,153,0,.22), transparent 65%); }
.amazon::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: #FF9900; }
.amazon__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-block: 64px; }
.amazon__logo { display: inline-flex; align-items: flex-start; height: 46px; margin-bottom: 22px; color: #fff; }
.amazon__logo svg { height: 100%; width: auto; }
.amazon__fallback { font-family: Arial, Helvetica, sans-serif; font-size: 34px; font-weight: 700; line-height: 1.2; }
/* --- BanniÃ¨re Â« Demander un devis Â» ------------------------------------------ */
.quote-cta { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; margin-top: 48px; padding: 48px; border-radius: 14px; color: #fff; background: linear-gradient(125deg, #0f5c40 0%, var(--teal-dark) 45%, var(--teal) 100%); }
.quote-cta::before { content: ''; position: absolute; z-index: -1; right: -80px; bottom: -120px; width: 380px; aspect-ratio: 1 / .87; background: rgba(255,255,255,.07); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.quote-cta::after { content: ''; position: absolute; z-index: -1; left: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(255,255,255,.05); }
.quote-cta__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.quote-cta__eyebrow .ic { width: 16px; height: 16px; }
.quote-cta h2 { font-size: clamp(24px, 2.8vw, 34px); margin: 16px 0 10px; }
.quote-cta__main > p { color: rgba(255,255,255,.82); font-size: 15px; max-width: 560px; }
.quote-cta__steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote-cta__steps li { display: flex; gap: 12px; align-items: flex-start; }
.quote-cta__steps b { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: #fff; color: var(--teal-dark); font-size: 14px; }
.quote-cta__steps strong { display: block; font-size: 14px; font-weight: 600; }
.quote-cta__steps span { font-size: 13px; color: rgba(255,255,255,.72); line-height: 1.4; }
.quote-cta__card { position: relative; display: grid; gap: 16px; padding: 28px; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.45); }
.quote-cta__badge { position: absolute; top: -13px; right: 20px; padding: 5px 12px; border-radius: 999px; background: #FFD814; color: #0F1111; font-size: 12px; font-weight: 700; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.quote-cta__card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.quote-cta__card li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.quote-cta__card li .ic { width: 20px; height: 20px; color: var(--teal); flex: none; }
.quote-cta__card .btn { min-height: 50px; }
.quote-cta__tel { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.quote-cta__tel .ic { width: 16px; height: 16px; color: var(--teal); }
.quote-cta__tel:hover { color: var(--teal); }
.amazon h2 { font-size: clamp(26px, 3vw, 38px); }
.amazon__txt > p { font-size: 15px; color: rgba(255,255,255,.78); margin-top: 10px; max-width: 520px; }
.amazon__perks { list-style: none; padding: 0; margin: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; font-weight: 500; }
.amazon__perks li { display: inline-flex; align-items: center; gap: 8px; }
.amazon__perks .ic { width: 18px; height: 18px; color: #FF9900; }
.amazon__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 999px; background: #FFD814; color: #0F1111; font-weight: 600; font-size: 15px; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: background .2s, transform .2s; }
.amazon__btn:hover { background: #F7CA00; transform: translateY(-1px); }
.amazon__btn .ic { width: 18px; height: 18px; }
.amazon__products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.amazon__card { background: #fff; border-radius: 10px; overflow: hidden; color: #0F1111; box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); transition: transform .3s; }
.amazon__card:nth-child(2) { transform: translateY(-18px); }
.amazon__card span { display: block; padding: 10px 12px 12px; font-size: 12px; font-weight: 500; line-height: 1.35; }
.amazon__card .pv__rule { background: linear-gradient(#FF9900 0 2px, transparent 2px 5px, #FF9900 5px 7px); }

/* --- Carte produit -------------------------------------------------------- */
.card { display: flex; flex-direction: column; background: var(--paper); border-radius: 6px; overflow: hidden; border: 1px solid transparent; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: var(--line); box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media { position: relative; display: block; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px; flex: 1; }
.card__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; }
.card__meta span:last-child { color: var(--grey); text-align: right; }
.card__title { font-family: var(--f-body); font-size: 15px; font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.card__title a:hover { color: var(--teal); }
.card__rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.card__foot { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.price { display: flex; flex-direction: column; line-height: 1.1; }
.price strong { font-family: var(--f-display); font-size: 21px; font-weight: 700; }
.price small { font-size: 12px; color: var(--ink-3); }

.badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; border-radius: 2px; }

.stars { --pct: 100%; display: inline-block; width: 74px; height: 14px; background: linear-gradient(90deg, var(--teal) var(--pct), var(--grey-3) var(--pct)); -webkit-mask: var(--star-mask) repeat-x left / 14.8px 14px; mask: var(--star-mask) repeat-x left / 14.8px 14px; --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3 6.3 6.9 1-5 4.8 1.2 6.9L12 17.8 5.9 21l1.2-6.9-5-4.8 6.9-1z'/%3E%3C/svg%3E"); }

.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock--ok { color: var(--teal); }
.stock--low { color: var(--warn); }
.stock--out { color: var(--danger); }

/* Visuel produit : triangle + pictogramme + double filet, comme le logo */
.pv { position: relative; aspect-ratio: 1 / .82; background: var(--tile); display: grid; place-items: center; overflow: hidden; }
.pv__tri { position: absolute; width: 58%; aspect-ratio: 1 / .87; top: 14%; background: var(--grey-3); clip-path: polygon(50% 0, 100% 100%, 0 100%); transition: background .3s; }
.pv__icon { position: relative; width: 38%; height: auto; color: var(--ink); stroke-width: 2.2; transition: transform .35s; }
.pv__rule { position: absolute; left: 0; right: 0; bottom: 22%; height: 7px; background: linear-gradient(var(--teal) 0 2px, transparent 2px 5px, var(--teal) 5px 7px); opacity: .9; }
.card:hover .pv__icon { transform: scale(1.06) rotate(-3deg); }
.card:hover .pv__tri { background: var(--grey-2); }
.pv[data-cat="mobilier"], .pv[data-cat="informatique"] { background: #e8e8e4; }
.pv[data-cat="hygiene"], .pv[data-cat="cafe"] { background: #eeeeea; }

/* --- Bandeau compte pro --------------------------------------------------- */
.cta { position: relative; overflow: hidden; background: var(--teal); color: #fff; border-radius: 6px; padding: 64px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta::before { content: ''; position: absolute; right: -60px; top: -40px; width: 460px; aspect-ratio: 1 / .87; background: rgba(255,255,255,.08); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.cta h2 { font-size: clamp(26px, 3vw, 40px); }
.cta p { color: rgba(255,255,255,.82); margin-top: 12px; max-width: 560px; }
.cta ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; position: relative; }
.cta li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.cta li .ic { width: 18px; height: 18px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.cta .btn--dark:hover { background: #000; }

/* --- Pied de page --------------------------------------------------------- */
#site-footer { background: var(--ink); color: #c9c9c5; margin-top: 96px; }
.footer__rule { height: 12px; background: linear-gradient(var(--teal) 0 4px, var(--ink) 4px 8px, var(--teal) 8px 12px); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr .8fr 1.1fr 1.2fr; gap: 36px; padding-block: 64px 48px; }

/* Pages de politiques (mentions légales, CGV, confidentialité…) */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; padding-block: 56px 0; }
.legal__nav { position: sticky; top: 110px; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.legal__nav a { padding: 8px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; color: var(--ink-3); }
.legal__nav a:hover { color: var(--ink); }
.legal__nav a[aria-current="page"] { border-color: var(--teal); color: var(--ink); font-weight: 600; }
.legal__body { max-width: 760px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.legal__body h2 { font-size: 20px; color: var(--ink); margin: 36px 0 10px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p + p, .legal__body p + ul, .legal__body ul + p { margin-top: 10px; }
.legal__body ul { padding-left: 20px; }
.legal__body li + li { margin-top: 4px; }
.legal__body a { color: var(--teal-dark); text-decoration: underline; }
.legal__body table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.legal__body th, .legal__body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal__body th { color: var(--ink); font-weight: 600; background: var(--bg); }
.legal__updated { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--grey); }
.legal__todo { background: #fdf3e1; color: var(--warn); padding: 0 4px; border-radius: 2px; font-weight: 600; }
@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .legal__nav { position: static; display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .legal__nav a { margin: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
  .legal__nav a[aria-current="page"] { border-color: var(--teal); background: var(--teal-soft); }
  .legal__body table { display: block; overflow-x: auto; }
}
.footer__brand p { margin-top: 18px; font-size: 14px; max-width: 340px; }
.brand--light img { width: 88px; height: 88px; }
#site-footer h4 { font-size: 16px; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 16px; }
#site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
#site-footer a:hover { color: var(--teal-2); }
.footer__contact li { display: flex; gap: 10px; align-items: center; }
.footer__contact .ic { width: 16px; height: 16px; color: var(--teal-2); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #8a8a86; }

/* --- Toast ---------------------------------------------------------------- */
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translate(-50%, 140%); display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 6px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; transition: transform .35s cubic-bezier(.2,.9,.3,1.2); max-width: calc(100% - 32px); }
.toast.is-visible { transform: translate(-50%, 0); }
.toast .ic { color: var(--teal-2); }
.toast--error .ic { color: #f08a80; }
.toast a { color: var(--teal-2); text-decoration: underline; white-space: nowrap; }

/* --- En-tête de page intérieure ------------------------------------------ */
.page-head { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); padding-block: 44px 40px; }
.page-head::after { content: ''; position: absolute; right: 6%; bottom: -30px; width: 260px; aspect-ratio: 1 / .87; background: var(--tile); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(30px, 3.6vw, 48px); margin-top: 10px; }
.page-head p { color: var(--ink-3); margin-top: 10px; max-width: 620px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-3); }
.crumbs a:hover { color: var(--teal); }
.crumbs span[aria-hidden] { color: var(--grey-2); }

/* --- Catalogue ------------------------------------------------------------ */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: var(--ink); }
/* Tous les univers restent visibles : une ligne répartie sur desktop, des pastilles qui passent à la ligne sinon */
.subnav__list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px; }
.subnav a { position: relative; padding: 15px 10px; font-size: 13.5px; font-weight: 500; color: #c9c9c5; white-space: nowrap; transition: color .2s, background .2s; }
.subnav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.subnav a.is-active { color: #fff; font-weight: 600; }
.subnav a.is-active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; background: var(--teal-2); }

.shop { display: grid; grid-template-columns: 1fr 3fr; gap: 32px; padding-block: 40px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 72px); background: var(--paper); border-radius: 6px; padding: 8px 22px 22px; max-height: calc(100vh - var(--header-h) - 96px); overflow: auto; }
.filters__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.filters__head h2 { font-size: 18px; }
.filters__reset { border: 0; background: none; color: var(--teal); font-weight: 700; font-size: 13px; padding: 0; }
.filters__close { display: none; border: 0; background: none; padding: 4px; }
/* Filtres en menus déroulants */
.fgroup { border-bottom: 1px solid var(--line); }
.fgroup:last-of-type { border-bottom: 0; }
.fgroup summary { display: flex; align-items: center; gap: 8px; padding: 16px 0; cursor: pointer; list-style: none; user-select: none; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary:hover h3 { color: var(--teal); }
.fgroup summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.fgroup h3 { font-family: var(--f-body); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; transition: color .2s; }
.fgroup__count { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; }
.fgroup__count[hidden] { display: none; }
.fgroup__chev { margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s; }
.fgroup[open] .fgroup__chev { transform: rotate(-135deg) translate(-2px, -2px); }
.fgroup__body { padding-bottom: 16px; }
.fgroup[open] .fgroup__body { animation: fgroup-open .25s ease; }
@keyframes fgroup-open { from { opacity: 0; transform: translateY(-4px); } }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.check input { appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--grey-2); border-radius: 3px; display: grid; place-items: center; flex: none; margin: 0; cursor: pointer; transition: all .15s; }
.check input:checked { background: var(--teal); border-color: var(--teal); }
.check input:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check small { margin-left: auto; color: var(--grey); font-size: 12px; }
.brand-list { max-height: 220px; overflow: auto; padding-right: 4px; }
.range { display: flex; gap: 8px; align-items: center; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); outline: 0; transition: border-color .2s, box-shadow .2s; font-size: 15px; font-weight: 500; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0,127,109,.12); }
.textarea { min-height: 140px; resize: vertical; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; cursor: pointer; }
.switch input { appearance: none; width: 40px; height: 22px; background: var(--grey-3); border-radius: 11px; position: relative; margin: 0; cursor: pointer; transition: background .2s; flex: none; }
.switch input::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked { background: var(--teal); }
.switch input:checked::after { transform: translateX(18px); }

.shop-search { margin-bottom: 18px; padding-right: 16px; }
.shop-search input { height: 52px; }
.toolbar {display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar__count { font-weight: 600; }
.toolbar__count strong { font-family: var(--f-display); font-size: 20px; }
.toolbar__right { display: flex; gap: 10px; align-items: center; }
.toolbar .select { width: auto; min-height: 42px; }
.filters-toggle { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-filters:empty { display: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; background: var(--teal-soft); color: var(--teal-dark); border: 0; border-radius: 999px; font-size: 13px; font-weight: 700; }
.tag .ic { width: 14px; height: 14px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 72px 24px; background: var(--paper); border-radius: 6px; }
.empty h3 { font-size: 24px; margin-bottom: 8px; }
.empty p { color: var(--ink-3); margin-bottom: 20px; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.pager button { min-width: 42px; height: 42px; border: 1.5px solid var(--line); background: var(--paper); border-radius: var(--radius); font-weight: 700; }
.pager button:hover { border-color: var(--ink); }
.pager button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* --- Fiche produit -------------------------------------------------------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding-block: 40px 24px; align-items: start; }
/* Photo produit fixe : pas de vignettes ni d'animation */
.gallery { position: sticky; top: calc(var(--header-h) + 24px); }
.gallery__main { border-radius: 6px; overflow: hidden; position: relative; }
.gallery__main .pv { aspect-ratio: 1 / .9; }
.pv--zoom .pv__icon { width: 44%; }
.gallery .pv__icon, .gallery .pv__tri { transition: none; transform: none; }

.info__brand { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--teal); }
.info h1 { font-size: clamp(26px, 2.8vw, 36px); margin: 10px 0 14px; }
.info__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 13px; color: var(--ink-3); padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.info__desc { margin: 20px 0; color: var(--ink-2); }
.info__price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.info__price strong { font-family: var(--f-display); font-size: 42px; font-weight: 700; line-height: 1; }
.info__price span { color: var(--ink-3); font-size: 14px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--paper); }
.tier { padding: 12px 14px; text-align: center; transition: background .2s; }
.tier + .tier { border-left: 1px solid var(--line); }
.tier small { display: block; font-size: 12px; color: var(--ink-3); }
.tier strong { font-size: 16px; }
.tier em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--teal); }
.tier.is-active { background: var(--teal-soft); }
.stockbox { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--paper); border-radius: 6px; border-left: 3px solid var(--teal); margin-bottom: 20px; font-size: 14px; }
.stockbox.is-updated .stock { animation: flash 1s; }
@keyframes flash { 30% { opacity: .2; } }
.buy { display: flex; gap: 12px; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.qty button { width: 44px; height: 50px; border: 0; background: none; display: grid; place-items: center; }
.qty button .ic { width: 16px; height: 16px; }
.qty input { width: 52px; border: 0; text-align: center; font-weight: 700; outline: 0; background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm button { width: 34px; height: 38px; }
.qty--sm input { width: 38px; }
.buy .btn { flex: 1; }
.assure { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; font-size: 14px; }
.assure li { display: flex; align-items: center; gap: 10px; }
.assure .ic { color: var(--teal); width: 18px; height: 18px; }

.tabs { margin-top: 56px; }
.tabs__list { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs__list button { position: relative; padding: 14px 20px; border: 0; background: none; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.tabs__list button[aria-selected="true"] { color: var(--ink); }
.tabs__list button[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--teal); }
/* Changement d'univers dans le catalogue : léger fondu, sans rechargement */
.grid.is-swapping { animation: grid-in .35s ease; }
@keyframes grid-in { from { opacity: 0; transform: translateY(6px); } }


/* Carrousel « Dans le même univers » : défilement horizontal + flèches */
.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; padding: 4px 2px 8px; scrollbar-width: none; outline: 0; cursor: grab; overscroll-behavior-x: contain; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__track:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.carousel__track.is-dragging a { pointer-events: none; }
/* Flèches posées sur les côtés, centrées verticalement sur les cartes */
.carousel__btn { position: absolute; top: 40%; z-index: 3; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: 0 6px 18px -6px rgba(0,0,0,.35), 0 0 0 1px var(--line); transform: translateY(-50%); transition: background .2s, color .2s, opacity .2s, transform .2s; }
.carousel__btn--prev { left: -14px; }
.carousel__btn--next { right: -14px; } /* reste dans la marge du conteneur, animation comprise */
.carousel__btn .ic { width: 20px; height: 20px; }
.carousel__btn--prev .ic { transform: rotate(180deg); }
.carousel__btn:hover:not(:disabled) { background: var(--ink); color: #fff; transform: translateY(-50%) scale(1.06); }
.carousel__btn:disabled { opacity: 0; pointer-events: none; }

/* Indicateurs de défilement */
.carousel::before, .carousel::after { content: ''; position: absolute; top: 0; bottom: 8px; width: 56px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .25s; }
.carousel::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.carousel::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.carousel.has-left::before, .carousel.has-right::after { opacity: 1; }
.carousel.is-hinting .carousel__btn--next:not(:disabled) { animation: carousel-nudge 1.6s ease-in-out infinite; }
.carousel.is-hinting .carousel__btn--next:not(:disabled)::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--teal); animation: carousel-ring 1.6s ease-out infinite; }
.carousel.is-peeking .carousel__track > * { animation: carousel-peek 1.3s cubic-bezier(.45, 0, .2, 1); }
@keyframes carousel-nudge { 0%, 60%, 100% { transform: translate(0, -50%); } 30% { transform: translate(6px, -50%); } }
@keyframes carousel-ring { 0% { opacity: .7; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes carousel-peek { 0%, 100% { transform: none; } 45% { transform: translateX(-56px); } }
@media (prefers-reduced-motion: reduce) {
  .carousel.is-hinting .carousel__btn--next, .carousel.is-hinting .carousel__btn--next::after, .carousel.is-peeking .carousel__track > * { animation: none; }
}

.tabs__panel {padding: 28px 0; max-width: 820px; color: var(--ink-2); }
.tabs__panel p + p { margin-top: 12px; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.specs th { width: 40%; font-weight: 600; color: var(--ink-3); }
.specs tr:nth-child(odd) td, .specs tr:nth-child(odd) th { background: var(--paper); }

/* --- Panier --------------------------------------------------------------- */
.cart { display: grid; grid-template-columns: 1fr 380px; gap: 32px; padding-block: 40px; align-items: start; }
.cart__list { background: var(--paper); border-radius: 6px; }
.line { display: grid; grid-template-columns: 96px 1fr auto auto auto; gap: 20px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .pv { border-radius: 4px; }
.line h3 { font-family: var(--f-body); font-size: 15px; font-weight: 700; line-height: 1.3; }
.line h3 a:hover { color: var(--teal); }
.line p { font-size: 13px; color: var(--ink-3); }
.line__total { font-family: var(--f-display); font-size: 19px; font-weight: 700; min-width: 100px; text-align: right; }
.line__remove { border: 0; background: none; color: var(--grey); padding: 6px; }
.line__remove:hover { color: var(--danger); }
.summary { position: sticky; top: calc(var(--header-h) + 24px); background: var(--paper); border-radius: 6px; padding: 26px; }
.summary h2 { font-size: 20px; margin-bottom: 16px; }
.summary dl { margin: 0; display: grid; gap: 10px; font-size: 15px; }
.summary dl div { display: flex; justify-content: space-between; }
.summary dt { color: var(--ink-3); }
.summary dd { margin: 0; font-weight: 700; }
.summary__total { padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line); }
.summary__total dd { font-family: var(--f-display); font-size: 26px; line-height: 1; }
.progress { margin: 18px 0; font-size: 13px; color: var(--ink-3); }
.progress__bar { height: 6px; border-radius: 3px; background: var(--tile); margin-top: 8px; overflow: hidden; }
.progress__bar span { display: block; height: 100%; background: var(--teal); transition: width .4s; }
.summary .btn { margin-top: 8px; }
.summary__note { font-size: 12px; color: var(--ink-3); margin-top: 14px; display: flex; gap: 8px; }
.summary__note .ic { width: 16px; height: 16px; color: var(--teal); }

/* --- Pages éditoriales, formulaires ------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.prose h2 { font-size: clamp(26px, 2.8vw, 36px); margin: 10px 0 18px; }
.prose p { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--paper); border-radius: 6px; padding: 28px; border-top: 3px solid var(--teal); }
.stat strong { font-family: var(--f-display); font-size: 38px; font-weight: 700; line-height: 1; display: block; }
.stat span { color: var(--ink-3); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; background: var(--paper); border-radius: 6px; padding: 28px; counter-increment: step; }
.step::before { content: '0' counter(step); font-family: var(--f-display); font-weight: 700; font-size: 48px; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--grey); }
.step h3 { font-size: 18px; margin: 16px 0 8px; }
.step p { font-size: 14px; color: var(--ink-3); }
/* --- À propos ------------------------------------------------------------ */
.ab-hero { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); padding-block: 40px 64px; }
.ab-hero::after { content: ''; position: absolute; left: -80px; bottom: -60px; width: 320px; aspect-ratio: 1 / .87; background: var(--tile); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.ab-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.ab-hero__text .crumbs { margin-bottom: 28px; }
.ab-hero h1 { font-size: clamp(30px, 3.4vw, 46px); margin: 14px 0 18px; }
.ab-hero p { color: var(--ink-3); max-width: 540px; }
.ab-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ab-mosaic { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 1.25; }
.ab-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }
.ab-mosaic__main { grid-row: 1 / 3; }
.ab-mosaic__badge { position: absolute; left: -24px; bottom: 28px; display: grid; gap: 2px; padding: 14px 18px; background: var(--ink); color: rgba(255,255,255,.8); border-radius: 6px; font-size: 12px; box-shadow: var(--shadow); border-left: 4px solid var(--teal); }
.ab-mosaic__badge strong { font-family: var(--f-display); font-size: 22px; color: #fff; }
.ab-figures { margin-top: -32px; position: relative; z-index: 2; }
.ab-figures .stat { box-shadow: var(--shadow); }

.ab-story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ab-story__visual { position: relative; margin: 0; }
.ab-story__visual > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.ab-story__logo { position: absolute; right: -20px; bottom: -20px; padding: 10px; background: var(--paper); border-radius: 8px; box-shadow: var(--shadow); }
.ab-story__logo img { display: block; width: 88px; height: 88px; }
.ab-story__text p { color: var(--ink-2); margin-top: 14px; }
.ab-story__text .section__title { margin-bottom: 6px; }
.ab-checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ab-checks li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.ab-checks .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); }

/* Frise verticale « De la commande à votre bureau » : la barre se remplit au défilement */
.ab-journey { background: var(--paper); border-block: 1px solid var(--line); }
.ab-journey__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.ab-journey__head { position: sticky; top: 120px; }
.ab-journey__head .section__lead { margin-top: 14px; }
.ab-journey__meter { margin-top: 28px; font-family: var(--f-display); font-size: 56px; font-weight: 700; line-height: 1; color: var(--teal); }
.ab-journey__meter span { font-variant-numeric: tabular-nums; }
.tl { position: relative; padding-left: 76px; }
.tl__rail { position: absolute; left: 27px; top: 0; bottom: 0; width: 4px; border-radius: 2px; background: var(--grey-3); }
.tl__fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; border-radius: 2px; background: var(--teal); }
.tl__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.tl__step { position: relative; }
.tl__dot { position: absolute; left: -76px; top: 22px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--paper); border: 3px solid var(--grey-3); color: var(--grey); transition: border-color .3s, background .3s, color .3s, transform .3s; }
.tl__dot .ic { width: 24px; height: 24px; }
.tl__card { display: grid; grid-template-columns: 220px 1fr; overflow: hidden; background: var(--bg); border-radius: 8px; border: 1px solid var(--line); opacity: .55; transform: translateY(12px); transition: opacity .4s, transform .4s, border-color .4s; }
.tl__card img { width: 100%; height: 100%; min-height: 160px; object-fit: cover; display: block; filter: grayscale(.6); transition: filter .4s; }
.tl__body { padding: 22px 24px; }
.tl__when { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.tl__body h3 { font-size: 20px; margin: 8px 0 8px; }
.tl__body p { color: var(--ink-3); font-size: 14px; }
.tl__step.is-reached .tl__dot { border-color: var(--teal); background: var(--teal); color: #fff; transform: scale(1.06); }
.tl__step.is-reached .tl__card { opacity: 1; transform: none; border-color: var(--teal-soft); }
.tl__step.is-reached .tl__card img { filter: none; }
.tl__step.is-reached .tl__when { color: var(--teal-dark); }
@media (prefers-reduced-motion: reduce) { .tl__dot, .tl__card, .tl__card img { transition: none; } .tl__card { transform: none; } }

.ab-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ab-tile { position: relative; display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; }
.ab-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.ab-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(20,20,20,.78)); }
.ab-tile__label { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; display: grid; color: #fff; }
.ab-tile__label strong { font-family: var(--f-display); font-size: 17px; }
.ab-tile__label small { color: rgba(255,255,255,.75); font-size: 12px; }
.ab-tile:hover img { transform: scale(1.06); }

.ab-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ab-values article { padding: 28px; background: var(--paper); border-radius: 6px; border-top: 3px solid var(--teal); }
.ab-values .ic { width: 30px; height: 30px; color: var(--teal); }
.ab-values h3 { font-size: 18px; margin: 14px 0 8px; }
.ab-values p { color: var(--ink-3); font-size: 14px; }

@media (max-width: 1000px) {
  .ab-hero__grid, .ab-story, .ab-journey__grid { grid-template-columns: 1fr; gap: 36px; }
  .ab-journey__head { position: static; }
  .ab-journey__meter { display: none; }
  .ab-gallery { grid-template-columns: repeat(2, 1fr); }
  .ab-mosaic__badge { left: 12px; }
}
@media (max-width: 640px) {
  .ab-hero { padding-block: 28px 56px; }
  .ab-mosaic { aspect-ratio: 1; }
  .ab-story__logo { right: 10px; bottom: -16px; }
  .ab-story__logo img { width: 64px; height: 64px; }
  .ab-values { grid-template-columns: 1fr; }
  .tl { padding-left: 56px; }
  .tl__rail { left: 19px; }
  .tl__dot { left: -56px; width: 42px; height: 42px; top: 16px; }
  .tl__dot .ic { width: 18px; height: 18px; }
  .tl__card { grid-template-columns: 1fr; }
  .tl__card img { min-height: 0; aspect-ratio: 16 / 9; }
  .tl__body { padding: 16px 18px; }
}

.about-visual { position: relative; aspect-ratio: 1 / .9; background: var(--paper); border-radius: 6px; display: grid; place-items: center; overflow: hidden; }
.about-visual img { width: 60%; }

.panel { background: var(--paper); border-radius: 6px; padding: 36px; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__note { font-size: 13px; color: var(--ink-3); }
.form__ok { display: none; align-items: center; gap: 10px; padding: 14px 16px; background: var(--teal-soft); color: var(--teal-dark); border-radius: 4px; font-weight: 600; font-size: 14px; }
.form__ok.is-visible { display: flex; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list .ic-wrap { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); flex: none; }
.contact-list strong { display: block; }
.contact-list span { color: var(--ink-3); font-size: 14px; }

/* --- Connexion / inscription ---------------------------------------------- */
.auth-page { padding: 56px 16px; }
.login { max-width: 440px; margin-inline: auto; background: var(--paper); border-radius: 8px; box-shadow: var(--shadow); padding: 40px; }
.login__head { margin-bottom: 28px; }
.login__head h1 { font-size: 28px; }
.login__head p { color: var(--ink-3); margin-top: 6px; font-size: 14px; }
.login__head a, .field__row a { color: var(--teal); font-weight: 600; }
.login__head a:hover, .field__row a:hover { text-decoration: underline; }
.field__row { display: flex; justify-content: space-between; gap: 12px; }
.field__row a { font-size: 12px; }
.pwd { position: relative; display: block; }
.pwd .input { padding-right: 84px; }
.pwd__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 6px 10px; font-size: 12px; font-weight: 600; color: var(--teal); }

/* Robustesse du mot de passe et règles à respecter */
.pwd-meter { display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: center; gap: 6px; margin: -4px 0 10px; }
.pwd-meter span { height: 4px; border-radius: 2px; background: var(--grey-3); transition: background .2s; }
.pwd-meter b { min-width: 76px; text-align: right; font-size: 12px; font-weight: 600; color: var(--grey); }
.pwd-meter[data-level="1"] span:nth-child(-n+1) { background: var(--danger); }
.pwd-meter[data-level="2"] span:nth-child(-n+2) { background: var(--warn); }
.pwd-meter[data-level="3"] span:nth-child(-n+3) { background: var(--teal-2); }
.pwd-meter[data-level="4"] span { background: var(--teal); }
.pwd-meter[data-level="1"] b { color: var(--danger); }
.pwd-meter[data-level="2"] b { color: var(--warn); }
.pwd-meter[data-level="3"] b, .pwd-meter[data-level="4"] b { color: var(--teal-dark); }
.pwd-rules { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 13px; color: var(--grey); }
.pwd-rules li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pwd-rules svg { flex: none; width: 14px; height: 14px; padding: 2px; border-radius: 50%; background: var(--grey-3); color: #fff; transition: background .2s; }
.pwd-rules li.is-ok { color: var(--teal-dark); }
.pwd-rules li.is-ok svg { background: var(--teal); }
@media (max-width: 640px) { .pwd-rules { grid-template-columns: 1fr; } }
.login__alt { display: grid; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--ink-3); }
.login .btn, .signup .btn--block { min-height: 48px; }

.signup { max-width: 1040px; margin-inline: auto; display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.signup__main { background: var(--paper); border-radius: 8px; box-shadow: var(--shadow); padding: 40px; }
.fset { border: 0; padding: 0; margin: 0 0 8px; display: grid; gap: 16px; }
.fset legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 16px; font-weight: 600; font-size: 16px; }
.fset legend span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 13px; font-weight: 700; }
.fset + .fset { padding-top: 24px; border-top: 1px solid var(--line); }
.signup__side { position: sticky; top: calc(var(--header-h) + 24px); background: var(--ink); color: #fff; border-radius: 8px; padding: 32px 28px; }
.signup__side h2 { font-size: 20px; margin-bottom: 22px; }
.signup__side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.signup__side li { display: flex; gap: 14px; }
.signup__side li .ic { width: 26px; height: 26px; color: var(--teal-2); flex: none; stroke-width: 1.6; }
.signup__side strong { display: block; font-size: 15px; font-weight: 600; }
.signup__side span { display: block; font-size: 13px; color: rgba(255,255,255,.65); margin-top: 2px; }
.form__ok a { text-decoration: underline; }
.form [hidden] { display: none !important; }

/* Choix déjà client / nouveau client */
.ctype { border: 0; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ctype__card {
  position: relative; display: flex; flex-direction: column; padding: 22px; background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ctype__card input { position: absolute; opacity: 0; pointer-events: none; }
.ctype__card:hover { border-color: var(--grey-2); transform: translateY(-2px); }
.ctype__radio { position: absolute; top: 18px; right: 18px; width: 22px; height: 22px; border: 1.5px solid var(--grey-2); border-radius: 50%; display: grid; place-items: center; transition: all .2s; }
.ctype__radio::after { content: ''; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s; }
.ctype__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--bg); color: var(--ink-3); margin-bottom: 16px; transition: background .2s, color .2s; }
.ctype__ic .ic { width: 26px; height: 26px; }
.ctype__card strong { font-size: 16px; font-weight: 600; padding-right: 28px; }
.ctype__desc { font-size: 13px; line-height: 1.6; color: var(--ink-3); margin-top: 6px; }
.ctype__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 16px; }
.ctype__tags em { font-style: normal; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-3); transition: background .2s, color .2s; }

.ctype__card:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(26,160,109,.12), var(--shadow); }
.ctype__card:has(input:checked) .ctype__radio { background: var(--teal); border-color: var(--teal); }
.ctype__card:has(input:checked) .ctype__radio::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.ctype__card:has(input:checked) .ctype__ic { background: var(--teal); color: #fff; }
.ctype__card:has(input:checked) .ctype__tags em { background: var(--teal-soft); color: var(--teal-dark); }
.ctype__card:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 3px; }

.form__ok--err { background: #fbeceb; color: var(--danger); }
.demo-hint { margin-top: 24px; padding: 14px 16px; border: 1px dashed var(--grey-2); border-radius: 8px; font-size: 12px; color: var(--ink-3); display: grid; gap: 6px; }
.demo-hint button { display: flex; justify-content: space-between; gap: 8px; border: 0; background: var(--bg); border-radius: 6px; padding: 8px 10px; font-size: 13px; font-weight: 600; text-align: left; }
.demo-hint button:hover { background: var(--teal-soft); }
.demo-hint button span { font-weight: 400; color: var(--grey); }
.summary__remise dt, .summary__remise dd { color: var(--teal); }

/* --- Espace client ---------------------------------------------------------- */
.space { padding-block: 40px; display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }

/* Navigation latérale de l'espace client */
.space-nav { position: sticky; top: calc(var(--header-h) + 20px); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px 12px 12px; }
.space-nav__user { padding: 0 12px 18px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.space-nav__user strong { display: block; font-size: 16px; font-weight: 600; }
.space-nav__user span { display: block; font-size: 13px; color: var(--grey); overflow: hidden; text-overflow: ellipsis; }
.space-nav nav { display: grid; gap: 2px; }
.space-nav hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.space-nav a, .space-nav button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 12px; border: 0; border-radius: 8px; background: none; font-size: 15px; color: var(--ink-2); text-align: left; transition: background .15s, color .15s; }
.space-nav .ic { width: 20px; height: 20px; flex: none; stroke-width: 1.6; }
.space-nav a:hover, .space-nav button:hover { background: var(--bg); }
.space-nav a.is-active { background: var(--teal-soft); color: var(--teal); font-weight: 500; }

.space-view { display: grid; gap: 20px; min-width: 0; outline: 0; }
.space-view__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.space-view__head h1 { font-size: clamp(24px, 2.6vw, 32px); }
.space-view__head p { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.space-view__head .btn { min-height: 44px; }
.space-empty { padding: 28px 12px; text-align: center; color: var(--ink-3); font-size: 14px; }
.space-empty .ic { display: inline-block; vertical-align: -4px; width: 18px; height: 18px; margin-right: 4px; }
.space-empty a, .muted a { color: var(--teal); font-weight: 500; }
.infos--1 { grid-template-columns: 1fr; }

/* Commandes : tableau condensé */
.orders-table tbody tr { cursor: pointer; transition: background .15s; }
.orders-table tbody tr:hover { background: var(--bg); }
.orders-table td:first-child a { color: var(--ink); }
.orders-table tbody tr:hover td:first-child a { color: var(--teal); }
.orders-table { table-layout: fixed; }
.orders-table th:nth-child(1) { width: 22%; }
.orders-table th:nth-child(3) { width: 20%; }
.orders-table th:nth-child(4) { width: 15%; text-align: right; }
.orders-table th:nth-child(5) { width: 84px; }
.orders-table td { padding: 10px; }
.orders-table td:nth-child(4) { text-align: right; white-space: nowrap; }
.orders-table td:nth-child(2) { white-space: normal; }
.orders-table__items small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: none; }
.orders-table__act { text-align: right; white-space: nowrap; }
.orders-table .pill { white-space: normal; text-align: left; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink-3); vertical-align: middle; transition: border-color .2s, color .2s, background .2s; }
.icon-btn .ic { width: 16px; height: 16px; }
.icon-btn:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
.icon-btn + .icon-btn { margin-left: 4px; }
.icon-btn.is-loading { opacity: .6; cursor: progress; }
.dl-btn .ic:last-child:not(:first-child) { width: 13px; height: 13px; }

/* Bouton de téléchargement PDF */
.dl-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: border-color .2s, color .2s, background .2s; }
.dl-btn .ic { width: 15px; height: 15px; }
.dl-btn:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
.dl-btn.is-loading { opacity: .6; cursor: progress; }
.dl-btn.is-loading .ic { animation: dl-pulse .8s ease-in-out infinite alternate; }
@keyframes dl-pulse { to { transform: translateY(3px); } }
.od-doc + .od-doc { margin-top: 10px; }

/* Détail d'une commande */
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-3); justify-self: start; }
.back-link .ic { width: 16px; height: 16px; transform: rotate(180deg); }
.back-link:hover { color: var(--teal); }
.od-head { display: grid; gap: 26px; }
.od-head__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.od-head h1 { font-size: 20px; }
.od-head .muted { margin-top: 2px; }
.od-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.od-side { display: grid; gap: 20px; }
.od-side__title { font-size: 18px; margin-bottom: 10px; }
.od-side__title ~ .od-side__title { margin-top: 22px; }
.od-side p { font-size: 15px; line-height: 1.6; }
.od-table th { text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.od-table th:not(:first-child), .od-table td:not(:first-child) { text-align: right; }
.od-table td:first-child { white-space: normal; }
.od-name { font-weight: 600; color: var(--ink); white-space: normal !important; }
.od-table a:hover .od-name { color: var(--teal); }
.od-missing { color: #a06a12; font-weight: 600; }
.od-totals { margin: 16px 0 0 auto; max-width: 360px; display: grid; gap: 14px; font-size: 15px; }
.od-totals div { display: flex; justify-content: space-between; gap: 16px; }
.od-totals dd { margin: 0; }
.od-totals__remise { color: var(--teal); }
.od-totals__total { padding-top: 16px; border-top: 2px solid var(--ink); font-size: 20px; font-weight: 700; }
.od-doc { min-height: 44px; font-size: 14px; }
.od-doc .ic { width: 18px; height: 18px; }
.od-reorder { display: block; margin: 16px auto 0; border: 0; background: none; color: var(--teal); font-weight: 600; font-size: 14px; }
.od-reorder:hover { text-decoration: underline; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 20px 44px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); }
.timeline li.is-last::before { box-shadow: inset 0 0 0 7px var(--teal), inset 0 0 0 12px #fff; }
.timeline li:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 26px; bottom: 2px; width: 2px; background: var(--grey-3); }
.timeline strong { display: block; font-size: 14px; font-weight: 600; }
.timeline span { display: block; font-size: 13px; color: var(--grey); line-height: 1.6; }

/* Barre de progression : n étapes, couleur selon le statut (mêmes teintes que les pastilles) */
.track--ok { --c: var(--teal); --c-text: var(--teal-dark); }
.track--info { --c: var(--ink); --c-text: var(--ink); }
.track--warn { --c: #e0a33a; --c-text: #8a5a0c; }
.track { --p: 0; --n: 5; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); }
.track::before, .track::after { content: ''; position: absolute; top: 14px; left: calc(50% / var(--n)); height: 4px; border-radius: 2px; }
.track::before { right: calc(50% / var(--n)); background: var(--tile); }
.track::after { width: calc((100% - 100% / var(--n)) * var(--p)); background: var(--c, var(--teal)); transition: width .6s ease; }
.track li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.track__dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tile); color: #fff; }
.track__dot .ic { width: 16px; height: 16px; stroke-width: 2.2; }
.track__label { font-size: 13px; font-weight: 500; color: var(--grey); line-height: 1.3; }
.track li.is-done .track__dot, .track li.is-current .track__dot { background: var(--c, var(--teal)); }
.track li.is-done .track__label, .track li.is-current .track__label { color: var(--ink); }
.track li.is-current .track__dot { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c, var(--teal)) 18%, transparent); }
.track li.is-current .track__label { font-weight: 600; }
.track--off { padding: 10px 14px; background: var(--bg); border-radius: 6px; font-size: 13px; color: var(--ink-3); text-align: center; }

/* Adresses de livraison */
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.addr { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; }
.addr--default { border-color: var(--teal); }
.addr header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.addr footer { display: flex; gap: 14px; margin-top: auto; padding-top: 8px; }
.addr footer button { border: 0; background: none; padding: 0; font-size: 13px; font-weight: 500; color: var(--teal); }
.addr footer button:last-child { color: var(--ink-3); }
.addr footer button:hover { text-decoration: underline; }
.addr--new { align-items: center; justify-content: center; min-height: 170px; border-style: dashed; color: var(--ink-3); font-weight: 500; cursor: pointer; }
.addr--new .ic { width: 26px; height: 26px; }
.addr--new:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }

/* Retours : recherche de commande, motifs, articles */
.combo { position: relative; }
.combo[hidden] { display: none; }
.combo__field { position: relative; display: block; }
.combo__field .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--grey); pointer-events: none; }
.combo__field .input { padding-left: 42px; }
.combo__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 300px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); }
.combo__list li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; cursor: pointer; outline: 0; }
.combo__list li:hover, .combo__list li:focus { background: var(--teal-soft); }
.combo__list li small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo__empty { color: var(--grey); cursor: default !important; background: none !important; }
.picked { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--teal); border-radius: 10px; background: var(--teal-soft); }
.picked b { display: block; }
.picked .pill { margin-left: 4px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--teal); font-weight: 600; font-size: 13px; white-space: nowrap; }
.link-btn:hover { text-decoration: underline; }
.reasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.reason { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .2s, background .2s; }
.reason input { position: absolute; opacity: 0; pointer-events: none; }
.reason .ic { width: 20px; height: 20px; color: var(--grey); flex: none; }
.reason:hover { border-color: var(--grey-2); }
.reason:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); }
.reason:has(input:checked) .ic { color: var(--teal); }
.reason:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: -6px; }
.ritems { display: grid; gap: 8px; }
.ritem { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.ritem:has(input[type="checkbox"]:checked) { border-color: var(--teal); background: #f6fbf9; }
.ritem.is-disabled { opacity: .5; cursor: not-allowed; }
.ritem input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.ritem__name { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; }
.ritem__name small { display: block; font-weight: 400; }
.ritem__qty { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--grey); }
.ritem__qty .input { width: 70px; min-height: 36px; padding: 4px 8px; }
#return-fields { display: grid; gap: 16px; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: 8px; font-size: 14px; line-height: 1.6; }
.notice > .ic { flex: none; margin-top: 2px; }
.notice strong { display: block; }
.notice--warn { background: #fdf4e3; color: #7a5310; border: 1px solid #f1d9a8; }
.notice--ok { background: var(--teal-soft); color: var(--teal-dark); border: 1px solid #bfe5d2; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--paper); border-radius: 8px; box-shadow: var(--shadow); }
.tile__ic { color: var(--teal); margin-bottom: 6px; }
.tile__ic .ic { width: 26px; height: 26px; stroke-width: 1.6; }
.tile small { font-size: 13px; color: var(--ink-3); }
.tile strong { font-size: 26px; font-weight: 700; line-height: 1.2; }
.tile__sub { font-size: 12px; color: var(--grey); }
.tile--locked { background: repeating-linear-gradient(135deg, var(--paper) 0 10px, #f7f7f7 10px 20px); box-shadow: none; border: 1px dashed var(--grey-2); }
.tile--locked .tile__ic, .tile--locked strong { color: var(--grey); }
.tile--locked strong { font-size: 18px; }
.meter { display: block; height: 6px; border-radius: 3px; background: var(--tile); overflow: hidden; margin: 6px 0 2px; }
.meter span { display: block; height: 100%; background: var(--teal); border-radius: 3px; }
.meter--sm { height: 4px; max-width: 140px; }
.panel-box { background: var(--paper); border-radius: 8px; box-shadow: var(--shadow); padding: 22px 24px; min-width: 0; }
.panel-box__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-box__head h2 { font-size: 18px; }
.space__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.muted { color: var(--grey); font-size: 13px; }
td .muted { display: block; font-size: 12px; margin-top: 2px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.table-wrap { overflow-x: auto; margin-inline: -4px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td b, .table td:nth-child(2) { white-space: nowrap; }
.table a { color: var(--teal); }
/* Administration (grand écran) : cellules plus serrées, noms de produits sur plusieurs lignes */
.admin .table th, .admin .table td { padding-inline: 10px; }
.admin .table td b { white-space: normal; }
.table__empty { text-align: center; color: var(--ink-3); padding: 28px 12px !important; font-size: 14px; }
.table__empty .ic { display: inline-block; vertical-align: -4px; width: 18px; height: 18px; margin-right: 4px; }
/* Statuts : étiquette Poppins, angle léger (comme les boutons), pastille de couleur + filet */
.pill {
  --pc: var(--ink-3); --pb: var(--bg);
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 9px;
  border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--pc) 22%, transparent);
  background: var(--pb); color: var(--pc);
  font-family: var(--f-body); font-size: 12px; font-weight: 500; line-height: 1.35; letter-spacing: .01em; white-space: nowrap;
}
.pill::before { content: ''; width: 7px; height: 7px; flex: none; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.pill--ok { --pc: var(--teal-dark); --pb: var(--teal-soft); }
.pill--info { --pc: var(--ink); --pb: #eef0ef; }
.pill--warn { --pc: #8a5a0c; --pb: #fbf3e4; }
.pill--danger { --pc: var(--danger); --pb: #fbefee; }
.pill--off { --pc: var(--grey); --pb: transparent; border-style: dashed; }
.infos { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.infos dt { font-size: 12px; color: var(--grey); }
.infos dd { margin: 2px 0 0; font-weight: 500; font-size: 14px; word-break: break-word; }

/* --- Administration : menu groupé, en-têtes, graphique, rubriques --------- */
.admin__group { margin: 14px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.42); }
.admin__group:first-child { margin-top: 0; }
.admin__nav hr { border: 0; border-top: 1px solid rgba(255,255,255,.1); margin: 10px 0; }
.admin__nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 6px; background: none; font-size: 14px; color: rgba(255,255,255,.72); text-align: left; }
.admin__nav button .ic { width: 18px; height: 18px; }
.admin__nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin__shop { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; color: #fff !important; font-weight: 500; }
.admin__shop .ic { width: 16px; height: 16px; }
.admin__shop:hover { border-color: var(--teal-2); background: rgba(26,160,109,.15); }
.admin__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.admin__head .btn .ic { width: 16px; height: 16px; }
.filters-row { display: flex; gap: 8px; flex-wrap: wrap; }
.td-wrap { white-space: normal; min-width: 160px; font-size: 13px; }
/* Précisions d'une demande de retour (administration) */
.ret-details { margin-top: 6px; font-size: 12px; }
.ret-details summary { cursor: pointer; color: var(--teal-dark); font-weight: 600; }
.ret-details dl { display: grid; gap: 4px; margin: 6px 0 0; }
.ret-details dl div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; }
.ret-details dt { color: var(--grey); }
.ret-details dd { margin: 0; color: var(--ink-2); white-space: normal; }
.nowrap { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }

.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__axis { font-family: var(--f-body); font-size: 11px; fill: var(--grey); }
.chart__bar { fill: color-mix(in srgb, var(--teal) 70%, #fff); transition: fill .15s; }
.chart__bar.is-current { fill: var(--teal); }
.chart__hit { fill: transparent; cursor: default; }
.chart__col.is-hover .chart__bar { fill: var(--teal-dark); }
.chart__col.is-hover .chart__hit { fill: rgba(26,160,109,.05); }
.chart__tip { position: absolute; transform: translate(-50%, calc(-100% - 10px)); padding: 8px 12px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; white-space: nowrap; pointer-events: none; box-shadow: var(--shadow); }
.chart__tip strong { display: block; font-size: 14px; }
.chart__tip span { color: rgba(255,255,255,.7); text-transform: capitalize; }
.chart__table { margin-top: 8px; font-size: 13px; }
.chart__table summary { cursor: pointer; color: var(--teal); font-weight: 500; }
.chart__table .table { margin-top: 8px; }

.todo { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.todo a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: 14px; transition: background .15s; }
.todo a:hover { background: var(--bg); }
.todo a > .ic:last-child { width: 14px; height: 14px; margin-left: auto; color: var(--grey); }
.todo__ic { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; }
.todo__ic .ic { width: 16px; height: 16px; }
.todo__ic--warn { background: #fbf3e4; color: #8a5a0c; }
.todo__ic--info { background: #eef0ef; color: var(--ink); }
.todo__ic--danger { background: #fbefee; color: var(--danger); }
.todo__ic--off { background: var(--bg); color: var(--grey); }

.amazon-status { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 8px; background: #232F3E; color: #fff; }
.amazon-status > div { flex: 1; min-width: 200px; }
.amazon-status strong { display: block; font-size: 14px; }
.amazon-status .muted { color: rgba(255,255,255,.65); }
.amazon-status__dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #FF9900; box-shadow: 0 0 0 4px rgba(255,153,0,.25); }
.amazon-status .btn { margin-left: auto; color: #fff; border-color: rgba(255,255,255,.4); flex: none; }
.amazon-status .btn:hover { background: #fff; color: #0F1111; }
.amazon-status .btn .ic { width: 15px; height: 15px; }

.integrations { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.integration { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--paper); border-radius: 8px; box-shadow: var(--shadow); }
.integration header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.integration__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); }
.integration__ic .ic { width: 22px; height: 22px; }
.integration h3 { font-family: var(--f-body); font-size: 16px; font-weight: 600; letter-spacing: 0; }
.integration > p { font-size: 13px; color: var(--ink-3); }
.integration footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.integration__result { font-size: 12px; color: var(--teal-dark); background: var(--teal-soft); padding: 8px 10px; border-radius: 6px; }

.settings { display: grid; gap: 20px; }
.settings .fset legend { font-weight: 600; font-size: 16px; }
.settings__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 18px; }
.settings__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admins { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.admins li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--ink-3); }
.admins strong { display: block; color: var(--ink); font-size: 14px; }
.admins .ic { width: 20px; height: 20px; color: var(--teal); }

/* --- Page 404 --------------------------------------------------------------- */
.notfound { padding-block: 72px; text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; }
.notfound__code { font-size: clamp(90px, 16vw, 160px); font-weight: 700; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 2px var(--teal); }
.notfound h1 { font-size: clamp(26px, 3vw, 36px); }
.notfound > p { color: var(--ink-3); max-width: 520px; }
.notfound__search { width: min(560px, 100%); margin-top: 10px; text-align: left; }
.notfound__search input { height: 52px; }
.notfound__links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; margin-top: 8px; }

/* --- Connexion administration ---------------------------------------------- */
.admin-login { display: grid; grid-template-columns: minmax(380px, 5fr) 7fr; min-height: 100vh; background: var(--bg); }
.admin-login__side { position: sticky; top: 0; height: 100vh; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 44px 48px; background: var(--ink); color: #fff; }
.admin-login__side::after { content: ''; position: absolute; z-index: -1; right: -18%; bottom: -12%; width: 85%; aspect-ratio: 1 / .87; background: #2c2c2e; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.admin-login__brand { align-self: flex-start; }
.admin-login__brand img { width: 64px; height: 64px; border-radius: 8px; background: #fff; }
.admin-login__side .eyebrow { color: var(--teal-2); }
.admin-login__side h1 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.15; margin: 12px 0 14px; }
.admin-login__side p { color: rgba(255,255,255,.72); max-width: 420px; }
.admin-login__side ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.admin-login__side li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: rgba(255,255,255,.88); }
.admin-login__side li .ic { flex: none; color: var(--teal-2); width: 20px; height: 20px; }
.admin-login__foot { font-size: 12px; color: rgba(255,255,255,.5); }
.admin-login__main { display: grid; place-items: center; align-content: center; gap: 20px; padding: 48px 24px; }
.admin-login__main .login { width: 100%; border-top: 4px solid var(--teal); }
.admin-login__main h2 { font-size: 24px; }
.admin-login__lock { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); }
.admin-login__lock .ic { width: 22px; height: 22px; }
.admin-login__secure { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--grey); }
.admin-login__secure span { display: inline-flex; align-items: center; gap: 6px; }
.admin-login__secure .ic { width: 14px; height: 14px; color: var(--teal); }
.admin-login__back { margin-top: 20px; text-align: center; font-size: 13px; }
.admin-login__back a { color: var(--ink-3); }
.admin-login__back a:hover { color: var(--teal); }
.admin__user { display: grid; gap: 2px; padding: 12px; border-radius: 8px; background: rgba(255,255,255,.06); font-size: 13px; }
.admin__user strong { color: #fff; font-weight: 600; }
.admin__user span { color: rgba(255,255,255,.6); overflow: hidden; text-overflow: ellipsis; }

/* --- Administration --------------------------------------------------------- */
/* Barre du haut et tiroir de l'admin (affichés sous 1100 px) */
.admin__topbar { display: none; position: fixed; z-index: 90; top: 0; left: 0; right: 0; height: 60px; align-items: center; gap: 12px; padding: 0 14px; background: var(--ink); color: #fff; box-shadow: 0 4px 16px -8px rgba(0,0,0,.5); }
.admin__topbar img { width: 36px; height: 36px; border-radius: 6px; background: #fff; }
.admin__topbar-title { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin__burger { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: none; color: #fff; }
.admin__burger .ic { width: 22px; height: 22px; }
.admin__scrim { position: fixed; inset: 0; z-index: 94; background: rgba(0,0,0,.5); animation: scrim-in .25s ease; }
.admin__scrim[hidden] { display: none; }
@keyframes scrim-in { from { opacity: 0; } }
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin__side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 20px 16px; background: var(--ink); color: #fff; }
.admin__brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; }
.admin__brand img { width: 48px; height: 48px; border-radius: 6px; background: #fff; }
.admin__nav { display: grid; gap: 2px; }
.admin__nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; font-size: 14px; color: rgba(255,255,255,.72); transition: background .2s, color .2s; }
.admin__nav a .ic { width: 18px; height: 18px; }
.admin__nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin__nav a.is-active { background: rgba(26,160,109,.18); color: #fff; }
.admin__nav b { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--teal); font-size: 11px; text-align: center; }
.admin__nav b:empty { display: none; }
.admin__side-foot { margin-top: auto; display: grid; gap: 10px; font-size: 13px; color: rgba(255,255,255,.6); }
.admin__side-foot a:hover { color: #fff; }
.admin__side-foot button { border: 1px solid rgba(255,255,255,.2); background: none; color: rgba(255,255,255,.8); border-radius: 6px; padding: 8px; font-size: 12px; }
.admin__side-foot button:hover { border-color: #fff; color: #fff; }
.admin__main { padding: 32px; display: grid; gap: 20px; align-content: start; min-width: 0; }
.admin__head h1 { font-size: 28px; }
.admin__head p::first-letter { text-transform: uppercase; }
.admin__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; background: var(--paper); border-radius: 8px; box-shadow: var(--shadow); border-top: 3px solid var(--teal); }
.kpi__ic { color: var(--teal); margin-bottom: 8px; }
.kpi__ic .ic { width: 22px; height: 22px; }
.kpi small { font-size: 13px; color: var(--ink-3); }
.kpi strong { font-size: 26px; font-weight: 700; line-height: 1.25; }
.kpi > span:last-child { font-size: 12px; color: var(--grey); }
.kpi--warn { border-top-color: #e0a33a; }
.kpi--warn .kpi__ic { color: #c98a1f; }
.kpi--danger { border-top-color: var(--danger); }
.kpi--danger .kpi__ic { color: var(--danger); }
.btn--sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.actions { white-space: nowrap; }
.actions .btn + .btn { margin-left: 6px; }
.mini { display: inline-flex; align-items: center; gap: 4px; }
.mini .input { width: 78px; min-height: 34px; padding: 4px 8px; font-size: 13px; }
.mini span { font-size: 12px; color: var(--grey); }
.input--sm { width: 200px; min-height: 36px; padding: 6px 12px; font-size: 13px; }
.select--sm { width: auto; min-height: 32px; padding: 4px 8px; font-size: 12px; }
.pill-select { background-color: var(--pb, var(--bg)); color: var(--pc, var(--ink-3)); display: inline-block; width: auto; min-height: 30px; padding: 4px 28px 4px 10px; border: 1px solid color-mix(in srgb, var(--pc, #777) 22%, transparent); border-radius: var(--radius); font-weight: 500; cursor: pointer; }
.pill-select::before { display: none; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 150px 1fr 90px; align-items: center; gap: 12px; font-size: 13px; }
.bars li b { text-align: right; font-weight: 600; }
.bars__track { height: 10px; background: var(--tile); border-radius: 5px; overflow: hidden; }
.bars__track span { display: block; height: 100%; background: var(--teal); border-radius: 5px; }

/* --- Responsive ----------------------------------------------------------- */
/* Tableaux de l'administration en fiches empilées en dessous de 1240 px : aucun défilement horizontal */
@media (max-width: 1240px) {
  .admin .table-wrap { overflow: visible; margin-inline: 0; }
  .admin .table, .admin .table tbody { display: block; }
  .admin .table thead { display: none; }
  .admin .table tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .admin .table tr:last-child { border-bottom: 0; }
  .admin .table td { display: block; padding: 0; border: 0; min-width: 0; white-space: normal; }
  .admin .table td:first-child { grid-column: 1 / -1; }
  .admin .table td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--grey); }
  .admin .table td.table__empty { grid-column: 1 / -1; }
  .admin .table .actions { justify-self: start; }
  .admin .table select { width: 100%; max-width: 220px; min-width: 0; }
}

@media (max-width: 1100px) {
  .nav__link { padding: 10px 8px; font-size: 14px; }
  .header__inner { gap: 16px; }
  .header__actions { gap: 18px; }
  .action__txt small { display: none; }
  .featured { grid-template-columns: 1fr; }
  .best { flex-direction: row; }
  .best__visual { width: 40%; aspect-ratio: auto; }
  .quote-cta { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; }
  .quote-cta__steps { grid-template-columns: 1fr; gap: 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 122px; }
  .topbar__hide { display: none !important; }
  .topbar__inner { justify-content: center; }
  .burger { display: grid; }
  .header__inner { flex-wrap: wrap; gap: 8px 16px; padding-block: 8px 12px; min-height: 0; }
  .header__actions { margin-left: auto; }
  .action__txt { display: none; }
  .hsearch { order: 5; flex-basis: 100%; height: 42px; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.3); display: none; }
  .nav.is-open { display: flex; }
  .nav__link { padding: 14px 8px; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--teal); }

  .hero__inner { min-height: 400px; padding-block: 48px 64px; }
  .hero__slides::after { background: rgba(35,35,36,.78); }
  .perks__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .cta, .split, .product { grid-template-columns: 1fr; }
  .signup { grid-template-columns: 1fr; }
  .signup__side { position: static; }
  .cta { padding: 32px; }
  .section { padding-block: 64px; }

  .uacc { flex-direction: column; height: auto; gap: 6px; }
  .uacc__item { flex: none; transition: none; }
  .uacc__item.is-active::before { background: linear-gradient(rgba(35,35,36,.88), rgba(35,35,36,.7)); }
  .uacc__tab { position: relative; inset: auto; width: 100%; flex-direction: row; justify-content: flex-start; padding: 14px 16px; }
  .uacc__icon { width: 26px; height: 26px; }
  .uacc__label { writing-mode: horizontal-tb; transform: none; flex: 1; }
  .uacc__chev { display: grid; transition: transform .25s; }
  .uacc__item.is-active .uacc__tab { opacity: 1; pointer-events: auto; }
  .uacc__item.is-active .uacc__chev { transform: rotate(45deg); }
  .uacc__item.is-active .uacc__label, .uacc__item.is-active .uacc__icon { display: none; }
  .uacc__panel { position: static; width: auto; display: none; padding: 0 20px 22px; transform: none; }
  .uacc__item.is-active .uacc__tab { position: absolute; top: 0; right: 0; width: auto; }
  .uacc__item.is-active .uacc__panel { display: block; padding-top: 20px; }
  .subnav { position: static; }
  .subnav__list { justify-content: flex-start; gap: 6px; padding-block: 12px; }
  .subnav a { padding: 6px 12px; font-size: 12.5px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; }
  .subnav a.is-active { background: var(--teal); border-color: var(--teal); }
  .subnav a.is-active::after { display: none; }
  .shop { grid-template-columns: 1fr; }
  .filters-toggle { display: inline-flex; }
  .filters { position: fixed; inset: 0 auto 0 0; z-index: 90; width: min(360px, 88vw); max-height: none; border-radius: 0; transform: translateX(-105%); transition: transform .3s; box-shadow: var(--shadow-lg); }
  .filters.is-open { transform: none; }
  .filters__close { display: block; }
  .scrim { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.45); }
  .gallery { position: static; }
  .cart { grid-template-columns: 1fr; }
  .summary { position: static; }
}

@media (max-width: 1100px) {
  .carousel__track { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
  .tiles, .kpis { grid-template-columns: 1fr 1fr; }
  .space__grid, .admin__grid, .od-grid { grid-template-columns: 1fr; }
  .space { grid-template-columns: 1fr; gap: 20px; }
  .space-nav { position: static; padding: 16px 10px 10px; }
  .space-nav nav { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .space-nav hr { display: none; }
  .admin { grid-template-columns: 1fr; }
  /* Connexion admin : bandeau compact, formulaire visible dès l'ouverture */
  .admin-login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .admin-login__side { position: static; height: auto; flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; padding: 16px 20px; }
  .admin-login__side::after { display: none; }
  .admin-login__brand img { width: 44px; height: 44px; }
  .admin-login__side .eyebrow, .admin-login__side p, .admin-login__side ul, .admin-login__foot { display: none; }
  .admin-login__side h1 { font-size: 18px; margin: 0; }
  .admin-login__main { align-content: start; padding: 40px 20px; }
  /* Menu admin en tiroir (« casier ») sur tablette et téléphone */
  .admin__topbar { display: flex; }
  .admin__side { position: fixed; z-index: 95; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); height: auto; transform: translateX(-105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 0 40px rgba(0,0,0,.35); }
  .admin.is-menu-open .admin__side { transform: none; }
  .admin__main { padding: 80px 16px 24px; } /* sous la barre du haut (60 px) */
}

@media (max-width: 800px) {
  .services__grid { grid-template-columns: 1fr; padding-block: 28px; }
  .service, .service:first-child, .service:last-child { padding: 18px 0; }
  .service + .service { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .amazon__inner { grid-template-columns: 1fr; gap: 32px; padding-block: 44px; }
  .amazon__card:nth-child(2) { transform: none; }
  .amazon__btn { width: 100%; justify-content: center; }
}

@media (max-width: 700px) {
  /* « Créer un compte pro » et « Demander un devis » restent côte à côte */
  .hero__cta { display: grid; grid-template-columns: auto auto; justify-content: start; }
  .hero__cta .btn--primary { grid-column: 1 / -1; justify-self: start; }
  .hero__cta .btn { padding-inline: 18px; font-size: 14px; }
}

@media (max-width: 600px) {
  .container { padding-inline: 16px; }
  .admin-login__main { padding: 20px 16px 32px; }
  .admin-login__main .login { padding: 28px 22px; }
  .brand img { width: 52px; height: 52px; }
  .perks__grid { grid-template-columns: 1fr; gap: 12px; padding-block: 18px; }
  .perk p { font-size: 13px; }
  .perk__ic .ic { width: 26px; height: 26px; }
  .finder { flex-direction: column; }
  .search .btn span { display: none; }
  .filter-btn { min-height: 54px; justify-content: center; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .top5 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .top5 .card:nth-child(3) { display: none; }
  .best { flex-direction: column; }
  .best__visual { width: auto; }
  .amazon__logo { height: 38px; }
  .uacc__panel { padding: 0 16px 20px; }
  .uacc__panel h3 { font-size: 22px; }
  .card__body { padding: 12px; }
  .card__meta span:last-child { display: none; }
  .price strong { font-size: 18px; }
  .btn-icon { width: 36px; height: 36px; }
  .tabs__list button { padding: 12px 12px; font-size: 14px; }
  .carousel__track { grid-auto-columns: 72%; gap: 10px; }
  .carousel__btn { width: 38px; height: 38px; }
  .carousel__btn--prev { left: -6px; }
  .carousel__btn--next { right: -6px; }
  .buy { flex-direction: column; }
  .tiers { font-size: 13px; }
  .line { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; padding: 14px; }
  .line .qty { grid-column: 2; justify-self: start; }
  .line__total { grid-column: 3; grid-row: 2; font-size: 20px; min-width: 0; }
  .line__remove { grid-column: 3; grid-row: 1; justify-self: end; }
  .form__row, .stats, .steps, .footer__grid { grid-template-columns: 1fr; }
  .panel { padding: 24px; }
  .login, .signup__main { padding: 28px 20px; }
  .ctype { grid-template-columns: 1fr; }
  .tiles, .kpis, .infos { grid-template-columns: 1fr; }
  /* Admin sur téléphone : menu en grille compacte */
  /* Tableau des commandes en cartes empilées */
  .orders-table, .orders-table tbody { display: block; }
  .orders-table thead { display: none; }
  .orders-table tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .orders-table tr:last-child { border-bottom: 0; }
  .orders-table td { display: block; padding: 0; border: 0; }
  .orders-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .orders-table td:nth-child(3) { grid-row: 3; }
  .orders-table td:nth-child(4) { grid-column: 2; grid-row: 1; }
  .orders-table__act { grid-column: 2; grid-row: 3; }
  .od-head__top { flex-direction: column-reverse; gap: 8px; }
  .track__label { font-size: 11px; }
  .track__dot { width: 28px; height: 28px; }
  .track::before, .track::after { top: 12px; }
  .panel-box { padding: 18px 14px; }
  .bars li { grid-template-columns: 1fr 80px; }
  .bars__track { grid-column: 1 / -1; grid-row: 2; }
  .auth-page { padding: 24px 12px; }
  .toolbar .select { max-width: 170px; }
}

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