/* L'attribut hidden doit toujours gagner sur les display des composants */
[hidden] { display: none !important; }

/**
 * Vitrine marketplace : Découvrir (vrais créateurs) + page créateur.
 * Réutilise les tokens de styles.css et les tuiles .cp-tile (cadenas).
 */

/* Avatar : photo du créateur, sinon initiale sur dégradé */
.vt-avatar {
  display: grid;
  place-items: center;
  background: var(--gradient-primary, linear-gradient(135deg, var(--accent), var(--accent-end)));
  background-size: cover;
  background-position: center;
  color: #fff;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
}
.vt-avatar.has-photo { color: transparent; }

.vt-links { margin: 14px 20px 0; }
.vt-links:empty { display: none; }

/* Grille des contenus verrouillés */
.vt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.vt-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.vt-card .cp-tile { display: block; width: 100%; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.vt-card:hover .cp-tile,
.vt-card:focus-visible .cp-tile { transform: translateY(-2px); box-shadow: 0 8px 32px var(--accent-glow); }
.vt-card .cp-tile-label { background: var(--accent); }
.vt-card-title { font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.vt-card-meta { font-size: 0.8125rem; color: var(--text-muted); }

/* Modal : badge « aperçu flouté » sur la grande image */
.vt-locked { position: relative; }
.vt-locked-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Découvrir : cartes des vrais créateurs */
a.explore-card { display: block; text-decoration: none; color: inherit; }
.vt-explore-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-secondary);
}
.vt-explore-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-explore-media .vt-avatar { position: absolute; inset: 0; font-size: 3.5rem; }

/* Application connectée : vues fil / achats / profil */
.profile-page:not(.view-feed) .only-feed,
.profile-page:not(.view-purchases) .only-purchases { display: none !important; }
.vt-more { margin-top: 16px; }
.vt-profile-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 20px 0; }
.vt-profile-actions .btn { flex: 0 0 auto; }
.vt-attest { align-items: flex-start; font-size: 0.875rem; line-height: 1.45; color: var(--text-secondary); }
.vt-attest a { color: var(--accent); }
a.feed-story { text-decoration: none; color: inherit; }
.vt-avatar-44 { width: 44px; height: 44px; border-radius: 50%; font-size: 1rem; flex: 0 0 44px; }
.vt-avatar-60 { width: 60px; height: 60px; border-radius: 50%; font-size: 1.4rem; }
.vt-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft, color-mix(in srgb, var(--accent) 12%, transparent)); color: var(--accent);
  font-size: 0.75rem; font-weight: 600;
}
.vt-purchase .cp-tile img { filter: none; }
.vt-purchase .vt-card-meta a { color: var(--accent); }

.vt-alert {
  margin: 16px 0 0; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--accent); background: var(--accent-soft, color-mix(in srgb, var(--accent) 10%, transparent));
  color: var(--text-primary); line-height: 1.5; font-size: 0.9375rem;
}
.shop-item-removed { margin: 6px 0 0; font-size: 0.8125rem; color: var(--accent); line-height: 1.4; }

