/* Site web public par boutique — refonte (accueil riche + catalogue + fiche + vendre).
   Feuille de style DEDIEE, standalone. Ne pollue PAS app.css.
   Systeme de design clair / moderne / pro / rassurant (achat-revente d'occasion).
   Tokens penses pour un re-theme par boutique plus tard. Mobile-first. */

:root {
  --sp-bg: #f4f6f9;
  --sp-surface: #ffffff;
  --sp-surface-2: #f8fafc;
  --sp-ink: #0e1626;
  --sp-muted: #5c6675;
  --sp-faint: #929bab;
  --sp-line: #e6e9ef;
  --sp-line-strong: #d3d9e3;

  --sp-primary: #2555ff;
  --sp-primary-dark: #1636c2;
  --sp-primary-soft: #eaefff;

  --sp-accent: #10b981;
  --sp-accent-dark: #0a875e;
  --sp-accent-soft: #e6f8f1;

  --sp-price: #0e7a4f;

  /* Surfaces decoratives (haut des heros, fonds des medias produits, pastille
     d'etat des cartes). Defauts = valeurs historiques ; overridables par les
     themes (v2/site_public.SITE_THEMES) pour rester lisibles en sombre. */
  --sp-hero-top: #ffffff;
  --sp-tile-bg: #f1f4f8;
  --sp-tile-bg-2: #e8ecf2;
  --sp-noimg-bg: #eef1f6;
  --sp-noimg-bg-2: #e3e8f0;
  --sp-map-bg: #eef2f8;
  --sp-map-bg-2: #e2e8f1;
  --sp-tag-bg: rgba(255, 255, 255, 0.94);

  /* Footer : couleurs DEDIEES (le footer etait code en dur sur fond --sp-ink).
     Defauts = rendu historique ; les themes les redefinissent pour garder un
     footer lisible (ex. theme nuit : --sp-ink devient clair, le footer non). */
  --sp-footer-bg: var(--sp-ink);
  --sp-footer-text: #c3cbd9;
  --sp-footer-muted: #97a1b3;
  --sp-footer-faint: #8b95a7;
  --sp-footer-strong: #ffffff;
  --sp-footer-line: rgba(255, 255, 255, 0.1);

  --sp-radius-lg: 20px;
  --sp-radius: 16px;
  --sp-radius-sm: 10px;
  --sp-radius-pill: 999px;

  --sp-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --sp-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 10px 30px rgba(16, 24, 40, 0.06);
  --sp-shadow-lift: 0 2px 4px rgba(16, 24, 40, 0.06), 0 18px 40px rgba(16, 24, 40, 0.12);

  --sp-max: 1180px;
  --sp-header-h: 66px;
  --sp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Inter,
    "Helvetica Neue", Arial, sans-serif;

  /* HABILLAGE (v2/site_public.SITE_SKINS -> site_skin_css) : typographie des
     titres et densite verticale. Les valeurs ci-dessous sont EXACTEMENT le
     rendu historique -> l'habillage « neutre » (aucun override) ne change
     rien. Le <style> de l'habillage est injecte APRES cette feuille, donc il
     gagne sur ces defauts.
       --sp-font-head    : pile de polices des titres (= le corps par defaut)
       --sp-space        : multiplicateur des respirations verticales (1 = actuel)
       --sp-title-spacing: interlettrage des grands titres (-0.02em = actuel)
       --sp-title-weight : graisse des grands titres (800 = actuel)
     Les titres qui s'ecartaient deja de ces valeurs les expriment en calc()
     RELATIF au jeton (ex. hero = jeton - 0.01em), pour garder leur nuance
     historique tout en suivant l'habillage. */
  --sp-font-head: var(--sp-font);
  --sp-space: 1;
  --sp-title-spacing: -0.02em;
  --sp-title-weight: 800;
  /* Vague 2 des habillages (20/07/2026) : casse des grands titres. `none` =
     rendu historique exact ; les habillages « capitales » (ecrin, heritage,
     podium, epure, brut, percutant) le passent a uppercase. */
  --sp-title-transform: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--sp-header-h) + 12px);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sp-font);
  background: var(--sp-bg);
  color: var(--sp-ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--sp-font-head);
}

.sp-wrap {
  max-width: var(--sp-max);
  margin: 0 auto;
  padding: 0 1.15rem;
}

.sp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border-radius: var(--sp-radius-sm);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.sp-btn:active {
  transform: translateY(1px);
}

.sp-btn-primary {
  background: var(--sp-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 85, 255, 0.28);
}

.sp-btn-primary:hover {
  background: var(--sp-primary-dark);
}

.sp-btn-accent {
  background: var(--sp-accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.26);
}

.sp-btn-accent:hover {
  background: var(--sp-accent-dark);
}

.sp-btn-outline {
  background: var(--sp-surface);
  color: var(--sp-ink);
  border-color: var(--sp-line-strong);
}

.sp-btn-outline:hover {
  border-color: var(--sp-primary);
  color: var(--sp-primary);
}

.sp-btn-ghost {
  background: transparent;
  color: var(--sp-primary);
}

.sp-btn-ghost:hover {
  background: var(--sp-primary-soft);
}

.sp-btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(37, 85, 255, 0.4);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.sp-header {
  background: var(--sp-surface);
  border-bottom: 1px solid var(--sp-line);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.sp-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(16, 24, 40, 0.08);
  border-color: transparent;
}

.sp-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--sp-header-h);
}

.sp-brand {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sp-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.sp-brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sp-primary), var(--sp-primary-dark));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
}

.sp-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.6rem;
}

.sp-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--sp-muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.sp-nav a:hover,
.sp-nav a.is-active {
  color: var(--sp-ink);
  background: var(--sp-surface-2);
}

.sp-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  background: var(--sp-surface-2);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius-pill);
  padding: 0.15rem 0.15rem 0.15rem 0.85rem;
  max-width: 320px;
  flex: 1;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sp-search:focus-within {
  border-color: var(--sp-primary);
  box-shadow: 0 0 0 3px var(--sp-primary-soft);
}

.sp-search input {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  color: var(--sp-ink);
  padding: 0.4rem 0.2rem;
  width: 100%;
  outline: none;
}

.sp-search button {
  border: 0;
  background: var(--sp-primary);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: var(--sp-radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.sp-search button:hover {
  background: var(--sp-primary-dark);
}

.sp-header-icons {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.4rem;
}

.sp-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--sp-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  font-size: 1.15rem;
}

.sp-icon-btn:hover {
  background: var(--sp-surface-2);
  color: var(--sp-ink);
}

.sp-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--sp-line);
  background: var(--sp-surface);
  color: var(--sp-ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: 0.4rem;
}

.sp-burger svg {
  width: 22px;
  height: 22px;
}

/* ---------- En-tetes par famille de style ([data-sp-header], 21/07) ----------
   Retour Philippe : « j'ai beau changer de style, le bandeau du haut reste le
   meme ». Chaque style porte une famille d'en-tete (site_template_header,
   v2/site_public.py) posee sur <body>. STRUCTUREL uniquement (aucune couleur
   propre : jetons du theme). Desktop seulement : sous 781px le header burger
   mobile reste IDENTIQUE pour toutes les familles. Attribut absent/inconnu =
   aucune regle = header historique. */
