/* ═══════════════════════════════════════════════════════════════════════════
   VendsTesPieds — Design system (handoff « Marketplace Photo · Mobile v4 »)
   ---------------------------------------------------------------------------
   Mobile-first : les valeurs du handoff (390 px) sont la référence sous 640 px ;
   au-delà, les mêmes tokens s'appliquent à des conteneurs et grilles plus larges.

   Toutes les classes sont préfixées `vtp-` : les classes historiques
   (.btn-brand, .tag, .badge-*, .gradient-order…) restent définies dans
   includes/header.php pour les pages non refondues (mon-compte, admin, cgv…).
   ═════════════════════════════════════════════════════════════════════════ */

:root {
  /* Couleurs */
  --vtp-bg:            #fbf7f4;   /* fond de page          */
  --vtp-surface:       #ffffff;   /* carte / surface       */
  --vtp-ink:           #33203b;   /* texte principal       */
  --vtp-ink-2:         #6f5a7c;   /* texte secondaire      */
  --vtp-ink-3:         #a892b3;   /* atténué / placeholder */
  --vtp-line:          #ecdff0;   /* bordure carte / champ */
  --vtp-line-soft:     #f0e6ee;   /* séparateur header     */

  --vtp-rasp:          #e2447e;   /* primaire framboise    */
  --vtp-rasp-dark:     #c22b63;
  --vtp-rasp-tint:     #fbe3ed;
  --vtp-violet:        #7c5ce0;   /* secondaire violet     */
  --vtp-violet-dark:   #6a48d4;
  --vtp-violet-tint:   #efe7fd;
  --vtp-violet-line:   #e3d7f5;

  --vtp-online:        #3bc98a;
  --vtp-offline:       #c8b3d4;
  --vtp-star-bg:       #fff3d6;
  --vtp-star-ink:      #b07b12;

  --vtp-grad:          linear-gradient(100deg, #7c5ce0, #e2447e);
  --vtp-grad-wide:     linear-gradient(115deg, #7c5ce0, #e2447e);
  --vtp-grad-nav:      linear-gradient(100deg, #6a48d4, #8b46c9);
  --vtp-grad-light:    linear-gradient(100deg, #b39cf5, #f58ab4);
  --vtp-grad-avatar:   linear-gradient(135deg, #efe7fd, #fbe3ed);
  --vtp-overlay:       linear-gradient(to top, rgba(30,15,38,0.82), rgba(30,15,38,0));

  /* Ombres */
  --vtp-shadow-card:   0 6px 18px rgba(51,32,59,0.08);
  --vtp-shadow-soft:   0 4px 14px rgba(51,32,59,0.06);
  --vtp-shadow-media:  0 8px 22px rgba(51,32,59,0.12);
  --vtp-shadow-cta:    0 8px 20px rgba(226,68,126,0.35);

  /* Gabarit */
  --vtp-gutter:        20px;
  --vtp-header-h:      57px;      /* 14px + 22px icône + 14px + 1px filet */
}

@media (min-width: 768px) {
  :root { --vtp-header-h: 64px; }  /* mon-compte.php cale son aside sur top-16 */
}

/* ── Base ──────────────────────────────────────────────────────────────── */

body.vtp {
  margin: 0;
  background: var(--vtp-bg);
  color: var(--vtp-ink);
  font-family: 'Nunito Sans', 'Inter', system-ui, sans-serif;
  text-wrap: pretty;
  /* La nav basse est fixe sous 768px : on réserve sa hauteur. */
  padding-bottom: 68px;
}
@media (min-width: 768px) { body.vtp { padding-bottom: 0; } }

/* Couleur de lien par defaut. :where() met la specificite a zero pour que
   n'importe quelle classe de composant (bouton, chip, titre de carte) reprenne
   la main sans avoir a surencherir. */
:where(.vtp) a { color: var(--vtp-rasp-dark); }
:where(.vtp) a:hover { color: var(--vtp-rasp); }
.vtp ::placeholder { color: var(--vtp-ink-3); }

/* Gouttière écran : 20px mobile, conteneur centré au-delà. */
.vtp-wrap { padding-inline: var(--vtp-gutter); margin-inline: auto; max-width: 1160px; }
.vtp-wrap--narrow { max-width: 780px; }
.vtp-wrap--mid    { max-width: 960px; }

.vtp-section      { padding-block: 26px; }
.vtp-section--tight { padding-block: 18px; }
@media (min-width: 768px) { .vtp-section { padding-block: 44px; } }

/* ── Typographie ───────────────────────────────────────────────────────── */

.vtp-display,
.vtp-h1, .vtp-h2, .vtp-h3, .vtp-title, .vtp-num {
  font-family: Fredoka, 'Nunito Sans', sans-serif;
  font-weight: 600;
  color: var(--vtp-ink);
  margin: 0;
}

.vtp-h1        { font-size: 34px; line-height: 1.12; }
.vtp-h1--page  { font-size: 26px; line-height: 1.2; }
.vtp-h2        { font-size: 20px; line-height: 1.25; }
.vtp-h3        { font-size: 18px; line-height: 1.3; }
.vtp-title     { font-size: 14px; line-height: 1.3; }
.vtp-title--sm { font-size: 13px; line-height: 1.25; }

@media (min-width: 768px) {
  .vtp-h1       { font-size: 46px; }
  .vtp-h1--page { font-size: 36px; }
  .vtp-h2       { font-size: 26px; }
  .vtp-h3       { font-size: 20px; }
}

.vtp-grad-text {
  background: var(--vtp-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vtp-lead     { font-size: 15px; line-height: 1.6; color: var(--vtp-ink-2); margin: 0; }
.vtp-body     { font-size: 13.5px; line-height: 1.6; font-weight: 600; color: var(--vtp-ink-2); margin: 0; }
.vtp-body--sm { font-size: 12.5px; line-height: 1.55; font-weight: 600; color: var(--vtp-ink-2); margin: 0; }
.vtp-meta     { font-size: 12px; font-weight: 600; color: var(--vtp-ink-3); margin: 0; }
.vtp-meta--xs { font-size: 11.5px; font-weight: 700; color: var(--vtp-ink-3); margin: 0; }
.vtp-micro {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--vtp-ink-3); margin: 0;
}
@media (min-width: 768px) { .vtp-lead { font-size: 16px; } }

/* En-tête de section : titre + lien « Voir → » */
.vtp-section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; margin-bottom: 12px;
}
.vtp-section-link { font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }

/* ── Pilules & badges ──────────────────────────────────────────────────── */

.vtp-eyebrow {
  display: inline-block; background: var(--vtp-violet-tint); color: var(--vtp-violet-dark);
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.vtp-eyebrow--rasp { background: var(--vtp-rasp-tint); color: var(--vtp-rasp-dark); }

.vtp-price {
  display: inline-block; background: var(--vtp-rasp-tint); color: var(--vtp-rasp-dark);
  font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.vtp-price--sm { font-size: 12px; padding: 4px 10px; }

.vtp-tag {
  display: inline-block; background: var(--vtp-violet-tint); color: var(--vtp-violet-dark);
  font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px;
}
.vtp-tag--ghost {
  background: var(--vtp-surface); color: var(--vtp-ink-2);
  border: 1.5px solid var(--vtp-line);
}

.vtp-star {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--vtp-star-bg); color: var(--vtp-star-ink);
  font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px;
}

/* Badge posé sur une image (format de pack, statut…) */
.vtp-badge {
  display: inline-block; color: #fff; font-size: 9px; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
}
.vtp-badge--rasp  { background: var(--vtp-rasp); }
.vtp-badge--ink   { background: var(--vtp-ink); }
.vtp-badge--glass {
  background: rgba(255,255,255,0.22); backdrop-filter: blur(4px);
  font-size: 10px; letter-spacing: normal; text-transform: none; padding: 3px 9px;
}

.vtp-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 999px; display: inline-block; }
.vtp-dot--on  { background: var(--vtp-online); }
.vtp-dot--off { background: var(--vtp-offline); }

/* ── Boutons ───────────────────────────────────────────────────────────── */

.vtp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Nunito Sans', 'Inter', system-ui, sans-serif;
  font-size: 15px; font-weight: 800; line-height: 1.2;
  padding: 14px 22px; border-radius: 999px; border: 0;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.vtp-btn--block { display: flex; width: 100%; max-width: 480px; }

/* Rangée de CTA : empilés sur mobile (handoff), alignés dès 640px. */
.vtp-btn-row { display: flex; flex-direction: column; gap: 10px; }
.vtp-btn-row > .vtp-btn { width: 100%; }
@media (min-width: 640px) {
  .vtp-btn-row { flex-direction: row; flex-wrap: wrap; }
  .vtp-btn-row > .vtp-btn { width: auto; }
}
.vtp-btn--sm    { font-size: 13px; padding: 9px 16px; }
.vtp-btn--xs    { font-size: 12px; padding: 8px 14px; }

.vtp-btn--grad {
  background: var(--vtp-grad); color: #fff; box-shadow: var(--vtp-shadow-cta);
}
.vtp-btn--grad:hover { color: #fff; transform: translateY(-1px); }

.vtp-btn--ghost {
  background: var(--vtp-surface); color: var(--vtp-violet-dark);
  border: 2px solid var(--vtp-violet-line); padding: 12px 20px;
}
.vtp-btn--ghost:hover { color: var(--vtp-violet-dark); border-color: var(--vtp-violet); }

.vtp-btn--tint {
  background: var(--vtp-violet-tint); color: var(--vtp-violet-dark);
}
.vtp-btn--tint:hover { color: var(--vtp-violet-dark); background: var(--vtp-violet-line); }

.vtp-btn--tint-rasp { background: var(--vtp-rasp-tint); color: var(--vtp-rasp-dark); }
.vtp-btn--white     { background: #fff; color: var(--vtp-rasp-dark); }
.vtp-btn--white:hover { color: var(--vtp-rasp-dark); }

/* Bouton carré d'action (filtres…) */
.vtp-icon-btn {
  width: 42px; height: 42px; flex: 0 0 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--vtp-surface); border: 1.5px solid var(--vtp-line);
  border-radius: 14px; cursor: pointer; color: var(--vtp-violet-dark);
}
.vtp-icon-btn:hover { border-color: var(--vtp-violet-line); }

/* ── Chips (single select) ─────────────────────────────────────────────── */

.vtp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vtp-chip {
  display: inline-block;
  font-family: 'Nunito Sans', 'Inter', system-ui, sans-serif;
  font-size: 13px; font-weight: 800; line-height: 1.2;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: var(--vtp-surface); color: var(--vtp-ink-2);
  border: 1.5px solid var(--vtp-line); text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.vtp-chip:hover { color: var(--vtp-ink); border-color: var(--vtp-violet-line); }
.vtp-chip.is-active,
.vtp-chip[aria-pressed="true"] {
  background: var(--vtp-grad); color: #fff; border-color: transparent;
}
.vtp-chip.is-active:hover { color: #fff; }
/* Categorie sans aucun pack : visible mais attenuee, et toujours cliquable. */
.vtp-chip.is-empty { opacity: .55; }
.vtp-chip.is-empty.is-active { opacity: 1; }

/* ── Onglets ───────────────────────────────────────────────────────────── */

/* Onglets soulignés (bande blanche pleine largeur) */
.vtp-tabs {
  display: grid; background: var(--vtp-surface);
  border-top: 1px solid var(--vtp-line-soft); border-bottom: 1px solid var(--vtp-line-soft);
}
.vtp-tabs button, .vtp-tabs a {
  appearance: none; background: none; box-sizing: border-box; text-align: center;
  padding: 13px 4px; font-family: inherit; font-size: 13px; font-weight: 800;
  color: var(--vtp-ink-3); border: 0; border-bottom: 3px solid transparent;
  cursor: pointer; text-decoration: none; transition: color .15s ease, border-color .15s ease;
}
.vtp-tabs [aria-selected="true"],
.vtp-tabs [aria-current="page"] { color: var(--vtp-violet-dark); border-bottom-color: var(--vtp-violet-dark); }

/* Onglets segmentés (rail pilule) */
.vtp-seg {
  display: grid; gap: 6px; background: var(--vtp-surface);
  border: 1.5px solid var(--vtp-line); border-radius: 999px; padding: 5px;
}
.vtp-seg button, .vtp-seg label {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 800; text-align: center;
  padding: 9px 4px; border-radius: 999px; color: var(--vtp-ink-3);
  transition: background .15s ease, color .15s ease;
}
.vtp-seg [aria-selected="true"], .vtp-seg .is-active { background: var(--vtp-grad); color: #fff; }
.vtp-seg input { position: absolute; opacity: 0; pointer-events: none; }

/* ── Cartes ────────────────────────────────────────────────────────────── */

.vtp-card {
  background: var(--vtp-surface); border-radius: 18px;
  box-shadow: var(--vtp-shadow-soft); padding: 14px;
}
.vtp-card--lg   { border-radius: 20px; box-shadow: var(--vtp-shadow-card); }
.vtp-card--flat { box-shadow: none; border: 1.5px solid var(--vtp-line); }
.vtp-card--out  { border: 2px solid var(--vtp-violet-line); border-radius: 24px; padding: 22px 20px; box-shadow: none; }
.vtp-card--bare { padding: 0; overflow: hidden; }

/* Carte cliquable : légère élévation au survol */
a.vtp-card, .vtp-liftable { transition: transform .15s ease, box-shadow .15s ease; }
a.vtp-card:hover, .vtp-liftable:hover { transform: translateY(-2px); box-shadow: var(--vtp-shadow-media); }

/* Rangée « icône ronde + texte » */
.vtp-row { display: flex; gap: 12px; align-items: flex-start; }
.vtp-bubble {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}
.vtp-bubble--violet { background: var(--vtp-violet-tint); color: var(--vtp-violet-dark); }
.vtp-bubble--rasp   { background: var(--vtp-rasp-tint);   color: var(--vtp-rasp-dark); }
.vtp-bubble--grad   { background: var(--vtp-grad); color: #fff; }
.vtp-bubble--step {
  width: 32px; height: 32px; flex: 0 0 32px; background: var(--vtp-grad); color: #fff;
  font-family: Fredoka, sans-serif; font-weight: 600; font-size: 15px;
}
.vtp-avatar {
  border-radius: 999px; overflow: hidden; object-fit: cover;
  background: var(--vtp-grad-avatar); color: var(--vtp-violet-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: Fredoka, sans-serif; font-weight: 600;
}

/* Bandeau promo dégradé */
.vtp-banner {
  background: var(--vtp-grad-wide); border-radius: 24px;
  padding: 26px 22px; color: #fff;
}
.vtp-banner .vtp-h2, .vtp-banner .vtp-h1 { color: #fff; }

/* Stats en grille */
.vtp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vtp-stat {
  background: var(--vtp-surface); border-radius: 16px; padding: 12px 6px;
  text-align: center; box-shadow: var(--vtp-shadow-soft);
}
.vtp-stat b {
  display: block; font-family: Fredoka, sans-serif; font-weight: 600;
  font-size: 20px; line-height: 1.1;
}

/* ── Grilles ───────────────────────────────────────────────────────────── */

.vtp-grid    { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
.vtp-grid-1  { display: grid; gap: 10px; }
@media (min-width: 640px)  { .vtp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .vtp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Grille à 3 colonnes max (créatrices, cartes éditoriales) */
.vtp-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px)  { .vtp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .vtp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Colonnes éditoriales : 1 sur mobile, 3 dès md */
.vtp-grid-1--md3 { display: grid; gap: 10px; }
@media (min-width: 768px) { .vtp-grid-1--md3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── Carte créatrice (photo + overlay) ─────────────────────────────────── */

.vtp-seller {
  display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: var(--vtp-surface); box-shadow: 0 6px 18px rgba(51,32,59,0.10);
  text-decoration: none;
}
.vtp-seller-media { position: relative; aspect-ratio: 167 / 200; overflow: hidden; }
/* L'image est positionnee en absolu, comme sur les cartes pack : un height:100%
   ne peut pas se resoudre contre un parent dont la hauteur vient d'aspect-ratio
   (il retombe sur auto), et une photo tres verticale faisait alors exploser la
   carte au lieu d'etre recadree. */
.vtp-seller-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.vtp-seller-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.vtp-seller-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  background: var(--vtp-grad-avatar); color: var(--vtp-ink-3);
}
.vtp-seller-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 12px 10px; background: var(--vtp-overlay);
}
.vtp-seller-name {
  display: inline-flex; align-items: center; gap: 6px; margin: 0;
  font-family: Fredoka, sans-serif; font-weight: 600; font-size: 14px;
  color: #fff; text-decoration: none;
}
.vtp-seller-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.vtp-seller-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 4px; }

/* ── Carte pack ────────────────────────────────────────────────────────── */

.vtp-pack {
  display: flex; flex-direction: column; background: var(--vtp-surface);
  border-radius: 18px; overflow: hidden; box-shadow: var(--vtp-shadow-card);
  text-decoration: none;
}
.vtp-pack-media { position: relative; display: block; aspect-ratio: 167 / 185; background: var(--vtp-violet-tint); overflow: hidden; }
/* L'image se superpose au placeholder : un onerror qui la masque le révèle. */
.vtp-pack-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vtp-pack-media--short { aspect-ratio: 167 / 140; }
.vtp-pack-media--tall  { aspect-ratio: 4 / 5; }
.vtp-pack-media--wide  { aspect-ratio: 5 / 4; }   /* visuel produit : 350x280 du handoff */
.vtp-pack-media--hero  { aspect-ratio: 5 / 3; }   /* photo de la semaine : 350x210 */
.vtp-pack-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; flex: 1; }
.vtp-pack-title {
  font-family: Fredoka, sans-serif; font-weight: 600; font-size: 13px;
  line-height: 1.25; color: var(--vtp-ink); text-decoration: none;
}
a.vtp-pack-title:hover { color: var(--vtp-rasp-dark); }
.vtp-pack-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; color: var(--vtp-ink-3);
}

/* Couverture du profil vendeuse */
.vtp-cover { position: relative; height: 140px; background: var(--vtp-grad-avatar); overflow: hidden; }
.vtp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 768px) { .vtp-cover { height: 240px; } }

/* Avatar du profil : cadre rond qui ouvre la galerie au clic */
.vtp-avatar-frame {
  width: 76px; height: 76px; flex: 0 0 76px; padding: 0;
  position: relative; border-radius: 999px;
  border: 4px solid var(--vtp-bg); background: var(--vtp-violet-tint);
  box-shadow: 0 4px 14px rgba(51,32,59,0.15);
  display: block;
}
/* Pas d'overflow:hidden ici : la pastille du compteur deborde volontairement.
   C'est donc l'image qui porte l'arrondi. */
.vtp-avatar-frame img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 999px; }
button.vtp-avatar-frame { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
button.vtp-avatar-frame:hover { transform: scale(1.04); box-shadow: 0 6px 18px rgba(51,32,59,0.22); }
/* Pastille du nombre de photos, pour signaler que l'avatar est cliquable */
.vtp-avatar-count {
  position: absolute; right: -2px; bottom: -2px;
  min-width: 20px; padding: 1px 5px; border-radius: 999px;
  background: var(--vtp-grad); color: #fff;
  font-size: 10px; font-weight: 800; line-height: 18px; text-align: center;
}

/* ── Modale (galerie du profil) ─────────────────────────────────────────── */

.vtp-modal {
  width: min(100% - 24px, 900px);
  height: min(85vh, 760px);
  padding: 0; border: 0; border-radius: 20px;
  background: var(--vtp-bg); color: var(--vtp-ink);
  box-shadow: 0 20px 60px rgba(51,32,59,0.35);
  overflow: hidden;
}
.vtp-modal[open] { display: flex; flex-direction: column; }
.vtp-modal::backdrop { background: rgba(30,15,38,0.72); }
.vtp-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: var(--vtp-surface);
  border-bottom: 1px solid var(--vtp-line-soft); flex: 0 0 auto;
}
/* Scene : une photo a la fois, fleches posees par-dessus */
.vtp-modal-stage {
  position: relative; flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--vtp-ink); overflow: hidden;
}
.vtp-modal-stage img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; display: block;
}
.vtp-modal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92); color: var(--vtp-ink);
  box-shadow: 0 3px 10px rgba(51,32,59,0.25);
  transition: background .15s ease;
}
.vtp-modal-nav:hover { background: #fff; }
.vtp-modal-nav--prev { left: 10px; }
.vtp-modal-nav--next { right: 10px; }

/* Bandeau de miniatures : toutes les photos, defilable a l'horizontale */
.vtp-modal-thumbs {
  flex: 0 0 auto; display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 14px 12px; background: var(--vtp-surface);
  border-top: 1px solid var(--vtp-line-soft);
  scrollbar-width: thin;
}
.vtp-modal-thumbs button {
  flex: 0 0 auto; width: 56px; height: 56px; padding: 0; border: 0; cursor: pointer;
  border-radius: 12px; overflow: hidden; background: var(--vtp-violet-tint);
  outline: 2px solid transparent; outline-offset: 2px; opacity: .6;
  transition: opacity .15s ease, outline-color .15s ease;
}
.vtp-modal-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vtp-modal-thumbs button:hover { opacity: 1; }
.vtp-modal-thumbs button[aria-current="true"] { opacity: 1; outline-color: var(--vtp-rasp); }
.vtp-lock {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(30,15,38,0.45);
}
.vtp-lock span {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92); border-radius: 999px; color: var(--vtp-violet-dark);
}

/* ── Champs ────────────────────────────────────────────────────────────── */

.vtp-field {
  width: 100%; box-sizing: border-box;
  font-family: 'Nunito Sans', 'Inter', system-ui, sans-serif;
  font-size: 14px; font-weight: 600; color: var(--vtp-ink);
  background: var(--vtp-surface); border: 1.5px solid var(--vtp-line);
  border-radius: 999px; padding: 11px 16px; outline: none;
}
.vtp-field:focus { border-color: var(--vtp-violet); box-shadow: 0 0 0 3px var(--vtp-violet-tint); }
.vtp-field--box  { border-radius: 14px; }
.vtp-field--area { border-radius: 14px; resize: vertical; line-height: 1.5; }
.vtp-search { position: relative; flex: 1; min-width: 0; }
.vtp-search .vtp-field { padding-left: 38px; }
.vtp-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--vtp-ink-3); }

/* Option cochable (radio pack / checkbox option) */
.vtp-option {
  display: flex; align-items: center; gap: 10px;
  background: var(--vtp-surface); border: 2px solid var(--vtp-line);
  border-radius: 16px; padding: 12px 14px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.vtp-option input { accent-color: var(--vtp-rasp); width: 16px; height: 16px; flex: 0 0 16px; }
.vtp-option:hover { border-color: var(--vtp-violet-line); }
.vtp-option:has(input:checked) { background: var(--vtp-rasp-tint); border-color: var(--vtp-rasp); }
.vtp-option-label { flex: 1; font-size: 14px; font-weight: 700; color: var(--vtp-ink); min-width: 0; }
.vtp-option-price { font-size: 13px; font-weight: 800; color: var(--vtp-rasp-dark); white-space: nowrap; }

.vtp-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--vtp-ink-2); cursor: pointer;
}
.vtp-check input { accent-color: var(--vtp-rasp); margin-top: 2px; flex: 0 0 auto; }

/* Ligne de total */
.vtp-total {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--vtp-surface); border-radius: 18px; padding: 14px 16px;
  box-shadow: var(--vtp-shadow-soft);
}
.vtp-total-label {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--vtp-ink-3);
}
.vtp-total-value { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 24px; color: var(--vtp-rasp); }

