/* ---------------------------------------------------------------------
   ShootRadar — design tokens
   Palette : fond froid clair / encre profonde, accent corail (golden hour),
   sarcelle secondaire (localisation). Fraunces (display) + Inter (UI).
--------------------------------------------------------------------- */
:root {
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --text: #171A21;
  --text-muted: #5B6472;
  --border: #E2E5EA;

  --accent: #FF6B4A;
  --accent-hover: #E85A3B;
  --accent-soft: #FFE7E0;
  --accent-contrast: #FFFFFF;

  --teal: #147D82;
  --teal-soft: #DCF2F1;

  --danger: #C4432E;
  --success: #1F7A4D;
  --success-soft: #E1F3E7;

  --shadow-sm: 0 1px 2px rgba(23, 26, 33, 0.06);
  --shadow-md: 0 8px 24px rgba(23, 26, 33, 0.08);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171C;
    --surface: #1C2027;
    --surface-raised: #21262E;
    --text: #ECEEF2;
    --text-muted: #9AA3B2;
    --border: #2B303A;

    --accent: #FF8265;
    --accent-hover: #FF9678;
    --accent-soft: rgba(255, 130, 101, 0.16);
    --accent-contrast: #171A21;

    --teal: #4FC7C3;
    --teal-soft: rgba(79, 199, 195, 0.16);

    --danger: #FF8A75;
    --success: #6FCB98;
    --success-soft: rgba(111, 203, 152, 0.14);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  --bg: #14171C;
  --surface: #1C2027;
  --surface-raised: #21262E;
  --text: #ECEEF2;
  --text-muted: #9AA3B2;
  --border: #2B303A;

  --accent: #FF8265;
  --accent-hover: #FF9678;
  --accent-soft: rgba(255, 130, 101, 0.16);
  --accent-contrast: #171A21;

  --teal: #4FC7C3;
  --teal-soft: rgba(79, 199, 195, 0.16);

  --danger: #FF8A75;
  --success: #6FCB98;
  --success-soft: rgba(111, 203, 152, 0.14);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ---------------------------------------------------------------------
   Base
--------------------------------------------------------------------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }

/* --- RTL (arabe) --- */
[dir="rtl"] .story-quote {
  border-left: 0;
  border-right: 3px solid var(--accent);
  padding: 2px 24px 2px 0;
}
[dir="rtl"] .story-author { margin: 14px 27px 0 0; }
[dir="rtl"] .trip-del { margin-left: 0; margin-right: auto; }
[dir="rtl"] .how-num,
[dir="rtl"] .hero-cat,
[dir="rtl"] .hero-headline { text-align: inherit; }

html { color-scheme: light dark; }
body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
.lead { color: var(--text-muted); font-size: 1.1rem; max-width: 62ch; }

a { color: var(--teal); }

button, input, select, textarea { font-family: inherit; font-size: 1rem; color: inherit; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6em;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------------------
   Header
--------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin-right: auto;
}

.logo-mark { color: var(--accent); font-size: 1.1em; }

.main-nav { display: flex; align-items: center; gap: 22px; }

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--text); border-bottom-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle,
.lang-select {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  max-width: 9.5rem;
}
.lang-toggle:hover,
.lang-select:hover { border-color: var(--accent); color: var(--accent); }
.lang-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 18px;
    gap: 14px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
}

/* ---------------------------------------------------------------------
   Layout helpers
--------------------------------------------------------------------- */
#app { max-width: var(--container); margin: 0 auto; padding: 0 24px 80px; }