@media (min-width: 781px) {
  /* Étagé — logo centre au-dessus, navigation dessous (atelier, journal,
     heritage). Le trait double souligne le cote « maison ». */
  [data-sp-header="etage"] {
    --sp-header-h: 118px;
  }
  [data-sp-header="etage"] .sp-header {
    border-bottom: 3px double var(--sp-line-strong);
  }
  [data-sp-header="etage"] .sp-header-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 0.85rem;
    padding-bottom: 0.55rem;
  }
  [data-sp-header="etage"] .sp-brand {
    flex-basis: 100%;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.15rem;
  }
  [data-sp-header="etage"] .sp-nav {
    margin-left: 0;
  }
  [data-sp-header="etage"] .sp-search {
    margin-left: 0.6rem;
    max-width: 230px;
  }
  [data-sp-header="etage"] .sp-header-icons {
    margin-left: 0.2rem;
  }

  /* Minimal — capitales espacees, recherche soulignee discrete (ecrin, epure,
     galerie, podium). */
  [data-sp-header="minimal"] {
    --sp-header-h: 78px;
  }
  [data-sp-header="minimal"] .sp-header-inner {
    gap: 1.3rem;
  }
  [data-sp-header="minimal"] .sp-nav a,
  [data-sp-header="minimal"] .sp-mega-btn {
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 0.78rem;
    font-weight: 600;
  }
  [data-sp-header="minimal"] .sp-nav a:hover,
  [data-sp-header="minimal"] .sp-nav a.is-active {
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 5px;
  }
  [data-sp-header="minimal"] .sp-search {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--sp-line-strong);
    border-radius: 0;
    max-width: 220px;
    padding-left: 0.2rem;
  }
  [data-sp-header="minimal"] .sp-search button {
    background: transparent;
    color: var(--sp-ink);
  }
  [data-sp-header="minimal"] .sp-brand-badge {
    border-radius: 0;
  }

  /* Compact — barre fine et dense, facon outil (technique, brut). */
  [data-sp-header="compact"] {
    --sp-header-h: 52px;
  }
  [data-sp-header="compact"] .sp-brand {
    font-size: 0.98rem;
  }
  [data-sp-header="compact"] .sp-brand-logo {
    height: 26px;
  }
  [data-sp-header="compact"] .sp-brand-badge {
    width: 27px;
    height: 27px;
    font-size: 0.85rem;
    border-radius: 6px;
  }
  [data-sp-header="compact"] .sp-nav a,
  [data-sp-header="compact"] .sp-mega-btn {
    font-size: 0.84rem;
    padding: 0.32rem 0.55rem;
  }
  [data-sp-header="compact"] .sp-search {
    padding: 0.05rem 0.05rem 0.05rem 0.6rem;
    max-width: 260px;
  }
  [data-sp-header="compact"] .sp-search input {
    padding: 0.22rem 0.2rem;
    font-size: 0.85rem;
  }
  [data-sp-header="compact"] .sp-search button {
    width: 27px;
    height: 27px;
  }
  [data-sp-header="compact"] .sp-icon-btn {
    width: 33px;
    height: 33px;
    font-size: 1rem;
  }

  /* Pilule — la navigation dans une capsule arrondie (populaire, douceur). */
  [data-sp-header="pill"] .sp-nav {
    background: var(--sp-tile-bg);
    border-radius: 999px;
    padding: 0.28rem 0.45rem;
    gap: 0.1rem;
  }
  [data-sp-header="pill"] .sp-nav a,
  [data-sp-header="pill"] .sp-mega-btn {
    border-radius: 999px;
  }
  [data-sp-header="pill"] .sp-nav a:hover,
  [data-sp-header="pill"] .sp-nav a.is-active {
    background: var(--sp-surface);
    box-shadow: var(--sp-shadow-sm);
  }
}

/* Mobile drawer */
.sp-mobile-nav {
  display: none;
  border-top: 1px solid var(--sp-line);
  background: var(--sp-surface);
  padding: 0.6rem 0 0.9rem;
}

.sp-mobile-nav.is-open {
  display: block;
}

.sp-mobile-nav a {
  display: block;
  padding: 0.75rem 0.3rem;
  font-weight: 600;
  color: var(--sp-ink);
  border-bottom: 1px solid var(--sp-line);
}

.sp-mobile-nav a:last-child {
  border-bottom: 0;
}

/* ---------- Hero ---------- */
.sp-hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(37, 85, 255, 0.08), transparent 60%),
    radial-gradient(900px 420px at 0% 110%, rgba(16, 185, 129, 0.08), transparent 55%),
    linear-gradient(180deg, var(--sp-hero-top) 0%, var(--sp-bg) 100%);
  border-bottom: 1px solid var(--sp-line);
}

.sp-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
  padding: calc(3.4rem * var(--sp-space)) 0 calc(3.6rem * var(--sp-space));
}

.sp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--sp-radius-pill);
  background: var(--sp-accent-soft);
  color: var(--sp-accent-dark);
  font-size: 0.82rem;
  font-weight: 650;
  margin-bottom: 1.1rem;
}

.sp-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  /* Historique : -0.03em, soit le jeton (-0.02em) resserre d'un cran. */
  letter-spacing: calc(var(--sp-title-spacing) - 0.01em);
  font-weight: var(--sp-title-weight);
  text-transform: var(--sp-title-transform);
}

.sp-hero h1 .sp-hl {
  color: var(--sp-primary);
}

.sp-hero-sub {
  margin: 1.1rem 0 0;
  max-width: 46ch;
  color: var(--sp-muted);
  font-size: 1.1rem;
}

.sp-hero-cta {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sp-hero-points {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.6rem;
}

.sp-hero-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--sp-ink);
}

.sp-hero-points .sp-tick {
  color: var(--sp-accent);
  font-weight: 800;
}

/* Hero collage */
.sp-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0.9rem;
  aspect-ratio: 1 / 1;
}

.sp-collage-tile {
  border-radius: var(--sp-radius);
  overflow: hidden;
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  box-shadow: var(--sp-shadow);
  position: relative;
}

.sp-collage-tile:first-child {
  grid-row: span 2;
}

/* Collage « vitrine » (photos du MAGASIN, migration 261) : les photos de
   boutique sont paysage — la 1re s'etale en haut sur toute la largeur (vue
   d'ensemble), les 2 suivantes dessous. */
.sp-collage.is-shop {
  aspect-ratio: 4 / 3.2;
  grid-template-rows: 1.4fr 1fr;
}

.sp-collage.is-shop .sp-collage-tile:first-child {
  grid-row: auto;
  grid-column: 1 / -1;
}

.sp-collage-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-collage-tile .sp-noimg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-faint);
  font-size: 0.8rem;
  background: linear-gradient(135deg, var(--sp-noimg-bg), var(--sp-noimg-bg-2));
}

.sp-collage-empty {
  aspect-ratio: 1 / 1;
  border-radius: var(--sp-radius-lg);
  background: linear-gradient(135deg, var(--sp-primary-soft), var(--sp-accent-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-muted);
  font-weight: 600;
  border: 1px solid var(--sp-line);
}

/* ---------- Trust bar ---------- */
.sp-trust {
  background: var(--sp-surface);
  border-bottom: 1px solid var(--sp-line);
}

.sp-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  padding: calc(1.6rem * var(--sp-space)) 0;
}

.sp-trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sp-trust-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sp-primary-soft);
  color: var(--sp-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.sp-trust-item:nth-child(even) .sp-trust-ico {
  background: var(--sp-accent-soft);
  color: var(--sp-accent-dark);
}

.sp-trust-txt strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.sp-trust-txt span {
  font-size: 0.82rem;
  color: var(--sp-muted);
}

/* ---------- Sections ---------- */
/* Les respirations verticales STRUCTURANTES passent par --sp-space (1 par
   defaut = rendu historique) : c'est ce jeton qui rend un habillage dense
   (« technique ») ou tres aere (« galerie »). */
.sp-section {
  padding: calc(3.2rem * var(--sp-space)) 0;
}

.sp-section-alt {
  background: var(--sp-surface);
  border-top: 1px solid var(--sp-line);
  border-bottom: 1px solid var(--sp-line);
}

.sp-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: calc(1.8rem * var(--sp-space));
}

.sp-section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--sp-title-weight);
  letter-spacing: var(--sp-title-spacing);
  text-transform: var(--sp-title-transform);
}

.sp-section-head p {
  margin: 0.4rem 0 0;
  color: var(--sp-muted);
  font-size: 1rem;
}

.sp-section-link {
  color: var(--sp-primary);
  font-weight: 650;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.sp-section-link:hover {
  color: var(--sp-primary-dark);
}

.sp-center-cta {
  margin-top: calc(2rem * var(--sp-space));
  text-align: center;
}

/* ---------- Categories ---------- */
.sp-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.sp-cat {
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 1.3rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.sp-cat:hover {
  transform: translateY(-3px);
  box-shadow: var(--sp-shadow);
  border-color: var(--sp-line-strong);
}

.sp-cat-ico {
  font-size: 1.9rem;
  line-height: 1;
}

.sp-cat-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--sp-ink);
  letter-spacing: -0.01em;
}

.sp-cat-count {
  font-size: 0.82rem;
  color: var(--sp-muted);
}

/* ---------- Product grid + cards ---------- */
.sp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}

.sp-card {
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.18s ease, border-color 0.15s ease;
}

.sp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sp-shadow-lift);
  border-color: var(--sp-line-strong);
}

.sp-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--sp-tile-bg), var(--sp-tile-bg-2));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* `contain`, PAS `cover` : sur du e-commerce, recadrer la photo coupe les bords
   du produit (un carton, un electromenager, une boite de jeu ne tiennent jamais
   dans un carre). C'est ce qui donnait l'impression d'un site « pauvre ». On
   affiche le produit ENTIER, le vide autour est rempli par le fond de tuile. */
.sp-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: transform 0.35s ease;
}

.sp-card:hover .sp-card-media img {
  transform: scale(1.05);
}

.sp-card-media .sp-noimg {
  color: var(--sp-faint);
  font-size: 0.82rem;
}

/* Etat de l'article : dans le CORPS de la carte, plus sur la photo. Deux styles
   distincts — le neuf ressort (vert), l'occasion reste neutre — pour qu'on ne
   puisse pas confondre les deux d'un coup d'oeil. */
