/* =====================================================================
   GameKlub — feuille de style globale
   Design tokens autour du bleu ciel de la marque (#0EA6E9), thème clair
   par défaut, mode sombre via prefers-color-scheme. Aucune police externe.
   ===================================================================== */

:root {
  color-scheme: light;

  /* Marque : bleu ciel vif (bandeau) et déclinaisons accessibles */
  --brand: #0ea6e9; /* en-tête, boutons sur fond blanc avec texte blanc : utiliser --brand-600 pour AA */
  --brand-50: #f0f9ff;
  --brand-100: #dbf1fd;
  --brand-200: #b6e3fb;
  --brand-600: #0284c7; /* boutons primaires (texte blanc 4.6:1) */
  --brand-700: #0369a1; /* liens sur fond blanc (6.4:1) */
  --brand-800: #075985; /* titres accentués */
  --brand-900: #0b3a57; /* pied de page, bandeaux sombres */

  /* Accent complémentaire (promos, prix, bons plans) */
  --promo: #c2410c; /* texte sur blanc 5.1:1 */
  --promo-600: #ea580c;
  --promo-soft: #fff1e6;

  /* États */
  --success: #15803d;
  --success-soft: #dcfce7;
  --warning: #b45309;
  --warning-soft: #fef3c7;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;

  /* Surfaces et texte */
  --background: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --surface-3: #e3e9f1;
  --foreground: #10202e;
  --muted: #526273; /* 6.4:1 sur blanc */
  --border: #d9e1ea;
  --border-strong: #b9c6d3;
  --link: var(--brand-700);
  --link-hover: var(--brand-800);

  --header-bg: var(--brand);
  --header-bg-2: #0c99d6;
  --header-fg: #ffffff;
  --header-muted: rgba(255, 255, 255, 0.82);
  --footer-bg: var(--brand-900);
  --footer-fg: #dbe7f1;

  /* Formes */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 46, 0.05);
  --shadow: 0 1px 2px rgba(16, 32, 46, 0.04), 0 4px 14px rgba(16, 32, 46, 0.07);
  --shadow-lg: 0 12px 32px rgba(16, 32, 46, 0.14), 0 1px 3px rgba(16, 32, 46, 0.08);
  --scrollbar: #c3ced9;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--brand-600);
  --focus-on-brand: 0 0 0 3px var(--brand), 0 0 0 6px #fff;

  --container: 1280px;
  --gutter: 16px;
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: var(--font);
}



/* ---------- Barres de défilement (fines, discrètes) ---------- */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar) transparent;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: var(--scrollbar);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background-color: var(--muted);
}
.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--foreground);
  background: var(--background);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius-sm);
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  font-weight: 800;
}
h1 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
}
h2 {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
}
h3 {
  font-size: 1.1rem;
}
p {
  margin: 0 0 0.75em;
}
ul[role="list"],
ol[role="list"] {
  margin: 0;
  padding: 0;
  list-style: none;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  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-link {
  position: absolute;
  left: 8px;
  top: -60px;
  padding: 8px 12px;
  background: var(--brand-800);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 200;
}
.skip-link:focus {
  top: 8px;
}
.muted {
  color: var(--muted);
}
.error {
  color: var(--danger);
}
.success {
  color: var(--success);
}
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* ---------- Boutons, badges, puces ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.button:hover {
  text-decoration: none;
}
.button:active {
  transform: translateY(1px);
}
.button--primary {
  background: var(--brand-600);
  color: #fff;
}
.button--primary:hover {
  background: var(--brand-700);
  color: #fff;
}
.button--promo {
  background: var(--promo-600);
  color: #fff;
}
.button--promo:hover {
  background: var(--promo);
  color: #fff;
}
.button--ghost {
  background: var(--surface);
  color: var(--brand-700);
  border-color: var(--border-strong);
}
.button--ghost:hover {
  border-color: var(--brand-600);
  color: var(--brand-800);
}
.button--light {
  background: #fff;
  color: var(--brand-800);
}
.button--light:hover {
  background: var(--brand-50);
  color: var(--brand-900);
}
.button--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.button--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.button--sm {
  min-height: 34px;
  padding: 4px 12px;
  font-size: 0.85rem;
}
.button--block {
  width: 100%;
}
.button:disabled,
.button[aria-disabled="true"] {
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--border);
  cursor: not-allowed;
  transform: none;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
  padding: 0;
}
.icon-button:hover {
  border-color: var(--brand-600);
  color: var(--brand-700);
}
.icon-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
}
.icon-button .icon {
  width: 20px;
  height: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.badge--neuf {
  background: var(--success-soft);
  color: var(--success);
}
.badge--occasion {
  background: var(--warning-soft);
  color: var(--warning);
}
.badge--offer {
  background: var(--promo-soft);
  color: var(--promo);
}
.badge--last {
  background: var(--danger-soft);
  color: var(--danger);
}
/* Réduction admin (jalon 9 bis) : « -20 % » / « -5 € » et ancien prix barré */
.badge--discount {
  background: var(--promo);
  color: #fff;
}
.price-old {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.82em;
  white-space: nowrap;
}
.buybox__old {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 2px;
}
.buybox__old .price-old {
  font-size: 1.05rem;
}
.buybox__until {
  margin: 0;
  font-size: 0.85rem;
}
.badge--platform {
  background: var(--platform-color, var(--brand-700));
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--foreground);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip:hover {
  text-decoration: none;
  border-color: var(--brand-600);
  color: var(--brand-800);
}
.chip--active {
  background: var(--brand-100);
  border-color: var(--brand-600);
  color: var(--brand-800);
}
.chip__x {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  color: var(--header-fg);
  box-shadow: 0 2px 12px rgba(4, 60, 90, 0.25);
}
.site-header a {
  color: var(--header-fg);
}
.site-header a:hover {
  color: #fff;
  text-decoration: none;
}
.site-header :is(a, button, input, summary, [tabindex]):focus-visible {
  box-shadow: var(--focus-on-brand);
}
.topbar {
  background: var(--brand-900);
  color: #e6f4fb;
  font-size: 0.82rem;
}
.topbar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  text-align: center;
}
.topbar strong {
  color: #fff;
}
.topbar__more {
  display: none;
}
@media (min-width: 640px) {
  .topbar__more {
    display: inline;
  }
}
.site-header__bar {
  display: grid;
  grid-template-areas: "burger brand actions" "search search search";
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 12px;
  padding-block: 8px;
}
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
}
.brand svg {
  height: 30px;
  width: auto;
}
.site-header__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.header-action {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 44px;
  min-height: 44px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--header-fg);
  font-size: 0.72rem;
  line-height: 1.1;
  white-space: nowrap;
  position: relative;
}
.header-action:hover {
  background: rgba(255, 255, 255, 0.14);
}
.header-action .icon {
  width: 22px;
  height: 22px;
}
.header-action__label {
  display: none;
}
.header-action__count {
  position: absolute;
  top: 2px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--promo-600);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--header-bg);
}
.header-action__count:empty,
.header-action__count[data-count="0"] {
  display: none;
}
.header-action--disabled {
  opacity: 0.6;
}
/* Petite flèche du menu compte : hors flux, pour ne pas décaler l'icône ni le libellé des autres actions. */
.header-action__caret {
  position: absolute;
  top: 8px;
  right: 3px;
  width: 11px;
  height: 11px;
  opacity: 0.85;
}
.menu[open] .header-action__caret {
  transform: rotate(180deg);
}
@media (max-width: 479px) {
  .header-action--secondary {
    display: none;
  }
}

/* Menu compte (details) */
.menu {
  position: relative;
}
.menu > summary {
  list-style: none;
  cursor: pointer;
}
.menu > summary::-webkit-details-marker {
  display: none;
}
.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 8px;
  background: var(--surface);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 120;
}
.menu__panel a,
.menu__panel button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--foreground) !important;
  text-align: left;
  font-size: 0.95rem;
}
.menu__panel a:hover,
.menu__panel button:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.menu__head {
  padding: 8px 12px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.menu__head strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Recherche */
.search-box {
  grid-area: search;
  position: relative;
  display: flex;
  width: 100%;
  min-height: 44px;
  background: #fff;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.search-box:focus-within {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55);
}
.search-box__scope {
  display: none;
  flex: none;
  max-width: 150px;
  padding: 0 8px 0 16px;
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 999px 0 0 999px;
  background: #f4f7fb;
  color: #10202e;
  font-size: 0.85rem;
  font-weight: 600;
}
.search-box input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
  border: none;
  border-radius: 999px 0 0 999px;
  background: transparent;
  color: #10202e;
  font: inherit;
}
.search-box input[type="search"]::placeholder {
  color: #6b7a89;
}
.search-box input[type="search"]::-webkit-search-decoration,
.search-box input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.search-box__submit {
  display: inline-grid;
  place-items: center;
  width: 52px;
  border: none;
  border-radius: 0 999px 999px 0;
  background: var(--brand-800);
  color: #fff;
}
.search-box__submit:hover {
  background: var(--brand-900);
}
.search-box__list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--surface);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 130;
  max-height: 60vh;
  overflow: auto;
}
.search-box__list li {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 2px 12px;
  padding: 8px 14px;
  cursor: pointer;
}
.search-box__list li.is-active {
  background: var(--brand-50);
}
.search-box__thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
  background: var(--platform-color, var(--brand-700));
  grid-row: span 2;
}
.search-box__title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-box__meta {
  grid-column: 2;
  font-size: 0.85rem;
  color: var(--muted);
}
.search-box__price {
  grid-row: span 2;
  font-weight: 800;
}
.search-box__all {
  grid-template-columns: 1fr !important;
  border-top: 1px solid var(--border);
  color: var(--link);
  font-weight: 600;
}

