/* Le Journal Makedreem : même famille visuelle que la page des simulations. Un seul thème clair, verrouillé. */
:root {
  --paper: #f3f5f9; --surface: #ffffff; --ink: #0f1a33; --ink-2: #1a2747; --muted: #4b5774; --line: #dce2ec;
  --sun: #ffc93c; --sun-soft: #fff3d1; --sky: #2f5bea; --good: #12925a;
  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: only light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--f-body); font-size: 18px; background: var(--paper); color: var(--ink); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.read { max-width: 760px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 14px 24px; font: 700 1rem/1.1 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .12s, background .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #ffd35f; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-sm { padding: 10px 16px; font-size: .9rem; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.15rem/1 var(--f-display); letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand .dot { color: #d9a400; }
.nav { display: flex; align-items: center; gap: 26px; font-size: .95rem; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); }

.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 .78rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.kicker b { background: var(--ink); color: var(--sun); padding: 6px 9px; border-radius: 6px; font-weight: 600; letter-spacing: .1em; }

/* Page d'accueil du Journal */
.j-hero { padding-block: 64px 40px; }
.j-hero h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); letter-spacing: -0.035em; line-height: .98; margin-bottom: 20px; }
.j-hero p { font-size: clamp(1.08rem, 1.7vw, 1.25rem); color: var(--muted); max-width: 40em; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; padding-bottom: 80px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.post:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgb(15 26 51 / .45); }
.post a { text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.post .band { height: 8px; background: var(--c, var(--sun)); }
.post .in { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post .cat { font: 600 .72rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.post h2, .post h3 { font-size: 1.45rem; line-height: 1.15; }
.related .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 0; }
.related .post h3 { font-size: 1.2rem; }
.post p { color: var(--muted); font-size: .98rem; line-height: 1.55; }
.post .more { margin-top: auto; font-weight: 700; font-size: .95rem; }
.post .more::after { content: " →"; }

/* Article */
.crumbs { font-size: .88rem; color: var(--muted); padding-top: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.a-head { padding-block: 22px 28px; }
.a-head h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.04; margin-bottom: 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 600 .78rem/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.answer { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--sun); border-radius: 16px; padding: 20px 22px; font-size: 1.08rem; margin-bottom: 30px; }
.answer strong { color: var(--ink); }
article.body h2 { font-size: clamp(1.55rem, 3.4vw, 2rem); margin: 44px 0 14px; }
article.body h3 { font-size: 1.25rem; margin: 26px 0 8px; }
article.body p { margin-bottom: 16px; }
article.body ul, article.body ol { margin: 0 0 18px 1.2em; }
article.body li { margin-bottom: 8px; }
article.body li::marker { color: #b08200; font-weight: 700; }
article.body a { color: var(--sky); text-underline-offset: 3px; }
.est { display: inline-block; font: 600 .7rem/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; background: var(--sun-soft); color: #7a5d12; padding: 2px 7px; border-radius: 5px; vertical-align: 2px; }
.tablewrap { overflow-x: auto; margin: 6px 0 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 .72rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; background: var(--sun-soft); }
tr:last-child td { border-bottom: 0; }
.play { background: var(--ink); color: #fff; border-radius: 22px; padding: 28px; margin: 36px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.play b { display: block; font-family: var(--f-display); font-size: 1.45rem; line-height: 1.15; margin-bottom: 6px; }
.play p { color: rgb(255 255 255 / .75); font-size: .98rem; margin: 0 !important; }
.checklist { list-style: none; margin: 0 0 18px !important; display: grid; gap: 12px; }
.checklist li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 14px 48px; position: relative; margin: 0 !important; }
.checklist li::before { content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--good); }
/* Petit graphique des saisons (barres en CSS, valeurs reprises de la simulation) */
.season { margin: 8px 0 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px 14px; }
.season ol { list-style: none; margin: 0 !important; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 170px; }
.season li { margin: 0 !important; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; font: 600 .7rem/1 var(--f-mono); color: var(--muted); }
.season .bar { display: block; width: 100%; max-width: 36px; height: var(--h); background: #c9d1e0; border-radius: 6px 6px 2px 2px; }
.season li.hi .bar { background: var(--sun); }
.season li.lo .bar { background: var(--ink); }
.season figcaption { font-size: .88rem; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0 !important; }
.sources { font-size: .92rem; color: var(--muted); }
.sources li { margin-bottom: 6px; }
.note { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 30px; }
.related { padding-block: 40px 80px; }
.related h2 { font-size: 1.6rem; margin-bottom: 18px; }

.foot { border-top: 1px solid var(--line); padding-block: 28px 36px; font-size: .9rem; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 900px) { .posts, .related .posts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  body { font-size: 17px; }
  .play { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .j-hero { padding-block: 40px 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .post, .btn { transition: none; } }
