/* ==========================================================================
   Gazette — thème magazine pour Dotclear
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-accent: #D7263D;
  --color-accent-dark: #a91c2e;
  --color-ink: #17181c;
  --color-ink-soft: #45474d;
  --color-paper: #ffffff;
  --color-paper-alt: #f4f4f2;
  --color-border: #e4e3e0;
  --color-tag: #6b6d73;

  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --wrap: 1200px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-paper);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .4em; }

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

.eyebrow, .kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(215,38,61,.08);
  padding: .2em .6em;
  border-radius: 2px;
  margin-bottom: .5em;
}

/* ---------- Topbar ---------- */
#topbar {
  background: var(--color-ink);
  color: #cfd0d4;
  font-size: .8rem;
}
#topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 36px; }
#topbar .topbar-date { opacity: .75; }
#topbar .topbar-social a { margin-left: 12px; opacity: .85; }
#topbar .topbar-social a:hover { color: #fff; opacity: 1; }

/* ---------- Header ---------- */
#header {
  background: var(--color-paper);
  border-bottom: 3px solid var(--color-ink);
}
#header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 18px;
  flex-wrap: wrap;
  gap: 14px;
}
#header .site-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -.01em;
  margin: 0;
}
#header .site-title a { color: var(--color-ink); }
#header .site-desc {
  font-family: var(--font-body);
  font-size: .82rem;
  color: var(--color-ink-soft);
  margin-top: 2px;
}

#searchbox form { display: flex; }
#searchbox input[type="text"] {
  border: 1px solid var(--color-border);
  border-right: none;
  padding: 8px 12px;
  font-family: var(--font-body);
  min-width: 200px;
  border-radius: var(--radius) 0 0 var(--radius);
}
#searchbox button {
  border: 1px solid var(--color-ink);
  background: var(--color-ink);
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- Main nav (plugin "Menu simple") ---------- */
#mainnav {
  background: var(--color-ink);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
#mainnav .widget.simple-menu {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}
#mainnav .widget.simple-menu h2 { display: none; }
#mainnav ul.simple-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
#mainnav ul.simple-menu > li {
  position: relative;
}
#mainnav ul.simple-menu > li > a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #d8d9dd;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 18px 18px;
  position: relative;
  transition: color .2s ease;
}
#mainnav ul.simple-menu > li > a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
#mainnav ul.simple-menu > li > a:hover,
#mainnav ul.simple-menu > li.active > a {
  color: #fff;
}
#mainnav ul.simple-menu > li > a:hover::after,
#mainnav ul.simple-menu > li.active > a::after {
  transform: scaleX(1);
}
#mainnav .simple-menu-descr {
  font-size: .62rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: .55;
}

