/* ══════════════════════════════════════════════
   LE CERCLE B2B — Média économique B2B
   Style Les Échos / HBR — Vanilla CSS
   ══════════════════════════════════════════════ */

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

:root {
  --fond: #F9F8F6;
  --blanc: #ffffff;
  --marine: #1B2A4A;
  --marine-clair: #2C4A7C;
  --bordeaux: #8B1A2B;
  --bordeaux-clair: #A52A3A;
  --vert-foret: #1B4332;
  --or: #C9A84C;
  --texte: #2D2D2D;
  --texte-light: #6B6B6B;
  --texte-lighter: #999999;
  --border: #E8E4DF;
  --border-light: #F0EDE8;
  --max: 1200px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--texte);
  background: var(--fond);
}

/* Titres — Serif éditorial */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--marine);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; font-weight: 600; }

a { color: var(--marine-clair); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--bordeaux); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }

/* ══ HEADER ══ */
.site-header {
  background: var(--blanc);
  border-bottom: 3px solid var(--marine);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.header-date {
  font-size: 0.72rem;
  color: var(--texte-lighter);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--marine);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--bordeaux); }

.main-nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--border);
}

.main-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--texte);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.7rem 1.5rem;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover {
  color: var(--bordeaux);
  border-bottom-color: var(--bordeaux);
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--marine); margin: 4px 0; }

/* ══ HERO — Style journal ══ */
.hero {
  background: var(--blanc);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.hero-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--bordeaux);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--marine);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--texte-light);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
}

/* ══ CATÉGORIES — bande horizontale ══ */
.cat-bar {
  background: var(--blanc);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}

.cat-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.3s;
  background: var(--blanc);
}
.cat-card:hover {
  border-color: var(--bordeaux);
  box-shadow: 0 4px 12px rgba(27, 42, 74, 0.06);
}

.cat-card-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bordeaux);
  margin-bottom: 0.5rem;
}

.cat-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  color: var(--marine);
  margin-bottom: 0.3rem;
}

.cat-card p {
  font-size: 0.82rem;
  color: var(--texte-light);
  line-height: 1.5;
}

/* ══ ARTICLES GRID ══ */
.articles-section {
  padding: 3rem 0;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--texte-lighter);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article-card {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  box-shadow: 0 8px 24px rgba(27, 42, 74, 0.08);
  transform: translateY(-2px);
}
.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-body {
  padding: 1.2rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-cat {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bordeaux);
  margin-bottom: 0.5rem;
}

.article-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--marine);
  line-height: 1.35;
  flex: 1;
}

.article-card-date {
  font-size: 0.72rem;
  color: var(--texte-lighter);
  margin-top: 0.8rem;
}

/* ══ BREADCRUMB ══ */
.breadcrumb {
  font-size: 0.72rem;
  color: var(--texte-lighter);
  padding: 1rem 0;
}
.breadcrumb a { color: var(--texte-light); }
.breadcrumb a:hover { color: var(--bordeaux); }
.breadcrumb span { margin: 0 0.4rem; }

/* ══ ARTICLE PAGE ══ */
.article-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 2rem 1.5rem;
}

.article-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bordeaux);
  margin-bottom: 0.8rem;
}

.article-header h1 { margin-bottom: 1rem; }

.article-date {
  font-size: 0.78rem;
  color: var(--texte-lighter);
}

.article-featured-img {
  max-width: 960px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 2rem;
}
.article-featured-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
}

.article-layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Contenu article — style éditorial */
.article-content {
  max-width: 100%;
  padding: 0 0 3rem;
  overflow: hidden;
}
.article-content > div, .article-content > nav,
.article-content > figure, .article-content > iframe { max-width: 100%; }

/* Lettrine */
.article-content > p:first-of-type::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 900;
  float: left;
  line-height: 0.8;
  margin: 0.1em 0.15em 0 0;
  color: var(--marine);
}

.article-content p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--texte);
  margin-bottom: 1.2rem;
}
.article-content h2 {
  font-size: 1.5rem;
  margin: 3rem 0 1rem;
  color: var(--marine);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}
.article-content h3 {
  font-size: 1.15rem;
  margin: 2rem 0 0.5rem;
  color: var(--marine);
}
.article-content a {
  color: var(--marine-clair);
  text-decoration: underline;
  text-decoration-color: var(--or);
  text-underline-offset: 3px;
}
.article-content strong { color: var(--marine); }
.article-content img { border-radius: var(--radius); margin: 1.5rem 0; }

/* Tableaux — style grille financière */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.88rem;
  border: 1px solid var(--border);
}
.article-content th {
  background: var(--marine);
  color: var(--blanc);
  padding: 0.8rem 1rem;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-content td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
}
.article-content tr:nth-child(even) td {
  background: #FAFAF8;
}

/* Citations — style journal */
.article-content blockquote {
  border-left: 3px solid var(--bordeaux);
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--marine);
  background: var(--blanc);
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.article-content li { margin-bottom: 0.4rem; }

/* ══ AUTEUR ══ */
.author-box {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  margin: 2rem auto;
  max-width: 960px;
}
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.author-box h4 { font-size: 0.9rem; margin-bottom: 0.15rem; }
.author-box p { font-size: 0.8rem; color: var(--texte-light); margin: 0; }

/* ══ ARTICLES LIÉS ══ */
.related-posts { max-width: 960px; margin: 0 auto 3rem; padding: 0 2rem; }
.related-posts h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.related-card { text-decoration: none; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.3s; }
.related-card:hover { box-shadow: 0 4px 12px rgba(27,42,74,0.06); }
.related-card img { width: 100%; height: 120px; object-fit: cover; }
.related-card-cat { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bordeaux); padding: 0.8rem 1rem 0; }
.related-card h4 { font-size: 0.82rem; font-weight: 600; color: var(--marine); padding: 0.3rem 1rem 1rem; line-height: 1.3; }

/* ══ PAGE STATIQUE ══ */
.page-content { max-width: 820px; margin: 0 auto; padding: 3rem 2rem 4rem; }
.page-content h1 { margin-bottom: 2rem; }
.page-content h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }
.page-content p { margin-bottom: 1rem; line-height: 1.8; }

/* ══ CTA ══ */
.cta-section {
  background: var(--marine);
  padding: 4rem 0;
  text-align: center;
}
.cta-section h2 { color: var(--blanc); font-size: 1.8rem; margin-bottom: 0.8rem; }
.cta-section p { color: rgba(255,255,255,0.65); font-size: 1rem; margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.btn-cta {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--bordeaux);
  color: var(--blanc);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s;
}
.btn-cta:hover { background: var(--bordeaux-clair); color: var(--blanc); }

/* ══ FOOTER ══ */
.site-footer {
  background: var(--marine);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--blanc);
}
.footer-brand .footer-logo span { color: var(--or); }
.footer-brand p { font-size: 0.8rem; margin-top: 0.6rem; line-height: 1.7; }

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.8rem;
  font-weight: 600;
}
.footer-col a { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.6); padding: 0.2rem 0; }
.footer-col a:hover { color: var(--or); }

.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding: 1rem 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.72rem;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .main-nav { display: none; flex-direction: column; align-items: center; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; position: absolute; right: 2rem; top: 50%; transform: translateY(-50%); }
  .header-inner { position: relative; }
  .cat-grid, .articles-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .related-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .article-content table { display: block; overflow-x: auto; }
}
