/* ============================================================
   EXCELLENCE TERTIAIRE — BLOG STYLE COMPLET
   Police : Playfair Display (titres) + Inter (corps)
   Palette : navy #1C3557 / gold #C8A96E / cream #FAF8F4
   ============================================================ */

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

:root {
  --navy:        #1C3557;
  --navy-light:  #2a4a72;
  --gold:        #C8A96E;
  --gold-light:  #dfc08a;
  --cream:       #FAF8F4;
  --cream-dark:  #F0EDE5;
  --text-main:   #1a1a2e;
  --text-body:   #2c2c3a;
  --text-muted:  #5a5a6a;
  --border:      #e0dbd0;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text-main);
  font-size: 17px;
  line-height: 1.75;
}

/* === NAV === */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
}

.logo img { width: 40px; height: 40px; }

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li { list-style: none; }

.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-menu a:hover, .nav-menu a.active { color: var(--navy); }
.nav-menu a.active { border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

.nav-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: #0077b5;
  color: white !important;
  border-radius: 5px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s;
}
.nav-linkedin:hover { background: #005885; }

/* === BLOG HERO === */
.blog-hero {
  background: var(--navy);
  padding: 80px 2rem 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border: 70px solid rgba(200,169,110,0.07);
  border-radius: 50%;
}

.blog-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
}

.blog-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.blog-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  position: relative;
  z-index: 1;
}

.blog-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.stat-item { text-align: center; }

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
}

/* === BLOG GRID === */
.blog-grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 2rem 80px;
}

.blog-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  background: #fff;
  border: 1px solid var(--border);
  margin-bottom: 2.5rem;
  transition: box-shadow 0.25s, transform 0.25s;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(28,53,87,0.1);
}

.card-image {
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog-card:hover .card-image img { transform: scale(1.04); }

.card-date {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  text-transform: uppercase;
}

.card-content {
  padding: 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 3px solid transparent;
  transition: border-color 0.25s;
}

.blog-card:hover .card-content { border-left-color: var(--gold); }

.card-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.875rem;
}

.card-content h2 a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}

.card-content h2 a:hover { color: var(--gold); }

.excerpt {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.author { color: var(--text-muted); font-size: 0.8125rem; }

.read-more {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}
.read-more:hover { color: var(--gold); }

/* === ARTICLE HEADER === */
.article-header {
  background: var(--navy);
  padding: 72px 2rem 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
}

.article-header-category {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  margin-bottom: 20px;
}

.article-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.22;
  max-width: 820px;
  margin: 0 auto 20px;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

/* === ARTICLE BODY === */
.article-editorial {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 1.5rem 80px;
}

.article-editorial .intro {
  font-size: 1.125rem;
  color: var(--navy);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.article-editorial h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--navy);
  margin: 3rem 0 1rem;
  line-height: 1.3;
}

.article-editorial h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2rem 0 0.75rem;
}

.article-editorial p,
.article-editorial li {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 1.25rem;
}

.article-editorial ul,
.article-editorial ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.article-editorial li { margin-bottom: 0.5rem; }

.article-editorial a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.article-editorial a:hover { color: var(--gold); }
.article-editorial strong { color: var(--navy); font-weight: 600; }

.article-editorial blockquote {
  border-left: 3px solid var(--gold);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--cream-dark);
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-style: italic;
  color: var(--navy);
}

.box-stats, .box-key, .box-example {
  background: var(--cream-dark);
  border-left: 3px solid var(--navy);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
}

.box-stats-title, .box-key-title, .box-example-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.image-wrapper { margin: 2.5rem 0; }
.article-image { width: 100%; display: block; height: auto; }

.cta-box {
  background: var(--navy);
  color: #fff;
  padding: 3rem 2.5rem;
  text-align: center;
  margin: 3.5rem 0 0;
}

/* Surcharge nécessaire : .article-editorial p force text-body sur tous les <p> */
.cta-box h3,
.cta-box .cta-title,
.article-editorial .cta-box h3,
.article-editorial .cta-box .cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #fff !important;
  margin-bottom: 1rem;
}

.cta-box p,
.cta-box .cta-text,
.article-editorial .cta-box p,
.article-editorial .cta-box .cta-text {
  font-size: 1rem;
  color: rgba(255,255,255,0.85) !important;
  margin-bottom: 1.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button,
.article-editorial .cta-button {
  display: inline-block;
  background: var(--gold);
  color: var(--navy) !important;
  padding: 13px 32px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s;
}
.cta-button:hover,
.article-editorial .cta-button:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  color: var(--navy) !important;
}

/* === FOOTER === */
.site-footer {
  background: #1C3557;
  color: rgba(255,255,255,0.65);
  margin-top: 0;
  padding: 0;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 2rem 28px;
}

.footer-sep {
  width: 40px;
  height: 1px;
  background: rgba(200,169,110,0.35);
  margin: 0 auto 32px;
}

.footer-article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.art-nav-link {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: border-color 0.2s, color 0.2s;
  max-width: 260px;
  line-height: 1.4;
}
.art-nav-link:hover { border-color: #C8A96E; color: #C8A96E; }

.art-nav-center {
  color: #C8A96E;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(200,169,110,0.4);
  white-space: nowrap;
  transition: background 0.2s;
}
.art-nav-center:hover { background: rgba(200,169,110,0.1); }

.art-nav-empty { display: block; width: 80px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: #C8A96E;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: #C8A96E; }

.footer-author-name {
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}

.footer-stat {
  display: inline-block;
  background: rgba(200,169,110,0.12);
  border: 1px solid rgba(200,169,110,0.3);
  color: #C8A96E;
  font-size: 11px;
  padding: 3px 10px;
  margin-top: 10px;
}

.footer-location { margin-top: 10px !important; }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: #C8A96E; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .blog-card { grid-template-columns: 1fr; }
  .card-image { min-height: 220px; }
  .card-content { border-left: none; border-top: 3px solid transparent; }
  .blog-card:hover .card-content { border-top-color: var(--gold); border-left-color: transparent; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .blog-grid { padding: 48px 1rem 60px; }
  .card-content { padding: 1.5rem; }
  .blog-stats { gap: 2rem; }
  .stat-number { font-size: 2.25rem; }
  .article-editorial { padding: 40px 1rem 60px; }
  .cta-box { padding: 2rem 1.5rem; }
  .footer-article-nav { flex-direction: column; align-items: stretch; }
  .art-nav-link { max-width: 100%; }
  .art-nav-empty { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
