@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Root variables ── */
:root {
  --bg:          #050b18;
  --bg2:         #0a1020;
  --surface:     rgba(10, 16, 32, 0.97);
  --surface2:    rgba(14, 22, 42, 0.98);
  --border:      rgba(255,255,255,0.10);
  --border2:     rgba(255,255,255,0.18);
  --text:        #e8edf5;
  --text-muted:  #8b9ab5;
  --text-faint:  #5a6a82;
  --primary:     #f59e0b;
  --primary-dim: rgba(245,158,11,0.12);
  --globe-ocean: #3a86c8;
  --globe-land:  #2d6a4f;
  --globe-night: rgba(5,15,40,0.55);
  --globe-term:  #ffffff;
  --globe-grid:  rgba(100,160,220,0.10);
  --radius:      .75rem;
  --radius-sm:   .5rem;
  --font-sans:   'Inter', system-ui, sans-serif;
  --font-head:   'Space Grotesk', 'Inter', sans-serif;
  --trans:       .18s ease;
  --sunrise:     #f97316;
  --glow:        0 0 32px rgba(245,158,11,0.18);

  /* Globe-specific vars (used by globe.css) */
  --clr-bg:          var(--bg);
  --clr-surface:     rgba(10,16,32,0.92);
  --clr-border:      var(--border2);
  --clr-text:        var(--text);
  --clr-text-muted:  var(--text-muted);
  --clr-primary:     var(--primary);
  --shadow:          0 4px 16px rgba(0,0,0,.4);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Starfield background — canvas injecté par starfield.js ── */

/* ── App layout ── */
.site-header, .site-main, .site-footer { position: relative; z-index: 1; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,11,24,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 812px;
  margin: 0 auto;
  padding: .6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header-brand { display: flex; align-items: center; gap: .75rem; }
.header-logo { width: 40px; height: 40px; flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(245,120,20,0.75)); }
.header-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.2;
}
.header-sub {
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: .02em;
}
.header-controls { display: flex; gap: .35rem; align-items: center; }
.lang-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .35rem;
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 600;
  font-family: var(--font-sans);
  padding: .22rem .5rem .22rem .45rem;
  cursor: pointer;
  transition: var(--trans);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7fa0'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .45rem center;
  padding-right: 1.4rem;
  outline: none;
}
.lang-select:hover { border-color: var(--primary); color: var(--primary); }
.lang-select:focus { border-color: var(--primary); }

/* ── Hamburger menu (header) ── */
.hamburger-wrap { position: relative; }
.hamburger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: .4rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--trans);
}
.hamburger-btn svg { width: 1.35rem; height: 1.35rem; flex-shrink: 0; }
.hamburger-btn:hover, .hamburger-btn[aria-expanded="true"] { color: var(--primary); background: var(--primary-dim); }
.hamburger-menu {
  display: none;
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 10rem;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  padding: .35rem;
  z-index: 200;
}
.hamburger-menu.open { display: flex; flex-direction: column; }
.hamburger-menu a {
  display: block;
  padding: .55rem .75rem;
  border-radius: .35rem;
  color: var(--text);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  transition: var(--trans);
}
.hamburger-menu a:hover { background: var(--primary-dim); color: var(--primary); }

/* ── Main layout ── */
.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 812px;
  margin: 0 auto;
  width: 100%;
  padding: 1.25rem 1rem 2rem;
}
@media (min-width: 900px) {
  .site-main {
    padding: 1.5rem 2rem 3rem;
    gap: 1.75rem;
  }
}

/* ── Globe area: group controls + globe-row ── */
.globe-area {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  width: 100%;
}

/* ── Globe controls (UTC + mode bar) ── */
.globe-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  width: 100%;
}
@media (min-width: 860px) {
  .globe-controls {
    width: 520px;
    align-self: flex-start;
  }
}

/* ── Globe row — colonne unique, table toujours sous le globe ── */
.globe-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

/* ── Globe column ── */
.globe-column {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
}

