/* ============================
   BASE & TYPO
   ============================ */

* {
    font-family: 'Open Sans', sans-serif;
}

body {
    background-color: #f6f1eb;
    margin: 0;
    padding: 30px 0 0 0; /* 30px en haut pour laisser la place à la barre noire */
}

/* Padding supplémentaire sur mobile à cause de la barre plus haute */
@media (max-width: 700px) {
    body {
        padding-top: 50px;
    }
}

/* ============================
   BARRE D’INFO TOUT EN HAUT
   ============================ */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1f1f1f;
    color: #ffffff;
    font-size: 18px;
    padding: 6px 30px;
    display: flex;
    justify-content: center;     /* ✅ CENTRAGE GLOBAL */
    align-items: center;
    gap: 700px;                   /* ✅ espace harmonieux */
    z-index: 9999;
    box-sizing: border-box;
    text-align: center;
}

.topbar a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.topbar a:hover {
    text-decoration: underline;
}

/* ============================
   CONTENEURS & CARROUSEL
   ============================ */

.container > .container {
    background-color: #ffffff !important;
    min-height: 640px;
    border: 1px solid #555555;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* On enlève le padding/marge du premier bloc de contenu pour coller le carrousel */
.container > .content:first-child {
    padding: 0 !important;
    margin: 0 !important;
}

/* Carrousel pleine largeur dans le bloc blanc */
.carousel {
    width: 100% !important;
    max-width: 100% !important;
    height: 380px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    position: relative;
}

/* Images du carrousel */
.carousel > div,
.carousel .frame {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* ============================
   TITRES SECTIONS
   ============================ */

h2.calendar,
h2.homepage,
h2.blog,
h2.newsletter,
h2.newsletter-page,
h2.marquee {
    background-color: #1f1f1f;
    margin: 0 0 25px 0;
    padding: 12px 0;
    color: #ffffff;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    letter-spacing: 1px;
    font-size: 16px;
}

/* ============================
   BLOC NOUVELLES / CALENDRIER
   ============================ */

/* 2 colonnes */
.home-2cols {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 40px auto !important;
    gap: 40px !important;
    box-sizing: border-box;
}

.col-nouvelles,
.col-calendrier {
    width: 50% !important;
    max-width: 50% !important;
    display: block !important;
}

/* Empêcher les floats du thème de casser la mise en page */
.col-nouvelles *,
.col-calendrier * {
    float: none !important;
    position: relative !important;
}

/* Mobile : 1 colonne */
@media (max-width: 900px) {
    .home-2cols {
        flex-direction: column !important;
    }

    .col-nouvelles,
    .col-calendrier {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ============================
   CALENDRIER UTS (couleurs)
   ============================ */

.uts-calendar-selector-small {
    background-color: #0092c8;
    margin: auto !important;
    padding: 5px;
}

.uts-calendar-selector-small,
.uts-calendar-weekdays-small,
.uts-calendar-small {
    width: 100% !important;
}

.uts-calendar-small,
.uts-calendar-weekdays-small {
    margin: auto !important;
}

.uts-calendar-selector-small a {
    color: #ffffff;
}

.uts-calendar-weekdays-small * {
    background-color: #87928c;
    color: #ffffff;
}

.uts-calendar-day-hasevent {
    background-color: #04db4c;
    color: #ffffff;
}

/* ============================
   DIVERS (CSP, etc.)
   ============================ */

 ul.__csp {
    list-style-type: none;
    padding-left: 0 !important;
}

h3.__csp {
    margin-top: 15px !important;
}

table.__csp tr td:first-child {
    width: 160px !important;
}

#__cspContentPV h3.__csp {
    background-color: #eeeeee !important;
    -webkit-border-radius: 5px !important;
    -moz-border-radius: 5px !important;
    border-radius: 5px !important;
    padding: 5px 10px !important;
}

#__cspContentPV h3.__csp img {
    float: right;
    margin-top: 8px;
}

#__cspContentPV table {
    margin-top: 10px;
}
h1 {
    text-align: center !important;
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 600;
    letter-spacing: 1px;
    padding-top: 30px;   /* ✅ AJOUT D’ESPACE AU-DESSUS */
}
.home-2cols {
    margin-top: 0 !important;
}
.container + .home-2cols {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Optionnel : réduit la marge du conteneur juste avant les Nouvelles */
.svg-buttons {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Assure que la section Nouvelles colle correctement */
.col-nouvelles h2.blog {
    margin-top: 10px !important;
}
.col-calendrier {
    margin-top: 9px !important; /* Ajuste la hauteur pour aligner les deux blocs */
}
.home-2cols .col-nouvelles .blog-item:first-of-type .blog-post-title {
    color: #ffffff !important;          /* même couleur que le fond */
    text-decoration: none !important;   /* enlève le soulignement */
}

/* Même chose au survol, pour éviter qu'il redevienne bleu */
.home-2cols .col-nouvelles .blog-item:first-of-type .blog-post-title:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}
.footer-wrapper {
    padding-left: 40px !important;
    padding-right: 40px !important;
}

/* Optionnel : améliore l'affichage sur mobile */
@media (max-width: 768px) {
  .footer-wrapper {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .topbar {
    background-color: #2b2b2b; /* brun/noir foncé */
    color: #ffffff;
    padding: 6px 40px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }

  .topbar a {
    color: #ffffff;
    text-decoration: none;
  }

  .topbar a:hover {
    text-decoration: underline;
  }
}

/* ============================
   BARRE DE MENU
   ============================ */
.menu-bar {
  width: 100%;
  background-color: #3a3635;
}

.menu-bar .top-menu {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4px 40px;
  box-sizing: border-box;
  display: block !important;
}

/* Menu Weblex */
.menu-bar ul.menu {
  float: left;
  margin: 0;
  padding: 0;
}

.menu-bar ul.menu li {
  padding-right: 15px;
}

/* ============================
   FORCER LE CONTAINER BLANC
   ============================ */

/* Weblex a souvent un container imbriqué : on force LES DEUX cas */
.container,
.container > .container {
  background-color: #ffffff !important;
}
.menu-bar::after {
    content: "";
    display: block;
    clear: both;
}
.menu-bar {
    min-height: 50px;       /* hauteur visible du menu */
}