/* Consentement avant paiement (renonciation au droit de rétractation) */
.vt-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: 0.8125rem; line-height: 1.45; color: var(--text-secondary); cursor: pointer; text-align: left; }
.vt-consent input { margin-top: 2px; flex: 0 0 auto; accent-color: var(--accent); }
.vt-consent a { color: var(--accent); }
.vt-consent.is-required { color: var(--accent); }
.shop-pay[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

/* Identité (genre / orientation) */
.vt-identity-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.vt-identity-row select { width: 100%; }
.vt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.vt-tag { padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--bg-secondary, #1c1c27); border: 1px solid var(--border); color: var(--text-secondary); }
.explore-card .vt-tags { margin-top: 6px; }
.explore-card .vt-tag { background: rgba(9, 9, 11, 0.55); border-color: rgba(255, 255, 255, 0.12); color: #fff; }
.vt-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.vt-filters select { flex: 0 1 200px; width: auto; min-width: 0; padding: 10px 14px; border-radius: 999px; background: var(--bg-secondary, #1c1c27); border: 1px solid var(--border); color: var(--text-primary, #fff); font: inherit; font-size: 0.875rem; cursor: pointer; }
@media (max-width: 560px) { .vt-filters select { flex: 1 1 100%; } }
@media (max-width: 560px) { .vt-identity-row { grid-template-columns: 1fr; } }

/* Live & cam (espace créateur) */
.vt-rtc { margin-top: 24px; }
.vt-rtc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.vt-rtc-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg, 16px); background: var(--bg-primary); }
.vt-rtc-card h3 { margin: 0; font-size: 1.05rem; }
.vt-rtc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vt-rtc-row label { display: flex; flex-direction: column; gap: 6px; }
.vt-rtc-attest { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 14px; padding: 14px; border: 1px dashed var(--accent); border-radius: 12px; }
.vt-rtc-attest .btn { align-self: flex-start; }
.vt-session-actions { display: inline-flex; gap: 6px; margin-left: auto; }
.vt-session-actions .btn { padding: 6px 12px; font-size: 0.8125rem; }
@media (max-width: 760px) { .vt-rtc-grid { grid-template-columns: 1fr; } }

/* Vitrine : live & cam */
.vt-live-banner { display: flex; align-items: center; gap: 12px; margin: 16px 20px 0; padding: 12px 14px; border-radius: 14px; background: rgba(225, 29, 72, 0.12); border: 1px solid #e11d48; }
.vt-live-banner strong { color: #fb7185; }
.vt-live-banner .btn { margin-left: auto; }
.vt-cam-actions { display: grid; gap: 10px; }
.vt-cam-note { margin: 0; font-size: 0.8125rem; color: var(--text-muted); text-align: center; }
.vt-lives { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 12px; }
.vt-live-card { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; border: 1px solid #e11d48; background: rgba(225, 29, 72, 0.08); text-decoration: none; color: inherit; }
.vt-live-card small { display: block; color: var(--text-muted); }

/* Réglages profil : photo */
.settings-avatar { display: flex; align-items: center; gap: 14px; }
.settings-avatar-preview { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; font-size: 1.5rem; }
.settings-avatar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* Avatars du fil quand une photo est définie */
.has-photo-avatar { background-size: cover !important; background-position: center !important; color: transparent !important; }

.vt-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
}
.vt-empty strong { display: block; font-size: 1.125rem; color: var(--text-primary); }
.vt-empty .btn { margin-top: 14px; }

/* Découvrir : annonces partenaires (rencontres) — cartes floutées */
.vt-partners { margin-top: 48px; }
.vt-partners-head { display: flex; margin-bottom: 16px; }
.explore-results.is-solo, .explore-search.is-solo, .section-badge.is-solo { display: none !important; }
.explore-hero:has(.explore-search.is-solo) { padding-bottom: 0; }
.explore-hero:has(.explore-search.is-solo) .explore-desc { margin-bottom: 0; }
.explore-results.is-solo + .vt-partners { margin-top: 20px; }
.vt-partner-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-card); }
.vt-partner-tabs button { padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--text-secondary); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s; }
.vt-partner-tabs button:hover { color: var(--text-primary); }
.vt-partner-tabs button[aria-selected="true"] { background: var(--gradient-primary); color: #fff; }
.vt-partner-card .vt-explore-media img { filter: saturate(1.1); }
.vt-partner-lock { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: 80%; text-align: center; color: #fff; font-size: 0.8125rem; font-weight: 600; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.vt-partner-lock-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(9, 9, 11, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / 20px no-repeat; border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(4px); }
.vt-partner-cta { margin-top: 8px; font-size: 0.8125rem !important; font-weight: 600; color: var(--accent-light) !important; }
.vt-partner-cta::after { content: ' →'; }
.vt-partner-card:hover .vt-partner-lock-icon { background-color: var(--accent); border-color: var(--accent); }
.vt-partners-note { margin: 16px 0 0; font-size: 0.75rem; color: var(--text-muted); text-align: center; }
@media (max-width: 560px) {
  .vt-partner-tabs { width: 100%; justify-content: space-between; }
  .vt-partner-tabs button { flex: 1; padding: 8px 6px; }
  .vt-partner-lock { top: 32%; font-size: 0; gap: 0; }
  .vt-partner-lock-icon { width: 38px; height: 38px; }
  .vt-partner-card .explore-card-info { padding: 40px 10px 10px; }
  .vt-partner-card .explore-card-info strong { flex-wrap: wrap; gap: 0 4px; font-size: 0.9375rem; }
  .vt-partner-cta { margin-top: 4px; }
}
/* Cartes partenaires v2 : cadenas seul (texte au survol), âge · ville */
.vt-partner-lock-text { max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; transition: opacity 0.2s; }
.vt-partner-card:hover .vt-partner-lock-text,
.vt-partner-card:focus-visible .vt-partner-lock-text { max-width: none; opacity: 1; white-space: normal; }
.vt-partner-meta { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem !important; color: rgba(255, 255, 255, 0.78) !important; }
.vt-partner-city { display: inline-flex; align-items: center; gap: 4px; }
.vt-partner-city::before { content: ''; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.vt-partner-meta .vt-partner-city { padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, 0.25); }
.vt-partner-card .explore-card-info strong { font-size: 1.0625rem; }
.vt-partner-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: none) { .vt-partner-lock-text { display: none; } }
.vt-partners { scroll-margin-top: 88px; }

/* Découvrir sur mobile : en-tête compact, les profils remontent dans le premier écran */
@media (max-width: 768px) {
  .explore { padding: 0 16px 32px; }
  .explore-hero { padding: 20px 0 8px; }
  .explore-hero .section-badge { display: none; }
  .explore-title { font-size: 1.625rem; margin-bottom: 8px; }
  .explore-desc { margin-bottom: 16px; font-size: 0.9375rem; }
  .explore-results:has(> .explore-grid[hidden]) { display: none; }
  .vt-partners { margin-top: 16px; }
  .vt-partners-head { margin-bottom: 14px; }
  .explore-grid.vt-partner-grid { gap: 10px; }
}

/* Bouton « Demande privée » : cadenas (exclusivité) */
.cp-private-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.cp-private-lock { width: 16px; height: 16px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 8h-1V6A5 5 0 0 0 7 6v2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2zm-6 9a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm3.1-9H8.9V6a3.1 3.1 0 0 1 6.2 0v2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 8h-1V6A5 5 0 0 0 7 6v2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2zm-6 9a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm3.1-9H8.9V6a3.1 3.1 0 0 1 6.2 0v2z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ========== Demande privée : fenêtre de demande (vitrine) ========== */
.cp-req-modal { width: min(560px, calc(100vw - 32px)); }
.cp-req, .cp-req-done { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px 28px; }
.cp-req-title { margin: 0; padding-right: 40px; font-size: 1.375rem; line-height: 1.25; }
.cp-req-sub { margin: -6px 0 0; color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.5; }
.cp-req-kinds { display: flex; gap: 8px; margin: 0; padding: 0; border: 0; }
.cp-req-kinds legend { margin-bottom: 8px; font-size: 0.8125rem; font-weight: 600; color: var(--text-secondary); }
.cp-req-kinds label { flex: 1; cursor: pointer; }
.cp-req-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.cp-req-kinds span { display: block; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; text-align: center; font-weight: 600; font-size: 0.9375rem; color: var(--text-secondary); transition: border-color 0.2s, background 0.2s, color 0.2s; }
.cp-req-kinds input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--text-primary); }
.cp-req-kinds input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cp-req-field { position: relative; display: flex; flex-direction: column; gap: 8px; font-size: 0.8125rem; font-weight: 600; color: var(--text-secondary); }
.cp-req-field textarea { width: 100%; min-height: 120px; padding: 12px 14px 26px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-primary); color: var(--text-primary); font: inherit; font-size: 0.9375rem; font-weight: 400; line-height: 1.5; resize: vertical; }
.cp-req-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cp-req-count { position: absolute; right: 12px; bottom: 8px; font-size: 0.75rem; font-weight: 500; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cp-req-steps { display: grid; gap: 6px; margin: 0; padding-left: 20px; color: var(--text-secondary); font-size: 0.875rem; line-height: 1.45; }
.cp-req-steps li::marker { color: var(--accent); font-weight: 700; }
.cp-req-rules { margin: 0; font-size: 0.75rem; line-height: 1.5; color: var(--text-muted); }
.cp-req-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(239, 68, 68, 0.1); color: #fca5a5; font-size: 0.875rem; }
.cp-req-submit, .cp-req-done .btn { width: 100%; justify-content: center; }
.cp-req-done { align-items: center; text-align: center; }
.cp-req-done .cp-req-title { padding-right: 0; }
.cp-req-done-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 1.5rem; font-weight: 700; }
@media (max-width: 560px) { .cp-req, .cp-req-done { padding: 28px 18px 20px; } }

/* ========== Contenu perso : espace créateur (onglet Demandes) et « Mes demandes perso » ========== */
.req-settings { margin: 8px 0 20px; }
.req-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.req-share code { flex: 1 1 220px; min-width: 0; padding: 6px 10px; border-radius: 8px; background: var(--bg-secondary); font-size: 0.8125rem; word-break: break-all; }
.req-share .btn { flex: none; padding: 6px 14px; font-size: 0.8125rem; }
.req-board { display: flex; flex-direction: column; gap: 10px; }
.req-group-title { margin: 14px 0 0; font-size: 0.9375rem; font-weight: 700; }
.req-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.req-list:empty { display: none; }
.req-item { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg, 16px); background: var(--bg-primary); }
.req-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.req-avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; object-fit: cover; font-size: 0.875rem; }
.req-who { display: flex; flex-direction: column; min-width: 0; }
.req-who strong { font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req-who strong a { color: inherit; }
.req-who span { font-size: 0.8125rem; color: var(--text-muted); }
.req-status { margin-left: auto; flex: none; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--bg-secondary); color: var(--text-secondary); white-space: nowrap; }
.req-status-pending, .req-status-quoted { background: var(--accent-soft); color: var(--accent-light); }
.req-status-paid { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.req-status-delivered { background: rgba(52, 211, 153, 0.12); color: var(--status-success); }
.req-status.is-late { background: rgba(239, 68, 68, 0.14); color: #fca5a5; }
.req-brief { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--bg-secondary); color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.req-meta { margin: 0; font-size: 0.875rem; line-height: 1.55; color: var(--text-secondary); }
.req-meta a { color: var(--accent); }
.req-meta.is-late { color: #fca5a5; }
.req-hint { margin: 0; font-size: 0.75rem; color: var(--text-muted); }
.req-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.req-actions .btn { padding: 9px 16px; font-size: 0.875rem; }
.req-quote { display: flex; flex-direction: column; gap: 10px; }
.req-quote label { display: flex; flex-direction: column; gap: 6px; }
.req-quote-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.req-decline { display: flex; gap: 8px; }
.req-decline[hidden] { display: none; }
.req-decline .composer-input { flex: 1; }
.req-files { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.req-files:empty { display: none; }
.req-files .item-deliverable { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; font-size: 0.875rem; }
.req-files small { color: var(--text-muted); }
.req-files .item-photo-remove { position: static; flex: none; }
.req-progress { height: 4px; border-radius: 999px; background: var(--border); overflow: hidden; }
.req-progress span { display: block; width: 0; height: 100%; background: var(--gradient-primary); transition: width 0.2s linear; }
.req-history summary { cursor: pointer; margin-top: 14px; font-size: 0.9375rem; font-weight: 700; }
.req-history .req-list { margin-top: 10px; }
.req-history[hidden] { display: none; }
/* Fan */
.req-fan { margin: 0 0 28px; }
.req-fan-title { margin: 0 0 12px; font-size: 1.125rem; }
.req-offer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 14px; border: 1px solid var(--border-accent); border-radius: 12px; background: var(--accent-soft); }
.req-offer-price { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.req-offer > span:not(.req-offer-price) { font-size: 0.875rem; color: var(--text-secondary); }
.req-offer q { flex-basis: 100%; font-size: 0.875rem; color: var(--text-secondary); font-style: italic; }
.req-item .vt-consent { margin: 0; }
.req-item [aria-disabled="true"] { opacity: 0.55; }
.req-tile { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-soft), transparent), var(--bg-secondary); }
.req-tile-icon { font-size: 2.2rem; color: var(--accent); }
@media (max-width: 560px) { .req-quote-row { grid-template-columns: 1fr; } .req-status { font-size: 0.6875rem; } }

/* Badges des cartes Découvrir (statut du créateur) */
.explore-card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.status-pill { padding: 4px 9px; border-radius: 999px; background: rgba(9, 9, 11, 0.72); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.02em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.status-pill-custom { border-color: var(--border-accent); }

/* ========== Vitrine : « Live chat » (lien partenaire), action principale ========== */
.cp-live-chat { display: grid; gap: 6px; }
.cp-live-chat-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 11px 16px; border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.55);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(34, 197, 94, 0.08)), var(--bg-card);
  color: #fff; font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.01em; text-decoration: none;
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cp-live-chat-btn:hover, .cp-live-chat-btn:focus-visible { color: #fff; text-decoration: none; transform: translateY(-1px); border-color: rgba(34, 197, 94, 0.85); box-shadow: 0 12px 36px rgba(34, 197, 94, 0.26); }
.cp-live-chat-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.22); }
.cp-live-chat-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #22C55E; animation: cp-live-chat-pulse 1.8s ease-out infinite; }
@keyframes cp-live-chat-pulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(2.4); opacity: 0; } }
.cp-live-chat-note { margin: 0; font-size: 0.75rem; color: var(--text-muted); text-align: center; }
@media (prefers-reduced-motion: reduce) { .cp-live-chat-dot::after { animation: none; } }

