/* =======================
   POLICES GLOBALES
======================= */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Playfair+Display&family=Poppins:wght@400;600&family=Quicksand&display=swap');

body {
  /*padding-top: 70px; /* espace sous navbar fixe */
  font-family: 'Quicksand', sans-serif;
  background-color: #ffffff;
  color: #333;
}

/* =======================
   NAVBAR
======================= */
.navbar {
  background-color: #f8f9fa !important;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .navbar-brand {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar .nav-link {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: #333;
  transition: color 0.3s, border-bottom 0.3s;
  border-bottom: 2px solid transparent;
  margin: 0 5px;
  text-decoration: none; /* ? liens non soulignés */
}

.navbar .nav-link:hover {
  color: #b22222;
  border-bottom: 2px solid #b22222;
  text-decoration: none; /* ? au survol aussi */
}

.navbar-toggler {
  border-color: rgba(0, 0, 0, 0.1);
}

.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%280, 0, 0, 0.5%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ? Logos centrés dans la navbar ? taille stable sur tous navigateurs */
.logo-img {
  max-height: 45px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 8px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
  opacity: 0.85;
}

@media (max-width: 576px) {
  .logo-img {
    max-height: 35px;
    margin: 0 4px;
  }
}

/* =======================
   TITRE PRINCIPAL
======================= */
.site-title {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  text-align: center;
  color: #333;
  margin-top: 1rem;
}

.highlight {
  color: #b22222;
}

/* =======================
   TEXTE INSTITUTIONNEL (pleine largeur du container)
======================= */
.presentation-text {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: justify;
  background-color: #f8f9fa;
  padding: 2rem 2.5rem;
  border-left: 6px solid #b22222;
  border-radius: 0; /* plus d'arrondis, effet bandeau */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.presentation-text p:last-child {
  text-align: center;
  font-weight: 600;
  color: #b22222;
  margin-top: 1rem;
}

/* =======================
   BANNIÈRE
======================= */
.banner-img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  background-color: #f8f9fa;
  border-radius: 6px;
}

/* =======================
   RUBRIQUES (3 colonnes)
======================= */
.section-rubriques .rubrique-card {
  border: none;
  transition: transform 0.3s ease;
  background-color: #f8f9fa;
}

.section-rubriques .rubrique-card:hover {
  transform: scale(1.05);
  background-color: #e0e4e7;
}

.section-rubriques .card-title {
  color: #333;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
}

/* =======================
   MISE À JOUR DU SITE
======================= */
.update-item {
  background-color: #ffffff;
  border: 1px solid #ddd;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.update-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.update-item .card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.update-item .card-subtitle {
  font-size: 0.85rem;
}

/* =======================
   CARTES QUIZ
======================= */
.card {
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.card a {
  text-decoration: none; /* ? liens internes non soulignés */
}

.card-img-top {
  object-fit: cover;
  height: 200px;
}

.card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: bold;
}

.card-text {
  font-size: 0.9rem;
  color: #555;
}

/* =======================
   BOUTON RETOUR EN HAUT
======================= */
#backToTop {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #b22222;
  color: white;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

#backToTop:hover {
  background-color: #800000;
}

/* =======================
   FOOTER
======================= */
footer {
  background-color: #f8f9fa;
  border-top: 1px solid #ddd;
  padding-top: 15px;
  font-size: 0.9rem;
}

footer a {
  text-decoration: none; /* ? liens footer non soulignés */
  color: #333;
}

footer a:hover {
  color: #b22222;
  text-decoration: none;
}

/* =======================
   NAVBAR ? Centrage parfait des logos
======================= */
.navbar-center {
  flex: 1; /* prend toute la largeur disponible */
  display: flex;
  justify-content: center; /* centre les logos horizontalement */
  align-items: center;
}

.navbar-center .nav-link {
  padding: 0;
}

.logo-img {
  max-height: 45px;
  margin: 0 10px;
  display: inline-block;
}