@charset "UTF-8";
/* Cartes de visite : ma-carte.php (édition) et carte.php (publique).
   S'appuie sur les composants de site-reviews.css (.rv-card, .rv-btn…). */
.pc-page {
  max-width: 760px;
}
.pc-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 600;
}
.pc-intro {
  margin: 0 0 20px;
}
.pc-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
}
.pc-field:last-of-type {
  margin-bottom: 0;
}
.pc-field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.pc-field em {
  font-style: normal;
  font-weight: 400;
}
.pc-field input,
.pc-field textarea,
.pc-field select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  color-scheme: light dark;
}
.pc-field textarea {
  resize: vertical;
  min-height: 96px;
}
.pc-field input:focus,
.pc-field textarea:focus,
.pc-field select:focus {
  outline: none;
  border-color: var(--link);
  background: var(--bg);
}
.pc-hint {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}
.pc-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pc-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}
.pc-check input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--link);
}
.pc-check small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.pc-check-strong > span {
  font-weight: 600;
}
.pc-check-strong small {
  font-weight: 400;
}
.pc-publish {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pc-publish .rv-btn {
  flex-shrink: 0;
  padding: 12px 28px;
}
.pc-live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 14px;
}
.pc-live a {
  font-weight: 600;
  color: var(--link);
  word-break: break-all;
}
.pc-copy {
  margin-left: auto;
}

/* Choix de la couleur (ma-carte.php) */
.pc-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pc-swatch {
  position: relative;
  cursor: pointer;
}
.pc-swatch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pc-swatch span {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--border);
  transition: box-shadow 0.15s, transform 0.15s;
}
.pc-swatch:hover span {
  transform: scale(1.08);
}
.pc-swatch input:checked + span {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--sw);
}
.pc-swatch input:focus-visible + span {
  outline: 2px solid var(--link);
  outline-offset: 5px;
}

@media (max-width: 640px) {
  .pc-title {
    font-size: 22px;
  }
  .pc-publish {
    flex-direction: column;
    align-items: stretch;
  }
  .pc-copy {
    margin-left: 0;
  }
}

/* ======================================================================
   Page publique (carte.php)
   ====================================================================== */
.pcv {
  --pc-accent-strong: color-mix(in srgb, var(--pc-accent) 82%, #000);
  --pc-accent-soft: color-mix(in srgb, var(--pc-accent) 12%, transparent);
  --pc-surface: var(--bg);
  --pc-radius: 22px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 24px 48px;
}
.pcv svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* -- En-tête : bannière + identité -- */
.pcv-hero {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--pc-radius);
  background: var(--pc-surface);
  box-shadow: 0 10px 40px var(--shadow-soft);
  overflow: hidden;
}
.pcv-cover {
  position: relative;
  height: 220px;
  background:
    radial-gradient(120% 140% at 85% 0%, color-mix(in srgb, var(--pc-accent) 55%, #fff) 0%, transparent 55%),
    radial-gradient(90% 120% at 0% 100%, color-mix(in srgb, var(--pc-accent) 70%, #000) 0%, transparent 60%),
    linear-gradient(135deg, var(--pc-accent), var(--pc-accent-strong));
  overflow: hidden;
  isolation: isolate;
}
/* Photo de profil floutée en fond de bannière, quand il y en a une. */
.pcv-cover::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: -1;
  background: var(--pc-cover-img, none) center / cover no-repeat;
  filter: blur(38px) saturate(1.3);
  opacity: 0.55;
  mix-blend-mode: soft-light;
}
/* Motif discret de lignes, façon carte imprimée. */
.pcv-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 22px);
  mask-image: linear-gradient(90deg, transparent 10%, #000 70%);
}
.pcv-cover-tag {
  position: absolute;
  top: 18px;
  left: 22px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pcv-cover-edit {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #202124 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.pcv-cover-edit:hover {
  background: #fff;
}
.pcv-id {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 24px;
  padding: 0 28px 26px;
}
.pcv-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 148px;
  margin-top: -74px;
  border: 5px solid var(--pc-surface);
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pc-accent), var(--pc-accent-strong));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 50px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pcv-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pcv-id-text {
  min-width: 0;
  padding-top: 16px;
}
.pcv-id h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.pcv-headline {
  margin: 6px 0 0;
  font-size: 16px;
  color: var(--text-muted);
}
.pcv-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.pcv-stats li {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--pc-accent-soft);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
}
.pcv-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