/* Méga-menu (barre secondaire) */
.main-nav {
  background: var(--header-bg-2);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: none;
}
.main-nav__list {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav__item {
  position: static;
  min-width: 0;
}
/* « Bons plans » reste sur la même ligne, calé à droite */
.main-nav__item:last-child {
  margin-left: auto;
}
@media (max-width: 1279px) {
  .main-nav__link {
    padding-inline: 6px;
    font-size: 0.82rem;
    gap: 4px;
  }
  .main-nav__link .icon:not(:last-child),
  .main-nav__link .main-nav__promo-icon {
    display: none;
  }
}
/* Icônes du menu (jalon 8) : boîte de taille fixe, pictogramme au trait en currentColor ou image téléversée */
.nav-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  color: inherit;
}
.nav-icon svg,
.nav-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.main-nav__link .main-nav__promo-icon {
  opacity: 0.85;
}
.mega__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.mega__label > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mega__title .nav-icon {
  margin-right: 6px;
  color: var(--muted);
}
.mega__head h3 .mega__universe-icon {
  margin-right: 8px;
  color: var(--universe-color, var(--brand-700));
}
.mega__platforms .nav-icon,
.mega__links .nav-icon {
  color: var(--muted);
}
.mega__platforms a:hover .nav-icon,
.mega__links a:hover .nav-icon {
  color: inherit;
}
.drawer__universe-icon {
  margin-right: 8px;
  color: var(--universe-color, var(--brand));
}
.drawer__link .mega__label {
  flex: 1 1 auto;
}
.banner__nav-icon {
  flex: none;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--universe-color, var(--brand-700));
}
.platform-card__mark--icon {
  color: #fff;
}
.main-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 9px;
  border: none;
  background: transparent;
  color: var(--header-fg);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.main-nav__link .icon {
  width: 14px;
  height: 14px;
  opacity: 0.8;
  transition: transform 0.15s;
}
.main-nav__link--promo {
  color: #ffe7cf;
}
.main-nav__link:hover {
  background: rgba(255, 255, 255, 0.12);
}
.main-nav__item.is-open > .main-nav__link {
  background: var(--surface);
  color: var(--brand-800);
}
.main-nav__item.is-open > .main-nav__link .icon {
  transform: rotate(180deg);
}
/* Après les règles de base (même spécificité) : barre resserrée pour rester sur une ligne */
@media (max-width: 1279px) {
  .main-nav__link {
    padding-inline: 6px;
    font-size: 0.82rem;
    gap: 4px;
  }
}
@media (max-width: 1199px) {
  .main-nav__link {
    padding-inline: 4px;
    font-size: 0.78rem;
    gap: 3px;
  }
}
/* Panneau pleine largeur du conteneur, toujours ancré sous la barre et aligné à gauche : aucun saut selon l'univers */
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 110;
  display: none;
  padding: 24px 28px 22px;
  background: var(--surface);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-top: 3px solid var(--universe-color, var(--brand));
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
}
.main-nav__item.is-open > .mega {
  display: grid;
  animation: mega-in 0.14s ease-out;
}
@keyframes mega-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.mega {
  grid-template-columns: 3fr 1fr;
  gap: 20px 48px;
  max-height: calc(100vh - var(--header-h) - 80px);
  overflow: auto;
}
.mega__platforms {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mega__head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.mega__head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.mega__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.mega__title {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.mega__platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mega__platforms a,
.mega__links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  color: var(--foreground);
  font-size: 0.93rem;
}
.mega__platforms a:hover,
.mega__links a:hover {
  background: var(--brand-50);
  color: var(--brand-800);
  text-decoration: none;
}
.mega__count {
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.mega__links {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mega__cta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

/* Bouton burger + tiroir mobile */
.burger {
  grid-area: burger;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--header-fg);
}
.burger:hover {
  background: rgba(255, 255, 255, 0.14);
}
.burger .icon {
  width: 26px;
  height: 26px;
}
.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
}
.drawer.is-open {
  display: block;
}
.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 32, 48, 0.55);
  border: none;
  padding: 0;
  width: 100%;
}
.drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(360px, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--foreground);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  animation: drawer-in 0.2s ease-out;
}
@keyframes drawer-in {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 10px 16px;
  background: var(--header-bg);
  color: #fff;
  position: sticky;
  top: 0;
}
.drawer__head .brand svg {
  height: 26px;
}
.drawer__close {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #fff;
}
.drawer__section {
  padding: 8px 8px;
  border-bottom: 1px solid var(--border);
}
.drawer__title {
  margin: 8px 8px 4px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.drawer__link,
.drawer details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--foreground) !important;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.drawer details > summary::-webkit-details-marker {
  display: none;
}
.drawer__link:hover,
.drawer details > summary:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.drawer details > summary .icon {
  transition: transform 0.15s;
  color: var(--muted);
}
.drawer details[open] > summary .icon {
  transform: rotate(180deg);
}
.drawer__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--universe-color, var(--brand));
  flex: none;
  margin-right: 6px;
}
.drawer__sub {
  margin: 0 0 6px;
  padding: 0 0 0 10px;
  list-style: none;
  border-left: 2px solid var(--surface-3);
  margin-left: 14px;
}
.drawer__sub a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--foreground);
}
.drawer__sub a:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.drawer__sub a strong {
  color: var(--brand-700);
}

@media (min-width: 768px) {
  .header-action__label {
    display: block;
  }
  .search-box__scope {
    display: block;
  }
}
@media (min-width: 1024px) {
  .site-header__bar {
    grid-template-areas: "brand search actions";
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 24px;
    padding-block: 10px;
  }
  .brand svg {
    height: 34px;
  }
  .search-box {
    max-width: 680px;
    justify-self: center;
  }
  .burger {
    display: none;
  }
  .main-nav {
    display: block;
  }
  .drawer {
    display: none !important;
  }
}

/* ---------- Contenu ---------- */
.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter) 48px;
}
.site-main:focus {
  outline: none;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--muted);
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.breadcrumb li + li::before {
  content: "›";
  color: var(--border-strong);
}
.breadcrumb a {
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--link);
}
.breadcrumb [aria-current="page"] {
  color: var(--foreground);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60vw;
}
.section {
  margin-bottom: 40px;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.section-head h2,
.section-head h1 {
  margin: 0;
}
.section-head h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  letter-spacing: -0.02em;
}
.section {
  margin-bottom: 52px;
}
.section-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.section-head__link {
  flex: none;
  font-weight: 700;
  white-space: nowrap;
}
.section-head__link::after {
  content: " →";
}

/* ---------- Carrousel ---------- */
.carousel {
  position: relative;
}
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 12px) / 2);
  gap: 12px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 4px var(--gutter) 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: var(--gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  --fade-l: 0px;
  --fade-r: 40px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
}
.carousel__track::-webkit-scrollbar {
  display: none;
}
.carousel:not(.is-start) .carousel__track {
  --fade-l: 40px;
}
.carousel.is-end .carousel__track {
  --fade-r: 0px;
}
@media (min-width: 860px) {
  .carousel__track {
    margin: 0;
    padding: 4px 0 8px;
    scroll-padding: 0;
  }
}
.carousel__track > li {
  scroll-snap-align: start;
  min-width: 0;
}
.carousel__nav {
  display: none;
  position: absolute;
  top: 38%;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
  box-shadow: var(--shadow);
  place-items: center;
  transition: opacity 0.15s, transform 0.15s;
}
.carousel__nav:hover:not(:disabled) {
  transform: scale(1.06);
}
.carousel__nav .icon {
  width: 20px;
  height: 20px;
}
.carousel__nav--prev {
  left: -14px;
}
.carousel__nav--next {
  right: -14px;
}
.carousel__nav:hover {
  color: var(--brand-700);
  border-color: var(--brand-600);
}
.carousel__nav:disabled {
  opacity: 0;
  pointer-events: none;
}
@media (min-width: 560px) {
  .carousel__track {
    grid-auto-columns: calc((100% - 2 * 14px) / 3);
    gap: 14px;
  }
}
@media (min-width: 860px) {
  .carousel__track {
    grid-auto-columns: calc((100% - 3 * 16px) / 4);
    gap: 16px;
  }
  .carousel.has-js .carousel__nav {
    display: grid;
  }
}
@media (min-width: 1100px) {
  .carousel__track {
    grid-auto-columns: calc((100% - 4 * 16px) / 5);
  }
}
@media (min-width: 1280px) {
  .carousel__track {
    grid-auto-columns: calc((100% - 5 * 16px) / 6);
  }
}

