/* style.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  
}

body {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 250px;
  background: linear-gradient(to bottom, #777775, #343b37, #5a5a59);
  color: #fff;
  transition: transform 0.3s ease;
  padding: 20px 20px 0;
  position: fixed;
  height: 95%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;

  margin-top: 15px;
  margin-left: 15px;
  margin-bottom: 15px;
  border-radius: 25px;
  
}

.sidebar.hidden {
  transform: translateX(-100%);
}

.toggle-btn {
  background: linear-gradient(to right, #b7bdf7, #bfa046);
  color: rgb(71, 38, 190);
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1000;
  position: fixed;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.sidebar img {
  width: 60%;
  margin-bottom: 5px;
  margin-top: 30px; /* espace sous le bouton */
  animation: rotationY 4s linear infinite;
  transform-style: preserve-3d;
}

@keyframes rotationY {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

.menu ul {
  list-style-type: none;
  width: 100%;
}

.menu > ul > li {
  margin: 10px 0;
  position: relative;
}

nav ul li i {
  margin-right: 8px;
  color: #CBA135; /* couleur bronze */
}

.menu a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

.menu a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.submenu {
  display: none;
  padding-left: 10px;
}

.menu li:hover .submenu {
  display: block;
}

.submenu li {
  margin-top: 5px;
}




.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #444;
}

.social-icons a {
  color: #CBA135; /* bronze élégant */
  font-size: 20px;
  transition: color 0.3s;
}

.social-link {
  position: relative;
  display: inline-block;
}

.social-link .tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 6px;
  color: white;
  white-space: nowrap;
  font-size: 12px;
  z-index: 1;
  transition: opacity 0.3s;
}

.social-link:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

/* Couleurs spécifiques */
.facebook .tooltip {
  background-color: #1877f2;
}

.instagram .tooltip {
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf);
}

.linkedin .tooltip {
  background-color: #0077b5;
}

.tiktok .tooltip {
  background-color: #010101;
  color: #fff;
}


.footer-content{
  color:#CBA135
}

/*cacher la barre de menu partielement*/

.sidebar.collapsed {
  width: 70px;
  padding: 20px 10px 0;
  overflow-x: hidden;
  border-radius: 25px;
  transition: width 0.3s ease;
}

.sidebar.collapsed .menu a {
  font-size: 0; /* cache le texte */
  padding: 10px 0;
  text-align: center;
}

.sidebar.collapsed .menu a i {
  font-size: 20px;
  margin: 0 auto;
  display: block;
  color: #CBA135;
}

.sidebar.collapsed img {
  width: 40px;
  margin: 15px 0 20px;
}

.sidebar.collapsed .submenu {
  display: none !important;
}


.sidebar.collapsed .site-footer {
  display: none;
}

.sidebar.collapsed .social-icons {
  flex-direction: column;
  align-items: center;
}

/*--------------------------------------*/

.main-content {
  margin-left: 250px;
  flex-grow: 1;
  transition: margin-left 0.3s ease;
  padding: 20px;
  overflow-y: auto;
}

.main-content{
  background: transparent;
  background-repeat: no-repeat;
  background-position: right;
  background-size: auto;
}

.main-content.full-width {
  margin-left: 0;
}


.main-content {
  margin-left: 250px; /* largeur normale de la sidebar */
  transition: margin-left 0.3s ease;
}

/* Quand la sidebar est réduite */
.sidebar.collapsed ~ .main-content {
  margin-left: 70px; /* largeur réduite de la sidebar */
}

/* Si tu veux aussi gérer le cas totalement caché */
.sidebar.hidden ~ .main-content {
  margin-left: 0;
}