/* ── Next sunrises panel — toujours centré sous le globe ── */
.next-sr-panel {
  width: 100%;
  max-width: 520px;
}

/* ── Sunrise hero counter — texte seul, sans card ── */
.sr-hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  text-align: center;
  width: 100%;
}
.sr-icon-wrap { font-size: 1.5rem; filter: drop-shadow(0 0 8px rgba(245,158,11,0.6)); }
.sr-count-wrap { display: flex; align-items: center; gap: .4rem; }
.sr-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  border: 1.5px solid rgba(245,158,11,.40);
  background: transparent;
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 .05rem 0;
  flex-shrink: 0;
  margin-left: .55rem;
  transition: background .15s, border-color .15s, transform .1s;
  user-select: none;
}
.sr-mode-btn:hover { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.75); }
.sr-mode-btn:active { transform: scale(.9); }
.sr-count {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  letter-spacing: -.03em;
  text-shadow: 0 0 24px rgba(245,158,11,0.4);
  transition: color .3s;
}
.sr-label { font-size: .8rem; color: var(--text-muted); letter-spacing: .01em; line-height: 1.4; }
.ohayo-count-24h { font-size: .75rem; color: var(--primary); opacity: .85; letter-spacing: .01em; margin-top: .1rem; }
.utc-line {
  font-size: .75rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  text-align: center;
}

/* ── Mode bar ── */
.mode-bar {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 560px;
}
.mode-btn {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: 2rem;
  background: var(--surface);
  color: var(--text-muted);
  padding: .3rem .85rem;
  cursor: pointer;
  transition: var(--trans);
  white-space: nowrap;
}
.mode-btn:hover { border-color: var(--primary); color: var(--primary); }
.mode-btn.dnm-mode-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #000;
  font-weight: 700;
}
.locate-btn.dnm-mode-active { background: #3b82f6; border-color: #3b82f6; color: #fff; }

/* ── Globe wrap — no border, no rounded corners ── */
#globe-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  background: transparent;
  overflow: hidden;
  touch-action: none;
  margin-top: 0;
}

#globe {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
#globe.dragging { cursor: grabbing; }

/* ── WebGL non disponible — message de fallback ── */
#globe-no-webgl {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(10,14,26,.92);
  border-radius: inherit; z-index: 10;
  gap: .85rem; padding: 2rem;
  text-align: center;
}
.no-webgl-icon { font-size: 2.5rem; line-height: 1; opacity: .7; }
#globe-no-webgl p {
  font-size: .85rem; color: rgba(255,255,255,.65);
  margin: 0; line-height: 1.6; max-width: 320px;
}

/* ── Globe SVG layers ── */
.sphere   { fill: var(--globe-ocean); }
.grid     { fill: none; stroke: var(--globe-grid); stroke-width: .4; }
.land     { fill: var(--globe-land); }
.borders  { fill: none; stroke: rgba(255,255,255,.12); stroke-width: .5; }
.geo-equator { fill: none; stroke: rgba(60,120,220,.60); stroke-width: 1.5; }
.geo-tropic  { fill: none; stroke: rgba(220,140,30,.55); stroke-width: 1.0; stroke-dasharray: 6 3; }
.geo-polar   { fill: none; stroke: rgba(60,120,220,.40); stroke-width: 1.0; stroke-dasharray: 3 4; }
.night      { fill: var(--globe-night); pointer-events: none; }
.terminator { fill: none; stroke: var(--globe-term); stroke-width: 2; stroke-dasharray: 6 4; opacity: .95; pointer-events: none; }
.sun-icon   {
  font-size: 22px;
  dominant-baseline: middle;
  text-anchor: middle;
  pointer-events: none;
  user-select: none;
  fill: #facc15;
  filter: drop-shadow(0 0 6px #fbbf24) drop-shadow(0 0 14px rgba(251,191,36,.5));
}
.pole { stroke: rgba(100,160,255,.70); stroke-width: 1.8; fill: none; stroke-linecap: round; }
.city-dot { fill: #f97316; stroke: rgba(255,255,255,.5); stroke-width: 1; pointer-events: none; }

/* ── Loading overlay ── */
#loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  color: var(--text-muted);
  font-size: .9rem;
}

/* ── City card ── */
#city-card {
  position: absolute;
  display: none;
  background: rgba(10,16,32,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: .45rem .9rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  pointer-events: auto;
  z-index: 20;
  max-width: 180px;
}
.city-name-primary   { font-size: .9rem; font-weight: 600; color: var(--text); }
.city-name-secondary { font-size: .75rem; color: var(--text-muted); margin-top: 1px; }
#city-card-close {
  position: absolute;
  top: 4px; right: 6px;
  background: none; border: none;
  cursor: pointer;
  color: var(--text-faint);
  font-size: .9rem; line-height: 1; padding: 0;
}

