@import url('https://fonts.googleapis.com/css2?family=EB+Garamond&family=Fira+Code&family=Roboto:wght@400;700&display=swap');

:root {
  --main-color: #00447c;
  --actunews-blue: #00447c;
  --actunews-red: #00447c;
  --actunews-dark-bg: #00447c;
  --actunews-light: #ffffff;
  --serif-font: 'EB Garamond', Garamond, serif;
  --sans-font: 'Roboto', sans-serif;
  --mono-font: 'Fira Code', monospace;
}

body {
  font-family: var(--serif-font);
  color: #333;
  line-height: 1.6;
  background-color: #fcfcfc;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sans-font);
  color: var(--main-color);
  font-weight: 700;
}

/* --- LE HEADER CORRECT --- */
header {
  background-color: white;
  position: relative;
  z-index: 1020;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-top-bar {
  background-color: var(--actunews-dark-bg);
}

.header-date {
  font-size: 0.8rem;
}

.header-title {
  font-family: var(--sans-font);
  font-size: 2.5rem;
  letter-spacing: -2px;
  color: var(--actunews-blue); /* Plus de !important ici */
  font-weight: bold;
}

.header-search-form {
  border: 2px solid var(--actunews-blue);
  background-color: white;
}

.header-search-btn {
  background-color: var(--actunews-blue);
  border: none;
  color: white;
}

.header-search-btn:hover {
  background-color: #00335d;
  color: white;
}

/* Barre de recherche et catégories */
nav.bg-light {
  padding: 0.2rem 0;
}

.nav-categories {
  font-size: 0.85rem;
}

nav.bg-light .nav-link {
  color: #444;
  font-family: var(--mono-font);
  font-size: 0.85rem;
  transition: color 0.2s;
}

nav.bg-light .nav-link:hover {
  color: var(--actunews-blue);
  text-decoration: underline;
}

header form input {
  font-family: var(--sans-font);
  font-size: 0.9rem;
  height: 35px;
}

/* --- BARRE BLEUE (Menu de navigation pages) --- */
.blue-bar {
  background-color: var(--actunews-blue);
  padding: 8px 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.blue-bar a {
  color: white;
  text-decoration: none;
  font-family: var(--mono-font);
  font-size: 0.9rem;
  padding: 5px 10px;
}

/* --- ELEMENTS DE LA PAGE --- */
.btn-subscribe {
  background-color: var(--actunews-red);
  color: white; /* Plus de !important ici non plus */
  padding: 8px 16px;
  text-decoration: none;
  font-size: 0.85rem;
  font-family: var(--sans-font);
  border: none;
  display: inline-block;
  font-weight: bold;
}

.card {
  margin-bottom: 1.5rem;
  border: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  border-radius: 0;
}

.custom-sidebar-title {
  color: var(--main-color);
}

.article-summary {
    font-weight: bold;
    margin-bottom: 1rem;
}

.article-meta {
  color: #777;
  font-size: 0.85rem;
  font-family: var(--sans-font);
  margin-bottom: 0.8rem;
}

/* --- FOOTER MODERNE & ESTHÉTIQUE --- */
.site-footer {
  background-color: #00335d;
  color: #ffffff;
  padding: 4rem 2rem 2rem 2rem;
  margin-top: 5rem;
  border-top: 4px solid var(--actunews-blue);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-title {
  font-family: var(--sans-font);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 12px;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-family: var(--sans-font);
  transition: all 0.3s ease;
}

.footer-list a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-family: var(--mono-font);
}

.social-icons {
  margin-bottom: 1rem;
}

.social-icon svg {
  fill: rgba(255,255,255,0.8);
  margin: 0 10px;
  transition: transform 0.3s;
}

.social-icon:hover svg {
  fill: #ffffff;
  transform: translateY(-3px);
}