/* Couleurs du logo Bohio Post : marron #4e2e14, bleu #1d5c96 ; version sombre : crème #f4e6cc, bleu clair #6fb3ee. */
:root {
  --bg: #fbf8f2;
  --surface: #ffffff;
  --fg: #23170c;
  --brand: #4e2e14;
  --muted: #6b5d50;
  --line: #e7dfd2;
  --accent: #1d5c96;
  --kicker: #1d5c96;
  --map-land: #eadcc4;
  --map-hover: #d9c09a;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #16110c;
    --surface: #1f1812;
    --fg: #f4e6cc;
    --brand: #f4e6cc;
    --muted: #b9a990;
    --line: #3a2f24;
    --accent: #6fb3ee;
    --kicker: #6fb3ee;
    --map-land: #3b2e21;
    --map-hover: #54422f; }
}
:root[data-theme="dark"] { --bg: #16110c;
    --surface: #1f1812;
    --fg: #f4e6cc;
    --brand: #f4e6cc;
    --muted: #b9a990;
    --line: #3a2f24;
    --accent: #6fb3ee;
    --kicker: #6fb3ee;
    --map-land: #3b2e21;
    --map-hover: #54422f; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
h1 a, h3 a { color: var(--brand); }
.sections a { color: var(--brand); }

.masthead { border-bottom: 3px double var(--brand); text-align: center; padding: 0 16px; }
.topbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px;
  max-width: 1120px; margin: 0 auto; padding: 8px 0; font-size: .85rem; color: var(--muted);
  border-bottom: 1px solid var(--line); }
.live { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.live strong { color: var(--fg); }
.source { color: var(--muted); font-size: .8rem; }
.today::first-letter { text-transform: uppercase; }
.brand { display: inline-block; margin-top: 16px; }
.brand img { display: block; width: min(360px, 78vw); height: auto; }
.brand:hover { text-decoration: none; }
.tagline { margin: 0 0 12px; color: var(--muted); font-style: italic; font-family: var(--serif); }
.sections { display: flex; gap: 4px 20px; justify-content: center; flex-wrap: wrap;
  max-width: 1120px; margin: 0 auto; padding: 10px 0; border-top: 1px solid var(--line);
  font-weight: 600; font-size: .95rem; }
.sections a.active { color: var(--accent); }
/* Menu dans le coin : ouvre un panneau latéral (recherche, langues, rubriques). */
.topbar { align-items: center; }
.menu-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--brand); font: 700 .9rem var(--sans); cursor: pointer; }
.menu-toggle:hover { border-color: var(--brand); }
.menu-icon { font-size: 1.1rem; line-height: 1; }
@media (max-width: 640px) {
  .navbar { display: none; }
  .topbar { justify-content: flex-start; }
}

.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 40; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(420px, 100vw); z-index: 50;
  display: flex; flex-direction: column; background: var(--bg); color: var(--fg); text-align: left;
  box-shadow: 4px 0 24px rgba(0, 0, 0, .25); }
.drawer[hidden], .drawer-backdrop[hidden] { display: none; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.drawer-close { flex: none; width: 40px; height: 40px; border: 0; background: none; color: var(--fg); font-size: 1.4rem; cursor: pointer; border-radius: 8px; }
.drawer-close:hover { background: var(--line); }
.drawer-brand { flex: 1; min-width: 0; }
.drawer-brand img { display: block; width: 100%; max-width: 170px; height: auto; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 16px 32px; }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--muted); border-radius: 6px;
  background: var(--surface); color: var(--fg); font: 1rem var(--sans); }
.search-form button { flex: none; width: 48px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); cursor: pointer; }
.search-form button:hover { color: var(--brand); border-color: var(--brand); }
.drawer-sections { display: flex; flex-direction: column; margin-top: 20px; }
.drawer-sections a { padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--brand); font-weight: 600; font-size: 1.05rem; }
.drawer-sections a.active { color: var(--accent); }
.drawer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.drawer-foot a { color: var(--accent); font-weight: 600; }

