/* ==========================================================================
   NISHMAN — mini-site cartes de visite + catalogue
   Direction : clair, dynamique, énergique. Inspiration Apple (rigueur,
   espace, mouvement fluide) + esthétique DTC moderne façon Ciao/Squeezie
   (couleurs vives, dégradés chauds, typographie bold, micro-interactions).
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-soft-2: #ebebee;
  --ink: #0e0e0f;
  --ink-soft: #6e6e73;
  --ink-faint: #a4a4a9;

  --gold: #ff8a00;
  --gold-deep: #e07200;
  --gradient: linear-gradient(135deg, #ffb340 0%, #ff8a00 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255,138,0,0.10), rgba(255,138,0,0.04));

  --whatsapp: #25d366;
  --line: rgba(10, 10, 10, 0.09);
  --line-strong: rgba(10, 10, 10, 0.16);

  --shadow-sm: 0 2px 10px -4px rgba(10, 10, 10, 0.12);
  --shadow-md: 0 16px 40px -16px rgba(10, 10, 10, 0.22);
  --shadow-lg: 0 24px 60px -20px rgba(10, 10, 10, 0.28);

  --font-display: "Space Grotesk", "Manrope", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px 48px;
  position: relative;
  overflow-x: clip;   /* « clip » n'ouvre pas de conteneur de défilement */
}

/* Halo de couleur en fond de page, animé très doucement */
body::before {
  content: "";
  position: fixed;
  top: -20%;
  right: -15%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: var(--gradient-soft);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: drift 16s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-30px, 30px) scale(1.08); }
}

/* ---------- Carte (pages cartes de contact + accueil) ---------- */

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 30px 30px;
  box-shadow: var(--shadow-lg);
  animation: card-rise 0.6s var(--ease) both;
}

@keyframes card-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.logo {
  display: block;
  width: 170px;
  max-width: 62%;
  height: auto;
  margin: 0 auto 20px;
  animation: logo-in 0.7s 0.1s var(--ease) both;
}

@keyframes logo-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.eyebrow {
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin: 0 0 22px;
}

.hairline {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0 0 22px;
}

/* ---------- Bloc commercial ---------- */

.agent-block { text-align: center; margin-bottom: 24px; }

.agent-role {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin: 0 0 6px;
}

.agent-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
}

.agent-bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 32ch;
}

/* ---------- Liste de contact (style pilule) ---------- */

.label-list { list-style: none; margin: 0 0 6px; padding: 0; }
.label-list li { margin-bottom: 10px; }
.label-list li:last-child { margin-bottom: 0; }

.label-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}

.label-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--line-strong);
}

.label-row:active { transform: translateY(0) scale(0.98); }

.swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--gold);
}

.swatch-whatsapp { background: var(--whatsapp); }

.label-row .row-text { flex: 1; }

.row-sub {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 1px;
}

.chevron { color: var(--ink-faint); font-size: 16px; }

.label-row.primary {
  background: var(--gradient);
  color: #0a0a0a;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}

.label-row.primary .row-sub { color: rgba(28, 16, 2, 0.7); }
.label-row.primary .chevron { color: #0a0a0a; }
.label-row.primary .swatch { background: #0a0a0a; opacity: 0.55; }
.label-row.primary:hover { transform: translateY(-2px) scale(1.01); box-shadow: var(--shadow-md); }

/* ---------- Pied de carte ---------- */

.footer-note {
  text-align: center;
  margin-top: 22px;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}

/* ---------- Sélecteur (accueil / URL inconnue) ---------- */

.fallback { text-align: center; padding: 10px 0 6px; }
.fallback p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 18px; }

.badge {
  display: inline-block;
  margin: 0 auto 18px;
  padding: 7px 16px;
  background: var(--gradient-soft);
  border: 1px solid rgba(255, 138, 0, 0.3);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.badge-wrap { text-align: center; }

.home-title {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
}

.home-text {
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 auto 26px;
  max-width: 34ch;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 10px;
  text-align: center;
  font-weight: 700;
}

/* ==========================================================================
   CATALOGUE PRODUITS — page /produits
   ========================================================================== */

body.catalog-body {
  display: block;
  padding: 0;
  align-items: initial;
  /* Pas de hauteur en unités d'écran ici : sur iOS, elles se recalculent
     quand la barre d'adresse se replie et provoquent des reflows en plein
     défilement. La page est longue, une hauteur minimale est inutile. */
  min-height: 0;
}

body.catalog-body::before { display: none; }

.catalog-shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Barre de recherche sticky ---------- */

.search-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0 12px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.search-sticky.scrolled { border-bottom-color: var(--line); }

.search-input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 20px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.search-input::placeholder { color: var(--ink-faint); }
.search-input:focus { border-color: var(--gold); background: var(--bg); }

.result-count {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin: 16px 0 14px;
  font-weight: 600;
}

/* ---------- Grille produits ---------- */

.product-grid {
  display: grid;
  /* minmax(0, 1fr) : le contenu ne peut JAMAIS élargir une colonne —
     toutes les colonnes restent strictement identiques */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 700px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 1025px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}

.product-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
  opacity: 0;
  transform: translateY(14px);
}

.product-card.in-view {
  animation: card-pop 0.5s var(--ease) forwards;
}

@keyframes card-pop {
  to { opacity: 1; transform: translateY(0); }
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.product-image-wrap {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.22s ease;
}

.product-card:hover .product-image-wrap { background: var(--bg-soft-2); }

.product-image-wrap img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  transition: transform 0.3s var(--ease);
}

.product-card:hover .product-image-wrap img { transform: scale(1.06); }

.product-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 5px;
  /* une seule ligne, toujours : hauteur identique sur toutes les cartes */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 5px;
  overflow-wrap: anywhere;
  /* exactement 2 lignes réservées : rangées parfaitement alignées */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.3em);
}

