/*
Theme Name: CZ Editorial
Description: Habillage éditorial de Ciel & Zen, le mag du mieux-être au quotidien.
Author: Ciel & Zen
Template: astra
Version: 1.0.0
Text Domain: cz-editorial
*/

:root {
  --cz-bg: #f7f9f8;
  --cz-paper: #ffffff;
  --cz-ink: #25313a;
  --cz-soft: #5c6d77;
  --cz-lac: #3e7286;
  --cz-lac-dark: #2c5566;
  --cz-mist: #e7eef1;
  --cz-line: #dfe6e8;
  --cz-r: 10px;
}

body {
  background: var(--cz-bg);
  font-family: 'Karla', sans-serif;
  color: var(--cz-ink);
}

h1, h2, h3, h4,
.site-title,
.main-header-menu {
  font-family: 'Schibsted Grotesk', sans-serif;
}

h1, h2, h3 { letter-spacing: -0.015em; }

a { transition: color .18s ease; }

/* ---- coquille ---- */
.cz-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---- header Astra, retouches légères ---- */
.ast-primary-header-bar {
  border-bottom: 1px solid var(--cz-line);
  background: var(--cz-bg);
}
.site-title a, .site-title a:hover { color: var(--cz-ink); }
.main-header-menu a { font-weight: 500; }
.main-header-menu .current-menu-item > a { color: var(--cz-lac-dark); }

/* ---- hero ---- */
.cz-hero {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 46px;
  align-items: center;
  padding: 52px 0 64px;
}
.cz-hero-copy h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 700;
}
.cz-hero-copy p {
  font-size: 1.11rem;
  color: var(--cz-soft);
  line-height: 1.6;
  max-width: 30rem;
  margin-bottom: 26px;
}
.cz-hero-pic img {
  border-radius: var(--cz-r);
  display: block;
  width: 100%;
  height: auto;
}
.cz-hero-pic figcaption {
  font-size: .82rem;
  color: var(--cz-soft);
  margin-top: 9px;
}

.cz-btn {
  display: inline-block;
  background: var(--cz-lac);
  color: #fff !important;
  font-weight: 700;
  font-family: 'Schibsted Grotesk', sans-serif;
  padding: 13px 26px;
  border-radius: var(--cz-r);
  text-decoration: none;
}
.cz-btn:hover { background: var(--cz-lac-dark); }
.cz-btn:active { transform: translateY(1px); }

