:root {
  --bg-color: #050505;
  --bg-card: #101010;
  --bg-card-hover: #151515;
  --text-main: #e0e0e0;
  --text-muted: #a0a0a0;
  --primary: #00f3ff; /* Cyan Neon */
  --secondary: #bd00ff; /* Purple Neon */
  --accent: #39ff14; /* Green Neon */
  --border: #2a2a2a;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Consolas', 'Monaco', monospace;
  --container-width: 900px;
  --header-height: 70px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: #fff;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; background: linear-gradient(to right, #fff, #a0a0a0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-size: 1.8rem; border-left: 4px solid var(--primary); padding-left: 15px; }
h3 { font-size: 1.4rem; color: var(--primary); }

p { margin-bottom: 1.5rem; }
a { color: var(--primary); text-decoration: none; transition: all 0.2s; }
a:hover { color: #fff; text-shadow: 0 0 8px var(--primary); }
hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 3rem 0; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header & Nav --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

header {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 30px;
}

nav ul li a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

nav ul li a:hover,
nav ul li a.active {
  color: #fff;
  text-shadow: 0 0 8px var(--primary); 
  border-bottom: 2px solid var(--primary);
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 80px 20px;
  position: relative;
  margin-bottom: 60px;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 243, 255, 0.1) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 5px;
  background: #000;
  margin-bottom: 25px;
}

.hero h1 {
  font-size: 3.5rem;
  margin: 0 0 15px 0;
  -webkit-text-fill-color: initial;
  background: none;
  color: #fff;
  letter-spacing: -2px;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* --- Buttons --- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  background: var(--primary);
  color: #000;
  font-weight: 700;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.bouton:hover {
  background: #fff;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.6);
  text-decoration: none;
  text-shadow: none;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: 0.3s;
}

.feature-item:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  background: var(--bg-card-hover);
}

.feature-icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.feature-text { font-weight: 600; color: #fff; }

/* --- Formation Cards --- */
.formation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.formation-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

.formation-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
  border-color: var(--secondary);
}

.formation-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.formation-card h3 {
  padding: 0 25px;
  margin-top: 25px;
  font-size: 1.5rem;
}

.formation-card p {
  padding: 0 25px;
  color: var(--text-muted);
  flex-grow: 1;
}

.formation-card .bouton {
  margin: 25px;
  width: calc(100% - 50px);
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
  box-shadow: none;
}

.formation-card:hover .bouton {
  background: var(--secondary);
  border-color: var(--secondary);
  box-shadow: 0 0 20px rgba(189, 0, 255, 0.4);
}

/* --- Latest Articles List --- */
.latest-articles-list { list-style: none; padding: 0; }
.latest-articles-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  transition: 0.2s;
}
.latest-articles-list li:hover { padding-left: 10px; border-color: var(--primary); }
.latest-articles-list a { color: var(--text-main); font-weight: 600; border: none; }
.latest-articles-list span { color: var(--text-muted); font-size: 0.9rem; margin-right: 20px; font-family: var(--font-mono); }

/* --- Footer --- */
footer {
  text-align: center;
  padding: 60px 0;
  margin-top: 80px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}
footer a { color: var(--text-muted); margin: 0 10px; }
footer a:hover { color: var(--primary); }

/* --- Mobile --- */
@media (max-width: 768px) {
  .header-flex { flex-direction: column; gap: 15px; }
  .hero h1 { font-size: 2.5rem; }
  .latest-articles-list li { flex-direction: column; }
  nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
}

/* --- Tables & Images --- */
.tableau { width: 100%; border-collapse: collapse; margin: 20px 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.tableau th { background: #151515; padding: 15px; text-align: left; color: #fff; }
.tableau td { padding: 15px; border-top: 1px solid var(--border); color: #ccc; }
img { max-width: 100%; height: auto; border-radius: 8px; }

/* --- Breadcrumbs --- */
.breadcrumbs {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--primary);
}

/* --- Scroll To Top --- */
#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  font-size: 1.5rem;
  border: none;
  outline: none;
  background-color: rgba(5, 5, 5, 0.8);
  color: var(--primary);
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
  transition: all 0.3s;
}

#scrollToTopBtn:hover {
  background-color: var(--primary);
  color: #000;
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.7);
  transform: translateY(-3px);
}

/* --- CTA Banner --- */
.cta-banner {
    background: linear-gradient(90deg, var(--bg-card), var(--bg-card-hover));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 20%);
    opacity: 0.05;
    transform: rotate(45deg);
    z-index: -1;
    animation: cta-pulse 10s infinite alternate;
}

@keyframes cta-pulse {
    0% { transform: scale(1) rotate(45deg); opacity: 0.05; }
    100% { transform: scale(1.1) rotate(45deg); opacity: 0.08; }
}

.cta-banner h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.cta-banner p {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner .cta-bouton {
    background: var(--accent); /* Using accent for CTA button */
    color: #000;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
}

.cta-banner .cta-bouton:hover {
    background: #fff;
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.7);
    transform: translateY(-3px);
    text-shadow: none;
}

@media (max-width: 768px) {
    .cta-banner {
        padding: 20px;
        margin: 30px 0;
    }
    .cta-banner h3 {
        font-size: 1.4rem;
    }
    .cta-banner p {
        font-size: 1rem;
    }
}
/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 40px;
  padding: 20px 0;
}

.blog-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 15px 30px -10px rgba(0, 243, 255, 0.15);
}

.card-image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, var(--bg-card), transparent);
}

.card-image.no-image {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image.no-image::after {
  content: ''; /* Reset gradient for no-image */
  background: none;
}

.card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* New Tags Style */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  background: rgba(0, 243, 255, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 243, 255, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted); /* Muted date since tags have color */
  margin-bottom: 8px;
}

.blog-card h2 {
  font-size: 1.4rem;
  margin: 0 0 15px 0;
  color: #fff;
  line-height: 1.3;
  padding-left: 0; 
  border-left: none;
  font-weight: 700;
  transition: color 0.2s;
}

.blog-card:hover h2 {
  color: var(--primary);
}

.blog-card p {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
  flex-grow: 1;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
  padding: 0 10px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
  font-family: var(--font-main);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: #fff;
}

.filter-btn.active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  font-weight: 600;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}


/* Pagination Buttons */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.pagination-btn {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 6px;
    font-weight: 600;
}

.pagination-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