.product-vol { font-size: 11px; color: var(--ink-faint); margin: 0 0 10px; min-height: 14px; }

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.product-price { font-size: 14.5px; font-weight: 700; color: var(--ink); }

.product-price .vat-note {
  display: block;
  font-size: 9px;
  font-weight: 500;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.add-btn {
  background: var(--gradient);
  color: #0a0a0a;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease);
}

.add-btn:hover { transform: scale(1.1) rotate(90deg); }
.add-btn:active { transform: scale(0.92); }

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  border-radius: 999px;
  padding: 5px 8px;
}

.qty-stepper button {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.qty-stepper button:active { transform: scale(0.85); }

.qty-stepper span {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  min-width: 14px;
  text-align: center;
}

.no-results { text-align: center; color: var(--ink-soft); padding: 70px 0; font-size: 14px; }

/* ---------- Barre flottante de sélection ---------- */

.float-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(0);
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 15px 26px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  border: none;
  z-index: 50;
  animation: bar-in 0.4s var(--ease) both;
}

.float-bar[hidden] { display: none; }

.float-bar .fb-count {
  background: var(--gradient);
  color: #0a0a0a;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12.5px;
}

@keyframes bar-in {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---------- Tiroir de sélection ---------- */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: overlay-in 0.25s ease both;
}

@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }

.drawer-overlay[hidden] { display: none; }

.drawer {
  background: var(--bg);
  border-radius: 26px 26px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 26px 22px 30px;
  animation: drawer-up 0.35s var(--ease) both;
}

@keyframes drawer-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.drawer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  margin: 0 0 16px;
}

.drawer-close {
  float: right;
  background: var(--bg-soft);
  border: none;
  color: var(--ink-soft);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.drawer-item img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 4px;
}

.drawer-item-name { flex: 1; font-size: 13px; color: var(--ink); font-weight: 600; }

.drawer-empty { text-align: center; color: var(--ink-soft); padding: 30px 0; font-size: 13px; }

.agent-pick-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin: 18px 0 10px;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- Fiche produit détaillée ---------- */

.product-card { cursor: pointer; }

.detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: overlay-in 0.25s ease both;
}

.detail-overlay[hidden] { display: none; }

.detail-sheet {
  background: var(--bg);
  border-radius: 26px 26px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 24px 30px;
  animation: drawer-up 0.35s var(--ease) both;
}

.detail-close {
  float: right;
  background: var(--bg-soft);
  border: none;
  color: var(--ink-soft);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 19px;
  cursor: pointer;
}

.detail-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 320px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.detail-image img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.detail-cat {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin: 0 0 6px;
}

.detail-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--ink);
}

.detail-vol { font-size: 12.5px; color: var(--ink-faint); margin: 0 0 14px; }

