/* Styles pour la barre de navigation et le toggle */

/* Style pour le bouton de toggle de la barre de navigation */
.nav-toggle {
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 40px;
  background-color: #ffffff;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Style pour la flèche personnalisée du toggle de navigation */
.custom-arrow {
  position: relative;
  width: 16px;
  height: 16px;
}

.custom-arrow::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M10 6 L22 16 L10 26" fill="none" stroke="black" stroke-width="2" /></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.sidebar.collapsed .custom-arrow::before {
  transform: scaleX(-1);
}

.sidebar.collapsed {
  transform: translateX(-200px);
}

/* Ajuster le contenu principal quand la barre est masquée */
.main-content.expanded {
  padding-left: 0;
  margin-left: 0;
  width: 100%;
}

/* Styles pour mobile */
@media (max-width: 767px) {
  .sidebar {
    transform: translateX(-100%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
    opacity: 0;
    pointer-events: none;
  }

  .sidebar.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }

  /* Logo mobile */
  .mobile-logo {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
  }

  .mobile-logo img {
    width: 50px;
    height: auto;
  }

  /* Menu burger */
  .menu-toggle {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    z-index: 1100;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .menu-toggle .menu-icon {
    width: 24px;
    height: 2px;
    background-color: var(--color-black);
    position: relative;
    transition: all 0.3s ease;
  }

  .menu-toggle .menu-icon::before,
  .menu-toggle .menu-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-black);
    transition: all 0.3s ease;
  }

  .menu-toggle .menu-icon::before {
    transform: translateY(-8px);
  }

  .menu-toggle .menu-icon::after {
    transform: translateY(8px);
  }

  .menu-toggle.active .menu-icon {
    background-color: transparent;
  }

  .menu-toggle.active .menu-icon::before {
    transform: rotate(45deg);
  }

  .menu-toggle.active .menu-icon::after {
    transform: rotate(-45deg);
  }

  /* Navigation principale */
  .nav-menu {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }

  .sidebar.active .nav-menu {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-item {
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }

  .sidebar.active .nav-item {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-item:nth-child(1) { transition-delay: 0.1s; }
  .nav-item:nth-child(2) { transition-delay: 0.15s; }
  .nav-item:nth-child(3) { transition-delay: 0.2s; }
  .nav-item:nth-child(4) { transition-delay: 0.25s; }
  .nav-item:nth-child(5) { transition-delay: 0.3s; }
  .nav-item:nth-child(6) { transition-delay: 0.35s; }

  .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.25rem 0;
    display: inline-block;
    position: relative;
    color: var(--color-black);
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background-color: var(--color-black);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }

  /* Container pour les réseaux sociaux et copyright */
  .nav-footer {
    margin-top: 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.4s;
  }

  .sidebar.active .nav-footer {
    opacity: 1;
    transform: translateY(0);
  }

  /* Réseaux sociaux */
  .social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0.5rem;
  }

  .social-link {
    font-size: 1.4rem;
    color: var(--color-black);
    transition: all 0.3s ease;
    padding: 0.3rem;
  }

  .social-link:hover {
    opacity: 0.7;
  }

  /* Copyright */
  .copyright {
    font-size: 0.8rem;
    opacity: 0.7;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  /* Overlay du menu */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Masquer le toggle de la sidebar sur mobile */
  .nav-toggle {
    display: none;
  }
}

/* Styles pour iPad */
@media (min-width: 768px) and (max-width: 1024px) {
  .nav-toggle {
    display: flex;
    right: -15px;
  }
  
  .sidebar {
    display: block !important;
  }
  
  .sidebar.collapsed {
    transform: translateX(-200px);
  }
} 