.sp-card-cond {
  align-self: flex-start;
  padding: 0.16rem 0.5rem;
  border-radius: var(--sp-radius-sm);
  background: var(--sp-tile-bg);
  color: var(--sp-muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.sp-card-cond.is-new {
  background: var(--sp-accent-soft);
  color: var(--sp-accent-dark);
}

.sp-card-pickup {
  color: var(--sp-faint);
  font-size: 0.72rem;
}

.sp-card-pickup span {
  font-size: 0.5em;
  vertical-align: middle;
  color: var(--sp-accent);
}

/* ---------- Presentations au choix (migration 244, [data-sp-layout]) ----------
   Le patron choisit la mise en page a la creation du site (assistant) ou depuis
   le panneau « Presentation des articles ». STRUCTUREL uniquement : aucune de ces
   regles ne touche aux couleurs, donc les 4 presentations marchent avec les 4
   themes. Attribut absent/inconnu = aucune regle = grille historique. */

/* ⚠️ Le nombre de COLONNES est impose uniquement au-dessus de 960px. En dessous,
   les media queries plus bas (3 col a 960, 2 col a 560) doivent garder la main :
   `[data-sp-layout] .sp-grid` a une specificite plus forte qu'un `.sp-grid` de
   media query, donc sans ce garde-fou « dense » afficherait 5 colonnes sur un
   telephone. La presentation « liste » fait exception : 1 colonne a toute
   largeur, c'est le but. */
@media (min-width: 961px) {
  [data-sp-layout="vitrine"] .sp-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  [data-sp-layout="dense"] .sp-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.85rem;
  }
  /* Vague 2 (20/07/2026) : colonnes des 5 nouvelles presentations, elles
     aussi cantonnees au-dessus de 960px (meme garde-fou telephone). */
  [data-sp-layout="magazine"] .sp-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  /* Magazine : le 1er article de chaque serie de 7 devient une « une » 2x2.
     Motif purement CSS, aucun changement de markup. */
  [data-sp-layout="magazine"] .sp-card:nth-child(7n + 1) {
    grid-column: span 2;
    grid-row: span 2;
  }
  [data-sp-layout="magazine"] .sp-card:nth-child(7n + 1) .sp-card-media {
    aspect-ratio: auto;
    flex: 1;
    min-height: 0;
  }
  [data-sp-layout="magazine"] .sp-card:nth-child(7n + 1) .sp-card-title {
    font-size: 1.1rem;
  }
  [data-sp-layout="photos"] .sp-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
  }
  [data-sp-layout="panoramique"] .sp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
  }
  [data-sp-layout="plein-cadre"] .sp-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
  }
}

/* Vitrine : photos plus grandes et plus larges. */
[data-sp-layout="vitrine"] .sp-card-media {
  aspect-ratio: 4 / 3;
}

[data-sp-layout="vitrine"] .sp-card-title {
  font-size: 1.02rem;
}

[data-sp-layout="vitrine"] .sp-card-price {
  font-size: 1.32rem;
}

/* Dense : cartes compactes (le nombre de colonnes est plus haut, sous media). */
[data-sp-layout="dense"] .sp-card-body {
  padding: 0.65rem 0.7rem 0.8rem;
  gap: 0.3rem;
}

[data-sp-layout="dense"] .sp-card-title {
  font-size: 0.86rem;
  min-height: 2.4em;
}

[data-sp-layout="dense"] .sp-card-price {
  font-size: 1.02rem;
}

[data-sp-layout="dense"] .sp-card-pickup {
  display: none;
}

/* Liste : une ligne par article, photo a gauche. Le plus lisible pour comparer
   et sur telephone (la carte garde sa forme, seule la direction change). */
[data-sp-layout="liste"] .sp-grid {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

[data-sp-layout="liste"] .sp-card {
  flex-direction: row;
  align-items: stretch;
}

[data-sp-layout="liste"] .sp-card-media {
  flex: 0 0 clamp(110px, 22%, 190px);
  aspect-ratio: 1 / 1;
}

[data-sp-layout="liste"] .sp-card-body {
  justify-content: center;
  padding: 0.9rem 1.1rem;
}

[data-sp-layout="liste"] .sp-card-title {
  min-height: 0;
  -webkit-line-clamp: 3;
}

[data-sp-layout="liste"] .sp-card-price {
  margin-top: 0.15rem;
}

/* ── Vague 2 (20/07/2026) : 5 presentations de plus ─────────────────────────
   Toujours structurel uniquement (aucune couleur), memes cartes, meme HTML. */

/* Photos : la grille la plus visuelle — photo + prix, tout le reste disparait.
   Les details restent sur la fiche article. */
[data-sp-layout="photos"] .sp-card-title,
[data-sp-layout="photos"] .sp-card-cond,
[data-sp-layout="photos"] .sp-card-pickup {
  display: none;
}

[data-sp-layout="photos"] .sp-card-body {
  padding: 0.55rem 0.75rem 0.7rem;
  gap: 0;
}

[data-sp-layout="photos"] .sp-card-price {
  font-size: 1.15rem;
}

/* Panoramique : 2 par ligne, photos tres larges — mobilier, vehicules, deco. */
[data-sp-layout="panoramique"] .sp-card-media {
  aspect-ratio: 16 / 9;
}

[data-sp-layout="panoramique"] .sp-card-title {
  font-size: 1.08rem;
}

[data-sp-layout="panoramique"] .sp-card-price {
  font-size: 1.35rem;
}

/* Tableau : liste ultra-compacte facon catalogue pro — petite photo, une
   ligne de titre, prix pousse a droite. */
[data-sp-layout="tableau"] .sp-grid {
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

[data-sp-layout="tableau"] .sp-card {
  flex-direction: row;
  align-items: center;
}

[data-sp-layout="tableau"] .sp-card-media {
  flex: 0 0 76px;
  aspect-ratio: 1 / 1;
}

[data-sp-layout="tableau"] .sp-card-media img {
  padding: 0.25rem;
}

[data-sp-layout="tableau"] .sp-card-body {
  flex-direction: row;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0.9rem;
}

[data-sp-layout="tableau"] .sp-card-title {
  min-height: 0;
  -webkit-line-clamp: 1;
  flex: 1;
  font-size: 0.92rem;
}

[data-sp-layout="tableau"] .sp-card-cond {
  align-self: center;
}

[data-sp-layout="tableau"] .sp-card-pickup {
  display: none;
}

[data-sp-layout="tableau"] .sp-card-price {
  margin-left: auto;
  font-size: 1.05rem;
  white-space: nowrap;
}

/* Plein cadre : photos recadrees plein cadre (cover assume, choisi par le
   patron en connaissance de cause — la grille par defaut reste en contain,
   cf. le commentaire de .sp-card-media img). Effet boutique de mode. */
[data-sp-layout="plein-cadre"] .sp-card-media img {
  object-fit: cover;
  padding: 0;
}

[data-sp-layout="plein-cadre"] .sp-card-media {
  aspect-ratio: 1 / 1;
}

[data-sp-layout="plein-cadre"] .sp-card-cond {
  display: none;
}

.sp-card-body {
  padding: 0.9rem 0.95rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.sp-card-title {
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--sp-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.sp-card-price {
  margin-top: auto;
  padding-top: 0.3rem;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--sp-price);
}

.sp-card-price.sp-noprice {
  color: var(--sp-faint);
  font-weight: 650;
  font-size: 0.95rem;
}

/* ---------- Services / how it works ---------- */
.sp-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.sp-service {
  border-radius: var(--sp-radius-lg);
  padding: 2rem 1.9rem;
  border: 1px solid var(--sp-line);
  position: relative;
  overflow: hidden;
}

.sp-service-buy {
  background: linear-gradient(160deg, var(--sp-hero-top), var(--sp-primary-soft));
}

.sp-service-sell {
  background: linear-gradient(160deg, var(--sp-hero-top), var(--sp-accent-soft));
}

.sp-service h3 {
  font-size: 1.35rem;
  font-weight: var(--sp-title-weight);
  letter-spacing: var(--sp-title-spacing);
  text-transform: var(--sp-title-transform);
  margin-bottom: 0.5rem;
}

.sp-service > p {
  color: var(--sp-muted);
  margin: 0 0 1.2rem;
}

.sp-steps {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sp-steps li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.sp-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--sp-ink);
}

.sp-service-buy .sp-step-num {
  color: var(--sp-primary);
}

.sp-service-sell .sp-step-num {
  color: var(--sp-accent-dark);
}

.sp-step-txt strong {
  display: block;
  font-weight: 700;
  font-size: 0.98rem;
}

.sp-step-txt span {
  font-size: 0.9rem;
  color: var(--sp-muted);
}

/* ---------- Shop block ---------- */
.sp-shop {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.6rem;
  align-items: stretch;
}

.sp-shop-card {
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius-lg);
  padding: 2rem 1.9rem;
  box-shadow: var(--sp-shadow);
}

.sp-shop-card h2 {
  font-size: 1.6rem;
  font-weight: var(--sp-title-weight);
  letter-spacing: var(--sp-title-spacing);
  text-transform: var(--sp-title-transform);
  margin-bottom: 1.2rem;
}

.sp-shop-lines {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sp-shop-lines li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.sp-shop-ico {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1.3;
}

.sp-shop-lines .sp-lbl {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sp-faint);
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.sp-shop-lines .sp-val {
  color: var(--sp-ink);
  white-space: pre-line;
}

.sp-shop-map {
  border-radius: var(--sp-radius-lg);
  border: 1px solid var(--sp-line);
  background:
    radial-gradient(circle at 30% 30%, rgba(37, 85, 255, 0.16), transparent 45%),
    radial-gradient(circle at 70% 75%, rgba(16, 185, 129, 0.16), transparent 45%),
    linear-gradient(135deg, var(--sp-map-bg), var(--sp-map-bg-2));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 2rem;
  text-align: center;
  min-height: 240px;
}

/* Photos du magasin (migration 261) : mosaique a la place de la carte
   decorative quand la fiche boutique a des photos. 2 colonnes, la 1re photo
   en grand sur toute la largeur (c'est la vue d'ensemble). */
.sp-shop-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  align-content: start;
}

.sp-shop-photos img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: var(--sp-radius);
  border: 1px solid var(--sp-line);
}

