/*
Theme Name: Cowookie Actualité
Description: Thème d'actualités Cowookie — header et charte repris de la landing /v2, grille mosaïque pour les articles.
Author: Cowookie
Version: 2.0.0
*/

:root {
  color-scheme: light;
  --navy: #081d3d;
  --navy-2: #0d2b54;
  --navy-3: #14375f;
  --ink: #10233f;
  --copper: #ad6f3e;
  --copper-lt: #e6b98f;
  --copper-dark: #8d5329;
  --teal: #1d5d65;
  --sand: #f7eee5;
  --cream: #fbfaf8;
  --line: #dfe5ec;
  --line-2: #eef1f5;
  --muted: #617086;
  --green: #187a59;
  --shadow-sm: 0 2px 8px rgba(8, 29, 61, .06);
  --shadow: 0 22px 60px rgba(8, 29, 61, .12);
  --shadow-lg: 0 40px 110px rgba(8, 29, 61, .22);
  --r: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: "Manrope", sans-serif; margin: 0; letter-spacing: -.035em; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; flex: none; }
.kicker {
  margin-bottom: 14px; color: var(--copper-dark);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--copper); color: #fff; box-shadow: 0 14px 32px rgba(173, 111, 62, .3); }
.button-primary:hover { background: #bd7c47; }
.button-ghost { border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
.button-ghost:hover { background: rgba(255, 255, 255, .08); }
.arrow { font-size: 18px; line-height: 1; }

/* ---------- en-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8, 29, 61, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
}
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 800 21px/1 "Manrope", sans-serif; letter-spacing: -.045em; }
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: contain; }
.brand small { display: block; margin-top: 3px; font: 600 10px/1 "DM Sans", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--copper-lt); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .78); }
.nav-links a:hover { color: #fff; }
.nav-links a.current { color: var(--copper-lt); }
.nav-login { color: rgba(255, 255, 255, .78); }
.nav-cta { min-height: 42px; padding: 0 16px; border-radius: 10px; background: var(--copper); color: #fff; display: inline-flex; align-items: center; font-weight: 700; white-space: nowrap; }
.nav-cta:hover { background: #bd7c47; color: #fff; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 0; border-radius: 9px; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; flex: none;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
html.nav-open .nav-toggle .icon-burger { display: none; }
html.nav-open .nav-toggle .icon-close { display: block; }
html.nav-open { overflow: hidden; }

/* ---------- bandeau page ---------- */
.page-hero {
  padding: 56px 0 44px; color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 15, 34, .97) 0%, rgba(5, 15, 34, .88) 38%, rgba(5, 15, 34, .4) 72%, rgba(5, 15, 34, .18) 100%),
    url("https://www.cowookie.com/hero-coworking-isometric.webp") center right / cover no-repeat,
    radial-gradient(ellipse 60% 60% at 85% 0%, rgba(173, 111, 62, .32), transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(29, 93, 101, .3), transparent 62%),
    var(--navy);
}
.page-hero .eyebrow { color: var(--copper-lt); margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; color: #fff; }
.page-hero p.lead { margin-top: 14px; max-width: 640px; color: rgba(255, 255, 255, .74); font-size: 16.5px; line-height: 1.6; }

/* ---------- grille mosaïque ---------- */
.mosaic-section { padding: 56px 0 100px; }
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 18px;
}
.mosaic-card {
  position: relative; overflow: hidden; border-radius: var(--r);
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mosaic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mosaic-card.size-lg { grid-column: span 2; grid-row: span 2; }
.mosaic-card.size-wide { grid-column: span 2; grid-row: span 1; }
.mosaic-card.size-tall { grid-column: span 1; grid-row: span 2; }
.mosaic-card.size-sm { grid-column: span 1; grid-row: span 1; }
.mosaic-thumb { position: relative; flex: 1; overflow: hidden; background: var(--navy); }
.mosaic-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mosaic-cat {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 11px; border-radius: 999px; background: rgba(8, 29, 61, .82); backdrop-filter: blur(4px);
  color: var(--copper-lt); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.mosaic-body { padding: 16px 18px 18px; }
.mosaic-card.size-sm .mosaic-body, .mosaic-card.size-wide .mosaic-body { padding: 13px 16px 15px; }
.mosaic-card h2 { color: var(--navy); font-size: 18px; line-height: 1.28; }
.mosaic-card.size-lg h2 { font-size: 24px; }
.mosaic-card.size-wide h2 { font-size: 19px; }
.mosaic-card p.excerpt { margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.5; display: none; }
.mosaic-card.size-lg p.excerpt, .mosaic-card.size-wide p.excerpt { display: block; }
.mosaic-card .mosaic-meta { margin-top: 10px; color: #93a0b1; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.mosaic-card a.card-link { position: absolute; inset: 0; z-index: 3; }

@media (max-width: 980px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .mosaic-card.size-lg, .mosaic-card.size-wide { grid-column: span 2; }
}
@media (max-width: 620px) {
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .mosaic-card, .mosaic-card.size-lg, .mosaic-card.size-wide, .mosaic-card.size-tall { grid-column: span 1; grid-row: auto; }
  .mosaic-thumb { aspect-ratio: 16/10; flex: none; }
  .mosaic-card.size-lg p.excerpt, .mosaic-card.size-wide p.excerpt { display: block; }
}

/* ---------- pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--navy); font-size: 14px; font-weight: 700; text-decoration: none;
}
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .page-numbers:hover:not(.current) { border-color: var(--copper); color: var(--copper-dark); }
.pagination .page-numbers.dots { border: 0; background: none; }

/* ---------- article ---------- */
.article-hero { background: var(--navy); color: #fff; padding: 46px 0 0; }
.article-hero .wrap { padding-bottom: 40px; }
.article-hero .kicker { color: var(--copper-lt); }
.article-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; }
.article-hero .lead { margin-top: 16px; max-width: 720px; color: rgba(255, 255, 255, .74); font-size: 17px; line-height: 1.6; }
.article-hero .meta { margin-top: 20px; color: rgba(255, 255, 255, .5); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.article-cover { margin-top: 0; }
.article-cover img { width: 100%; max-height: 420px; object-fit: cover; }

.article-body-wrap { padding: 48px 0 90px; background: #fff; }
.article-body { max-width: 720px; margin-inline: auto; font-size: 17px; line-height: 1.75; color: var(--ink); }
.article-body h2 { color: var(--navy); font-size: 27px; margin: 44px 0 16px; line-height: 1.2; }
.article-body h3 { color: var(--navy); font-size: 21px; margin: 32px 0 12px; line-height: 1.25; }
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; }
.article-body li { margin-bottom: 9px; }
.article-body strong { color: var(--navy); }
.article-body blockquote {
  margin: 32px 0; padding: 22px 26px; border-left: 3px solid var(--copper);
  background: var(--sand); border-radius: 0 12px 12px 0; font-size: 19px; line-height: 1.5;
  color: var(--navy); font-family: "Manrope", sans-serif; font-weight: 600;
}
.article-body figure { margin: 32px 0; }
.article-body figure img { border-radius: var(--r); }
.article-body figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; text-align: center; }

.cw-callout {
  margin: 40px 0; padding: 26px 28px; border-radius: var(--r);
  background: var(--navy); color: #fff; box-shadow: var(--shadow);
}
.cw-callout .kicker { color: var(--copper-lt); margin-bottom: 10px; }
.cw-callout p { color: rgba(255, 255, 255, .82); font-size: 15.5px; line-height: 1.6; margin-bottom: 16px; }
.cw-callout a.button { margin-top: 4px; }

.cw-poll {
  margin: 36px 0; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--cream); box-shadow: var(--shadow-sm);
}
.cw-poll .poll-q { font-family: "Manrope", sans-serif; font-weight: 700; color: var(--navy); font-size: 17px; margin-bottom: 16px; }
.cw-poll .poll-opt {
  display: block; width: 100%; text-align: left; margin-bottom: 10px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
  font-size: 14.5px; font-weight: 600; color: var(--ink); position: relative; overflow: hidden;
}
.cw-poll .poll-opt:hover { border-color: var(--copper); }
.cw-poll .poll-opt .poll-bar { position: absolute; inset: 0; background: var(--sand); width: 0%; z-index: 0; transition: width .5s ease; }
.cw-poll .poll-opt .poll-label { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 10px; }
.cw-poll .poll-note { margin-top: 10px; color: var(--muted); font-size: 12px; }
.cw-poll.voted .poll-opt { cursor: default; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; }
.tag-row a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tag-row a:hover { border-color: var(--copper); color: var(--copper-dark); }

.share-row { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.back-link { color: var(--copper-dark); font-weight: 700; font-size: 14px; }

.breadcrumbs { padding: 14px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.breadcrumbs a { color: rgba(255, 255, 255, .68); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span[aria-current] { color: rgba(255, 255, 255, .5); }

.post-nav {
  max-width: 720px; margin: 8px auto 56px; padding-top: 40px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.post-nav-link {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid var(--line);
  border-radius: var(--r); background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.post-nav-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cdd6e2; }
.post-nav-next { justify-content: flex-end; text-align: right; grid-column: 2; }
.post-nav-empty { visibility: hidden; box-shadow: none; border: 0; }
.post-nav-arrow { flex: none; font-size: 20px; color: var(--copper-dark); }
.post-nav-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.post-nav-body small { color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.post-nav-body strong { color: var(--navy); font: 700 14.5px/1.35 "Manrope", sans-serif; }
@media (max-width: 620px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { grid-column: 1; justify-content: flex-start; text-align: left; }
  .post-nav-empty { display: none; }
}

.related-wrap { padding: 0 0 80px; }
.related-wrap .kicker { max-width: 720px; margin-inline: auto; }
.related-grid { max-width: 720px; margin-inline: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.related-thumb { aspect-ratio: 16/10; overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-card span { padding: 12px 14px; font-size: 13.5px; font-weight: 700; color: var(--navy); line-height: 1.35; }
@media (max-width: 720px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ---------- pied ---------- */
footer.site-footer { padding: 34px 0 44px; border-top: 1px solid var(--line); background: var(--cream); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 12.5px; }
.footer-logo { width: 168px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--navy); text-decoration: underline; }

@media (max-width: 720px) {
  .wrap { width: calc(100% - 28px); }
  .nav { height: 62px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; top: 62px; left: 0; right: 0; bottom: 0; z-index: 59;
    display: none; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--navy); padding: 14px 20px 28px; overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
  html.nav-open #nav-links { display: flex; }
  .nav-links a { padding: 13px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 16px; }
  .nav-links a.nav-cta { justify-content: center; margin-top: 10px; padding: 0 16px; }
  .brand { font-size: 18px; }
  .brand img { width: 32px; height: 32px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
