/* ---------------------------------------------------------------------
   ShootRadar — thème « Darkroom » (14/10/2026)
   Couche posée PAR-DESSUS styles.css : noir neutre, doré, Archivo + IBM Plex Mono,
   coins nets. Actif seulement quand <html class="theme-darkroom">.
   Pour revenir à l'ancien rendu : retirer la classe et le <link> dans index.html
   (ou, pour tester sur son téléphone : shootradar.app/?theme=classic).
--------------------------------------------------------------------- */
/* Sélecteur renforcé : styles.css redéfinit les couleurs quand le téléphone est en « mode sombre »
   (:root:not([data-theme="light"])) — sans ça, le doré revenait sur les iPhone en mode sombre. */
html.theme-darkroom,
:root.theme-darkroom:not([data-theme="light"]),
:root.theme-darkroom[data-theme] {
  --bg: #121212;
  --surface: #1A1A1A;
  --surface-raised: #222222;
  --text: #F2F2F0;
  --text-muted: #A3A39E;
  --border: #2E2E2E;
  /* 14/10, 22h26 : Édouard choisit le BLANC PUR à la place du doré (ancien : #C9A227 / #E7C665) */
  --accent: #F2F2F0;
  --accent-hover: #FFFFFF;
  --accent-soft: rgba(255, 255, 255, 0.10);
  --accent-contrast: #111111;
  --teal: #D6D6D2;
  --teal-soft: rgba(255, 255, 255, 0.08);
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.5);
}
html.theme-darkroom body { background: var(--bg); color: var(--text); }

/* Titres : gras, serrés, en capitales */
html.theme-darkroom h1,
html.theme-darkroom h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1;
}
html.theme-darkroom h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }

/* Logo + menu */
html.theme-darkroom .logo { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }
html.theme-darkroom .main-nav a { font-size: 0.92rem; }
html.theme-darkroom .main-nav a.active { color: var(--text); border-bottom-color: var(--accent); }
html.theme-darkroom .nav-badge { background: var(--accent); color: #111; font-family: var(--font-mono); }
html.theme-darkroom .lang-select,
html.theme-darkroom .lang-toggle { border-radius: 4px; font-family: var(--font-mono); }

/* Boutons : rectangles nets */
html.theme-darkroom .btn,
html.theme-darkroom .btn-hero { border-radius: 4px; }
html.theme-darkroom .btn-primary { color: #111; font-weight: 700; }
html.theme-darkroom .btn-hero { background: var(--accent); color: #111; font-weight: 700; }
html.theme-darkroom .btn-hero:hover { background: var(--accent-hover); color: #111; }

/* Petites étiquettes en police « machine » */
html.theme-darkroom .eyebrow,
html.theme-darkroom .hero-kicker,
html.theme-darkroom .story-stats,
html.theme-darkroom .hero-members,
html.theme-darkroom .stat-v,
html.theme-darkroom .badge,
html.theme-darkroom .chip {
  font-family: var(--font-mono);
}
html.theme-darkroom .story-stats { font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.9rem; }
html.theme-darkroom .hero-kicker { letter-spacing: 0.16em; color: var(--text-muted); }

/* Accueil : titre massif, la ligne manuscrite devient dorée et droite */
html.theme-darkroom .hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
}
html.theme-darkroom .hero-script {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1em;
  line-height: 0.95;
  color: var(--accent);
  border-bottom: 0;
  margin-top: 0.08em;
}
html.theme-darkroom .wm-line { font-family: var(--font-display); font-weight: 800; }
html.theme-darkroom .hero-cat { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; }
html.theme-darkroom .hero-cat svg { color: var(--accent); }

/* Cartes, champs, coins */
html.theme-darkroom .card { border-radius: 6px; }
html.theme-darkroom input,
html.theme-darkroom select,
html.theme-darkroom textarea { border-radius: 4px; }

/* ---------------------------------------------------------------------
   Accueil Darkroom (renderHomeDarkroom)
--------------------------------------------------------------------- */
.dr-home { display: flex; flex-direction: column; }
.dr-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 56px 0 40px;
}
.dr-hero-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.dr-eyebrow {
  margin: 0; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted);
}
.dr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
html.theme-darkroom .dr-title {
  margin: 0; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 0.95; letter-spacing: -0.035em;
  text-transform: uppercase; font-weight: 800; text-wrap: balance;
}
.dr-title-accent { color: var(--accent); }
.dr-lead { margin: 0; font-size: 1.12rem; line-height: 1.5; color: #C9C9C4; max-width: 34em; }
.dr-actions { display: flex; gap: 12px; flex-wrap: wrap; }
html.theme-darkroom .dr-btn { padding: 15px 24px; font-size: 1rem; min-height: 50px; }
.dr-links { margin: 0; font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-muted); }
.dr-links a, .dr-linkbtn { color: var(--text); }
.dr-linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; min-height: 24px; }
.dr-members { margin: 0; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; }
.dr-hero-globe { position: relative; min-width: 0; display: flex; justify-content: center; }
html.theme-darkroom .hero-globe.dr-globe {
  position: relative; left: auto; bottom: auto; transform: none;
  width: min(100%, 560px); height: auto; aspect-ratio: 1; opacity: 1; border-radius: 0;
}

