/* aaarg.fr - feuille de style principale */
/* tout est ici, on verra plus tard si on découpe */

@font-face {
  font-family: 'Oswald';
  src: url('/fonts/oswald-latin.woff2') format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: 'Lora';
  src: url('/fonts/lora-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: 'Lora';
  src: url('/fonts/lora-italic-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

:root {
  --paper: #fdfdfb;
  --ink: #1a1a1a;
  --ink-soft: #5a5a5a;
  --ink-faint: #8a8a8a;
  --rouge: #d63a3a;
  --rouge-foncé: #b22d2d;
  --jaune: #f5b800;
  --rule: #e8e6e0;
  --side: #f6f4ee;
  --wrap: 1240px;
  --read: 760px;
}

/* reset rapide */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--rouge); }

/* typo */
h1, h2, h3, h4 {
  font-family: 'Oswald', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-transform: none;
}

h1 { font-size: 42px; }
h2 { font-size: 30px; margin-top: 1.6em; }
h3 { font-size: 22px; margin-top: 1.4em; }

@media (max-width: 720px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 19px; }
  body { font-size: 16px; }
}

p { margin: 0 0 1.1em; }

/* wrappers */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-read { max-width: var(--read); margin: 0 auto; padding: 0 24px; }

@media (max-width: 640px) {
  .wrap, .wrap-read { padding: 0 18px; }
}

/* header */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: 0.02em;
  color: var(--rouge);
  text-decoration: none;
  line-height: 1;
}
.logo:hover { color: var(--rouge-foncé); }

.logo .bang { color: var(--ink); font-size: 28px; vertical-align: super; line-height: 0; margin-left: 2px; }

.main-nav { display: flex; gap: 22px; align-items: center; }
.main-nav a {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--rouge);
  border-bottom-color: var(--rouge);
}

.search-icon {
  width: 22px; height: 22px;
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; gap: 14px; }
  .main-nav { width: 100%; justify-content: flex-start; gap: 14px; flex-wrap: wrap; }
  .main-nav a { font-size: 13px; }
  .logo { font-size: 30px; }
}

/* tags catégorie - fond plein, pas une bordure */
.cat-pill {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #fff;
  background: var(--rouge);
  padding: 4px 10px;
  text-decoration: none;
  border-radius: 0;
}
.cat-pill:hover { color: #fff; opacity: 0.9; }

/* hero featured (home) */
.hero-featured {
  margin: 36px 0 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.hero-featured .hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--rule);
}

.hero-featured .hero-body {
  display: flex; flex-direction: column; justify-content: center;
  padding: 4px 0;
}

.hero-featured .hero-title {
  font-size: 46px;
  margin: 14px 0 12px;
}
.hero-featured .hero-title a { text-decoration: none; }
.hero-featured .hero-title a:hover { color: var(--rouge); }

.hero-featured .hero-excerpt { color: var(--ink-soft); font-size: 18px; margin-bottom: 14px; }
.hero-featured .hero-meta { color: var(--ink-faint); font-size: 13px; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.06em; }

@media (max-width: 800px) {
  .hero-featured { grid-template-columns: 1fr; gap: 18px; }
  .hero-featured .hero-title { font-size: 32px; }
}

/* layout 2 colonnes (home grid + article) */
.layout-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  margin: 0 0 60px;
}

@media (max-width: 980px) {
  .layout-2col { grid-template-columns: 1fr; gap: 36px; }
}

/* main column */
.main-col h2.section-title {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
  margin-bottom: 22px;
}

/* card tile */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 24px;
}

.card-tile {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.25);
}

.card-tile-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--rule);
}

.card-tile-body { padding: 12px 0 4px; }

.card-tile-title {
  font-size: 20px;
  line-height: 1.25;
  margin: 8px 0 8px;
}
.card-tile-title a { text-decoration: none; }
.card-tile-title a:hover { color: var(--rouge); }

.card-tile-excerpt {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 10px;
  line-height: 1.55;
}

