/* ═══════════════════════════════════════════════════════════
   STYLE PAGE BLOG — nouveau style dark, cohérent avec landing.css
   Polices : Bebas Neue (titres) · Syne (corps) · DM Mono (mono)
════════════════════════════════════════════════════════════ */

/* ═══════════ VARIABLES & BASE ═══════════ */
:root {
  --vp: #764ba2;
  --vb: #667eea;
  --vc: #c4b5fd;
  --g: linear-gradient(135deg, #764ba2, #667eea);
  --bg: #0a0a14;
  --bg2: #0f0e1a;
  --muted: rgba(255, 255, 255, .5);
  --border: rgba(255, 255, 255, .1);
  --green: #34d399;
  --blue: #60a5fa;
  --red: #f87171;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: #fff;
  font-family: 'Syne', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

/* ═══════════ HEADER ═══════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 20, .75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
}

.logo {
  flex-shrink: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: .18em;
  background: var(--g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

#imgLogo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.header nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: .85rem;
  color: var(--muted);
}

.header nav a {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
}

.header nav a:hover {
  color: #fff;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .hamburger-btn {
    display: block;
  }

  .header nav {
    display: none;
    position: absolute;
    top: 57px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 20, .97);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .header nav.nav-open {
    display: flex;
  }
}

/* ═══════════ BLOG HERO ═══════════ */
.blog-hero {
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero .g1 {
  width: 600px;
  height: 600px;
  background: rgba(118, 75, 162, .3);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}

.blog-hero-inner {
  position: relative;
  z-index: 2;
}

.blog-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  letter-spacing: .03em;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.02;
}

.blog-hero-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ═══════════ MAIN CONTAINER ═══════════ */
.blog-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

/* ═══════════ LOADER ═══════════ */
#blog-loader {
  text-align: center;
  padding: 4rem 0;
  color: var(--vc);
  font-family: 'DM Mono', monospace;
  font-size: .9rem;
}

.loader-spinner {
  display: inline-block;
  width: 36px;
  height: 36px;
  border: 3px solid rgba(167, 139, 250, .2);
  border-top-color: var(--vc);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ═══════════ ERROR / EMPTY ═══════════ */
#blog-error,
#blog-empty {
  text-align: center;
  padding: 4rem 0;
}

#blog-error p,
#blog-empty p {
  color: var(--muted);
  font-size: 1rem;
}

/* ═══════════ GRID ARTICLES ═══════════ */
#blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* ═══════════ CARTE ARTICLE ═══════════ */
.article-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(167, 139, 250, .45);
  box-shadow: 0 16px 40px rgba(118, 75, 162, .25);
}

.article-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
}

.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.article-img img[src$=".svg"] {
  object-fit: contain;
}

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

.article-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(118, 75, 162, .2), rgba(102, 126, 234, .12));
  font-size: 3rem;
  aspect-ratio: 16 / 9;
}

.article-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.article-category {
  font-family: 'DM Mono', monospace;
  font-size: .62rem;
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.article-date {
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  color: var(--muted);
}

.article-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: #fff;
  line-height: 1.1;
  letter-spacing: .02em;
}

.article-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-read-more {
  display: inline-block;
  margin-top: 4px;
  font-family: 'DM Mono', monospace;
  font-size: .75rem;
  color: var(--vc);
  letter-spacing: .04em;
  transition: color .2s, letter-spacing .2s;
}

.article-card:hover .article-read-more {
  color: #fff;
  letter-spacing: .07em;
}

/* ═══════════ FOOTER ═══════════ */
footer.footer {
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer-content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: .82rem;
  color: var(--muted);
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-content p,
.footer-content div>p {
  font-family: 'DM Mono', monospace;
  font-size: .75rem;
  color: var(--muted);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (min-width: 769px) and (max-width: 1024px) {
  #blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 70px 24px 50px;
  }

  .blog-container {
    padding: 40px 16px 60px;
  }

  #blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .blog-hero-title {
    font-size: 2.4rem;
  }
}


/* ═══════════════════════════════════════════════════════════
   ANCIEN STYLE (conservé) — remplacé par le style dark ci-dessus
════════════════════════════════════════════════════════════ */
/*

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    background: #f8f9fa;
    line-height: 1.8;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: black;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: #e63848;
    transition: width 0.3s;
    border-radius: 10px;
}

nav a:hover::after {
    width: 100%;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

#imgLogo {
    height: 40px;
    vertical-align: middle;
}

.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.blog-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.blog-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 500;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

#blog-loader {
    text-align: center;
    padding: 4rem 0;
    color: #764ba2;
    font-size: 1.1rem;
    font-weight: 600;
}

.loader-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(118, 75, 162, 0.2);
    border-top-color: #764ba2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#blog-error, #blog-empty {
    text-align: center;
    padding: 4rem 0;
    display: none;
}

#blog-error p, #blog-empty p {
    color: #666;
    font-size: 1.1rem;
}

#blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(118, 75, 162, 0.18);
    border-color: #764ba2;
}

.article-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.article-img img[src$=".svg"] {
    object-fit: contain;
}

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

.article-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0ebff 0%, #e8f4ff 100%);
    font-size: 3.5rem;
}

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

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.article-category {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date {
    font-size: 0.85rem;
    color: #888;
}

.article-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.4;
}

.article-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-read-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: #764ba2;
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.2s, letter-spacing 0.2s;
}

.article-card:hover .article-read-more {
    color: #e63848;
    letter-spacing: 0.3px;
}

.footer {
    background: linear-gradient(135deg, #4a7fd6 0%, #5e8eea 100%);
    color: #fff;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #764ba2;
    padding: 0.3rem 0.5rem;
    line-height: 1;
    border-radius: 8px;
    transition: background 0.2s;
}

.hamburger-btn:hover {
    background: rgba(118, 75, 162, 0.1);
}

@media (min-width: 769px) and (max-width: 1024px) {
    .blog-hero { padding: 3rem 1.5rem; }
    #blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header { padding: 1rem 1.2rem; flex-wrap: wrap; gap: 0.5rem; }
    .hamburger-btn { display: block; }
    nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0.8rem; padding: 1rem 0; border-top: 1px solid #eee; margin-top: 0.3rem; }
    nav.nav-open { display: flex; }
    nav a { width: 100%; padding: 0.3rem 0; }
    .blog-hero { padding: 2.5rem 1rem; }
    .blog-hero-title { font-size: 2.5rem; }
    .blog-hero-subtitle { font-size: 1rem; }
    .blog-container { padding: 2rem 1rem 3rem; }
    #blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .blog-hero { padding: 2rem 1rem; }
    .blog-hero-title { font-size: 2rem; }
    .blog-container { padding: 1.5rem 1rem 2.5rem; }
}

@media (max-width: 480px) {
    .blog-hero-title { font-size: 1.8rem; }
    .logo { font-size: 1.5rem; }
    #imgLogo { height: 30px; }
}

@keyframes pulse {
    0%   { transform: scale(1);    filter: brightness(1); }
    50%  { transform: scale(1.08); filter: brightness(1.2); }
    100% { transform: scale(1);    filter: brightness(1); }
}

*/