.dr-cats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.dr-cat {
  display: flex; align-items: center; gap: 10px; padding: 18px 4px; min-height: 44px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.98rem;
}
.dr-cat svg { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; }
.dr-cat:hover { color: var(--accent); }

.dr-section { padding: 64px 0 8px; display: flex; flex-direction: column; gap: 24px; }
.dr-section[hidden] { display: none; }
.dr-section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
html.theme-darkroom .dr-section h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.dr-more { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text); }
.dr-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.dr-gcard { display: block; border-radius: 4px; overflow: hidden; background: var(--surface); }
.dr-gcard img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; transition: transform 0.3s ease; }
.dr-gcard:hover img { transform: scale(1.03); }

.dr-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: start; padding-bottom: 40px; }
.dr-steps { list-style: none; margin: 0; padding: 0; }
.dr-steps li { display: flex; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.dr-steps li:last-child { border-bottom: 0; }
.dr-num { font-family: var(--font-mono); color: var(--accent); font-size: 0.9rem; padding-top: 4px; }
html.theme-darkroom .dr-steps h3 { margin: 0; font-size: 1.25rem; }
.dr-steps p { margin: 4px 0 0; color: var(--text-muted); }
html.theme-darkroom .dr-story { border-top: 1px solid var(--border); }

@media (max-width: 820px) {
  .dr-hero { grid-template-columns: minmax(0, 1fr); padding: 28px 0 16px; gap: 8px; }
  .dr-hero-globe { order: 2; margin: 0 -16px; }
  html.theme-darkroom .hero-globe.dr-globe { width: min(100%, 380px); }
  .dr-hero-text { display: contents; }
  .dr-eyebrow { order: 0; } .dr-title { order: 0; } .dr-lead { order: 1; margin-bottom: 4px; }
  .dr-actions { order: 3; flex-direction: column; }
  .dr-actions .dr-btn { width: 100%; }
  .dr-links { order: 4; text-align: center; margin-top: 10px; }
  .dr-members { order: 5; text-align: center; }
  .dr-cats { display: flex; overflow-x: auto; gap: 8px; padding: 12px 0; border: 0; margin-top: 18px; }
  .dr-cat { flex: 0 0 auto; border: 1px solid var(--border); border-radius: 4px; padding: 0 14px; height: 42px; font-size: 0.9rem; }
  .dr-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dr-how { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dr-section { padding-top: 40px; }
}

/* Demande d'Édouard (14/10, 22h) : « Comment ça marche » et « Avant de rencontrer quelqu'un » bien centrés,
   sans les numéros 01/02/03. */
html.theme-darkroom .how,
html.theme-darkroom .safety { text-align: center; margin-left: auto; margin-right: auto; }
html.theme-darkroom .how .eyebrow,
html.theme-darkroom .how h2,
html.theme-darkroom .safety h2,
html.theme-darkroom .safety p { text-align: center; margin-left: auto; margin-right: auto; }
html.theme-darkroom .safety p { max-width: 640px; }
html.theme-darkroom .how-step { text-align: center; display: flex; flex-direction: column; align-items: center; }
html.theme-darkroom .how-step p { max-width: 300px; margin-left: auto; margin-right: auto; }
html.theme-darkroom .how-num { display: none; }

html.theme-darkroom .dr-how { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 12px; }
html.theme-darkroom .dr-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 32px; width: 100%; max-width: 980px; }
html.theme-darkroom .dr-steps li { flex-direction: column; align-items: center; text-align: center; border-bottom: 0; }
html.theme-darkroom .dr-steps p { max-width: 300px; margin-left: auto; margin-right: auto; }
html.theme-darkroom .dr-num { display: none; }

/* Menu du haut : pas de retour à la ligne dans un lien (« Mon profil », « Déconnexion ») */
html.theme-darkroom .main-nav { gap: 16px; }
html.theme-darkroom .main-nav a { white-space: nowrap; }

/* « Avant de rencontrer quelqu'un » plus gros (demande 14/10, 22h05) */
html.theme-darkroom .safety { padding: 56px 24px; max-width: 820px; }
html.theme-darkroom .safety h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 18px; }
html.theme-darkroom .safety p { font-size: clamp(1.08rem, 2.2vw, 1.3rem); line-height: 1.6; max-width: 720px; }
html.theme-darkroom .how h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
html.theme-darkroom .how-step h3 { font-size: 1.3rem; }
html.theme-darkroom .how-step p { font-size: 1.02rem; }

