/* ===================== ACTUALITES PAGE ===================== */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
}

/* Header - Rouge comme le site */
.header {
  background: linear-gradient(135deg, #BB0B0B 0%, #a00a0a 100%);
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  position: relative;
}

/* Screen reader only class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-logo img {
  height: 30px;
}

.logo-link {
  display: inline-block;
  text-decoration: none;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.news-link,
.add-event-link,
.favorites-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.7rem;
  transition: color 0.3s ease;
}

.news-link:hover,
.add-event-link:hover,
.favorites-link:hover {
  color: #dedede;
}

.user-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.user-icon-link {
  text-decoration: none;
}

/* Mobile Menu Toggle et Menu - Géré par common-responsive.css */
/* Bouton hamburger caché par défaut sur desktop, visible uniquement sur mobile */
.mobile-menu-toggle {
  display: none;
  padding: 0.75rem;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
}

/* Barre de recherche */
.search-wrapper {
  display: flex;
  justify-content: flex-start;
  margin-top: 0;
  margin-left: auto;
  position: absolute;
  bottom: -25px;
  left: 15rem;
  z-index: 15;
}

/* Main Content */
.news-main {
  padding: 2.5rem 2rem;
  max-width: 1400px;
  margin: 2rem auto 0;
}

/* En-tête de section sobre */
.news-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.news-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.news-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
  max-width: 650px;
  margin: 0 auto;
}

.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

/* News Cards */
.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(187, 11, 11, 0.15);
}

.news-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-card-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.08);
}

.news-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #bb0b0b;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
}

.news-card-content {
  padding: 2rem;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.news-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.9rem;
}

.news-date i {
  color: #bb0b0b;
}

.news-category {
  background: #f5f5f5;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #bb0b0b;
  text-transform: uppercase;
}

.news-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #222;
  line-height: 1.4;
}

.news-card-excerpt {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.read-more {
  color: #bb0b0b;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.news-card:hover .read-more {
  gap: 1rem;
}

.read-more i {
  transition: transform 0.3s ease;
}

.news-card:hover .read-more i {
  transform: translateX(5px);
}

/* Featured Card - Plus grande */
.news-card.featured {
  grid-column: span 2;
}

.news-card.featured .news-card-image {
  height: 400px;
}

.news-card.featured .news-card-title {
  font-size: 2rem;
}

.news-card.featured .news-card-excerpt {
  font-size: 1.1rem;
}

/* Upcoming Cards - Prochainement */
.news-card.upcoming {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px dashed #ddd;
}

.upcoming-placeholder {
  background: linear-gradient(135deg, #f1f3f5 0%, #dee2e6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.upcoming-icon {
  font-size: 4rem;
  color: #adb5bd;
}

.upcoming-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.upcoming-text {
  color: #adb5bd;
  font-style: italic;
}

/* Footer - repris du site */
.footer {
  background-color: #bb0b0b;
  color: white;
  padding: 3rem 2rem 2rem;
}

.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  text-align: center;
  margin-bottom: 3rem;
}

.footer-logo {
  margin: 0 auto 2rem;
  display: block;
}

.footer-top h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.footer-top p {
  font-size: 0.95rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.footer-newsletter {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.footer-newsletter input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border: none;
  border-radius: 30px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 0.95rem;
}

.footer-newsletter button {
  padding: 0.9rem 2rem;
  background: white;
  color: #bb0b0b;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.footer-newsletter button:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-social a {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.footer-social a:hover {
  opacity: 0.8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.8rem;
}

.footer-column a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-column a:hover {
  opacity: 1;
}
