/* =========================================================
   Groupe El Yaalaoui - Design system (Phase 1 : page d'accueil)
   Palette issue du logo officiel : navy #12155C, orange #F09908, blanc.
   Propriétés logiques (inline/block) pour préparer la version arabe RTL.
   ========================================================= */

/* Polices hébergées sur le site (pas de requête vers des serveurs tiers, chargement plus rapide) */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 600 900; font-stretch: 78% 108%; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --navy: #12155c;
  --navy-950: #080a33;
  --navy-900: #0d1047;
  --navy-800: #171b6b;
  --navy-700: #23288a;
  --navy-100: #e7e8f3;
  --orange: #f09908;
  --orange-600: #9c6000; /* ambre foncé : texte orange lisible (contraste AA) */
  --orange-100: #fdeed3;
  --orange-50: #fbf4e6;
  --paper: #f7f5f0;
  --white: #ffffff;
  --ink: #14163a;
  --muted: #555870;
  --line: #e3e0d7;
  --line-strong: #cfcbbf;
  --ok: #1d7a4b;

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-ar: "IBM Plex Sans Arabic", "Noto Kufi Arabic", system-ui, sans-serif; /* future version arabe */

  --r-sm: 4px;
  --r-md: 6px;
  --gutter: 16px;
  --wrap: 1320px;
  --hd-h: 132px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 18px 48px -24px rgba(13, 16, 71, .35);
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --hd-h: 170px; } }

[dir="rtl"] body { font-family: var(--f-ar); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--hd-h); }
body {
  margin: 0; font-family: var(--f-body); font-size: 1rem; line-height: 1.55;
  color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; inset-block-start: -60px; z-index: 100; background: var(--orange); color: var(--navy-950); padding: 10px 16px; font-weight: 700; border-radius: var(--r-sm); }
.skip:focus { inset-block-start: 12px; }
.nowrap { white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.ic { width: 22px; height: 22px; flex: none; }
.ic-xs { width: 14px; height: 14px; }
.ic-sm { width: 18px; height: 18px; }
.ic-lg { width: 30px; height: 30px; }
.ic-xl { width: 40px; height: 40px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-sm);
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.btn .ic { width: 19px; height: 19px; }
.btn:active { transform: translateY(1px); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }
.btn-orange { background: var(--orange); color: var(--navy-950); }
.btn-orange:hover { background: #f7a826; }
.btn-ghost { border: 1.5px solid var(--line-strong); color: var(--navy); background: var(--white); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); color: var(--navy); background: var(--white);
  transition: border-color .2s, background-color .2s, opacity .2s;
}
.icon-btn:hover { border-color: var(--navy); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); border-block-end: 2px solid var(--orange); padding-block: 4px; }
.link-arrow .ic { transition: transform .25s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .ic { transform: translateX(-4px) scaleX(-1); }

/* ---------- Typo & éléments de section ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--navy);
}
/* "spine" : les deux filets des livres du logo */
.spine { display: inline-block; width: 10px; height: 18px; border-inline: 2px solid var(--orange); }
.kicker-light { color: var(--white); }
.sec-title {
  font-family: var(--f-display); font-stretch: 108%; font-weight: 800;
  font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3rem); line-height: 1.04; letter-spacing: -.02em; color: var(--navy);
  margin-block-start: 12px;
}
.sec-head { margin-block-end: 32px; }
.sec-head-split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.section { padding-block: 64px; }
@media (min-width: 1024px) { .section { padding-block: 104px; } .sec-head { margin-block-end: 48px; } }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-950); color: rgba(255,255,255,.86); font-size: .78rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.topbar-msg, .topbar-links { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar-msg .ic { color: var(--orange); width: 16px; height: 16px; }
.topbar-msg .sep { width: 1px; height: 12px; background: rgba(255,255,255,.25); margin-inline: 6px; }
.topbar-links { gap: 18px; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; }
.topbar-links a:hover { color: var(--orange); }
@media (max-width: 639px) {
  .topbar-msg .sep, .topbar-msg .sep ~ * { display: none; }
  .topbar-msg { font-size: .74rem; }
  .hide-sm { display: none; }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-block-end: 1px solid var(--line); }
.hd {
  display: grid; align-items: center; gap: 10px 8px;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "burger logo contact cart" "search search search search";
  padding-block: 10px 12px;
}
.hd-burger { grid-area: burger; width: 44px; height: 44px; display: grid; place-items: center; color: var(--navy); margin-inline-start: -8px; }
.hd-logo { grid-area: logo; justify-self: start; }
.hd-logo img { height: 44px; width: auto; }
.hd-cats { display: none; }
.hd-contact { grid-area: contact; width: 44px; height: 44px; display: grid; place-items: center; color: var(--navy); }
.hd-contact span { display: none; }
.hd-cart {
  grid-area: cart; position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding-inline: 10px; border-radius: var(--r-sm); background: var(--navy); color: var(--white); font-weight: 700;
}
.hd-cart-label { display: none; }
.cart-count {
  min-width: 22px; height: 22px; padding-inline: 6px; border-radius: 11px; display: inline-grid; place-items: center;
  background: var(--orange); color: var(--navy-950); font-size: .75rem; font-weight: 800;
}
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.search { grid-area: search; position: relative; display: flex; align-items: center; }
.search-ic { position: absolute; inset-inline-start: 14px; color: var(--muted); pointer-events: none; width: 20px; height: 20px; }
.search input {
  width: 100%; height: 48px; padding-inline: 44px 56px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: #6b6e85; }
.search input:focus { outline: none; border-color: var(--navy); background: var(--white); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-go {
  position: absolute; inset-inline-end: 5px; height: 38px; padding-inline: 12px; border-radius: 3px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange); color: var(--navy-950); font-weight: 700; font-size: .88rem;
}
.search-go:hover { background: #f7a826; }
.search-go span { display: none; }
@media (min-width: 640px) { .search-go span { display: inline; } .search-go .ic { display: none; } .search input { padding-inline-end: 118px; } }
.search-pop {
  position: absolute; inset-inline: 0; inset-block-start: calc(100% + 6px); z-index: 60;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); overflow: hidden;
}
.search-pop ul { max-height: 360px; overflow-y: auto; padding: 6px; }
.search-opt { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; }
.search-opt[aria-selected="true"], .search-opt:hover { background: var(--orange-50); }
.search-opt img { width: 44px; height: 44px; object-fit: cover; border-radius: 3px; background: var(--paper); }
.search-opt .so-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 3px; background: var(--navy-100); color: var(--navy); }
.search-opt strong { display: block; font-size: .92rem; font-weight: 600; line-height: 1.3; }
.search-opt small { color: var(--muted); font-size: .78rem; }
.search-opt mark { background: none; color: var(--orange-600); font-weight: 700; }
.search-empty { padding: 14px 12px; color: var(--muted); font-size: .9rem; }
.search-note { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-block-start: 1px solid var(--line); color: var(--muted); font-size: .75rem; background: var(--paper); }

.nav { display: none; }
.mega { display: none; }

@media (min-width: 1024px) {
  .hd {
    grid-template-columns: auto auto minmax(280px, 1fr) auto auto;
    grid-template-areas: "logo cats search contact cart";
    gap: 22px; padding-block: 14px;
  }
  .hd-burger { display: none; }
  .hd-logo img { height: 60px; }
  .hd-cats {
    grid-area: cats; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding-inline: 16px;
    border: 1.5px solid var(--navy); border-radius: var(--r-sm); color: var(--navy); font-weight: 700;
    transition: background-color .2s, color .2s;
  }
  .hd-cats:hover, .hd-cats[aria-expanded="true"] { background: var(--navy); color: var(--white); }
  .hd-cats .chev { transition: transform .25s var(--ease); }
  .hd-cats[aria-expanded="true"] .chev { transform: rotate(180deg); }
  .hd-contact { width: auto; height: auto; display: flex; align-items: center; gap: 10px; }
  .hd-contact span { display: flex; flex-direction: column; font-weight: 700; font-size: .92rem; line-height: 1.2; }
  .hd-contact small { font-weight: 500; color: var(--muted); font-size: .74rem; }
  .hd-contact:hover span { color: var(--navy-700); }
  .hd-contact > .ic { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--orange-100); color: var(--navy); }
  .hd-cart { height: 48px; padding-inline: 16px; }
  .hd-cart-label { display: inline; }

  .nav { display: block; border-block-start: 1px solid var(--line); }
  .nav-in { display: flex; align-items: center; gap: 22px; height: 46px; overflow-x: auto; scrollbar-width: none; }
  .nav-in::-webkit-scrollbar { display: none; }
  .nav-list { display: flex; gap: 22px; }
  .nav-list a { position: relative; font-size: .88rem; font-weight: 600; color: var(--ink); padding-block: 12px; white-space: nowrap; }
  .nav-list a::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 6px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .nav-list a:hover::after, .nav-list a.is-current::after { transform: scaleX(1); }
  .nav-list.is-sport a { color: var(--navy); }
  .nav-div { width: 10px; height: 18px; border-inline: 2px solid var(--orange); }

  .mega {
    display: block; position: absolute; inset-inline: 0; inset-block-start: 100%;
    background: var(--white); border-block: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(13,16,71,.35);
    animation: megaIn .25s var(--ease);
  }
  @keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } }
  .mega-in { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0 56px; padding-block: 36px 24px; }
  .mega-col + .mega-col { border-inline-start: 1px solid var(--line); padding-inline-start: 56px; }
  .mega-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .mega-kicker .num { color: var(--orange-600); margin-inline-end: 4px; }
  .mega-title { font-family: var(--f-display); font-stretch: 108%; font-weight: 800; font-size: 1.5rem; color: var(--navy); margin-block: 4px 22px; }
  .mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 28px; }
  .mega-sport .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-cat-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); margin-block-end: 8px; }
  .mega-cat-title .ic { color: var(--orange); transition: transform .2s var(--ease); }
  .mega-cat-title:hover .ic { transform: translateX(3px); }
  .mega-cat li a { display: block; padding-block: 3px; font-size: .9rem; color: var(--muted); }
  .mega-cat li a:hover { color: var(--navy); }
  .mega-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-block-start: 28px; padding-block-start: 16px; border-block-start: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .hd-contact span { display: none; }
  .search-go span { display: none; }
  .search-go .ic { display: block; }
  .search input { padding-inline-end: 56px; }
  .nav-list, .nav-in { gap: 13px; }
  .nav-list a { font-size: .78rem; }
}