/* ---------- Accueil ---------- */
.hero {
  display: grid;
  gap: 24px;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 56px);
  margin: 4px 0 40px;
  border-radius: var(--radius-lg);
  color: #fff;
  background-color: var(--brand-900);
  background-image: linear-gradient(100deg, var(--brand-900) 0%, color-mix(in srgb, var(--brand-900) 70%, var(--brand-800)) 55%, var(--brand-800) 100%);
}
.hero__text {
  display: grid;
  gap: 18px;
  align-content: center;
}
.hero__kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-200);
}
.hero h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}
.hero p {
  max-width: 52ch;
  font-size: 1.05rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.hero__facts {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: center;
}
.hero__facts li {
  display: grid;
  gap: 2px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero__facts li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.hero__facts strong {
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero__facts span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}
.hero__facts a {
  color: #fff;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 3fr) minmax(240px, 1.2fr);
    gap: 48px;
  }
}

/* Mosaïque « à la une » : une tuile principale avec de vrais produits, deux tuiles secondaires */
.bento {
  display: grid;
  gap: 16px;
  margin: 0 0 52px;
}
.bento__tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 220px;
}
.bento__tile--occasions {
  background: var(--brand-900);
  color: #fff;
  border-color: transparent;
}
.bento__tile--occasions .bento__kicker,
.bento__tile--occasions .bento__cta {
  color: var(--brand-200);
}
.bento__tile--occasions .bento__title a,
.bento__tile--occasions .mini__title {
  color: #fff;
}
.bento__tile--occasions .bento__count,
.bento__tile--occasions .mini__platform {
  color: rgba(255, 255, 255, 0.7);
}
.bento__tile--occasions .mini__price {
  color: #fff;
}
.bento__tile--occasions .mini__link:hover {
  background: rgba(255, 255, 255, 0.07);
}
.bento__tile--bons-plans,
.bento__tile--derniers {
  background: var(--promo-soft);
  border-color: transparent;
}
.bento__tile--bons-plans .bento__kicker,
.bento__tile--derniers .bento__kicker,
.bento__tile--bons-plans .bento__cta,
.bento__tile--derniers .bento__cta {
  color: var(--promo);
}
.bento__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.bento__kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-700);
}
.bento__count {
  font-size: 0.85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.bento__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 18ch;
}
.bento__tile--lead .bento__title {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}
.bento__title a {
  color: var(--foreground);
}
.bento__title a:hover {
  color: var(--brand-800);
  text-decoration: none;
}
.bento__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 34ch;
}
.bento__products {
  display: grid;
  gap: 4px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.bento__tile--lead .bento__products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.bento__cta {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  align-self: flex-start;
}
.bento__cta span {
  display: inline-block;
  transition: transform 0.15s;
}
.bento__cta:hover span {
  transform: translateX(3px);
}

/* Mini-produit (mosaïque) */
.mini__link {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 6px;
  margin: 0 -6px;
  border-radius: var(--radius);
  color: var(--foreground);
  transition: background-color 0.15s;
}
.mini__link:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.mini__thumb {
  display: block;
  width: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.mini__thumb .product-image--placeholder {
  gap: 0;
  padding: 4px;
}
.mini__thumb .product-image--placeholder svg,
.mini__thumb .product-image__sub {
  display: none;
}
.mini__thumb .product-image__label {
  font-size: 0.8rem;
}
.mini__body {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.mini__platform {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--platform-color, var(--brand-700));
}
.mini__title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini__price {
  font-weight: 800;
  font-size: 0.95rem;
}
.bento__tile--lead .mini__link {
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
}
.bento__tile--lead .mini__thumb {
  width: 100%;
}
.bento__tile--lead .mini__thumb .product-image--placeholder svg {
  display: block;
}
.bento__tile--lead .mini__thumb .product-image__label {
  font-size: 1.1rem;
}
.bento__tile--lead .mini__title {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
@media (min-width: 760px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento__tile--lead {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1024px) {
  .bento {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
  .bento__tile--lead {
    grid-column: auto;
  }
}

/* Index des univers : liste éditoriale, typographie forte, plateformes en liens */
.universe-index {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.universe-index__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.universe-index__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.universe-index__name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.universe-index__name::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--universe-color, var(--brand));
  flex: none;
}
.universe-index__name:hover {
  text-decoration: none;
  color: var(--brand-800);
}
.universe-index__count {
  font-size: 0.85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.universe-index__platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}
.universe-index__platforms li + li::before {
  content: "·";
  margin: 0 8px;
  color: var(--border-strong);
}
.universe-index__platforms a {
  color: var(--muted);
}
.universe-index__platforms a:hover {
  color: var(--brand-800);
}
.universe-index__platforms .more {
  color: var(--brand-700);
  font-weight: 600;
}
@media (min-width: 760px) {
  .universe-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }
}
@media (min-width: 1100px) {
  .universe-index__item {
    grid-template-columns: 240px 1fr;
    align-items: baseline;
  }
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.platform-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  min-height: 68px;
  transition: border-color 0.15s, transform 0.15s;
}
.platform-card:hover {
  text-decoration: none;
  color: var(--foreground);
  border-color: var(--platform-color, var(--brand));
  transform: translateY(-1px);
}
.platform-card__mark {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--platform-color, var(--brand-700));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
  line-height: 1;
  padding: 2px;
}
.platform-card__name {
  font-weight: 700;
  line-height: 1.2;
}
.platform-card__count {
  font-size: 0.82rem;
  color: var(--muted);
}

.reassurance {
  display: grid;
  gap: 14px 32px;
  margin: 0 0 44px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.reassurance__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.reassurance__icon {
  flex: none;
  color: var(--brand-700);
  margin-top: 2px;
}
.reassurance__icon .icon {
  width: 22px;
  height: 22px;
}
.reassurance__item strong {
  display: block;
  font-size: 0.95rem;
}
.reassurance__item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
@media (min-width: 640px) {
  .reassurance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .reassurance {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.steps {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 3vw, 40px) 0 0;
  border-top: 1px solid var(--border);
  margin-bottom: 40px;
}
.steps__list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps__list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}
.steps__list li::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.steps__list strong {
  display: block;
}
.steps__list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.steps__note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
@media (min-width: 860px) {
  .steps__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Cartes produit ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 560px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
  }
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}
.product-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}
.product-card__media .product-image {
  transition: transform 0.25s ease;
}
.product-card:hover .product-card__media .product-image {
  transform: scale(1.03);
}
.product-card:focus-within {
  border-color: var(--brand-600);
}
.product-card__media {
  display: block;
  position: relative;
  background: var(--surface-2);
}
.product-card__badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  z-index: 1;
}
.product-card__fav {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #526273;
  box-shadow: var(--shadow-sm);
}
.product-card__fav:hover {
  color: var(--promo);
}
.product-card__fav[aria-pressed="true"] {
  color: var(--promo-600);
}
.product-card__fav[aria-pressed="true"] .icon path {
  fill: currentColor;
}
.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px 12px;
  flex: 1;
}
.product-card__platform {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--platform-color, var(--brand-700));
}
.product-card__condition {
  color: var(--muted);
  font-weight: 600;
}
.product-card__stock--last {
  color: var(--danger);
}
.product-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.product-card__title a {
  color: var(--foreground);
}
.product-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}
.product-card__title a:hover {
  text-decoration: none;
  color: var(--brand-800);
}
.product-card__attrs {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-card__footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  padding-top: 8px;
}
.product-card__price {
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
}
.product-card__price--promo {
  color: var(--promo);
}
.product-card__stock {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--success);
}
.product-card__stock--low {
  color: var(--warning);
}
.product-card__cta {
  position: relative;
  z-index: 1;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
}
.product-card__cta .icon {
  width: 20px;
  height: 20px;
}

/* Vue liste */
.product-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.product-list .product-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: stretch;
}
.product-list .product-card__media {
  align-self: start;
}
.product-list .product-card__badges {
  position: static;
  flex-direction: row;
  order: -1;
}
.product-list .product-card__fav {
  top: auto;
  bottom: 8px;
  right: 8px;
}
.product-list .product-card__title {
  -webkit-line-clamp: 3;
  min-height: 0;
  font-size: 1.02rem;
}
.product-list .product-card__desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 560px) {
  .product-list .product-card {
    grid-template-columns: 150px 1fr;
  }
  .product-list .product-card__body {
    padding: 14px 16px;
  }
}

.product-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--surface-2);
}
.product-image--placeholder {
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  padding: 12px;
  color: var(--platform-color, var(--brand-700));
  background-color: color-mix(in srgb, var(--platform-color, var(--brand-700)) 9%, var(--surface));
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 10px,
    color-mix(in srgb, var(--platform-color, var(--brand-700)) 5%, transparent) 10px 11px
  );
}