/* ---------- Hero / à la une ---------- */
#hero { padding: 16px 0; }
#hero .hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}
.hero-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  background: var(--color-ink) center/cover;
  display: flex;
  align-items: flex-end;
}
.hero-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.hero-main .hero-overlay {
  position: relative;
  z-index: 2;
  padding: 26px;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 100%);
  width: 100%;
}
.hero-main h2 { font-size: 1.9rem; color: #fff; margin-bottom: .3em; }
.hero-main a { color: #fff; }
.hero-main .meta { color: #d8d8dc; font-size: .8rem; }

.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hero-side article {
  display: flex;
  gap: 12px;
  background: var(--color-paper);
  border-radius: var(--radius);
  padding: 10px;
  border: 1px solid var(--color-border);
}
.hero-side .thumb { width: 110px; min-width: 110px; height: 78px; overflow: hidden; border-radius: 3px; background: var(--color-paper-alt); }
.hero-side .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-side h3 { font-size: 1rem; margin: 0 0 .25em; }
.hero-side .meta { font-size: .74rem; color: var(--color-tag); }

/* ---------- Layout: main + sidebar ---------- */
#content-wrap { padding-top: 6px; padding-bottom: 24px; }
.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.section-title {
  font-size: 1.3rem;
  border-bottom: 3px solid var(--color-ink);
  padding-bottom: 8px;
  margin: 0 0 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.section-title span { color: var(--color-accent); margin: 0; padding: 0; }

#main, .layout, .layout > main {
  margin-left: 0;
  padding-left: 0;
  min-width: 0;
}

/* Article grid (home / category) */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 16px;
}
.post-card { background: transparent; border: none; border-radius: 0; overflow: visible; }
.post-card .thumb { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: var(--color-paper-alt); }
.post-card .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .body { padding: 14px 16px 18px; }
.post-card h3 { font-size: 1.08rem; margin-bottom: .3em; }
.post-card .excerpt { font-size: .88rem; color: var(--color-ink-soft); margin: .4em 0 0; }
.post-card .meta { font-size: .72rem; color: var(--color-tag); margin-top: .5em; }
.post-card .meta a { color: var(--color-accent); font-weight: 600; }

/* List style (used for "Une du jour" secondary list) */
.post-list { list-style: none; margin: 0 0 30px; padding: 0; }
.post-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.post-list .thumb { width: 130px; min-width: 130px; aspect-ratio: 4/3; overflow: hidden; border-radius: 3px; background: var(--color-paper-alt); }
.post-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-list h3 { font-size: 1.05rem; margin: 0 0 .3em; }
.post-list .meta { font-size: .72rem; color: var(--color-tag); }

.pagination { text-align: center; margin: 20px 0 10px; font-size: .85rem; }
.pagination a { padding: 6px 12px; border: 1px solid var(--color-border); border-radius: 3px; margin: 0 4px; background: var(--color-paper); }
.pagination a:hover { background: var(--color-ink); color: #fff; }

/* Cartes compactes pour la zone "catégorie mise en avant" (#spotlight) :
   largeur fixe par carte, pas d'étirement même avec peu d'articles. */
.spotlight-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.spotlight-grid .spotlight-card {
  flex: 0 1 200px;
  width: 200px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}
.spotlight-grid .spotlight-card .thumb {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-paper-alt);
}
.spotlight-grid .spotlight-card .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.spotlight-grid .spotlight-card:hover .thumb img { transform: scale(1.05); }
.spotlight-grid .spotlight-card h3 {
  display: block;
  color: var(--color-ink);
  font-size: .92rem;
  line-height: 1.3;
  margin: 10px 12px 4px;
}
.spotlight-grid .spotlight-card h3 a {
  color: var(--color-ink);
}
.spotlight-grid .spotlight-card .meta {
  display: block;
  font-size: .72rem;
  color: var(--color-tag);
  margin: 0 12px 12px;
}

/* Variante plus étroite (ex : bloc placé juste avant la sidebar) */
.spotlight-grid--narrow .spotlight-card {
  flex: 0 1 140px;
  width: 140px;
}
.spotlight-grid--narrow .spotlight-card h3 {
  font-size: .82rem;
}

/* ---------- Blocs sidebar avec images (Coups de cœur / Latest reviews) ---------- */
.sidebar-block { margin-bottom: 8px; }
.sidebar-block-label {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-ink);
}
.sidebar-block-label span {
  display: inline-block;
  background: var(--color-ink);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 10px 16px;
}
.sidebar-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sidebar-mini-card .thumb {
  display: block;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-paper-alt);
  margin-bottom: 8px;
}
.sidebar-mini-card .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sidebar-mini-card .badge {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--color-ink);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 8px;
}
.sidebar-mini-card h4 { font-size: .85rem; margin: 0; line-height: 1.3; }

.sidebar-feature-list { display: flex; flex-direction: column; gap: 20px; }
.sidebar-feature .thumb {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-paper-alt);
  margin-bottom: 8px;
}
.sidebar-feature .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sidebar-feature h4 { font-size: .95rem; margin: 0 0 .3em; }
.sidebar-feature .meta { font-size: .72rem; color: var(--color-tag); }

/* ---------- À l'affiche / blocs catégorie colorés ---------- */
.feature-section { padding-top: 16px; padding-bottom: 16px; }
.feature-label-wrap {
  border-bottom: 3px solid var(--dm-color, #F2C94C);
  margin-bottom: 24px;
}
.feature-label {
  display: inline-block;
  background: var(--dm-color, #F2C94C);
  color: #1a1a1a;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 10px 22px;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}
.feature-main-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--color-paper-alt);
  aspect-ratio: 16/9;
}
.feature-main-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-main-img img { width: 100%; display: block; }
.feature-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--color-ink);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 6px 14px;
}
.feature-main h2 { font-size: 1.7rem; margin: 0 0 .3em; }
.feature-main .feature-meta { font-size: .85rem; color: var(--color-ink-soft); margin-bottom: .6em; }
.feature-main .feature-meta strong { color: var(--color-ink); }
.feature-main .feature-excerpt { color: var(--color-ink-soft); font-size: .95rem; margin: 0; }