.sp-shop-photos img:first-child {
  grid-column: 1 / -1;
  height: 210px;
}

.sp-shop-photos.is-single img:first-child {
  height: 320px;
}

/* 2 photos exactement : la 2e s'etale aussi sur toute la largeur (sinon elle
   resterait seule sur une demi-colonne, bancale). */
.sp-shop-photos img:nth-child(2):last-child {
  grid-column: 1 / -1;
  height: 170px;
}

.sp-shop-map .sp-pin {
  font-size: 2.6rem;
}

.sp-shop-map p {
  margin: 0;
  color: var(--sp-muted);
  font-weight: 600;
}

/* ---------- Catalogue / search page ---------- */
.sp-page-head {
  background: linear-gradient(180deg, var(--sp-hero-top), var(--sp-bg));
  border-bottom: 1px solid var(--sp-line);
  padding: calc(2.6rem * var(--sp-space)) 0 calc(2.2rem * var(--sp-space));
}

.sp-page-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: var(--sp-title-weight);
  letter-spacing: var(--sp-title-spacing);
  text-transform: var(--sp-title-transform);
}

.sp-page-head p {
  margin: 0.5rem 0 0;
  color: var(--sp-muted);
  font-size: 1.02rem;
}

.sp-cat-search {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  background: var(--sp-surface);
  border: 1px solid var(--sp-line-strong);
  border-radius: var(--sp-radius-pill);
  padding: 0.25rem 0.25rem 0.25rem 1.1rem;
  max-width: 520px;
  box-shadow: var(--sp-shadow-sm);
}

.sp-cat-search input {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  padding: 0.55rem 0.3rem;
  width: 100%;
  outline: none;
}

.sp-cat-search button {
  border: 0;
  background: var(--sp-primary);
  color: #fff;
  border-radius: var(--sp-radius-pill);
  padding: 0.6rem 1.3rem;
  font-weight: 650;
  cursor: pointer;
  flex-shrink: 0;
}

.sp-cat-search button:hover {
  background: var(--sp-primary-dark);
}

.sp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.8rem;
}

.sp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--sp-radius-pill);
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sp-muted);
  transition: all 0.15s ease;
}

.sp-chip:hover {
  border-color: var(--sp-primary);
  color: var(--sp-primary);
}

.sp-chip.is-active {
  background: var(--sp-primary);
  border-color: var(--sp-primary);
  color: #fff;
}

/* ---------- Menu « Tous nos produits » (modele LDLC) ----------
   UNE entree dans la barre du site qui deroule les categories, chacune
   deroulant ses sous-categories au survol. Remplace le mur de pastilles qui
   s'affichait sur la page catalogue. Aucune couleur en dur : jetons --sp-*,
   donc les 4 themes du site fonctionnent. */
.sp-mega {
  position: relative;
}

.sp-mega-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.sp-mega-panel {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 0;
  z-index: 60;
  min-width: 260px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 0.4rem;
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow-lift);
}

.sp-mega-panel[hidden] {
  display: none;
}

.sp-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-mega-item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--sp-radius-sm);
  font-size: 0.9rem;
  color: var(--sp-ink);
}

.sp-mega-item > a:hover,
.sp-mega-item:focus-within > a {
  background: var(--sp-tile-bg);
  color: var(--sp-primary);
}

.sp-mega-count {
  color: var(--sp-faint);
  font-size: 0.78rem;
}

/* Second niveau : panneau lateral au survol sur PC.
   ⚠️ L'APPARENCE (fond, bordure, ombre) est portee par .sp-mega-subs lui-meme,
   et le survol ne bascule QUE `display`. Mise dans la regle de survol, elle
   laissait un panneau au fond TRANSPARENT des qu'il s'affichait autrement
   (clavier, test, futur clic) : du texte flottant par-dessus la page. Piege n°2
   de docs/architecture/ui_pitfalls.md. */
.sp-mega-subs {
  display: none;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 0.1rem;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 300px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 0.4rem;
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow-lift);
}

@media (min-width: 961px) {
  .sp-mega-item.has-subs > a::after {
    content: "›";
    color: var(--sp-faint);
  }
  .sp-mega-item.has-subs:hover > .sp-mega-subs,
  .sp-mega-item.has-subs:focus-within > .sp-mega-subs {
    display: grid;
  }
}

/* Hors media query, pour la meme raison que le fond du panneau : l'apparence ne
   doit pas dependre de la largeur d'ecran a laquelle on l'affiche. */
.sp-mega-subs a {
  padding: 0.34rem 0.55rem;
  border-radius: var(--sp-radius-sm);
  font-size: 0.84rem;
  color: var(--sp-muted);
}

.sp-mega-subs a:hover {
  background: var(--sp-tile-bg);
  color: var(--sp-primary);
}

/* Repli mobile : liste depliable native, cibles larges au pouce. */
.sp-mnav-cats summary {
  cursor: pointer;
  padding: 0.7rem 0;
  font-weight: 650;
}

.sp-mnav-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0 0.55rem 0.9rem;
  font-size: 0.92rem;
}

/* Second niveau (PS5, Xbox One...) : visuellement SUBORDONNE au premier — plus
   petit, decale derriere un filet, sans fond plein — pour qu'on lise « dans
   Jeux video » et non deux rangees de filtres concurrentes.
   ⚠️ Doit rester APRES .sp-chip : meme specificite (0,1,0), c'est l'ordre du
   fichier qui tranche. Place avant, le `background` etait ecrase et la
   sous-pastille gardait le fond plein (vu en recette). L'etat actif, lui, garde
   le fond plein de .sp-chip.is-active, declare plus haut : on le laisse gagner. */
/* Plus de marge negative : elle servait a recoller la rangee sous les pastilles
   de categorie, qui ont ete retirees de la page. */
.sp-subchips {
  margin: 0 0 1.8rem;
}

.sp-chip-sub:not(.is-active) {
  padding: 0.34rem 0.7rem;
  font-size: 0.82rem;
  background: transparent;
}

.sp-chip-sub.is-active {
  padding: 0.34rem 0.7rem;
  font-size: 0.82rem;
}

.sp-result-note {
  color: var(--sp-muted);
  font-size: 0.92rem;
  margin: 0 0 1.4rem;
}

/* ---------- Empty state ---------- */
.sp-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--sp-muted);
}

.sp-empty-ico {
  font-size: 2.8rem;
}

.sp-empty h2 {
  margin: 0.6rem 0 0.4rem;
  color: var(--sp-ink);
  font-size: 1.4rem;
}

/* ---------- Product page ---------- */
.sp-breadcrumb {
  padding: 1.3rem 0 0;
  font-size: 0.88rem;
  color: var(--sp-muted);
}

.sp-breadcrumb a:hover {
  color: var(--sp-primary);
}

.sp-breadcrumb span {
  color: var(--sp-faint);
  margin: 0 0.4rem;
}

.sp-product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.6rem;
  padding: 1.4rem 0 3.6rem;
  align-items: start;
}

.sp-gallery-main {
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius-lg);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sp-shadow-sm);
}

.sp-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sp-gallery-main .sp-noimg {
  color: var(--sp-faint);
}

.sp-thumbs {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.sp-thumb {
  width: 74px;
  height: 74px;
  border-radius: var(--sp-radius-sm);
  border: 1.5px solid var(--sp-line);
  overflow: hidden;
  background: var(--sp-surface);
  padding: 0;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.sp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-thumb.is-active {
  border-color: var(--sp-primary);
  box-shadow: 0 0 0 1px var(--sp-primary);
}

.sp-info h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: var(--sp-title-spacing);
  font-weight: var(--sp-title-weight);
  text-transform: var(--sp-title-transform);
  margin-bottom: 0.9rem;
}

.sp-info-price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sp-price);
  margin-bottom: 0.5rem;
}

.sp-info-price.sp-noprice {
  color: var(--sp-faint);
  font-size: 1.2rem;
}

.sp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1.4rem;
}

.sp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.75rem;
  border-radius: var(--sp-radius-pill);
  font-size: 0.82rem;
  font-weight: 650;
  background: var(--sp-primary-soft);
  color: var(--sp-primary-dark);
}

.sp-badge.sp-badge-stock {
  background: var(--sp-accent-soft);
  color: var(--sp-accent-dark);
}