.card-tile-meta {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.card-tile-meta a { color: var(--ink-soft); text-decoration: none; }
.card-tile-meta a:hover { color: var(--rouge); text-decoration: underline; }

@media (max-width: 540px) {
  .card-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* sidebar */
.sidebar { background: var(--side); padding: 24px 22px; border: 1px solid var(--rule); align-self: start; }
.sidebar .widget { margin-bottom: 28px; }
.sidebar .widget:last-child { margin-bottom: 0; }

.widget-title {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  border-bottom: 2px solid var(--rouge);
  padding-bottom: 6px;
  margin: 0 0 14px;
  display: inline-block;
}

.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px dotted var(--rule); }
.widget li:last-child { border-bottom: none; padding-bottom: 0; }
.widget li a { text-decoration: none; font-size: 15px; line-height: 1.35; display: block; }
.widget li a:hover { color: var(--rouge); }

.widget .meta-line {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-top: 4px;
}

.cat-list a {
  display: inline-block;
  margin: 0 6px 6px 0;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border: 1px solid var(--rule);
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
}
.cat-list a:hover { background: var(--rouge); color: #fff; border-color: var(--rouge); }

.widget-blurb { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* article */
.article-hero { margin: 30px 0 24px; }
.article-hero .cat-pill { margin-bottom: 16px; }

.article-title {
  font-size: 46px;
  line-height: 1.1;
  margin: 0 0 14px;
}

@media (max-width: 720px) {
  .article-title { font-size: 32px; }
}

.article-byline {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 24px;
}

.article-byline a { color: var(--ink-soft); text-decoration: none; }
.article-byline a:hover { color: var(--rouge); }

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--rule);
  margin-bottom: 28px;
}

.prose { font-family: 'Lora', Georgia, serif; font-size: 17px; line-height: 1.7; color: var(--ink); }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: 26px; margin-top: 1.7em; }
.prose h3 { font-size: 19px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin: 0 0 0.5em; }
.prose blockquote {
  margin: 1.2em 0;
  padding: 6px 0 6px 18px;
  border-left: 3px solid var(--rouge);
  color: var(--ink-soft);
  font-style: italic;
}
.prose a { color: var(--rouge-foncé); text-decoration: underline; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--rouge); }

/* drop cap */
.prose > p:first-of-type::first-letter {
  font-family: 'Oswald', sans-serif;
  font-size: 64px;
  line-height: 0.85;
  float: left;
  margin: 6px 10px 0 0;
  color: var(--rouge);
  font-weight: 700;
}

/* tags fin article */
.article-tags { margin: 30px 0 10px; }
.tag-row a {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 4px 9px;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--side);
  text-decoration: none;
  color: var(--ink-soft);
}
.tag-row a:hover { background: var(--jaune); color: var(--ink); }

/* author card en bas d'article */
.author-card {
  margin: 40px 0 20px;
  display: flex;
  gap: 18px;
  padding: 22px;
  background: var(--side);
  border-left: 4px solid var(--rouge);
}
.author-card-photo { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-card-name { font-family: 'Oswald', sans-serif; font-size: 18px; margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.author-card-role { font-size: 13px; color: var(--ink-faint); margin-bottom: 8px; }
.author-card-bio { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* related (sidebar widget) */
.related-art { display: flex; gap: 10px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px dotted var(--rule); }
.related-art:last-child { border-bottom: none; padding-bottom: 0; }
.related-art img { width: 64px; height: 48px; object-fit: cover; flex-shrink: 0; background: var(--rule); }
.related-art a { font-size: 14px; line-height: 1.3; text-decoration: none; }
.related-art a:hover { color: var(--rouge); }

/* footer */
.site-footer {
  margin-top: 60px;
  background: #1a1a1a;
  color: #c2c2c2;
  padding: 44px 0 24px;
  font-size: 14px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 28px;
}

.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0 0 7px; }
.footer-col a { color: #c2c2c2; text-decoration: none; }
.footer-col a:hover { color: var(--jaune); }

.footer-blurb { font-size: 13px; line-height: 1.6; color: #a8a8a8; }

.site-footer-bottom {
  border-top: 1px solid #333;
  padding-top: 18px;
  text-align: center;
  font-size: 12px;
  color: #8a8a8a;
}
.site-footer-bottom a { color: #c2c2c2; }

@media (max-width: 800px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* 404 */
.error-block { text-align: center; padding: 80px 20px 100px; }
.error-block .err-num {
  font-family: 'Oswald', sans-serif;
  font-size: 140px;
  font-weight: 700;
  line-height: 1;
  color: var(--rouge);
  letter-spacing: -0.02em;
}
.error-block .err-msg { font-family: 'Oswald', sans-serif; font-size: 26px; margin: 18px 0 8px; }
.error-block .err-sub { color: var(--ink-soft); max-width: 480px; margin: 0 auto 26px; }
.error-block .err-link {
  display: inline-block;
  padding: 11px 22px;
  background: var(--ink);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.error-block .err-link:hover { background: var(--rouge); color: #fff; }

/* misc utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.kicker { font-family: 'Oswald', sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--rouge); margin-bottom: 8px; }

/* classes héritées d'anciens essais, à nettoyer un jour */
.hot-deal-corner { display: none; }
.author-badge-pro { font-weight: bold; }
.widget-newsletter-legacy { background: var(--side); padding: 16px; }
