
/*Header général, en haut de la page, contenant le menu général avec les liens vers les différentes applis*/
    .bandeau {
    height:200px; 
    position:relative;
    overflow:hidden;
    border:0px;
    background-position: center center;
    background-image:url("../img/DSC02800.JPG");
    background-size: cover;
    font-weight: bold;
    justify-content: center;
    align-items: center;
    display: flex;
    background-color: #f4f6f8;
    padding: 10px;

}
   
    .menu-container {
  display: flex;
  flex-direction: column; /* empile verticalement */
  flex: 0 0 auto;
  align-items: center;
  background: transparent;
  width: 24px;
  height: 24px;
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 1000;
}

    /*.menu-button {
      background: white;
      color: #472AD6;
      border: none;
      font-size: 25px;
      display: flex;
      align-items: center;
      justify-content: center;
    }*/
    
    .menu-button {
  width: 24px;
  height: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  transition: transform 0.2s ease;
  
}

.menu-button:hover {
  transform: scale(1.1) rotate(180deg); /* effet au survol */
}

.square {
  background-color: #788089;
  /*border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);*/
}

#openbtn:hover .square {
  background-color: #472AD6;
}

    .menu-text {
      color: white;
      font-weight: 700;
      background: #472AD6;
      display: flex;
      align-items: center;
    }

    .logo-container {
      padding: 0;
      width: 300px;
      height: 70px;
      background-color: white;
      font-family: Fira Sans, Open Sans, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif;
      font-weight: 700;
      font-size: 15px;
      color: #472AD6;
      display: flex;
      align-items: center;
      justify-content: left;
      border-right: 1px solid #F4F6F8;
      /*margin-left: 30px;*/
      flex: 0 0 auto;
    }

 @media screen and (max-width: 768px) {
  .sticky-header {
    flex-direction: column;
    align-items: stretch;
  }

  .liste-sujets {
    width: 100%;
    margin-right: 0;
  }

  .menu-container {
    position: static;
    align-self: flex-end;
  }
}

.sticky-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background-color: white;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
		    display: flex;
		    justify-content: space-between;
        gap: 10px;
        align-items: center;
        height: 70px;
        justify-content: left;
        padding: 0px;
        padding-right: 80px; /* espace réservé pour le bouton */
      }

div.sticky-sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 270px; /* Adjust this to match header height */
        z-index: 999;
        /*background-color: #f4f4f4;*/
        /*padding: 10px;*/
        border-right: 1px solid #ddd;
      }

div.wrapper {
  background-color: white !important;
}

.border-black {
color: white;
font-size: 2.5vw;
font-weight: bold;
justify-content: center;
text-align: center;
align-items: center;
display: flex;
padding-left: 15%;
padding-right: 15%;
}

/* Menu général */
.added_sidebar {
  height: 100vh; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 1; /* Stay on top */
  top: 0;
  left: 0;
  background-color: white;
  overflow-x: hidden; /* Disable horizontal scroll */
  overflow-y: auto;
  padding-top: 25px; /* Place content 60px from the top */
  transition: 0.5s; /* 0.5 second transition effect to slide in the sidebar */
  margin-top: 0px;
  border-right: solid;
  border-color: #F4F6F8;
  border-width: 0px;
}

/* Liens du menu général */
.added_sidebar a {
  /*padding: 25px 30px 25px 30px;*/
  text-decoration: none;
  font-size: 15px;
  color: #788089;
  display: block;
  transition: 0.3s;
  line-height: 20px;
  font-weight: 600;
  font-style: "Fira Sans";
  vertical-align: middle;

}

/* When you mouse over the navigation links, change their color */
.added_sidebar a:hover {
  color: #091625;
  border-right: solid;
  border-width: 5px;
  border-color: #B8BCC1;
  background-color:  #F4F6F8;
  text-decoration: none;
  
}

.added_sidebar a:active {
  color: #472AD6;
  font-weight: 800;
  background-color:  #E3DFF8;
  border-right: solid;
  border-width: 5px;
  border-color: #472AD6;
}

/* Position and style the close button (top right corner) */
.added_sidebar .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

/* The button used to open the sidebar */
#openbtn {
  color: white; 
  border: none; 
  font-size: 30px;
}

#openbtn:hover {
  cursor: pointer;
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
  transition: margin-left .5s; /* If you want a transition effect */
  padding: 0px;
  
}

/* les attributs de body et html sont importants pour bien positionner le footer en bas de page*/
body {
  margin: 0px;	
  /*overflow-y: hidden;*/
  font-family: Sans-Serif !important;
  overflow-x: hidden;
}

#mainContent {
	margin-left: 0px;
	
  transition: margin-left 0.3s ease;
}

.close-button {
  position: absolute;
  top: 5px;
  right: 20px;
  font-size: 30px;
  background: none;
  color: #472AD6;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

#mySidebar {
position: fixed;
margin-top: 0px;
  top: 0px;
  left: 0;
  width: 0px; /* 👈 Caché par défaut */
  height: calc(100vh);
  background-color: white;
  overflow-x: hidden;
  overflow-y: auto;
  transition: width 0.3s ease;
  z-index: 10000;	
 /* padding: 20px; */
}

#mySidebar.open {
  transition: width 0.3s ease;
  /* autres styles si besoin */
}

@media screen and (max-width: 768px) {
  .added_sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
}

/* le contenu */

.grid-container {
  height: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes égales */
  gap: 20px; /* espace entre les box */
  padding: 20px;
}

.grid-item {
  background-color: white;
  text-align: center;
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.grid-item img {
  width: 100%;
  max-width: 100%;
  height: 20vh;
  display: block;
  object-fit: cover;
}

.grid-item .sidebar-text {
  margin: 10px;
  color: #472ad6;
  font-weight: 800;
  padding: 5px 5px;
  background-color: transparent;
}

.grid-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #472ad6;
}



