/* =====================================================================
   Pelety Direct — système de design du site public
   Mobile d'abord : les règles de base visent le téléphone, les @media
   (min-width) ajoutent les mises en page tablette (≥ 640px), ordinateur
   (≥ 960px) et large (≥ 1200px).
   Crochets JavaScript : classes js-* (voir public_assets/js/site.js).
   ===================================================================== */

:root {
  --ink: #10223a;
  --ink-2: #16304f;
  --ink-3: #274566;
  --flame: #f0542c;
  --flame-dark: #d13f1a;
  --flame-soft: #fde9e3;
  --wood: #d9a066;
  --wood-soft: #f6ead9;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --line: #e3e8ef;
  --line-strong: #cfd7e2;
  --text: #10223a;
  --muted: #5b6b80;
  --faint: #8795a8;
  --success: #1f8a5b;
  --success-soft: #e3f4ec;
  --warning: #a86a12;
  --warning-soft: #fdf2dc;
  --danger: #c2410c;
  --danger-soft: #fdebe4;

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 34, 58, .06);
  --shadow: 0 10px 30px -14px rgba(16, 34, 58, .28);
  --shadow-lg: 0 24px 60px -24px rgba(16, 34, 58, .45);

  --container: 1200px;
  --gutter: 16px;
  --header-h: 64px;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 960px) { :root { --gutter: 32px; --header-h: 72px; } }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg, video { display: block; max-width: 100%; }
