/* ── Page OhayoWorld Gathering ───────────────────────────────────────────── */

/* Masque les ohayos en live de DNM — la page gathering n'affiche que les dots
   historiques du gathering (couche .gathering-dots-layer dans le SVG globe). */
#ohayo-overlay { display: none !important; }

.gathering-page-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Titre ── */
.gathering-title {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  font-weight: 600;
  color: var(--text);
  margin-top: 1.25rem;
  text-align: center;
  letter-spacing: -.02em;
  word-break: break-word;
}

/* ── Description ── */
.gathering-description {
  font-size: .9rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 480px;
  margin: .25rem 0 .5rem;
  line-height: 1.5;
}

/* ── Compteur ── */
.gathering-count-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  margin: 1rem 0 .75rem;
}

.gathering-count-number {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 16vw, 6rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -.04em;
}

.gathering-count-label {
  font-size: .875rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Barre de mode ── */
.gathering-globe-controls {
  margin-bottom: .75rem;
}

/* ── Globe ── */
.gathering-globe-wrap {
  width: 100%;
  max-width: 560px;
}

/* ── Bouton retour ── */
.gathering-back-row {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.gathering-back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: transparent;
  border: 1.5px solid var(--border2);
  border-radius: 2rem;
  padding: .6rem 1.5rem;
  color: var(--text-muted);
  font-size: .9rem;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--trans), border-color var(--trans), transform var(--trans);
}
.gathering-back-home-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: scale(1.04);
}

/* ── Page création seule (sans gid) ── */
.gathering-create-only {
  max-width: 520px;
  padding-top: 2.5rem;
}
.gathering-create-main-h {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin: 0 0 .5rem;
}
.gathering-create-intro {
  font-size: .9rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 440px;
  line-height: 1.55;
  margin: 0 auto 1.5rem;
}

/* ── Séparateur ── */
.gathering-divider {
  border: none;
  border-top: 1px solid var(--border2);
  width: 100%;
  margin: 2rem 0 1.5rem;
}

/* ── Bloc création (form + result) ── */
.gathering-create-wrap {
  width: 100%;
  max-width: 480px;
}
.gathering-create-h {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 1rem;
}

/* ── Formulaire ── */
.create-form {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  width: 100%;
}
.create-form-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .03em;
}
.create-form-input,
.create-form-textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,.04);
  border: 1.5px solid var(--border2);
  border-radius: .5rem;
  padding: .55rem .75rem;
  color: var(--text);
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.create-form-input:focus,
.create-form-textarea:focus {
  border-color: var(--primary);
}
.create-form-textarea { min-height: 3rem; }
.create-form-submit {
  align-self: center;
  margin-top: .3rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: .6rem 1.6rem;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
}
.create-form-submit:hover:not(:disabled) { opacity: .88; transform: scale(1.03); }
.create-form-submit:disabled { opacity: .5; cursor: default; }

/* ── Résultat après création ── */
.gf-result {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  animation: recentFadeIn .3s ease;
}
.gf-result[hidden] { display: none !important; }
.gf-result-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .03em;
  margin: 0;
}
.gf-share-row {
  display: flex;
  gap: .4rem;
  width: 100%;
}
.gf-share-input {
  flex: 1;
  background: rgba(255,255,255,.04);
  border: 1.5px solid var(--border2);
  border-radius: .5rem;
  padding: .5rem .65rem;
  color: var(--text);
  font-size: .82rem;
  font-family: monospace;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gf-copy-btn {
  background: rgba(255,255,255,.08);
  border: 1.5px solid var(--border2);
  border-radius: .5rem;
  padding: .5rem 1rem;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .02em;
  transition: background .15s, color .15s;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}
.gf-copy-btn:hover { background: rgba(255,255,255,.16); }
.gf-copy-btn:active { background: rgba(255,255,255,.22); }
.gf-open-btn {
  align-self: center;
  text-align: center;
  margin-top: .5rem;
  text-decoration: none;
  display: inline-block;
}

/* ── Dot gathering WebGL (htmlElementsData) ── */
.g-dot-gl {
  width: 9px;
  height: 9px;
  background: #22d3ee;
  border: 1.5px solid #fff;
  border-radius: 50%;
  opacity: .92;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* ── Section "What is a Gathering?" ── */
.gathering-what-is {
  width: 100%;
  max-width: 640px;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border2);
}
.gathering-what-is-h {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 4vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
}
.gathering-what-is p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 .85rem;
}
.gathering-what-is-cta {
  font-style: italic;
  color: var(--text) !important;
  margin-top: 1rem !important;
}
.gathering-perfect-for-h {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.25rem 0 .5rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: .75rem;
}
.gathering-perfect-for-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.gathering-perfect-for-list li {
  font-size: .88rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
}
.gathering-perfect-for-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ── Section FAQ ── */
.gathering-faq {
  width: 100%;
  max-width: 640px;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border2);
  margin-bottom: 2rem;
}
.gathering-faq-h {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 3.5vw, 1.3rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.25rem;
}
.gathering-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.gathering-faq-q {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin: 1rem 0 .3rem;
  padding-left: 1rem;
  border-left: 2.5px solid var(--primary);
  line-height: 1.45;
}
.gathering-faq-q:first-child { margin-top: 0; }
.gathering-faq-a {
  font-size: .86rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 0 1rem;
  padding-left: .5rem;
}

/* ── Gathering introuvable ── */
.gathering-not-found {
  text-align: center;
  padding: 4rem 1.25rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.gathering-not-found h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--text);
}
