/*
Theme Name: CMCF
Author: SEOO 500 France
Description: Theme WordPress 
Version: 1.0
*/
    :root {
      --bg: #1e2122;
      --panel: #232627;
      --muted: #9aa0a6;
      --accent: #e11b35;
      --pill-bg: #2f3740;
    }

    html, body { height: 100%; margin:0; }
    body {
      background: var(--bg);
      color: #e6e9ea;
      font-family: Inter, system-ui, -apple-system, 'Helvetica Neue', Arial;
      -webkit-font-smoothing: antialiased;
      padding-top: 70px;
    }

    /* Navbar */
    .topbar {
      background: linear-gradient(180deg, #2a2f31 0%, #222425 100%);
      border-bottom: 1px solid rgba(255,255,255,0.03);
      position: fixed; top: 0; left: 0; right: 0; z-index: 1050;
      box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    }

    .navbar-brand .badge-brand {
      background: var(--accent);
      color: #fff;
      padding: .25rem .55rem;
      border-radius: .5rem;
      font-weight: 700;
    }

    .subnav {
      background: #3c4550;
      color: #dbe3ea;
      font-size: .92rem;
      padding: .25rem .75rem;
    }

    /* Tag pills */
    .tag-row {
      display: flex; flex-wrap: wrap; gap: .5rem;
      margin: 1rem 0 1.25rem;
    }
    .tag-pill {
      background: var(--pill-bg);
      padding: .35rem .7rem;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.03);
      font-size: .85rem;
      color: var(--muted);
    }

    /* Hero section */
    .hero-section { display: grid; grid-template-columns: 1fr 360px; gap: 1.25rem; }
    .hero-main { position: relative; border-radius: 12px; overflow: hidden; }
    .hero-main .card-bg {
      height: 320px;
      background-size: cover;
      background-position: center;
      display: flex;
      align-items: flex-end;
    }
    .hero-overlay {
      background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.72) 100%);
      padding: 1rem;
      border-radius: 10px;
    }
    .hero-title {
      font-size: 1.45rem;
      font-weight: 800;
      line-height: 1.05;
    }
    .meta { font-size: .85rem; color: var(--muted); margin-top: .5rem; }

    /* Small cards */
    .hero-sidebar {
      display: flex;
      flex-direction: column;
      gap: .9rem;
    }
    .card-small {
      background: var(--panel);
      border-radius: 10px;
      overflow: hidden;
      padding: .6rem;
      position: relative;
    }
    .card-small img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; }
    .card-small .card-label {
      position: absolute; left: 10px; top: 10px;
      background: rgba(0,0,0,0.55);
      padding: .2rem .5rem;
      border-radius: 6px;
      font-size: .75rem;
      font-weight: 700;
    }

    /* Actualités list */
    .news-card {
      display: flex;
      gap: 1rem;
      padding: 1rem 0;
      border-bottom: 1px solid rgba(255,255,255,0.03);
      align-items: flex-start;
    }
    .news-card img { width: 160px; height: 90px; object-fit: cover; border-radius: 6px; }
    .news-content h4 { font-size: 1.05rem; margin: 0 0 .35rem; }
    .news-category { font-size: .75rem; color: var(--muted); font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
    .news-meta { font-size: .8rem; color: var(--muted); }

    /* Utilities */
    .filter-btn {
      background: transparent;
      border: 1px solid rgba(255,255,255,0.04);
      color: var(--muted);
      height: 28px;
    }

    /* Responsiveness */
    @media (max-width: 1000px) {
      .hero-section { grid-template-columns: 1fr; }
      .hero-sidebar { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 120px; }
      .hero-main .card-bg { height: 220px; }
    }
    @media (max-width: 768px) {
    
      .subnav { display: none; }
      .hero-sidebar { grid-template-columns: 1fr 1fr; }
      .news-card img { width: 120px; height: 78px; }
    }

    /* Quand la toolbar admin est présente, décaler le header et le body */
html.wp-toolbar .topbar {
  top: 32px; /* hauteur de la WP admin bar desktop */
  z-index: 1060; /* un poil plus haut que la barre admin si besoin */
}

/* Si tu utilises body.admin-bar au lieu de html.wp-toolbar */
body.admin-bar .topbar {
  top: 32px;
}

/* Ajustement pour mobile (WP admin bar plus haute) */
@media (max-width: 782px) {
  html.wp-toolbar .topbar,
  body.admin-bar .topbar {
    top: 46px; /* valeur recommandée par WP pour petits écrans */
  }
}

/* Décaler le contenu (body) pour conserver l'espace total (header + admin bar) */
html.wp-toolbar body,
body.admin-bar {
  padding-top: calc(70px + 32px); /* 70px = ton header spacing actuel */
}

@media (max-width: 782px) {
  html.wp-toolbar body,
  body.admin-bar {
    padding-top: calc(70px + 46px);
  }
}

.subnav-link {
  color: #ffffff;           /* texte blanc */
  text-decoration: none;    /* pas de soulignement */
  font-weight: 600;         /* semi-bold */
  transition: color 0.3s;   /* transition pour le hover */
}

.subnav-link:hover {
  color: #cccccc;           /* couleur au survol */
}


ul.related-posts-list a {
  color:#ffffff;
  text-decoration:none;
}

.others-articles a{
  color:#1aace3;
}