/* Mata Fenua — styles partagés.
   Mise en page : une colonne étroite, pensée pour le téléphone ; le résumé d'abord, le détail ensuite. */
:root {
  --bg: #F2F5F4;
  --surface: #FFFFFF;
  --fg: #12201F;
  --muted: #4A5855;
  --line: #D5DEDB;
  --accent: #0B5563;
  --on-accent: #FFFFFF;
  --chip: #E2E9E7;
  --warn-bg: #FDEBDD;
  --warn-fg: #7A2E0A;
  --stop-fg: #9A3412;
  --c-aremiti: #1D4ED8;
  --c-vaearai: #0F766E;
  --c-tauati: #A16207;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1716; --surface: #172322; --fg: #E6EEEC; --muted: #A3B3AF; --line: #2B3A38;
    --accent: #5EC2D3; --on-accent: #062226; --chip: #22302E;
    --warn-bg: #3A2214; --warn-fg: #F7C9A8; --stop-fg: #FDBA8C;
    --c-aremiti: #93B4FF; --c-vaearai: #5EDBC9; --c-tauati: #F2C66B;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.45; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 560px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: max(20px, env(safe-area-inset-top, 0px)) 40px; display: flex; flex-direction: column; gap: 18px; }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.1; text-wrap: balance; }
h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.2; text-wrap: balance; }
.sub { color: var(--muted); font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 5px; flex-shrink: 0; display: inline-block; }

.next { background: var(--accent); color: var(--on-accent); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.next .label { font-size: 14px; font-weight: 600; opacity: .9; }
.next .time { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }
.next .row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.next .meta { font-size: 15px; }
.next .after { font-size: 14px; opacity: .9; }

.notice { background: var(--warn-bg); color: var(--warn-fg); border-radius: 14px; padding: 12px 14px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.notice strong { font-weight: 700; }

.site-foot { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }

/* Bandeau d'alerte (vigilance orange/rouge, phase cyclonique) en haut de chaque page */
:root { --al-bg: #F6A21E; --al-fg: #2B1700; --al-red-bg: #B42318; --al-red-fg: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root { --al-bg: #F2A33A; --al-fg: #1F1200; --al-red-bg: #D13B2E; --al-red-fg: #FFFFFF; } }
.alert-banner { background: var(--al-bg); color: var(--al-fg); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; text-decoration: none; }
.alert-banner.red { background: var(--al-red-bg); color: var(--al-red-fg); }
.alert-banner strong { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.2; }
.alert-banner span { font-size: 15px; font-weight: 600; }
.alert-banner small { font-size: 13px; opacity: .85; }

/* Pied de page commun : rubriques et partage */
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; font-weight: 600; padding-top: 4px; }
.foot-nav a { padding: 6px 0; }
.share { align-self: flex-start; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: 600 14px var(--body); cursor: pointer; }
