/* Template 03 — Magazine : style print, 3 colonnes, dense */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937;
  background: #ffffff;
}
.mag-container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.mag-narrow { max-width: 760px; }

/* Header */
.mag-header {
  border-bottom: 4px double #1f2937;
  padding-bottom: 16px;
}
.mag-bar {
  background: var(--primary);
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 6px 0;
  letter-spacing: 0.15em;
  font-weight: 500;
}
.mag-spacer { margin: 0 12px; opacity: 0.5; }
.mag-master {
  text-align: center;
  padding: 32px 0 16px;
  border-bottom: 1px solid #e5e7eb;
}
.mag-name {
  font-family: 'DM Serif Display', serif;
  font-size: 56px;
  color: #1f2937;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.mag-nav {
  text-align: center;
  padding: 12px 0;
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.mag-nav a { color: #1f2937; text-decoration: none; transition: color .2s; }
.mag-nav a:hover { color: var(--accent); }

/* Hero */
.mag-hero { padding: 48px 32px 64px; max-width: 1240px; margin: 0 auto; }
.mag-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}
.mag-hero-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 16px;
}
.mag-hero-main h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 64px;
  line-height: 1.05;
  color: #1f2937;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.mag-hero-sub {
  font-size: 22px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
  font-style: italic;
}
.mag-hero-lead {
  font-size: 18px;
  color: #4b5563;
  line-height: 1.7;
  border-top: 1px solid #e5e7eb;
  padding-top: 24px;
}
.mag-hero-side {
  border-left: 4px solid var(--primary);
  padding-left: 24px;
  align-self: start;
}
.mag-hero-side h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  margin-bottom: 16px;
  color: #1f2937;
}
.mag-hero-side ol {
  padding-left: 20px;
  color: #4b5563;
}
.mag-hero-side ol li { margin-bottom: 8px; font-size: 15px; }
.mag-hero-side a { color: #4b5563; text-decoration: none; transition: color .2s; }
.mag-hero-side a:hover { color: var(--primary); }

/* H2 */
.mag-h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 38px;
  text-align: center;
  margin-bottom: 40px;
  color: #1f2937;
  border-bottom: 2px solid #1f2937;
  padding-bottom: 16px;
}

/* Blocs */
.mag-blocs-sec { padding: 64px 0; background: #fafaf9; }
.mag-blocs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.mag-bloc-card {
  background: #fff;
  padding: 32px;
  border: 1px solid #e5e7eb;
  position: relative;
}
.mag-bloc-num {
  position: absolute;
  top: -16px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.mag-bloc-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  margin-bottom: 12px;
  color: #1f2937;
}
.mag-bloc-card p { font-size: 15px; color: #4b5563; }

/* Liens */
.mag-liens-sec { padding: 64px 0; }
.mag-liens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.mag-liens-card {
  display: block;
  padding: 14px;
  background: #f3f4f6;
  border-left: 3px solid var(--primary);
  color: #1f2937;
  text-decoration: none;
  font-size: 14px;
  transition: all .2s;
}
.mag-liens-card:hover { background: #e5e7eb; border-left-color: var(--accent); }
.mag-empty { text-align: center; color: #9ca3af; font-style: italic; }

/* CTA */
.mag-cta { padding: 80px 0; background: #1f2937; color: #fff; text-align: center; }
.mag-cta h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 44px;
  margin-bottom: 16px;
}
.mag-cta p { max-width: 540px; margin: 0 auto 32px; opacity: 0.9; font-size: 18px; }
.mag-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.15em;
  transition: opacity .2s;
}
.mag-btn:hover { opacity: 0.9; }

/* Article */
.mag-article { padding: 56px 0 80px; }
.mag-art-h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
}
.mag-art-lead {
  font-size: 21px;
  color: #4b5563;
  font-style: italic;
  margin-bottom: 48px;
}
.mag-art-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  margin-top: 32px;
}
.mag-art-content section { margin-bottom: 40px; }
.mag-art-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 16px;
  border-top: 2px solid var(--accent);
  padding-top: 24px;
}
.mag-art-content p { margin-bottom: 16px; }
.mag-art-aside {
  border-left: 4px solid var(--primary);
  padding-left: 24px;
  align-self: start;
}
.mag-art-aside h3 { font-family: 'DM Serif Display', serif; font-size: 20px; margin-bottom: 16px; }
.mag-art-aside ul { list-style: none; }
.mag-art-aside li { padding: 8px 0; border-bottom: 1px solid #e5e7eb; }
.mag-art-aside a { color: #1f2937; text-decoration: none; font-size: 14px; }
.mag-art-aside a:hover { color: var(--accent); }

/* Footer */
.mag-footer { padding: 48px 32px 24px; background: #1f2937; color: #d1d5db; }
.mag-foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  max-width: 1240px;
  margin: 0 auto 32px;
}
.mag-foot-name { font-family: 'DM Serif Display', serif; font-size: 28px; color: #fff; margin-bottom: 8px; }
.mag-foot-tag { font-size: 14px; color: #9ca3af; }
.mag-footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: #fff; margin-bottom: 12px; }
.mag-footer ul { list-style: none; }
.mag-footer li { margin-bottom: 8px; }
.mag-footer a { color: #d1d5db; text-decoration: none; font-size: 14px; }
.mag-footer a:hover { color: var(--accent); }
.mag-foot-copy { text-align: center; font-size: 12px; color: #9ca3af; padding-top: 24px; border-top: 1px solid #374151; max-width: 1240px; margin: 0 auto; }

@media (max-width: 1000px) {
  .mag-hero-grid, .mag-art-body, .mag-foot-grid { grid-template-columns: 1fr; }
  .mag-blocs-grid { grid-template-columns: 1fr; }
  .mag-name { font-size: 36px; }
  .mag-hero-main h1 { font-size: 40px; }
  .mag-art-h1 { font-size: 36px; }
}