.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.feature-list li { display: flex; gap: 14px; }
.feature-list .thumb { width: 90px; min-width: 90px; height: 90px; overflow: hidden; border-radius: var(--radius); background: var(--color-paper-alt); }
.feature-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.feature-list h4 { font-size: 1rem; margin: 0 0 .3em; line-height: 1.3; }
.feature-list .meta { font-size: .78rem; color: var(--color-tag); }

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- Structure __layout.html (mustek) : utilisée par les pages
   qui ne passent pas par nos propres gabarits (ex. plugin Forum) ---------- */
#wrapper {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 20px 40px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
#wrapper #main { min-width: 0; }
#wrapper #sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
#wrapper #blognav,
#wrapper #blogextra {
  display: contents;
}
@media (max-width: 960px) {
  #wrapper { grid-template-columns: 1fr; }
}

/* ---------- Sidebar / widgets ---------- */
#sidebar { display: flex; flex-direction: column; gap: 26px; }
.widget { background: var(--color-paper); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 18px; }
.widget h2, .widget-title {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 2px solid var(--color-ink);
  padding-bottom: 10px;
  margin-bottom: 14px;
  color: var(--color-ink);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px dashed var(--color-border); font-size: .88rem; }
.widget li:last-child { border-bottom: none; }
.widget .category-link { display: flex; justify-content: space-between; }
.widget .count { color: var(--color-tag); font-size: .78rem; }

.widget-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-ink);
  color: #fff;
  margin: 0 6px 6px 0;
  font-size: .78rem;
  font-weight: 700;
}
.widget-social a:hover { background: var(--color-accent); color: #fff; }

.widget-ad { text-align: center; padding: 0; overflow: hidden; }
.widget-ad img { width: 100%; }

/* Popular / bestof numbered list */
.rank-list { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.rank-list li { counter-increment: rank; display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--color-border); }
.rank-list li:last-child { border-bottom: none; }
.rank-list li::before {
  content: counter(rank);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-accent);
  min-width: 22px;
}
.rank-list h4 { font-size: .9rem; margin: 0; }
.rank-list .meta { font-size: .72rem; color: var(--color-tag); }

/* ---------- Single post ---------- */
.post-single .post-kicker { margin-bottom: 10px; }
.post-single h1.post-title { font-size: 2.1rem; margin-bottom: .3em; }
.post-single .post-meta {
  font-size: .82rem;
  color: var(--color-ink-soft);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.post-single .post-meta a { color: var(--color-accent); }
.post-single .post-cover { margin: 0 0 20px; border-radius: var(--radius); overflow: hidden; }
.post-single .post-content { font-size: 1.02rem; }
.post-single .post-content p { margin: 0 0 1.1em; }
.post-single .post-content img { border-radius: var(--radius); margin: 1em 0; }
.post-single .post-tags { margin: 24px 0; }
.post-single .post-tags a {
  display: inline-block;
  font-size: .76rem;
  border: 1px solid var(--color-border);
  padding: 4px 10px;
  border-radius: 20px;
  margin: 0 6px 6px 0;
  color: var(--color-ink-soft);
}
.post-single .post-tags a:hover { border-color: var(--color-accent); color: var(--color-accent); }

#comments h3 { font-size: 1.2rem; border-bottom: 3px solid var(--color-ink); padding-bottom: 8px; }
#comments dl { margin: 0; }
#comments dt { font-size: .8rem; color: var(--color-tag); margin-top: 18px; }
#comments dd { background: var(--color-paper); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 14px 16px; margin: 6px 0 0; }

/* ---------- Footer ---------- */
#footer { background: var(--color-ink); color: #c7c8cc; margin-top: 40px; padding: 40px 0 18px; }
#footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 26px; }
#footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
#footer a:hover { color: #fff; }
#footer .footer-about p { font-size: .88rem; color: #a9abb1; }
#footer ul { list-style: none; margin: 0; padding: 0; }
#footer li { padding: 4px 0; font-size: .86rem; }
#footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 16px;
  font-size: .78rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: #8b8d93;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  #hero .hero-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  #footer .footer-grid { grid-template-columns: 1fr; }
  #header .site-title { font-size: 1.9rem; }
}