/* Pages centrées (Messages, Notifications, Mon profil, Galerie, Actus, Partager…) — demande 14/10, 22h09.
   Titres, intros et boutons principaux au centre ; les listes (conversations, notifications) restent lisibles. */
html.theme-darkroom .narrow-section > h1,
html.theme-darkroom .narrow-section > .eyebrow,
html.theme-darkroom .narrow-section > .lead,
html.theme-darkroom .narrow-section > h2,
html.theme-darkroom .news-view > h1,
html.theme-darkroom .news-view > .eyebrow,
html.theme-darkroom .news-view > .lead { text-align: center; margin-left: auto; margin-right: auto; }
html.theme-darkroom .narrow-section > h1,
html.theme-darkroom .news-view > h1 { font-size: clamp(2rem, 6vw, 3rem); margin-top: 8px; }
html.theme-darkroom .narrow-section > .lead,
html.theme-darkroom .news-view > .lead { max-width: 34em; }
html.theme-darkroom .narrow-section > .btn,
html.theme-darkroom .narrow-section > button.btn { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
html.theme-darkroom .gallery-view #galPostBtn { display: flex; margin: 0 auto 22px; }
html.theme-darkroom .conv-tabs { justify-content: center; }
html.theme-darkroom .profile-self-actions { display: flex; justify-content: center; }
html.theme-darkroom .missing-card h3,
html.theme-darkroom .missing-done,
html.theme-darkroom .pv-line,
html.theme-darkroom .verification-box,
html.theme-darkroom .amb-explain h2,
html.theme-darkroom .share-actions,
html.theme-darkroom .push-box { text-align: center; justify-content: center; }
html.theme-darkroom .news-card { text-align: center; }
html.theme-darkroom .news-body { text-align: left; }

/* Accueil v2 par défaut (14/10, 22h12) : « Comment ça marche » blanc + petit trait doré, centré */
html.theme-darkroom .dr-eyebrow-gold { color: var(--accent); justify-content: center; }
html.theme-darkroom .dr-how { padding-top: 72px; padding-bottom: 56px; border-top: 1px solid var(--border); margin-top: 8px; }
html.theme-darkroom .dr-how h2 { color: var(--text); }
html.theme-darkroom .dr-steps { margin-top: 20px; }
html.theme-darkroom .dr-steps li { gap: 14px; padding: 12px 0; }
html.theme-darkroom .dr-num { display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--accent); padding: 0; }
html.theme-darkroom .dr-steps h3 { color: var(--text); font-size: 1.3rem; }
html.theme-darkroom .dr-cats { margin-bottom: 0; }
@media (min-width: 821px) { html.theme-darkroom .dr-cats { justify-items: center; } }