.narrow-section { max-width: 560px; margin: 56px auto 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.btn-danger-ghost { background: transparent; border: 1px solid var(--border); color: var(--danger); }
.btn-danger-ghost:hover { border-color: var(--danger); }

.link-btn {
  background: none; border: none; color: var(--teal); font-weight: 500;
  cursor: pointer; padding: 4px 0; margin-top: 10px;
}

/* ---------------------------------------------------------------------
   Home
--------------------------------------------------------------------- */
.hero { padding: 72px 0 56px; max-width: 720px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* ---- New full-bleed hero (mockup direction) ---- */
.home-hero {
  position: relative;
  margin-left: calc(-1 * (100vw - 100%) / 2);
  margin-right: calc(-1 * (100vw - 100%) / 2);
  margin-top: -1px;
  margin-bottom: 40px;
  padding: clamp(48px, 8vw, 92px) 24px clamp(52px, 8vw, 92px);
  color: #fff;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  /* Sunset — remplacé par la photo si --hero-photo est défini */
  background-color: #2a1c17;
  background-image:
    var(--hero-photo, linear-gradient(transparent, transparent)),
    linear-gradient(180deg,
      #5b5d70 0%,
      #7c6470 18%,
      #c47a4a 40%,
      #ef9a52 55%,
      #d06a34 66%,
      #7a3620 80%,
      #1c1310 100%);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-blend-mode: overlay, normal;
}
.home-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 50% 8%, transparent 40%, rgba(10,7,6,0.5) 100%);
}

.hero-globe {
  position: absolute;
  left: 50%;
  bottom: clamp(-360px, -28vw, -170px);
  transform: translateX(-50%);
  width: min(132vw, 1000px);
  height: auto;
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
  -webkit-mask-image: linear-gradient(to bottom, transparent 2%, #000 24%, #000 60%, transparent 94%);
  mask-image: linear-gradient(to bottom, transparent 2%, #000 24%, #000 60%, transparent 94%);
}
.home-hero-inner { position: relative; z-index: 1; }

.home-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(22px, 3.5vw, 38px);
}

/* wordmark */
.wordmark {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 26px 40px;
  color: #fff;
  line-height: 1;
  direction: ltr;
}
.wm-bracket { position: absolute; width: 26px; height: 26px; border: 2.5px solid currentColor; }
.wm-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.wm-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.wm-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.wm-br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.wm-line {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.34em;
  display: inline-flex;
  align-items: center;
}
.wm-line1 { font-size: clamp(1.7rem, 5vw, 2.5rem); gap: 0.06em; }
.wm-line2 { font-size: clamp(1.35rem, 4vw, 2rem); letter-spacing: 0.52em; margin-left: 0.52em; }
.wm-lens { width: 0.86em; height: 0.86em; }

.hero-kicker {
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 1.6vw, 0.82rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  margin: 0;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
  color: #fff;
}
.hero-script {
  display: block;
  font-family: "Caveat", "Segoe Script", cursive;
  font-weight: 700;
  font-size: clamp(2.6rem, 8.5vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: 0;
  margin-top: 0.12em;
  color: #fff;
  border-bottom: 2px solid rgba(255,255,255,0.55);
  padding-bottom: 0.06em;
}

.hero-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px clamp(20px, 5vw, 44px);
}
.hero-cat {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}
.hero-cat svg { width: 30px; height: 30px; }

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #1a1210;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 16px 32px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.btn-hero:hover { transform: translateY(-2px); color: #1a1210; }
.btn-hero-text {
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn-hero-text:hover { color: #fff; }

@media (max-width: 560px) {
  .hero-cats { gap: 16px 22px; }
  .hero-cat:nth-child(n) { flex: 0 0 40%; }
}

.story { padding: 8px 0 40px; max-width: 720px; }
.story-quote {
  margin: 0; padding: 2px 0 2px 24px; border-left: 3px solid var(--accent);
}
.story-quote p {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 1.2rem; line-height: 1.5; color: var(--text); margin: 0;
}
.story-author {
  margin: 14px 0 0 27px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
}

.how { padding: 48px 0; border-top: 1px solid var(--border); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; }
.how-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px; }
.how-num {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  color: var(--accent); font-size: 1.6rem; margin-bottom: 10px;
}
.how-step p { color: var(--text-muted); margin-bottom: 0; }

.safety {
  margin-top: 20px; padding: 26px 28px; border-radius: var(--radius-md);
  background: var(--teal-soft); border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent);
}
.safety h2 { font-size: 1.2rem; }
.safety p { color: var(--text); margin-bottom: 0; }

.destinations { padding: 48px 0 8px; }
.destinations-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px; margin-top: 24px;
}
.destination-card {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px 18px; transition: transform 0.12s ease, border-color 0.12s ease;
}
.destination-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.destination-flag { font-size: 1.8rem; line-height: 1; }
.destination-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.destination-text { color: var(--text-muted); font-size: 0.82rem; }

@media (max-width: 760px) {
  .how-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Explore
--------------------------------------------------------------------- */
.explore-head { padding: 44px 0 8px; max-width: 640px; }

.filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 4px;
}
.filters select, .filters input[type="search"] {
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
}
.filters input[type="search"] { flex: 1; min-width: 180px; }

.results-count { color: var(--text-muted); font-size: 0.9rem; margin: 10px 0 20px; }

.explore-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.map {
  height: 460px; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border); position: sticky; top: 84px;
}

.results-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; align-content: start;
}

@media (max-width: 900px) {
  .explore-body { grid-template-columns: 1fr; }
  .map { position: static; height: 320px; }
}

.empty-state {
  grid-column: 1 / -1; color: var(--text-muted); background: var(--surface);
  border: 1px dashed var(--border); border-radius: var(--radius-md); padding: 28px; text-align: center;
}

/* Profile card */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px;
}
.card-top { display: flex; gap: 12px; align-items: center; }
.card-top h3 { margin: 0; font-size: 1.02rem; }

.avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border);
}
.avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-hover); font-weight: 700; font-size: 0.9rem;
}

.location { margin: 2px 0 0; color: var(--text-muted); font-size: 0.85rem; }
.distance { color: var(--teal); font-weight: 600; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.02em;
}
.badge-role { background: var(--teal-soft); color: var(--teal); }
.badge-avail-tfp { background: var(--accent-soft); color: var(--accent-hover); }
.badge-avail-paid { background: var(--success-soft); color: var(--success); }
.badge-avail-both { background: var(--border); color: var(--text-muted); }
.badge-trip { background: var(--accent-soft); color: var(--accent-hover); }