.product-image--placeholder svg {
  width: 34px;
  height: 34px;
  margin: 0 auto 4px;
  opacity: 0.7;
}
.product-image__label {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.product-image__sub {
  font-size: 0.66rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.product-image--large.product-image--placeholder svg {
  width: 72px;
  height: 72px;
}
.product-image--large .product-image__label {
  font-size: 2.2rem;
}

/* ---------- Catalogue ---------- */
.catalog__layout {
  display: grid;
  gap: 20px;
}
@media (min-width: 960px) {
  .catalog__layout {
    grid-template-columns: 272px minmax(0, 1fr);
    align-items: start;
  }
  .catalog__filters {
    position: sticky;
    top: calc(var(--header-h) + 56px);
    max-height: calc(100vh - var(--header-h) - 70px);
    overflow: auto;
    scrollbar-width: thin;
  }
}
.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.filters > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.filters > summary::-webkit-details-marker {
  display: none;
}
.filters > summary .icon {
  color: var(--muted);
  transition: transform 0.15s;
}
.filters[open] > summary .icon {
  transform: rotate(180deg);
}
.filters__form {
  display: grid;
  gap: 4px;
  padding: 0 14px 14px;
  border-top: 1px solid var(--border);
}
.filters__group {
  border: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.filters__group:last-of-type {
  border-bottom: none;
}
.filters__group > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
}
.filters__group > summary::-webkit-details-marker {
  display: none;
}
.filters__group > summary .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.15s;
}
.filters__group[open] > summary .icon {
  transform: rotate(180deg);
}
.filters__group__body {
  display: grid;
  gap: 2px;
  padding-bottom: 12px;
}
.filters__universe {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--universe-color, var(--muted));
  display: flex;
  justify-content: space-between;
}
.filters__universe a {
  color: inherit;
}
.filters__universe .count {
  font-weight: 600;
  color: var(--muted);
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  cursor: pointer;
}
.check:hover {
  background: var(--surface-2);
}
.check input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--brand-600);
}
.check .count {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.check--muted {
  color: var(--muted);
}
.price-range {
  display: grid;
  gap: 10px;
}
.price-range__inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.price-range__inputs input {
  width: 100%;
  min-width: 0;
}
.price-range__sliders {
  position: relative;
  height: 28px;
}
.price-range__sliders input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  border: none;
}
.price-range__sliders input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand-600);
  cursor: pointer;
}
.price-range__sliders input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand-600);
  cursor: pointer;
}
.price-range__sliders input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}
.price-range__sliders input[type="range"]::-moz-range-track {
  height: 4px;
  background: transparent;
}
.price-range__sliders input[type="range"]:focus-visible {
  box-shadow: none;
}
.price-range__sliders input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: var(--focus);
}
.price-range__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 4px;
  border-radius: 2px;
  background: var(--surface-3);
}
.price-range__fill {
  position: absolute;
  top: 12px;
  height: 4px;
  border-radius: 2px;
  background: var(--brand-600);
}
.filters__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  position: sticky;
  bottom: 0;
  background: var(--surface);
}