/* Liste déroulante des langues : on clique, puis on choisit. */
.lang-menu { position: relative; flex: none; }
.lang-menu summary { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; list-style: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 6px; font-size: .9rem; font-weight: 600; color: var(--fg); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { border-color: var(--brand); }
.lang-menu[open] .lang-caret { transform: rotate(180deg); }
.lang-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 60; min-width: 190px; margin: 0; padding: 4px 0; list-style: none;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.lang-list a { display: flex; justify-content: space-between; padding: 10px 14px; color: var(--fg); }
.lang-list a:hover { background: var(--surface); text-decoration: none; }
.lang-list a.is-on { color: var(--kicker); font-weight: 700; }

.search-page .search-form { max-width: 640px; margin-bottom: 24px; }

.page { max-width: 1120px; margin: 0 auto; padding: 24px 16px 48px; }
.kicker { color: var(--kicker); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.meta { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.standfirst { color: var(--muted); margin: 6px 0 0; }

.lead { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.lead h1 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 8px 0; }
.lead .standfirst { font-size: 1.15rem; max-width: 46rem; }

.rule { font-family: var(--serif); font-size: 1.3rem; color: var(--brand); border-top: 2px solid var(--brand); padding-top: 8px; margin: 32px 0 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card { border-top: 1px solid var(--line); padding-top: 12px; }
.card h3 { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; margin: 6px 0 0; }

.section-title { font-family: var(--serif); font-size: 2.2rem; margin: 0 0 16px; }
.empty { color: var(--muted); font-style: italic; }
.lang-badge { display: inline-block; margin-left: 6px; padding: 0 5px; border: 1px solid var(--kicker); border-radius: 3px; color: var(--kicker); font-size: .68rem; font-weight: 700; letter-spacing: .04em; vertical-align: 1px; }
.lang-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 18px; font-size: .88rem; color: var(--muted); }
.lang-filter a { color: inherit; text-decoration: none; padding: 2px 10px; border: 1px solid transparent; border-radius: 999px; }
.lang-filter a:hover { color: var(--kicker); }
.lang-filter a.is-on { color: var(--kicker); border-color: var(--kicker); font-weight: 700; }

.story { max-width: 44rem; margin: 0 auto; }
.story h1 { font-family: var(--serif); font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.15; margin: 8px 0; }
.story .standfirst { font-size: 1.2rem; }
.story .body { font-family: var(--serif); font-size: 1.15rem; line-height: 1.7; margin-top: 24px; }
.related { margin-top: 48px; }

.notfound { text-align: center; }
.notfound .brand { margin: 32px auto 0; }

.footer { border-top: 1px solid var(--line); text-align: center; padding: 24px 16px; font-size: .9rem; }
.muted { color: var(--muted); }

/* Page météo : carte d'Haïti dessinée par nous (tools/carte_haiti.py) */
.meteo-carte { margin: 20px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.carte { display: block; width: 100%; height: auto; max-width: 560px; margin: 0 auto; }
.carte .dept path { fill: var(--map-land); stroke: var(--surface); stroke-width: 2; stroke-linejoin: round;
  transition: fill .15s; cursor: pointer; }
.carte .dept:hover path, .carte .dept:focus-visible path { fill: var(--map-hover); }
.carte .dept.choisi path { fill: var(--accent); }
.carte .dept:focus { outline: none; }
.carte .labels { pointer-events: none; text-anchor: middle; }
.carte .dept-temp { font: 700 30px system-ui, sans-serif; fill: var(--brand); }
.carte .dept-name { font: 600 15px system-ui, sans-serif; fill: var(--muted); }
.carte .labels .choisi .dept-temp, .carte .labels .choisi .dept-name { fill: var(--bg); }
@media (max-width: 640px) {
  .meteo-carte { padding: 4px; }
  .carte .dept-temp { font-size: 40px; }
  .carte .dept-name { display: none; }
}
.departements { list-style: none; padding: 0; margin: 0 0 16px; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.departement { width: 100%; text-align: left; display: grid; gap: 2px; padding: 12px 14px; cursor: pointer;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.departement:hover, .departement:focus-visible, .departement.choisi, :target > .departement { border-color: var(--accent); }
.departement.choisi { box-shadow: inset 0 0 0 1px var(--accent); }
.dept-titre { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--brand); }
.dept-chef-lieu, .dept-minmax { color: var(--muted); font-size: .85rem; }
.dept-degres { font-size: 1.6rem; font-weight: 700; color: var(--accent); }
a.weather { color: inherit; }

/* Comptes lecteurs, formulaires et commentaires */
.account a { color: var(--accent); font-weight: 600; }
.topbar { align-items: center; }
.link { color: var(--accent); text-decoration: underline; }
.notice { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid var(--accent);
  border-radius: 8px; padding: 10px 14px; }
.form-error { background: #fdecea; color: #8a1c13; border: 1px solid #f1b5ae; border-radius: 8px; padding: 10px 14px; }
.field-error { color: #b3261e; font-size: .85rem; font-weight: 600; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form-error { background: #3a1714; color: #ffb4ab; border-color: #6e2a23; }
  :root:not([data-theme="light"]) .field-error { color: #ffb4ab; }
}
:root[data-theme="dark"] .form-error { background: #3a1714; color: #ffb4ab; border-color: #6e2a23; }
:root[data-theme="dark"] .field-error { color: #ffb4ab; }
.form { display: grid; gap: 16px; margin: 16px 0; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form small, .form legend small { font-weight: 400; color: var(--muted); }
.form input[type=text], .form input[type=email], .form input[type=password], .form textarea {
  font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--fg); width: 100%; }
.form textarea { resize: vertical; line-height: 1.5; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-weight: 600; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex !important; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); font-weight: 600; cursor: pointer; }
.chip:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.chip input { accent-color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--brand); font: 600 .95rem var(--sans);
  cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.form .btn { justify-self: start; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #0f1a26; } }
:root[data-theme="dark"] .btn-primary { color: #0f1a26; }
.btn-small { padding: 6px 12px; font-size: .85rem; }
.btn.is-on { color: var(--accent); border-color: var(--accent); }
.btn-danger { color: #b3261e; border-color: #e7b3ae; justify-self: start; }
.compte-etroit { max-width: 480px; }
.confirm-box p { margin: 0 0 10px; }
.confirm-box form { margin: 0; }
.compte { max-width: 760px; }
.compte-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.compte-head .section-title { margin: 0; }
.saved-list { list-style: none; padding: 0; margin: 0; }
.saved-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); }
.saved-list h3 { font-family: var(--serif); font-size: 1.1rem; margin: 4px 0 0; }
.rule-link { float: right; font: 600 .85rem var(--sans); color: var(--accent); margin-top: 6px; }
.story-tools { margin-top: 16px; }
/* Photo du journaliste à côté de son nom */
.byline { display: flex; align-items: center; gap: 10px; }
.author-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line); }
.comments { max-width: 44rem; margin: 48px auto 0; }
.comment-list { list-style: none; padding: 0; margin: 0 0 16px; }
.comment { padding: 12px 0; border-bottom: 1px solid var(--line); }
.comment p { margin: 6px 0; }
.comment .meta strong { color: var(--fg); }
.notice-expire { max-width: 1120px; margin: 12px auto; text-align: left; }

/* Réseaux sociaux (pied de page). Icônes : Simple Icons (CC0). */
.social { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; margin: 16px 0; }
.social-title { font-weight: 700; color: var(--brand); font-family: var(--serif); font-size: 1.05rem; }
.social-icons { display: inline-flex; gap: 10px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; color: #fff; transition: transform .15s, opacity .15s; }
.social a:hover, .social a:focus-visible { transform: scale(1.08); text-decoration: none; opacity: .9; }
.social-facebook { background: #0866ff; }
.social-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-x, .social-tiktok { background: #000; }
.social-youtube { background: #ff0000; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .social-x, :root:not([data-theme="light"]) .social-tiktok { background: #000; box-shadow: 0 0 0 1px #4a3c2e; }
}
:root[data-theme="dark"] .social-x, :root[data-theme="dark"] .social-tiktok { background: #000; box-shadow: 0 0 0 1px #4a3c2e; }

/* Mode nuit / mode jour : bouton et logo adapté */
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }
img.logo-sombre { display: none !important; }
:root[data-theme="dark"] img.logo-clair { display: none !important; }
:root[data-theme="dark"] img.logo-sombre { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) img.logo-clair { display: none !important; }
  :root:not([data-theme="light"]) img.logo-sombre { display: block !important; }
}
.account { display: inline-flex; align-items: center; gap: 12px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); color: var(--fg); font: 600 .8rem var(--sans); cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent); }

/* Photos d'articles */
.story-photo { margin: 20px 0 0; }
.story-photo img { display: block; width: 100%; height: auto; border-radius: 6px; }
.story-photo figcaption { margin-top: 6px; color: var(--muted); font-size: .85rem; }
.story-photo .credit { display: block; font-size: .8rem; }
.card-photo { display: block; margin-bottom: 10px; }
.card-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.lead.has-photo { display: grid; gap: 20px; }
@media (min-width: 800px) { .lead.has-photo { grid-template-columns: 3fr 2fr; align-items: center; } }
.lead-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }


/* Sur téléphone, le mode nuit est dans le menu : le bandeau du haut reste léger. */
@media (max-width: 640px) {
  .footer-info { flex-direction: column; }
}

/* Bandeau du haut : menu à gauche, profil à droite. Les petites informations sont en bas de page. */
.topbar { justify-content: space-between; flex-wrap: nowrap; }
.profile-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 50%; color: var(--brand); background: var(--surface); }
.profile-btn:hover { border-color: var(--brand); text-decoration: none; }
.profile-btn.is-in { color: var(--accent); border-color: var(--accent); }
.footer-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px;
  max-width: 1120px; margin: 0 auto 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-info strong { color: var(--fg); }
.top-right { display: inline-flex; align-items: center; gap: 10px; }

/* Barre du haut sur une seule ligne : menu et recherche à gauche, logo au centre,
   mode nuit et profil à droite. */
.masthead { padding: 0 12px; }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  max-width: 1120px; margin: 0 auto; padding: 10px 0; border-bottom: 1px solid var(--line); }
.top-left { display: inline-flex; align-items: center; gap: 4px; justify-self: start; }
.top-right { display: inline-flex; align-items: center; gap: 4px; justify-self: end; }
.topbar .brand { display: block; margin: 0; }
.topbar .brand img { width: auto; height: 52px; max-width: 46vw; object-fit: contain; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--brand); cursor: pointer; }
.icon-btn:hover { background: var(--surface); text-decoration: none; }
.topbar .profile-btn { width: 44px; height: 44px; border: 0; background: none; color: var(--brand); }
.topbar .profile-btn.is-in { color: var(--accent); }
.topbar .theme-toggle { padding: 0; border: 0; font-size: 1.25rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
  .topbar .brand img { height: 40px; }
  .icon-btn, .topbar .profile-btn { width: 38px; height: 38px; }
}
.masthead .tagline { margin: 6px 0; font-size: .9rem; }

/* Météo : pictogrammes sur la carte, légende et prévisions jour par jour */
.carte .dept-icon { font-size: 26px; }
.carte .labels .choisi .dept-icon { fill: initial; }
@media (max-width: 640px) {
  .carte .dept-temp { font-size: 34px; }
  .carte .dept-icon { font-size: 30px; }
}
.meteo-legende { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 4px 0; padding: 0;
  color: var(--muted); font-size: .85rem; }
.previsions-zone { margin: 0 0 24px; scroll-margin-top: 12px; }
.previsions-titre { font-family: var(--serif); font-size: 1.3rem; color: var(--brand); margin: 0; }
.previsions .meta { margin: 2px 0 10px; }
.jours { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(86px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.jours:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.jour { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px;
  border-left: 1px solid var(--line); scroll-snap-align: start; text-align: center; }
.jour:first-child { border-left: 0; }
.jour-nom { font-weight: 700; font-size: .85rem; text-transform: capitalize; white-space: nowrap; }
.jour-icone { font-size: 2rem; line-height: 1; }
.jour-max, .jour-min { min-width: 44px; padding: 2px 8px; border-radius: 4px; font-weight: 700; color: #1b1b1b; }
.jour-max { background: #f6c445; }
.jour-min { background: #8fd19e; }
.jour-vent, .jour-pluie, .jour-soleil { display: flex; align-items: center; gap: 3px; font-size: .9rem;
  font-weight: 600; white-space: nowrap; }
.jour small { color: var(--muted); font-weight: 400; font-size: .72rem; }
.jour .fleche { width: 13px; height: 13px; fill: var(--accent); flex: none; }
.jour-pluie { color: var(--accent); flex-wrap: wrap; justify-content: center; }
.jour-risque { flex-basis: 100%; }
.jour-soleil > span:first-child { color: #d99a00; }
.jour-uv { font-size: .78rem; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }

/* Bas de page sur fond marron (couleur du logo), plus sombre en mode nuit.
   Le menu (#panneau) est dans le bas de page mais garde les couleurs normales. */
:root { --footer-bg: #4e2e14; --footer-fg: #f4e6cc; --footer-muted: #d9c6a6; --footer-line: #6e4d30; --footer-link: #a9d4fb; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --footer-bg: #0b0806; --footer-line: #33281d; }
}
:root[data-theme="dark"] { --footer-bg: #0b0806; --footer-line: #33281d; }
.footer { background: var(--footer-bg); color: var(--footer-fg); border-top: 0; margin-top: 40px; padding: 28px 16px 32px; }
.footer > :not(.drawer):not(.drawer-backdrop) { --fg: var(--footer-fg); --brand: var(--footer-fg);
  --muted: var(--footer-muted); --line: var(--footer-line); --accent: var(--footer-link); --surface: var(--footer-bg); }
.footer > p a, .footer-info a { color: var(--footer-fg); }
.footer > p a { text-decoration: underline; }

/* Météo : onglets « Aujourd'hui » et « 10 jours », bande heure par heure */
.prev-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  margin-bottom: 12px; }
.onglets { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.onglet { font: inherit; font-weight: 600; font-size: .92rem; padding: 6px 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--fg); cursor: pointer; }
.onglet[aria-selected="true"] { background: var(--brand); color: var(--bg); }
.onglet:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vue[hidden] { display: none; }
.ajd { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 18px 16px;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--surface); }
.ajd-maintenant { display: flex; align-items: center; gap: 12px; }
.ajd-icone { font-size: 3.4rem; line-height: 1; }
.ajd-temp { display: block; font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--brand); }
.ajd-ciel { display: block; color: var(--muted); margin-top: 4px; }
.ajd-minmax { display: grid; grid-template-columns: auto auto; gap: 2px 14px; font-weight: 600; }
.ajd-ressenti { grid-column: 1 / -1; font-weight: 400; color: var(--muted); font-size: .92rem; }
.ajd-stats { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0 0 0 auto; }
.ajd-stats div { text-align: center; }
.ajd-stats dt { font-weight: 600; font-size: .9rem; }
.ajd-stats dd { margin: 2px 0 0; color: var(--muted); }
.heures { list-style: none; margin: 0; padding: 12px 4px; display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(68px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory;
  border: 1px solid var(--line); border-radius: 0 0 8px 8px; background: var(--surface); }
.heures:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.heure { display: grid; grid-template-rows: auto 2.2rem 1.1rem auto; justify-items: center; align-items: center;
  gap: 4px; padding: 0 4px; scroll-snap-align: start; text-align: center; }
.h-nom { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.h-icone { font-size: 1.8rem; line-height: 1; }
.h-pluie { color: var(--accent); font-size: .75rem; font-weight: 600; }
.h-temp { font-weight: 700; font-size: 1.05rem; }
.heure-soleil .h-pluie { color: var(--muted); font-weight: 400; line-height: 1.1; }
@media (max-width: 640px) {
  .ajd-stats { margin: 0; width: 100%; justify-content: space-between; gap: 10px; }
  .ajd-stats dt { font-size: .8rem; }
}
.heure { grid-template-rows: 1.3rem 2.2rem 1.1rem 1.5rem; }
.h-soleil { font-size: .78rem; color: var(--muted); align-self: center; }
@media (max-width: 640px) {
  .ajd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* Partager un article sur les réseaux sociaux */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0; }
.share-title { font-size: .85rem; color: var(--muted); margin-right: 2px; }
.share-btn { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font: 600 .85rem var(--sans);
  color: #fff; border: 0; cursor: pointer; text-decoration: none; }
.share-btn:hover, .share-btn:focus-visible { text-decoration: none; opacity: .88; }
.share-whatsapp { background: #1a8f4c; }
.share-facebook { background: #1877f2; }
.share-x { background: #111; }
.share-copy { background: var(--surface); color: var(--fg); border: 1px solid var(--line); }
.kicker-sep { color: var(--muted); font-size: .75rem; }

/* Pages d'information et liens en bas du menu */
.info-page { max-width: 44rem; }
.info-body { font-family: var(--serif); font-size: 1.1rem; line-height: 1.7; }
.info-body h2 { font-size: 1.3rem; margin: 28px 0 8px; color: var(--brand); }
.info-langue { color: var(--muted); font-style: italic; }
.info-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 12px 0; }
.drawer-info { display: flex; flex-direction: column; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 8px; }
.drawer-info a { padding: 10px 4px; color: var(--fg); font-weight: 500; }
.drawer-info .drawer-don { color: var(--accent); font-weight: 700; }
.drawer-social { justify-content: flex-start; margin-top: 16px; }
.footer .info-links a { color: var(--footer-fg); text-decoration: underline; }
/* Pages modifiées dans « Textes du site » (mise en forme de l'éditeur) */
.info-page.has-fond { padding: 20px 24px; border-radius: 10px; }
.info-body img { max-width: 100%; height: auto; border-radius: 6px; }
.info-body .ql-align-center { text-align: center; }
.info-body .ql-align-right { text-align: right; }
.info-body .ql-align-justify { text-align: justify; }
.info-body li[data-list="ordered"] { list-style-type: decimal; }
.preview-banner { margin: 0; background: #fff4d6; color: #5c4400; border-bottom: 1px solid #f0d78c; padding: 10px 16px; text-align: center; font-weight: 600; }

/* Cartes d'articles alignées : même hauteur de photo, date toujours en bas. */
.grid { align-items: stretch; }
.card { display: flex; flex-direction: column; }
.card-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-tete .lang-badge { margin-left: 0; }
.card h3 a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; padding-top: 8px; }
.card-photo.sans-photo { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
  background: var(--line); border-radius: 6px; }
.card-photo .card-symbole { width: 22%; max-width: 72px; aspect-ratio: 1; opacity: .35; }

/* Barre compacte en haut de l'écran quand on descend (même couleur jour et nuit). */
.barre-compacte { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: 56px;
  display: flex; align-items: center; gap: 18px; padding: 0 20px;
  background: #2a190b; color: #f4e6cc; box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transform: translateY(-100%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; }
.barre-compacte.is-visible { transform: none; visibility: visible; transition: transform .2s ease; }
.barre-compacte a, .barre-compacte button { color: inherit; }
.bc-logo { flex: none; display: block; }
.bc-logo img { display: block; height: 38px; width: auto; }
.bc-menu { flex: none; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0;
  padding: 6px 4px; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; }
.bc-fil { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; white-space: nowrap;
  overflow: hidden; font-weight: 600; font-size: .95rem; }
.bc-fil a { text-decoration: none; }
.bc-fil a:hover { text-decoration: underline; }
.bc-titre { overflow: hidden; text-overflow: ellipsis; }
.bc-sep { opacity: .7; }
.bc-rubriques { overflow-x: auto; scrollbar-width: none; }
.bc-rubriques a.active { color: #6fb3ee; }
.bc-compte { flex: none; margin-left: auto; display: inline-flex; width: 40px; height: 40px;
  align-items: center; justify-content: center; }
@media (max-width: 640px) {
  .barre-compacte { gap: 10px; padding: 0 12px; height: 52px; }
  .bc-logo img { height: 30px; }
  .bc-menu span { display: none; }
  .bc-fil { font-size: .88rem; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .barre-compacte, .barre-compacte.is-visible { transition: none; } }
html { scroll-padding-top: 64px; }

/* Texte des articles écrit dans l'éditeur : intertitres, citations, listes, images. */
.story .body h2 { font-size: 1.5rem; line-height: 1.25; margin: 1.6em 0 .5em; }
.story .body h3 { font-size: 1.25rem; line-height: 1.3; margin: 1.4em 0 .4em; }
.story .body blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1.1em; border-left: 4px solid var(--accent); font-style: italic; color: var(--muted); }
.story .body ul, .story .body ol { padding-left: 1.4em; }
.story .body li { margin: .3em 0; }
.story .body img { max-width: 100%; height: auto; border-radius: 4px; display: block; margin: 1em auto; }
.story .body a { color: var(--accent); text-decoration: underline; }