/* ── FAQ (accordéon <details>) ─────────────────────────────────────────── */

.vtp-faq { background: var(--vtp-surface); border-radius: 18px; box-shadow: var(--vtp-shadow-soft); padding: 4px 16px; }
.vtp-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: Fredoka, sans-serif; font-weight: 600; font-size: 14px;
  color: var(--vtp-ink); cursor: pointer; list-style: none; padding: 14px 0;
}
.vtp-faq summary::-webkit-details-marker { display: none; }
.vtp-faq summary svg { flex: 0 0 auto; color: var(--vtp-ink-3); transition: transform .2s ease; }
.vtp-faq details[open] summary { color: var(--vtp-rasp-dark); }
.vtp-faq details[open] summary svg { transform: rotate(180deg); }
.vtp-faq details + details { border-top: 1px solid var(--vtp-line-soft); }
.vtp-faq p { font-size: 12.5px; line-height: 1.6; font-weight: 600; color: var(--vtp-ink-2); margin: 0 0 14px; }

/* ── Header ────────────────────────────────────────────────────────────── */

.vtp-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--vtp-surface); border-bottom: 1px solid var(--vtp-line-soft);
}
.vtp-header-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; margin-inline: auto; max-width: 1160px;
}
@media (min-width: 768px) { .vtp-header-bar { height: 64px; padding: 0 24px; } }
.vtp-logo {
  font-family: Fredoka, sans-serif; font-weight: 700; font-size: 20px;
  text-decoration: none; white-space: nowrap;
  background: var(--vtp-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vtp-plain-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--vtp-ink); display: inline-flex; }
