html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #fdfaf3;
  font-family: Georgia, serif;
  overflow-x: hidden;
}

#page {
  position: relative;
  margin-left: 80px; /* pour laisser la place au liseret */
  z-index: 1;
}

#liseret-fixe {
  position: fixed;
  top: 0;
  left: 0;
  width: 80px;
  height: 100vh;
  background: url('../images/Liseret_gauche.png') repeat-y left top;
  background-size: contain;
  z-index: -1;
}

#bandeau {
  background: url('../images/bandeau_filigrane.png') center/cover no-repeat;
  position: fixed;
  padding: 40px 20px;
  text-align: center;
  color: #fdf3d3;
  position: relative;
  z-index: 1;
}

#bandeau h1 {
  font-size: 2.8em;
  margin: 0;
  color: #fdf3d3;
  text-shadow: 2px 2px 4px #000;
}

#logo {
  position: absolute;
  top: 10px;
  left: 10px;
  height: 100px;
}

#menu-horizontal {
  background-color: #4e0325;
  padding: 10px 0;
  text-align: center;
}

#menu-horizontal ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 20px;
}

#menu-horizontal li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
}

#menu-horizontal li a:hover {
  text-decoration: underline;
}

#contenu-principal {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
}


#contenu {
  flex: 1;
}

#sidebar {
  width: 300px;
  background-color: #f8f2e8;
  padding: 20px;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

footer {
  background-color: #4e0325;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 0.9em;
  margin-top: 40px;
}

body {
  max-width: 100vw;
  overflow-x: hidden;
}

#page {
  width: calc(100% - 80px); /* largeur de la page - largeur du liseret */
  margin-left: 80px;
}

/* Corrige l'empiètement du liseret */
#liseret-fixe {
  position: fixed;
  top: 0;
  left: 0;
  width: 80px;
  height: 100vh;
  background-image: url('../images/Liseret_gauche.png');
  background-repeat: repeat-y;
  background-size: contain;
  z-index: 0; /* Derrière le contenu */
}

/* Empêche le liseret de recouvrir le bandeau */
#page {
  position: relative;
  z-index: 1;
  margin-left: 80px;
}

/* Assure l'espace pour le sidebar-right */
#contenu-principal {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  padding: 20px;
  box-sizing: border-box;
}

/* Donne de la place au contenu et au sidebar */
#contenu {
  flex: 1 1 auto;
  padding-right: 20px;
}

#sidebar {
  flex: 0 0 300px;
  max-width: 300px;
}


/* Ajouts pour corriger l'affichage du conteneur et du sidebar */
#conteneur {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  margin-left: 80px; /* Laisse la place pour le liseret */
  padding: 20px;
  box-sizing: border-box;
  min-height: 100vh;
  gap: 20px;
}

main {
  flex: 1;
  min-width: 0;
}

#sidebar {
  width: 300px;
  flex-shrink: 0;
  background-color: #f8f0e8;
  padding: 20px;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}
.slideshow-container {
  max-width: 600px; /* ou la largeur que tu veux */
  height: 400px; /* hauteur fixe souhaitée */
  margin: auto;
  overflow: hidden; /* cache les débordements éventuels */
  border: 3px solid #5c2a6d; /* couleur du cadre, ici violet bordeaux */
  border-radius: 8px; /* coins arrondis facultatif */
  box-shadow: 0 0 10px rgba(0,0,0,0.1); /* ombre douce facultative */
}

.slides {
  width: 100%;
  height: 100%; /* remplira la hauteur du conteneur */
  object-fit: cover; /* pour bien recadrer les images dans le cadre */

  
ul.mod-menu__sub.list-unstyled.small[aria-hidden="false"] {
  display: block !important;
  position: absolute;
  background: #5c2a6d;
  z-index: 1000;
  padding: 10px;
  min-width: 200px;
}

ul.mod-menu__sub.list-unstyled.small[aria-hidden="true"] {
  display: none !important;
}

li.nav-item:hover > ul.mod-menu__sub.list-unstyled.small {
  display: block !important;
}


/* Fond principal du menu */
.dj-megamenu {
  background: #5c2a6d !important;
}

/* Liens principaux */
.dj-megamenu a.dj-up-item {
  color: #fff !important;
  font-weight: bold !important;
  text-transform: none !important;
  padding: 10px 15px !important;
}

/* Lien actif */
.dj-megamenu a.dj-up-item.active {
  background: #ffd700 !important;
  color: #000 !important;
}

/* Au survol */
.dj-megamenu a.dj-up-item:hover {
  background: #ffd700 !important;
  color: #000 !important;
}

/* Sous-menus */
.dj-megamenu .dj-subwrap {
  background: #5c2a6d !important;
  padding: 10px !important;
  min-width: 200px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2); /* ajoute une ombre pour le contraste */
  border-radius: 5px;
}

.dj-megamenu .dj-subwrap a {
  color: #fff !important;
  font-size: 15px !important;
  padding: 8px 12px !important;
}

.dj-megamenu .dj-subwrap a:hover {
  background: #ffd700 !important;
  color: #000 !important;
}

/* Supprimer effet 3D */
.dj-megamenu, .dj-megamenu a.dj-up-item {
  box-shadow: none !important;
  border: none !important;
}
