/* 
* PlanYourDrive - Style général
*/


/* --- HEADER --- */
.site-header {
  background-color: var(--background-white);
  box-shadow: var(--box-shadow-light);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100000;
}

.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 25px;
}

.main-nav a {
  color: var(--gray-dark);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--primary-color);
}

/* Burger Menu */
.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.burger-line {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--gray-dark);
  transition: transform 0.3s, opacity 0.3s;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- SITE CONTENT --- */
.site-content {
  /* min-height: calc(100vh - 200px); */ /* Ensure footer is at bottom */
  padding: 20px 0;
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: var(--box-shadow-light);
}


/* --- FOOTER --- */
.site-footer {
  background-color: var(--footer-color);
  color: var(--white);
  padding: 40px 0 20px;
}

.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 30px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
  padding-right: 20px;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--gray-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
  }
  
  .footer-section {
    width: 100%;
    padding-right: 0;
  }

  /* Burger Menu pour mobile */
  .burger-menu {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--background-white);
    box-shadow: var(--box-shadow-light);
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 70px;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 20px;
  }

  .main-nav li {
    margin: 0 0 20px 0;
  }

  .main-nav a {
    display: block;
    padding: 10px 0;
    font-size: 18px;
  }
}