/* ---------------------------------------------------------------------
   Fiche profil Darkroom (14/10, 22h14) — style de la maquette « Profil »
--------------------------------------------------------------------- */
html.theme-darkroom .pubprofile { max-width: 720px; }
html.theme-darkroom .pubprofile .pub-cover { border-radius: 6px; }
html.theme-darkroom .pub-head { flex-direction: column; align-items: center; text-align: center; gap: 18px; margin-top: 8px; }
html.theme-darkroom .pub-avatar {
  width: min(100%, 420px); height: auto; aspect-ratio: 4 / 5; border-radius: 6px; border: 0;
  box-shadow: 0 18px 48px rgba(0,0,0,0.55);
}
html.theme-darkroom .pub-avatar.avatar-fallback { font-size: 4rem; background: var(--surface-raised); }
html.theme-darkroom .pub-head-main { width: 100%; display: flex; flex-direction: column; align-items: center; }
html.theme-darkroom .pub-head-main h1 { font-size: clamp(2rem, 6vw, 3rem); text-transform: uppercase; letter-spacing: -0.03em; }
html.theme-darkroom .pub-loc { font-family: var(--font-mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
html.theme-darkroom .pub-head-main .badges { justify-content: center; }
html.theme-darkroom .badge { border-radius: 4px; }

html.theme-darkroom .dr-facts {
  margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.82rem;
}
html.theme-darkroom .dr-fact { padding: 12px 4px; border-bottom: 1px solid var(--border); min-width: 0; }
html.theme-darkroom .dr-fact:nth-child(odd) { padding-right: 14px; }
html.theme-darkroom .dr-fact dt { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.74rem; }
html.theme-darkroom .dr-fact dd { margin: 4px 0 0; color: var(--text); text-transform: uppercase; overflow-wrap: anywhere; }

html.theme-darkroom .pub-actions { justify-content: center; margin: 22px 0 8px; }
html.theme-darkroom .pub-actions .btn,
html.theme-darkroom .pub-actions .fav-btn { border-radius: 4px; min-height: 50px; }
html.theme-darkroom .pub-actions .btn-msg { flex: 1 1 220px; max-width: 360px; font-size: 1rem; }
html.theme-darkroom .pub-rating { text-align: center; }

html.theme-darkroom .pub-block { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); }
html.theme-darkroom .pub-block > h2 {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); text-align: center; margin-bottom: 14px;
}
html.theme-darkroom .pub-block .bio { font-size: 1.05rem; line-height: 1.65; text-align: center; max-width: 36em; margin: 0 auto; }
html.theme-darkroom .pub-rate { text-align: center; }
html.theme-darkroom .pub-packs { justify-content: center; }
html.theme-darkroom .pub-pack { border-radius: 4px; }
html.theme-darkroom .pub-block img { border-radius: 4px; }
html.theme-darkroom .pub-back { font-family: var(--font-mono); font-size: 0.82rem; text-transform: uppercase; }
html.theme-darkroom .pub-profile-nav { font-family: var(--font-mono); }

/* ---------------------------------------------------------------------
   Barre d'onglets en bas (téléphone) — setupDarkroomTabbar()
--------------------------------------------------------------------- */
.dr-tabbar { display: none; }
@media (max-width: 820px) {
  html.theme-darkroom .dr-tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: rgba(18, 18, 18, 0.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 6px 0 calc(8px + env(safe-area-inset-bottom));
  }
  html.theme-darkroom body.has-dr-tabbar { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  html.theme-darkroom .dr-tab {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 50px; color: var(--text-muted); text-decoration: none; font-size: 0.68rem; font-weight: 500;
  }
  html.theme-darkroom .dr-tab svg { width: 23px; height: 23px; }
  html.theme-darkroom .dr-tab.on { color: var(--accent); font-weight: 700; }
  html.theme-darkroom .dr-tab-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
  html.theme-darkroom .dr-tab-badge {
    position: absolute; top: 1px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
    background: var(--accent); color: #111; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
  }
}

/* ---------------------------------------------------------------------
   Menu ☰ (téléphone / tablette) : plein écran, grandes lignes, comme la maquette
--------------------------------------------------------------------- */
@media (max-width: 1100px) {
  html.theme-darkroom .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; bottom: auto; z-index: 39;
    height: calc(100dvh - 64px); background: var(--bg); border-bottom: 0; padding: 8px 20px 120px; gap: 0; overflow-y: auto;
    align-items: stretch;
  }
  html.theme-darkroom .main-nav.open { display: flex; }
  html.theme-darkroom .main-nav a {
    display: flex; align-items: center; justify-content: space-between; min-height: 58px;
    border-bottom: 1px solid var(--border); padding: 0 4px; font-size: 1.15rem; font-weight: 600; color: var(--text);
  }
  html.theme-darkroom .main-nav a[hidden] { display: none; }
  html.theme-darkroom .main-nav a.active { color: var(--accent); border-bottom-color: var(--border); }
  html.theme-darkroom .main-nav a::after { content: "→"; font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-muted); }
  html.theme-darkroom .nav-toggle {
    width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface);
    align-items: center; justify-content: center;
  }
}

