/* ============================================== */
/* ANNUAIRE PUBLIC · STYLE MAGAZINE PREMIUM        */
/* ============================================== */

.public-directory-body {
  background: linear-gradient(180deg, #FAF7F2 0%, #FFFFFF 100%);
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
}

.pd-section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === HEADER === */
.pd-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.92);
}

.pd-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pd-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.pd-logo img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.pd-logo-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--cbc-bordeaux);
  line-height: 1.2;
}

.pd-logo-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.pd-link-app {
  color: var(--cbc-bordeaux);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

.pd-link-app:hover {
  background: var(--cbc-bordeaux);
  color: var(--cbc-or);
}

/* === HERO === */
.pd-hero {
  background: var(--cbc-bordeaux);
  background-image: 
    radial-gradient(ellipse at top right, rgba(234,201,88,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(0,0,0,0.3) 0%, transparent 50%),
    linear-gradient(135deg, var(--cbc-bordeaux) 0%, var(--cbc-bordeaux-fonce) 100%);
  color: white;
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}

.pd-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--cbc-or) 50%, transparent 100%);
}

.pd-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.pd-hero-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--cbc-or);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}

.pd-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 600;
  color: white;
  margin: 0 0 20px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.pd-hero h1 em {
  font-style: italic;
  color: var(--cbc-or);
  font-weight: 400;
}

.pd-hero-lead {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.92;
  margin: 0 auto 36px;
  max-width: 620px;
}

.pd-search {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.pd-search input[type="search"] {
  flex: 1;
  border: none;
  padding: 16px 20px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  color: var(--text);
}

.pd-search button {
  background: var(--cbc-bordeaux);
  color: var(--cbc-or);
  border: none;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s;
}

.pd-search button:hover {
  background: var(--cbc-bordeaux-fonce);
}

/* === CATEGORIES PILLS === */
.pd-categories {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  background: white;
}

.pd-categories-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.pd-categories-list::-webkit-scrollbar { height: 4px; }
.pd-categories-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }

.pd-category-pill {
  white-space: nowrap;
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
}

.pd-category-pill:hover {
  border-color: var(--cbc-bordeaux);
  color: var(--cbc-bordeaux);
}

.pd-category-pill.active {
  background: var(--cbc-bordeaux);
  border-color: var(--cbc-bordeaux);
  color: var(--cbc-or);
}

.pd-category-count {
  font-size: 11px;
  background: rgba(0,0,0,0.08);
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
}

.pd-category-pill.active .pd-category-count {
  background: rgba(234,201,88,0.25);
}

/* === RESULTS === */
.pd-results {
  padding: 40px 0 80px;
}

.pd-results-header {
  margin-bottom: 24px;
}

.pd-results-count {
  font-size: 14px;
  color: var(--text-soft);
}

.pd-results-count strong {
  color: var(--cbc-bordeaux);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.pd-empty {
  text-align: center;
  padding: 80px 20px;
}

.pd-empty-icon {
  font-size: 64px;
  opacity: 0.3;
  margin-bottom: 16px;
}

.pd-empty h3 {
  font-family: var(--font-display);
  color: var(--cbc-bordeaux);
  font-size: 22px;
  margin-bottom: 8px;
}

.pd-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.pd-member-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pd-member-card:hover {
  transform: translateY(-4px);
  border-color: var(--cbc-or);
  box-shadow: 0 20px 50px rgba(82,7,1,0.12);
}

.pd-member-avatar {
  height: 200px;
  background: linear-gradient(135deg, #FAF1DD 0%, #F1E1B6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pd-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-avatar-initials {
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--cbc-bordeaux);
  font-weight: 600;
  letter-spacing: -2px;
}

.pd-member-content {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pd-member-category {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--cbc-or-fonce);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pd-member-name {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--cbc-bordeaux);
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.2;
}

.pd-member-company {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.pd-member-activity {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.4;
  margin-bottom: 12px;
}

.pd-member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.pd-tag {
  font-size: 11px;
  padding: 3px 10px;
  background: var(--surface-2);
  color: var(--text-soft);
  border-radius: 999px;
  font-weight: 500;
}

.pd-tag-lg {
  font-size: 13px;
  padding: 6px 14px;
  background: rgba(234,201,88,0.15);
  color: var(--cbc-bordeaux);
  font-weight: 600;
}

.pd-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd-member-badge {
  font-size: 11px;
  background: linear-gradient(135deg, var(--cbc-or-light) 0%, var(--cbc-or) 100%);
  color: var(--cbc-bordeaux);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.pd-member-cta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--cbc-bordeaux);
  font-weight: 600;
}

/* === PROFIL DÉTAIL === */
.pd-profile-hero {
  background: linear-gradient(180deg, #FAF7F2 0%, white 100%);
  padding: 50px 0 30px;
}

.pd-profile-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 720px) {
  .pd-profile-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pd-profile-avatar-wrap { display: flex; justify-content: center; }
}

.pd-profile-avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FAF1DD 0%, #F1E1B6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 16px 40px rgba(82,7,1,0.18);
}

.pd-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-avatar-initials-lg {
  font-family: var(--font-display);
  font-size: 84px;
  color: var(--cbc-bordeaux);
  font-weight: 600;
  letter-spacing: -3px;
}

.pd-profile-category {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--cbc-or-fonce);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pd-profile-name {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 44px);
  color: var(--cbc-bordeaux);
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.05;
  letter-spacing: -1px;
}

.pd-profile-company {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.pd-profile-activity {
  font-size: 16px;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.pd-profile-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--cbc-or-light) 0%, var(--cbc-or) 100%);
  color: var(--cbc-bordeaux);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: 0.3px;
}

.pd-profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .pd-profile-actions { justify-content: center; }
}

/* === PROFIL CONTENT === */
.pd-profile-content {
  padding: 40px 0 80px;
}

.pd-profile-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

@media (max-width: 920px) {
  .pd-profile-grid { grid-template-columns: 1fr; }
}

.pd-section-block {
  margin-bottom: 36px;
}

.pd-section-block h2 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--cbc-bordeaux);
  font-weight: 600;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cbc-or);
  display: inline-block;
}

.pd-prose {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

.pd-prose p {
  margin: 0 0 14px;
}

/* === SIDEBAR === */
.pd-sidebar-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 18px;
}

.pd-sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--cbc-bordeaux);
  font-weight: 600;
  margin: 0 0 16px;
}

.pd-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.pd-info-row:last-child { border-bottom: none; }

.pd-info-label {
  color: var(--text-muted);
  font-weight: 500;
}

.pd-info-row a {
  color: var(--cbc-bordeaux);
  text-decoration: none;
  font-weight: 600;
}

.pd-info-row a:hover { text-decoration: underline; }

.pd-socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: 10px;
  color: var(--cbc-bordeaux);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.pd-social-link:hover {
  background: var(--cbc-bordeaux);
  color: var(--cbc-or);
  transform: translateX(2px);
}

.pd-trust-card {
  background: linear-gradient(135deg, #FAF1DD 0%, #F1E1B6 50%, #FAF7F2 100%);
  border: 1px solid var(--cbc-or);
}

/* === FOOTER === */
.pd-footer {
  background: var(--cbc-bordeaux);
  color: white;
  padding: 40px 0;
  text-align: center;
}

.pd-footer p {
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.92;
}

.pd-footer a {
  color: var(--cbc-or);
  text-decoration: none;
  font-weight: 600;
}

.pd-footer a:hover { text-decoration: underline; }

/* Toast success variant */
.toast-success {
  background: #065F46 !important;
  color: white;
}
