/* 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: white;
  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: 50px;
  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;
}


/* début de décoration formulaire */

.container {
  padding: 30px;
}

.intro-section {
  display:-ms-inline-flexbox;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
  perspective: 1500px;
}

.gallery-log {
  flex: 1;
  display: flex;
  gap: 1px;
  justify-content: center;
}

.gallery-log img {
  width: 70px;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
  transform: rotateY(-10deg);
  transition: transform 0.5s;
}


.gallery {
  flex: 1;
  display: flex;
  gap: 100px;
  margin-top: 25px;
  justify-content: center;
}

.gallery img {
  width: 90px;
  height: 130px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transform: rotateY(-10deg);
  transition: transform 0.5s;
}

.gallery img:hover {
  transform: scale(5) rotateX(10deg);
}

.text-area {
  flex: 2;
  text-align: center;
}

.main-title {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 10px;
}

.rotating-text {
  font-size: 1.2em;
  color: #555;
  animation: rotate3D 5s linear infinite;
}


.scene {
      width: 300px;
      height: 300px;
      position: relative;
      transform-style: preserve-3d;
      transform: rotateX(30deg); /* Inclinaison de l'orbite */
    }

.contact-section {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  max-width: 900px;
  margin: 0 auto;
}

.contact-section h2 {
  margin-bottom: 20px;
  color: blue;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1em;
}
.envoie{
  display: flex;
  justify-content: space-between;
  margin: 10px;
}
button {
  padding: 12px;
  background: linear-gradient(to right, #4f46e5, #6366f1);
  border: none;
  color: white;
  font-size: 1em;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: linear-gradient(to right, #4338ca, #4f46e5);
}

.orbit-container {
  position: relative;
  width: 900px;
  height: 100px;
  margin: auto;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.planet {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 42px;
  font-weight: bold;
  color: #f8f081;
}

.moon-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: -250px center;
  transform-style: preserve-3d;
  font-size: 18px;
  color: #4f46e5;
  animation: orbit3D 8s linear infinite;
}

@keyframes orbit3D {
  from {
    transform: rotateY(0deg) translateX(150px) rotateY(0deg);
  }
  to {
    transform: rotateY(360deg) translateX(150px) rotateY(-360deg);
  }
}

/* fin de décoration */