.detail-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.detail-tip {
  background: var(--gradient-soft);
  border: 1px solid rgba(255, 138, 0, 0.22);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.detail-tip strong {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  margin-bottom: 4px;
}

.detail-meta {
  display: flex;
  gap: 18px;
  font-size: 11.5px;
  color: var(--ink-faint);
  margin: 0 0 20px;
}

.detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.detail-price { font-size: 21px; font-weight: 700; color: var(--ink); }

.detail-price .vat-note {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-add {
  background: var(--gradient);
  color: #0a0a0a;
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 14.5px;
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.detail-add:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.detail-add:active { transform: scale(0.97); }

/* ---------- Fiche produit détaillée ---------- */

.product-card { cursor: pointer; }

.product-sheet { max-width: 520px; }

.sheet-image {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.sheet-image img {
  width: 100%;
  max-width: 260px;
  height: auto;
  object-fit: contain;
}

.sheet-tagline {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin: 0 0 6px;
}

.sheet-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--ink);
}

.sheet-meta {
  font-size: 12px;
  color: var(--ink-faint);
  margin: 0 0 14px;
}

.sheet-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.sheet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.sheet-price { font-size: 19px; }

.sheet-add-btn {
  background: var(--gradient);
  color: #0a0a0a;
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.sheet-add-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.sheet-add-btn:active { transform: scale(0.97); }

/* ---------- Footer légal ---------- */

/* ---------- Responsive ---------- */

@media (max-width: 360px) {
  .card { padding: 32px 22px 24px; }
  .agent-name { font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .logo, .product-card, .float-bar, body::before { animation: none; }
  .product-card { opacity: 1; transform: none; }
}

/* ==========================================================================
   SÉLECTEUR DE CATÉGORIES — bouton + panneau (remplace le scroll horizontal)
   ========================================================================== */

.filter-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.filter-row .search-input { flex: 1; min-width: 0; }

.cat-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 46vw;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cat-btn:hover { border-color: var(--gold); }

.cat-btn.filtered {
  border-color: transparent;
  background: var(--gradient);
  color: #0a0a0a;
  box-shadow: var(--shadow-sm);
}

.cat-btn-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-btn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.cat-btn.filtered .cat-btn-dot { background: #0a0a0a; }

.cat-btn-chevron { font-size: 10px; opacity: 0.6; flex-shrink: 0; }

.cat-overlay { align-items: center; justify-content: center; }

.cat-panel {
  width: min(560px, 92vw);
  max-height: 82vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  animation: cat-pop 0.28s var(--ease);
}

@keyframes cat-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cat-panel-head .drawer-title { margin: 0; }
.cat-panel-head .drawer-close { position: static; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.cat-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  padding: 14px 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: all 0.16s var(--ease);
}

.cat-cell:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.cat-cell.active {
  background: var(--gradient);
  border-color: transparent;
  color: #0a0a0a;
  box-shadow: var(--shadow-sm);
}

.cat-cell-count {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-faint);
  background: var(--bg);
  border-radius: 999px;
  padding: 3px 8px;
}

.cat-cell.active .cat-cell-count {
  color: #0a0a0a;
  background: rgba(255, 255, 255, 0.55);
}

.cat-cell.wide { grid-column: 1 / -1; }

@media (max-width: 430px) {
  .cat-grid { grid-template-columns: 1fr; }
}

/* Respect des préférences système : on coupe le mouvement si demandé */
@media (prefers-reduced-motion: reduce) {
}

/* ==========================================================================
   ÉCRAN D'ACCUEIL — noir, logo orange, cinématique de chargement,
   puis feuille catalogue qui monte en 3D par-dessus au scroll.
   ========================================================================== */

body.catalog-body { background: #0a0a0a; }
html {
  background: #0a0a0a;
  /* Surtout PAS d'overflow-x ici : combiné à celui du body, cela crée deux
     conteneurs de défilement imbriqués et fige le scroll sur Safari iOS. */
}

/* La piste fait 2 écrans : le 1er pour l'accueil, le 2e pour la transition. */
.intro-track {
  height: 200vh;
  height: 200svh;
  position: relative;
  z-index: 0;
}

.intro {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  background: #0a0a0a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
}

.intro-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- Cinématique du logo ---------- */

.intro-scene {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  will-change: transform, opacity;
  transform-style: preserve-3d;
}

.intro-logo {
  width: clamp(220px, 38vw, 380px);
  clip-path: inset(0 100% 0 0);
  animation: logo-reveal 1.5s var(--ease) 0.35s forwards;
}

@keyframes logo-reveal {
  from { clip-path: inset(0 100% 0 0); opacity: 0.6; }
  to   { clip-path: inset(0 -8% 0 0); opacity: 1; }
}

/* Ligne de chargement : se remplit avec le logo, puis s'efface. */
.intro-line {
  width: min(240px, 46vw);
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
  animation: line-out 0.5s ease 2s forwards;
}

.intro-line span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient);
  border-radius: inherit;
  animation: line-fill 1.5s var(--ease) 0.35s forwards;
}

@keyframes line-fill { to { width: 100%; } }
@keyframes line-out  { to { opacity: 0; transform: scaleX(0.6); } }

/* ---------- Invitation au scroll ---------- */

.intro-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  cursor: pointer;
  opacity: 0;
  animation: cue-in 0.8s ease 2.3s forwards;
}

@keyframes cue-in { to { opacity: 1; } }

.cue-track {
  width: 2px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  display: block;
}

.cue-dot {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: var(--gold);
  animation: cue-drop 1.7s var(--ease) infinite;
}

@keyframes cue-drop {
  0%   { transform: translateY(-14px); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(46px); opacity: 0; }
}

.cue-text {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s ease;
}

.intro-cue:hover .cue-text { color: var(--gold); }

/* ---------- Feuille catalogue : monte en 3D par-dessus le noir ---------- */

.catalog-sheet {
  position: relative;
  z-index: 2;
  margin-top: -100vh;   /* valeur de repli ; le script la fixe en pixels */
  background: var(--bg);
  border-radius: 34px 34px 0 0;
  box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, 0.65);
  transform-origin: top center;
  /* Surtout pas de will-change/transform ici : ces propriétés créent un
     cadre de référence qui casse la barre de recherche collante. */
  padding-top: 26px;
  padding-bottom: 0;
  /* Ne jamais rogner le contenu ici : cela romprait le comportement collant
     de la barre de recherche. Le fond de fin de page est traité plus bas. */
}

.catalog-shell { padding-top: 8px; }

/* La barre sticky doit coller sous le bord arrondi de la feuille. */
.search-sticky { border-radius: 0; }

@media (prefers-reduced-motion: reduce) {
  .intro-logo { animation: none; clip-path: inset(0 -8% 0 0); }
  .intro-line, .intro-line span, .cue-dot, .intro-cue { animation: none; }
  .intro-cue { opacity: 1; }
  .intro-track { height: 100vh; }
  .catalog-sheet { margin-top: 0; }
}

/* ---------- Monogramme de marque dans la barre sticky ---------- */

.sticky-brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.sticky-brand img {
  height: 20px;
  width: auto;
  display: block;
  opacity: 0.9;
  transition: opacity 0.18s ease;
}

.sticky-brand:hover img { opacity: 1; }

/* ---------- Retour en haut ---------- */

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: #0a0a0a;
  color: var(--gold);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}