/* ---------- Drawer mobile ---------- */
.drawer, .cart { position: fixed; inset: 0; z-index: 80; }
.drawer-scrim, .cart-scrim { position: absolute; inset: 0; background: rgba(8,10,51,.55); animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.drawer-panel {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: min(380px, 88vw);
  background: var(--white); display: flex; flex-direction: column; overflow-y: auto;
  animation: slideStart .3s var(--ease);
}
@keyframes slideStart { from { transform: translateX(-100%); } }
[dir="rtl"] .drawer-panel { animation-name: slideEnd; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-block-end: 1px solid var(--line); }
.drawer-logo { height: 36px; width: auto; }
.drawer-nav { padding: 8px 16px 16px; flex: 1; }
.drawer-u { display: flex; align-items: center; gap: 10px; margin-block: 18px 6px; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.drawer-u .num { color: var(--orange-600); }
.drawer-cat { border-block-end: 1px solid var(--line); }
.drawer-cat summary { display: flex; align-items: center; justify-content: space-between; min-height: 50px; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; }
.drawer-cat summary::-webkit-details-marker { display: none; }
.drawer-cat summary .ic { transition: transform .25s var(--ease); }
.drawer-cat[open] summary .ic { transform: rotate(180deg); }
.drawer-cat ul { padding-block-end: 10px; }
.drawer-cat li a { display: block; padding: 9px 12px; color: var(--muted); border-inline-start: 2px solid var(--line); }
.drawer-cat li:first-child a { color: var(--navy); font-weight: 600; border-color: var(--orange); }
.drawer-foot { padding: 16px; display: grid; gap: 8px; border-block-start: 1px solid var(--line); background: var(--paper); }
.drawer-link { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; color: var(--navy); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--paper); overflow: hidden; }
.hero::before, .hero-visual::before { /* bloc navy : le "dos" des livres du logo */
  content: ""; position: absolute; background: var(--navy);
}
.hero::before { display: none; }
.hero-visual::before { inset-block: 22% -12px; inset-inline: calc(var(--gutter) * -1); z-index: 0; }
.hero-entries { order: 3; }
.hero-in { position: relative; display: grid; gap: 32px; padding-block: 36px 48px; }
.hero-in > .hero-entries { margin-block-start: 8px; position: relative; }
.hero-copy { position: relative; }
.hero-title {
  font-family: var(--f-display); font-stretch: 106%; font-weight: 800;
  font-size: clamp(2.15rem, 1.3rem + 3.4vw, 4.25rem); line-height: .98; letter-spacing: -.025em; color: var(--navy);
  margin-block: 16px 18px; max-width: 12ch;
}
.hero-title em { font-style: normal; color: var(--orange); }
.hero-lead { max-width: 52ch; color: var(--muted); font-size: 1.04rem; }
.hero-entries { margin-block-start: 26px; border-block-start: 1.5px solid var(--navy); max-width: 520px; }
.hero-entries a {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px;
  min-height: 52px; border-block-end: 1px solid var(--line-strong); font-weight: 700; color: var(--navy);
  transition: background-color .2s var(--ease), padding .25s var(--ease);
}
.he-num { font-family: var(--f-display); font-weight: 800; color: var(--orange-600); font-size: .9rem; }
.hero-entries .ic { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.hero-entries a:hover { background: var(--orange-100); padding-inline: 10px; }
.hero-entries a:hover .ic { transform: translateX(4px); }

.hero-visual { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-block-end: 30px; }
.swoosh { position: absolute; inset-inline-start: -7%; inset-block-start: 34%; width: 114%; height: auto; fill: var(--orange); z-index: 0; pointer-events: none; }
.uni { position: relative; z-index: 1; overflow: hidden; border-radius: var(--r-sm); background: var(--navy-800); isolation: isolate; aspect-ratio: 3 / 4; color: var(--white); }
.uni-sport { transform: translateY(26px); }
.uni-img, .uni picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.uni-img { object-fit: cover; transition: transform .8s var(--ease); }
.uni:hover .uni-img { transform: scale(1.04); }
.uni::before { /* filets intérieurs des livres du logo */
  content: ""; position: absolute; inset: 8px; z-index: 2; border: 1.5px solid rgba(255,255,255,.8); border-radius: 2px; pointer-events: none;
}
.uni::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,10,51,0) 38%, rgba(8,10,51,.88) 100%); }
.uni-body { position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 3; padding: 16px 16px 18px; pointer-events: none; }
.uni-num { display: flex; align-items: baseline; gap: 6px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.uni-num span { font-family: var(--f-display); font-size: 1rem; color: var(--orange); letter-spacing: 0; }
.uni-title { font-family: var(--f-display); font-stretch: 100%; font-weight: 800; font-size: 1.05rem; line-height: 1.1; margin-block-start: 4px; }
.uni-links { display: none; }
.uni-cover { position: absolute; inset: 0; z-index: 2; }
.uni-cover:focus-visible { outline-offset: -6px; }

@media (min-width: 640px) {
  .uni-title { font-size: 1.4rem; }
  .uni-body { padding: 22px; }
}
@media (min-width: 1024px) {
  .hero::before { display: block; inset-block: 0; inset-inline: 61% 0; }
  .hero-visual::before { display: none; }
  .hero-in { grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); grid-template-areas: "copy visual" "entries visual"; gap: 0 56px; padding-block: 64px 104px; }
  .hero-copy { grid-area: copy; align-self: end; }
  .hero-visual { grid-area: visual; align-self: center; }
  .hero-in > .hero-entries { grid-area: entries; align-self: start; margin-block-start: 26px; }
  .hero-visual { gap: 24px; padding-block: 0 48px; padding-inline-start: 24px; }
  .swoosh { inset-inline-start: -5%; inset-block-start: 44%; width: 112%; }
  .uni { aspect-ratio: 3 / 4; }
  .uni-sport { transform: translateY(48px); }
  .uni-title { font-size: 1.65rem; }
  .uni-links { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 14px; pointer-events: auto; }
  .uni-links a {
    position: relative; z-index: 4; display: inline-flex; padding: 6px 10px; border-radius: 3px; font-size: .78rem; font-weight: 600;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(4px);
    transition: background-color .2s, color .2s;
  }
  .uni-links a:hover { background: var(--orange); border-color: var(--orange); color: var(--navy-950); }
}
@media (prefers-reduced-motion: no-preference) {
  .uni { animation: uniIn .9s var(--ease) both; }
  .uni-sport { animation-delay: .12s; }
  .swoosh { animation: swooshIn 1.1s var(--ease) .15s both; }
  @keyframes uniIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes swooshIn { from { opacity: 0; transform: rotate(-6deg) scale(.96); } }
}