html {
	position: relative;
	min-height: 100%;
}

.header {
	display: grid;
	align-items: center;
	grid-template-columns: minmax(20%, 300px) minmax(70%, 2fr);
	grid-column-gap: 10px;
	background-position: center center;
	background-image: url("img/DSC02800.JPG");
	background-size: cover;
	border: 0px;
	width: 100%;
	height: 15vmin;
	position: relative;
	overflow: hidden;
}

.title_text {
	color: white;
	/*border white with light shadow*/
	text-shadow: 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000,
		1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
		1px 1px 5px #000;
	font-size: 4vmin;
	text-align: center;
	vertical-align: middle;
	margin-top: 5px;
}

/* Styles propres à la partie footer */

.footer {
	display: flex;
    justify-content: space-between; /* espace entre les blocs */
    flex-wrap: wrap; /* empile les blocs sur mobile */
    line-height: 1;
	z-index: 1000;
	width: 85%;
	color: white;
	padding-top: 75px;
	padding-left: 150px;
	padding-right: 150px;
	margin-right: 10px;
	background-color: #091625;
	/*max-width: 1300px;*/
	font-family: Sans-Serif !important;
}

.footer .row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;          /* Empêche le retour à la ligne */
  justify-content: space-between;
}

#footer-style {
  margin-left: 0px;
}

.footer .col {
  padding-right: 1rem;
}

.footer-credits {
  text-align: center;
  margin-top: 2rem;
  font-size: 16px;
}

.footer-title {
  font-size: 24px;
	text-align: left;
	vertical-align: middle;
  font-weight: 800;
  line-height: 1.2;
  font-family: Sans-Serif !important;
}

.footer-part {
  font-size: 16px; 
  margin-bottom: 1rem;
  line-height: 2;
}



.footer-list {
  margin-bottom: 2rem;
  font-family: Fira Sans, Open Sans, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif;
  font-weight: 500;  
  font-size: 16px; 
  line-height: 2;
  
}

.footer-list-item {
    padding: 1rem 0;
}

.footer-list-item--hasIcon {
    margin-left: 3rem;

    > a {
        position: relative;
    }
}

.footer-list-item__icon {
    position: absolute;
    top: 0;
    left: -3rem;

    font-size: .9rem;
    line-height: 1;
    color: $white;
}

.footer-list-custom {
  padding-left: 0px;
  list-style: none;
}


.footer-list a, .footer-part a {
    text-decoration: none;
    transition: color .25s ease;
    padding-bottom: .3rem;
    border-bottom: none;
    color: #788089;
	font-size: .9rem;
}

.footer-credits {
  
  font-size: 15px;
    text-decoration: none;
    padding-bottom: 3rem;
    padding-top: 3rem;
    border-bottom: none;
    color: #788089 !important;
    display: flex;
    flex-wrap: wrap;
    padding-left: 20px;
    border-top: solid 1px #788089 !important;
}

.footer-credits p {
    padding-left: 20px;
}


.corps {
	/*padding-left: 25%;
	padding-right: 25%;*/
	font-family: Sans-Serif !important;
	font-size: 2vmin;
	line-height: 1.5;
}

.texte-corps {
	font-size: 16px;
	padding-left: 20%;
	padding-right: 20%;
	padding-top: 2%;
}


a:link {
	color: #788089;
	background-color: transparent;
	text-decoration: none;
}

a:visited {
	color: #788089;
	background-color: transparent;
	text-decoration: none;
}

a:hover {
	color: #788089;
	background-color: transparent;
	text-decoration: underline;
}

a:active {
	color: #788089;
	background-color: transparent;
	text-decoration: underline;
}

ul {
	list-style: none;
	font-size: 1.2em;
}

li {
	padding-left: 25px; /*adjust to your needs*/
}

.liste-sujets {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  flex: 1 1 auto; /* prend l’espace disponible */
  min-width: 0; /* Empêche le débordement horizontal */
}

.liste-sujets a, .liste-sujets {
  padding: 5px;
}

.liste-sujets a {
  border-left: solid #788089;
}

#a-first {
  border-left: none;
}

.mySwiper {
  padding-left: 40px; /* adapte selon la taille voulue */
  padding-right: 40px;
  overflow: visible;
  height: auto;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
  color: white; /* pour que le texte soit lisible sur une image sombre */
  padding: 20px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: .8;
  transform: scale(.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  height: auto;
  overflow: visible;
  width: auto;
  transition: filter 0.3s ease;
  filter: brightness(.8); /* assombrit l’image */
  position: relative; /* assure que le contenu est bien positionné */
  /*padding-left: 15%;
  padding-right: 15%;*/
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px;
}

.swiper {
  overflow: hidden;
  width: 60%;
  height: auto;
}

.swiper-slide-active {
  opacity: 1;
  transform: scale(1.3) !important;
  filter: brightness(1); /* image active, pleine luminosité */
}

.slide-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none; /* retire le soulignement */
  }

.slide-link:hover {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: underline #472ad6; /* retire le soulignement */
}

.slide-img {
  width: 100%;
  max-width: 100%;
  height: 200px;
  display: block;
  object-fit: cover;
}

.slide-text {
  position: static;
  color: #472ad6;
  font-weight: 800;
  padding: 5px 5px;
  background-color: transparent; /* fond semi-transparent */
  border-radius: 8px;
  top: 100%;
  left: 0%;
  margin-bottom: 10%;
  font-size: .8vw;
  line-height: 1.75vw;
}

.comment {
	font-size: 12px;
	font-weight: 400;
	line-height: 1rem;
}

.swiper-button-next, .swiper-button-prev {
	color: #472ad6;
	top: 35%;
}