/* Etat sur la fiche : neutre par defaut (occasion), vert seulement si c'est
   vraiment du neuf. Avant, tout etat portait un « ✨ » qui faisait « neuf ». */
.sp-badge.sp-badge-cond {
  background: var(--sp-tile-bg);
  color: var(--sp-muted);
}

.sp-badge.sp-badge-cond.is-new {
  background: var(--sp-accent-soft);
  color: var(--sp-accent-dark);
}

.sp-desc {
  color: var(--sp-ink);
  font-size: 1rem;
  white-space: pre-line;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.sp-avail {
  background: var(--sp-surface-2);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 1.25rem 1.35rem;
}

.sp-avail h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sp-avail p {
  margin: 0.3rem 0;
  color: var(--sp-muted);
  font-size: 0.93rem;
}

.sp-avail .sp-btn {
  margin-top: 1rem;
}

.sp-meta-line {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  color: var(--sp-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Vendre page ---------- */
.sp-sell-hero {
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(16, 185, 129, 0.12), transparent 60%),
    linear-gradient(180deg, var(--sp-hero-top), var(--sp-bg));
  border-bottom: 1px solid var(--sp-line);
  padding: calc(3.4rem * var(--sp-space)) 0;
}

.sp-sell-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: var(--sp-title-weight);
  /* Historique : -0.03em = jeton resserre d'un cran (idem .sp-hero h1). */
  letter-spacing: calc(var(--sp-title-spacing) - 0.01em);
  text-transform: var(--sp-title-transform);
  max-width: 18ch;
}

.sp-sell-hero h1 .sp-hl {
  color: var(--sp-accent-dark);
}

.sp-sell-hero p {
  margin: 1.1rem 0 0;
  max-width: 52ch;
  color: var(--sp-muted);
  font-size: 1.12rem;
}

.sp-sell-hero .sp-hero-cta {
  margin-top: 1.8rem;
}

.sp-sell-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.sp-sell-step {
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius-lg);
  padding: 1.8rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sp-sell-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--sp-shadow);
}

.sp-sell-step .sp-num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--sp-accent-soft);
  color: var(--sp-accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.sp-sell-step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.sp-sell-step p {
  margin: 0;
  color: var(--sp-muted);
  font-size: 0.95rem;
}

.sp-sell-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.sp-sell-cats span {
  padding: 0.5rem 1rem;
  border-radius: var(--sp-radius-pill);
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  font-size: 0.9rem;
  font-weight: 600;
}

.sp-cta-band {
  background: linear-gradient(135deg, var(--sp-primary), var(--sp-primary-dark));
  border-radius: var(--sp-radius-lg);
  padding: 2.6rem 2.2rem;
  text-align: center;
  color: #fff;
}

.sp-cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--sp-title-weight);
  letter-spacing: var(--sp-title-spacing);
  text-transform: var(--sp-title-transform);
}

.sp-cta-band p {
  margin: 0.6rem auto 1.6rem;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.88);
}

.sp-cta-band .sp-btn-outline {
  background: #fff;
  border-color: #fff;
  color: var(--sp-primary-dark);
}

.sp-cta-band .sp-btn-outline:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--sp-primary-dark);
}

/* ---------- Footer ---------- */
.sp-footer {
  border-top: 1px solid var(--sp-line);
  background: var(--sp-footer-bg);
  color: var(--sp-footer-text);
  padding: 3rem 0 2rem;
}

.sp-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 2rem;
}

.sp-footer .sp-brand {
  color: var(--sp-footer-strong);
  margin-bottom: 0.7rem;
}

.sp-footer-tag {
  color: var(--sp-footer-muted);
  font-size: 0.92rem;
  max-width: 34ch;
}

.sp-footer h4 {
  color: var(--sp-footer-strong);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.9rem;
}

.sp-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sp-footer a:hover {
  color: var(--sp-footer-strong);
}

.sp-footer address {
  font-style: normal;
  color: var(--sp-footer-text);
  font-size: 0.92rem;
  line-height: 1.7;
  white-space: pre-line;
}

.sp-footer-bottom {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--sp-footer-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--sp-footer-faint);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .sp-hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: calc(2.6rem * var(--sp-space)) 0 calc(2.8rem * var(--sp-space));
  }
  .sp-hero-media {
    order: -1;
    max-width: 440px;
  }
  .sp-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.3rem;
  }
  .sp-cats {
    grid-template-columns: repeat(3, 1fr);
  }
  .sp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .sp-services,
  .sp-shop,
  .sp-sell-steps {
    grid-template-columns: 1fr;
  }
  .sp-product {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .sp-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .sp-nav,
  .sp-header-icons {
    display: none;
  }
  .sp-search {
    max-width: none;
  }
  .sp-burger {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .sp-cats {
    grid-template-columns: repeat(2, 1fr);
  }
  .sp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .sp-section {
    padding: calc(2.4rem * var(--sp-space)) 0;
  }
  .sp-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .sp-sell-steps {
    grid-template-columns: 1fr;
  }
  .sp-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .sp-card-body {
    padding: 0.7rem 0.75rem 0.9rem;
  }
  .sp-card-title {
    font-size: 0.9rem;
    min-height: 2.5em;
  }
  .sp-card-price {
    font-size: 1.05rem;
  }
  .sp-service,
  .sp-shop-card {
    padding: 1.5rem 1.3rem;
  }
}

@media (max-width: 400px) {
  .sp-search input {
    font-size: 0.85rem;
  }
}

/* ---------- Fiche boutique (logo / reseaux / contact / mentions) ---------- */
/* Un logo d'enseigne est presque toujours RECTANGULAIRE large. L'enfermer dans
   un carre 36x36 avec object-fit:cover le recadrait au centre : les cotes
   etaient ronges (« logo mange », retour du 18/07/2026). On fixe la hauteur, on
   libere la largeur, et `contain` garantit qu'il rentre en entier. Pas de
   border-radius ni de bordure : ca rognait les coins d'un logo detoure. */
.sp-brand-logo {
  width: auto;
  height: 36px;
  max-width: 150px;
  object-fit: contain;
  object-position: left center;
}

.sp-socials {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.sp-socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--sp-footer-text);
}

.sp-socials a:hover {
  color: var(--sp-footer-strong);
}

.sp-footer-contact {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.92rem;
}

.sp-legal {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sp-legal-card {
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 1.5rem 1.6rem;
}

.sp-legal-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.sp-legal-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--sp-muted);
}

.sp-legal-card a {
  color: var(--sp-primary);
}

/* --- Vente en ligne (panier / commande) --- */
/* Tunnel : panier -> coordonnees -> paiement -> confirmation. Retrait en
   magasin uniquement, articles en piece unique (jamais de quantite).
   100 % jetons --sp-* : lisible sur les 4 themes (clair/nuit/punchy/mineral). */

.sp-shop {
  padding: 1.6rem 1.15rem 3.5rem;
}

.sp-shop-title {
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem);
  font-weight: 750;
  /* Historique : -0.01em = jeton relache d'un cran (titre de page interne). */
  letter-spacing: calc(var(--sp-title-spacing) + 0.01em);
  margin-bottom: 1.3rem;
}

/* Colonne principale + recapitulatif. minmax(0, ...) evite qu'un titre long
   pousse la grille (pas de largeur figee : ok de 1280 a 2560). */
.sp-shop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.3rem;
  align-items: start;
}

@media (min-width: 900px) {
  .sp-shop-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 22rem);
  }
}

/* ---- Bandeau d'alerte (article parti, erreur de commande) ---- */
.sp-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--sp-radius-sm);
  background: var(--sp-surface-2);
  border: 1.5px solid var(--sp-line-strong);
  color: var(--sp-ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

.sp-alert-block {
  margin-bottom: 1.3rem;
}

.sp-alert-icon {
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 0.12rem;
}

/* ---- Liste du panier ---- */
.sp-cart-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sp-cart-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 1.05rem 1.2rem;
  box-shadow: var(--sp-shadow-sm);
}

.sp-cart-line-main {
  flex: 1 1 14rem;
  min-width: 0;
}

.sp-cart-line-title {
  font-size: 1.02rem;
  font-weight: 680;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sp-cart-line-note {
  margin: 0.3rem 0 0;
  font-size: 0.86rem;
  color: var(--sp-muted);
}

.sp-cart-line-side {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

.sp-cart-line-price {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--sp-price);
  white-space: nowrap;
}

.sp-btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
}

.sp-btn-block {
  display: flex;
  width: 100%;
  margin-top: 0.9rem;
}

/* Bouton « Commander » neutralise : c'est un <span>, donc pas de navigation ni
   de survol, et l'etat est annonce par aria-disabled. */
.sp-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

/* ---- Article vendu entre-temps : LE cas critique de l'ecran ---- */
/* Hachures + trait discontinu + prix barre : impossible de le confondre avec
   une ligne normale, meme en lisant vite ou en noir et blanc. */
