/* styles.css */
*{
    margin : 0;
    padding:0;
    box-sizing: border-box;
}
/* <uniquifier>: Use a unique and descriptive class name*/
/* <weight>: Use a value from 400 to 900*/



body {
    font-family: "Montserrat", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #8cbdb9;
}

header {
    background-color: #8cbdb9;
    color: #2d3e4e;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.header-box {
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.header-box p {
  padding:10px;
}

.word {
  width: 100%;
  text-align: center;
  line-height: 1.2;
}

.shub {
  font-family: "Playfair Display", sans-serif;
  font-weight: normal;

  font-size: 3rem;
}

.rox {
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  font-size: 2rem;
}

header h1{
    font-size: 4rem;
}
.logo-media{
    width: auto;
    height: auto;
    margin-top: 1vw;
}
.logo-media img{
    width: 5%;
    padding:8px;
}
.logo-media a{
  text-decoration: none;
}
.container {
    max-width: 85%;
    margin: 1vw auto;
    background-color: #e8eceb;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.section {
    display: none;
    border-radius: 5px;
    padding: 20px;
}
.section.active {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    
}
.toggle-buttons {
    display: flex;
    background-color: #8cbdb9;
    color: #2d3e4e;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    width: auto; /* Définissez la largeur du bouton */
 
}
.toggle-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #8cbdb9;
    color: #2d3e4e;
    text-decoration: none;
    cursor: pointer;
    font-size: 2em;
    text-transform: uppercase;
    line-height: 1.2;
	transition: letter-spacing 0.3s ease, color 0.3s ease;
    letter-spacing: normal; /* Espacement initial des lettres */
}
.toggle-button:hover {
  letter-spacing: 4px; /* Espacement sur hover */
  color: #a8e3de; /* Couleur du texte au survol (facultatif) */
}
.toggle-button.active {
    background-color: #e8eceb;
}
.toggle-button.left {
    border-radius: 5px 0 0 5px;
    text-align: left;
    vertical-align: middle;
    width: 50%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-family: "Playfair Display", sans-serif; 
    font-weight: bold;
    font-size: 3rem;
}
.toggle-button.right {
    border-radius: 0 5px 5px 0;
    margin-right: 0;
    text-align: right;
    vertical-align: middle;
    width: 50%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-family: "Playfair Display", sans-serif; 
    font-weight: bold;
    font-size: 3rem;
}


/* début CSS pour la partie rafa */
.square-container {
    position: relative;
    background-color: #fff7f0;
    padding: 20px;
    border-radius: 10px;    
    max-height: 70vh;
  }
  
  .square {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    overflow: hidden;
    padding: 15px;
    
  }
  
  .square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    padding-top: 10px;
  }
  
  .square .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
  }
  
  .square:hover .overlay {
    opacity: 1;
    color:#fff;
    font-size: 1.5rem;
  }

  .squarewho{
    display: flex;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 95%;
  }
  .logo-media2{
    width: auto;
    height: auto;
    margin-top: 1vw;
    padding-top:15px;
}
.logo-media2 img{
    width: 15%;
    padding:8px;
}
.logo-media2 a{
  text-decoration: none;
}
  .popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%; /* ou toute autre largeur souhaitée */
    height: 95%; /* ou toute autre hauteur souhaitée */
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 9999; /* Valeur de z-index élevée pour que le popup soit au premier plan */
    border-radius: 10px;
  }
  .popupwho {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%; /* ou toute autre largeur souhaitée */
    height: 95%; /* ou toute autre hauteur souhaitée */
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 9999; /* Valeur de z-index élevée pour que le popup soit au premier plan */
    border-radius: 10px;
    scroll-behavior: smooth;

  }
  .popup-content {
    top: 50%;
    left: 50%;
    padding:50px;
    width: 90%;
    height: 90%;
    transform: translate(-50%, -50%);
    position:relative;
    border-radius: 10px;
    padding:50px;
    overflow-y: auto;
    scroll-behavior: smooth;
    color:#fff;
    background-color: #2d3e4e;
  }

  .popup-content p{
    font-size: 1.3rem;
    padding-top:15px;
    color: #2d3e4e;
  }
  .column {
    padding: 10px;
}

.image-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-column img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.text-column {
    flex: 2;
    padding-left: 20px;
}