/* ---------- Catégories ---------- */
.cats { background: var(--white); }
.cat-row { display: grid; gap: 18px; }
.cat-row + .cat-row { margin-block-start: 48px; padding-block-start: 40px; border-block-start: 1px solid var(--line); }
.cat-row-head { display: grid; gap: 6px; align-content: start; }
.cat-row-num { font-family: var(--f-display); font-weight: 800; font-size: .95rem; color: var(--orange-600); }
.cat-row-title { font-family: var(--f-display); font-stretch: 108%; font-weight: 800; font-size: 1.45rem; line-height: 1.1; color: var(--navy); }
.cat-row-text { color: var(--muted); font-size: .95rem; max-width: 40ch; }
.cat-row-head .link-arrow { justify-self: start; margin-block-start: 6px; font-size: .92rem; }
.cat-tiles {
  display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
.cat-tiles::-webkit-scrollbar { display: none; }
.cat-tile { scroll-snap-align: start; }
.cat-tile a { display: block; }
.cat-tile picture { overflow: hidden; border-radius: var(--r-sm); background: var(--paper); aspect-ratio: 3 / 4; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-tile a:hover img { transform: scale(1.05); }
.cat-tile-name { display: block; margin-block-start: 10px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.cat-tile-name::after { content: ""; display: block; width: 18px; height: 2px; margin-block-start: 6px; background: var(--orange); transition: width .3s var(--ease); }
.cat-tile a:hover .cat-tile-name::after { width: 40px; }
.cat-tile-subs { display: block; margin-block-start: 6px; font-size: .78rem; color: var(--muted); line-height: 1.4; }
@media (min-width: 640px) { .cat-tiles { grid-auto-columns: 30%; } }
@media (min-width: 1024px) {
  .cat-row { grid-template-columns: 250px 1fr; gap: 40px; }
  .cat-tiles { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; margin: 0; padding: 0; gap: 18px; }
  .cat-row-sport .cat-tiles { grid-template-columns: repeat(4, 1fr); }
  .cat-row-sport .cat-tile picture { aspect-ratio: 4 / 4.2; }
}

/* ---------- Sélection / cartes produit ---------- */
.picks { background: var(--paper); }
.demo-note { display: flex; align-items: flex-start; gap: 8px; max-width: 420px; font-size: .84rem; color: var(--muted); }
.demo-note .ic { color: var(--orange-600); margin-block-start: 2px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-end: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--white);
  font-size: .88rem; font-weight: 600; color: var(--ink); transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--navy); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip-active { background: var(--orange-100); border-color: var(--orange); color: var(--navy); padding-inline-end: 4px; }
.chip-active button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.chip-active button:hover { background: rgba(240,153,8,.25); }
.filter-count { margin-inline-start: auto; font-size: .85rem; color: var(--muted); }

.grid-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1024px) { .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.grid-products .pc.is-hidden, .grid-products .pc.is-collapsed { display: none; }
.grid-products .pc.is-flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 3px var(--orange); } }
.grid-empty { padding: 40px 20px; text-align: center; color: var(--muted); display: grid; gap: 16px; justify-items: center; background: var(--white); border: 1px dashed var(--line-strong); border-radius: var(--r-md); }
.grid-more { display: flex; justify-content: center; margin-block-start: 32px; }
.grid-more .ic { transition: transform .25s var(--ease); }
.grid-more [aria-expanded="true"] .ic { transform: rotate(180deg); }