/* -- Boutons -- */
.pcv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.pcv-btn:active {
  transform: translateY(1px);
}
.pcv-btn-primary {
  background: var(--pc-accent-strong);
  color: #fff !important;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--pc-accent) 35%, transparent);
}
.pcv-btn-primary:hover {
  background: color-mix(in srgb, var(--pc-accent) 70%, #000);
}
.pcv-btn-ghost {
  border-color: var(--border);
  background: var(--pc-surface);
  color: var(--text) !important;
}
.pcv-btn-ghost:hover {
  border-color: var(--pc-accent);
}
.pcv-btn-soft {
  padding: 9px 14px;
  background: var(--pc-accent-soft);
  color: var(--text) !important;
  font-size: 13px;
}
.pcv-btn-soft:hover {
  background: color-mix(in srgb, var(--pc-accent) 20%, transparent);
}
.pcv-link {
  color: var(--link) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}
.pcv-link:hover {
  text-decoration: underline !important;
}

/* -- Grille principale -- */
.pcv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 20px;
  margin-top: 20px;
}
.pcv-grid-single {
  grid-template-columns: minmax(0, 1fr);
}
.pcv-main,
.pcv-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.pcv-card {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--pc-radius);
  background: var(--pc-surface);
}
.pcv-card h2 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 650;
}
.pcv-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.pcv-bio {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}
.pcv-muted {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* -- Entreprises -- */
.pcv-biz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.pcv-biz-grid-one {
  grid-template-columns: minmax(0, 1fr);
}
.pcv-biz {
  --pc-surface: var(--btn-bg);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--pc-radius);
  background: var(--pc-surface);
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.pcv-biz:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--pc-accent) 40%, var(--border));
  box-shadow: 0 12px 30px var(--shadow-soft);
}
.pcv-biz-cover {
  display: block;
  height: 120px;
  background: linear-gradient(135deg, var(--pc-accent-soft), color-mix(in srgb, var(--pc-accent) 30%, transparent)) center / cover no-repeat;
}
.pcv-biz-grid-one .pcv-biz-cover {
  height: 170px;
}
.pcv-biz-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 0 18px 18px;
}
.pcv-biz-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  border: 3px solid var(--pc-surface);
  border-radius: 16px;
  overflow: hidden;
  background: var(--btn-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}
.pcv-biz-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pcv .pcv-biz h3 {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.pcv .pcv-biz h3 a {
  font-size: inherit;
  font-weight: inherit;
  color: var(--text) !important;
  text-decoration: none !important;
}
.pcv-biz h3 a:hover {
  color: var(--link) !important;
}
.pcv-biz-meta,
.pcv-biz-place {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.pcv-biz-rating {
  color: var(--text);
  font-weight: 600;
}
.pcv-biz-rating span {
  color: var(--text-muted);
  font-weight: 400;
}
.pcv-biz-rating .rv-stars {
  font-size: 12px;
}
.pcv-pill {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.pcv-pill.is-open {
  background: color-mix(in srgb, #1e8e3e 15%, transparent);
  color: #1e8e3e;
}
.pcv-pill.is-closed {
  background: color-mix(in srgb, #d93025 13%, transparent);
  color: #d93025;
}
.pcv-biz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

/* -- EyefindTube -- */
.pcv-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text) !important;
  text-decoration: none !important;
}
.pcv-channel strong {
  display: block;
  font-size: 15.5px;
}
.pcv-channel small {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
}
.pcv-channel-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: #ea4335;
  color: #fff;
  font-weight: 700;
}
.pcv-channel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pcv-videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.pcv-video {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  color: var(--text) !important;
  text-decoration: none !important;
}
.pcv-video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 4px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--btn-bg);
}
.pcv-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}
.pcv-video:hover .pcv-video-thumb img {
  transform: scale(1.05);
}
.pcv-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s;
}
.pcv-play::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 12px;
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent #fff;
}
.pcv-video:hover .pcv-play {
  opacity: 1;
}
.pcv-video strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}
.pcv-video small {
  font-size: 12px;
  color: var(--text-muted);
}