/* ---------------------------------------------------------------------
   Actus — style maquette : grande photo, date dorée « machine », gros titre
--------------------------------------------------------------------- */
html.theme-darkroom .news-list { gap: 0; }
html.theme-darkroom .news-card {
  display: flex; flex-direction: column; border: 0; border-bottom: 1px solid var(--border);
  border-radius: 0; background: none; padding: 26px 0;
}
html.theme-darkroom .news-photos { order: -1; margin-bottom: 16px; }
html.theme-darkroom .news-photos img { border-radius: 4px; }
html.theme-darkroom .news-date { font-family: var(--font-mono); color: var(--accent); }
html.theme-darkroom .news-card h2 { text-transform: uppercase; font-weight: 800; letter-spacing: -0.02em; font-size: clamp(1.3rem, 4vw, 1.7rem); }
html.theme-darkroom .news-card:first-child h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
html.theme-darkroom .news-body { color: #C9C9C4; font-size: 1.02rem; }
html.theme-darkroom .news-banner { border-radius: 4px; }

/* ---------------------------------------------------------------------
   Galerie — grille de photos serrée, pseudo en étiquette
--------------------------------------------------------------------- */
html.theme-darkroom .gallery-view { max-width: 980px; }
html.theme-darkroom .gallery-grid { columns: 3; column-gap: 4px; }
html.theme-darkroom .gallery-item { margin: 0 0 4px; border: 0; border-radius: 2px; background: var(--surface); }
html.theme-darkroom .gallery-item figcaption { font-family: var(--font-mono); font-size: 0.72rem; padding: 6px 8px; gap: 2px; text-align: left; }
@media (min-width: 821px) { html.theme-darkroom .gallery-grid { columns: 4; column-gap: 6px; } html.theme-darkroom .gallery-item { margin-bottom: 6px; } }
@media (max-width: 420px) { html.theme-darkroom .gallery-grid { columns: 2; } }

/* ---------------------------------------------------------------------
   Notifications — lignes simples, avatar rond, heure « machine », point doré si non lue
--------------------------------------------------------------------- */
html.theme-darkroom .notif-list { gap: 0; }
html.theme-darkroom .notif-row {
  position: relative; background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0;
  padding: 14px 26px 14px 0;
}
html.theme-darkroom .notif-row:hover { transform: none; background: rgba(255,255,255,0.02); }
html.theme-darkroom .notif-row .avatar { width: 48px; height: 48px; border-radius: 50%; }
html.theme-darkroom .notif-text { font-size: 0.98rem; }
html.theme-darkroom .notif-sub { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; margin-top: 3px; }
html.theme-darkroom .notif-new { background: none; border-color: var(--border); }
html.theme-darkroom .notif-new::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -4px;
  border-radius: 50%; background: var(--accent);
}
html.theme-darkroom .push-box { border-radius: 4px; }

/* Accueil : TOUT centré (demande 14/10, 22h18) — une seule colonne, globe sous les boutons */
html.theme-darkroom .dr-hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 8px; padding-top: 48px; }
html.theme-darkroom .dr-hero-text { align-items: center; max-width: 860px; }
html.theme-darkroom .dr-eyebrow { justify-content: center; }
html.theme-darkroom .dr-title { max-width: 14em; margin-left: auto; margin-right: auto; }
html.theme-darkroom .dr-lead { margin-left: auto; margin-right: auto; }
html.theme-darkroom .dr-actions { justify-content: center; }
html.theme-darkroom .dr-links, html.theme-darkroom .dr-members { text-align: center; }
html.theme-darkroom .dr-hero-globe { width: 100%; justify-content: center; }
html.theme-darkroom .hero-globe.dr-globe { width: min(100%, 620px); }
html.theme-darkroom .dr-cats { justify-items: center; text-align: center; }
html.theme-darkroom .dr-cat { justify-content: center; }
@media (max-width: 820px) {
  html.theme-darkroom .dr-cats { justify-content: flex-start; }
  html.theme-darkroom .hero-globe.dr-globe { width: min(100%, 400px); }
}

/* Annonces de shooting (et Partenaires) : en-tête centré (14/10, 22h19) */
html.theme-darkroom .castings-view > .eyebrow,
html.theme-darkroom .castings-view > h1,
html.theme-darkroom .castings-view > .lead,
html.theme-darkroom .partners-view > .eyebrow,
html.theme-darkroom .partners-view > h1,
html.theme-darkroom .partners-view > .lead { text-align: center; margin-left: auto; margin-right: auto; }
html.theme-darkroom .castings-view > h1,
html.theme-darkroom .partners-view > h1 { font-size: clamp(2rem, 6vw, 3rem); }
html.theme-darkroom .castings-view > .lead,
html.theme-darkroom .partners-view > .lead { max-width: 36em; }
html.theme-darkroom .casting-new > summary { display: flex; width: fit-content; margin: 18px auto; border-radius: 4px; }
html.theme-darkroom .castings-filters { justify-content: center; }

