/* 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.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;
}


.gallery {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;

}

.card {
  background-color: rgba(30, 30, 47, 0.85);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  width: 23%;
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card h3 {
  margin: 10px 0;
  color: #CBA135;
}

.card button {
  margin-bottom: 15px;
  padding: 8px 20px;
  border: none;
  border-radius: 20px;
  background-color: #CBA135;
  color: #1E1E2F;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.card button:hover {
  background-color: #ffffff;
  color: #1E1E2F;
}

.section-content {
  display: none;
  margin-top: 40px;
  background-color: #2C2C3E;
  color: #ffffff;
  padding: 20px;
  border-radius: 15px;
  animation: fadeIn 0.6s ease;
}

.section-content h2 {
  color: #CBA135;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.alarme-description {
  background-color: #2C2C3E;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  color: #ffffff;
  font-size: 14px;
}

.alarme-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.image-item {
  background-color: #1E1E2F;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-item:hover {
  transform: scale(1.03);
}

.image-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
}

.image-item h4 {
  margin: 10px 0 5px;
  color: #CBA135;
  font-size: 16px;
  text-align: center;
}

.image-desc {
  display: none;
  font-size: 12px;
  color: #ccc;
  margin-top: 5px;
  text-align: left;
}

.image-item.active .image-desc {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}




.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;
}