/* =============================================================================
   AI Weekly — BNB Brand Design
   Palette : #1e2025 dark | #ff4041 coral | #f5cab7 peach | #282a30 card
   ============================================================================= */

:root {
  --bg-dark: #1e2025;
  --bg-card: #282a30;
  --bg-light: #f9f9f9;
  --accent: #ff4041;
  --peach: #f5cab7;
  --text-primary: #ffffff;
  --text-secondary: #a0a3ab;
  --text-muted: #6b6e76;
  --border: #35373e;
  --radius: 12px;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  --max-width: 920px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

/* -----------------------------------------------------------------------------
   Header
   ----------------------------------------------------------------------------- */
header {
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--accent);
}

header h1 {
  font-size: 2.4rem;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

header .subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

header .edition-date {
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: 0.3rem;
  font-weight: 600;
}

/* -----------------------------------------------------------------------------
   Banner image
   ----------------------------------------------------------------------------- */
.banner-img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  margin-bottom: 2.5rem;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* -----------------------------------------------------------------------------
   Section label (chapeau de rubrique)
   ----------------------------------------------------------------------------- */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255, 64, 65, 0.1);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* -----------------------------------------------------------------------------
   Articles (principal + focus)
   ----------------------------------------------------------------------------- */
article {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

article:last-of-type {
  border-bottom: none;
}

article h2 {
  font-size: 1.65rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.8rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.9rem;
  line-height: 1.3;
}

article h3 {
  font-size: 1.05rem;
  color: var(--peach);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 1.2rem;
  padding-left: 0.9rem;
}

article p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

article strong {
  color: var(--text-primary);
  font-weight: 600;
}

article a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 64, 65, 0.3);
  transition: border-color 0.15s;
}

article a:hover {
  border-bottom-color: var(--accent);
}

article .sources {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

article .sources a {
  color: var(--text-muted);
  border-bottom: 1px dotted var(--border);
}

article .sources a:hover {
  color: var(--accent);
}

/* Image de section focus */
.focus-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  margin-bottom: 1.2rem;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* -----------------------------------------------------------------------------
   Cartouches / Breves
   ----------------------------------------------------------------------------- */
.breves-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.2rem;
  margin-bottom: 3rem;
}

.breve {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: border-color 0.2s, transform 0.15s;
  overflow: hidden;
}

.brief-img {
  width: 100%;
  aspect-ratio: 19 / 10;
  object-fit: cover;
  display: block;
}

.breve h4, .breve p, .breve .source {
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}

.breve:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.breve h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.6rem;
  line-height: 1.3;
  padding-top: 1.2rem;
}

.breve p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.breve .source {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
  padding-bottom: 1.2rem;
}

.breve .source a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--border);
}

.breve .source a:hover { color: var(--accent); }

/* -----------------------------------------------------------------------------
   Ça Buzz — liste compacte trending
   ----------------------------------------------------------------------------- */
.buzz-list {
  list-style: none;
  padding: 0;
  margin-top: 1.2rem;
  margin-bottom: 3rem;
}

.buzz-list li {
  padding: 0.7rem 1rem;
  border-left: 3px solid var(--accent);
  margin-bottom: 0.5rem;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.buzz-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.buzz-list li a {
  color: var(--accent);
  text-decoration: none;
  margin-left: 0.3rem;
  font-size: 0.78rem;
}

/* -----------------------------------------------------------------------------
   Glossaire
   ----------------------------------------------------------------------------- */
.glossaire {
  margin-bottom: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.glossaire h2 {
  font-size: 1.3rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 1.2rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.8rem;
}

.glossaire dl { margin-top: 0.5rem; }

.glossaire dt {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-top: 1.2rem;
}

.glossaire dt:first-of-type { margin-top: 0; }

.glossaire dd {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-left: 0;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

.mindmap-container {
  margin: 2rem 0 0;
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-dark);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.mindmap-container svg {
  max-width: 100%;
  height: auto;
  background: transparent;
}

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

footer h3 {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

footer ul { list-style: none; padding: 0; }
footer li { margin-bottom: 0.35rem; }

footer a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--border);
  transition: color 0.15s;
}

footer a:hover { color: var(--accent); }

/* -----------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .container { padding: 1.5rem 1rem; }
  header h1 { font-size: 1.7rem; }
  .breves-grid { grid-template-columns: 1fr; }
  article h2 { font-size: 1.3rem; }
  .banner-img { max-height: 200px; }
  .glossaire { padding: 1.2rem; }
}
