/* ============================================================
   CRÉATEURS & DESIGNERS LEGO – Charte graphique Deparkatre
   Palette : --navy #16334c | --warm #faf7f1
             --ink #193044  | --muted #62717b
             --accent #f17b32 | --line #e3e8e3
   ============================================================ */

/* ---- HERO -------------------------------------------------- */
.crea-hero {
  padding: 30px 0 10px;
}
.crea-hero-copy {
  max-width: 820px;
}
.crea-hero-copy .eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
}
.crea-hero-copy h1 {
  color: var(--navy);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.03em;
  margin: 0 0 12px;
  line-height: 1.15;
}
.crea-hero-lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.crea-hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.crea-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transition: all .15s ease;
  text-decoration: none;
}
.crea-pill:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  transform: translateY(-1px);
}
.crea-pill.is-lcp { border-color: #bcd0e2; background: #eef4f9; color: var(--navy); font-weight: 800; }
.crea-pill.is-artiste { border-color: #ffd8c0; background: #fff5ee; color: #b84f10; }
.crea-pill.is-designer { border-color: #c8e4ed; background: #e8f4f8; color: #1b6f8a; }
.crea-pill.is-plateforme { border-color: #c7eedc; background: #eefbf4; color: #176b4d; }
.crea-pill.is-map { background: var(--navy); color: #fff; border-color: var(--navy); }
.crea-pill.is-map:hover { background: #0f2436; }

/* ---- SECTIONS PAR GROUPE ----------------------------------- */
.crea-section {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.crea-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.crea-section-badge-wrap {
  margin-bottom: 6px;
}
.crea-section-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.crea-section-badge.is-lcp {
  background: var(--navy);
  color: #fff;
}
.crea-section-badge.is-artiste {
  background: var(--accent);
  color: #fff;
}
.crea-section-badge.is-designer {
  background: #1b6f8a;
  color: #fff;
}
.crea-section-badge.is-plateforme {
  background: #176b4d;
  color: #fff;
}
.crea-section-badge.is-autre {
  background: #64748b;
  color: #fff;
}
.crea-section-title {
  margin: 0 0 6px;
  font-size: 24px;
  color: var(--navy);
  letter-spacing: -.02em;
}
.crea-section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.crea-section-count {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

/* Grille des cartes */
.crea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

/* ---- CARTES DE CRÉATEURS ---------------------------------- */
.crea-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(22, 51, 76, .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.crea-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(22, 51, 76, .10);
  border-color: #cbd5e1;
}

/* Variantes visuelles selon catégorie */
.crea-card.is-lcp {
  border-top: 3px solid var(--navy);
}
.crea-card.is-artiste {
  border-top: 3px solid var(--accent);
}
.crea-card.is-designer {
  border-top: 3px solid #1b6f8a;
}
.crea-card.is-plateforme {
  border-top: 3px solid #176b4d;
}
.crea-card.is-autre {
  border-top: 3px solid #64748b;
}

.crea-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px 12px;
}
.crea-card-visual {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.crea-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}
.crea-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  color: var(--navy);
  font-weight: 850;
  font-size: 18px;
  letter-spacing: .02em;
}

.crea-card-titles {
  flex: 1;
  min-width: 0;
}
.crea-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.crea-badge-cat {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.crea-badge-cat.is-lcp {
  background: #eef3f7;
  color: var(--navy);
  border: 1px solid #d0dee8;
}
.crea-badge-cat.is-artiste {
  background: #fff5ee;
  color: #b84f10;
  border: 1px solid #ffd8c0;
}
.crea-badge-cat.is-designer {
  background: #e8f4f8;
  color: #1b6f8a;
  border: 1px solid #c8e4ed;
}
.crea-badge-cat.is-plateforme {
  background: #eefbf4;
  color: #176b4d;
  border: 1px solid #c7eedc;
}
.crea-badge-cat.is-autre {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.crea-badge-verifie {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 750;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.crea-card-name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.25;
  overflow-wrap: break-word;
}
.crea-card-loc {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.crea-card-body {
  flex: 1;
  padding: 0 18px 12px;
}
.crea-card-spec {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #374151;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.crea-card-foot {
  padding: 10px 18px 14px;
  border-top: 1px solid #f1f5f9;
  background: #fafbfc;
}
.crea-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
  transition: color .15s ease;
}
.crea-card-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}
.crea-card-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ---- PROFIL DÉTAILLÉ --------------------------------------- */
.crea-profile-dialog {
  width: min(620px, calc(100vw - 32px));
  max-width: 620px;
  max-height: min(82vh, 720px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(15, 35, 54, .28);
}
.crea-profile-dialog::backdrop {
  background: rgba(15, 35, 54, .62);
  backdrop-filter: blur(3px);
}
.crea-profile-dialog-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc, #eef4f9);
  border-bottom: 1px solid var(--line);
}
.crea-profile-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  overflow: hidden;
  color: var(--navy);
  background: #e2e8f0;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 20px;
  font-weight: 850;
}
.crea-profile-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.crea-profile-heading {
  flex: 1;
  min-width: 0;
}
.crea-profile-category {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.crea-profile-heading h2 {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: clamp(20px, 4vw, 26px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.crea-profile-location {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.crea-profile-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin: -12px -12px auto auto;
  padding: 0;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.crea-profile-dialog-body {
  padding: 24px;
}
.crea-profile-dialog-body h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 15px;
}
.crea-profile-dialog-body p {
  margin: 0;
  color: #374151;
  font-size: 14px;
  line-height: 1.7;
}
.crea-profile-visit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding: 10px 16px;
  color: #fff;
  background: var(--navy);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.crea-profile-visit:hover {
  background: #0f2436;
}
.crea-profile-visit svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}
@media (max-width: 480px) {
  .crea-profile-dialog-head,
  .crea-profile-dialog-body {
    padding: 18px;
  }
  .crea-profile-visual {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
  }
}

/* ---- CARTE MAPLIBRE CRÉATEURS ----------------------------- */
.crea-map-section {
  margin-top: 50px;
  padding: 26px 0;
  border-top: 2px solid var(--line);
}
.crea-map-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.crea-map-headings {
  max-width: 600px;
}
.crea-map-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.crea-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.crea-map-filters {
  display: inline-flex;
  background: var(--soft);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.crea-filter-btn {
  border: 0;
  background: transparent;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s ease;
}
.crea-filter-btn:hover {
  color: var(--ink);
}
.crea-filter-btn.is-active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
.crea-filter-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: var(--ink);
}
.crea-filter-btn.is-active .crea-filter-badge {
  background: var(--navy);
  color: #fff;
}

.crea-map-actions {
  display: flex;
  gap: 8px;
}
.crea-action-btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
}
.crea-action-btn:hover {
  background: var(--soft);
  border-color: #cbd5e1;
}

.crea-map-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  min-height: 540px;
}
@media (max-width: 900px) {
  .crea-map-layout {
    grid-template-columns: 1fr;
  }
}
.crea-map-main {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(22, 51, 76, .06);
  min-height: 480px;
}
.crea-map-canvas {
  width: 100%;
  height: 100%;
  min-height: 480px;
}

.crea-map-footer-legend {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(4px);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 11px;
  font-weight: 650;
  color: var(--ink);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.crea-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.crea-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.crea-legend-dot.is-lcp { background: var(--navy); }
.crea-legend-dot.is-artiste { background: var(--accent); }
.crea-legend-dot.is-designer { background: #1b6f8a; }
.crea-legend-dot.is-plateforme { background: #176b4d; }
.crea-legend-tip {
  color: var(--muted);
  font-size: 10px;
}

/* Volet latéral liste */
.crea-map-sidebar {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  max-height: 560px;
}
.crea-map-sidebar-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
}
.crea-sidebar-title {
  margin: 0 0 2px;
  font-size: 14px;
  color: var(--navy);
  font-weight: 750;
}
.crea-sidebar-hint {
  font-size: 11px;
  color: var(--muted);
}
.crea-map-sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.crea-sidebar-item {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .12s ease;
  margin-bottom: 4px;
}
.crea-sidebar-item:hover, .crea-sidebar-item.is-selected {
  background: var(--soft);
  border-color: var(--line);
}
.crea-sidebar-item-name {
  font-size: 13px;
  font-weight: 750;
  color: var(--ink);
  margin-bottom: 2px;
}
.crea-sidebar-item-meta {
  font-size: 11px;
  color: var(--muted);
}

/* Marqueurs MapLibre */
.crea-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
  cursor: pointer;
  border: 2px solid #fff;
  transition: transform .15s ease;
}
.crea-marker:hover {
  transform: scale(1.18);
  z-index: 10;
}
.crea-marker.is-lcp { background: var(--navy); }
.crea-marker.is-artiste { background: var(--accent); }
.crea-marker.is-designer { background: #1b6f8a; }
.crea-marker.is-plateforme { background: #176b4d; }
.crea-marker.is-autre { background: #64748b; }

/* Popup MapLibre */
.crea-popup-card {
  padding: 12px 14px;
  max-width: 260px;
}
.crea-popup-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.crea-popup-badge.is-lcp { background: #eef3f7; color: var(--navy); }
.crea-popup-badge.is-artiste { background: #fff5ee; color: #b84f10; }
.crea-popup-badge.is-designer { background: #e8f4f8; color: #1b6f8a; }
.crea-popup-badge.is-plateforme { background: #eefbf4; color: #176b4d; }
.crea-popup-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 750;
  color: var(--ink);
}
.crea-popup-loc {
  margin: 0 0 6px;
  font-size: 11px;
  color: var(--muted);
}
.crea-popup-spec {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #374151;
}
.crea-popup-link {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 750;
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
}
.crea-popup-link:hover {
  text-decoration: underline;
}

/* ---- CTA PROPOSER UN CRÉATEUR ----------------------------- */
.crea-propose-cta {
  margin: 60px 0 20px;
  padding: 28px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.crea-propose-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 680px) {
  .crea-propose-inner {
    flex-direction: column;
    text-align: center;
  }
}
.crea-propose-icon {
  font-size: 36px;
  flex-shrink: 0;
}
.crea-propose-text {
  flex: 1;
}
.crea-propose-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 750;
  color: var(--navy);
}
.crea-propose-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.crea-propose-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition: all .15s ease;
}
.crea-propose-btn:hover {
  background: #0f2436;
  transform: translateY(-1px);
}

/* ---- FORMULAIRE DE PROPOSITION ---------------------------- */
.crea-intro {
  margin-bottom: 24px;
}
.crea-intro h1 {
  font-size: 28px;
  color: var(--navy);
  margin: 8px 0 10px;
}
.crea-intro p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.crea-form {
  max-width: 720px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
}
.crea-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}
.crea-form input,
.crea-form select,
.crea-form textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}
.crea-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .crea-form-row {
    grid-template-columns: 1fr;
  }
}
.crea-submit-btn {
  margin-top: 10px;
}