.catalog__toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.catalog__count {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.catalog__count strong {
  color: var(--foreground);
}
.catalog__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.catalog__sort {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.catalog__sort label {
  font-size: 0.88rem;
  color: var(--muted);
}
.catalog__sort select {
  padding: 6px 28px 6px 10px;
  font-size: 0.9rem;
}
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.view-toggle a,
.view-toggle span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 34px;
  color: var(--muted);
}
.view-toggle a:hover {
  color: var(--brand-700);
}
.view-toggle .is-current {
  background: var(--brand-100);
  color: var(--brand-800);
}
.view-toggle .icon {
  width: 18px;
  height: 18px;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.active-filters__label {
  font-size: 0.85rem;
  color: var(--muted);
}

.empty-state {
  text-align: center;
  padding: 48px 16px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.empty-state__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.pagination ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pagination li > * {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
  font-weight: 600;
}
.pagination li > a:hover {
  border-color: var(--brand-600);
  color: var(--brand-800);
  text-decoration: none;
}
.pagination .is-current {
  background: var(--brand-600);
  color: #fff;
  border-color: var(--brand-600);
}
.pagination__arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
  font-weight: 600;
}
.pagination__arrow:hover {
  border-color: var(--brand-600);
  color: var(--brand-800);
  text-decoration: none;
}
.pagination__arrow.is-disabled {
  color: var(--muted);
  opacity: 0.6;
}
.pagination__arrow .icon {
  width: 16px;
  height: 16px;
}

/* ---------- Pages univers / plateforme ---------- */
.banner {
  position: relative;
  display: grid;
  gap: 8px;
  padding: clamp(22px, 4vw, 44px) clamp(20px, 4vw, 48px);
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(100deg, color-mix(in srgb, var(--universe-color, var(--brand)) 70%, #0b1a26), color-mix(in srgb, var(--universe-color, var(--brand)) 92%, #000));
  overflow: hidden;
}
.banner h1 {
  margin: 0;
}
.banner p {
  margin: 0;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.92);
}
.banner__kicker {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}
.banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.subcats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

/* ---------- Fiche produit ---------- */
.product__layout {
  display: grid;
  gap: 24px;
  margin-bottom: 40px;
}
@media (min-width: 900px) {
  .product__layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(280px, 3fr);
    align-items: start;
  }
}
.product__media {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 899px) {
  .product__media {
    max-width: 360px;
    margin-inline: auto;
  }
}
.product__thumbs {
  display: flex;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.product__thumbs li {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  overflow: hidden;
}
.product__thumbs li.is-current {
  border-color: var(--brand-600);
}
.product__thumbs button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: var(--surface-2);
}
.product__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.product__title {
  margin: 4px 0 8px;
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem);
}
.product__platform-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.product__platform-link .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--platform-color, var(--brand));
}
.product__sku {
  font-size: 0.85rem;
  color: var(--muted);
}
.buybox {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.buybox__price {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin: 0;
}
.buybox__price--promo {
  color: var(--promo);
}
.buybox__ttc {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.buybox__offer {
  margin: 0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--promo-soft);
  color: var(--promo);
  font-weight: 700;
  font-size: 0.9rem;
}
.buybox__stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 700;
  color: var(--success);
}
.buybox__stock--low {
  color: var(--warning);
}
.buybox__stock .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
}
.buybox__qty {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.buybox__qty select {
  width: 80px;
}
.buybox__actions {
  display: grid;
  gap: 8px;
}
.buybox__note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.buybox__reassure {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  font-size: 0.88rem;
}
.buybox__reassure li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.buybox__reassure .icon {
  color: var(--brand-700);
  margin-top: 2px;
}
.share {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}
.share__status {
  font-size: 0.85rem;
  color: var(--success);
}

.tabs {
  margin-bottom: 40px;
}
.tabs__list {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
  overflow-x: auto;
}
.tabs__tab {
  padding: 10px 16px;
  margin-bottom: -2px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.tabs__tab[aria-selected="true"] {
  color: var(--brand-800);
  border-bottom-color: var(--brand-600);
}
.tabs__tab:hover {
  color: var(--foreground);
}
.tabs__panel {
  padding: 4px 0;
}
.tabs__panel[hidden] {
  display: none;
}
.tabs--nojs .tabs__panel {
  display: block !important;
}
.tabs--nojs .tabs__panel > h2 {
  display: block !important;
}
.product__description p {
  white-space: pre-line;
  max-width: 75ch;
}
.product__attrs {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 0;
  max-width: 640px;
}
.product__attrs dt {
  color: var(--muted);
}
.product__attrs dd {
  margin: 0;
  font-weight: 600;
}

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  font-size: 0.9rem;
  margin-top: auto;
}
.site-footer a {
  color: var(--footer-fg);
}
.site-footer a:hover {
  color: #fff;
}
.site-footer :is(a, button):focus-visible {
  box-shadow: 0 0 0 3px var(--footer-bg), 0 0 0 6px #fff;
}
.site-footer__reassure {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer__reassure ul {
  display: grid;
  gap: 10px 24px;
  margin: 0 auto;
  padding-block: 18px;
  list-style: none;
}
.site-footer__reassure li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #fff;
}
.site-footer__reassure .icon {
  color: var(--brand-200);
}
.site-footer__cols {
  display: grid;
  gap: 24px;
  padding-block: 32px 20px;
}
.site-footer__title {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 10px;
}
.site-footer ul.links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.site-footer address {
  font-style: normal;
  line-height: 1.6;
}
.site-footer .placeholder {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffe7cf;
  font-size: 0.8rem;
}
.site-footer__brand svg {
  height: 30px;
  width: auto;
  margin-bottom: 10px;
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 14px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(219, 231, 241, 0.8);
}
@media (min-width: 640px) {
  .site-footer__reassure ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .site-footer__reassure ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .site-footer__cols {
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  }
}

/* ---------- Formulaires (connexion, inscription, admin) ---------- */
form.stack {
  display: grid;
  gap: 12px;
  max-width: 420px;
}
label {
  display: grid;
  gap: 4px;
  font-size: 0.95rem;
}
input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):not([type="search"]),
select,
textarea {
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--foreground);
  font: inherit;
}
select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23526273' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 18px;
}
button.primary {
  min-height: 42px;
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  background: var(--brand-600);
  color: #fff;
  font-weight: 700;
}
button.primary:hover {
  background: var(--brand-700);
}
button.link {
  background: none;
  border: none;
  padding: 0;
  color: var(--link);
}
.auth-card {
  max-width: 440px;
  margin: 24px auto 40px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.auth-card h1 {
  margin-bottom: 4px;
}
.auth-card__intro {
  color: var(--muted);
  margin-bottom: 20px;
}
.auth-card form.stack {
  max-width: none;
  gap: 14px;
}
.auth-card label {
  font-weight: 600;
  font-size: 0.9rem;
}
.auth-card input {
  padding: 11px 12px;
}
.auth-card button.primary {
  margin-top: 4px;
}
.auth-card__foot {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
}
.page-head {
  margin-bottom: 24px;
}
.page-head h1 {
  margin-bottom: 4px;
}
.page-head p {
  margin: 0;
  color: var(--muted);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.stat {
  padding: 18px 20px;
  border-right: 1px solid var(--border);
}
.stat:last-child {
  border-right: none;
}
.stat__label {
  font-size: 0.82rem;
  color: var(--muted);
}
.stat__value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.table-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.table-card table th {
  width: 180px;
  color: var(--muted);
  font-weight: 600;
  background: var(--surface-2);
}
.table-card th,
.table-card td {
  padding: 10px 16px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
}
.card .value {
  font-size: 2rem;
  font-weight: 800;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th,
td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}
.prose {
  max-width: 72ch;
}
.placeholder {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 0.85em;
}
.prose h2 {
  margin-top: 1.6em;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 8px;
}
.faq summary {
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}
.faq details > div {
  padding: 0 16px 14px;
  color: var(--muted);
}

/* ---------- Favoris ---------- */
.favorites__empty {
  text-align: center;
  padding: 48px 16px;
}

/* ---------- Panier : en-tête, mini-panier, toast (jalon 3) ---------- */
.header-cart {
  position: relative;
}
.header-cart .header-action:disabled {
  cursor: default;
}
.product-card__cta:not(:disabled) {
  background: var(--surface);
  color: var(--brand-700);
  border-color: var(--border-strong);
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.product-card__cta:not(:disabled):hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}
.product-card__cta.is-in-cart {
  border-color: var(--brand-600);
  color: var(--brand-700);
  background: var(--brand-50);
}
.product-card__cta-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--promo-600);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
.product-card__cta:disabled {
  opacity: 0.55;
}
.buybox__qty input[type="number"] {
  width: 84px;
}
.buybox__qty label {
  display: inline;
  font-weight: 600;
}
.buybox__incart {
  margin: -4px 0 0;
  font-size: 0.85rem;
  color: var(--brand-700);
  font-weight: 600;
}
.mini-cart {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(360px, calc(100vw - 2 * var(--gutter)));
  padding: 12px;
  background: var(--surface);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 130;
  font-size: 0.92rem;
}
.mini-cart__empty {
  text-align: center;
  padding: 8px 0 4px;
}
.mini-cart__list {
  display: grid;
  gap: 8px;
  max-height: 50vh;
  overflow: auto;
}
.mini-cart__line {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "title remove" "meta remove";
  gap: 2px 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
/* Panneaux clairs dans l'en-tête bleu : les liens reprennent les couleurs du contenu */
.site-header :is(.mini-cart, .cart-toast) a {
  color: var(--link);
}
.site-header .mini-cart a.mini-cart__title {
  color: var(--foreground);
}
.site-header :is(.mini-cart, .cart-toast) a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}
.site-header :is(.mini-cart, .cart-toast) a.button {
  text-decoration: none;
}
.site-header :is(.mini-cart, .cart-toast) a.button--primary {
  color: #fff;
}
.site-header :is(.mini-cart, .cart-toast) a.button--ghost {
  color: var(--brand-700);
}
.site-header :is(.mini-cart, .cart-toast) :is(a, button):focus-visible {
  box-shadow: var(--focus);
}
.mini-cart__title {
  grid-area: title;
  font-weight: 600;
  color: var(--foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini-cart__meta {
  grid-area: meta;
  color: var(--muted);
  font-size: 0.85rem;
}
.mini-cart__issue {
  color: var(--warning);
  font-weight: 600;
}
.mini-cart__remove {
  grid-area: remove;
  align-self: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.mini-cart__remove:hover {
  background: var(--surface-2);
  color: var(--danger);
}
.mini-cart__remove .icon {
  width: 16px;
  height: 16px;
}
.mini-cart__more {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.mini-cart__total {
  display: flex;
  justify-content: space-between;
  padding: 10px 0 8px;
  font-size: 1rem;
}
.mini-cart__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cart-toast {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: min(420px, calc(100vw - 2 * var(--gutter)));
  padding: 10px 12px 10px 14px;
  background: var(--surface);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-left: 4px solid var(--success);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 131;
  font-size: 0.9rem;
  animation: toast-in 0.2s ease-out;
}
.cart-toast > span {
  display: grid;
  min-width: 0;
}
.cart-toast__title {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.cart-toast__close {
  border: none;
  background: none;
  padding: 4px;
  color: var(--muted);
  display: grid;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Page panier ---------- */
.cart {
  display: grid;
  gap: 24px;
  align-items: start;
}
@media (min-width: 900px) {
  .cart {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .cart-summary {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }
}
.alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid;
  font-size: 0.92rem;
}
.alert p:last-child,
.alert ul {
  margin-bottom: 0;
}
.alert ul {
  padding-left: 20px;
  margin-top: 6px;
}
.alert--warning {
  background: var(--warning-soft);
  border-color: var(--warning);
  color: var(--warning);
}
.alert--danger {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger);
}
.cart-list {
  display: grid;
  gap: 12px;
}
.cart-line {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  grid-template-areas: "media body remove" "media qty price";
  gap: 8px 14px;
  align-items: start;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.cart-line--issue {
  border-color: var(--warning);
  background: color-mix(in srgb, var(--warning-soft) 40%, var(--surface));
}
.cart-line__media {
  grid-area: media;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.cart-line__media .product-image {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
}
.cart-line__body {
  grid-area: body;
  min-width: 0;
}
.cart-line__platform {
  margin: 0 0 2px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--platform-color, var(--brand-700));
}
.cart-line__title {
  margin: 0 0 2px;
  font-size: 1rem;
  line-height: 1.3;
}
.cart-line__title a {
  color: var(--foreground);
}
.cart-line__sku {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.cart-line__issue {
  margin: 6px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--warning);
}
.cart-line__qty {
  grid-area: qty;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cart-line__qty label {
  display: inline;
}
.cart-line__avail {
  font-size: 0.82rem;
}
.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.qty-stepper button {
  width: 34px;
  border: none;
  background: var(--surface-2);
  color: var(--foreground);
  font-size: 1.1rem;
  line-height: 1;
}
.qty-stepper button:hover:not(:disabled) {
  background: var(--brand-100);
  color: var(--brand-800);
}
.qty-stepper button:disabled {
  color: var(--border-strong);
  cursor: not-allowed;
}
.qty-stepper input[type="number"] {
  width: 52px;
  padding: 6px 4px;
  border: none;
  border-radius: 0;
  text-align: center;
  font-weight: 700;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cart-line__price {
  grid-area: price;
  display: grid;
  justify-items: end;
  align-self: end;
  font-size: 1.05rem;
}
.cart-line__price .muted {
  font-size: 0.8rem;
}
.cart-line__remove {
  grid-area: remove;
  width: 34px;
  height: 34px;
  justify-self: end;
}
.cart__tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 0.92rem;
}
.cart-summary {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.cart-summary h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.cart-summary__rows {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  margin: 0 0 14px;
}
.cart-summary__rows dt {
  color: var(--muted);
}
.cart-summary__rows dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}
.cart-summary__total {
  font-size: 1.5rem;
  font-weight: 900;
}
.cart-summary__note {
  padding: 10px 12px;
  background: var(--brand-50);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--brand-800);
}
.cart-summary__hint {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
@media (max-width: 559px) {
  .cart-line {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas: "media body" "qty qty" "price price";
  }
  .cart-line__remove {
    position: absolute;
  }
  .cart-line {
    position: relative;
  }
  .cart-line__remove {
    top: 10px;
    right: 10px;
  }
  .cart-line__body {
    padding-right: 36px;
  }
  .cart-line__price {
    justify-items: start;
    grid-auto-flow: column;
    align-items: baseline;
    gap: 8px;
  }
}

/* ---------- Réservations : statuts, listes, détail ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}
.status--pending {
  background: var(--brand-100);
  color: var(--brand-800);
}
.status--completed {
  background: var(--success-soft);
  color: var(--success);
}
.status--released {
  background: var(--surface-3);
  color: var(--muted);
}
.status--expired {
  background: var(--warning-soft);
  color: var(--warning);
}
.countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.countdown--urgent {
  color: var(--danger);
}
.reservation-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.1em;
  letter-spacing: 0.04em;
}
.reservation-list {
  display: grid;
  gap: 12px;
}
@media (min-width: 720px) {
  .reservation-list {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}
.reservation-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-600);
  border-radius: var(--radius-lg);
}
.reservation-card--completed {
  border-left-color: var(--success);
}
.reservation-card--released {
  border-left-color: var(--border-strong);
}
.reservation-card--expired {
  border-left-color: var(--warning);
}
.reservation-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.reservation-card__number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--foreground);
}
.reservation-card__meta,
.reservation-card__expiry {
  margin: 0;
  font-size: 0.88rem;
}
.reservation-card__meta {
  color: var(--muted);
}
.reservation-card__titles {
  margin: 0;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reservation-card__expiry {
  font-weight: 600;
}
.reservation-card .button {
  justify-self: start;
  margin-top: 4px;
}
.confirm-banner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 20px;
  background: var(--success-soft);
  border: 1px solid var(--success);
  border-radius: var(--radius-lg);
}
.confirm-banner h1 {
  margin-bottom: 4px;
  color: var(--success);
}
.confirm-banner p {
  margin: 0;
}
.confirm-banner__icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--success);
  color: #fff;
}
.confirm-banner__icon .icon {
  width: 26px;
  height: 26px;
}
.reservation-page__head {
  margin-bottom: 16px;
}
.reservation-page__status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}
.reservation-page__layout {
  display: grid;
  gap: 24px;
  align-items: start;
}
.reservation-page__layout > * {
  min-width: 0;
}
@media (min-width: 900px) {
  .reservation-page__layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}
.reservation-items {
  overflow: auto;
}
.reservation-items table {
  min-width: 420px;
}
.reservation-items table th,
.reservation-items table td {
  vertical-align: middle;
}
.reservation-items tfoot th {
  white-space: normal;
}
.reservation-items table thead th,
.admin-table table thead th {
  width: auto;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.reservation-items tfoot th {
  width: auto;
  background: none;
  color: var(--foreground);
}
.reservation-items__total {
  font-size: 1.2rem;
  font-weight: 900;
  white-space: nowrap;
}
.reservation-items__product {
  display: flex;
  gap: 12px;
  align-items: center;
}
.reservation-items__thumb {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--platform-color, var(--brand-700));
  color: #fff;
  overflow: hidden;
}
.reservation-items__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reservation-items__meta {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}
td.num,
th.num {
  text-align: right;
  white-space: nowrap;
}
.reservation-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 20px 0;
  font-size: 0.95rem;
}
.reservation-facts dt {
  color: var(--muted);
}
.reservation-facts dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 559px) {
  .reservation-facts {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }
  .reservation-facts dd {
    margin-bottom: 10px;
  }
  .confirm-banner {
    padding: 16px;
  }
}
.reservation-page__cancel {
  margin-top: 8px;
}
.reservation-aside {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
}
.reservation-aside h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.reservation-aside h2 + h2 {
  margin-top: 20px;
}
.reservation-aside h2 .icon,
.reservation-aside .muted .icon {
  color: var(--brand-700);
  vertical-align: -0.2em;
}
.reservation-aside p:last-child {
  margin-bottom: 0;
}
.confirm-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.confirm-box p {
  margin: 0;
}
.confirm-box__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- Administration ---------- */
.admin__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -16px calc(-1 * var(--gutter)) 24px;
  padding: 8px var(--gutter);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-width: 0;
}
.admin-nav__brand {
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-800);
  white-space: nowrap;
}
.admin-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.admin-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
.admin-nav a:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.admin-nav a[aria-current="page"] {
  background: var(--brand-100);
  color: var(--brand-800);
}
.admin-bell {
  position: relative;
}
.admin-bell__button {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
  display: grid;
  place-items: center;
}
.admin-bell__button:hover {
  border-color: var(--brand-600);
  color: var(--brand-700);
}
.admin-bell__button .icon {
  width: 22px;
  height: 22px;
}
.admin-bell__count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--promo-600);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--surface);
}
.admin-bell__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(400px, calc(100vw - 2 * var(--gutter)));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 130;
  font-size: 0.9rem;
}
.admin-bell__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.admin-bell__head .link {
  margin-left: auto;
  font-size: 0.85rem;
}
.admin-bell__sound {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}
.admin-bell__empty {
  padding: 16px;
  margin: 0;
}
.admin-bell__panel ul {
  max-height: 60vh;
  overflow: auto;
}
.admin-bell__panel li a {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}
.admin-bell__panel li a:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.admin-bell__panel li.is-unseen a {
  background: var(--brand-50);
}
.admin-bell__panel li:last-child a {
  border-bottom: none;
}
.admin-bell__type {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-700);
}
.admin-toast {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: min(440px, calc(100vw - 2 * var(--gutter)));
  padding: 10px 12px 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--promo-600);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 131;
  font-size: 0.9rem;
  animation: toast-in 0.2s ease-out;
}
.admin-toast > div {
  display: grid;
}
.admin-toast > div span {
  color: var(--muted);
  font-size: 0.85rem;
}
.admin-toast__close {
  border: none;
  background: none;
  padding: 4px;
  color: var(--muted);
  display: grid;
}
.admin-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.admin-toolbar__search {
  display: flex;
  gap: 8px;
  max-width: 520px;
}
.admin-toolbar__search input[type="search"] {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--foreground);
  font: inherit;
}
.admin-toolbar__filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.admin-table {
  overflow: auto;
}
.admin-table table th,
.admin-table table td {
  padding: 10px 12px;
  vertical-align: middle;
  font-size: 0.92rem;
}
.admin-table tbody tr:hover {
  background: var(--surface-2);
}
.admin-table tr.is-urgent td:first-child {
  box-shadow: inset 4px 0 0 var(--danger);
}
.admin-table__number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
}
.admin-table__customer,
.admin-table__sub {
  display: block;
}
.admin-table__customer {
  font-weight: 600;
}
.admin-table__sub {
  font-size: 0.8rem;
}
.admin-table__items {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stat--link {
  color: inherit;
}
.stat--link:hover {
  background: var(--surface-2);
  text-decoration: none;
  color: inherit;
}
.stat--warning .stat__value {
  color: var(--danger);
}
.admin-actions {
  display: grid;
  gap: 8px;
}
.admin-actions__help {
  font-size: 0.85rem;
  margin: 4px 0 0;
}
.admin-note textarea {
  width: 100%;
  resize: vertical;
}
.admin-back {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

/* ---------- Jalon 10 : prolongations, commentaire client, accès direct par numéro ---------- */
.admin-nav__search {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.admin-nav__search input[type="search"] {
  width: 170px;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--foreground);
  font: inherit;
  font-size: 0.88rem;
}
.admin-toolbar__hint {
  margin: -6px 0 0;
  font-size: 0.82rem;
}
.admin-table__flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.badge--note {
  background: var(--promo-soft);
  color: var(--promo);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.badge--note .icon {
  width: 12px;
  height: 12px;
}
.badge--extended {
  background: var(--brand-100);
  color: var(--brand-800);
}
.customer-note {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--promo-soft);
  border-left: 4px solid var(--promo);
  border-radius: var(--radius);
}
.customer-note h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--promo);
  margin: 0 0 6px;
}
.customer-note__text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 1rem;
}
.customer-note__meta {
  margin: 6px 0 0;
  font-size: 0.8rem;
}
.reservation-page__subtitle {
  font-size: 1.05rem;
  margin: 20px 0 10px;
}
.extend-form .field {
  display: grid;
  gap: 4px;
}
.extend-form .field > span {
  font-size: 0.85rem;
  font-weight: 600;
}
.extend-form__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.extend-form__presets .chip {
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
}
.extend-form__preview {
  margin: 0;
  font-size: 0.88rem;
}
.note-form textarea {
  width: 100%;
  resize: vertical;
}
.note-form__count {
  font-size: 0.8rem;
  text-align: right;
  margin: 0;
}
.note-form__frozen {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: var(--radius);
  margin: 0 0 4px;
}
.reservation-card__extended {
  margin: -4px 0 8px;
  font-size: 0.85rem;
}
.hours-editor__ranges {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-width: 0;
}
.hours-editor__row:has(.hours-editor__ranges) {
  align-items: start;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.hours-editor__row:has(.hours-editor__ranges) .hours-editor__day,
.hours-editor__row:has(.hours-editor__ranges) .check {
  padding-top: 6px;
}
.hours-editor__range {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 0.88rem;
}
.hours-editor__range input[type="time"] {
  font: inherit;
  font-size: 0.88rem;
  padding: 4px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--foreground);
}
.hours-editor__range .link-button,
.hours-editor__ranges .link-button {
  font-size: 0.82rem;
}
.hours-editor__row--closed .hours-editor__ranges {
  opacity: 0.5;
}
.closed-dates textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Administration : inventaire (jalon 4) ---------- */
.stack {
  display: grid;
  gap: 16px;
  align-content: start;
}
.link-button {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  color: var(--link);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-button:hover {
  color: var(--link-hover);
}
.link-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  text-decoration: none;
}
.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.inline-form label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}
.inline-form input:not([type="checkbox"]):not([type="color"]),
.inline-form select,
.assign-form input,
.assign-form select {
  padding: 6px 10px;
  font-size: 0.9rem;
}
.inline-form input[type="color"] {
  width: 36px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: none;
}
.stat__sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.dashboard-cols {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 960px) {
  .dashboard-cols {
    grid-template-columns: 3fr 2fr;
  }
}
.admin-log {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}
.admin-log li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.admin-log li:last-child {
  border-bottom: none;
}
.admin-log__when {
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

/* Import */
.import-wizard {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
}
.import-step {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.import-step--done {
  border-color: var(--success);
}
.import-step h2,
.import-step__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.import-step__title {
  margin-top: 24px;
}
.import-step h3 {
  font-size: 0.95rem;
  margin: 18px 0 8px;
}
.import-step__num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--brand-800);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}
.import-step--done .import-step__num {
  background: var(--success);
}
.import-drop {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.import-drop p {
  margin: 0;
  font-size: 0.9rem;
  max-width: 70ch;
}
.import-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0;
}
.progress {
  position: relative;
  width: 100%;
  height: 28px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-600), var(--brand));
  transition: width 0.4s ease;
}
.progress__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--foreground);
  mix-blend-mode: multiply;
}

