/* HeureLocale — outil temps, une colonne, mobile-first */
:root {
  --bg: #0f1419;
  --bg-card: #1a222c;
  --bg-elevated: #232d3a;
  --border: #2d3a4a;
  --text: #e8eef4;
  --text-muted: #8b9aab;
  --accent: #3d9cf0;
  --accent-soft: rgba(61, 156, 240, 0.12);
  --ok: #3ecf8e;
  --warn: #f0b429;
  --danger: #f07178;
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "SF Mono", "Consolas", ui-monospace, monospace;
  --max: 42rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(61, 156, 240, 0.15), transparent);
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.wrap {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
  padding-block: 1.25rem 3rem;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.9rem;
}
.nav a { color: var(--text-muted); }
.nav a:hover { color: var(--accent); }

/* Hero clock block */
.hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.hero .subtitle {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.clock-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.25rem 1.35rem;
  margin-bottom: 1rem;
}

.clock {
  font-family: var(--mono);
  font-size: clamp(2.75rem, 12vw, 3.75rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--text);
}

.clock-date {
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-transform: capitalize;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.badge strong { color: var(--text); font-weight: 600; }
.badge.ok { border-color: rgba(62, 207, 142, 0.35); color: var(--ok); }
.badge.warn { border-color: rgba(240, 180, 41, 0.35); color: var(--warn); }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  margin-bottom: 0.85rem;
}

.card h2 {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.table th,
.table td {
  padding: 0.55rem 0.35rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table th {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.table tr:last-child td { border-bottom: 0; }
.table .num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.table a { color: var(--text); font-weight: 500; }
.table a:hover { color: var(--accent); }

.status-open { color: var(--ok); font-weight: 600; font-size: 0.85rem; }
.status-closed { color: var(--danger); font-weight: 600; font-size: 0.85rem; }

/* Converter */
.converter {
  display: grid;
  gap: 0.75rem;
}
.converter-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: end;
}
@media (max-width: 480px) {
  .converter-row { grid-template-columns: 1fr; }
}
label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
input[type="time"],
input[type="search"],
select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
input:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.converter-result {
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(61, 156, 240, 0.25);
  font-size: 1.05rem;
}
.converter-result strong {
  font-family: var(--mono);
  font-size: 1.25rem;
}

/* Call window */
.call-grid {
  display: grid;
  gap: 0.65rem;
}
.call-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg-elevated);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.call-item .place { font-weight: 500; }
.call-item .times {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: right;
}

/* City chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.875rem;
  text-decoration: none;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Fact sheet */
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
}
.fact dt {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}
.fact dd {
  margin: 0.1rem 0 0;
  font-weight: 500;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  padding-right: 1.5rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--text-muted);
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 0.6rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Links related */
.related {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.related a {
  color: var(--text);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.related a:hover { color: var(--accent); }

/* Search home */
.search-box {
  margin-bottom: 1.25rem;
}
.search-box input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  border-radius: var(--radius);
}
.search-results {
  margin-top: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 280px;
  overflow: auto;
  display: none;
}
.search-results.open { display: block; }
.search-results a {
  display: block;
  padding: 0.7rem 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { background: var(--bg-elevated); }
.search-results .hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.35rem;
}

/* Home grids */
.section-title {
  margin: 1.75rem 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.list-links {
  display: grid;
  gap: 0.35rem;
}
.list-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}
.list-links a:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.list-links .tz {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }

/* noscript */
.noscript {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: var(--accent-soft);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Skip link */
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0; }

/* Breadcrumbs */
.breadcrumbs {
  margin: 0 0 1rem;
  font-size: 0.85rem;
}
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  color: var(--text-muted);
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--border);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--text); }

/* Answer line (SEO / AI overview friendly) */
.answer-line {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.answer-line strong { color: var(--text); }

/* Prose pages */
.prose h1 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.prose h2 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.05rem;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}
.prose p, .prose li {
  color: var(--text-muted);
  font-size: 0.98rem;
}
.prose p { margin: 0 0 0.85rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35rem; }
.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-elevated);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.muted-note {
  font-size: 0.85rem !important;
  opacity: 0.85;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

/* Office gauge */
.gauge-track {
  height: 12px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.gauge-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.4s ease, background 0.3s;
  background: var(--text-muted);
}
.gauge-fill.open { background: var(--ok); }
.gauge-fill.peak { background: #2dd4a8; }
.gauge-fill.closed { background: var(--danger); }
.gauge-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.65rem;
  font-weight: 600;
}
.gauge-time {
  margin: 0.35rem 0 0;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Markets */
.mkt-grid {
  display: grid;
  gap: 0.75rem;
}
.mkt-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--border);
}
.mkt-card.mkt-open { border-left-color: var(--ok); }
.mkt-card.mkt-mid { border-left-color: var(--warn); }
.mkt-card.mkt-closed { border-left-color: var(--danger); }
.mkt-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.mkt-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-elevated);
}
.mkt-open .mkt-badge { color: var(--ok); }
.mkt-closed .mkt-badge { color: var(--danger); }
.mkt-mid .mkt-badge { color: var(--warn); }
.mkt-meta, .mkt-time {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.mkt-note {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.mkt-link {
  display: inline-block;
  margin-top: 0.5rem;
  margin-right: 0.75rem;
  font-size: 0.9rem;
}

/* Reunion */
.reunion-picks {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .reunion-picks { grid-template-columns: repeat(3, 1fr); }
}
.reunion-slot {
  display: grid;
  gap: 0.4rem;
  padding: 0.85rem;
  margin-bottom: 0.65rem;
  background: var(--bg-elevated);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.reunion-slot-n {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.reunion-cell {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}
.reunion-cell strong { font-family: var(--mono); }
.reunion-cell.ok strong { color: var(--ok); }
.reunion-best {
  padding: 0.75rem 1rem;
  background: var(--accent-soft);
  border-radius: 8px;
  border: 1px solid rgba(61, 156, 240, 0.25);
}
.pro-box {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px dashed var(--warn);
  color: var(--text-muted);
  font-size: 0.9rem;
  background: rgba(240, 180, 41, 0.06);
}

/* Heatmap */
.heat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.heat-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  min-height: 5.5rem;
  transition: transform 0.15s;
}
.heat-cell:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.heat-name { font-weight: 600; font-size: 0.9rem; }
.heat-time { font-family: var(--mono); font-size: 1.1rem; }
.heat-score { font-size: 0.75rem; opacity: 0.85; }
.heat-peak {
  background: rgba(45, 212, 168, 0.25);
  border-color: rgba(45, 212, 168, 0.5);
}
.heat-open {
  background: rgba(62, 207, 142, 0.15);
  border-color: rgba(62, 207, 142, 0.4);
}
.heat-soon {
  background: rgba(240, 180, 41, 0.12);
  border-color: rgba(240, 180, 41, 0.4);
}
.heat-closed {
  background: var(--bg-card);
  opacity: 0.85;
}
.legend {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.85rem;
}
.legend.peak { background: rgba(45, 212, 168, 0.25); }
.legend.open { background: rgba(62, 207, 142, 0.15); }
.legend.soon { background: rgba(240, 180, 41, 0.12); }
.legend.closed { background: var(--bg-elevated); }

.hol-past { opacity: 0.45; }
.hol-today td { color: var(--accent); font-weight: 600; }

@media (max-width: 700px) {
  .nav { font-size: 0.8rem; gap: 0.5rem 0.65rem; }
}