/* DNM injected styles override — hide DNM's own chrome (we render our own) */
.dnm-mode-bar { display: none !important; }
.dnm-sr-box   { display: none !important; }
.dnm-utc      { display: none !important; }

/* ── Pin layer ── */
.wi-pin-shadow { fill: rgba(0,0,0,.4); }
.wi-pin-stick  { stroke: #334155; stroke-width: 1.5; }
.wi-pin-head   { fill: #3b82f6; stroke: #fff; stroke-width: 2; }
.wi-pin-label  { font-size: 11px; font-weight: 600; fill: var(--text); paint-order: stroke fill; stroke: rgba(5,11,24,.9); stroke-width: 3px; pointer-events: none; }

/* ── Globe hint + share row ── */
.globe-hint-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  margin-bottom: .75rem;
}
.globe-hint-vis {
  font-size: .72rem;
  color: var(--text-faint);
  text-align: center;
  letter-spacing: .03em;
  margin-bottom: 0;
}

/* ── User sunrise box ── */
.dnm-user-box {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  padding: .55rem 1rem .6rem;
  background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(99,102,241,.06));
  border: 1px solid rgba(59,130,246,.30);
  border-radius: var(--radius-sm);
  text-align: center;
}
.dnm-user-name  { font-size: .72rem; color: var(--text-faint); font-weight: 500; min-height: .9em; }
.dnm-user-time  { font-size: 1.05rem; font-weight: 700; color: #60a5fa; font-variant-numeric: tabular-nums; }
.dnm-user-label { font-size: .75rem; color: var(--text-muted); }


/* ── Geo error toast ── */
.geo-error-toast {
  display: none;
  margin-top: .5rem;
  padding: .45rem 1rem;
  background: rgba(220, 50, 50, 0.15);
  border: 1px solid rgba(220, 80, 80, 0.35);
  border-radius: .5rem;
  color: #f87171;
  font-size: .82rem;
  text-align: center;
  animation: geo-toast-in .2s ease;
}
.geo-error-toast--visible { display: block; }
@keyframes geo-toast-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.share-wrap { position: relative; }
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #f59e0b;
  transition: transform .18s ease, color .18s;
}
.share-btn svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.share-btn:hover { transform: scale(1.15); color: #fbbf24; }
.share-btn--busy  { opacity: .5; cursor: default; transform: none; }

.share-toast {
  position: absolute;
  top: calc(100% + .4rem);
  right: 0;
  white-space: nowrap;
  margin-top: 0;
  padding: .4rem .9rem;
  background: rgba(15,30,60,.92);
  border: 1px solid rgba(100,160,220,.3);
  border-radius: .5rem;
  color: #94a3b8;
  font-size: .82rem;
  text-align: center;
  animation: share-toast-in .2s ease;
}
@keyframes share-toast-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Éléments requis par DNM mais non visibles */
.dnm-required-hidden { display: none !important; }

/* ── Card Ohayo button (dans sr-hero) ── */
.send-ohayo-card-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  background: #f59e0b;
  color: #0a0e1a !important;
  font-weight: 700;
  font-size: .95rem;
  padding: .65rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
  margin-top: .85rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.send-ohayo-card-btn:hover:not(:disabled) {
  background: #fbbf24;
  color: #0a0e1a !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.45);
}
.send-ohayo-card-btn:disabled { opacity: .55; cursor: default; box-shadow: none; }
.send-ohayo-tip {
  font-size: .68rem;
  color: #8ea4b8;
  text-align: center;
  margin-top: .15rem;
  opacity: .8;
  letter-spacing: .01em;
}

/* ── Ohayo action card — 24h count + bouton + placed-at, sous le globe ── */
.ohayo-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 520px;
}