.sp-cart-line.is-gone {
  border-style: dashed;
  border-color: var(--sp-line-strong);
  box-shadow: none;
  background-color: var(--sp-surface-2);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 10px,
    var(--sp-line) 10px 11px
  );
}

.sp-cart-line.is-gone .sp-cart-line-title {
  color: var(--sp-faint);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.sp-cart-line.is-gone .sp-cart-line-price {
  color: var(--sp-faint);
  text-decoration: line-through;
}

/* Pastille inversee (fond = encre, texte = surface) : contraste maximal sur
   les 4 themes, sans introduire une couleur non themee. */
.sp-cart-line-gone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.45rem 0 0;
  padding: 0.3rem 0.65rem;
  border-radius: var(--sp-radius-pill);
  background: var(--sp-ink);
  color: var(--sp-surface);
  font-size: 0.84rem;
  font-weight: 700;
}

/* ---- Recapitulatif (colonne de droite) ---- */
.sp-summary {
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 1.25rem 1.35rem 1.4rem;
  box-shadow: var(--sp-shadow);
}

@media (min-width: 900px) {
  .sp-summary {
    position: sticky;
    top: calc(var(--sp-header-h) + 14px);
  }
}

.sp-summary-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.sp-summary-lines {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sp-summary-lines li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.92rem;
  color: var(--sp-muted);
}

.sp-summary-line-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sp-summary-line-price {
  white-space: nowrap;
  font-weight: 650;
  color: var(--sp-ink);
}

.sp-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.93rem;
  color: var(--sp-muted);
  padding: 0.35rem 0;
}

.sp-summary-row-total {
  border-top: 1px solid var(--sp-line);
  margin-top: 0.35rem;
  padding-top: 0.7rem;
  font-size: 1.02rem;
  color: var(--sp-ink);
}

.sp-summary-row-total strong {
  font-size: 1.3rem;
  font-weight: 780;
  color: var(--sp-price);
}

.sp-summary-note {
  margin: 0.5rem 0 0;
  font-size: 0.84rem;
  color: var(--sp-muted);
}

.sp-summary-blocked {
  margin: 0.6rem 0 0;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--sp-ink);
}

.sp-summary-back {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 620;
  color: var(--sp-primary);
}

.sp-summary-back:hover {
  text-decoration: underline;
}

/* ---- Panier vide ---- */
.sp-empty {
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius-lg);
  padding: 3rem 1.4rem 3.2rem;
  text-align: center;
  box-shadow: var(--sp-shadow-sm);
}

.sp-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: var(--sp-radius-pill);
  background: var(--sp-tile-bg);
  color: var(--sp-faint);
  margin-bottom: 1rem;
}

.sp-empty h2 {
  font-size: 1.25rem;
  font-weight: 720;
  margin-bottom: 0.5rem;
}

.sp-empty p {
  margin: 0 auto 1.4rem;
  max-width: 34rem;
  color: var(--sp-muted);
  font-size: 0.95rem;
}

/* ---- Encart retrait en magasin ---- */
.sp-pickup {
  background: var(--sp-surface-2);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 1.2rem 1.35rem;
}

.sp-pickup h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.sp-pickup p {
  margin: 0.3rem 0;
  color: var(--sp-muted);
  font-size: 0.93rem;
}

/* ---- Formulaire de commande ---- */
.sp-checkout {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sp-form {
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: var(--sp-shadow-sm);
}

.sp-form-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.sp-field {
  margin-bottom: 1.05rem;
}

.sp-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.sp-field input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--sp-ink);
  background: var(--sp-surface-2);
  border: 1.5px solid var(--sp-line-strong);
  border-radius: var(--sp-radius-sm);
}

.sp-field input::placeholder {
  color: var(--sp-faint);
}

.sp-field input:focus {
  outline: none;
  border-color: var(--sp-primary);
  background: var(--sp-surface);
}

.sp-field-help {
  margin: 0.35rem 0 0;
  font-size: 0.83rem;
  color: var(--sp-muted);
}

.sp-req {
  color: var(--sp-primary);
}

.sp-opt {
  font-weight: 500;
  color: var(--sp-faint);
}

.sp-form-note {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.84rem;
  color: var(--sp-muted);
}

/* ---- Confirmation de commande ---- */
.sp-confirm {
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius-lg);
  padding: 2.2rem 1.5rem 2rem;
  text-align: center;
  box-shadow: var(--sp-shadow);
  margin-bottom: 1.3rem;
}

.sp-confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: var(--sp-radius-pill);
  background: var(--sp-accent-soft);
  color: var(--sp-accent-dark);
  margin-bottom: 0.9rem;
}

.sp-confirm.is-pending .sp-confirm-icon {
  background: var(--sp-tile-bg);
  color: var(--sp-muted);
}

.sp-confirm h1 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.95rem);
  font-weight: 760;
  letter-spacing: -0.01em;
}

.sp-confirm-lead {
  margin: 0.6rem auto 1.3rem;
  max-width: 38rem;
  color: var(--sp-muted);
  font-size: 1rem;
}

.sp-confirm-ref {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 1.4rem;
  border: 1.5px dashed var(--sp-line-strong);
  border-radius: var(--sp-radius-sm);
  background: var(--sp-surface-2);
}

.sp-confirm-ref-lbl {
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sp-muted);
}

.sp-confirm-ref-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sp-ink);
  overflow-wrap: anywhere;
}

.sp-confirm-next {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sp-confirm-next h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.sp-steps {
  margin: 0;
  padding: 0 0 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--sp-muted);
  font-size: 0.95rem;
}

.sp-steps strong {
  color: var(--sp-ink);
}

.sp-confirm-hint {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  color: var(--sp-muted);
}

.sp-confirm-contact {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font-size: 0.93rem;
  font-weight: 620;
}

.sp-confirm-contact a {
  color: var(--sp-primary);
}

/* ---- Telephone : mise en page pensee a part ---- */
@media (max-width: 620px) {
  .sp-shop {
    padding: 1.1rem 1rem 2.6rem;
  }

  /* La ligne passe en bloc : titre en haut, prix et « Retirer » sur une barre
     dediee, cibles larges pour le pouce. */
  .sp-cart-line {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .sp-cart-line-side {
    justify-content: space-between;
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid var(--sp-line);
  }

  .sp-cart-line-side .sp-btn {
    padding: 0.62rem 1.1rem;
  }

  .sp-summary,
  .sp-form,
  .sp-pickup {
    padding: 1.1rem;
  }

  .sp-confirm {
    padding: 1.8rem 1.1rem 1.6rem;
  }

  .sp-empty {
    padding: 2.4rem 1.1rem 2.6rem;
  }
}

/* --- Achat en ligne : bouton de la fiche produit --------------------------
   Uniquement visible quand la boutique a ouvert la vente (migration 249).
   Jetons --sp-* exclusivement : ce bloc doit rester lisible sur les 4 themes. */
.sp-buy {
  margin: 1.1rem 0 1.3rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius, 14px);
  background: var(--sp-surface);
}
.sp-buy-btn {
  width: 100%;
  font-size: 1.02rem;
  padding: 0.85rem 1.2rem;
}
.sp-buy-note {
  margin: 0.6rem 0 0;
  font-size: 0.86rem;
  color: var(--sp-muted);
  line-height: 1.45;
}

/* Bandeau « démonstration » de la page de confirmation (paiement simulé,
   bulles d'aperçu et démos uniquement). Contraste maximal sans couleur en dur :
   on inverse encre/surface, seule facon d'alerter sur les 4 themes. */
.sp-confirm-sim {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--sp-radius-sm, 10px);
  background: var(--sp-ink);
  color: var(--sp-surface);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* --- Documents légaux : CGV + rétractation en ligne -----------------------
   Jetons --sp-* uniquement (4 thèmes). L'alerte « document incomplet » inverse
   encre/surface : c'est le seul contraste fort disponible sans couleur en dur. */
.sp-legal-warn {
  margin: 0 0 1.4rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--sp-radius-sm, 10px);
  background: var(--sp-ink);
  color: var(--sp-surface);
  line-height: 1.5;
}
.sp-legal-form {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius-sm, 10px);
  background: var(--sp-surface-2);
  color: var(--sp-ink);
  font-size: 0.86rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-x: auto;
}
.sp-withdraw {
  margin: 2rem 0 0;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius, 14px);
  background: var(--sp-surface);
}
.sp-withdraw h2 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.sp-withdraw p { margin: 0 0 0.8rem; color: var(--sp-muted); line-height: 1.55; }
.sp-withdraw-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
  color: var(--sp-muted);
}
.sp-withdraw textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  margin-bottom: 0.7rem;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius-sm, 10px);
  background: var(--sp-surface);
  color: var(--sp-ink);
  font: inherit;
  resize: vertical;
}
.sp-withdraw-note { margin: 0.9rem 0 0; font-size: 0.85rem; }