/* Badge fondateur — dégradé animé */
.badge-founder {
  color: #fff;
  background: linear-gradient(110deg, #FF6B4A, #FF9E3D, #147D82, #7A5CFF, #FF6B4A);
  background-size: 300% 100%;
  animation: founderShift 6s linear infinite;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 35%, transparent);
}
@keyframes founderShift {
  to { background-position: 300% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .badge-founder { animation: none; }
}

/* ---------------------------------------------------------------------------
   Panneau admin / fondateur
   --------------------------------------------------------------------------- */
.admin-view { max-width: 860px; margin: 0 auto; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.admin-tab {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); font-weight: 600;
  font-size: 0.85rem; cursor: pointer; font-family: inherit;
}
.admin-tab:hover { border-color: var(--accent); color: var(--accent); }
.admin-tab.active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast, #fff); }
.admin-count { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 12px; }
.admin-list { display: flex; flex-direction: column; gap: 14px; }
.admin-row {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); padding: 16px;
}
.admin-row-head { display: flex; gap: 12px; align-items: flex-start; }
.admin-row-head .avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.admin-row-head > div { display: flex; flex-direction: column; gap: 3px; }
.admin-row-head strong { font-size: 1rem; }
.admin-meta { color: var(--text-muted); font-size: 0.85rem; }
.admin-status {
  align-self: flex-start; margin-top: 2px; font-size: 0.72rem; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; letter-spacing: 0.02em;
}
.admin-status-pending { background: var(--border); color: var(--text-muted); }
.admin-status-approved { background: var(--success-soft); color: var(--success); }
.admin-status-rejected { background: var(--danger-soft, color-mix(in srgb, var(--danger) 16%, transparent)); color: var(--danger); }
.admin-bio { color: var(--text); font-size: 0.9rem; margin: 10px 0 0; }
.admin-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.admin-thumb { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); display: block; }
.admin-thumb-link { display: block; line-height: 0; }
.admin-thumb-link:hover .admin-thumb { border-color: var(--accent); }
.admin-thumbs-priv .admin-thumb { border-color: #d98b00; }
.admin-detail { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px; }
.admin-detail summary { cursor: pointer; font-size: 0.85rem; color: var(--text-muted); user-select: none; }
.admin-detail summary:hover { color: var(--text); }
.admin-priv-flag { color: #d98b00; font-weight: 600; }
.admin-links { font-size: 0.85rem; margin: 8px 0 4px; line-height: 1.7; word-break: break-word; }
.admin-links a { color: var(--accent); }
.admin-media-label { font-size: 0.8rem; color: var(--text-muted); margin: 10px 0 0; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.admin-actions .btn { font-size: 0.82rem; padding: 7px 12px; }

.bio { color: var(--text); font-size: 0.92rem; margin: 0; }

.verified-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; background: var(--teal); color: #fff;
  font-size: 10px; font-weight: 700; vertical-align: middle;
}

.card-contacts { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.86rem; font-weight: 600; margin-top: auto; }
.card-contacts a { text-decoration: none; }
.card-contacts a:hover { text-decoration: underline; }

.popup { font-family: var(--font-body); font-size: 0.85rem; line-height: 1.4; }
.popup-trip { color: var(--accent-hover); font-weight: 600; }

/* ---- Explore : onglets Profils / Voyageurs ---- */
.explore-tabs { display: flex; gap: 6px; margin: 20px 0 4px; }
.explore-tab {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 0.85rem; cursor: pointer;
}
.explore-tab:hover { border-color: var(--accent); color: var(--accent); }
.explore-tab.active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }

#arrivingBanner {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
  margin: 12px 0 0; padding: 12px 16px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius-md); font-size: 0.9rem; font-weight: 600;
}