.to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top:hover { transform: translateY(-2px); }

/* ==========================================================================
   RESPONSIVE & TACTILE — smartphone, tablette, desktop
   ========================================================================== */

html { -webkit-tap-highlight-color: transparent; }
button, .label-row, .cat-cell, .product-card { touch-action: manipulation; }

/* Zones cliquables >= 40px sur écrans tactiles */
@media (pointer: coarse) {
  .add-btn { min-width: 40px; min-height: 40px; }
  .qty-stepper button { min-width: 40px; min-height: 40px; }
  .drawer-close { min-width: 42px; min-height: 42px; }
}

/* iPhone : ne pas passer sous la barre home (encoche basse) */
.float-bar { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
.to-top { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }

/* Quand la barre de sélection est visible, la pastille remonte pour ne pas
   la chevaucher sur écran étroit */
@media (max-width: 640px) {
  body.has-float .to-top { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .float-bar { max-width: calc(100vw - 36px); }
}

@media (max-width: 480px) {
  .catalog-shell { padding-left: 14px; padding-right: 14px; }
  .search-sticky { margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
  .cat-btn { padding: 12px 13px; font-size: 12.5px; }
  .intro-logo { width: clamp(190px, 58vw, 300px); }
}

/* Grand écran : la grille respire, les tiroirs restent centrés et lisibles */
@media (min-width: 1200px) {
  .drawer, .product-sheet { max-width: 520px; border-radius: 26px; }
  .drawer-overlay { align-items: center; }
}

/* ---------- Pastilles des boutons de la carte de contact ---------- */
.swatch-instagram { background: linear-gradient(135deg, #ffb340, #ff8a00); }
.swatch-catalog { background: #0a0a0a; }
.swatch-website { background: var(--ink-soft); }

/* ==========================================================================
   THÈME SOMBRE DES CARTES DE CONTACT (QR) — body.card-dark
   Le site catalogue n'est pas concerné : ces règles ne s'appliquent
   qu'aux pages cartes (/dilhan, /guilem, /bekir et URL inconnues).
   ========================================================================== */

body.card-dark { background: #0a0a0a; }

body.card-dark .card {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
}

body.card-dark .eyebrow { color: rgba(255, 255, 255, 0.45); }
body.card-dark .hairline { background: rgba(255, 255, 255, 0.09); border: 0; height: 1px; }
body.card-dark .agent-role { color: var(--gold); }
body.card-dark .agent-name { color: #ffffff; }
body.card-dark .agent-bio { color: rgba(255, 255, 255, 0.55); }
body.card-dark .section-label { color: rgba(255, 255, 255, 0.45); }

body.card-dark .label-row {
  background: #1d1d1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

body.card-dark .label-row:hover { border-color: rgba(255, 138, 0, 0.5); }
body.card-dark .label-row .row-sub { color: rgba(255, 255, 255, 0.45); }
body.card-dark .label-row .chevron { color: rgba(255, 255, 255, 0.35); }

/* Le bouton principal (WhatsApp) garde son dégradé orange, texte noir */
body.card-dark .label-row.primary { border-color: transparent; }

body.card-dark .fallback p { color: rgba(255, 255, 255, 0.55); }
body.card-dark .footer-note { color: rgba(255, 255, 255, 0.38); }
body.card-dark .footer-note a { color: rgba(255, 255, 255, 0.55); }

/* Cartes QR : la pastille de chaque bouton en doré (liseré sombre pour
   rester lisible sur le bouton WhatsApp orange) */
body.card-dark .label-row .swatch,
body.card-dark .label-row.primary .swatch {
  background: var(--gold);
  opacity: 1;
  border: 1px solid rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   UNITÉS / CARTONS — résumé sur carte, lignes d'achat sur fiche
   ========================================================================== */

.sel-chip {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  background: var(--gradient);
  color: #0a0a0a;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.sheet-packaging {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 14px 0 0;
}

.sheet-buy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.sheet-qty-rows { display: flex; flex-direction: column; gap: 9px; }

.buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.buy-row-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.buy-add {
  border: 1px solid var(--line-strong);
  background: var(--bg);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease;
  min-height: 40px;
}

.buy-add:hover { border-color: var(--gold); }

/* ==========================================================================
   LANGUES & ACCÈS PROFESSIONNEL
   ========================================================================== */

.lang-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  border-radius: 999px;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.18s ease;
}

.lang-btn:hover { border-color: var(--gold); }

.lang-panel { width: min(300px, 86vw); display: flex; flex-direction: column; gap: 9px; }

.lang-choice {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.16s var(--ease);
}

.lang-choice:hover { border-color: var(--gold); }
.lang-choice.active { background: var(--gradient); border-color: transparent; color: #0a0a0a; }

.pro-access {
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  border-radius: 999px;
  padding: 13px 17px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.pro-access:hover { border-color: var(--ink); }

/* Une fois identifié, le bouton se fait discret */
.pro-access.unlocked {
  border-color: var(--line-strong);
  color: var(--ink-faint);
  font-weight: 600;
}

.pro-access.unlocked:hover { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }

@media (max-width: 760px) {
  .pro-access { padding: 12px 13px; font-size: 12px; }
}

@media (max-width: 480px) {
  /* Sur petit écran, la barre passe sur deux niveaux pour rester lisible */
  .filter-row { flex-wrap: wrap; }
  .filter-row .search-input { flex: 1 1 100%; order: -1; }
  .lang-btn, .cat-btn, .pro-access { flex: 1 1 auto; }
}

.price-locked {
  border: 0;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
}

.price-locked:hover { color: var(--ink); }

.access-panel { width: min(430px, 92vw); }
.access-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 16px; }

.access-form { display: flex; gap: 9px; }

.access-form input {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--bg);
  outline: none;
}

.access-form input:focus { border-color: var(--gold); }
.access-submit {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  background: var(--gradient);
  color: #0a0a0a;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 26px -10px rgba(255, 138, 0, 0.55);
  transition: transform 0.18s var(--ease), opacity 0.18s ease;
}

.access-submit:hover:not(:disabled) { transform: translateY(-1px); }
.access-submit:disabled { opacity: 0.5; cursor: default; }

.access-error { color: #c62828; font-size: 13px; font-weight: 600; margin: 12px 0 0; }
.access-nocode { font-size: 13px; color: var(--ink-soft); margin: 20px 0 10px; }

.access-agents { display: flex; flex-wrap: wrap; gap: 9px; }

.access-agent {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  background: var(--gradient);
  font-size: 13px;
  font-weight: 700;
  color: #0a0a0a;
  text-decoration: none;
  box-shadow: 0 12px 26px -10px rgba(255, 138, 0, 0.55);
  transition: transform 0.18s var(--ease);
}

.access-agent:hover { transform: translateY(-1px); }

.access-agent-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 0 0 1.5px rgba(10, 10, 10, 0.25);
}

@media (max-width: 480px) {
  .lang-btn { padding: 12px 11px; }
}

/* ---------- Validation du panier sur la fiche + total du tiroir ---------- */

.sheet-confirm {
  margin-top: 6px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 15px;
  background: var(--gradient);
  color: #0a0a0a;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(255, 138, 0, 0.5);
  transition: transform 0.18s var(--ease), opacity 0.18s ease;
}

.sheet-confirm:hover:not(:disabled) { transform: translateY(-1px); }
.sheet-confirm:disabled { opacity: 0.4; cursor: default; box-shadow: none; }

.drawer-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 14px 4px 2px;
  border-top: 1px solid var(--line-strong);
  font-size: 14px;
  color: var(--ink-soft);
}

.drawer-total strong {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Bouton d'envoi du panier : la pastille reprend le vert WhatsApp,
   comme dans la fenêtre de demande de code. Règle volontairement
   prioritaire (id + !important) pour neutraliser l'assombrissement
   hérité des boutons principaux. Les cartes QR ne sont pas concernées. */
#agent-pick-list .label-row .swatch-whatsapp,
#agent-pick-list .label-row.primary .swatch-whatsapp {
  background: var(--whatsapp) !important;
  opacity: 1 !important;
}

/* ---------- Panier : compteurs par ligne + type d'achat ---------- */

.drawer-item-kind {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-faint);
  margin-top: 2px;
}

.drawer-stepper { flex-shrink: 0; }

/* ---------- Toast de confirmation d'ajout ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(16px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #0a0a0a;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient);
  color: #0a0a0a;
  font-size: 12px;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .toast { transition: opacity 0.2s ease; transform: translateX(-50%); }
  .toast.show { transform: translateX(-50%); }
}

/* ==========================================================================
   PIED DE CARTE INFAILLIBLE — le bouton + ne peut plus être rogné
   ========================================================================== */

/* La zone de gauche (prix ou "Prix sur demande" ou badge) absorbe toute la
   contrainte de largeur ; le bouton + est intouchable. */
.product-footer > :first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.product-footer .add-btn,
.product-footer .qty-stepper {
  flex: 0 0 auto;
}

.price-locked,
.sel-chip {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  overflow: hidden;
}

.product-price .vat-note {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Très petits écrans : on compacte encore la zone prix, le + garde ses
   40px tactiles réglementaires */
@media (max-width: 380px) {
  .product-card { padding: 9px; }
  .price-locked { padding: 7px 8px; font-size: 10px; }
  .sel-chip { padding: 7px 8px; font-size: 10.5px; }
  .product-price { font-size: 13px; }
  .product-footer { gap: 6px; }
}

/* Pastille du bouton « Demander un devis » dans le panier */
.swatch-quote { background: var(--whatsapp); }
.drawer .label-row.primary .swatch-quote { background: var(--whatsapp) !important; opacity: 1 !important; }

/* ---------- Inscription professionnelle dans la fenêtre d'accès ---------- */

.access-link {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.18s ease;
}

.access-link:hover { border-color: var(--gold); }

.signup-fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.signup-field { display: flex; flex-direction: column; gap: 6px; }

.signup-field span {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.signup-field input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color 0.18s ease;
}

.signup-field input:focus { border-color: var(--gold); }
.signup-field input.invalid { border-color: #c62828; }

/* Sélecteur de pays : même pilule que les champs texte, avec un chevron discret */
.signup-field select {
  width: 100%;
  padding: 13px 40px 13px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e6e73' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.18s ease;
}

.signup-field select:focus { border-color: var(--gold); }

.signup-hint {
  font-size: 11.5px;
  color: var(--ink-faint);
  padding-left: 15px;
  line-height: 1.4;
}

.signup-btn { width: 100%; }

#access-step-sent { text-align: center; padding: 6px 0 2px; }

.sent-check {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--gradient);
  color: #0a0a0a;
  font-size: 25px;
  line-height: 52px;
  font-weight: 700;
}

#access-step-sent .access-submit { width: 100%; margin-top: 18px; }

@media (max-width: 420px) {
  }

/* ==========================================================================
   PIED DE PAGE — bande noire pleine largeur, en écho à l'écran d'accueil
   ========================================================================== */

.site-footer {
  /* Déborde la feuille blanche pour occuper toute la largeur, et la ferme :
     le noir est la dernière chose visible du site. */
  /* Placé hors du conteneur limité : occupe toute la largeur sans marge
     négative, donc aucun débordement horizontal possible sur mobile. */
  margin: 100px 0 0;
  padding: 0 20px;
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.62);
  position: relative;
  z-index: 3;
}

/* Prolonge le noir sous le pied de page, quelle que soit la hauteur
   restante de la feuille (rebond de scroll mobile compris). */
.site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 200px;
  background: #0a0a0a;
  pointer-events: none;
}

.foot-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 38px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 54px 0 40px;
  text-align: left;
}

.foot-logo {
  width: 118px;
  display: block;
  margin-bottom: 16px;
}

.foot-tag {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 16px;
  max-width: 34ch;
}

.foot-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.foot-flag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 12px;
}

.foot-head {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

.foot-line {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 10px;
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-start;
}

.foot-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.foot-btn:hover {
  border-color: var(--gold);
  background: rgba(255, 138, 0, 0.08);
}

.foot-wa:hover { border-color: var(--whatsapp); background: rgba(37, 211, 102, 0.08); }

.foot-ig-icon {
  width: 17px;
  height: 17px;
  display: block;
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity 0.18s ease;
}

.foot-ig:hover .foot-ig-icon { opacity: 1; }

.foot-mail:hover { border-color: var(--whatsapp); background: rgba(37, 211, 102, 0.08); }
.foot-tel:hover  { border-color: var(--whatsapp); background: rgba(37, 211, 102, 0.08); }
.foot-ig:hover   { border-color: #ffffff; background: rgba(255, 255, 255, 0.08); }

/* Bouton Facebook : même gabarit qu'Instagram, icône en SVG donc aucune
   image à charger, et la couleur suit celle du texte. */
.foot-fb-icon {
  width: 17px;
  height: 17px;
  display: block;
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity 0.18s ease;
}

.foot-fb:hover .foot-fb-icon { opacity: 1; }
.foot-fb:hover { border-color: #1877f2; background: rgba(24, 119, 242, 0.10); }

.foot-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.foot-bottom p {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.38);
  margin: 0;
}

@media (max-width: 1000px) {
  .foot-inner { grid-template-columns: 1fr 1fr; gap: 34px; }
  .foot-col-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .site-footer { margin-top: 60px; }
  .foot-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 0 30px;
  }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .foot-btn { width: 100%; justify-content: center; }
  .foot-links { align-items: stretch; }
}

/* Fiche produit sans accès professionnel : invitation à s'identifier */
.sheet-locked {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.sheet-unlock {
  width: 100%;
  border-color: var(--gold);
  font-size: 13.5px;
}

.sheet-unlock:hover { background: var(--gradient); border-color: transparent; color: #0a0a0a; }

/* ==========================================================================
   RESPONSIVE & MOBILE — BLOC UNIQUE, FAISANT AUTORITÉ
   Placé en fin de fichier : ces règles priment sur tout ce qui précède.
   ========================================================================== */

/* ---------- Anti-débordement, valable partout ---------- */

body { max-width: 100%; }
img { max-width: 100%; height: auto; }

.product-name, .drawer-item-name, .foot-line, .foot-tag,
.sheet-name, .sheet-desc { overflow-wrap: anywhere; }

/* ---------- Écrans tactiles : mise en page simple et fluide ---------- */

@media (pointer: coarse) {
  /* L'écran d'accueil ne se superpose plus au catalogue : empilement normal,
     défilement natif, aucun calcul pendant le scroll. */
  .intro-track { height: auto; min-height: 0; }

  .intro {
    position: relative;
    top: auto;
    /* Écran d'accueil PLEIN : on ne voit que lui à l'ouverture.
       svh = hauteur stable, non affectée par le repli de la barre Safari. */
    height: 100svh;
    min-height: 420px;
    max-height: none;
    perspective: none;
  }

  .intro-scene { transform: none !important; opacity: 1 !important; will-change: auto; }
  .intro-glow { display: none; }

  .catalog-sheet {
    margin-top: 0 !important;
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -14px 30px -16px rgba(0, 0, 0, 0.4);
    padding-top: 20px;
  }

  /* Rien qui se recalcule pendant le défilement */
  .search-sticky {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #ffffff;
  }

  .product-card { box-shadow: none; border: 1px solid var(--line); }
  .product-card:hover { transform: none; }

  /* Zones tactiles confortables */
  .add-btn, .qty-stepper button { min-width: 42px; min-height: 42px; }
  .drawer-close { min-width: 44px; min-height: 44px; }
  .buy-add, .sheet-confirm, .quote-cta { min-height: 46px; }
}

/* ---------- Tablette ---------- */

@media (max-width: 1024px) {
  .foot-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-col-brand { grid-column: 1 / -1; }
}

/* ---------- Téléphone ---------- */

@media (max-width: 620px) {
  .catalog-shell { padding-left: 16px; padding-right: 16px; }
  .search-sticky { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }

  /* La recherche occupe sa propre ligne, les 3 boutons se partagent la suivante */
  .filter-row { flex-wrap: wrap; gap: 8px; }
  .filter-row .search-input { flex: 1 1 100%; order: -1; }
  .sticky-brand { display: none; }
  .lang-btn, .cat-btn, .pro-access { flex: 1 1 0; min-width: 0; padding: 12px 10px; font-size: 12px; }
  .cat-btn { max-width: none; }
  .cat-btn-label { overflow: hidden; text-overflow: ellipsis; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { padding: 10px; }
  .product-name { font-size: 12px; }

  .foot-inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 30px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .foot-btn { width: 100%; justify-content: center; }
  .site-footer { padding: 0 16px; margin-top: 60px; }

  .cat-grid { grid-template-columns: 1fr; }
  .access-panel, .cat-panel { width: min(430px, 94vw); }
}

/* ---------- Petits téléphones ---------- */

@media (max-width: 380px) {
  .product-card { padding: 9px; }
  .product-price { font-size: 13px; }
  .price-locked { font-size: 10px; padding: 7px 8px; }
  .sel-chip { font-size: 10.5px; padding: 7px 8px; }
  .product-footer { gap: 6px; }
  .intro-logo { width: clamp(170px, 56vw, 260px); }
}

/* ---------- Barre flottante et retour haut : jamais superposés ---------- */

.float-bar { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
.to-top { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }

@media (max-width: 640px) {
  body.has-float .to-top { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .float-bar { max-width: calc(100% - 36px); }
}

/* ---------- Pied de page mobile : bloc marque centré ---------- */

@media (max-width: 620px) {
  .foot-col-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .foot-logo { margin-left: auto; margin-right: auto; }
  .foot-tag { max-width: 100%; }
  .foot-flags { justify-content: center; }
}

/* ---------- Fenêtre d'accès : lisible et utilisable sur téléphone ---------- */

@media (max-width: 620px) {
  /* La fenêtre se cale en haut : le clavier iOS ne la pousse plus hors écran */
  .cat-overlay { align-items: flex-start; padding-top: 8vh; }

  .access-panel {
    width: calc(100vw - 28px);
    max-width: none;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px 18px;
  }

  /* Champ et bouton l'un sous l'autre : plus rien ne déborde à droite */
  .access-form { flex-direction: column; gap: 10px; }
  .access-form input { width: 100%; font-size: 16px; }  /* 16px = pas de zoom auto iOS */
  .access-submit { width: 100%; }

  .signup-field input, .signup-field select { font-size: 16px; }
}

/* Le contenu de la fenêtre reste sélectionnable pour le copier-coller */
.access-panel, .access-panel * { -webkit-user-select: text; user-select: text; }

/* ---------- Squelette de chargement ---------- */

.skeleton-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
}

.sk-img {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  margin-bottom: 12px;
}

.sk-line {
  height: 10px;
  border-radius: 5px;
  background: var(--bg-soft);
  margin-bottom: 8px;
}

.sk-short { width: 45%; height: 8px; }
.sk-mid { width: 65%; }

.skeleton-card .sk-img,
.skeleton-card .sk-line { animation: sk-pulse 1.3s ease-in-out infinite; }

@keyframes sk-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-card .sk-img,
  .skeleton-card .sk-line { animation: none; }
}

/* ---------- Stock : rupture et quantités limitées ---------- */

.card-out {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-faint);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 7px 11px;
  white-space: nowrap;
}

.sheet-out {
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 0;
}

.sheet-stock {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.sheet-stock-low {
  color: var(--gold-deep);
  font-weight: 700;
}

.qty-stepper button:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Lien CGV dans le pied de page */
.foot-cgv {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.18s ease;
}

.foot-cgv:hover { color: var(--gold); }

/* ---------- Quantité saisissable au clavier ----------
   Le compteur a un fond sombre : le champ doit être blanc dessus. */

.qty-input {
  width: 40px;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;              /* lisible sur le fond noir du compteur */
  text-align: center;
  padding: 2px 0;
  border-radius: 7px;
  outline: none;
  -moz-appearance: textfield;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.qty-input:hover { background: rgba(255, 255, 255, 0.12); }

.qty-input:focus {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}

/* Sélection lisible sur fond sombre */
.qty-input::selection { background: var(--gold); color: #0a0a0a; }

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.drawer-stepper .qty-input { width: 36px; font-size: 14px; }

@media (pointer: coarse) {
  /* 16px : empêche Safari iOS de zoomer à la saisie */
  .qty-input { font-size: 16px; width: 46px; }
  .drawer-stepper .qty-input { width: 42px; font-size: 16px; }
}


/* Le bouton d'accès ne doit jamais déborder de sa pilule */
.pro-access {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .pro-access { padding: 12px 12px; font-size: 12px; }
}


/* ---------- Barre de filtres : trois pilules cohérentes ----------
   Chaque bouton porte sa pastille dorée, et son libellé est centré.
   Le chevron du sélecteur de catégories est sorti du flux pour ne pas
   décaler le mot vers la gauche. */

.pro-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cat-btn {
  position: relative;
  justify-content: center;
  padding-right: 28px;      /* place réservée au chevron */
}

.cat-btn-label {
  flex: 1;
  text-align: center;
}

.cat-btn-chevron {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Bouton « vider le panier » ---------- */

.drawer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.drawer-head .drawer-title { margin: 0; flex: 1; }

.drawer-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

/* Rouge seulement au survol : l'action est destructive, mais le bouton
   ne doit pas hurler en permanence à côté du titre. */
.drawer-clear:hover {
  color: #c62828;
  border-color: rgba(198, 40, 40, 0.5);
  background: rgba(198, 40, 40, 0.05);
}

.drawer-clear:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.drawer-clear[hidden] { display: none; }

@media (max-width: 620px) {
  .drawer-clear { min-height: 40px; padding: 8px 14px; }
}

/* Chevron du bouton de langue.
   Classe distincte de .cat-btn-chevron, qui est en position absolue :
   dans .lang-btn (sans repère de positionnement) il s'échappait vers la
   droite de la barre de filtres. Ici il reste dans le flux, à sa place. */
.lang-btn-chevron {
  position: static;
  font-size: 10px;
  opacity: 0.6;
  flex-shrink: 0;
  line-height: 1;
}

/* ---------- Seuil de commande et frais de livraison ---------- */

.ship-note {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm, 12px);
  background: rgba(255, 138, 0, 0.07);
  border: 1px solid rgba(255, 138, 0, 0.28);
}

.ship-note-main { font-size: 13px; font-weight: 700; color: var(--ink); }
.ship-note-sub { font-size: 12px; color: var(--ink-soft); }

.ship-note.ship-ok {
  background: rgba(46, 125, 50, 0.07);
  border-color: rgba(46, 125, 50, 0.3);
  font-size: 13px;
  font-weight: 700;
  color: #2e7d32;
}

/* ---------- Code d'accès affiché après l'inscription ---------- */

.code-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 18px 0 16px;
  padding: 20px 16px;
  border-radius: var(--radius-sm, 14px);
  background: rgba(255, 138, 0, 0.07);
  border: 1px solid rgba(255, 138, 0, 0.32);
}

.code-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep, #b36b00);
}

/* Chiffres à chasse fixe : un code se relève caractère par caractère,
   l'alignement évite de confondre les groupes. */
.code-value {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(22px, 7vw, 30px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  user-select: all;
  -webkit-user-select: all;
}

.code-copy {
  margin-top: 4px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.18s ease;
}

.code-copy:hover { border-color: var(--gold); }

#code-use { margin-bottom: 10px; }
.code-box[hidden], #code-use[hidden] { display: none; }

/* ---------- Produits annoncés, pas encore en stock ---------- */

.card-soon {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 138, 0, 0.10);
  border: 1px solid rgba(255, 138, 0, 0.34);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-deep, #b36b00);
  white-space: nowrap;
}

.sheet-soon {
  margin: 14px 0 0;
  padding: 13px 16px;
  border-radius: var(--radius-sm, 12px);
  background: rgba(255, 138, 0, 0.08);
  border: 1px solid rgba(255, 138, 0, 0.30);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold-deep, #b36b00);
  text-align: center;
}