.import-options {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  border: none;
}
.import-options:disabled {
  opacity: 0.7;
}
.choice {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
}
.choice:has(input:checked) {
  border-color: var(--brand-600);
  background: var(--brand-50);
}
.choice input {
  margin: 3px 0 0;
  accent-color: var(--brand-600);
}
.choice > span {
  display: grid;
  gap: 2px;
}
.choice .muted {
  font-size: 0.86rem;
  font-weight: 400;
}
.import-suboptions {
  display: grid;
  gap: 8px;
  padding: 10px 12px 12px;
  margin-left: 30px;
  border-left: 3px solid var(--border-strong);
}
.import-suboptions__title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}
.import-counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}
.import-counters li {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.import-counters li.is-error {
  background: var(--danger-soft);
  color: var(--danger);
}
.import-counters li.is-warning {
  background: var(--warning-soft);
  color: var(--warning);
}
.import-counters__value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.import-counters__label {
  font-size: 0.8rem;
  color: var(--muted);
}
.import-counters li.is-error .import-counters__label,
.import-counters li.is-warning .import-counters__label {
  color: inherit;
}
.import-errors {
  margin: 12px 0;
  font-size: 0.9rem;
}
.import-errors summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--danger);
}
.import-errors ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.confirm-box label {
  max-width: 320px;
  font-weight: 600;
}
.import-detail {
  display: grid;
  gap: 24px;
}

