/* --- Base --- */
body {
  background-color: #fff;
  color: #222;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* --- Liens --- */
a {
  color: #AE0000;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: #cc2929;
  text-decoration: underline;
}

/* --- Titres --- */
h1, h2, h3, h4, h5, h6 {
  color: #AE0000;
  font-weight: 700;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

/* --- Conteneur principal --- */
.container {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* --- Navbar --- */
nav.navbar {
  background-color: #AE0000 !important;
  padding: 0.25rem 1rem;
  border-bottom: 3px solid #cc2929;
}

nav.navbar a.nav-link {
  color: #fff !important;
  font-weight: 600;
  margin-right: 0.5rem;
  transition: color 0.3s ease;
}

nav.navbar a.nav-link:hover,
nav.navbar a.nav-link:focus {
  color: #ffe5e5 !important;
}

/* Bouton navbar toggler (mobile) */
.navbar-toggler {
  border-color: #fff;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* --- Boutons --- */
.btn-primary {
  background-color: #AE0000;
  border: none;
  color: #fff;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #cc2929;
  color: #fff;
  text-decoration: none;
  outline: none;
}

/* Boutons secondaires */
.btn-outline-secondary {
  background-color: transparent;
  border: 2px solid #AE0000;
  color: #AE0000;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background-color: #AE0000;
  color: #fff;
  outline: none;
}

/* --- Cartes (cards) --- */
.card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.05);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

/* --- Footer --- */
footer {
  background-color: #AE0000;
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  border-top: 3px solid #cc2929;
  margin-top: 3rem;
}

/* Pagination */
.pagination {
  /* Conteneur global */
  margin: 2rem auto;
  text-align: center; /* pour centrage horizontal */
}

.pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination ul li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination ul li a,
.pagination ul li strong {
  display: inline-block;
  padding: 0.4em 0.8em;
  border: 1px solid #AE0000;
  border-radius: 4px;
  color: #AE0000;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.pagination ul li a:hover {
  background-color: #AE0000;
  color: white;
}

.pagination ul li strong {
  background-color: #AE0000;
  color: white;
  border-color: #AE0000;
}



/* --- Responsive tweaks --- */
@media (max-width: 768px) {
  .container {
	padding: 0 0.75rem;
  }
  nav.navbar a.nav-link {
	margin-right: 1rem;
  }
}



/* --- Footer moderne --- */
.footer-moderne {
  background-color: #2c2c2c;
  color: #fff;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  border-top: 4px solid #AE0000;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: #AE0000;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Liens du footer */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 400;
}

.footer-links a:hover {
  color: #AE0000;
  text-decoration: none;
}

/* Réseaux sociaux */
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid #AE0000;
  border-radius: 50%;
  color: #AE0000;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: #AE0000;
  color: #fff;
  transform: translateY(-2px);
}

/* Contact */
.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #ccc;
}

.footer-contact i {
  color: #AE0000;
  width: 16px;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Barre du bas */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright p {
  margin: 0;
  color: #999;
  font-size: 0.9rem;
}

.footer-copyright a {
  color: #AE0000;
  text-decoration: none;
}

.footer-copyright a:hover {
  text-decoration: underline;
}

/* Sélecteur de langue footer */
.footer-lang {
  display: flex;
  gap: 0.5rem;
}

.lang-link {
  padding: 0.25rem 0.75rem;
  border: 1px solid #555;
  border-radius: 4px;
  color: #ccc;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.lang-link:hover,
.lang-link.active {
  background-color: #AE0000;
  border-color: #AE0000;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-moderne {
	padding: 2rem 0 1rem;
  }
  
  .footer-content {
	grid-template-columns: 1fr;
	gap: 1.5rem;
  }
  
  .footer-bottom {
	flex-direction: column;
	text-align: center;
	gap: 1rem;
  }
  
  .footer-social {
	justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
	gap: 1rem;
  }
  
  .footer-col h4 {
	font-size: 1rem;
  }
}