/*
Theme Name: La Droite Républicaine Nationale
Author: DRN Studio
Version: 1.0.0
Description: Thème éditorial sur mesure. Logo, en-tête et pied de page intégrés — aucun marquage tiers.
Text Domain: drn
*/

:root {
  --ink: #14213D;
  --navy: #0E1626;
  --red: #EF4135;
  --gold: #C9A227;
  --blue: #0055A4;
  --paper: #FDFCFB;
  --text: #232A35;
  --muted: #5C6675;
  --line: #E8E4DB;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

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

a { color: var(--ink); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--red); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand img { width: 52px; height: auto; flex: none; }
.brand-name {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}
.brand:hover .brand-name { color: var(--red); }

.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav a {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
}
.main-nav a:hover { color: var(--red); }

.tricolore {
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0 33.4%, #F7F5F0 33.4% 66.7%, var(--red) 66.7%);
}

/* ---------- Front page / lists ---------- */
.site-main { padding: 40px 0 56px; }

.featured-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 30px 32px 28px;
  margin-bottom: 34px;
}
.featured-card .entry-title { font-size: 34px; line-height: 1.15; }
.featured-card p.excerpt { font-size: 17px; color: var(--muted); }

.chip {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
}

.entry-title { font-family: var(--serif); font-weight: 800; color: var(--ink); margin: 0 0 10px; }
.entry-title a { color: inherit; }
.entry-title a:hover { color: var(--red); }

.meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.meta .author, .meta .date { white-space: nowrap; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px 26px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(14, 22, 38, .08);
}
.card .entry-title { font-size: 21px; }
.card p.excerpt { margin: 8px 0 12px; color: var(--muted); font-size: 15px; }

.card-thumb { display: block; line-height: 0; margin-bottom: 14px; overflow: hidden; }
.card-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .25s ease; }
.card:hover .card-thumb img, .featured-card:hover .card-thumb img { transform: scale(1.03); }

.page-header-band {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 34px 0 26px;
  margin-bottom: 34px;
}
.page-header-band h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 38px;
  color: var(--navy);
  margin: 0;
}
.page-header-band .desc { color: var(--muted); max-width: 640px; }

.pagination { margin-top: 40px; display: flex; gap: 10px; justify-content: center; }
.pagination .page-numbers {
  min-width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff;
  font-weight: 600; color: var(--ink);
}
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination a.page-numbers:hover { border-color: var(--gold); color: var(--red); }

/* ---------- Single post / page ---------- */
.post-wrap { max-width: 780px; margin: 0 auto; padding: 46px 24px 64px; }
.post-kicker { margin-bottom: 14px; }
.post-wrap h1.entry-title { font-size: 40px; line-height: 1.12; }

.rule-meta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0; margin: 26px 0 34px;
}

.post-content { font-size: 17.5px; line-height: 1.8; }
.post-content p { margin: 0 0 1.3em; }
.post-content h2, .post-content h3 { font-family: var(--serif); color: var(--ink); margin-top: 1.6em; }
.post-content blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--gold);
  font-family: var(--serif); font-size: 21px; color: var(--ink); line-height: 1.5;
}
.post-content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.post-content ul, .post-content ol { padding-left: 24px; }

.comments-area { margin-top: 46px; border-top: 1px solid var(--line); padding-top: 30px; }
.comments-area h2 { font-family: var(--serif); color: var(--ink); }
.comment-list { list-style: none; padding: 0; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-author { font-weight: 700; color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C9CFDA; margin-top: 24px; }
.footer-tricolore { height: 4px; background: linear-gradient(90deg, var(--blue) 0 33.4%, #F7F5F0 33.4% 66.7%, var(--red) 66.7%); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 34px;
}
.footer-brand img { width: 64px; margin-bottom: 14px; }
.footer-brand .name { font-family: var(--serif); font-weight: 800; font-size: 19px; letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.footer-brand p { color: #9AA3B2; font-size: 14.5px; max-width: 34ch; }

.site-footer h3 {
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 16px; font-weight: 700;
}
.footer-cats ul { list-style: none; margin: 0; padding: 0; }
.footer-cats li { margin-bottom: 9px; }
.footer-cats a { color: #C9CFDA; font-size: 14.5px; }
.footer-cats a:hover { color: var(--gold); }

.footer-legal .year { color: #fff; font-weight: 600; }
.footer-legal p { margin: 0 0 8px; font-size: 14px; color: #9AA3B2; }

.copyright {
  border-top: 1px solid rgba(255,255,255,.09);
  padding-top: 18px; padding-bottom: 22px;
  font-size: 13px; color: #7E8798;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .masthead { flex-direction: column; align-items: flex-start; gap: 14px; }
  .main-nav ul { flex-wrap: wrap; gap: 14px 20px; }
  .grid { grid-template-columns: 1fr; }
  .featured-card .entry-title, .post-wrap h1.entry-title { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 36px; }
}
