/* =====================================================
   BASE GLOBALE
===================================================== */

body {
  color: #c0c0ca;
  background-color: #1b1b22;
  font-family: 'Open Sans', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #ffffff;
}

/* =====================================================
   PAGE ACTUALITÉS (fond clair)
===================================================== */

body.page-actu {
  background-color: #ffffff;
  color: #212529;
}

/* Liens */
body.page-actu a {
  color: #0d6efd;
}

body.page-actu a:hover {
  color: #0a58ca;
}

/* Titres */
body.page-actu h1,
body.page-actu h2,
body.page-actu h3,
body.page-actu h4,
body.page-actu h5,
body.page-actu h6 {
  color: #212529;
}

/* Texte */
body.page-actu p {
  font-size: 1.1rem;
  line-height: 1.7;
}

body.page-actu p.lead {
  font-size: 1.25rem;
  line-height: 1.8;
}

body.page-actu p.lead-end {
  text-align: right;
  font-size: 1rem;
  font-style: italic;
}

article p.lead {
    font-weight: 500;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
  padding: 0.3rem 0;
  min-height: 50px;
  background-color: rgba(13, 110, 253, 0.9);
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

body.page-actu .navbar {
  background-color: #0d6efd !important; /* bleu bootstrap */
}

body.page-actu .navbar-brand img {
  max-height: 35px;
}

body.page-actu .navbar-nav .nav-link {
  color: #ffffff !important; /* texte blanc sur fond bleu */
}

body.page-actu .navbar-nav .nav-link:hover {
  color: #e0e0ff !important;
}


/* =====================================================
   CAROUSEL ACTUALITÉS (UNIFIÉ ET STABLE)
===================================================== */

/* Conteneur : empêche les sauts de hauteur */
body.page-actu .carousel-inner {
  min-height: 400px;
}

/* Images */
body.page-actu .carousel-item img {
  height: 400px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
}

/* Contrôles */
#galerie .carousel-control-prev,
#galerie .carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
}

#galerie .carousel-control-prev-icon,
#galerie .carousel-control-next-icon {
  background-color: rgba(0,0,0,.6);
  border-radius: 50%;
}

/* Mobile : cache les flèches */
@media (max-width: 768px) {
  #galerie .carousel-control-prev-icon,
  #galerie .carousel-control-next-icon {
    display: none;
  }
}

/* =====================================================
   FOOTER
===================================================== */

body.page-actu footer {
  background-color: #212529;
  color: #ffffff;
}

body.page-actu footer a {
  color: #ffffff;
}

body.page-actu footer a:hover {
  color: #88c314;
}

/* =====================================================
   FORMULAIRES
===================================================== */

.form-control {
  height: 50px;
  padding: 10px 20px;
  background-color: transparent;
  border: 1px solid #32313b;
  color: #c0c0ca;
}

.form-control:focus {
  box-shadow: none;
  border-color: #88c314;
}

/* =====================================================
   UTILITAIRES
===================================================== */

.bg-dark-custom {
  background-color: #25242c;
}

.text-accent {
  color: #88c314;
}

/* =====================================================
   RESPONSIVE DIVERS
===================================================== */

@media (max-width: 768px) {
  .blog-post-content {
    margin-left: 0;
    margin-right: 0;
  }
}

/* =====================================================
   CAROUSEL – CONTENEUR CARRÉ POUR IFRAME maps et météo
===================================================== */

.carousel-square {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* carré */
  max-height: 400px;   /* cohérent avec vos images */
  margin: 0 auto;
}

/* Iframe plein conteneur */
.carousel-square iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* positionnement ancrage avec navbar */
html {
  scroll-padding-top: 70px;
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 140px;
  }
}
