/* ============================= */
/* STYLES GÉNÉRAUX DU SITE */
/* ============================= */

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

body {
    font-family: 'Georgia', serif;
    line-height: 1.8;
    color: #333;
    background: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    color: white;
    text-align: center;
    margin-bottom: 40px;
    font-size: clamp(1.8em, 5vw, 2.5em);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* ============================= */
/* INTRO / CATEGORY / TOPIC */
/* ============================= */

.intro {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.intro h2 {
    color: #667eea;
    margin-bottom: 15px;
}

.intro p {
    color: #333;
    line-height: 1.6;
}

.category {
    background: white;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.category:hover {
    transform: translateY(-5px);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    flex-wrap: wrap;
    gap: 10px;
}

.category-icon {
    font-size: clamp(2em, 5vw, 2.5em);
}

.category-title {
    color: #667eea;
    font-size: clamp(1.4em, 4vw, 1.8em);
}

.topic {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.topic:hover {
    background: #e9ecef;
    border-left-color: #764ba2;
}

.topic-title {
    color: #2c3e50;
    font-size: clamp(1.1em, 3vw, 1.3em);
    margin-bottom: 10px;
    font-weight: 600;
}

.topic-description {
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

.trend-badge {
    background: #ff6b6b;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 10px;
}

/* ============================= */
/* STATS / CARDS */
/* ============================= */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

/* ============================= */
/* HEADER / BREADCRUMB / FOOTER */
/* ============================= */

.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.blog-header .site-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}

.blog-header .site-link:hover {
    opacity: 0.9;
}

.blog-header .blog-title {
    color: #fff;
    font-size: clamp(1.5em, 4vw, 2.5em);
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    flex: 1;
    text-align: center;
}

.footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-bottom: 10px;
    width: 100%;
}

.blog-footer {
    background: #667eea;
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 25px 20px;
    margin-top: 50px;
    width: 100%;
}

.blog-footer a {
    color: #fff;
    text-decoration: underline;
}

.blog-footer a:hover {
    color: #ff6b6b;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .blog-header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    .blog-header .blog-title { order: -1; width: 100%; }
    .blog-header .site-link { margin-left: 0; }
    .category-header { flex-direction: column; align-items: flex-start; }
    .breadcrumb { font-size: 0.75em; padding: 8px 12px; }
    .blog-footer { font-size: 0.9em; padding: 20px 15px; }
}

@media (max-width: 480px) {
    .container { padding: 0 10px; }
    .blog-header { padding: 12px; }
    .stats { grid-template-columns: 1fr; }
    .topic { padding: 15px; }
    .intro { padding: 15px; }
}

/* ============================= */
/* MODULE BANDEAU BLOG - FINAL */
/* ============================= */

.cc-blog-hero {
  width: 100%;
  min-height: clamp(200px, 50vh, 350px);
  background-image: url("/images/bandeau-blog.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(102,126,234,0.25) 0%,
    rgba(118,75,162,0.25) 100%
  );
  z-index: 1;
}

.cc-blog-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  padding: 2rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cc-blog-hero-left { width: 100%; }

.hero-title {
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  font-weight: 200;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  opacity: 0.95;
  line-height: 1.4;
}

.cc-blog-hero-right { display: flex; justify-content: flex-start; }

.cc-blog-btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  font-weight: 400;
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #5568d3 0%, #6a3d8f 100%);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.cc-blog-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  opacity: 0.95;
}

.cc-blog-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .cc-blog-hero-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .cc-blog-hero-left { flex: 1; }
  .cc-blog-hero-right { flex-shrink: 0; justify-content: flex-end; }
}
