
/* =============================
   style.css - Version finale avec correctifs
   ============================= */

/* ---------- PALETTE ---------- */
:root{
  --primary: #0D6EFD;       /* bleu royal */
  --primary-dark: #084298;  /* bleu nuit */
  --muted: #6c757d;         /* texte secondaire */
  --dark: #212529;          /* texte principal */
  --light-bg: #F8F9FA;      /* fonds légers */
  --accent: #D4AF37;        /* doré subtil */
}

/* ---------- RESET / BASE ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Nunito Sans", "Cabin", sans-serif;
  background: var(--light-bg);
  color: var(--dark);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ---------- TITRES ---------- */
h1,h2,h3,h4,h5,h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--dark);
}

/* ---------- NAVBAR ---------- */
.site-header, #pageHeader {
  background:#ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.nav-link {
  color: #222 !important;
  font-weight:500;
  padding: .7rem 1rem;
  transition: color .3s ease;
}
.nav-link:hover {
  color: var(--primary) !important;
}
.navbar-brand img {
  max-height:60px;
  transition: transform .25s ease;
}
.navbar-brand img:hover { transform: scale(1.05); }

/* Sous-menus visibles au survol */
@media (min-width: 992px) {
  .navbar-nav .dropdown-menu {
      display: none;
      opacity: 0;
      visibility: hidden;
      position: absolute;
      background: #fff;
      box-shadow: 0 6px 18px rgba(0,0,0,0.1);
      border-radius: 6px;
      padding: 0.5rem 0;
      transition: all 0.25s ease;
  }
  .navbar-nav .dropdown:hover > .dropdown-menu {
      display: block;
      opacity: 1;
      visibility: visible;
      margin-top: 0;
  }
  .navbar-nav .dropdown-item {
      padding: 10px 20px;
      color: #333;
  }
  .navbar-nav .dropdown-item:hover {
      background: #f8f9fa;
      color: var(--primary);
  }
}

/* ---------- HERO / SLIDER ---------- */
.introBlock .ibColumn {
  min-height: 450px;
  display:flex;
  align-items:center;
  position:relative;
  text-align:left;
}
.introBlock .ibBgImage {
  right:0; left:0; top:0; bottom:0;
  background-position:center center;
  background-size:cover;
  opacity: .95;
  filter: brightness(0.85);   /* ✅ image plus visible */
}
.introBlock .ibBgImage::after {
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
}
.introBlock h2 {
  font-size:2rem;            /* ✅ réduit */
  font-weight:700;
  color:#fff;
  width:auto 600px;
  line-height: 1.3;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
.introBlock p {
  color: rgba(255,255,255,0.9);
  font-size:1.05rem;
  max-width:100%;
  margin-bottom:1.2rem;
}

/* ---------- BOUTONS ---------- */
.btnTheme {
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  padding: 12px 26px;
  font-weight: 600;
  display:inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(13,110,253,0.15);
}
.btnTheme:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(8,66,152,0.2);
}

/* ---------- SECTION ABOUT ---------- */
.aboutMayorBlock {
  background:#fff;
  border-radius: 16px;
  padding: 50px 30px;
  margin-top: -60px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}
.aboutMayorBlock h2 {
  font-size: 2.2rem;
  color: #003366;
}
.aboutMayorBlock p {
  font-size: 1.05rem;
  color: #555;
}
.meetQuote {
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  background: #f4f7fb;
  border-radius: 12px;
}

/* ---------- FEATURES ---------- */
.fabFeaturesList li {
  flex: 1;
  margin: 10px;
  text-align:center;
  transition: transform 0.3s ease;
}
.fabFeaturesList li:hover {
  transform: translateY(-6px);
}
.fabFeaturesList h2 {
  font-size: 1.1rem;
  color: #003366;
  font-weight: 600;
}
.icnWrap {
  width: 70px;
  height: 70px;
  background: transparent;   /* ✅ pas de fond bleu */
  color: var(--primary);
  font-size: 32px;
  border-radius: 50%;
  margin-bottom: 15px;
  box-shadow: none;
}