/* ========== Avatar par défaut : monogramme sur surface sombre teintée de la catégorie (rose / bleu / violet) ========== */
.vt-avatar:not(.has-photo) {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, var(--bg-card)), var(--bg-secondary));
  color: color-mix(in srgb, var(--accent-2) 45%, #fff);
  letter-spacing: -0.04em;
  text-shadow: 0 0 18px var(--accent-glow);
}
.vt-avatar:not(.has-photo)::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Grande carte (découvrir / accueil) : médaillon centré au-dessus du bandeau d'infos */
.vt-explore-media .vt-avatar:not(.has-photo) {
  position: absolute; inset: 0;
  padding-bottom: 30%;
  font-size: clamp(2.75rem, 9vw, 4rem); font-weight: 700;
}
.vt-explore-media .vt-avatar:not(.has-photo)::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 35%;
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-2) 30%, transparent), 0 0 48px color-mix(in srgb, var(--accent) 18%, transparent);
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.explore-card:hover .vt-avatar:not(.has-photo)::before { transform: translate(-50%, -50%) scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .vt-explore-media .vt-avatar:not(.has-photo)::before { transition: none; }
}

/* ========== Vitrine : en-tête compact, Suivre en pastille, vignettes parlantes ========== */
.cp-hero { position: relative; }
.cp-follow {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px;
  background: rgba(9, 9, 11, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cp-follow:hover, .cp-follow:focus-visible { border-color: var(--accent); }
.cp-follow-icon { width: 15px; height: 15px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%2020.5S4%2015.6%202.6%2010.6C1.6%207.1%203.9%204%207%204c2%200%203.6%201.2%205%203%201.4-1.8%203-3%205-3%203.1%200%205.4%203.1%204.4%206.6C20%2015.6%2012%2020.5%2012%2020.5z%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%2020.5S4%2015.6%202.6%2010.6C1.6%207.1%203.9%204%207%204c2%200%203.6%201.2%205%203%201.4-1.8%203-3%205-3%203.1%200%205.4%203.1%204.4%206.6C20%2015.6%2012%2020.5%2012%2020.5z%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.cp-follow[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.cp-follow[aria-pressed="true"] .cp-follow-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%2020.5S4%2015.6%202.6%2010.6C1.6%207.1%203.9%204%207%204c2%200%203.6%201.2%205%203%201.4-1.8%203-3%205-3%203.1%200%205.4%203.1%204.4%206.6C20%2015.6%2012%2020.5%2012%2020.5z%22%2F%3E%3C%2Fsvg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%2020.5S4%2015.6%202.6%2010.6C1.6%207.1%203.9%204%207%204c2%200%203.6%201.2%205%203%201.4-1.8%203-3%205-3%203.1%200%205.4%203.1%204.4%206.6C20%2015.6%2012%2020.5%2012%2020.5z%22%2F%3E%3C%2Fsvg%3E"); }
.cp-cover { height: 132px; }
.cp-cta { gap: 8px; padding: 14px 20px 18px; }
.cp-cta .btn-lg { padding-top: 12px; padding-bottom: 12px; font-size: 0.9375rem; }
.cp-stats div { padding: 12px 10px; }
.cp-section-count { margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-light); font-size: 0.8125rem; font-weight: 700; vertical-align: middle; }
.cp-section-count:empty { display: none; }
.cp-tile-badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px; pointer-events: none; }
.cp-tile-kind { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: rgba(9, 9, 11, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 0.6875rem; font-weight: 700; }
.cp-tile-kind::before { content: ''; width: 12px; height: 12px; background: currentColor; -webkit-mask: var(--kind-icon) center / contain no-repeat; mask: var(--kind-icon) center / contain no-repeat; }
.cp-tile-kind[data-kind="photo"] { --kind-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M9%204%207.2%206H4a2%202%200%200%200-2%202v10a2%202%200%200%200%202%202h16a2%202%200%200%200%202-2V8a2%202%200%200%200-2-2h-3.2L15%204H9zm3%204.5a4.5%204.5%200%201%201%200%209%204.5%204.5%200%200%201%200-9zm0%202a2.5%202.5%200%201%200%200%205%202.5%202.5%200%200%200%200-5z%22%2F%3E%3C%2Fsvg%3E"); }
.cp-tile-kind[data-kind="audio"] { --kind-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%202a3%203%200%200%200-3%203v6a3%203%200%200%200%206%200V5a3%203%200%200%200-3-3zm-7%209h2a5%205%200%200%200%2010%200h2a7%207%200%200%201-6%206.93V21h3v2H8v-2h3v-3.07A7%207%200%200%201%205%2011z%22%2F%3E%3C%2Fsvg%3E"); }
.cp-tile-kind[data-kind="video"] { --kind-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M3%206a2%202%200%200%201%202-2h10a2%202%200%200%201%202%202v3.5l4-3v11l-4-3V18a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V6z%22%2F%3E%3C%2Fsvg%3E"); }
.cp-tile-new { padding: 3px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.625rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }

/* Ordinateur : profil à gauche (reste visible), contenus à droite — les contenus sont visibles dès l'arrivée */
@media (min-width: 1024px) {
  .cp { max-width: 1180px; display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 32px; align-items: start; }
  .cp-missing { grid-column: 1 / -1; }
  .cp-packs .cp-section-title { margin-top: 24px; }
  .cp .vt-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}
@media (min-width: 1024px) and (min-height: 760px) {
  .cp-hero { position: sticky; top: 88px; }
  body.app-shelled .cp-hero { top: 24px; }
}
/* Mobile : 2 vignettes par ligne (défilement 2× plus court) */
@media (max-width: 600px) {
  .cp .vt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cp .vt-card-title { font-size: 0.875rem; }
  .cp .vt-card-meta { font-size: 0.75rem; }
  .cp .cp-tile-label { left: 6px; right: 6px; bottom: 6px; font-size: 0.625rem; }
  .cp-tile-lock { width: 34px; height: 34px; }
}
/* Chiffres du profil : tiennent dans la colonne étroite (« aujourd'hui », « il y a 2 sem. ») */
.cp-stats div { padding: 12px 6px; }
.cp-stats dd { font-size: 1rem; white-space: nowrap; }
