/* Extrait du bloc <style> inline de archive.php (thème WordPress cauxtt) —
   page "Actualités" (et archives de catégories). Voir CLAUDE.md
   "Conservation du design existant". La pagination WordPress
   (.pagination-wrapper) n'est pas encore branchée côté F3 (liste complète
   pour l'instant) — règles conservées pour le jour où elle le sera. */

<style>
  .archive-actus {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 10px 16px 40px;
  }

  .archive-actus h1.archive-title {
    margin: 0 0 8px;
    font-size: 1.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-light);
    text-shadow:
      0 0 8px rgba(79,216,255,0.8),
      0 0 20px rgba(79,216,255,0.5);
  }

  .archive-subtitle {
    margin: 0 0 18px;
    color: var(--text-soft);
    font-size: 0.95rem;
  }

  /* ===== Cartes d’actualités (reprend ta page Actualités) ===== */
  .post-list.post-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 1.5rem;
  }

  .post-card {
    background: rgba(5,10,18,0.9);
    border-radius: var(--card-radius, 18px);
    border: 1px solid rgba(79,216,255,0.22);
    box-shadow: 0 12px 30px rgba(0,0,0,0.65);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition:
      transform 0.12s ease,
      box-shadow 0.12s ease,
      border-color 0.12s ease;
  }

  .post-card:hover {
    transform: translateY(-3px);
    box-shadow:
      0 0 12px rgba(79,216,255,0.5),
      0 18px 40px rgba(0,0,0,0.8);
    border-color: rgba(79,216,255,0.45);
  }

  .post-card-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    max-height: 190px;
  }

  .post-card-thumb img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform 0.25s ease;
  }

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

  .post-card-body {
    padding: 12px 14px 14px;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  /* Badges de catégories sur les cartes */
  .post-card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
  }

  .post-card-cat-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(79,216,255,0.75);
    color: var(--accent-light);
    background:
      radial-gradient(circle at top left, rgba(79,216,255,0.28), rgba(2,8,16,0.96));
    box-shadow:
      0 0 8px rgba(79,216,255,0.5),
      0 0 18px rgba(0,0,0,0.9);
    white-space: nowrap;
  }

  /* Exemples de couleurs différentes par slug (à adapter à tes slugs réels) */
  .post-card-cat-badge.cat-jeunes {
    border-color: rgba(144,238,144,0.9);
    background: radial-gradient(circle at top, rgba(144,238,144,0.3), rgba(3,15,8,0.96));
    box-shadow: 0 0 10px rgba(144,238,144,0.7);
  }

  .post-card-cat-badge.cat-live {
    border-color: rgba(255, 70, 70, 0.95);
    background: radial-gradient(circle at top, rgba(255, 70, 70, 0.32), rgba(24, 4, 4, 0.96));
    box-shadow:
      0 0 10px rgba(255, 70, 70, 0.9),
      0 0 20px rgba(255, 70, 70, 0.6);
    color: #ffeaea;
  }

  .post-card-cat-badge.cat-competition,
  .post-card-cat-badge.cat-resultats {
    border-color: rgba(255,99,132,0.9);
    background: radial-gradient(circle at top, rgba(255,99,132,0.3), rgba(22,4,12,0.96));
    box-shadow: 0 0 10px rgba(255,99,132,0.7);
  }

  .post-card-cat-badge.cat-tournois {
    border-color: rgba(255,215,0,0.9);
    background: radial-gradient(circle at top, rgba(255,215,0,0.3), rgba(22,17,4,0.96));
    box-shadow: 0 0 10px rgba(255,215,0,0.7);
  }

  .post-card-cat-badge.cat-vie-du-club {
    border-color: rgba(135,206,250,0.9);
    background: radial-gradient(circle at top, rgba(135,206,250,0.3), rgba(2,10,20,0.96));
    box-shadow: 0 0 10px rgba(135,206,250,0.7);
  }

  .post-card-title {
    margin: 0;
    font-size: 1.02rem;
  }

  .post-card-title a {
    text-decoration: none;
  }

  .post-card-title a:hover {
    text-decoration: underline;
  }

  .post-card-meta {
    font-size: 0.78rem;
    color: var(--text-soft);
  }

  .post-card-excerpt {
    font-size: 0.86rem;
    color: var(--text-main);
  }

  .post-card-readmore {
    margin-top: 6px;
    font-size: 0.82rem;
    align-self: flex-start;
    text-decoration: none;
  }

  .post-card-readmore:hover {
    text-decoration: underline;
  }

  /* Pagination */
  .pagination-wrapper {
    margin-top: 1.8rem;
    text-align: center;
  }

  .pagination-wrapper ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 4px;
    flex-wrap: wrap;
  }

  @media (max-width: 768px) {
    .archive-actus {
      padding: 10px 12px 32px;
    }

    .archive-actus h1.archive-title {
      font-size: 1.6rem;
      letter-spacing: 0.06em;
    }
  }
</style>