/* Produits */
.admin-filters {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.admin-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}
.admin-filters__row label {
  display: block;
}
.admin-filters__row select {
  padding: 8px 32px 8px 10px;
  font-size: 0.9rem;
  max-width: 100%;
}
.admin-filters__row--checks {
  gap: 4px 18px;
}
.admin-filters .admin-toolbar__search {
  flex: 1 1 260px;
  max-width: none;
}
.admin-filters p {
  margin: 4px 0 0;
  font-size: 0.9rem;
}
.catalog__count {
  margin: 0 0 10px;
  font-size: 0.92rem;
}
.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 12px;
  padding: 10px 14px;
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.bulk-bar__scope {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
}
.bulk-bar select {
  padding: 7px 32px 7px 10px;
  font-size: 0.9rem;
}
.bulk-bar p {
  margin: 0;
  flex-basis: 100%;
}
.bulk-bar__discount {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.bulk-bar__discount input {
  padding: 7px 10px;
  font-size: 0.9rem;
}
.bulk-bar__discount input[type="text"] {
  width: 5.5em;
}
.products-table table td {
  vertical-align: middle;
}
.products-table tr.is-selected td {
  background: var(--brand-50);
}
.products-table input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--brand-600);
}
.products-table__product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}
.products-table__thumb {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--border-strong);
}
.products-table__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.products-table__text {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.products-table__title {
  font-weight: 600;
  color: var(--foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.products-table__flags {
  display: grid;
  gap: 4px;
  justify-items: start;
}
.products-table__flags .badge {
  font-size: 0.62rem;
  white-space: nowrap;
}

.product-admin__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.product-admin__head h1 {
  font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem);
}
.product-admin__status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.product-admin__layout {
  display: grid;
  gap: 20px;
  align-items: start;
}
@media (min-width: 1000px) {
  .product-admin__layout {
    grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr);
  }
}
.product-admin .card {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
}
.product-admin .card h2 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.product-admin .card > .muted {
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.product-admin__facts {
  margin: 8px 0 0;
  font-size: 0.9rem;
}
.product-admin__facts code {
  overflow-wrap: anywhere;
}
form.product-form {
  max-width: none;
  gap: 16px;
}
.field {
  display: grid;
  gap: 4px;
}
.field > label {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.field input[type="text"],
.field textarea {
  width: 100%;
}
.field textarea {
  resize: vertical;
  line-height: 1.5;
}
.field__hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.field--row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
}
.field--row .check {
  padding-left: 0;
}
.revert {
  display: inline;
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}
.image-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.image-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-sm);
}
.image-card__index {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.image-card__actions {
  display: flex;
  gap: 4px;
}
.image-card__actions .icon-button {
  width: 32px;
  height: 32px;
  font-size: 1rem;
}
.image-card__remove:hover {
  border-color: var(--danger);
  color: var(--danger);
}
.image-manager__add {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.image-manager__add .button.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Familles */
.assign-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.family-universes {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}
.family-universe {
  border: 1px solid var(--border);
  border-left: 4px solid var(--universe-color, var(--brand));
  border-radius: var(--radius);
  background: var(--surface);
}
.family-universe > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}
.family-universe > summary::-webkit-details-marker {
  display: none;
}
.family-universe__dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--universe-color, var(--brand));
}
.family-universe__body {
  padding: 4px 16px 16px;
  border-top: 1px solid var(--border);
}
.family-universe__editor {
  margin: 8px 0 12px;
}
.family-universe__editor form {
  margin-top: 8px;
}
.family-platforms {
  display: grid;
  gap: 8px;
}
.family-platform {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.family-platform__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  font-size: 0.95rem;
}
.family-platform__editor {
  display: grid;
  gap: 10px;
  margin: 10px 0 4px;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: var(--radius-sm);
}
.family-aliases {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 8px 0 0;
  font-size: 0.86rem;
}
.family-aliases__unused {
  flex-basis: 100%;
  font-size: 0.8rem;
}
.family-new {
  margin-top: 12px;
}

@media (max-width: 640px) {
  .import-step {
    padding: 16px;
  }
  .admin-log li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .admin__bar {
    flex-wrap: wrap;
  }
}

/* ---------- Jalon 5 : identité, réglages, textes, comptes ---------- */
.brand-logo {
  display: block;
  max-width: 220px;
  object-fit: contain;
}
.logo--brand {
  color: var(--brand-800);
}
.brand-logo-auto .brand-logo--dark {
  display: none;
}

.auth-card__logo {
  display: flex;
  justify-content: center;
  margin: 0 0 16px;
}
.site-footer__hours {
  display: block;
  font-size: 0.86rem;
  opacity: 0.9;
}
.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 10px 0 0;
  font-size: 0.86rem;
}
a.placeholder:hover {
  text-decoration: none;
  filter: brightness(0.95);
}
.shop-address {
  font-style: normal;
  margin: 8px 0;
}
.shop-hours {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2px 16px;
  margin: 8px 0 0;
}
.shop-hours > div {
  display: contents;
}
.shop-hours dt {
  font-weight: 600;
}
.shop-hours dd {
  margin: 0;
}
.shop-hours--compact {
  font-size: 0.88rem;
}
.legal {
  max-width: 76ch;
}
.legal h2 {
  margin-top: 1.4em;
  font-size: 1.25rem;
}
.legal h3 {
  margin-top: 1.1em;
}
.legal__facts {
  max-width: 76ch;
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.legal__facts h2 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.legal__facts dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 0;
}
.legal__facts dt {
  color: var(--muted);
}
.legal__facts dd {
  margin: 0;
}

/* Mon compte */
.account-grid {
  display: grid;
  gap: 16px;
}
.account-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.account-card h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.account-card form.stack {
  max-width: 420px;
}
.account-card--danger {
  border-color: color-mix(in srgb, var(--danger) 40%, var(--border));
}
@media (min-width: 900px) {
  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-card--danger {
    grid-column: 1 / -1;
  }
}

/* Navigation admin : groupes déroulants */
.admin-nav ul {
  align-items: center;
}
.admin-nav__group {
  position: relative;
}
.admin-nav__group summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}
.admin-nav__group summary::-webkit-details-marker {
  display: none;
}
.admin-nav__group summary .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.admin-nav__group summary:hover,
.admin-nav__group details[open] > summary {
  background: var(--surface-2);
}
.admin-nav__group summary[aria-current="true"] {
  background: var(--brand-100);
  color: var(--brand-800);
}
.admin-nav__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  display: grid !important;
  min-width: 180px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.admin-nav__menu a {
  display: block;
  border-radius: var(--radius-sm);
}
.admin-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.admin-shortcuts a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--foreground);
  font-size: 0.88rem;
  font-weight: 600;
}
.admin-shortcuts a:hover {
  text-decoration: none;
  border-color: var(--brand-600);
  color: var(--brand-800);
}