.tab-container {
  max-width: 1200px;
  margin: 50px auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.tabs {
  display: flex;
  border-bottom: 2px solid #ddd;
  background-color: #f0f0f0;
}

.tab {
  flex: 1;
  padding: 15px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s;
}

.tab:hover {
  background-color: #e0e0e0;
}

.tab.active {
  background-color: white;
  border-bottom: 2px solid #007bff;
  color: #007bff;
}

.sheets {
  padding: 20px;
}

.sheet {
  display: none;
}

.sheet.active {
  display: block;
}

.appareil{
  display:grid;
}



.image-gallery {
  margin-bottom: 50px;
  text-align: center;
}

.image-gallery .main-image img {
  width: 70%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.main-image-détails{
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: left;
  margin: 15px;
}

.image-gallery .thumbnails {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.image-gallery .thumbnails img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.3s;
  border: 2px solid transparent;
}

.image-gallery .thumbnails img:hover,
.image-gallery .thumbnails img.active {
  opacity: 1;
  transform: scale(1.05);
  border-color: #007bff;
}

/*------------------------------------------------------------------------------------------------*/
/*--Carrousel Relais*/



.carousel-container {
  position: relative;
  width: 600px;
  margin: 30px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel {
  position: relative;
  width: 400px;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.carousel-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  border-radius: 12px;
}

.carousel-image.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.nav-btn {
  background: rgba(191, 160, 70, 0.8);
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  padding: 8px 15px;
  border-radius: 10%;
  
  transition: background 0.3s ease;
  z-index: 10;
}

.nav-btn:hover {
  background: rgba(191, 160, 70, 1);
}

#image-descriptions {
  max-width: 800px;
  margin: 15px auto 50px;
  background: #fefefe;
  border-radius: 12px;
  padding: 20px 25px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.desc {
  display: none;
}

.desc.active {
  display: block;
}

.desc h2 {
  margin-bottom: 8px;
  font-size: 24px;
  color: #bfa046;
}

.desc h4 {
  margin-bottom: 12px;
  font-weight: 500;
  font-size: 18px;
  color: #567a59;
}

.desc p {
  line-height: 1.5;
  font-size: 16px;
  white-space: pre-line; /* gère les retours à la ligne dans le texte */
}


/*Tiroir des appareils - capteurs*/


/* Conteneur des tiroirs */
.drawer-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/* Style de chaque tiroir */
.drawer {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
}

.drawer img {
  width: 150px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Tiroir sélectionné (agrandi) */
.drawer.active img {
  transform: scale(3);
  z-index: 2;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Carte de description affichée */
.drawer-card {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  padding: 100px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

/* Titre, sous-titre, description dans la carte */
.drawer-card h2 {
  margin-bottom: 5px;
  color: #805404;
}

.drawer-card h4 {
  margin-bottom: 10px;
  color: #04680c;
}

.drawer-card p {
  color: #444;
  line-height: 1.5;
}


/* Animation d'apparition */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.gallery-frame {
  border-radius: 12px;
  padding: 2rem;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transform: none;
  width: 100%;
  max-width: 1100px;
}

.gallery-frame h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: #444;
}

.card-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  width: 300px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.card:hover {
  transform: scale(1.03);
}

.card img {
  width: 100%;
  display: block;
  border-bottom: 1px solid #ddd;
}

.card-description {
  padding: 1rem;
  background: #f9f9f9;
}

.card-description h3 {
  margin: 0 0 0.5rem;
  color:#bfa046
}

.card-description h5 {
  margin: 0 0 0.5rem;
  color: #0f9b5a;
}

.card-description p {
  font-size: 1rem;
  line-height: 1.6;
  color: #070000;
}




.cta-dark {
  background-color: #111111;
  color: #a89a9a;
  text-align: center;
  padding: 3rem 2rem;
}

.cta-dark h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-dark p {
  margin-bottom: 1.5rem;
}

.btn {
  background: #e0b354;
  color: #000;
  padding: 0.8rem 2rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
}

/*----------------------BARRE DE RECHERCHE------------------------------------*/

.header {
  
  background: linear-gradient(to left, #f1f1ed, #a8aaa9, #dddddb);
  color: rgb(53, 147, 235);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: fixed;
  border-radius: 20px;
  width: 80%;
}

h1 {
  margin: 0;
  font-size: 22px;
}

.search-box {
  display: flex;
 border-color: #0077b5;
  align-items: center;
  gap: 10px;
}

.search-box input {
  padding: 8px 14px;
  border-radius: 20px;
  outline: none;
  font-size: 15px;
  min-width: 360px;
}

.search-box button {
  background: linear-gradient(to left, #777775, #343b37, #5a5a59);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s;
}

.search-box button:hover {
  background-color: #0051a3;
}

.rechercher {
  padding: 30px;
  font-size: 17px;
  line-height: 1.6;
  justify-content: space-between;
  
}

/* Highlight effect */
mark {
  background-color: yellow;
  padding: 0 3px;
  border-radius: 3px;
}
mark.current {
  background-color: orange !important;
  outline: 2px solid red;
  transition: background-color 0.3s ease;
}