/* -- Articles -- */
.pcv-articles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pcv-article {
  display: flex;
  gap: 14px;
  margin: 0 -10px;
  padding: 10px;
  border-radius: 16px;
  color: var(--text) !important;
  text-decoration: none !important;
  transition: background 0.15s;
}
.pcv-article:hover {
  background: var(--btn-bg);
}
.pcv-article-cover {
  flex-shrink: 0;
  width: 112px;
  height: 76px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pc-outlet), color-mix(in srgb, var(--pc-outlet) 60%, #000)) center / cover no-repeat;
}
.pcv-article-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.pcv-article-text small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.pcv-article-text small::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pc-outlet);
}
.pcv-article-text strong {
  font-size: 15px;
  line-height: 1.35;
}
.pcv-article-text span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}

/* -- Colonne : contact, annonces, avis -- */
.pcv-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -8px;
  padding: 10px 8px;
  border-radius: 14px;
  color: var(--text) !important;
  text-decoration: none !important;
  transition: background 0.15s;
}
.pcv-contact:hover {
  background: var(--btn-bg);
}
.pcv-contact > span:last-child {
  min-width: 0;
}
.pcv-contact small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}
.pcv-contact strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.pcv-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--pc-accent-soft);
  color: var(--pc-accent);
}
.pcv-contact-avatar {
  border-radius: 50%;
}
.pcv-contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pcv-mini-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pcv-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -8px;
  padding: 8px;
  border-radius: 14px;
  color: var(--text) !important;
  text-decoration: none !important;
  transition: background 0.15s;
}
.pcv-mini:hover {
  background: var(--btn-bg);
}
.pcv-mini-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--btn-bg) center / cover no-repeat;
}
.pcv-mini-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pcv-mini-text strong {
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pcv-mini-text small {
  font-size: 12.5px;
  color: var(--text-muted);
}
.pcv-reviews {
  display: flex;
  flex-direction: column;
}
.pcv-review {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.pcv-review:first-child {
  padding-top: 0;
  border-top: 0;
}
.pcv-review a {
  color: var(--text) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}
.pcv-review a:hover {
  color: var(--link) !important;
}
.pcv-review-stars {
  margin-top: 2px;
  font-size: 12px;
}
.pcv-review p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.pcv-empty {
  margin: 28px 0 0;
  text-align: center;
  color: var(--text-muted);
}
.pcv-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: 32px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.pcv-foot a {
  color: var(--text-muted) !important;
}

@media (max-width: 900px) {
  .pcv-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pcv-id {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .pcv-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .pcv {
    padding: 4px 16px 36px;
  }
  .pcv-cover {
    height: 150px;
  }
  .pcv-id {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding: 0 18px 22px;
    text-align: center;
  }
  .pcv-avatar {
    width: 116px;
    height: 116px;
    margin-top: -58px;
    font-size: 40px;
  }
  .pcv-id-text {
    padding-top: 4px;
  }
  .pcv-id h1 {
    font-size: 27px;
  }
  .pcv-stats {
    justify-content: center;
  }
  .pcv-actions {
    grid-column: auto;
    justify-content: center;
    width: 100%;
  }
  .pcv-actions .pcv-btn {
    flex: 1 1 auto;
  }
  .pcv-biz-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pcv-videos {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }
  .pcv-video {
    scroll-snap-align: start;
  }
  .pcv-card {
    padding: 18px;
  }
  .pcv-article-cover {
    width: 88px;
    height: 64px;
  }
}
/* Monogramme décoratif dans la bannière. */
.pcv-cover-mono {
  position: absolute;
  right: 28px;
  bottom: -34px;
  color: rgba(255, 255, 255, 0.14);
  font-size: 190px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}
.pcv-mini-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.pcv-mini-thumb svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 640px) {
  .pcv-cover-mono {
    font-size: 120px;
    right: 16px;
    bottom: -22px;
  }
}
/* Badge « Investisseur de la saison » (Eyefind Bourse) parmi les compteurs. */
.pcv-stats li.pcv-stat-champion {
  background: linear-gradient(135deg, #fde293, #f9ab00);
  color: #3c2a00;
}