picture { display: block; width: 100%; height: 100%; }
picture img { width: 100%; height: 100%; object-fit: cover; background: #e9edf2; }
.img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; background: #e9edf2; color: var(--faint); font-size: 13px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { list-style: none; }
table { border-collapse: collapse; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 2px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.is-locked { overflow: hidden; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--flame); color: #fff; padding: 8px 14px; border-radius: var(--r); }
.skip-link:focus { left: 8px; }

/* ---------------------------------------------------------------- typographie */
h1, h2, h3, h4, .h1, .h2, .h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); }
.h1, h1 { font-size: clamp(30px, 6vw, 52px); }
.h2, h2 { font-size: clamp(24px, 4vw, 36px); }
.h3, h3 { font-size: 19px; letter-spacing: -.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--flame);
}
.eyebrow::before { content: ''; width: 18px; height: 3px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.price { font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; }

/* ---------------------------------------------------------------- mise en page */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--narrow { max-width: 820px; }
.container--mid { max-width: 1040px; }
.section { padding: 48px 0; }
.section--tight { padding: 28px 0; }
.section--white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ink { background: var(--ink); color: #dfe6ef; }
.section--ink h2, .section--ink h3 { color: #fff; }
@media (min-width: 960px) { .section { padding: 72px 0; } }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 26px; }
.section-head h2 { margin-top: 6px; }
.section-head p { margin-top: 8px; max-width: 560px; }
.link-arrow { font-weight: 600; color: var(--flame-dark); white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

.grid { display: grid; gap: 16px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.stack { display: grid; gap: 12px; }
.stack-lg { display: grid; gap: 22px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.mt-s { margin-top: 8px; }
.mt { margin-top: 14px; }
.mt-l { margin-top: 24px; }
.mt-xl { margin-top: 40px; }
.mb { margin-bottom: 14px; }
.mb-l { margin-bottom: 24px; }
.text-center { text-align: center; }

/* ---------------------------------------------------------------- boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 22px; border-radius: var(--r); border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.2; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s, transform .08s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--flame); color: #fff; box-shadow: 0 10px 24px -12px rgba(240, 84, 44, .8); }
.btn--primary:hover { background: var(--flame-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--wood-soft); }
.btn--outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--outline-light:hover { border-color: #fff; }
.btn--ghost { background: none; border: none; color: var(--muted); min-height: auto; padding: 8px 4px; }
.btn--ghost:hover { color: var(--ink); }
.btn--sm { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 17px; }
.btn--block { width: 100%; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: var(--r); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-size: 18px; line-height: 1;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn.is-active { color: var(--flame); border-color: var(--flame); }

/* ---------------------------------------------------------------- formulaires */
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field small { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r);
  background: var(--surface); font-size: 16px; font-weight: 400; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 110px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: #aab6c6; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16, 34, 58, .12); }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--flame); }
.check a { color: var(--flame-dark); font-weight: 600; text-decoration: underline; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form .input { flex: 1 1 200px; width: auto; }

/* ---------------------------------------------------------------- petits éléments */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.3; background: var(--ink); color: #fff; white-space: nowrap;
}
.badge--flame { background: var(--flame); }
.badge--wood { background: var(--wood-soft); color: #7a4a1c; }
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--warning { background: var(--warning-soft); color: var(--warning); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--muted { background: #eef1f5; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.code-pill { font-family: ui-monospace, Menlo, monospace; font-weight: 800; letter-spacing: .08em; background: #fff; color: var(--flame-dark); padding: 2px 12px; border-radius: 999px; }

.alert { padding: 13px 16px; border-radius: var(--r); font-size: 15px; line-height: 1.5; border: 1px solid transparent; }
.alert--success { background: var(--success-soft); color: #145c3c; border-color: #bfe5d1; }
.alert--error { background: var(--danger-soft); color: #9a340b; border-color: #f7c8b6; }
.alert--warning { background: var(--warning-soft); color: #7a4d0c; border-color: #f2d9a6; }
.alert--info { background: #e8eef7; color: var(--ink-2); border-color: #cddaec; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: 20px; }
@media (min-width: 640px) { .card-pad { padding: 28px; } }
.card-title { font-family: var(--font-head); font-size: 18px; font-weight: 700; margin-bottom: 14px; }

.breadcrumbs { padding-top: 18px; font-size: 13px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }
.breadcrumbs span.sep { color: var(--line-strong); }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .icon { font-size: 40px; margin-bottom: 10px; }

/* ---------------------------------------------------------------- bandeau promo + en-tête */
.promo-bar {
  background: var(--flame); color: #fff; font-size: 14px; font-weight: 600; text-align: center;
  padding: 8px var(--gutter); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px;
}
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: -.03em; color: var(--ink); }
.logo svg { width: 34px; height: 34px; }
.logo b { color: var(--flame); font-weight: 700; }
.site-nav { display: none; }
.site-nav a { font-weight: 600; font-size: 15px; color: var(--ink); padding: 8px 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { border-bottom-color: var(--flame); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-search { display: none; position: relative; }
.header-search .input { min-height: 40px; padding: 8px 12px 8px 36px; width: 220px; border-radius: 999px; font-size: 14px; }
.header-search button { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--faint); }
.header-icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--r); color: var(--ink);
}
.header-icon:hover { background: var(--bg); }
.header-icon--track { display: none; }
@media (min-width: 480px) { .header-icon--track { display: inline-flex; } }
.header-icon svg { width: 22px; height: 22px; }
.counter {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--flame); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.counter:empty, .counter[data-count="0"] { display: none; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border-radius: var(--r); padding: 0 14px; height: 42px; font-weight: 700; font-size: 14px; }
.cart-btn:hover { background: var(--ink-3); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn .cart-count { background: var(--flame); border-radius: 999px; padding: 0 7px; font-size: 12px; line-height: 20px; min-width: 20px; text-align: center; }
.cart-btn .cart-label { display: none; }
.menu-toggle { display: inline-flex; }

.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 12px 0 18px; }
.site-header.is-open .mobile-menu { display: block; }
.mobile-menu a { display: flex; justify-content: space-between; padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu form { margin-bottom: 8px; }

.cat-strip { display: none; border-top: 1px solid var(--line); background: var(--surface); }
.cat-strip__inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cat-strip a { padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.cat-strip a:hover { color: var(--ink); }
.cat-strip a[aria-current] { color: var(--ink); border-bottom-color: var(--flame); }

@media (min-width: 640px) { .cart-btn .cart-label { display: inline; } }
@media (min-width: 760px) { .cat-strip { display: block; } }
@media (min-width: 1040px) {
  .site-header__inner { gap: 28px; }
  .site-nav { display: flex; gap: 22px; }
  .header-search { display: block; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------------------------------------------------------------- héros d'accueil */
.hero { position: relative; background: var(--ink); color: #dbe3ee; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(circle at 85% 20%, rgba(240, 84, 44, .35), transparent 38%),
    radial-gradient(circle at 70% 90%, rgba(217, 160, 102, .25), transparent 40%);
}
.hero__inner { position: relative; display: grid; gap: 34px; padding-top: 40px; padding-bottom: 44px; }
.hero h1 { color: #fff; margin: 14px 0 16px; }
.hero h1 em { font-style: normal; color: var(--flame); }
.hero .lead { color: #b9c6d6; max-width: 540px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero__facts b { display: block; font-family: var(--font-head); font-size: clamp(18px, 3vw, 24px); color: #fff; }
.hero__facts span { font-size: 13px; color: #9fb0c5; }
.hero__media { position: relative; max-width: 300px; justify-self: center; width: 100%; }
@media (min-width: 640px) { .hero__media { max-width: 460px; } }
.hero__media-frame { position: relative; aspect-ratio: 1; border-radius: 50%; background: var(--wood-soft); overflow: hidden; border: 8px solid rgba(255, 255, 255, .08); }
.hero__media-frame picture img { object-fit: contain; background: #fff; }
.hero__sticker {
  position: absolute; background: #fff; color: var(--ink); border-radius: var(--r); padding: 10px 14px; box-shadow: var(--shadow-lg);
  font-size: 13px; line-height: 1.3;
}
.hero__sticker b { display: block; font-family: var(--font-head); font-size: 20px; }
.hero__sticker--price { right: 0; bottom: 8%; }
.hero__sticker--cert { left: 0; top: 10%; }
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 72px; padding-bottom: 80px; }
}

/* ---------------------------------------------------------------- tuiles catégories */
.cat-tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.cat-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px;
  border-radius: var(--r-lg); overflow: hidden; color: #fff; background: var(--ink-2); isolation: isolate;
}
.cat-tile picture { position: absolute; inset: 0; z-index: -2; transition: transform .35s; }
.cat-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16, 34, 58, 0) 20%, rgba(16, 34, 58, .88) 100%); }
.cat-tile:hover picture { transform: scale(1.05); }
.cat-tile__body { padding: 14px; }
.cat-tile__name { font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.15; }
.cat-tile__meta { font-size: 12.5px; color: #cdd7e3; margin-top: 2px; }
.cat-tile__from { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; background: var(--flame); color: #fff; border-radius: 999px; padding: 2px 9px; }
@media (min-width: 640px) { .cat-tiles { grid-template-columns: repeat(3, 1fr); gap: 16px; } .cat-tile { min-height: 190px; } }
@media (min-width: 960px) {
  .cat-tiles { grid-template-columns: repeat(6, 1fr); }
  .cat-tile { grid-column: span 2; min-height: 230px; }
  .cat-tile:nth-child(-n+2) { grid-column: span 3; min-height: 280px; }
  .cat-tile__body { padding: 20px; }
  .cat-tile__name { font-size: 21px; }
}

/* ---------------------------------------------------------------- cartes produit */
.products { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .products { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1200px) { .products--4 { grid-template-columns: repeat(4, 1fr); } }
.product-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-strong); }
.product-card__media { position: relative; aspect-ratio: 1; background: #fff; overflow: hidden; }
.product-card__media picture img, .gallery__main picture img, .gallery__thumb picture img, .cart-line__img picture img, .hero__media-frame picture img { object-fit: contain; background: #fff; }
.product-card__media picture img { padding: 8px; }
.product-card__badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 12px; gap: 6px; }
.product-card__cat { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.product-card__name { font-family: var(--font-body); font-size: 14.5px; font-weight: 700; line-height: 1.3; color: var(--ink); letter-spacing: 0; }
.product-card__name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.product-card__stock { font-size: 12.5px; color: var(--success); display: flex; align-items: center; gap: 6px; }
.product-card__stock.is-out { color: var(--danger); }
.product-card__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.product-card__price { font-size: 19px; line-height: 1.1; }
.product-card__unit { display: block; font-size: 12px; color: var(--faint); font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }
.product-card__add {
  position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex-shrink: 0; border: none; border-radius: var(--r); background: var(--flame); color: #fff; font-size: 22px; font-weight: 700;
}
.product-card__add:hover { background: var(--flame-dark); }
.product-card__add:disabled { background: var(--line-strong); cursor: not-allowed; }
.product-card__remove { position: absolute; top: 10px; right: 10px; z-index: 3; }
@media (min-width: 640px) { .product-card__body { padding: 16px; } .product-card__name { font-size: 16px; } .product-card__price { font-size: 22px; } }

/* Défilement horizontal (palettes) */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 72%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 640px) { .scroller { grid-auto-columns: minmax(240px, 38%); } }
@media (min-width: 960px) { .scroller { grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; } }
.scroller-nav { display: flex; gap: 8px; }

/* ---------------------------------------------------------------- blocs d'accueil */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { position: relative; padding: 22px 22px 22px 70px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px;
  width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff;
  font-family: var(--font-head); font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { font-size: 14.5px; color: var(--muted); }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.values { display: grid; gap: 14px; grid-template-columns: 1fr; }
.value { display: flex; gap: 14px; align-items: flex-start; }
.value__icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: var(--r); background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.value h3 { font-size: 17px; margin-bottom: 2px; }
.value p { font-size: 14.5px; color: #b9c6d6; }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); gap: 22px; } }

.split { display: grid; gap: 28px; align-items: center; }
.split__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
@media (min-width: 960px) { .split { grid-template-columns: .9fr 1.1fr; gap: 56px; } }

.review { padding: 22px; }
.review__stars { color: var(--flame); letter-spacing: 2px; margin-bottom: 10px; }
.review__who { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }

.article-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; transition: border-color .15s, box-shadow .15s; }
.article-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.article-card h3 { font-size: 18px; }
.article-card p { color: var(--muted); font-size: 14.5px; }

.cta-band { display: grid; gap: 22px; padding: 28px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--flame), #f37a3a); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #ffe9e0; }
@media (min-width: 960px) { .cta-band { grid-template-columns: 1.3fr 1fr; align-items: center; padding: 44px; } }
.cta-band__list { display: grid; gap: 10px; }
.cta-band__list li { display: flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, .14); border-radius: var(--r); padding: 12px 14px; font-weight: 600; }

/* ---------------------------------------------------------------- pied de page */
.newsletter { background: var(--ink-2); color: #dbe3ee; }
.newsletter__inner { display: grid; gap: 16px; padding-top: 30px; padding-bottom: 30px; }
.newsletter h2 { color: #fff; font-size: 22px; }
.newsletter .input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: #fff; }
.newsletter .input::placeholder { color: #9fb0c5; }
.newsletter .tiny { color: #9fb0c5; }
.newsletter .tiny a { text-decoration: underline; }
@media (min-width: 960px) { .newsletter__inner { grid-template-columns: 1fr 1fr; align-items: center; } }
.site-footer { background: var(--ink); color: #b9c6d6; font-size: 14.5px; }
.site-footer__grid { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 28px; grid-template-columns: 1fr 1fr; }
.site-footer__brand { grid-column: 1 / -1; }
.site-footer .logo { color: #fff; }
.site-footer h3 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.6; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; padding-bottom: 26px; font-size: 13px; color: #8797ad; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (min-width: 960px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; padding-top: 56px; }
  .site-footer__brand { grid-column: auto; }
}

/* ---------------------------------------------------------------- catalogue */
.page-head { padding: 10px 0 20px; }
.page-head h1 { margin-top: 6px; }
.page-head p { margin-top: 10px; max-width: 680px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.catalog { display: grid; gap: 22px; padding-bottom: 56px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.catalog-toolbar .select { width: auto; min-height: 40px; padding: 7px 12px; font-size: 14px; font-weight: 600; }
.filters-toggle { display: inline-flex; }
.filters {
  display: none; position: fixed; inset: 0; z-index: 100; background: var(--surface); overflow-y: auto; padding: 0 20px 20px;
  overscroll-behavior: contain;
}
.filters.is-open { display: block; }
.filters__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.filters__head b { font-family: var(--font-head); font-size: 18px; }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filter-group__title { float: left; width: 100%; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.filter-group__title + * { clear: both; }
.filter-group .check { padding: 5px 0; color: var(--muted); }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range .input { min-height: 40px; padding: 7px 10px; font-size: 14px; }
.filters__submit { position: sticky; bottom: 0; margin-top: 14px; }
@media (min-width: 960px) {
  .catalog { grid-template-columns: 250px 1fr; align-items: start; gap: 32px; }
  .filters { display: block; position: sticky; inset: auto; top: calc(var(--header-h) + 20px); z-index: 1; max-height: calc(100vh - var(--header-h) - 40px); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0 18px 18px; }
  .filters__close, .filters-toggle { display: none !important; }
  .filters__head { position: static; }
  .filters__submit { position: static; }
}
.guide { padding-bottom: 60px; }
.guide__point { padding: 20px; }
.guide__point h3 { font-size: 16px; margin-bottom: 6px; }
.guide__point p { font-size: 14.5px; color: var(--muted); }

/* ---------------------------------------------------------------- fiche produit */
.product { display: grid; gap: 26px; padding: 16px 0 40px; }
@media (min-width: 960px) { .product { grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; } }
.gallery { display: grid; gap: 10px; }
.gallery__main { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.gallery__main picture img { padding: 14px; }
.gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; }
.gallery__thumb { width: 72px; height: 72px; flex-shrink: 0; border-radius: var(--r); overflow: hidden; border: 2px solid var(--line); background: #fff; padding: 0; }
.gallery__thumb.is-active { border-color: var(--flame); }
.gallery__thumb picture img { object-fit: contain; }
@media (min-width: 960px) { .gallery { position: sticky; top: calc(var(--header-h) + 20px); } }
.buybox h1 { font-size: clamp(24px, 3.4vw, 34px); margin: 8px 0 10px; }
.buybox__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 14px; color: var(--muted); }
.buybox__price { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 4px; }
.buybox__price .price { font-size: clamp(30px, 5vw, 40px); }
.variants { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 18px 0; }
.variant { position: relative; display: block; cursor: pointer; }
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant__box { display: grid; gap: 2px; padding: 12px 14px; border: 2px solid var(--line-strong); border-radius: var(--r); background: var(--surface); transition: border-color .15s, background-color .15s; }
.variant__box b { font-size: 15px; }
.variant__box span { font-size: 13px; color: var(--muted); }
.variant__box .price { font-size: 17px; margin-top: 4px; }
.variant input:checked + .variant__box { border-color: var(--flame); background: var(--flame-soft); }
.variant input:focus-visible + .variant__box { outline: 3px solid var(--flame); outline-offset: 2px; }
.buy-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: stretch; }
.qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line-strong); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.qty button { width: 42px; border: none; background: none; font-size: 20px; color: var(--ink); }
.qty button:hover { background: var(--bg); }
.qty input { width: 52px; border: none; text-align: center; font-weight: 700; font-size: 16px; -moz-appearance: textfield; appearance: textfield; background: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.reassurance { display: grid; gap: 8px; margin-top: 18px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.reassurance li { display: flex; gap: 10px; align-items: flex-start; }
.facts { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.fact__label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.fact__value { font-family: var(--font-head); font-weight: 700; font-size: 19px; margin-top: 4px; }
.specs { width: 100%; font-size: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.specs th, .specs td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: none; }
.specs th { width: 44%; color: var(--muted); font-weight: 600; background: #fafbfc; }
.detail-grid { display: grid; gap: 26px; }
@media (min-width: 960px) { .detail-grid { grid-template-columns: 1.2fr .8fr; gap: 48px; } }
.stock-alert { margin-top: 14px; padding: 16px; border-radius: var(--r); background: var(--warning-soft); border: 1px solid #f2d9a6; }

/* ---------------------------------------------------------------- tunnel : panier, commande, paiement */
.checkout-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.checkout-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.secure-note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--success); }
.two-col { display: grid; gap: 22px; padding: 24px 0 56px; align-items: start; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 380px; gap: 32px; } .sticky-col { position: sticky; top: 24px; } }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: none; }
.cart-line__img { width: 72px; height: 72px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.cart-line__img picture img { object-fit: contain; }
.cart-line__name { font-weight: 700; line-height: 1.3; }
.cart-line__actions { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cart-line__total { font-family: var(--font-head); font-weight: 700; font-size: 18px; text-align: right; }
@media (min-width: 640px) {
  .cart-line { grid-template-columns: 88px 1fr auto auto; }
  .cart-line__img { width: 88px; height: 88px; }
  .cart-line__actions { grid-column: auto; }
}
.summary-rows { display: grid; gap: 10px; font-size: 15px; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; }
.summary-row--total { padding-top: 12px; margin-top: 4px; border-top: 2px solid var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.progress { height: 8px; border-radius: 999px; background: #e9edf2; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--success); border-radius: inherit; }

.stepper { display: flex; align-items: center; gap: 6px; margin: 8px 0 22px; }
.stepper__step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--faint); flex-shrink: 0; }
.stepper__num { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--line-strong); background: var(--surface); font-family: var(--font-head); font-weight: 700; }
.stepper__step.is-done .stepper__num { background: var(--success); border-color: var(--success); color: #fff; }
.stepper__step.is-current { color: var(--ink); }
.stepper__step.is-current .stepper__num { background: var(--ink); border-color: var(--ink); color: #fff; }
.stepper__bar { flex: 1; height: 2px; background: var(--line-strong); min-width: 10px; }
.stepper__label { display: none; }
@media (min-width: 640px) { .stepper__label { display: inline; } }
.choice { display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 2px solid var(--line-strong); border-radius: var(--r); background: var(--surface); }
.choice__box::before { content: ''; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--line-strong); margin-top: 2px; }
.choice input:checked + .choice__box { border-color: var(--flame); background: var(--flame-soft); }
.choice input:checked + .choice__box::before { border: 6px solid var(--flame); }
.choice.is-disabled { cursor: not-allowed; opacity: .55; }
.choice__main { flex: 1; }
.choice__main b { display: block; }
.choice__price { font-family: var(--font-head); font-weight: 700; white-space: nowrap; }
.b2b__fields { display: none; }
.b2b:has(input[name="is_professional"]:checked) .b2b__fields { display: grid; }
@supports not selector(:has(*)) { .b2b__fields { display: grid; } }
.review-list { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.review-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 12px 16px; font-size: 14.5px; border-bottom: 1px solid var(--line); background: var(--surface); }
.review-list > div:last-child { border-bottom: none; }
.review-list b { flex-shrink: 0; }
.review-list span { color: var(--muted); text-align: right; }

.pay-amount { text-align: center; padding: 22px; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.pay-amount .price { font-size: clamp(34px, 7vw, 48px); color: #fff; }
.bank-rows { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.bank-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.bank-row:last-child { border-bottom: none; }
.bank-row.is-highlight { background: var(--flame-soft); }
.bank-row__k { font-size: 13px; color: var(--muted); }
.bank-row__v { font-weight: 700; word-break: break-word; }
.copy-btn { flex-shrink: 0; border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: var(--r-sm); padding: 5px 10px; font-size: 13px; font-weight: 700; }
.copy-btn:hover { border-color: var(--ink); }
.copy-btn.is-copied { background: var(--success); border-color: var(--success); color: #fff; }
.qr-box { display: grid; justify-items: center; gap: 10px; padding: 20px; text-align: center; }
.qr-box img { width: 100%; max-width: 260px; background: #fff; padding: 10px; border-radius: var(--r); border: 1px solid var(--line); }
.notice-cod { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--danger-soft); border: 1px solid #f7c8b6; color: #7c2d0b; font-size: 14.5px; }
.notice-cod b { display: block; font-size: 15px; }

.dropzone { display: grid; place-items: center; gap: 8px; padding: 28px 18px; border: 2px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--surface); text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--flame); background: var(--flame-soft); }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.timeline { display: grid; gap: 0; }
.timeline__step { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.timeline__step:last-child { padding-bottom: 0; }
.timeline__step::before { content: ''; position: absolute; left: 13px; top: 30px; bottom: 0; width: 2px; background: var(--line-strong); }
.timeline__step:last-child::before { display: none; }
.timeline__dot { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.timeline__step.is-done .timeline__dot { background: var(--success); border-color: var(--success); color: #fff; }
.timeline__step.is-current .timeline__dot { background: var(--flame); border-color: var(--flame); color: #fff; }
.timeline__step.is-done::before { background: var(--success); }

/* ---------------------------------------------------------------- pages de contenu */
.prose { font-size: 16.5px; line-height: 1.75; color: #2b3b52; }
.prose > * + * { margin-top: 14px; }
.prose h2 { font-size: 24px; margin-top: 34px; }
.prose h3 { font-size: 19px; margin-top: 24px; }
.prose > :first-child, .legal > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--flame-dark); font-weight: 600; text-decoration: underline; }
.prose strong { color: var(--ink); }
.legal { font-size: 15.5px; line-height: 1.7; color: #2b3b52; }
.legal h2 { font-size: 20px; margin: 32px 0 10px; }
.legal p, .legal li { margin-bottom: 10px; }
.legal ol { list-style: decimal; padding-left: 22px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--flame-dark); font-weight: 600; text-decoration: underline; }
.legal table { width: 100%; margin: 10px 0 18px; font-size: 14px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); background: var(--surface); }
.legal th { background: #eef2f7; color: var(--ink); }
.legal .legal-form { margin-top: 10px; padding: 18px 20px; border: 2px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--surface); }
.info-tiles { display: grid; gap: 14px; }
@media (min-width: 640px) { .info-tiles { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.info-tile { padding: 20px; }
.info-tile .icon { font-size: 26px; margin-bottom: 8px; }
.info-tile h3 { font-size: 16px; margin-bottom: 4px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 16.5px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-head); font-size: 22px; line-height: 1; color: var(--flame); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); line-height: 1.7; }
.centered-card { max-width: 560px; margin: 40px auto; text-align: center; }
.centered-card .icon { font-size: 44px; margin-bottom: 12px; }

/* ---------------------------------------------------------------- bandeau cookies */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 300; display: grid; gap: 12px;
  padding: 16px; border-radius: var(--r-lg); background: var(--ink); color: #dbe3ee; box-shadow: var(--shadow-lg); font-size: 14px;
}
.consent a { color: #fff; text-decoration: underline; }
.consent__actions { display: flex; gap: 8px; }
.consent__actions .btn { flex: 1; }
@media (min-width: 760px) { .consent { left: auto; max-width: 440px; right: 20px; bottom: 20px; } }