.pc {
  container-type: inline-size; position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.pc:hover { border-color: var(--line-strong); box-shadow: 0 14px 34px -22px rgba(13,16,71,.45); }
.pc-media { position: relative; display: block; aspect-ratio: 1; background: var(--white); overflow: hidden; border-block-end: 1px solid var(--line); }
.pc-media picture, .pdp-slide picture { width: 100%; height: 100%; }
.pc-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.pc:hover .pc-media img { transform: scale(1.03); }
.pc-demo {
  position: absolute; inset-block-start: 10px; inset-inline-start: 10px; padding: 3px 7px; border-radius: 3px;
  background: rgba(13,16,71,.82); color: var(--white); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.pc-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 14px; flex: 1; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: .66rem; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.pc-brand { font-weight: 800; color: var(--navy); }
.pc-brand.is-tbc { color: #6b6e85; font-weight: 600; }
.pc-name { font-size: .93rem; font-weight: 600; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pc-av { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; }
.pc-av.is-stock { color: var(--ok); }
.pc-av.is-order { color: var(--orange-600); }
.pc-foot { display: grid; gap: 10px; margin-block-start: auto; padding-block-start: 8px; }
.pc-price { display: flex; flex-direction: column; line-height: 1.15; }
.pc-amount { font-family: var(--f-display); font-weight: 800; font-size: 1.12rem; color: var(--navy); }
.pc-price-note { font-size: .7rem; color: #6b6e85; }
.btn-add {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 42px; padding-inline: 12px;
  border-radius: var(--r-sm); background: var(--navy); color: var(--white); font-weight: 700; font-size: .86rem;
  transition: background-color .2s var(--ease);
}
.btn-add .ic { width: 18px; height: 18px; }
.btn-add:hover { background: var(--navy-700); }
.qty { display: inline-grid; grid-template-columns: 42px minmax(32px, 1fr) 42px; align-items: center; width: 100%; min-height: 42px; border: 1.5px solid var(--navy); border-radius: var(--r-sm); overflow: hidden; }
.qty button { height: 40px; display: grid; place-items: center; color: var(--navy); }
.qty button:hover { background: var(--navy-100); }
.qty button .ic { width: 18px; height: 18px; }
.qty output { text-align: center; font-weight: 800; color: var(--navy); }
.qty-in { animation: pop .3s var(--ease); }
@keyframes pop { from { transform: scale(.94); opacity: .4; } }
@container (min-width: 230px) {
  .pc-body { padding: 16px 16px 18px; }
  .pc-meta { font-size: .7rem; letter-spacing: .08em; }
  .pc-foot { grid-template-columns: 1fr auto; align-items: end; }
  .btn-add, .qty { width: auto; }
  .qty { width: 130px; }
}

/* ---------- Sport ---------- */
.sport { background: var(--navy-950); color: var(--white); padding-block: 64px; position: relative; overflow: hidden; }
.sport-top { display: grid; gap: 28px; }
.sport-media { position: relative; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 16 / 11; }
.sport-media picture, .sport-media img { width: 100%; height: 100%; object-fit: cover; }
.sport-tag { position: absolute; inset-block-end: 14px; inset-inline-start: 14px; padding: 7px 12px; background: var(--orange); color: var(--navy-950); font-weight: 800; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; border-radius: 3px; }
.sport-title {
  font-family: var(--f-display); font-stretch: 78%; font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.4rem, 1.5rem + 3.2vw, 4rem); line-height: .9; letter-spacing: -.01em; margin-block: 14px 16px;
}
.sport-title span { display: block; color: var(--orange); }
.sport-copy > p:not(.kicker) { color: rgba(255,255,255,.78); max-width: 46ch; }
.sport-links { margin-block-start: 24px; border-block-start: 1px solid rgba(255,255,255,.2); }
.sport-links a { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; min-height: 54px; border-block-end: 1px solid rgba(255,255,255,.14); font-weight: 700; font-size: 1.02rem; transition: color .2s, padding .25s var(--ease); }
.sport-links a span { font-family: var(--f-display); color: var(--orange); font-size: .85rem; }
.sport-links a:hover { color: var(--orange); padding-inline-start: 8px; }
.rail { margin-block-start: 48px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; margin-block-end: 18px; }
.rail-title { font-family: var(--f-display); font-stretch: 100%; font-weight: 800; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.rail-demo { padding: 3px 7px; border-radius: 3px; background: rgba(255,255,255,.12); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--f-body); }
.rail-nav { display: flex; gap: 8px; }
.sport .icon-btn { background: transparent; color: var(--white); border-color: rgba(255,255,255,.3); }
.sport .icon-btn:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.rail-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-block-end: 4px;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track .pc { scroll-snap-align: start; }
.pc-dark { background: var(--navy-900); border-color: rgba(255,255,255,.12); }
.pc-dark:hover { border-color: rgba(255,255,255,.3); }
.pc-dark .pc-media { background: var(--white); border-color: transparent; }
.pc-dark .pc-name, .pc-dark .pc-amount, .pc-dark .pc-brand { color: var(--white); }
.pc-dark .pc-brand.is-tbc, .pc-dark .pc-price-note { color: rgba(255,255,255,.55); }
.pc-dark .pc-av.is-stock { color: #6ad49d; }
.pc-dark .pc-av.is-order { color: var(--orange); }
.pc-dark .btn-add { background: var(--orange); color: var(--navy-950); }
.pc-dark .btn-add:hover { background: #f7a826; }
.pc-dark .qty { border-color: var(--orange); }
.pc-dark .qty button, .pc-dark .qty output { color: var(--white); }
.pc-dark .qty button:hover { background: rgba(255,255,255,.1); }
@media (min-width: 640px) { .rail-track { grid-auto-columns: 40%; } }
@media (min-width: 1024px) {
  .sport { padding-block: 104px; }
  .sport-top { grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; }
  .rail { margin-block-start: 72px; }
  .rail-track { grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px; margin: 0; padding-inline: 0; }
}

/* ---------- Trophées ---------- */
.trophies { background: var(--orange-50); }
.trophies-in { display: grid; gap: 28px; }
.tr-main { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 4.4; }
.tr-main img, .tr-side img { width: 100%; height: 100%; object-fit: cover; }
.tr-copy > p:not(.kicker) { color: var(--muted); margin-block-start: 16px; max-width: 48ch; }
.tr-uses { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 22px; }
.tr-uses li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #ecd6ad; border-radius: 3px; background: var(--white); font-size: .88rem; font-weight: 600; color: var(--navy); }
.tr-uses .ic { color: var(--orange-600); }
.tr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-block-start: 28px; }
.tr-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tr-side figure { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 1; }
@media (min-width: 1024px) {
  .trophies-in { grid-template-columns: 1fr 1.05fr .62fr; gap: 48px; align-items: center; }
  .tr-main { aspect-ratio: 4 / 5; }
  .tr-side { grid-template-columns: 1fr; gap: 18px; align-self: stretch; align-content: center; }
}

/* ---------- À propos ---------- */
.about-in { display: grid; gap: 32px; }
.about-copy > p:not(.kicker) { color: var(--muted); margin-block-start: 18px; max-width: 56ch; font-size: 1.04rem; }
.facts { margin-block-start: 28px; border-block-start: 1.5px solid var(--navy); }
.facts div { display: grid; gap: 2px; padding-block: 14px; border-block-end: 1px solid var(--line); }
.facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-600); }
.facts dd { color: var(--ink); font-weight: 500; }
.about-media { position: relative; border-radius: var(--r-sm); overflow: visible; }
.about-media > picture:first-child { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 3.6; }
.about-media > picture:first-child img { width: 100%; height: 100%; object-fit: cover; }
.about-mark { position: absolute; inset-block-end: -18px; inset-inline-start: 18px; width: 108px; height: auto; padding: 14px; background: var(--white); border-radius: var(--r-sm); box-shadow: var(--shadow); }
@media (min-width: 640px) { .facts div { grid-template-columns: 120px 1fr; gap: 16px; } }
@media (min-width: 1024px) {
  .about-in { grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; }
  .about-media > picture:first-child { aspect-ratio: 4 / 4.4; }
  .about-mark { width: 140px; inset-inline-start: -28px; inset-block-end: 40px; }
}

/* ---------- Services ---------- */
.services { background: var(--navy); color: var(--white); padding-block: 48px; }
.svc { display: grid; gap: 0; }
.svc li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; padding-block: 18px; border-block-end: 1px solid rgba(255,255,255,.14); }
.svc .ic { grid-row: span 2; color: var(--orange); }
.svc h3 { font-family: var(--f-display); font-stretch: 104%; font-weight: 800; font-size: 1.08rem; }
.svc p { color: rgba(255,255,255,.72); font-size: .9rem; }
.svc-note { display: flex; align-items: center; gap: 8px; margin-block-start: 20px; font-size: .8rem; color: rgba(255,255,255,.6); }
@media (min-width: 640px) { .svc { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
@media (min-width: 1024px) {
  .services { padding-block: 64px; }
  .svc { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .svc li { grid-template-columns: 1fr; padding: 4px 28px; border-block-end: 0; border-inline-start: 1px solid rgba(255,255,255,.16); }
  .svc li:first-child { border-inline-start: 0; padding-inline-start: 0; }
  .svc .ic { grid-row: auto; margin-block-end: 10px; }
}

/* ---------- Contact ---------- */
.contact-in { display: grid; gap: 28px; }
.contact-list { margin-block-start: 26px; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-list li > .ic { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--orange-100); color: var(--navy); }
.contact-list strong { display: block; font-weight: 700; color: var(--navy); }
.contact-list span, .contact-list a { color: var(--muted); }
.contact-list a { font-weight: 600; color: var(--navy-700); border-block-end: 1px solid var(--orange); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 28px; }
.map { position: relative; min-height: 320px; border-radius: var(--r-sm); overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-load {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; color: var(--navy);
  background:
    linear-gradient(var(--paper) 0 0) padding-box,
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(18,21,92,.05) 39px 40px),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(18,21,92,.05) 39px 40px);
  background-blend-mode: multiply;
}
.map-load .ic { color: var(--orange); }
.map-load span { font-weight: 700; }
.map-load small { color: var(--muted); font-size: .78rem; max-width: 30ch; }
.map-load:hover span { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
@media (min-width: 1024px) {
  .contact-in { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: stretch; }
  .map { min-height: 460px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.75); font-size: .92rem; }
.ft { display: grid; gap: 36px; padding-block: 56px 40px; }
.ft-logo { display: inline-block; padding: 14px 18px; background: var(--white); border-radius: var(--r-sm); }
.ft-logo img { width: 150px; height: auto; }
.ft-brand p { margin-block-start: 16px; max-width: 36ch; }
.ft-social a { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-weight: 600; }
.ft-social a:hover { color: var(--orange); }
.ft-col h2 { font-family: var(--f-display); font-stretch: 104%; font-size: .95rem; font-weight: 800; color: var(--white); margin-block-end: 14px; }
.ft-col li a { display: inline-block; padding-block: 5px; }
.ft-col a:hover { color: var(--orange); }
.ft-col address { margin-block-end: 8px; }
.ft-h-legal { margin-block-start: 24px; }
.ft-bottom { border-block-start: 1px solid rgba(255,255,255,.12); }
.ft-bottom-in { display: grid; justify-items: center; gap: 6px; padding-block: 20px 24px; text-align: center; font-size: .82rem; }
.ft-credit a { color: var(--orange); font-weight: 700; }
.ft-credit a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 640px) { .ft { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ft { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 48px; padding-block: 72px 56px; } }

/* ---------- Panier ---------- */
.cart-panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(420px, 100%);
  background: var(--white); display: flex; flex-direction: column; animation: slideEnd .32s var(--ease);
}
@keyframes slideEnd { from { transform: translateX(100%); } }
[dir="rtl"] .cart-panel { animation-name: slideStart; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-block-end: 1px solid var(--line); }
.cart-head h2 { font-family: var(--f-display); font-stretch: 106%; font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.cart-head-count { color: var(--muted); font-weight: 600; font-size: .95rem; }
.cart-proto { display: flex; gap: 8px; align-items: flex-start; margin: 14px 20px 0; padding: 10px 12px; background: var(--orange-50); border: 1px solid #f1dcb2; border-radius: var(--r-sm); font-size: .8rem; color: var(--ink); }
.cart-proto .ic { color: var(--orange-600); }
.cart-list { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-item { display: grid; grid-template-columns: 68px 1fr; gap: 14px; padding-block: 14px; border-block-end: 1px solid var(--line); }
.cart-item img { width: 68px; height: 68px; object-fit: cover; border-radius: var(--r-sm); background: var(--paper); }
.cart-item h3 { font-size: .92rem; font-weight: 600; line-height: 1.3; }
.cart-item .ci-price { font-family: var(--f-display); font-weight: 800; color: var(--navy); font-size: .95rem; }
.ci-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-block-start: 8px; }
.ci-row .qty { width: 118px; min-height: 38px; grid-template-columns: 36px 1fr 36px; }
.ci-row .qty button { height: 36px; }
.ci-remove { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-sm); color: var(--muted); }
.ci-remove:hover { color: #b3261e; background: #fbeceb; }
.cart-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 40px 20px; color: var(--muted); text-align: center; }
.cart-empty > .ic { color: var(--line-strong); }
.cart-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-block-start: 1px solid var(--line); background: var(--paper); display: grid; gap: 12px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.cart-total strong { font-family: var(--f-display); font-size: 1.3rem; color: var(--navy); }
.cart-modes { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--muted); }
.cart-modes li { display: inline-flex; align-items: center; gap: 6px; }
.cart-modes .ic { color: var(--orange-600); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 90; inset-inline: 0; inset-block-end: calc(18px + env(safe-area-inset-bottom)); margin-inline: auto;
  width: max-content; max-width: min(92vw, 460px); padding: 12px 16px; border-radius: var(--r-sm);
  background: var(--navy-950); color: var(--white); font-size: .9rem; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; animation: toastIn .3s var(--ease);
}
.toast .ic { color: var(--orange); }
.toast button { color: var(--orange); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   Phase 2 : catalogue, fiches produit, panier
   ========================================================= */
.pc-name a { color: inherit; }
.pc-name a:hover { color: var(--navy-700); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.pc-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pc-cta, .pc-cta a, .pc-cta button { position: relative; z-index: 2; }
.pc-tag { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; padding: 3px 8px; border-radius: 3px; background: var(--orange); color: var(--navy-950); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pc-noimg { display: grid; place-content: center; justify-items: center; gap: 6px; height: 100%; color: var(--line-strong); font-size: .78rem; background: var(--paper); }
.pc-av.is-out { color: #b3261e; }
.pc-dark .pc-av.is-out { color: #ff8a80; }
.pc-amount small { font-family: var(--f-body); font-weight: 600; font-size: .72rem; color: var(--muted); }
.pc-price-note s { color: var(--muted); }
.btn-add-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-add-ghost:hover { background: var(--navy); color: var(--white); }
.pc-dark .btn-add-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.pc-dark .btn-add-ghost:hover { background: var(--orange); border-color: var(--orange); color: var(--navy-950); }
.pc-dark .pc-amount small { color: rgba(255,255,255,.6); }

/* Fil d'Ariane */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .82rem; color: var(--muted); margin-block-end: 18px; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "/"; margin-inline: 8px; color: var(--line-strong); }
.crumbs a { color: var(--navy); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.crumbs li[aria-current] { max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Pages de liste */
.list-head { background: var(--paper); padding-block: 28px 24px; border-block-end: 1px solid var(--line); }
.list-title { margin-block: 10px 4px; }
.list-count { color: var(--muted); font-size: .92rem; }
.subnav { display: flex; gap: 8px; margin-block-start: 20px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-block-end: 2px; }
.subnav::-webkit-scrollbar { display: none; }
.subnav .chip { white-space: nowrap; flex: none; }
.chip-n { font-size: .75rem; color: var(--muted); font-weight: 600; }
.chip.is-on .chip-n { color: rgba(255,255,255,.7); }
.list-body { padding-block: 24px 72px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; margin-block-end: 22px; }
.tb-field { display: grid; gap: 4px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-width: 0; }
.tb-field select { height: 44px; min-width: 170px; max-width: 100%; padding: 0 36px 0 12px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312155c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; font: inherit; font-size: .92rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); -webkit-appearance: none; appearance: none; }
.tb-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: .9rem; color: var(--navy); cursor: pointer; }
.tb-check input { width: 18px; height: 18px; accent-color: var(--navy); }
@media (max-width: 639px) { .tb-field { flex: 1 1 140px; } .tb-field select { min-width: 0; width: 100%; } }
.grid-empty > .ic { color: var(--line-strong); }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-block-start: 40px; }
.pager ol { display: flex; gap: 6px; }
.pager li a, .pager li span { display: grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 8px; border-radius: var(--r-sm); font-weight: 700; color: var(--navy); border: 1.5px solid var(--line); background: var(--white); }
.pager li a:hover { border-color: var(--navy); }
.pager li span[aria-current] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pager .gap { display: grid; place-items: center; min-width: 20px; color: var(--muted); }
@media (max-width: 479px) { .pager li:not(:has([aria-current])):not(:first-child):not(:last-child) { display: none; } .pager .gap { display: none; } }
.empty-page { display: grid; gap: 16px; justify-items: start; }

/* Fiche produit */
.pdp-page { padding-block: 24px 0; }
.pdp { display: grid; gap: 28px; }
.pdp-gallery { min-width: 0; }
.pdp-main { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.pdp-main::-webkit-scrollbar { display: none; }
.pdp-slide { scroll-snap-align: start; aspect-ratio: 1; display: grid; place-items: center; }
.pdp-slide img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumbs { display: flex; gap: 8px; margin-block-start: 10px; overflow-x: auto; scrollbar-width: none; padding-block-end: 2px; }
.pdp-thumb { flex: none; width: 68px; height: 68px; border: 1.5px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--white); transition: border-color .2s; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumb.is-on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.pdp-info { min-width: 0; }
.pdp-brand { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-600); }
.pdp-title { font-family: var(--f-display); font-stretch: 104%; font-weight: 800; font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.25rem); line-height: 1.12; letter-spacing: -.015em; color: var(--navy); margin-block: 8px 8px; text-wrap: balance; }
.pdp-sku { font-size: .82rem; color: var(--muted); }
.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-block: 18px 10px; }
.pdp-price strong { font-family: var(--f-display); font-weight: 800; font-size: 1.9rem; color: var(--navy); line-height: 1; }
.pdp-price s { color: var(--muted); font-size: 1.05rem; }
.pdp-price-note { font-size: .82rem; color: var(--muted); font-weight: 600; }
.pdp-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; }
.pdp-status.is-stock { color: var(--ok); }
.pdp-status.is-order { color: var(--orange-600); }
.pdp-status.is-out { color: #b3261e; }
.pdp-buy { margin-block-start: 22px; display: grid; gap: 18px; }
.opt { border: 0; padding: 0; margin: 0; min-width: 0; }
.opt legend { font-weight: 700; color: var(--navy); margin-block-end: 8px; font-size: .92rem; }
.opt legend span { font-weight: 500; color: var(--muted); }
.opt-values { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip input { position: absolute; opacity: 0; pointer-events: none; }
.opt-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); font-size: .88rem; font-weight: 600; cursor: pointer; background: var(--white); transition: border-color .2s, background-color .2s; }
.opt-chip input:checked + span { border-color: var(--navy); background: var(--navy); color: var(--white); }
.opt-chip input:focus-visible + span { outline: 2.5px solid var(--orange); outline-offset: 2px; }
.opt-chip.is-na span { opacity: .45; text-decoration: line-through; }
.pdp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pdp-actions .qty { width: 132px; min-height: 52px; }
.pdp-actions .qty button { height: 50px; }
.pdp-add { flex: 1 1 220px; min-height: 52px; font-size: 1rem; }
.pdp-add:disabled { opacity: .45; cursor: not-allowed; }
.pdp-unavailable { color: #b3261e; font-size: .88rem; font-weight: 600; }
.pdp-ask { padding: 16px; border-radius: var(--r-md); background: var(--orange-50); border: 1px solid #f1dcb2; display: grid; gap: 14px; }
.pdp-ask p { font-size: .92rem; }
.pdp-ask-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pdp-modes { display: grid; gap: 8px; margin-block-start: 22px; padding-block-start: 18px; border-block-start: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.pdp-modes li { display: flex; align-items: center; gap: 10px; }
.pdp-modes .ic { color: var(--orange-600); }
.pdp-details { display: grid; gap: 32px; margin-block-start: 48px; padding-block: 40px 16px; border-block-start: 1px solid var(--line); }
.pdp-h2 { font-family: var(--f-display); font-stretch: 104%; font-weight: 800; font-size: 1.4rem; color: var(--navy); margin-block-end: 14px; }
.prose { max-width: 72ch; color: var(--ink); display: grid; gap: 12px; }
.prose h2, .prose h3, .prose h4 { font-family: var(--f-display); font-weight: 800; color: var(--navy); line-height: 1.2; margin-block-start: 8px; }
.prose h2 { font-size: 1.2rem; } .prose h3 { font-size: 1.08rem; } .prose h4 { font-size: 1rem; }
.prose ul, .prose ol { padding-inline-start: 1.2em; display: grid; gap: 6px; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li::marker { color: var(--orange-600); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; text-align: start; }
.pdp-specs dl { display: grid; border-block-start: 1.5px solid var(--navy); }
.pdp-specs dl div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; padding-block: 11px; border-block-end: 1px solid var(--line); font-size: .92rem; }
.pdp-specs dt { font-weight: 700; color: var(--navy); }
.pdp-specs dd { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.related { background: var(--paper); margin-block-start: 40px; }
.related .rail { margin-block-start: 0; }
.related .rail-title { color: var(--navy); }
.related .icon-btn { background: var(--white); }
@media (min-width: 1024px) {
  .pdp-page { padding-block-start: 32px; }
  .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .pdp-gallery { position: sticky; top: calc(var(--hd-h) + 16px); display: grid; grid-template-columns: 76px 1fr; gap: 12px; }
  .pdp-gallery .pdp-main { grid-column: 2; grid-row: 1; }
  .pdp-thumbs { grid-column: 1; grid-row: 1; flex-direction: column; margin: 0; max-height: 560px; overflow-y: auto; }
  .pdp-details { grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
}

/* Panier / commande */
.checkout-page { background: var(--paper); }
.checkout { display: grid; gap: 24px; margin-block-start: 24px; }
.co-cart, .co-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; min-width: 0; }
.co-lines { display: grid; }
.co-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding-block: 12px; border-block-end: 1px solid var(--line); }
.co-line img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.co-line h3 { font-size: .92rem; font-weight: 600; line-height: 1.3; }
.co-line h3 a:hover { text-decoration: underline; }
.co-line small { display: block; color: var(--muted); font-size: .8rem; }
.co-line .co-sub { font-family: var(--f-display); font-weight: 800; color: var(--navy); white-space: nowrap; }
.co-line .qty { width: 112px; min-height: 36px; grid-template-columns: 34px 1fr 34px; margin-block-start: 6px; }
.co-line .qty button { height: 34px; }
.co-loading, .co-empty { padding: 20px 0; color: var(--muted); }
.co-rejected { margin-block-start: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: #fbeceb; color: #8c1d16; font-size: .86rem; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; margin-block-start: 16px; font-weight: 700; }
.co-total strong { font-family: var(--f-display); font-size: 1.5rem; color: var(--navy); }
.co-note { display: flex; gap: 6px; align-items: flex-start; margin-block-start: 10px; font-size: .82rem; color: var(--muted); }
.co-h2 { font-family: var(--f-display); font-stretch: 104%; font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.co-intro { color: var(--muted); font-size: .88rem; margin-block: -6px 4px; }
.co-form { display: grid; gap: 14px; align-content: start; }
.fld { display: grid; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--navy); }
.fld input, .fld textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--white); }
.fld textarea { resize: vertical; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(18,21,92,.12); }
.fld-modes { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.fld-modes legend { font-weight: 700; font-size: .88rem; color: var(--navy); margin-block-end: 6px; }
.mode { position: relative; }
.mode input { position: absolute; opacity: 0; }
.mode > span { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); cursor: pointer; font-weight: 700; color: var(--navy); }
.mode > span .ic { color: var(--orange-600); grid-row: span 2; }
.mode small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.mode input:checked + span { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--navy-100); }
.mode input:focus-visible + span { outline: 2.5px solid var(--orange); outline-offset: 2px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-errors { display: flex; gap: 10px; align-items: flex-start; margin-block-start: 18px; padding: 12px 14px; border-radius: var(--r-sm); background: #fbeceb; color: #8c1d16; font-size: .9rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.order-done { max-width: 640px; display: grid; gap: 16px; justify-items: start; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.order-ref { font-size: 1.05rem; }
@media (min-width: 1024px) { .checkout { grid-template-columns: 1.2fr .8fr; align-items: start; } .co-cart, .co-form { padding: 26px; } .co-form { position: sticky; top: calc(var(--hd-h) + 16px); } }
.cart-item h3 a:hover { text-decoration: underline; }
.ci-variant { font-size: .8rem; color: var(--muted); }

/* ---------- Mise à jour octobre 2026 : prix à confirmer, livraison, confirmation, maintenance, protection ---------- */
.pc-price-note.is-tbc, .pdp-price-note.is-tbc { font-weight: 700; color: var(--orange-600); }
.pdp-price-note.is-tbc { font-size: 1.05rem; }
.pc-dark .pc-price-note.is-tbc { color: var(--orange); }
.fld small { font-weight: 500; color: var(--muted); }
.fld select { width: 100%; min-height: 48px; padding: 10px 40px 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2312155c' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; }
.fld select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(18,21,92,.12); }
.co-delivery { display: grid; gap: 14px; padding: 14px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); }
.co-delivery[hidden] { display: none; }
.co-grid2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .co-grid2 { grid-template-columns: 1fr 1fr; } }
.co-hint { font-size: .82rem; color: var(--muted); margin-block-start: -6px; }
.co-hint:empty { display: none; }
.co-sum { display: grid; gap: 6px; margin-block-start: 16px; }
.co-sum > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .92rem; }
.co-sum dt { color: var(--muted); }
.co-sum dd { margin: 0; font-weight: 700; color: var(--navy); text-align: end; }
.co-sum .co-grand { margin-block-start: 6px; padding-block-start: 10px; border-block-start: 1px solid var(--line); }
.co-sum .co-grand dt { color: var(--ink); font-weight: 700; }
.co-sum .co-grand dd { font-family: var(--f-display); font-size: 1.5rem; font-weight: 800; }
.co-pending { display: flex; gap: 8px; align-items: flex-start; margin-block-start: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--orange-50); border: 1px solid #f1dcb2; color: var(--orange-600); font-size: .84rem; font-weight: 600; }
.co-pending[hidden] { display: none; }
.co-pending .ic { flex: none; margin-block-start: 2px; }
.od-lines { width: 100%; display: grid; border-block: 1px solid var(--line); }
.od-lines li { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; font-size: .92rem; }
.od-lines li + li { border-block-start: 1px solid var(--line); }
.od-lines small { color: var(--muted); }
.od-lines strong { white-space: nowrap; color: var(--navy); }
.od-sum { width: 100%; display: grid; gap: 6px; }
.od-sum > div { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.od-sum dt { color: var(--muted); }
.od-sum dd { margin: 0; font-weight: 700; color: var(--navy); text-align: end; }
.od-sum .od-total { padding-block-start: 8px; border-block-start: 1px solid var(--line); }
.od-sum .od-total dt { color: var(--ink); font-weight: 700; }
.od-sum .od-total dd { font-family: var(--f-display); font-size: 1.35rem; font-weight: 800; }
.order-done .co-pending { margin: 0; }
.wa-pop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.wa-pop[hidden] { display: none; }
.wa-pop-scrim { position: absolute; inset: 0; background: rgba(8, 10, 51, .62); }
.wa-pop-panel { position: relative; width: 100%; max-width: 440px; padding: 30px 24px 24px; background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow); text-align: center; display: grid; gap: 10px; justify-items: center; border-block-start: 5px solid var(--orange); }
.wa-pop-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--white); margin-block-end: 4px; }
.wa-pop-ic .ic { width: 26px; height: 26px; }
.wa-pop h2 { font-family: var(--f-display); font-stretch: 96%; font-weight: 800; font-size: 1.35rem; line-height: 1.2; color: var(--navy); }
.wa-pop-ref { font-size: .9rem; color: var(--muted); }
.wa-pop-ref strong { color: var(--navy); }
.wa-pop p { font-size: .95rem; }
.wa-pop-actions { width: 100%; display: grid; gap: 10px; margin-block-start: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .wa-pop-panel { animation: waIn .32s var(--ease) both; }
  .wa-pop-scrim { animation: waFade .25s ease-out both; }
  @keyframes waIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
  @keyframes waFade { from { opacity: 0; } to { opacity: 1; } }
}
.mnt-flag { position: fixed; inset-block-end: 14px; inset-inline-start: 14px; z-index: 95; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--navy-950); color: var(--white); font-size: .78rem; font-weight: 700; box-shadow: var(--shadow); }
.mnt-flag a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.mnt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
/* Protection des visuels : dissuasion légère (champs, adresses et références restent sélectionnables) */
img { -webkit-user-drag: none; user-select: none; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable], address, .selectable, .pdp-sku, .order-ref, .topbar-links, .ft-col a[href^="tel:"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