/* Réglages */
.settings__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.settings__form {
  max-width: none;
  gap: 20px;
}
.settings__section {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.settings__section h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.settings__grid {
  display: grid;
  gap: 14px 20px;
  margin-top: 10px;
}
.settings__grid .field input:not([type="checkbox"]),
.settings__grid .field textarea {
  width: 100%;
}
@media (min-width: 760px) {
  .settings__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .settings__grid--full {
    grid-column: 1 / -1;
  }
}
.settings__save {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  background: var(--background);
  border-top: 1px solid var(--border);
}
.field__link {
  font-weight: 500;
  font-size: 0.85rem;
}
.hours-editor {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.hours-editor__row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.hours-editor__row input[type="text"] {
  width: 100%;
}
.hours-editor__row input:disabled {
  opacity: 0.5;
}
.hours-editor__day {
  font-weight: 600;
  font-size: 0.92rem;
}
.rich-editor {
  display: grid;
  gap: 12px;
}
.rich-editor textarea {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
}
.rich-editor__preview {
  padding: 14px 18px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--background);
  max-height: 420px;
  overflow: auto;
  font-size: 0.92rem;
}
.rich-editor__preview h2 {
  font-size: 1.1rem;
  margin-top: 0.8em;
}
@media (min-width: 1024px) {
  .rich-editor {
    grid-template-columns: 1fr 1fr;
  }
}
.color-editor {
  display: grid;
  gap: 16px;
  margin-top: 10px;
}
.color-editor__inputs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.color-editor__inputs input[type="color"] {
  width: 48px;
  height: 42px;
  padding: 2px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}
.color-editor__inputs input[type="text"] {
  width: 120px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.color-preview {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
}
.color-preview__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.9rem;
}
.color-preview__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.color-preview__swatch {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}
.color-preview__swatch small {
  font-weight: 500;
  opacity: 0.85;
}
.color-preview__swatch--light {
  color: #10202e;
}
.brand-slots {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.brand-slot {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.brand-slot__preview {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 10px;
  border-radius: var(--radius-sm);
}
.brand-slot__preview--brand {
  background: var(--brand);
  color: #fff;
}
.brand-slot__preview--light {
  background: #fff;
  color: var(--brand-800);
  border: 1px solid var(--border);
}
.brand-slot__preview--dark {
  background: #0d141b;
  color: #fff;
}
.brand-slot__default {
  font-size: 0.78rem;
  opacity: 0.8;
  text-align: center;
}
.brand-slot__body strong {
  display: block;
  font-size: 0.95rem;
}
.brand-slot .button input[type="file"] {
  display: none;
}
@media (max-width: 640px) {
  .brand-slot {
    grid-template-columns: 1fr;
  }
  .hours-editor__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }
}

/* Icônes du menu (admin, jalon 8) */
.icon-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.icon-row {
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
}
.icon-row.is-modified {
  border-left-color: var(--brand-600);
}
.icon-row__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-row__preview {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--brand-800);
}
.icon-row__text {
  flex: 1 1 auto;
  min-width: 0;
}
.icon-row__text p {
  margin: 2px 0 0;
}
.icon-picker {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.icon-picker__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.icon-picker__opt {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--foreground);
  cursor: pointer;
}
.icon-picker__opt svg {
  width: 100%;
  height: 100%;
}
.icon-picker__opt:hover {
  border-color: var(--brand-600);
  color: var(--brand-800);
}
.icon-picker__opt.is-selected {
  border-color: var(--brand-700);
  background: var(--brand-50);
  color: var(--brand-800);
  box-shadow: 0 0 0 2px var(--brand-50);
}
.icon-picker__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.icon-picker__actions .button input[type="file"] {
  display: none;
}

/* Textes */
.text-group__title {
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.text-list {
  display: grid;
  gap: 8px;
}
.text-row {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
}
.text-row.is-modified {
  border-left-color: var(--brand-600);
}
.text-row__head p {
  margin: 2px 0 0;
}
.text-row__context {
  color: var(--brand-700);
}
.text-row__value {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  margin-top: 8px;
  font-size: 0.95rem;
}
.text-row__value > span {
  flex: 1 1 320px;
  white-space: pre-wrap;
}
.text-row__form {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.text-row__form input[type="text"],
.text-row__form textarea {
  width: 100%;
}
.admin-toolbar .check {
  white-space: nowrap;
}

/* Comptes */
.user-actions {
  display: grid;
  gap: 16px;
}
.user-actions form {
  display: grid;
  gap: 6px;
}
.user-actions__link code {
  display: block;
  padding: 8px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  word-break: break-all;
  font-size: 0.78rem;
  user-select: all;
}
.user-actions__danger {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

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

/* ---------- Cartes Pokémon (jalon 6) : badge d'état, échelle, blocs, méga-menu ---------- */
.badge--card {
  background: var(--brand-100);
  color: var(--brand-800);
  text-transform: none;
  letter-spacing: 0;
}
.chip__count {
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.product__condition {
  margin: 4px 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.product__condition p {
  margin: 0;
}
.product__scale {
  margin-top: 6px;
  font-size: 0.9rem;
}
.product__scale > summary {
  cursor: pointer;
  color: var(--brand-800);
  font-weight: 600;
}
.condition-scale {
  display: grid;
  gap: 4px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: scale;
}
.condition-scale__item > a,
.condition-scale__item > span {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 4px 12px;
  align-items: baseline;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  color: var(--foreground);
}
.condition-scale__item > a:hover {
  background: var(--brand-50);
  text-decoration: none;
}
.condition-scale__item.is-current > a,
.condition-scale__item.is-current > span {
  border-color: var(--brand-600);
  background: var(--brand-50);
}
.condition-scale__label {
  font-weight: 700;
}
.condition-scale__desc {
  color: var(--muted);
  font-size: 0.86rem;
}
.filters__code {
  font-size: 0.72rem;
  color: var(--muted);
}

.block-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.block-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--universe-color, var(--brand));
  border-radius: var(--radius);
  background: var(--surface);
}
.block-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.block-card__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--foreground);
}
.block-card__code {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 26px;
  padding: 0 6px;
  border-radius: 7px;
  background: var(--universe-color, var(--brand-700));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}
.block-card__count {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}
.block-card__extensions {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1px;
}
.block-card__extensions a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  color: var(--foreground);
  font-size: 0.92rem;
}
.block-card__extensions a:hover {
  background: var(--brand-50);
  color: var(--brand-800);
  text-decoration: none;
}
.block-card__extensions .count {
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.block-card__extensions .more {
  color: var(--brand-800);
  font-weight: 600;
}

.mega__blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mega .mega__block-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--foreground);
  font-weight: 800;
  font-size: 0.93rem;
}
.mega .mega__block-name:hover {
  background: var(--brand-50);
  color: var(--brand-800);
  text-decoration: none;
}
.mega__extensions {
  margin: 0;
  padding: 0 0 0 4px;
  list-style: none;
  display: grid;
  gap: 1px;
}
.mega .mega__extensions a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  color: var(--foreground);
  font-size: 0.88rem;
}
.mega .mega__extensions a:hover {
  background: var(--brand-50);
  color: var(--brand-800);
  text-decoration: none;
}
.mega .mega__more {
  color: var(--brand-800);
  font-weight: 600;
}

/* Extension Pokémon : icône (symbole du set) + nom + trigramme officiel (jalon 7) — compact, rien ne casse sans eux */
.ext-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.ext-mark__icon {
  flex: none;
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.ext-mark__name {
  min-width: 0;
}
.ext-mark__trigram,
abbr.ext-mark__trigram {
  flex: none;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2, var(--surface));
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-decoration: none;
  cursor: default;
}
.mega .mega__extensions a.mega__ext .ext-mark {
  flex: 1 1 auto;
  min-width: 0;
}
.mega .mega__extensions a.mega__ext .ext-mark__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mega .mega__extensions a.mega__ext .ext-mark__icon {
  width: 14px;
  height: 14px;
}
.platform-card__mark--symbol {
  background: var(--surface);
  border: 1px solid var(--border);
}
.platform-card__mark--symbol img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.platform-card__name .ext-mark__trigram {
  margin-left: 6px;
  vertical-align: middle;
}
.banner__title-with-symbol {
  display: flex;
  align-items: center;
  gap: 12px;
}
.banner__symbol {
  flex: none;
  width: 36px;
  height: 36px;
  object-fit: contain;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}
.pokemon-symbol-preview {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}
.pokemon-tcgdex-table .status--ok {
  color: var(--success, #15803d);
}
.pokemon-tcgdex-table .status--warn {
  color: var(--warning, #b45309);
}

/* Admin : cartes Pokémon */
.pokemon-ext-form {
  align-items: flex-start;
}
.pokemon-ext-form__keywords {
  flex-basis: 100%;
  display: grid;
  gap: 4px;
  font-size: 0.86rem;
  color: var(--muted);
}
.pokemon-ext-form__keywords textarea {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
}
.pokemon-conditions input {
  width: 100%;
}
.pokemon-conditions__order {
  display: inline-flex;
  gap: 6px;
}
.pokemon-samples {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
}
.pokemon-samples ul {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 0.88rem;
}
.pokemon-samples__note {
  padding: 8px 14px 12px;
}
.pokemon-row-assign select {
  max-width: 180px;
}
.pokemon-cards-table .badge {
  margin-left: 6px;
}

/* ---------- Jalon 11 : rareté des cartes, photos et description de l'état ---------- */
.badge--rarity {
  background: #fef3c7;
  color: #92400e;
  text-transform: none;
  letter-spacing: 0;
}

.condition-note {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.reservation-items__condition {
  display: grid;
  gap: 2px;
  margin-top: 4px;
  font-size: 0.82rem;
}
.condition-gallery {
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.condition-gallery__title {
  margin: 0 0 4px;
  font-size: 1.1rem;
}
.condition-gallery__hint {
  margin: 0 0 12px;
  font-size: 0.9rem;
}
.condition-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.condition-gallery__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: zoom-in;
  overflow: hidden;
}
.condition-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.condition-gallery__thumb:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 2px;
}
.condition-gallery__caption {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}
.condition-gallery__dialog {
  max-width: min(96vw, 1100px);
  width: auto;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--foreground);
}
.condition-gallery__dialog::backdrop {
  background: rgba(10, 20, 30, 0.75);
}
.condition-gallery__dialog-body {
  display: grid;
  gap: 8px;
  padding: 12px;
}
.condition-gallery__dialog-body img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.condition-gallery__dialog-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin: 0;
}
.condition-gallery__dialog-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.condition-photos .image-card {
  display: grid;
  gap: 4px;
}
.condition-photo__caption {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0 4px;
}
.condition-photo__caption input {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
}

/* ---------- Jalon 11 C : réductions automatiques ---------- */
.badge--rule {
  background: #dcfce7;
  color: #166534;
  text-transform: none;
  letter-spacing: 0;
}

.cart-summary__rule {
  display: contents;
}
.cart-line__rule {
  display: block;
  font-size: 0.85rem;
}
.reservation-items__rule {
  display: block;
  font-size: 0.82rem;
}
.promo-rules .admin-table td {
  vertical-align: top;
}
.promo-form fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 0 0 12px;
}
.promo-form legend {
  font-weight: 600;
  padding: 0 4px;
}
.promo-form .check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.promo-form select[multiple] {
  min-height: 7em;
  width: 100%;
}
.promo-sim pre {
  white-space: pre-wrap;
}
.promo-box {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}
.promo-box p {
  margin: 0;
}
.promo-box input {
  flex: 1;
  min-width: 0;
  text-transform: uppercase;
}
