/* Hatsatoun : les pages des actualités (hatsatoun.fr/actualites/), écrites par le journal (site-v2-api/journal.py,
   gabarits site-v2-api/gabarits_journal/). Mêmes couleurs et mêmes polices que la boutique (css/app.css), en
   beaucoup plus court : ces pages n'ont ni panier ni feuilles. */
:root {
  --papier: #FBF7EE; --blanc: #FFFFFF; --creme: #F9F0D9; --doux: #F3ECDC; --ligne: #E7DDC8;
  --encre: #231A15; --encre-2: #54463D; --sourdine: #75675C; --rouge: #7C0303; --rouge-fonce: #5E0202; --or: #F9CE6E;
  --titre: "Cinzel", "Times New Roman", serif;
  --texte: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-xs: .75rem; --t-s: .875rem; --t-m: 1rem; --t-l: 1.25rem; --t-xl: 1.625rem; --t-xxl: 2.25rem;
  --g: 16px;
}
@media (min-width: 900px) { :root { --g: 32px; --t-l: 1.5rem; --t-xl: 2rem; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 var(--t-m)/1.6 var(--texte); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid #D73316; outline-offset: 2px; border-radius: 4px; }

.ac-apercu { background: var(--or); color: var(--encre); text-align: center; font-weight: 650; font-size: var(--t-s); padding: 10px var(--g); }

/* en-tête */
.ac-tete { background: var(--blanc); border-bottom: 1px solid var(--ligne); position: sticky; top: 0; z-index: 5; }
.ac-tete-in { max-width: 1240px; margin: 0 auto; padding: 10px var(--g); display: flex; align-items: center; gap: 16px; }
.ac-marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.ac-marque img:first-child { width: 40px; height: 40px; }
.ac-titre { width: 132px; height: auto; }
.ac-nav { margin-left: auto; display: flex; gap: 2px; }
.ac-nav a { text-decoration: none; font-size: var(--t-s); padding: 8px 10px; border-radius: 999px; white-space: nowrap; }
.ac-nav a:hover { background: var(--doux); }
@media (max-width: 559px) { .ac-nav a:not(:first-child) { display: none; } .ac-nav a:first-child { background: var(--rouge); color: #fff; font-weight: 650; padding: 8px 14px; } }
@media (min-width: 900px) { .ac-titre { width: 156px; } .ac-nav a { font-size: var(--t-m); padding: 10px 14px; } }

/* la liste */
.ac-liste, .ac-autres { max-width: 1240px; margin: 0 auto; padding: 28px var(--g) 48px; }
.ac-liste h1, .ac-article h1 { font: 600 var(--t-xl)/1.15 var(--titre); letter-spacing: .01em; text-wrap: balance; }
.ac-chapo { margin-top: 10px; color: var(--encre-2); max-width: 60ch; }
.ac-grille { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 640px) { .ac-grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ac-grille { grid-template-columns: repeat(3, 1fr); gap: 22px; } .ac-liste h1 { font-size: var(--t-xxl); } }
.ac-carte { display: flex; flex-direction: column; background: var(--blanc); border-radius: 16px; overflow: hidden; text-decoration: none; border: 1px solid var(--ligne); transition: transform .2s, box-shadow .2s; }
.ac-carte:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -16px rgba(60, 30, 10, .35); }
.ac-ph { display: block; aspect-ratio: 4 / 3; background: var(--doux); }
.ac-ph img { width: 100%; height: 100%; object-fit: cover; }
.ac-carte-corps { display: grid; gap: 6px; padding: 14px 16px 18px; }
.ac-carte time, .ac-article time { font-size: var(--t-xs); font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--rouge); }
.ac-carte-titre { font-weight: 650; font-size: var(--t-m); line-height: 1.35; text-wrap: balance; }
.ac-extrait { font-size: var(--t-s); color: var(--encre-2); line-height: 1.5; }
.ac-vide { margin-top: 24px; color: var(--sourdine); }

/* l'article */
.ac-article { max-width: 760px; margin: 0 auto; padding: 22px var(--g) 36px; display: grid; gap: 12px; }
.ac-fil { justify-self: start; font-size: var(--t-s); color: var(--encre-2); text-decoration: none; padding: 4px 0; }
.ac-fil::before { content: "← "; }
.ac-fil:hover { color: var(--rouge); }
.ac-une { margin-top: 6px; border-radius: 16px; overflow: hidden; background: var(--doux); }
.ac-une img { width: 100%; max-height: 78vh; object-fit: contain; background: var(--doux); }
.ac-corps { display: grid; gap: 12px; font-size: 1.0625rem; line-height: 1.65; color: var(--encre); margin-top: 4px; }
.ac-corps p { text-wrap: pretty; }
.ac-suite { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 6px; }
.ac-suite a { border-radius: 12px; overflow: hidden; background: var(--doux); aspect-ratio: 1; }
.ac-suite img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .ac-suite { grid-template-columns: repeat(3, 1fr); } }
.ac-autres { border-top: 1px solid var(--ligne); padding-top: 28px; }
.ac-autres h2 { font: 600 var(--t-l)/1.2 var(--titre); }

/* boutons */
.ac-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ac-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--rouge); color: #fff; font-weight: 650; text-decoration: none; border: 1.5px solid var(--rouge); }
.ac-btn:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); }
.ac-btn-contour { background: transparent; color: var(--encre); border-color: var(--encre); }
.ac-btn-contour:hover { background: var(--encre); border-color: var(--encre); color: #fff; }

/* pied */
.ac-pied { background: var(--rouge); color: var(--creme); margin-top: 24px; }
.ac-pied-in { max-width: 1240px; margin: 0 auto; padding: 28px var(--g) calc(32px + env(safe-area-inset-bottom)); display: grid; gap: 12px; font-size: var(--t-s); }
.ac-pied-nom { font: 600 var(--t-m)/1.3 var(--titre); color: #FFF8E6; }
.ac-pied-bq { display: grid; gap: 4px; color: rgba(249, 240, 217, .9); }
.ac-pied-bq b { color: #FFF8E6; font-weight: 650; }
.ac-pied-liens, .ac-pied-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ac-pied a { color: #FFF8E6; text-underline-offset: 3px; }
.ac-pied-legal a { color: rgba(249, 240, 217, .75); }

/* les pages légales (tools/build_prod.py) */
.ac-legal h2 { font: 650 var(--t-m)/1.3 var(--texte); margin-top: 16px; }
.ac-legal p { font-size: var(--t-s); color: var(--encre-2); line-height: 1.65; }