.text-column h2 {
    margin-top: 0;
    color: #2d3e4e;
    text-align: left;
}

.text-column p{
    text-align: left;
}
  .enlarged-square {
    width: 90%;
    height: 90%;
    background-color: #e8eceb;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position:relative;
    border-radius: 10px;
    padding:50px;
    overflow-y: auto;
    scroll-behavior: smooth;
    /* Styles supplémentaires pour le carré agrandi */
  }
  .button{
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    padding: 15px;
  }
  .button a{
    width: 25%;
  }
  .expand-button {
    color: #fff;
    background-color: #2d3e4e;
    font-size: 1.5rem;
    border-radius: 20px;
    border:none;
    width: 100%;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.5s ease;
  }
  .expand-button:hover{
    background-color: #8cbdb9;
    color: #181010;
    font-weight: bold;
    transform: scale(1.05);
    width: 100%;
  }
  .button-who {
    color: #fff;
    background-color: #2d3e4e;
    font-size: 1.5rem;
    border-radius: 20px;
    border:none;
    width: 100%;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.5s ease;
  }
  .button-who:hover{
    background-color: #e8eceb;
    color: #181010;
    font-weight: normal;
    transform: scale(1.05);
    width: 100%;
  }
 .Description {
    margin: 20px;
    margin-bottom: 0;
    padding: 20px;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color:#fff;
 }
 
.Description h3{
    font-size: 2rem;
    color: #2d3e4e;
}
.Description p{
    font-size: 1.3rem;
    padding:15px;
    color: #2d3e4e;
}
.Description-below {
    display: inline-block;
    width: 80%; /* Assurez-vous que les éléments occupent toute la largeur */
    padding-top: 20px;
    margin: 2vw;
    padding-bottom: 40px;
    font-size: 1.2rem;
  }

.wrapper{
    /*max-width: 1200px;*/
    position:relative;
    background-color: #2d3e4e;
    padding: 25px;
    border-radius: 10px;
    margin: 20px;
}
.wrapper i{
    top:50%;
    height:45px;
    width: 45px;
    cursor: pointer;
    position: absolute;
    font-size: 1.2rem;
    text-align: center;
    line-height: 45px;
    background: #fff;
    border-radius: 50%;
    transform:translateY(-50%);
}
.wrapper i:first-child{
    left: -23px;
    display: none;
}
.wrapper i:last-child{
    right: -23px;
}
.wrapper .carousel{
    cursor: pointer;
    font-size: 0px;
    white-space: nowrap;
    overflow: hidden;
    scroll-behavior: smooth;
 }
 .video-wrap {
    position: relative;
    width: 100%;
    display: flex;
    vertical-align: middle;
 }

.video-wrap img {
    cursor: pointer; /* Change le curseur en pointeur au survol de l'image */
    width: 100%;
    display: none;
}

 .video-wrap video{
    object-fit: cover;
    width: 100%;
    height: 100%;
}
 .carousel.dragging {
    cursor: grab;
    scroll-behavior: auto;
 }
 .carousel.dragging img {
    pointer-events: none;
 }
 .carousel {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    overflow: hidden;
    width: 90%; /* Ajustez la largeur selon vos besoins */
    margin: 0 auto; /* Centrer horizontalement */
}

 .carousel img{
    height: auto;
    object-fit: cover;
    width: calc(100%/3);
    max-width: 100%;
    max-height: 100%;
    margin-left:14px;
    transition: transform 0.5s ease;
    display: block;
 }
 .carousel img:first-child{
    margin-left: 0px;
 }


  .close-button  {
    position: fixed;
    background-color: #8cbdb9;
    border-radius: 50%;
    border:none;
    top: 15px;
    right: 10px;
    text-align: center;
    line-height: 40px;
    height:40px;
    width: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #fff;
    transition: transform 0.5s ease;
    z-index: 9999;
 }
 .close-button:hover{
    background-color: antiquewhite;
    color: #181010;
    transform: scale(1.05);    
 }


 .gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}

.thumbnail {
  margin: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.thumbnail-img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  display: block;
}

.image-popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  text-align: center;
}

.popup-img {
  max-width: 80%;
  max-height: 80%;
  margin: auto;
  border-radius: 4px;
}

.image-close-button {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.image-close-button:hover,
.image-close-button:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}