/* ============================================================
   La Brigoleuse — Sunrise Site
   Palette : coral #ff5e3a · teal #00c2a8 · yellow #ffd23f · ink #1a1a2e
   Typo : Archivo Black (titres) · Archivo (texte)
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fff8f0;
  --paper: #f0ece5;
  --ink: #1a1a2e;
  --ink-soft: #6b6b80;
  --ink-faint: #9b9bb5;
  --coral: #ff5e3a;
  --coral-dark: #e04e2a;
  --teal: #00c2a8;
  --teal-dark: #00a890;
  --yellow: #ffd23f;
  --line: #e8e0d0;
  --white: #ffffff;
  --maxw: 1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--coral); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  background: var(--ink);
  color: #eef0e9;
  border-bottom: 4px solid var(--coral);
  position: sticky;
  top: 0;
  z-index: 100;
}
.hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo {
  font-family: 'Archivo Black', sans-serif;
  font-size: 20px;
  letter-spacing: -.01em;
  color: #eef0e9;
  text-decoration: none;
  line-height: 1;
}
.logo b { color: var(--coral); }
.logo small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #7b7b95;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 3px;
  font-family: 'Archivo', sans-serif;
}
.main-nav { display: flex; align-items: center; gap: 22px; font-size: 13.5px; font-weight: 500; }
.main-nav a { color: #eef0e9; text-decoration: none; opacity: .85; transition: opacity .15s, color .15s; }
.main-nav a:hover { opacity: 1; color: var(--coral); }
.cta {
  background: var(--coral);
  color: #fff !important;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .03em;
  border-radius: 8px;
  transition: background .15s;
  opacity: 1 !important;
}
.cta:hover { background: var(--coral-dark); color: #fff !important; }
.nav-toggle { display: none; background: none; border: 0; color: #eef0e9; font-size: 22px; cursor: pointer; }

/* ── Ticker ─────────────────────────────────────────────── */
.ticker {
  background: var(--yellow);
  color: var(--ink);
  font-family: 'Archivo Black', sans-serif;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ticker span { display: inline-block; animation: tick 40s linear infinite; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Hero ───────────────────────────────────────────────── */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr 360px; gap: 0; }
.hero-main { padding: 56px 44px 48px 0; }
.hero-main .kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--coral); text-transform: uppercase; margin-bottom: 16px;
}
.hero-main h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.06;
  letter-spacing: -.015em;
}
.hero-main h1 mark { background: var(--coral); color: #fff; padding: 0 10px; }
.hero-main p { margin-top: 20px; font-size: 16.5px; color: var(--ink-soft); max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: 'Archivo Black', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 12px 20px;
  text-decoration: none;
  border: 2.5px solid var(--ink);
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
}
.btn-coral { background: var(--coral); color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.btn-teal  { background: var(--teal);  color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-coral:hover, .btn-teal:hover, .btn-ghost:hover {
  transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink);
}

.hero-side { border-left: 1px solid var(--line); background: var(--bg); padding: 40px 28px; }
.hero-side h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 20px;
}
.prog { margin-bottom: 16px; }
.prog .row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; font-weight: 600; }
.prog .row b { font-family: 'Archivo Black', sans-serif; }
.bar { height: 12px; background: var(--white); border: 1.5px solid var(--ink); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--coral); transition: width .4s; }
.prog.done .bar i { background: var(--teal); }
.prog.next .bar i { background: var(--yellow); }
.chantier-stats {
  margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.stat-item { font-size: 12px; }
.stat-item b { font-family: 'Archivo Black', sans-serif; font-size: 20px; display: block; }
.stat-item span { color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; font-size: 10px; font-weight: 600; }

/* ── Sections ───────────────────────────────────────────── */
.section { padding: 60px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 30px; flex-wrap: wrap; gap: 12px; }
.section-head h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  text-transform: uppercase; letter-spacing: -.01em;
}
.section-head h3 span { color: var(--coral); }
.section-head p { font-size: 14px; color: var(--ink-soft); max-width: 42ch; }
.sec-bg-warm { background: var(--bg); }
.sec-bg-white { background: var(--white); }
.sec-bg-ink { background: var(--ink); color: #eef0e9; }
.sec-bg-ink .section-head h3 { color: #fff; }
.sec-bg-ink .section-head h3 span { color: var(--coral); }
.sec-bg-ink .section-head p { color: var(--ink-faint); }

/* ── Journal grid ───────────────────────────────────────── */
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ep-card {
  background: var(--white);
  border: 2px solid var(--ink);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.ep-card:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--coral); }
.ep-link { text-decoration: none; color: inherit; display: block; }
.ep-card .ph {
  height: 190px;
  border-bottom: 2px solid var(--ink);
  position: relative;
  background: var(--ink) center/cover no-repeat;
}
.ep-card .ph .badge {
  position: absolute; top: 10px; left: 10px;
  font-family: 'Archivo Black', sans-serif; font-size: 11px;
  padding: 4px 10px; text-transform: uppercase; letter-spacing: .06em;
}
.ep-card .ph .badge + .badge { left: auto; right: 10px; }
.badge-coral { background: var(--coral); color: #fff; }
.badge-ink { background: var(--yellow); color: var(--ink); }
.ep-card .body { padding: 16px; }
.ep-card h4 { font-family: 'Archivo Black', sans-serif; font-size: 15px; text-transform: uppercase; line-height: 1.15; }
.ep-card .date { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; margin-top: 5px; font-weight: 600; }
.ep-card p { font-size: 13px; color: var(--ink-soft); margin-top: 8px; line-height: 1.45; }
.ep-card .foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}
.ep-card .arrow { color: var(--coral); font-size: 16px; }

/* ── Pagination ─────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 40px; }
.page-count { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

.empty-state { text-align: center; padding: 48px 20px; color: var(--ink-soft); }
.empty-state a { color: var(--coral); font-weight: 600; }

/* ── Newsletter ─────────────────────────────────────────── */
.news { text-align: center; padding: 52px 28px; }
.news h3 { font-family: 'Archivo Black', sans-serif; font-size: clamp(24px, 3.5vw, 38px); text-transform: uppercase; color: #fff; }
.news h3 span { color: var(--coral); }
.news p { font-size: 15px; color: var(--ink-faint); margin-top: 14px; max-width: 48ch; margin-left: auto; margin-right: auto; }
.news-form { display: flex; gap: 10px; max-width: 460px; margin: 26px auto 0; }
.news-form input {
  flex: 1; padding: 13px 16px; border: 2.5px solid #3a3a5e;
  background: var(--ink); color: #fff; font-size: 14px;
  font-family: 'Archivo', sans-serif;
}
.news-form input::placeholder { color: #7b7b95; }
.news-form button {
  background: var(--coral); color: #fff; border: 2.5px solid var(--coral);
  padding: 13px 24px; font-family: 'Archivo Black', sans-serif; font-size: 13px;
  text-transform: uppercase; cursor: pointer; letter-spacing: .04em;
}
.news-form button:hover { background: var(--coral-dark); border-color: var(--coral-dark); }
.news-msg { margin-top: 14px; font-size: 14px; color: var(--yellow); min-height: 20px; }

/* ── Post (single) ──────────────────────────────────────── */
.post-header { background: var(--white); padding: 52px 0 0; }
.post-meta-top { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tag-chip {
  font-family: 'Archivo Black', sans-serif; font-size: 11px;
  background: var(--ink); color: #fff; padding: 5px 11px;
  text-decoration: none; text-transform: uppercase; letter-spacing: .06em;
}
.tag-chip:hover { background: var(--coral); }
.post-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.04; letter-spacing: -.02em; max-width: 20ch;
}
.post-lede { font-size: 19px; color: var(--ink-soft); margin-top: 18px; max-width: 60ch; line-height: 1.5; }
.post-byline {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 26px 0 0; padding-bottom: 28px;
  font-size: 13px; color: var(--ink-soft); font-weight: 600;
}
.byline-av {
  width: 34px; height: 34px; border-radius: 50%; background: var(--coral); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Archivo Black', sans-serif; font-size: 12px;
}
.post-byline .dot { color: var(--line); }

.post-feature { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.post-feature img { width: 100%; border: 2px solid var(--ink); display: block; }
.post-feature figcaption { font-size: 12px; color: var(--ink-soft); margin-top: 8px; font-style: italic; }

.post-body-wrap { max-width: 760px; margin: 0 auto; padding: 52px 28px 20px; }
.post-content { font-size: 18px; line-height: 1.72; }
.post-content > * + * { margin-top: 1.4em; }
.post-content h2 {
  font-family: 'Archivo Black', sans-serif; font-size: 28px;
  text-transform: uppercase; letter-spacing: -.01em; margin-top: 1.8em; line-height: 1.15;
}
.post-content h3 { font-family: 'Archivo Black', sans-serif; font-size: 21px; margin-top: 1.6em; }
.post-content a { color: var(--coral); text-decoration: underline; text-underline-offset: 3px; }
.post-content strong { font-weight: 700; }
.post-content blockquote {
  border-left: 5px solid var(--coral); padding: 6px 0 6px 22px;
  font-size: 20px; font-style: italic; color: var(--ink-soft);
}
.post-content img { max-width: 100%; height: auto; border: 2px solid var(--ink); display: block; }
.post-content ul, .post-content ol { padding-left: 1.4em; }
.post-content li + li { margin-top: .5em; }
.post-content code {
  background: var(--bg); border: 1px solid var(--line); padding: 2px 6px;
  font-size: .88em; font-family: ui-monospace, 'SF Mono', monospace;
}
.post-content pre { background: var(--ink); color: #eef0e9; padding: 20px; overflow-x: auto; }
.post-content pre code { background: none; border: 0; color: inherit; }
.post-content hr { border: 0; border-top: 2px dashed var(--line); margin: 2.2em 0; }
.post-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.post-content th, .post-content td { border: 2px solid var(--ink); padding: 9px 12px; text-align: left; }
.post-content th { background: var(--ink); color: #fff; font-family: 'Archivo Black', sans-serif; font-size: 13px; text-transform: uppercase; }

.post-podcast {
  margin-top: 40px; padding: 24px; background: var(--bg);
  border: 2px solid var(--ink); display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.pc-label { font-family: 'Archivo Black', sans-serif; font-size: 15px; text-transform: uppercase; }

.post-footer { margin-top: 44px; padding-top: 24px; border-top: 2px solid var(--ink); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.post-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.post-tags a { font-size: 13px; color: var(--coral); text-decoration: none; font-weight: 600; }
.post-share { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.post-share a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--yellow); }

.post-nav { background: var(--white); border-top: 2px solid var(--ink); margin-top: 60px; }
.post-nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.post-nav-item { padding: 30px 28px; text-decoration: none; color: inherit; transition: background .15s; }
.post-nav-item:hover { background: var(--bg); }
.post-nav-next { text-align: right; border-left: 2px solid var(--ink); }
.pnl { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--coral); font-weight: 700; margin-bottom: 8px; }
.pnt { display: block; font-family: 'Archivo Black', sans-serif; font-size: 17px; line-height: 1.2; }

/* ── Error ──────────────────────────────────────────────── */
.error-page { text-align: center; padding: 100px 0; }
.error-code { font-family: 'Archivo Black', sans-serif; font-size: clamp(80px, 18vw, 200px); color: var(--coral); line-height: 1; }
.error-page h1 { font-family: 'Archivo Black', sans-serif; font-size: 30px; text-transform: uppercase; margin-top: 10px; }
.error-page p { font-size: 16px; color: var(--ink-soft); margin: 16px 0 30px; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: var(--ink-faint); padding: 52px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid #2e2e48; }
.f-logo { font-family: 'Archivo Black', sans-serif; font-size: 22px; color: #fff; margin-bottom: 14px; }
.f-logo span { color: var(--coral); }
.f-col p { font-size: 13.5px; line-height: 1.6; max-width: 44ch; }
.f-col h4 { font-family: 'Archivo Black', sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin-bottom: 14px; }
.f-col a { display: block; color: var(--ink-faint); text-decoration: none; font-size: 13.5px; margin-bottom: 9px; transition: color .15s; }
.f-col a:hover { color: var(--coral); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 12px; }
.footer-bottom b { color: var(--yellow); font-family: 'Archivo Black', sans-serif; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { padding: 40px 0 32px; }
  .hero-side { border-left: 0; border-top: 1px solid var(--line); }
  .journal-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--ink); padding: 20px 28px;
    border-bottom: 4px solid var(--coral); gap: 16px;
  }
  .nav-toggle { display: block; }
  .post-nav-grid { grid-template-columns: 1fr; }
  .post-nav-next { border-left: 0; border-top: 2px solid var(--ink); text-align: left; }
}
@media (max-width: 620px) {
  .journal-grid, .footer-grid { grid-template-columns: 1fr; }
  .post-content { font-size: 17px; }
  .chantier-stats { gap: 8px; }
}

/* ── Koenig editor (Ghost) ───────────────────────────────── */
.kg-width-wide { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.kg-width-full { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.kg-width-wide img, .kg-width-full img { width: 100%; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 12px; margin: 1.4em 0; }
.kg-gallery-row { display: flex; gap: 12px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border: 2px solid var(--ink); }
.kg-bookmark-card { border: 2px solid var(--ink); padding: 16px; margin: 1.4em 0; }
.kg-bookmark-container { display: flex; gap: 16px; align-items: center; }
.kg-bookmark-title { font-family: 'Archivo Black', sans-serif; font-size: 15px; }
.kg-bookmark-description { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.kg-bookmark-thumbnail img { width: 80px; height: 80px; object-fit: cover; border: 2px solid var(--ink); }
.kg-callout-card { border: 2px solid var(--coral); padding: 20px; margin: 1.4em 0; background: var(--bg); }
.kg-callout-card .kg-callout-text { font-size: 18px; font-weight: 600; }
.kg-button-card { text-align: center; margin: 1.4em 0; }
.kg-button-card a { background: var(--coral); color: #fff; padding: 12px 28px; font-family: 'Archivo Black', sans-serif; font-size: 14px; text-transform: uppercase; text-decoration: none; letter-spacing: .04em; }
.kg-nft-card { border: 2px solid var(--ink); margin: 1.4em 0; }