/* ---------- NEWS CARDS ---------- */
.news-section { background:#fff; padding:3rem 0; }
.news-section h2 { color: var(--dark); }
.news-card {
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 6px 20px rgba(0,0,0,.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.news-card:hover {
  transform: translateY(-8px);
  box-shadow:0 18px 36px rgba(0,0,0,.12);
}
.news-img img {
  display:block;
  width:100%;
  height:190px;
  object-fit:cover;
  transition: transform .4s ease;
}
.news-card:hover .news-img img { transform:scale(1.08); }
.news-date {
  position:absolute;
  top:12px; left:12px;
  background:rgba(0,0,0,0.6);
  color:#fff;
  padding:5px 10px;
  border-radius:6px;
  font-size:.85rem;
}

/* ---------- EVENTS ---------- */
.ueEveColumn {
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ueEveColumn:hover {
  transform: translateY(-6px);
  box-shadow:0 18px 36px rgba(0,0,0,.12);
}
.ueTimeTag {
  right:16px; top:16px;
  border-radius:8px;
  background: var(--primary);
  color:#fff;
  padding:.4rem .6rem;
}

/* ---------- DOCUMENTS ---------- */
.cdColumnWidget {
  border-radius:8px;
  box-shadow:0 6px 20px rgba(0,0,0,.05);
}

/* ---------- FOOTER ---------- */
footer {
  background:#0b2540;
  color:#fff;
  padding:2rem 0;
}
footer a { color:#fff; transition:color .3s; }
footer a:hover { color:var(--primary); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px){
  .fabFeaturesList li { flex:0 0 48%; margin-bottom:1rem; }
  .introBlock .ibColumn { min-height:360px; }
  .news-img img { height:160px; }
}
@media (max-width:576px){
  .nav-link { padding:.5rem .6rem; font-size:.95rem; }
}
/* === Conteneur principal === */
.news-section {
  position: relative;
  background-color: #0c3048; /* bleu profond */
}

/* === Zone défilante === */
.news-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0 2rem;
}

.news-scroll::-webkit-scrollbar {
  display: none;
}

/* === Carte === */
.news-card {
  background: #fff;
  border-radius: 12px;
  flex: 0 0 auto;
  width: 340px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news-body {
  padding: 15px;
}

.news-date {
  position: absolute;
  background: #003366;
  color: #fff;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 20px;
  top: 10px;
  left: 10px;
}

/* === Boutons de navigation === */
.scroll-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.scroll-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.left-btn {
  left: 0;
}

.right-btn {
  right: 0;
}

/* === Bouton Voir plus === */
.btnTheme {
  background-color: #007bff;
  color: white;
  border-radius: 25px;
  padding: 10px 25px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
}

.btnTheme:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}
.news-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
  width: 340px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* --- DATE TOUJOURS VISIBLE --- */
.news-date {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.6); /* fond légèrement transparent */
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 5;
}

/* --- Texte de l'article --- */
.news-body {
  padding: 15px;
}

.news-body h6 {
  font-weight: 700;
  color: #0c3048;
  text-transform: none;
  line-height: 1.3em;
}
.news-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
  width: 340px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: transform 0.5s ease, box-shadow 0.5s ease; /* plus fluide */
}

.news-card:hover {
  transform: scale(1.05); /* agrandit légèrement la carte */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35); /* ombre plus marquée */
}

/* --- IMAGE --- */
.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease; /* effet doux sur l'image aussi */
}

.news-card:hover img {
  transform: scale(1.08); /* zoom léger sur l'image */
}

/* --- DATE TOUJOURS VISIBLE --- */
.news-date {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 5;
}

/* --- CONTENU TEXTE --- */
.news-body {
  padding: 15px;
}

.news-body h6 {
  font-weight: 700;
  color: #0c3048;
  text-transform: none;
  line-height: 1.3em;
  transition: color 0.3s ease;
}

.news-card:hover h6 {
  color: #007bff; /* change la couleur du titre au survol (optionnel) */
}
.courriel-icon {
    position: relative;
}

.icon-mail {
    width: 18px;          /* tu peux ajuster */
    height: 18px;
    margin-left: 8px;
    vertical-align: middle;
    cursor: pointer;
}

/* Tooltip */
.tooltip {
    position: absolute;
    left: 50%;
    bottom: -30px;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: 0.25s;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #000 transparent;
}

.courriel-icon:hover .tooltip {
    opacity: 1;
    bottom: -40px;
}