/* Annonces : on retire le petit sur-titre « Annonces » (doublon avec le titre) */
html.theme-darkroom .castings-view > .eyebrow { display: none; }
/* Téléphone : le menu ☰ ne répète pas les 5 onglets du bas (Explorer, Annonces, Messages, Notifs, Profil) */
@media (max-width: 820px) {
  html.theme-darkroom body.has-dr-tabbar .main-nav a[data-nav="explore"],
  html.theme-darkroom body.has-dr-tabbar .main-nav a[data-nav="annonces"],
  html.theme-darkroom body.has-dr-tabbar .main-nav a[data-nav="messages"],
  html.theme-darkroom body.has-dr-tabbar .main-nav a[data-nav="notifications"],
  html.theme-darkroom body.has-dr-tabbar .main-nav a[data-nav="profile"] { display: none; }
}

/* Bouton « Écrire / Demande de discussion » lisible (14/10, 22h25) : texte foncé sur couleur pleine */
html.theme-darkroom .btn-msg {
  background: var(--accent); color: var(--accent-contrast); border: 0; border-radius: 4px; font-weight: 700;
}
html.theme-darkroom .btn-msg:hover { background: var(--accent-hover); color: var(--accent-contrast); }
html.theme-darkroom .pub-actions .btn-msg { padding: 14px 22px; font-size: 1rem; }