/* =========================================================================
   GABARITS D'ACCUEIL ALTERNATIFS (migration 255)
   Trois STRUCTURES de page d'accueil au choix du patron, en plus du gabarit
   historique « classique » (home.html) :
     - « marche »   -> home_marche.html   (.sp-mk-*)  : gros catalogue
     - « sections » -> home_sections.html (.sp-uni-*) : un univers par bloc
     - « carte »    -> home_carte.html    (.sp-ca-*)  : petit commerce
   Regles : jetons --sp-* UNIQUEMENT (4 themes, dont des sombres), aucune
   largeur figee (que des max-width et des grilles auto-fit), et une
   declinaison telephone pensee a part en fin de section.
   ========================================================================= */

/* Conteneur large : le gabarit « marche » doit pouvoir aligner 5-6 colonnes sur
   un 27". Cap en px = plafond, pas une largeur imposee : sous 1600px la page
   reste fluide comme .sp-wrap. */
.sp-wrap-wide {
  max-width: 1600px;
}

/* ---------------- Gabarit « marche » : chercher et comparer ---------------- */
.sp-mk-head {
  background: linear-gradient(180deg, var(--sp-hero-top), var(--sp-bg));
  border-bottom: 1px solid var(--sp-line);
  padding: calc(2.8rem * var(--sp-space)) 0 calc(2.2rem * var(--sp-space));
  text-align: center;
}

.sp-mk-eyebrow {
  margin: 0 0 0.6rem;
  color: var(--sp-primary);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sp-mk-title {
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  font-weight: var(--sp-title-weight);
  /* Historique : -0.025em = jeton resserre d'un demi-cran. */
  letter-spacing: calc(var(--sp-title-spacing) - 0.005em);
  text-transform: var(--sp-title-transform);
  line-height: 1.12;
  color: var(--sp-ink);
}

/* La recherche est LE geste principal de ce gabarit : elle occupe la largeur
   d'un champ de saisie confortable, jamais un ruban etire sur 1600px. */
.sp-mk-search {
  margin: 1.6rem auto 0.9rem;
  max-width: 720px;
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}

.sp-mk-search input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--sp-line-strong);
  border-radius: var(--sp-radius-pill);
  background: var(--sp-surface);
  color: var(--sp-ink);
  font: inherit;
  font-size: 1.02rem;
  box-shadow: var(--sp-shadow-sm);
}

.sp-mk-search input::placeholder {
  color: var(--sp-faint);
}

.sp-mk-search input:focus {
  outline: none;
  border-color: var(--sp-primary);
  box-shadow: 0 0 0 3px var(--sp-primary-soft);
}

.sp-mk-search .sp-btn {
  flex: 0 0 auto;
  border-radius: var(--sp-radius-pill);
  padding: 0.9rem 1.5rem;
}

.sp-mk-count {
  margin: 0;
  color: var(--sp-muted);
  font-size: 0.95rem;
}

.sp-mk-count strong {
  color: var(--sp-ink);
  font-size: 1.05rem;
}

.sp-mk-sep {
  color: var(--sp-faint);
  padding: 0 0.15rem;
}

/* Rangee de rayons : auto-fit, donc 2 colonnes sur un petit portable et 5 sur
   un 27" sans aucun palier code en dur. */
.sp-mk-rayons {
  padding: 1.4rem 0 0.2rem;
}

.sp-mk-rayons-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.7rem;
}

.sp-mk-rayon {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius-sm);
  background: var(--sp-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.sp-mk-rayon:hover {
  border-color: var(--sp-primary);
  box-shadow: var(--sp-shadow-sm);
  transform: translateY(-2px);
}

.sp-mk-rayon-ico {
  font-size: 1.35rem;
  line-height: 1;
  flex: 0 0 auto;
}

.sp-mk-rayon-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sp-mk-rayon-name {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--sp-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-mk-rayon-count {
  font-size: 0.79rem;
  color: var(--sp-muted);
}

.sp-mk-rayon-all {
  border-style: dashed;
  border-color: var(--sp-line-strong);
  background: var(--sp-surface-2);
}

/* Grille DENSE : 5 a 6 colonnes sur grand ecran, sans jamais tomber sous une
   vignette lisible. `auto-fill` + minmax remplace les paliers @media, donc ca
   suit la largeur REELLE disponible (cf. ui_pitfalls.md section 9). */
.sp-mk-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.95rem;
}

.sp-mk-stock .sp-card-price {
  font-size: 1.2rem;
}

.sp-mk-stock .sp-center-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.sp-mk-shop {
  padding: 0 0 calc(3rem * var(--sp-space));
}

.sp-mk-shop-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  background: var(--sp-surface);
}

.sp-mk-shop-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.sp-mk-shop-name {
  font-weight: 800;
  color: var(--sp-ink);
}

.sp-mk-shop-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  color: var(--sp-muted);
  font-size: 0.9rem;
}

.sp-mk-shop-lines a:hover {
  color: var(--sp-primary);
}

/* -------------- Gabarit « sections » : un univers par bloc ---------------- */
.sp-uni-intro {
  padding: calc(3rem * var(--sp-space)) 0 calc(2.4rem * var(--sp-space));
  background: linear-gradient(180deg, var(--sp-hero-top), var(--sp-bg));
  border-bottom: 1px solid var(--sp-line);
  text-align: center;
}

.sp-uni-eyebrow {
  margin: 0 0 0.7rem;
  color: var(--sp-primary);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sp-uni-intro h1 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: var(--sp-title-weight);
  /* Historique : -0.03em = jeton resserre d'un cran (idem .sp-hero h1). */
  letter-spacing: calc(var(--sp-title-spacing) - 0.01em);
  text-transform: var(--sp-title-transform);
  line-height: 1.1;
  color: var(--sp-ink);
}

.sp-uni-sub {
  margin: 0.9rem auto 1.4rem;
  max-width: 62ch;
  color: var(--sp-muted);
  font-size: 1.02rem;
}

.sp-uni-intro .sp-hero-cta {
  justify-content: center;
}

/* Un bloc = un rayon, pleine largeur, fond alterne. La bande impaire prend la
   surface de page, la paire la surface carte : le contraste vient des jetons,
   donc il suit les 4 themes. */
.sp-uni {
  padding: calc(2.6rem * var(--sp-space)) 0;
  border-bottom: 1px solid var(--sp-line);
  background: var(--sp-bg);
}

.sp-uni-alt {
  background: var(--sp-surface);
}

.sp-uni-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: 2rem;
  align-items: center;
}

/* Bloc pair : le visuel passe a GAUCHE (c'est ce qui donne l'alternance). */
.sp-uni-alt .sp-uni-inner {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
}

.sp-uni-alt .sp-uni-copy {
  order: 2;
}

.sp-uni-alt .sp-uni-visual {
  order: 1;
}

.sp-uni-num {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--sp-faint);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.sp-uni-copy h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-weight: var(--sp-title-weight);
  letter-spacing: var(--sp-title-spacing);
  text-transform: var(--sp-title-transform);
  color: var(--sp-ink);
}

.sp-uni-count {
  margin: 0.35rem 0 0;
  color: var(--sp-primary);
  font-weight: 700;
}

.sp-uni-txt {
  margin: 0.6rem 0 1.2rem;
  max-width: 52ch;
  color: var(--sp-muted);
}

/* Visuel du rayon : pas de photo disponible par categorie (cf. entete de
   home_sections.html), donc une pastille d'icone franche plutot qu'une image
   trompeuse. Pas d'aspect-ratio ici : en disposition etiree il deborderait de
   sa colonne (piege 1bis de ui_pitfalls.md). C'est min-height qui tient la
   hauteur, la colonne impose la largeur. */
.sp-uni-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 180px;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius-lg);
  background: linear-gradient(135deg, var(--sp-tile-bg), var(--sp-tile-bg-2));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sp-uni-visual:hover {
  transform: translateY(-3px);
  box-shadow: var(--sp-shadow);
}

.sp-uni-ico {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
}

/* --------------- Gabarit « carte » : le petit commerce -------------------- */
/* Colonne de lecture etroite et centree : une carte de restaurant ne s'etale
   pas sur 1600px, meme sur un 32". */
.sp-ca-wrap {
  max-width: 760px;
}

.sp-ca-head {
  padding: calc(3rem * var(--sp-space)) 0 calc(2.2rem * var(--sp-space));
  text-align: center;
  background: linear-gradient(180deg, var(--sp-hero-top), var(--sp-bg));
  border-bottom: 1px solid var(--sp-line);
}

.sp-ca-name {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--sp-ink);
}

.sp-ca-activity {
  margin: 0.6rem 0 0;
  color: var(--sp-muted);
  font-size: 1.02rem;
  font-style: italic;
}

