/* Les brèves au design « Croquis » — se charge après croquis.css.
 *
 * Les brèves gardent leur couleur, l'ambre, pour qu'on sache en une seconde si
 * l'on lit une brève ou un article de fond. Le reste (bordures au trait, Caveat,
 * en-tête et pied de page) vient du site.
 */
:root {
  --brief: #a85d0c;          /* texte et liens : contraste tenu sur fond clair */
  --brief-strong: #f0913d;   /* aplats et pastilles */
  --brief-soft: #fdf1e1;     /* fonds */
  --brief-line: #f2dcc0;     /* filets */
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
}

.btn.brief-btn { background: var(--brief-strong); color: #2a1804; }
.btn.brief-btn:hover { opacity: 1; background: #e08628; }
.briefs .btn.ghost { border: 2px solid var(--ink-15); background: #fff; color: var(--ink-75); }
.briefs .btn.ghost:hover { border-color: var(--brief-strong); background: #fff; color: var(--brief); }

/* ----- En-tête : fond encre, lueur ambre ----- */
.brief-head { background: radial-gradient(900px 460px at 50% -30%, #4a3215 0%, var(--ink) 62%); color: #fff; padding: 64px 0 56px; text-align: center; }
.brief-head .pill { display: inline-block; border: 0; border-radius: 0; background: none; padding: 0; font-family: var(--hand); font-size: 28px; font-weight: 400; line-height: 1.2; color: #f6b876; }
.brief-head h1 { max-width: 52rem; margin: 10px auto 12px; font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
.brief-head p { max-width: 42rem; margin: 0 auto; font-size: 17px; line-height: 1.6; color: rgb(255 255 255 / .72); text-wrap: pretty; }
.brief-head .rules { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.brief-head .rules span, .issue-stats span { border: 2px dashed rgb(255 255 255 / .22); border-radius: 999px; padding: 5px 14px; font-size: 13px; color: rgb(255 255 255 / .8); }
.brief-head .rules b, .issue-stats b { color: #f6b876; }
.issue-stats { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.week-nav { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.week-nav a { border: 2px solid rgb(255 255 255 / .35); border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 600; color: #fff; transition: border-color .15s, background-color .15s; }
.week-nav a:hover { border-color: var(--brief-strong); background: rgb(255 255 255 / .06); }
@media (min-width: 768px) { .brief-head { padding: 80px 0 64px; } .brief-head h1 { font-size: 44px; } }

/* ----- Mise en page : contenu + colonne d'appoint ----- */
.briefs .cols { display: grid; gap: 40px; padding: 48px 0 88px; align-items: start; }
@media (min-width: 960px) {
  .briefs .cols { grid-template-columns: 1fr 300px; gap: 48px; }
  .briefs .cols.summary-left { grid-template-columns: 280px 1fr; }
  .side, .toc { position: sticky; top: 96px; }
}
.year { margin: 4px 0 16px; display: flex; align-items: center; gap: 12px; font-family: var(--hand); font-size: 30px; line-height: 1; color: var(--brief); }
.year::after { content: ""; flex: 1; border-top: 2px dashed var(--brief-line); }

/* ----- Liste des numéros ----- */
.issue { margin-bottom: 24px; overflow: hidden; border: 2px solid var(--ink); background: #fff; border-radius: 18px 22px 16px 20px / 20px 16px 22px 18px; transition: transform .15s, box-shadow .15s; }
.issue:nth-of-type(even) { border-radius: 22px 16px 20px 18px / 16px 22px 18px 20px; }
.issue:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--brief-strong); }
.issue.latest { box-shadow: 8px 8px 0 var(--brief-strong); }
.i-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 18px 22px; background: var(--brief-soft); border-bottom: 2px solid var(--ink); }
.i-head .l { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.i-no { font-family: var(--hand); font-size: 26px; line-height: 1; color: var(--brief); }
.i-head h2 { font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; }
.i-head h2 a:hover { color: var(--brief); }
.i-head .dates { font-size: 13px; color: var(--ink-50); }
.i-head .count { white-space: nowrap; border: 2px solid var(--brief-line); border-radius: 999px; background: #fff; padding: 3px 11px; font-size: 12px; font-weight: 600; color: var(--brief); }
.i-latest-tag { border-radius: 999px; background: var(--brief-strong); padding: 3px 11px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #2a1804; }
.i-intro { padding: 18px 22px 4px; font-size: 15px; line-height: 1.6; color: var(--ink-70); }
.i-intro b { color: var(--ink); }
.i-list { padding: 8px 22px; }
.i-list li + li { border-top: 1px dashed var(--brief-line); }
.i-list a { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; padding: 11px 0; }
.i-list .ic { font-size: 19px; line-height: 1; }
.i-list .t { font-size: 15px; font-weight: 600; line-height: 1.4; }
.i-list a:hover .t { color: var(--brief); }
.i-list .m { display: none; white-space: nowrap; font-family: var(--mono); font-size: 11px; color: var(--ink-50); text-transform: uppercase; letter-spacing: .04em; }
@media (min-width: 640px) { .i-list a { grid-template-columns: 30px 1fr auto; } .i-list .m { display: block; } }
.i-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px 16px; border-top: 2px dashed var(--brief-line); }
.i-foot .src { font-size: 13px; color: var(--ink-50); }
.i-foot a.open { font-size: 14px; font-weight: 700; color: var(--brief); }
.i-foot a.open:hover { text-decoration: underline; }

/* ----- Colonne d'appoint ----- */
.side { display: grid; gap: 18px; }
.box { border: 2px solid var(--ink-15); background: #fff; padding: 20px 22px; border-radius: 18px; }
.box.amber { border-color: var(--ink); background: var(--brief-soft); border-radius: var(--sketch-alt); }
.box h4 { margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.box p { font-size: 14px; line-height: 1.55; color: var(--ink-70); }
.box ul { margin-top: 12px; display: grid; gap: 9px; }
.box li { display: flex; gap: 8px; font-size: 13.5px; color: var(--ink-70); }
.box .k { flex-shrink: 0; white-space: nowrap; font-family: var(--hand); font-size: 19px; line-height: 1.1; color: var(--brief); }
.box input { margin-top: 12px; width: 100%; border: 2px solid var(--ink-15); border-radius: 10px; background: #fff; padding: 10px 12px; font-size: 14px; }
.box input:focus, .issue-end input:focus { outline: none; border-color: var(--brief-strong); }
.box .btn { width: 100%; margin-top: 10px; font-size: 14px; }
.box .rgpd { margin-top: 10px; text-align: center; font-size: 12px; color: var(--ink-50); }
.box .form-status { margin-top: 8px; }
.box .form-status:empty, .issue-end .form-status:empty { display: none; }

/* ----- Un numéro : sommaire collant + brèves ----- */
.toc .toc-head { margin-bottom: 10px; font-family: var(--hand); font-size: 26px; line-height: 1.1; color: var(--brief); }
.toc ol { counter-reset: b; border-left: 2px solid var(--ink-10); }
.toc li { counter-increment: b; }
.toc ol a { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; margin-left: -2px; border-left: 2px solid transparent; padding: 10px 12px 10px 14px; }
.toc ol a::before { content: counter(b); display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border: 2px solid var(--ink-15); border-radius: 50%; font-size: 11px; font-weight: 700; color: var(--ink-50); }
.toc ol a .t { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--ink-70); }
.toc ol a .m { display: block; margin-top: 3px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-50); }
.toc ol a:hover .t { color: var(--ink); }
.toc ol a.on { border-left-color: var(--brief-strong); background: var(--brief-soft); }
.toc ol a.on .t { color: var(--ink); }
.toc ol a.on::before { border-color: var(--brief-strong); background: var(--brief-strong); color: #2a1804; }
.toc ol a.on .m { color: var(--brief); }
.toc .toc-foot { margin-top: 18px; border: 2px solid var(--ink); background: var(--brief-soft); padding: 16px; border-radius: var(--sketch-alt); }
.toc .toc-foot p { margin-bottom: 12px; font-size: 13px; line-height: 1.55; color: var(--ink-70); }
.toc .toc-foot .btn { width: 100%; padding: 9px 14px; font-size: 13px; }
@media (max-width: 959px) { .toc .toc-foot { display: none; } }

.briefs .intro { max-width: none; margin-bottom: 8px; border: 2px dashed var(--brief-line); background: #fffaf3; padding: 20px 22px; border-radius: 18px; }
.briefs .intro h2 { margin-bottom: 6px; font-size: 16px; font-weight: 700; }
.briefs .intro p { font-size: 15px; line-height: 1.6; color: var(--ink-70); }
.briefs .intro b { color: var(--ink); }

.b-item { scroll-margin-top: 96px; padding: 36px 0 32px; border-bottom: 2px dashed var(--ink-10); }
.b-item:last-of-type { border-bottom: 0; }
.b-top { margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--ink-50); }
.b-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brief-strong); font-size: 12px; font-weight: 700; color: #2a1804; }
.b-date { font-family: var(--mono); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--brief); }
.b-tag { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.b-len { font-size: 12px; }
.b-title { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; }
.b-title .tile { display: grid; place-items: center; width: 56px; height: 56px; border: 2px solid var(--ink); background: var(--brief-soft); font-size: 26px; border-radius: 16px 20px 14px 18px / 18px 14px 20px 16px; }
.b-item h3 { font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -.018em; text-wrap: balance; }
.b-item h3 a:hover { color: var(--brief); }
.b-item .body p { margin-top: 14px; font-size: 16.5px; line-height: 1.72; color: color-mix(in oklab, var(--ink) 85%, transparent); }
.b-item .body strong { font-weight: 600; color: var(--ink); }
.b-item .body p a { color: var(--brief); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) { .b-item .body { margin-left: 72px; } }
.src-line { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; border: 2px solid var(--brief-line); background: #fffaf3; padding: 12px 16px; border-radius: 14px; }
.src-line .s { font-size: 13px; line-height: 1.5; color: var(--ink-70); }
.src-line .s b { font-weight: 600; color: var(--ink); }
.src-line a { white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--brief); }
.src-line a:hover { text-decoration: underline; }
.back-top { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-50); }
.back-top:hover { color: var(--brief); }

.issue-end { margin-top: 36px; padding: 0; overflow: hidden; border: 2px solid var(--ink); border-radius: 18px 22px 16px 20px / 20px 16px 22px 18px; box-shadow: 8px 8px 0 var(--brief-strong); }
.issue-end .top { background: var(--brief-soft); padding: 26px 28px; }
.issue-end h2 { margin-bottom: 6px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.issue-end p { font-size: 15px; line-height: 1.6; color: var(--ink-70); }
.issue-end .form { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.issue-end input { flex: 1; min-width: 220px; border: 2px solid var(--brief-line); border-radius: 999px; background: #fff; padding: 10px 16px; font-size: 14px; }
.issue-end .form-status { margin-top: 10px; text-align: left; }
.issue-end .bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; border-top: 2px solid var(--ink); background: #fff; padding: 16px 28px; }
.issue-end .bottom span { font-size: 14px; color: var(--ink-70); }