/* ---------------------------------------------------------------------
   BLANC PUR (14/10, 22h26) : on neutralise les dorés écrits « en dur » dans styles.css
--------------------------------------------------------------------- */
html.theme-darkroom .badge-founder,
html.theme-darkroom .badge-featured,
html.theme-darkroom .badge-amb-gold { background: #F2F2F0 !important; color: #111 !important; box-shadow: none !important; }
html.theme-darkroom .home-page .wm-bracket { border-color: #F2F2F0; }
html.theme-darkroom .home-page .hero-script,
html.theme-darkroom .home-page .hero-members { color: #F2F2F0; border-bottom-color: rgba(255,255,255,0.4); }
html.theme-darkroom .amb-explain,
html.theme-darkroom .missing-card { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.03); }
html.theme-darkroom .amb-progress,
html.theme-darkroom .missing-item span { color: #F2F2F0; }
html.theme-darkroom .missing-item:hover { background: rgba(255,255,255,0.08); }
html.theme-darkroom .sr-infobar { border-bottom-color: var(--border); background: #161616; }
html.theme-darkroom .news-banner { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.04); }
html.theme-darkroom .story-style-pick .is-on { border-color: #F2F2F0; color: #fff; background: rgba(255,255,255,0.08); }
html.theme-darkroom .gate-view .gate-cat { background: rgba(255,255,255,0.06); color: #F2F2F0; border-color: rgba(255,255,255,0.25); }
html.theme-darkroom .gate-view .gate-actions .btn-primary { background: #F2F2F0; color: #111; }
html.theme-darkroom .gate-view .gate-actions .btn-ghost { border-color: rgba(255,255,255,0.4); }
html.theme-darkroom .logo-mark { color: #F2F2F0; }
html.theme-darkroom .dr-num { background: #F2F2F0; }

/* ---------------------------------------------------------------------
   Police des profils : CORMORANT GARAMOND (choix d'Édouard, 14/10, 22h26)
   Nom, titres de rubriques et bio ; les petites infos restent en police « machine ».
--------------------------------------------------------------------- */
html.theme-darkroom .pub-head-main h1 {
  font-family: var(--font-serif); font-weight: 600; text-transform: none; letter-spacing: 0;
  font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 1.02;
}
html.theme-darkroom .pub-block > h2 {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.7rem; letter-spacing: 0;
  text-transform: none; color: var(--text);
}
html.theme-darkroom .pub-block .bio,
html.theme-darkroom .pub-block > p {
  font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; line-height: 1.5;
}
html.theme-darkroom .pub-subh,
html.theme-darkroom .pub-rate-value,
html.theme-darkroom .pub-pack-n { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; }

/* Carte : bulles de regroupement lisibles sur le satellite (14/10, 22h35)
   cercle noir translucide + contour blanc + chiffre blanc, halo discret */
html.theme-darkroom .marker-cluster,
html.theme-darkroom .marker-cluster-small,
html.theme-darkroom .marker-cluster-medium,
html.theme-darkroom .marker-cluster-large { background: rgba(255, 255, 255, 0.16); }
html.theme-darkroom .marker-cluster div {
  background: rgba(14, 14, 14, 0.86); color: #FFFFFF; border: 2px solid #F2F2F0;
  font-family: var(--font-mono); font-weight: 600; letter-spacing: -0.02em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
html.theme-darkroom .marker-cluster-medium div { width: 34px; height: 34px; }
html.theme-darkroom .marker-cluster-large div { width: 42px; height: 42px; }
html.theme-darkroom .cluster-studio-badge { border-color: #F2F2F0; }
html.theme-darkroom .tile-featured,
html.theme-darkroom .profile-card-featured { border-color: rgba(255, 255, 255, 0.45); box-shadow: none; }
html.theme-darkroom .person-pin.is-featured { border-color: #FFFFFF; box-shadow: 0 2px 12px rgba(255, 255, 255, 0.35); }
html.theme-darkroom .map .leaflet-control-attribution a { color: #F2F2F0; }
html.theme-darkroom .stars .star.on,
html.theme-darkroom .star-pick.on { color: #F2F2F0; }

/* ---------------------------------------------------------------------
   Retour d'une touche de DORÉ (14/10, 22h38) — trop noir & blanc sinon.
   Boutons principaux : blanc (lisibles). Doré : logo, onglet actif, pastilles,
   petits sur-titres, traits, badges, bulles de la carte.
--------------------------------------------------------------------- */
html.theme-darkroom { --gold: #D4AF37; --gold-soft: rgba(212, 175, 55, 0.16); }
html.theme-darkroom .logo,
html.theme-darkroom .logo-mark,
html.theme-darkroom .logo-text { color: var(--gold); }
html.theme-darkroom .main-nav a.active { border-bottom-color: var(--gold); }
html.theme-darkroom .dr-tab.on { color: var(--gold); }
html.theme-darkroom .nav-badge,
html.theme-darkroom .dr-tab-badge { background: var(--gold); color: #111; }
html.theme-darkroom .dr-dot,
html.theme-darkroom .dr-num { background: var(--gold); }
html.theme-darkroom .dr-eyebrow-gold,
html.theme-darkroom .eyebrow,
html.theme-darkroom .news-date { color: var(--gold); }
html.theme-darkroom .badge-founder,
html.theme-darkroom .badge-featured,
html.theme-darkroom .badge-amb-gold { background: linear-gradient(100deg, #E9CB6B, #C9A227) !important; color: #1A1408 !important; }
html.theme-darkroom .marker-cluster,
html.theme-darkroom .marker-cluster-small,
html.theme-darkroom .marker-cluster-medium,
html.theme-darkroom .marker-cluster-large { background: rgba(212, 175, 55, 0.22); }
html.theme-darkroom .marker-cluster div { border-color: var(--gold); }
html.theme-darkroom .cluster-studio-badge { border-color: var(--gold); }
html.theme-darkroom .tile-featured,
html.theme-darkroom .profile-card-featured { border-color: rgba(212, 175, 55, 0.6); }
html.theme-darkroom .person-pin.is-featured { border-color: var(--gold); box-shadow: 0 2px 12px rgba(212, 175, 55, 0.45); }
html.theme-darkroom .stars .star.on,
html.theme-darkroom .star-pick.on { color: var(--gold); }
html.theme-darkroom .notif-new::after { background: var(--gold); }
html.theme-darkroom .dr-cat svg,
html.theme-darkroom .hero-cat svg { color: var(--gold); }
html.theme-darkroom .pub-block > h2::after {
  content: ""; display: block; width: 28px; height: 2px; background: var(--gold); margin: 10px auto 0; border-radius: 2px;
}
html.theme-darkroom .dr-title-accent { color: var(--gold); }

/* ---------------------------------------------------------------------
   Plus de couleur + Explorer centré (14/10, 22h56)
--------------------------------------------------------------------- */
/* Titres de pages en DORÉ (Annonces de shooting, Messages, Notifications, Mon profil, Galerie, Actus, Partager, Explorer…) */
html.theme-darkroom .narrow-section > h1,
html.theme-darkroom .news-view > h1,
html.theme-darkroom .castings-view > h1,
html.theme-darkroom .partners-view > h1,
html.theme-darkroom .explore-head h1 { color: var(--gold); }
html.theme-darkroom .narrow-section > .eyebrow,
html.theme-darkroom .news-view > .eyebrow { color: var(--text-muted); }

/* Explorer : en-tête centré (le petit « Explorer » en double est masqué) */
html.theme-darkroom .explore-head { max-width: 760px; margin: 0 auto; text-align: center; padding-top: 36px; }
html.theme-darkroom .explore-head .eyebrow { display: none; }
html.theme-darkroom .explore-head h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 8px; }
html.theme-darkroom .explore-head .lead { margin-left: auto; margin-right: auto; max-width: 34em; }
html.theme-darkroom .explore-tabs { justify-content: center; }
html.theme-darkroom .explore-tab { border-radius: 4px; }
html.theme-darkroom .explore-tab.active { background: var(--gold); border-color: var(--gold); color: #111; }
html.theme-darkroom .filters-main,
html.theme-darkroom .filters-more { justify-content: center; }
html.theme-darkroom .results-count,
html.theme-darkroom .explore-count { text-align: center; }

/* Bande des métiers : pastilles plus nettes ; sur ordi elles se rangent au centre, sur téléphone elles défilent
   avec un fondu sur les bords (on voit qu'il y en a d'autres) */
html.theme-darkroom .role-pills { justify-content: center; flex-wrap: wrap; gap: 8px; margin: 10px auto 18px; max-width: 980px; }
html.theme-darkroom .role-pill {
  border-radius: 4px; background: transparent; border-color: #3A3A3A; color: var(--text);
  font-size: 0.86rem; font-weight: 600; padding: 9px 14px; min-height: 40px;
}
html.theme-darkroom .role-pill:hover { border-color: var(--gold); color: var(--gold); }
html.theme-darkroom .role-pill.active { background: var(--gold); border-color: var(--gold); color: #111; }
@media (max-width: 820px) {
  html.theme-darkroom .role-pills {
    flex-wrap: nowrap; justify-content: flex-start; margin: 8px -16px 16px; padding: 0 16px;
    scroll-snap-type: x proximity; scroll-padding: 0 16px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
  }
  html.theme-darkroom .role-pill { scroll-snap-align: start; }
}

/* Messages : onglets Tous / Reçus / Envoyés / En attente lisibles */
html.theme-darkroom .conv-tab { border-radius: 4px; background: transparent; border-color: #3A3A3A; color: var(--text); }
html.theme-darkroom .conv-tab.on { background: var(--gold); border-color: var(--gold); color: #111; font-weight: 700; }
html.theme-darkroom .conv-tab-n { background: #2A2A2A; color: var(--text); }
html.theme-darkroom .conv-tab.on .conv-tab-n { background: rgba(0,0,0,0.18); color: #111; }
html.theme-darkroom .conv-tab-n.hl { background: var(--gold); color: #111; }
html.theme-darkroom .conv-requests-title { color: var(--gold); }

/* Petites touches dorées en plus */
html.theme-darkroom .castings-filters .role-pill.active { background: var(--gold); border-color: var(--gold); color: #111; }
html.theme-darkroom .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
html.theme-darkroom .lang-select:hover { border-color: var(--gold); color: var(--gold); }
html.theme-darkroom a:focus-visible, html.theme-darkroom button:focus-visible { outline-color: var(--gold); }

/* Accueil : « L'histoire de ShootRadar » remise (14/10, 23h08) — centrée, titre blanc, sur-titre doré */
html.theme-darkroom .dr-story {
  max-width: 760px; margin: 0 auto; padding: 72px 8px 64px; text-align: center;
  border-top: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 14px;
}
html.theme-darkroom .dr-story h2 { margin: 0 0 6px; font-size: clamp(1.8rem, 4.5vw, 2.8rem); color: var(--text); }
html.theme-darkroom .dr-story-text {
  margin: 0; font-family: var(--font-serif); font-size: clamp(1.2rem, 2.6vw, 1.45rem); line-height: 1.6; color: #D8D8D3;
}
html.theme-darkroom .dr-story-sign { margin: 10px 0 0; font-family: var(--font-mono); font-size: 0.85rem; color: var(--gold); letter-spacing: 0.04em; }