.sp-ca-pills {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.sp-ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--sp-line-strong);
  border-radius: var(--sp-radius-pill);
  background: var(--sp-surface);
  color: var(--sp-ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.sp-ca-pill-link:hover {
  border-color: var(--sp-primary);
  color: var(--sp-primary);
}

.sp-ca-menu,
.sp-ca-about,
.sp-ca-visit {
  padding: 2.6rem 0;
}

.sp-ca-about {
  background: var(--sp-surface);
  border-top: 1px solid var(--sp-line);
  border-bottom: 1px solid var(--sp-line);
}

.sp-ca-h2 {
  margin-bottom: 1.3rem;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: var(--sp-title-weight);
  letter-spacing: var(--sp-title-spacing);
  text-transform: var(--sp-title-transform);
  color: var(--sp-ink);
  text-align: center;
}

/* La carte : nom a gauche, prix a droite, un filet entre les deux. Aucune
   photo — c'est le principe du gabarit, et ca reste elegant a 10 produits
   comme a 30. */
.sp-ca-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-ca-line + .sp-ca-line {
  border-top: 1px solid var(--sp-line);
}

.sp-ca-line > a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.85rem 0.4rem;
  border-radius: var(--sp-radius-sm);
}

.sp-ca-line > a:hover {
  background: var(--sp-surface-2);
}

.sp-ca-line-name {
  color: var(--sp-ink);
  font-weight: 650;
  font-size: 1.02rem;
}

.sp-ca-line-cond {
  margin-left: 0.45rem;
  color: var(--sp-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

/* Le filet pointille « a la carte » : il s'etire tout seul quelle que soit la
   longueur du nom du produit. */
.sp-ca-dots {
  flex: 1 1 auto;
  min-width: 1.5rem;
  align-self: center;
  height: 1px;
  border-bottom: 1px dotted var(--sp-line-strong);
}

.sp-ca-line-price {
  flex: 0 0 auto;
  color: var(--sp-price);
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
}

.sp-ca-line-noprice {
  color: var(--sp-muted);
  font-weight: 650;
  font-size: 0.92rem;
}

.sp-ca-more {
  margin-top: 1.6rem;
  text-align: center;
}

.sp-ca-about-txt {
  margin: 0;
  color: var(--sp-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  text-align: center;
}

.sp-ca-visit {
  text-align: center;
}

.sp-ca-address {
  margin: 0 0 0.9rem;
  color: var(--sp-ink);
  font-size: 1.05rem;
  font-style: normal;
  line-height: 1.6;
}

.sp-ca-contact {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  justify-content: center;
  color: var(--sp-muted);
}

.sp-ca-contact a:hover {
  color: var(--sp-primary);
}

/* ---- Telephone : mise en page pensee A PART pour les 3 gabarits ---------- */
@media (max-width: 720px) {
  /* « marche » : la recherche passe en bloc (champ pleine largeur puis bouton
     pleine largeur), les rayons deviennent une bande qui defile au pouce. */
  .sp-mk-head {
    padding: calc(2rem * var(--sp-space)) 0 calc(1.7rem * var(--sp-space));
    text-align: left;
  }

  .sp-mk-search {
    flex-direction: column;
    margin-left: 0;
  }

  .sp-mk-search .sp-btn {
    width: 100%;
    justify-content: center;
  }

  .sp-mk-rayons-row {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
  }

  .sp-mk-rayon {
    flex: 0 0 auto;
    scroll-snap-align: start;
    max-width: 220px;
  }

  .sp-mk-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }

  .sp-mk-shop-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .sp-mk-shop-bar .sp-btn {
    justify-content: center;
  }

  /* « sections » : chaque univers devient une carte empilee, visuel EN HAUT
     (l'alternance gauche/droite n'a plus de sens en colonne unique). */
  .sp-uni-inner,
  .sp-uni-alt .sp-uni-inner {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .sp-uni-copy,
  .sp-uni-alt .sp-uni-copy {
    order: 2;
  }

  .sp-uni-visual,
  .sp-uni-alt .sp-uni-visual {
    order: 1;
    min-height: 120px;
  }

  .sp-uni {
    padding: calc(1.9rem * var(--sp-space)) 0;
  }

  .sp-uni-copy .sp-btn {
    width: 100%;
    justify-content: center;
  }

  /* « carte » : lignes plus aerees (cible du pouce), le filet pointille
     disparait — il n'apporte plus rien sur 360px et serre le prix. */
  .sp-ca-head {
    padding: calc(2.1rem * var(--sp-space)) 0 calc(1.7rem * var(--sp-space));
  }

  .sp-ca-line > a {
    padding: 0.95rem 0.3rem;
  }

  .sp-ca-dots {
    display: none;
  }

  .sp-ca-line-name {
    flex: 1 1 auto;
    min-width: 0;
  }

  .sp-ca-more .sp-btn,
  .sp-ca-visit .sp-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .sp-mk-grid {
    grid-template-columns: 1fr;
  }
}

/* Aperçu d'articles dans un bloc « univers » (gabarit Sections). Remplace la
   pastille d'icône quand la route fournit categories_apercu. Jetons --sp-*
   uniquement ; 2 colonnes, une seule sous 720px. */
.sp-uni-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}
.sp-uni-preview .sp-card { margin: 0; }
@media (max-width: 720px) {
  .sp-uni-preview { grid-template-columns: minmax(0, 1fr); }
  .sp-uni-preview .sp-card:nth-child(n + 3) { display: none; }
}

/* ---------------- Gabarit « galerie » : le visuel commande ----------------
   Pense pour l'habillage `galerie` (aucun arrondi, lettres tres espacees,
   beaucoup d'air). Principe : AUCUNE carte, AUCUN cadre, AUCUN bouton plein.
   Le mur d'images est une grille collee (gap: 1px) posee sur --sp-line : le
   filet entre les photos EST le fond qui depasse, donc il suit les 4 themes
   sans une seule couleur en dur. Toutes les respirations passent par
   --sp-space, donc l'habillage les dilate (galerie = 1.6). */
.sp-gl-head {
  padding: calc(4rem * var(--sp-space)) 0 calc(2.6rem * var(--sp-space));
  text-align: center;
}

.sp-gl-title {
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.9rem);
  line-height: 1.25;
  color: var(--sp-ink);
  text-transform: uppercase;
  /* Interlettrage et graisse = jetons d'habillage : c'est ce qui donne son
     allure au gabarit (galerie : 0.28em / 400). */
  letter-spacing: var(--sp-title-spacing);
  font-weight: var(--sp-title-weight);
}

.sp-gl-sub {
  margin: calc(0.9rem * var(--sp-space)) auto 0;
  max-width: 52ch;
  color: var(--sp-muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Mur d'images : auto-fill, donc 2 colonnes sur un petit portable et 7 sur un
   32" sans aucun palier code en dur. Pas de largeur figee, pas d'unite de
   viewport (le zoom grand ecran n'a rien a compenser ici). */
.sp-gl-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px;
  background: var(--sp-line);
  border-top: 1px solid var(--sp-line);
  border-bottom: 1px solid var(--sp-line);
}

.sp-gl-cell {
  display: block;
  background: var(--sp-surface);
  padding-bottom: calc(1.1rem * var(--sp-space));
}

.sp-gl-media {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sp-tile-bg), var(--sp-tile-bg-2));
}

.sp-gl-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.sp-gl-cell:hover .sp-gl-media img {
  opacity: 0.86;
  transform: scale(1.02);
}

.sp-gl-noimg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-faint);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Legende : discrete, centree, elle ne doit jamais concurrencer la photo. */
.sp-gl-cap {
  display: block;
  padding: calc(0.85rem * var(--sp-space)) 0.9rem 0;
  text-align: center;
}

.sp-gl-cap-name {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--sp-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-gl-cap-price {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--sp-ink);
}

.sp-gl-empty {
  margin: 0;
  padding: calc(3rem * var(--sp-space)) 1.15rem;
  text-align: center;
  color: var(--sp-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.sp-gl-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(1.6rem * var(--sp-space));
  padding: calc(2.6rem * var(--sp-space)) 1.15rem;
}

/* Lien TEXTE : aucun bouton plein dans ce gabarit. */
.sp-gl-link {
  color: var(--sp-ink);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--sp-line-strong);
  padding-bottom: 0.25rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.sp-gl-link:hover {
  color: var(--sp-primary);
  border-bottom-color: var(--sp-primary);
}

.sp-gl-shop {
  border-top: 1px solid var(--sp-line);
  padding: calc(3rem * var(--sp-space)) 0 calc(3.4rem * var(--sp-space));
  text-align: center;
}

.sp-gl-shop-title {
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: var(--sp-title-weight);
  color: var(--sp-ink);
}

.sp-gl-shop-lines {
  margin: calc(1.1rem * var(--sp-space)) 0 calc(1.4rem * var(--sp-space));
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--sp-muted);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.sp-gl-shop-lines a:hover {
  color: var(--sp-primary);
}

/* Telephone : le mur reste un MUR (2 colonnes collees, plein cadre), mais les
   vignettes descendent a la taille du pouce et l'entete se resserre. */
@media (max-width: 720px) {
  .sp-gl-head {
    padding: calc(2.4rem * var(--sp-space)) 0 calc(1.8rem * var(--sp-space));
  }

  .sp-gl-wall {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .sp-gl-more {
    flex-direction: column;
    align-items: center;
    gap: calc(1.1rem * var(--sp-space));
  }

  .sp-gl-shop {
    padding: calc(2.2rem * var(--sp-space)) 0 calc(2.6rem * var(--sp-space));
  }
}