/* ---- rubriques ---- */
.cz-rubriques { padding-bottom: 70px; }
.cz-rubriques > h2 {
  font-size: 1.65rem;
  margin-bottom: 26px;
}
.cz-tiles {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.cz-tile {
  position: relative;
  display: block;
  border-radius: var(--cz-r);
  overflow: hidden;
  background: var(--cz-paper);
  border: 1px solid var(--cz-line);
  text-decoration: none;
  color: var(--cz-ink);
}
.cz-tile:hover img { transform: scale(1.025); }
.cz-tile img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.cz-tile--une { grid-column: span 6; grid-row: span 2; }
.cz-tile--une img { height: 462px; }
.cz-tile { grid-column: span 3; }
.cz-tile--une.cz-tile { grid-column: span 6; }
.cz-tile-body { padding: 15px 17px 17px; }
.cz-tile-body h3 { font-size: 1.06rem; margin: 0 0 6px; }
.cz-tile--une .cz-tile-body h3 { font-size: 1.3rem; }
.cz-tile-body p {
  font-size: .9rem;
  color: var(--cz-soft);
  line-height: 1.5;
  margin: 0;
}

/* ---- derniers articles ---- */
.cz-recents { padding-bottom: 70px; }
.cz-recents-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.cz-recents-head h2 { font-size: 1.65rem; margin: 0; }
.cz-recents-head a { color: var(--cz-lac-dark); font-weight: 700; text-decoration: none; }
.cz-recents-head a:hover { text-decoration: underline; }

.cz-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cz-card {
  background: var(--cz-paper);
  border: 1px solid var(--cz-line);
  border-radius: var(--cz-r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cz-card-img img { width: 100%; height: 175px; object-fit: cover; display: block; }
.cz-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.cz-card-cat {
  font-size: .8rem;
  font-weight: 700;
  color: var(--cz-lac-dark);
  text-decoration: none;
}
.cz-card-body h3 { font-size: 1.08rem; line-height: 1.35; margin: 0; }
.cz-card-body h3 a { color: var(--cz-ink); text-decoration: none; }
.cz-card-body h3 a:hover { color: var(--cz-lac-dark); }
.cz-card-body p { font-size: .9rem; color: var(--cz-soft); line-height: 1.55; margin: 0; }
.cz-card-date { font-size: .8rem; color: var(--cz-soft); }

/* ---- bande héritage ---- */
.cz-racines {
  background: var(--cz-mist);
  border-radius: var(--cz-r);
  padding: 46px 48px;
  margin-bottom: 76px;
}
.cz-racines h2 { font-size: 1.5rem; margin: 0 0 14px; }
.cz-racines p {
  max-width: 46rem;
  color: var(--cz-ink);
  line-height: 1.65;
  margin: 0 0 20px;
}
.cz-racines a { color: var(--cz-lac-dark); font-weight: 700; }

/* ---- hubs de catégorie ---- */
.cz-cat-head { padding: 46px 0 12px; max-width: 46rem; }
.cz-cat-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 0 0 12px; }
.cz-cat-desc { color: var(--cz-soft); font-size: 1.05rem; line-height: 1.6; }
.cz-cat-visuel { margin: 26px 0 6px; }
.cz-cat-visuel img { border-radius: var(--cz-r); width: 100%; height: 260px; object-fit: cover; display: block; }
.cz-cat-list { padding: 28px 0 46px; }

.cz-pagination { margin-top: 34px; text-align: center; }
.cz-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--cz-line);
  border-radius: var(--cz-r);
  margin: 0 3px;
  text-decoration: none;
  color: var(--cz-ink);
}
.cz-pagination .current { background: var(--cz-lac); color: #fff; border-color: var(--cz-lac); }

.cz-ailleurs { padding-bottom: 64px; }
.cz-ailleurs h2 { font-size: 1.25rem; margin-bottom: 14px; }
.cz-ailleurs-liens { display: flex; flex-wrap: wrap; gap: 10px; }
.cz-ailleurs-liens a {
  display: inline-block;
  padding: 9px 16px;
  background: var(--cz-paper);
  border: 1px solid var(--cz-line);
  border-radius: var(--cz-r);
  color: var(--cz-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: .92rem;
}
.cz-ailleurs-liens a:hover { border-color: var(--cz-lac); color: var(--cz-lac-dark); }

/* ---- articles (habillage léger du single Astra) ---- */
.single-post .entry-content a { color: var(--cz-lac-dark); }
.single-post .entry-content blockquote {
  border-left: 3px solid var(--cz-lac);
  background: var(--cz-mist);
  border-radius: 0 var(--cz-r) var(--cz-r) 0;
}

/* ---- footer ---- */
.cz-footer {
  background: var(--cz-ink);
  color: #cdd8de;
  margin-top: 30px;
  padding: 52px 0 30px;
}
.cz-footer a { color: #cdd8de; text-decoration: none; }
.cz-footer a:hover { color: #ffffff; }
.cz-footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 38px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.cz-footer-brand strong {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 1.25rem;
  color: #fff;
}
.cz-footer-brand p { font-size: .93rem; line-height: 1.6; margin-top: 10px; max-width: 26rem; }
.cz-footer-cols h4 {
  color: #fff;
  font-size: .95rem;
  margin: 0 0 12px;
}
.cz-footer-cols ul { list-style: none; margin: 0; padding: 0; }
.cz-footer-cols li { margin-bottom: 8px; font-size: .92rem; }
.cz-footer-fin {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  font-size: .85rem;
  color: #9fb0b9;
}

/* ---- responsive ---- */
@media (max-width: 920px) {
  .cz-hero { grid-template-columns: 1fr; gap: 26px; padding: 34px 0 44px; }
  .cz-tiles { grid-template-columns: repeat(6, 1fr); }
  .cz-tile, .cz-tile--une.cz-tile { grid-column: span 6; }
  .cz-tile--une img { height: 230px; }
  .cz-cards { grid-template-columns: 1fr; }
  .cz-footer-cols { grid-template-columns: 1fr; gap: 26px; }
  .cz-racines { padding: 32px 24px; }
}
@media (min-width: 921px) and (max-width: 1080px) {
  .cz-tile { grid-column: span 6; }
  .cz-tile--une.cz-tile { grid-column: span 6; }
}