/* ── Panel cards ── */
.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.panel-title {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .75rem;
  letter-spacing: -.01em;
}
.next-sr-panel .panel-title {
  font-size: 1.15rem;
  text-align: center;
}

/* ── Sunrise/sunset tabs ── */
.sr-tabs {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-bottom: .85rem;
}
.sr-tab {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text-faint);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem 1rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.sr-tab:hover { color: var(--text); border-color: var(--primary); }
.sr-tab-active,
.sr-tab-active:hover {
  color: var(--text);
  background: rgba(245,158,11,.14);
  border-color: rgba(245,158,11,.45);
}

/* ── Sunrise table ── */
.table-wrap { overflow-x: auto; }
.sr-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
/* Override DNM's injected style which forces text-align:left */
#dnm-sunrise-table th { text-align: center !important; }
.sr-table th {
  text-align: center;
  padding: .3rem .5rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
}
.sr-table td {
  padding: .35rem .5rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  color: var(--text-muted);
  text-align: center;
}
.sr-table tr:last-child td { border-bottom: none; }
.dnm-tr-soon td { color: var(--primary); font-weight: 600; }

/* ── Globe intro ── */
.globe-intro { font-size: .78rem; color: var(--text-faint); text-align: center; line-height: 1.65; max-width: 480px; padding: 0 .5rem; margin: 0 auto; }

/* ── Mission / Start your day section ── */
.mission-section {
  background: linear-gradient(135deg, rgba(32,16,4,0.96) 0%, rgba(22,14,5,0.96) 100%);
  border: 1px solid rgba(245,158,11,0.28);
  border-left: 3px solid rgba(245,158,11,0.60);
}
.mission-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: #dda030;
  margin-bottom: .85rem;
  letter-spacing: -.01em;
}
.mission-lead {
  font-size: .85rem;
  font-weight: 600;
  color: #c09040;
  line-height: 1.65;
  margin-bottom: .7rem;
}
.mission-p {
  font-size: .78rem;
  color: #9a8060;
  line-height: 1.72;
  margin-bottom: .6rem;
}
.mission-tagline {
  font-size: .82rem;
  font-style: italic;
  color: #c4864a;
  margin-top: .85rem;
  padding-top: .6rem;
  border-top: 1px solid rgba(245,158,11,0.18);
}