/* ---- Cartes voyageurs ---- */
.trip-card { gap: 12px; }
.trip-card-now { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.trip-card-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.trip-plane { font-size: 1.1rem; }
.trip-dest { font-weight: 700; font-size: 1.05rem; }
.trip-dates { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; }
.trip-card-note { margin: 0; font-size: 0.88rem; color: var(--text); font-style: italic; }

/* ---- Profil : section Mes voyages ---- */
.trips-fieldset { gap: 12px; }
.trips-sub { margin: 0; font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }
.trips-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.trips-empty { color: var(--text-muted); font-size: 0.88rem; font-weight: 400; }
.trip-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  padding: 10px 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 400;
}
.trip-where { font-weight: 600; }
.trip-when { color: var(--text-muted); }
.trip-note { font-style: italic; color: var(--text-muted); }
.trip-del { margin-left: auto; color: var(--danger); }
.trip-add {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 14px; border: 1px dashed var(--border); border-radius: var(--radius-sm);
}
.trip-add .full { grid-column: 1 / -1; }
.trip-add label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.82rem; }
.trip-add input {
  font-weight: 400; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
}
@media (max-width: 600px) {
  .trip-add { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Forms (profile + auth)
--------------------------------------------------------------------- */
.verification-box {
  margin: 24px 0 8px; padding: 20px 22px; border-radius: var(--radius-md);
  border: 1px dashed var(--border); background: var(--surface);
}
.verification-box h3 { margin: 0 0 6px; font-size: 1rem; }
.verification-box p { margin: 0 0 14px; color: var(--text-muted); font-size: 0.9rem; }
.verification-box .btn { margin-bottom: 10px; }
.verification-note { font-size: 0.8rem !important; margin: 0 !important; }
.verification-box.verified {
  border-style: solid; border-color: color-mix(in srgb, var(--teal) 40%, transparent);
  background: var(--teal-soft);
}
.verification-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.form-grid label, .form-grid fieldset { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.88rem; }
.form-grid .full { grid-column: 1 / -1; }

.form-grid input[type="text"],
.form-grid input[type="email"],
.form-grid input[type="url"],
.form-grid input[type="password"],
.form-grid textarea {
  font-weight: 400; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.form-grid textarea { resize: vertical; }

.form-grid fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.form-grid legend { padding: 0 6px; font-size: 0.82rem; }
.checkbox, .radio { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 400 !important; margin: 4px 0; }

.location-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.location-status { color: var(--teal); font-size: 0.85rem; font-weight: 600; }

.form-message { grid-column: 1 / -1; font-size: 0.88rem; font-weight: 600; margin: 0; min-height: 1.2em; }
.form-message.error { color: var(--danger); }
.form-message.success { color: var(--success); }

.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Auth tabs */
.auth-section { margin-top: 60px; }
.auth-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.auth-tab {
  background: none; border: none; padding: 10px 4px; margin-right: 18px;
  font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent;
}
.auth-tab.active { color: var(--text); border-bottom-color: var(--accent); }

/* ---------------------------------------------------------------------
   Footer
--------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 64px; }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 28px 24px 40px; color: var(--text-muted); font-size: 0.85rem; }
.footer-inner p { margin: 0 0 8px; }
.footer-muted { max-width: 70ch; }

/* ---------------------------------------------------------------------
   Messagerie
--------------------------------------------------------------------- */
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 0.68rem; font-weight: 700;
  vertical-align: middle;
}

.messages-view h1 { margin-bottom: 18px; }
.conv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.conv-list li { border-bottom: 1px solid var(--border); }
.conv-empty { padding: 24px 4px; color: var(--text-muted); font-size: 0.92rem; }
.conv-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 4px;
  text-decoration: none; color: var(--text);
}
.conv-row:hover { background: var(--surface); }
.conv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.conv-name { font-weight: 600; font-size: 0.95rem; }
.conv-last {
  color: var(--text-muted); font-size: 0.86rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.conv-time { color: var(--text-muted); font-size: 0.75rem; flex: none; }
.conv-row.unread .conv-name { color: var(--text); }
.conv-row.unread .conv-last { color: var(--text); font-weight: 600; }
.conv-row.unread::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none;
}

.thread-view { display: flex; flex-direction: column; height: calc(100vh - 220px); min-height: 420px; }
.thread-head {
  display: flex; align-items: center; gap: 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.thread-back {
  font-size: 1.3rem; text-decoration: none; color: var(--text);
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
.thread-back:hover { background: var(--surface); }
.thread-name { font-weight: 700; font-size: 1.05rem; }
.thread-body {
  flex: 1; overflow-y: auto; padding: 16px 2px; display: flex; flex-direction: column; gap: 8px;
}
.msg {
  max-width: 78%; padding: 9px 13px; border-radius: 16px; font-size: 0.92rem; line-height: 1.4;
  display: flex; flex-direction: column; gap: 3px;
}
.msg-text { white-space: pre-wrap; word-break: break-word; }
.msg-time { font-size: 0.68rem; opacity: 0.6; align-self: flex-end; }
.msg-mine { align-self: flex-end; background: var(--accent); color: var(--accent-contrast); border-bottom-right-radius: 4px; }
.msg-theirs { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
[dir="rtl"] .msg-mine { align-self: flex-start; border-bottom-right-radius: 16px; border-bottom-left-radius: 4px; }
[dir="rtl"] .msg-theirs { align-self: flex-end; border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }

.thread-composer {
  display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border);
}
.thread-composer input {
  flex: 1; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 0.95rem;
}
.thread-composer .btn { border-radius: 999px; padding: 12px 22px; }

.btn-msg {
  background: var(--accent-soft); color: var(--accent-hover);
  border: none; border-radius: 999px; padding: 5px 12px;
  font-weight: 600; font-size: 0.82rem; cursor: pointer; font-family: inherit;
}
.btn-msg:hover { background: var(--accent); color: #fff; }

.thread-translate {
  margin-left: auto; background: none; border: 1px solid var(--border);
  border-radius: 999px; width: 34px; height: 34px; cursor: pointer; font-size: 0.95rem;
  display: inline-flex; align-items: center; justify-content: center;
}
[dir="rtl"] .thread-translate { margin-left: 0; margin-right: auto; }
.thread-translate.on { background: var(--accent-soft); border-color: var(--accent); }
.msg-orig-toggle {
  background: none; border: none; padding: 0; cursor: pointer;
  font-size: 0.68rem; opacity: 0.7; text-decoration: underline; color: inherit; font-family: inherit;
  align-self: flex-start;
}
.msg-mine .msg-orig-toggle { align-self: flex-end; }

/* ---------------------------------------------------------------------------
   Photos : upload profil + portfolio
   --------------------------------------------------------------------------- */
.photo-fieldset { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; }
.photo-fieldset legend { font-weight: 700; padding: 0 6px; }
.file-btn { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.file-btn.full { width: 100%; justify-content: center; margin-top: 10px; }

.avatar-upload { display: flex; gap: 16px; align-items: center; }
.avatar-preview {
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--accent-soft); color: var(--accent-hover);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.4rem;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photo-grid-empty { color: var(--text-muted); font-size: 0.88rem; margin: 0; grid-column: 1 / -1; }
.photo-cell { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; }
.photo-del {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.6); color: #fff; font-size: 15px; line-height: 1; cursor: pointer;
}

.card-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; margin: 4px 0 12px; }
.card-gallery-item { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; border: 1px solid var(--border); }
.card-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.card-gallery-item:hover img { transform: scale(1.05); }

/* Album privé */
.album-fieldset { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.album-warning {
  font-size: 0.82rem; color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent);
  border-radius: var(--radius-sm); padding: 8px 10px; margin: 0 0 10px;
}
.album-lock {
  display: block; width: 100%; margin: 4px 0 12px; padding: 10px 12px;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--border));
  background: var(--accent-soft); color: var(--accent-hover);
  border-radius: var(--radius-sm); font: inherit; font-weight: 600; cursor: pointer;
}
.album-lock:hover { border-style: solid; }
.album-lock[disabled] { opacity: 0.65; cursor: default; }
.album-open { margin: 0 0 12px; }

.album-requests { margin-top: 16px; }
.album-requests h4 { margin: 0 0 8px; font-size: 0.95rem; }
.album-req-row, .admin-report-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; margin-bottom: 8px;
}
.album-req-name { font-weight: 600; }
.album-req-actions { display: flex; gap: 6px; margin-left: auto; }
.album-req-actions .btn { font-size: 0.8rem; padding: 6px 10px; }
.album-status { font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.album-status-pending { background: var(--border); color: var(--text-muted); }
.album-status-approved { background: var(--success-soft); color: var(--success); }
.album-status-rejected { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }

.card-report { margin-top: 8px; }
.report-btn, .report-target {
  background: none; border: none; padding: 0; cursor: pointer; font: inherit;
  font-size: 0.78rem; color: var(--text-muted); text-decoration: underline;
}
.report-btn:hover { color: var(--danger); }

.admin-reports { margin-bottom: 20px; }
.admin-reports-title { font-size: 1rem; color: var(--danger); margin: 0 0 10px; }
.admin-report-row { flex-direction: column; align-items: flex-start; }
.admin-report-reason { margin: 4px 0; font-size: 0.9rem; }

/* Modale générique */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-card {
  background: var(--surface); color: var(--text); border-radius: var(--radius-lg);
  padding: 24px; max-width: 440px; width: 100%; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-card h3 { margin: 0 0 10px; }
.modal-card textarea { width: 100%; margin-top: 8px; }
.modal-close {
  position: absolute; top: 10px; right: 12px; background: none; border: none;
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--text-muted);
}
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.report-thanks { text-align: center; padding: 20px 0; font-weight: 600; }

/* ---------------------------------------------------------------------------
   Offres payantes / mise en avant
   --------------------------------------------------------------------------- */
.badge-featured {
  background: linear-gradient(100deg, #FFB300, #FF6B4A);
  color: #fff; font-weight: 700;
}
.profile-card-featured {
  border-color: color-mix(in srgb, #FFB300 55%, var(--border));
  box-shadow: 0 4px 20px color-mix(in srgb, #FFB300 22%, transparent);
}

.premium-view .lead { margin-bottom: 8px; }
.premium-login { margin: 0 0 16px; }
.premium-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin: 20px 0 16px;
}
.premium-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; background: var(--surface); display: flex; flex-direction: column; gap: 10px;
}
.premium-card-hl {
  border-color: color-mix(in srgb, #FFB300 55%, var(--border));
  box-shadow: 0 6px 24px color-mix(in srgb, #FFB300 20%, transparent);
}
.premium-card h3 { margin: 0; font-size: 1.15rem; }
.premium-price { font-size: 1.4rem; font-weight: 700; color: var(--accent); margin: 0; }
.premium-card ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; }
.premium-card .btn { margin-top: auto; }
.premium-soon { margin-top: auto; color: var(--text-muted); font-size: 0.88rem; font-style: italic; }
.premium-note { font-size: 0.82rem; color: var(--text-muted); }

/* ---------------------------------------------------------------------------
   Favoris + demandes de discussion
   --------------------------------------------------------------------------- */
.fav-btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  border-radius: 999px; width: 34px; height: 34px; font-size: 15px; line-height: 1;
  cursor: pointer; flex: none; transition: transform .12s, color .12s, border-color .12s;
}
.fav-btn:hover { color: var(--accent); border-color: var(--accent); }
.fav-btn.on { color: #fff; background: var(--accent); border-color: var(--accent); }
.fav-btn.on:hover { transform: scale(1.08); }

.badge-match { background: var(--teal-soft); color: var(--teal); }

.fav-view { max-width: 640px; }
.fav-tabs { display: flex; gap: 8px; margin: 14px 0; }
.fav-tab {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); font-weight: 600; font-size: 0.85rem;
  cursor: pointer; font-family: inherit;
}
.fav-tab.active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast, #fff); }
.fav-list { display: flex; flex-direction: column; gap: 10px; }
.fav-row {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px; background: var(--surface);
}
.fav-row .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.fav-row-main { flex: 1; min-width: 0; }
.fav-row-actions { display: flex; align-items: center; gap: 8px; }
.fav-row-actions .btn-msg { font-size: 0.8rem; padding: 6px 10px; }

.conv-requests { margin-bottom: 6px; }
.conv-requests-title { font-size: 0.95rem; margin: 4px 0 8px; color: var(--accent); }
.conv-row-request { background: var(--accent-soft); border-radius: var(--radius-md); }
.conv-row-request .conv-last { color: var(--accent-hover); }
.conv-row-pending { opacity: 0.7; }
.conv-badge-dot { color: var(--accent); font-size: 22px; line-height: 1; }

.thread-gate {
  padding: 16px; border-top: 1px solid var(--border); background: var(--surface);
  text-align: center;
}
.thread-gate-msg { margin: 0 0 10px; color: var(--text); font-size: 0.92rem; }
.thread-gate-actions { display: flex; gap: 8px; justify-content: center; }

/* ---------------------------------------------------------------------------
   Studios en location
   --------------------------------------------------------------------------- */
.studio-card { padding: 0; overflow: hidden; }
.studio-cover { aspect-ratio: 16 / 9; background: var(--border); }
.studio-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.studio-body { padding: 16px; }
.studio-body h3 { margin: 6px 0 2px; }
.studio-price { font-weight: 700; color: var(--accent); margin: 4px 0; }
.studio-equip { font-size: 0.85rem; color: var(--text-muted); margin: 6px 0; }
.studio-add-cta { grid-column: 1 / -1; text-align: center; padding: 8px 0; }

.studio-promo {
  display: block; text-align: center; margin: 0 0 18px; padding: 12px;
  border: 1px dashed color-mix(in srgb, var(--teal) 45%, var(--border));
  border-radius: var(--radius-md); background: var(--teal-soft);
  color: var(--teal); font-weight: 600; text-decoration: none;
}
.studio-promo:hover { border-style: solid; }

.studio-form-view .studio-status-line { display: inline-block; margin: 0 0 8px; }
.admin-studios { margin-bottom: 20px; }

/* Footer legal links + legal pages */
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.82rem; text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }

.legal-view { max-width: 760px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.legal-tab {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); font-weight: 600; font-size: 0.85rem;
  cursor: pointer; font-family: inherit;
}
.legal-tab.active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast, #fff); }
.legal-body { line-height: 1.65; }
.legal-body h2 { margin: 0 0 16px; }
.legal-body h3 { margin: 24px 0 6px; font-size: 1.05rem; }
.legal-body p, .legal-body li { color: var(--text); font-size: 0.93rem; }
.legal-body ul { padding-left: 20px; display: flex; flex-direction: column; gap: 5px; }
.legal-date { color: var(--text-muted); font-size: 0.85rem; }
.auth-terms { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.auth-terms a { color: var(--accent); }

/* Partage */
.share-view { max-width: 520px; }
.share-preview {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); padding: 16px; margin: 18px 0;
}
.share-preview p { margin: 0; }
.share-preview .share-url { margin-top: 8px; color: var(--teal); font-weight: 600; word-break: break-all; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.share-or { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin: 20px 0 12px; }
.share-channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.share-channels .btn { padding: 10px; }

.about-view h3 { margin: 22px 0 6px; font-size: 1.05rem; }
.about-view ol { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.about-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.share-qr { text-align: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.share-qr img { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; background: #fff; }
.share-qr p { font-size: 0.85rem; color: var(--text-muted); margin-top: 10px; }

.about-social { margin-top: 18px; font-size: 0.9rem; color: var(--text-muted); }
.about-social a { color: var(--accent); }

/* PWA : bloc d'installation */
.install-box { margin-top: 24px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.install-box-compact { margin-top: 20px; padding: 14px; }
.install-title { font-weight: 600; margin: 0 0 8px; }
.install-steps { font-size: 0.86rem; color: var(--text-muted); margin: 6px 0 0; line-height: 1.55; }
.install-box #installBtn { margin: 4px 0 10px; }

/* Blocage + zone compte */
.thread-block { background: none; border: none; cursor: pointer; font-size: 1rem; opacity: 0.55; padding: 4px; }
.thread-block:hover, .thread-block.on { opacity: 1; }
.block-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.82rem; padding: 4px 6px; font-family: inherit; }
.block-btn:hover { color: var(--danger); }
.report-block-opt { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 0.9rem; }
.account-zone { max-width: 560px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--border); }
.account-zone h2 { font-size: 1.15rem; }
.danger-zone h2 { color: var(--danger); }
.blocked-list { display: flex; flex-direction: column; gap: 8px; }
.blocked-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.blocked-row .btn { font-size: 0.82rem; padding: 6px 12px; }

/* ===================================================================
   Carte — marqueurs "personne" (zone approx + pastille avatar)
   =================================================================== */
.person-pin-wrap { background: none; border: none; }
.person-pin {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  overflow: hidden; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
}
.person-pin img { width: 100%; height: 100%; object-fit: cover; }
.person-pin span { font-weight: 700; font-size: 0.8rem; color: var(--accent-hover); }
.person-pin-wrap:hover .person-pin { transform: scale(1.12); }
.person-pin.is-featured { border-color: #FFB300; box-shadow: 0 2px 12px rgba(255,179,0,0.55); }
.studio-pin {
  width: 34px; height: 34px; border-radius: 10px; background: #fff;
  border: 2px solid var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}

/* Popups Leaflet */
.leaflet-popup-content-wrapper {
  border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  background: var(--surface); color: var(--text);
}
.leaflet-popup-tip { background: var(--surface); }
.leaflet-popup-content { margin: 12px 14px; font-family: var(--font-body); }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-muted); }
.popup-person { display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.popup-head { display: flex; gap: 10px; align-items: center; }
.popup-av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.popup-av-fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-hover); font-weight: 700; font-size: 0.8rem;
}
.popup-head strong { display: block; font-size: 0.98rem; }
.popup-roles { color: var(--text-muted); font-size: 0.82rem; }
.popup-loc { color: var(--text-muted); font-size: 0.82rem; }
.popup-trip { font-size: 0.82rem; }
.popup-see {
  align-self: flex-start; margin-top: 2px; font-weight: 600; font-size: 0.85rem;
  color: var(--accent); text-decoration: none;
}
.popup-see:hover { text-decoration: underline; }

/* ===================================================================
   Fiche profil — restylée
   =================================================================== */
.profile-card {
  padding: 16px; border-radius: var(--radius-lg);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(23,26,33,0.12);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}
.profile-card .card-top { align-items: flex-start; gap: 14px; }
.profile-card .avatar { width: 58px; height: 58px; }
.card-top-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card-top-main h3 { font-size: 1.06rem; line-height: 1.2; }
.loc-btn {
  align-self: flex-start;
  background: var(--accent-soft); color: var(--accent-hover);
  border: none; border-radius: 999px; padding: 4px 10px;
  font-size: 0.8rem; font-weight: 600; font-family: inherit; cursor: pointer;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: filter 0.12s ease;
}
.loc-btn:hover { filter: brightness(0.94); }
.card-flash {
  animation: cardFlash 1.6s ease;
}
@keyframes cardFlash {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  15% { box-shadow: 0 0 0 3px var(--accent); }
}
.profile-card .card-gallery { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 5px; }
.profile-card .card-contacts { gap: 8px; padding-top: 4px; }

/* Carte satellite : contrôles + attribution lisibles */
.map .leaflet-control-attribution {
  background: rgba(20,23,28,0.72); color: #cdd3dc; font-size: 10px;
}
.map .leaflet-control-attribution a { color: #9fd0ff; }
.map .leaflet-bar a {
  background: rgba(20,23,28,0.9); color: #fff; border-color: rgba(255,255,255,0.15);
}
.map .leaflet-bar a:hover { background: rgba(40,44,52,0.95); }
.map .leaflet-popup-content-wrapper, .map .leaflet-popup-tip { background: var(--surface); color: var(--text); }

.location-hint { font-size: 0.85rem; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0; }
.admin-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.admin-tools .btn { font-size: 0.85rem; }

/* Recherche ("je recherche") sur la fiche */
.card-seeking { font-size: 0.85rem; color: var(--text-muted); margin: 2px 0 0; }
.card-seeking span { font-weight: 600; color: var(--text); }

/* Colonne carte : sticky sur le wrapper, pas sur .map */
.map-col { position: sticky; top: 84px; }
.map-col .map { position: static; }
.map-note { font-size: 0.8rem; color: var(--text-muted); margin: 8px 2px 0; }
.results-more { grid-column: 1 / -1; text-align: center; color: var(--text-muted); font-size: 0.9rem; padding: 12px; }
@media (max-width: 900px) { .map-col { position: static; } }

/* Bulles de regroupement (markercluster) aux couleurs ShootRadar */
.marker-cluster {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
}
.marker-cluster div {
  background: var(--accent); color: #fff; font-weight: 700; font-family: var(--font-body);
}
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: color-mix(in srgb, var(--accent) 25%, transparent); }

/* ===================================================================
   Grille de vignettes (profils / studios) + fiche détaillée en modale
   =================================================================== */
.results-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }

.tile {
  display: flex; flex-direction: column; text-align: left;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; cursor: pointer;
  padding: 0; font-family: inherit; color: inherit;
  transition: transform 0.13s ease, box-shadow 0.13s ease, border-color 0.13s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(23,26,33,0.14); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tile-featured { border-color: color-mix(in srgb, #FFB300 60%, var(--border)); }

.tile-media { position: relative; aspect-ratio: 1; background: var(--accent-soft); display: block; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-initials { display: none; }
.tile-media-fallback { display: flex; align-items: center; justify-content: center; }
.tile-media-fallback .tile-initials {
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.4rem; color: var(--accent-hover);
}
.tile-flag {
  position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,0.6); color: #fff;
  font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; backdrop-filter: blur(2px);
}
.tile-flag-match { background: var(--teal); }
.tile-flag-fav { background: var(--accent); left: auto; right: 6px; }

.tile-body { padding: 9px 10px 11px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile-name { font-weight: 600; font-size: 0.9rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-roles { font-size: 0.78rem; color: var(--accent-hover); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-loc { font-size: 0.76rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Fiche détaillée dans la modale */
.modal-card-lg { max-width: 560px; max-height: 88vh; overflow-y: auto; padding: 20px; }
.modal-card-lg .profile-card,
.modal-card-lg .studio-card { border: none; box-shadow: none; padding: 0; background: none; }
.modal-card-lg .profile-card:hover { transform: none; box-shadow: none; }
.modal-card-lg .studio-cover { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 12px; }

/* Vignettes en ligne compacte sur très petit écran */
@media (max-width: 420px) {
  .results-grid { grid-template-columns: 1fr; }
  .tile { flex-direction: row; }
  .tile-media { width: 88px; flex: none; }
  .tile-body { justify-content: center; }
}

/* Notifications in-app */
.notif-view .lead { margin-bottom: 18px; }
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-row {
  display: flex; gap: 12px; align-items: center; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px 14px; cursor: pointer; font-family: inherit; color: inherit; width: 100%;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.notif-row:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); transform: translateY(-1px); }
.notif-row .avatar { width: 44px; height: 44px; flex: none; }
.notif-body { min-width: 0; }
.notif-text { font-size: 0.92rem; line-height: 1.4; }
.notif-sub { color: var(--text-muted); font-size: 0.82rem; }
.notif-new { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.notif-new::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; margin-left: auto; }

/* ===================================================================
   Page profil publique  #/u/<uid>  + avis
   =================================================================== */
.pubprofile { max-width: 640px; }
.pub-back { display: inline-block; margin-bottom: 16px; font-size: 0.9rem; color: var(--text-muted); text-decoration: none; }
.pub-back:hover { color: var(--text); }
.pub-head { display: flex; gap: 18px; align-items: flex-start; }
.pub-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--border); }
.pub-avatar.avatar-fallback { display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.pub-head-main { min-width: 0; }
.pub-head-main h1 { font-size: 1.7rem; margin: 0 0 4px; }
.pub-loc { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 10px; }
.pub-head-main .badges { margin-bottom: 8px; }
.pub-rating { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.rating-num { font-weight: 700; }
.rating-count { color: var(--text-muted); }
.pub-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.pub-actions .fav-btn { width: auto; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; }
.pub-actions .fav-btn.on { background: var(--accent-soft); color: var(--accent-hover); border-color: transparent; }
.pub-block { margin-top: 26px; }
.pub-block > h2 { font-size: 1.15rem; margin: 0 0 10px; }
.pub-danger { display: flex; gap: 16px; border-top: 1px solid var(--border); padding-top: 16px; }

/* Étoiles */
.stars { display: inline-flex; letter-spacing: 1px; color: var(--border); }
.stars .star.on { color: #FFB300; }
.stars .star.half { background: linear-gradient(90deg, #FFB300 50%, var(--border) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars-lg { font-size: 1.2rem; }

/* Liste d'avis */
.review-row { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; margin-bottom: 10px; }
.review-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.review-head .avatar { width: 40px; height: 40px; }
.review-head strong { display: block; }
.review-meta { font-size: 0.82rem; color: var(--text-muted); }
.review-row p { margin: 0; }
.review-acts { display: flex; gap: 12px; margin-top: 8px; }
#revCta { margin-bottom: 14px; }
.review-gate-note { font-size: 0.85rem; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0; }

/* Sélecteur d'étoiles dans la modale */
.star-picker { display: flex; gap: 4px; margin: 6px 0 12px; }
.star-pick { background: none; border: none; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--border); padding: 0; }
.star-pick.on { color: #FFB300; }

/* Onglets de rôle (Explorer) */
.role-pills {
  display: flex; gap: 8px; margin: 4px 0 14px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.role-pills::-webkit-scrollbar { display: none; }
.role-pill {
  flex: 0 0 auto; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  padding: 8px 16px; border-radius: 999px;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.role-pill:hover { border-color: var(--accent); }
.role-pill.active { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }

/* Disponibilités */
.avail-slots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.avail-slot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 0.9rem;
}
.avail-slot.is-now { border-color: var(--success); background: var(--success-soft); }
.badge-avail-now {
  background: var(--success); color: #fff; font-weight: 700; font-size: 0.72rem;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.tile-flag-avail { background: var(--success); left: 6px; right: auto; top: auto; bottom: 6px; }
.pub-head-main h1 .badge-avail-now { vertical-align: middle; font-size: 0.6em; }