/* Les CTA du header ne doivent ni se compresser ni passer a la ligne. */
.vtp-header .vtp-btn { flex: 0 0 auto; white-space: nowrap; }
.vtp-nav-link { font-size: 14px; font-weight: 700; color: var(--vtp-ink-2); text-decoration: none; }
.vtp-nav-link:hover { color: var(--vtp-ink); }
.vtp-nav-link.is-active { color: var(--vtp-violet-dark); }

/* Menu mobile déroulant */
.vtp-menu { background: var(--vtp-surface); border-top: 1px solid var(--vtp-line-soft); padding: 6px 18px 14px; }
.vtp-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0; font-size: 14px; font-weight: 700;
  color: var(--vtp-ink-2); text-decoration: none;
}
.vtp-menu a + a { border-top: 1px solid var(--vtp-line-soft); }
.vtp-menu a.is-active { color: var(--vtp-violet-dark); }

/* ── Nav basse ─────────────────────────────────────────────────────────── */

.vtp-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--vtp-grad-nav); padding: 10px 8px 14px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) { .vtp-bottomnav { display: none; } }
.vtp-bottomnav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 0; text-decoration: none; color: rgba(255,255,255,0.75);
  border-radius: 14px; font-size: 10px; font-weight: 700; text-align: center;
}
.vtp-bottomnav a.is-active { color: #fff; background: rgba(255,255,255,0.16); }
.vtp-bottomnav a:hover { color: #fff; }

/* ── Footer ────────────────────────────────────────────────────────────── */

.vtp-footer { background: var(--vtp-ink); color: #fff; padding: 28px 20px 22px; }
.vtp-footer-inner { margin-inline: auto; max-width: 1160px; }
.vtp-footer-brand {
  font-family: Fredoka, sans-serif; font-weight: 700; font-size: 18px; margin: 0 0 8px;
  background: var(--vtp-grad-light); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vtp-footer-baseline { font-size: 12.5px; line-height: 1.6; font-weight: 600; margin: 0 0 20px; color: rgba(255,255,255,0.7); max-width: 46ch; }
.vtp-footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; margin-bottom: 20px; }
@media (min-width: 768px) { .vtp-footer-cols { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.vtp-footer-head {
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  margin: 0 0 8px; color: rgba(255,255,255,0.5);
}
.vtp-footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vtp-footer-cols a { font-size: 12.5px; font-weight: 700; text-decoration: none; color: rgba(255,255,255,0.85); }
.vtp-footer-cols a:hover { color: #fff; }
.vtp-footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 14px; }
.vtp-footer-bottom p { font-size: 11.5px; line-height: 1.5; font-weight: 600; margin: 0 0 6px; color: rgba(255,255,255,0.55); }
.vtp-18 {
  display: inline-block; background: rgba(255,255,255,0.12); color: #fff;
  font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; margin-right: 6px;
}

/* ── Divers ────────────────────────────────────────────────────────────── */

.vtp-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vtp-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
[hidden] { display: none !important; }

/* Fil d'Ariane */
.vtp-bc { font-size: 12px; font-weight: 700; color: var(--vtp-ink-3); }
.vtp-bc a { color: var(--vtp-ink-3); text-decoration: none; }
.vtp-bc a:hover { color: var(--vtp-rasp-dark); }
.vtp-bc b { color: var(--vtp-ink-2); font-weight: 700; }

/* Squelettes de chargement */
.vtp-skeleton {
  border-radius: 18px; background: linear-gradient(100deg, #f3ebf3 30%, #faf5fa 50%, #f3ebf3 70%);
  background-size: 200% 100%; animation: vtp-shimmer 1.2s linear infinite;
}
@keyframes vtp-shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  .vtp-skeleton { animation: none; }
  .vtp-btn, a.vtp-card, .vtp-liftable, .vtp-chip, .vtp-faq summary svg { transition: none; }
  a.vtp-card:hover, .vtp-liftable:hover, .vtp-btn--grad:hover { transform: none; }
}

/* Ancre du formulaire de commande (liens historiques ?article=ID#order-form) */
#order-form { scroll-margin-top: calc(var(--vtp-header-h) + 12px); }