/* ── Gathering promo section ── */
.gathering-promo {
  background: linear-gradient(135deg, rgba(4,26,12,0.96) 0%, rgba(3,18,9,0.96) 100%);
  border: 1px solid rgba(34,197,94,0.25);
  border-left: 3px solid rgba(74,222,128,0.55);
  margin-top: 1.25rem;
}
.gathering-promo-h {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: #4ade80;
  margin-bottom: .7rem;
  letter-spacing: -.01em;
}
.gathering-promo-p {
  font-size: .82rem;
  color: #6db88a;
  line-height: 1.70;
  margin-bottom: .85rem;
}
.gathering-promo-link {
  font-size: .82rem;
  font-weight: 600;
  color: #4ade80;
  text-decoration: none;
  border-bottom: 1px solid rgba(74,222,128,0.35);
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.gathering-promo-link:hover {
  color: #86efac;
  border-bottom-color: rgba(134,239,172,0.6);
}

/* ── Edu / explanatory section ── */
.edu-section { }
.edu-h3 { font-family: var(--font-head); font-size: .82rem; font-weight: 700; color: var(--text-muted); margin: 1rem 0 .3rem; }
.edu-p { font-size: .76rem; color: #7a8aa4; line-height: 1.65; margin-bottom: .5rem; }
.edu-ul { font-size: .76rem; color: #7a8aa4; line-height: 1.65; margin: .2rem 0 .6rem 1.1rem; padding: 0; }
.edu-ul li { margin-bottom: .2rem; }

/* ── Legend ── */
.legend-card { display: flex; gap: 1rem; flex-wrap: wrap; padding: .7rem 1rem; }
.legend-row { display: flex; align-items: center; gap: .4rem; }
.swatch { display: inline-block; width: 26px; height: 8px; border-radius: 3px; }
.swatch-day   { background: var(--globe-land); }
.swatch-night { background: rgba(5,15,40,0.6); border: 1px solid var(--border2); }
.swatch-term  { background: none; border-top: 2px dashed var(--globe-term); width: 26px; }
.legend-label { font-size: .72rem; color: var(--text-faint); }

/* ── Stats card ── */
.stats-content { display: flex; flex-direction: column; gap: .4rem; }
.stat-row { display: flex; justify-content: space-between; align-items: center; }
.stat-label { font-size: .78rem; color: var(--text-faint); }
.stat-val { font-size: .85rem; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 1rem;
  font-size: .72rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.site-footer a { color: var(--text-faint); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }

/* ── Responsive ── */
@media (max-width: 480px) {
  .sr-count { font-size: 2.2rem; }
  .header-sub { display: none; }

  .panel-card { padding: .75rem .85rem; }
}

/* ── Feedback form ─────────────────────────────────────────────────────── */
.feedback-section { margin-top: 1.5rem; }
.feedback-section .panel-title { margin-bottom: .8rem; }

.feedback-honeypot {
  position: fixed;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  overflow: hidden;
}

.feedback-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,.04);
  border: 1.5px solid var(--border);
  border-radius: .5rem;
  color: var(--text);
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
  font-size: .82rem;
  line-height: 1.6;
  padding: .6rem .8rem;
  resize: vertical;
  min-height: 80px;
  transition: border-color .18s;
}
.feedback-input:focus { outline: none; border-color: var(--primary, #f59e0b); }
.feedback-input::placeholder { color: var(--text-faint, #4a5568); }

.feedback-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .5rem;
}
.feedback-counter { font-size: .72rem; color: var(--text-faint, #4a5568); }

.feedback-submit {
  padding: .35rem 1.2rem;
  background: var(--primary, #f59e0b);
  border: none;
  border-radius: 2rem;
  color: #0a0e1a;
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .18s;
  letter-spacing: .03em;
}
.feedback-submit:hover:not(:disabled) { opacity: .85; }
.feedback-submit:disabled { opacity: .45; cursor: default; }

.feedback-msg {
  margin-top: .5rem;
  font-size: .78rem;
  min-height: 1.2em;
  color: transparent;
}
.feedback-msg--ok  { color: #4ade80; }
.feedback-msg--err { color: #f87171; }

/* ── Featured in ─────────────────────────────────────────────────────────── */
.featured-section { margin-top: 0; }
.featured-title   { margin-bottom: .75rem; }
.featured-list {
  list-style: none;
  margin: 0 0 .9rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.featured-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #60a5fa;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  transition: color .15s;
}
.featured-link:hover { color: #93c5fd; text-decoration: underline; }
.featured-link-icon { flex-shrink: 0; opacity: .7; }
.featured-cta {
  font-size: .78rem;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

/* ── Use-cases CTA (mission section → about section) ────────────────────── */
.use-cases-cta-wrap { text-align: center; margin: 2rem 0 0; }
.use-cases-cta {
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 700;
  border: 2px solid #fb923c;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(251,146,60,.14), rgba(249,115,22,.08));
  color: #fb923c !important;
  padding: .44rem 1.6rem;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .18s, border-color .18s, transform .12s, box-shadow .18s;
  letter-spacing: .01em;
  box-shadow: 0 0 12px rgba(251,146,60,.28);
}
.use-cases-cta:hover {
  background: linear-gradient(135deg, rgba(251,146,60,.22), rgba(249,115,22,.18));
  color: #fb923c !important;
  box-shadow: 0 0 20px rgba(251,146,60,.50);
  transform: scale(1.04);
}

/* ── Widgets docs link (mission section → about section) ─────────────────── */
.widgets-link-wrap { text-align: center; margin: 1rem 0 2rem; }
.widgets-link {
  color: var(--clr-primary, #f59e0b);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.widgets-link:hover {
  color: #fbbf24;
}

/* ── Event banner (rendez-vous sticky) ──────────────────────────────────── */
.event-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: rgba(10, 20, 45, 0.97);
  border-top: 1px solid rgba(245, 158, 11, 0.35);
  padding: .85rem 3.5rem .85rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: bannerSlideUp .35s ease both;
}
@keyframes bannerSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.event-banner-message {
  margin: 0 0 .2rem;
  font-size: .95rem;
  font-weight: 600;
  color: #f59e0b;
}
.event-banner-countdown {
  margin: 0;
  font-size: .78rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
.event-banner-close {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  font-size: .85rem;
  line-height: 1;
  cursor: pointer;
  padding: .3rem .4rem;
  border-radius: .25rem;
  transition: color .15s;
}
.event-banner-close:hover { color: #94a3b8; }

/* ── Event FAB (bouton réduit bas-droite) ────────────────────────────────── */
.event-fab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 300;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(10, 20, 45, 0.97);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  color: #f59e0b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
  animation: fabAppear .3s ease both;
  transition: border-color .2s, box-shadow .2s;
}
.event-fab:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 20px rgba(245,158,11,.25);
}
@keyframes fabAppear {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
/* Petit badge pulsant pour attirer l'œil */
.event-fab::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #f59e0b;
  border-radius: 50%;
  animation: fabPulse 2s ease-in-out infinite;
}
@keyframes fabPulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.6); opacity: 0.5; }
}
/* Quand le banner est ouvert, le badge pulse est caché */
.event-fab--expanded::after { display: none; }

/* ── City picker modal ───────────────────────────────────────────────────── */
.city-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(4, 14, 35, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: overlayFadeIn .15s ease;
}
.city-modal-overlay[hidden] { display: none !important; }
@keyframes overlayFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.city-modal {
  position: relative;
  background: linear-gradient(150deg, #1e3a5f 0%, #1a2d4a 100%);
  border: 1px solid rgba(120,180,255,.22);
  border-radius: 1rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(120,180,255,.08) inset;
  animation: modalSlideIn .18s ease;
}
@keyframes modalSlideIn {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.city-modal-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: .25rem .4rem;
  border-radius: .35rem;
  transition: color .15s, background .15s;
}
.city-modal-close:hover { color: #f1f5f9; background: rgba(255,255,255,.08); }
.city-modal-title {
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 1rem;
  padding-right: 2rem;
  line-height: 1.4;
}
.city-modal-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(120,180,255,.3);
  border-radius: .5rem;
  color: #f1f5f9;
  font-size: .95rem;
  padding: .6rem .8rem;
  outline: none;
  transition: border-color .15s;
}
.city-modal-input::placeholder { color: #90afd4; }
.city-modal-input:focus { border-color: rgba(245,158,11,.7); box-shadow: 0 0 0 3px rgba(245,158,11,.12); }
.city-modal-list {
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.city-modal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .55rem .7rem;
  border-radius: .45rem;
  cursor: pointer;
  transition: background .12s;
}
.city-modal-item:hover { background: rgba(245,158,11,.12); }
.city-modal-name    { font-size: .9rem; color: #f1f5f9; font-weight: 500; }
.city-modal-country { font-size: .78rem; color: #90afd4; margin-left: .5rem; flex-shrink: 0; }
.city-modal-confirm {
  margin-top: .9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.city-modal-confirm[hidden] { display: none !important; }
.city-modal-selected-label {
  font-size: .85rem;
  color: #bdd5f0;
  text-align: center;
  margin: 0;
}
.city-modal-send-btn {
  width: 100%;
  padding: .75rem 1.25rem;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #0f172a;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  border-radius: .6rem;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
}
.city-modal-send-btn:hover  { opacity: .9; transform: translateY(-1px); }
.city-modal-send-btn:active { transform: translateY(0); }
.city-modal-item--selected  { background: rgba(245,158,11,.18); }
.city-modal-tip {
  font-size: .75rem;
  color: #475569;
  margin: .9rem 0 0;
  line-height: 1.5;
  text-align: center;
}
.change-city-btn {
  background: none;
  border: none;
  color: #f59e0b;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-weight: 500;
}
.change-city-btn:hover { color: #fbbf24; }

/* ── Modale message post-Ohayo ───────────────────────────────────────────── */
.ohayo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.ohayo-modal-backdrop.ohayo-modal--visible {
  opacity: 1;
  pointer-events: auto;
}
.ohayo-modal {
  background: #0f172a;
  border: 1px solid rgba(245,158,11,.35);
  border-radius: 1.25rem;
  padding: 2rem 2rem 1.75rem;
  max-width: 340px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(16px) scale(.95);
  transition: transform .38s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 0 56px rgba(245,158,11,.1), 0 12px 40px rgba(0,0,0,.6);
  overflow: hidden;
}
.ohayo-modal-backdrop.ohayo-modal--visible .ohayo-modal {
  transform: translateY(0) scale(1);
}
.ohayo-modal-icon  { font-size: 2.4rem; margin-bottom: .7rem; line-height: 1; }
.ohayo-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: .55rem;
  line-height: 1.3;
}
.ohayo-modal-body {
  font-size: .88rem;
  color: #94a3b8;
  line-height: 1.65;
}
.ohayo-modal-cta {
  font-size: .8rem;
  color: #f59e0b;
  opacity: .75;
  margin-top: .7rem;
  font-style: italic;
}
.ohayo-modal-close {
  position: absolute;
  top: .7rem;
  right: .85rem;
  background: none;
  border: none;
  color: #475569;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: .3rem;
  transition: color .15s;
}
.ohayo-modal-close:hover { color: #94a3b8; }
.ohayo-modal-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg,#f59e0b,#fb923c);
  border-radius: 0;
  transform-origin: left center;
  animation: ohayo-bar-shrink 7s linear forwards;
}
@keyframes ohayo-bar-shrink {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ── Panneau sticky "Récents Ohayos" ───────────────────────────────────── */
.recent-panel {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 200;
  width: 210px;
  background: rgba(10, 20, 45, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(120, 180, 255, 0.18);
  border-radius: .75rem;
  padding: .6rem .75rem .65rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.45);
  animation: recentFadeIn .3s ease;
}
@keyframes recentFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.recent-panel[hidden] { display: none !important; }
.recent-panel-title {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f59e0b;
  margin: 0 0 .45rem;
}
.recent-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.recent-panel-item {
  font-size: .78rem;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: recentItemIn .25s ease;
}
@keyframes recentItemIn {
  from { opacity: 0; transform: translateX(6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.recent-ago {
  color: #64748b;
  font-size: .72rem;
}
.recent-panel-collapse {
  position: absolute;
  top: 6px;
  right: 7px;
  background: none;
  border: none;
  color: #64748b;
  font-size: .7rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color .15s;
}
.recent-panel-collapse:hover { color: #f59e0b; }
.recent-panel-restore {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 200;
  background: rgba(10, 20, 45, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(120, 180, 255, 0.18);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  transition: transform .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.recent-panel-restore:hover { transform: scale(1.12); }
.recent-panel-restore[hidden] { display: none !important; }
@media (max-width: 600px) {
  .recent-panel {
    bottom: 16px;
    right: 10px;
    width: 190px;
  }
}
