/* Styles de base pour tout le site */

/* Importation des variables et animations */
@import url('variables.css');
@import url('animations.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&family=Fira+Code:wght@400;500&display=swap');


/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--color-gray-800);
  background-color: var(--color-gray-100);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Header */
.header {
  background-color: var(--color-primary);
  position: relative;
  color: white;
  z-index: 100;
  transition: all var(--transition-normal) var(--ease-in-out);
}

.header.scrolled {
 /* position: fixed;*/
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.header.scroll-up {
  transform: translateY(0);
}

.header.scroll-down {
  transform: translateY(-100%);
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.header-content {
  position: relative;
  z-index: 10;
  padding: var(--spacing-lg) 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
}

.logo img {
  height: 100px;
  margin-right: var(--spacing-sm);
}

.logo span {
  font-size: var(--font-size-xl);
  font-weight: 700;
  font-family: var(--font-primary);
}

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

.nav-menu li {
  margin-left: var(--spacing-lg);
}
/* Suite des styles de base pour tout le site */

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-family: var(--font-primary);
  transition: color var(--transition-normal) var(--ease-in-out);
  position: relative;
  padding: var(--spacing-xs) 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-normal) var(--ease-in-out);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-accent-light);
}

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

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 200;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: var(--border-radius-full);
  transition: all var(--transition-normal) var(--ease-in-out);
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Effet de vague */
.wave-container {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 5;
}

.wave-svg {
  position: relative;
  display: block;
  width: 100%;
  height: 70px;
}

.wave-path {
  fill: var(--color-gray-100);
}

/* Footer */
.footer {
  margin-top: 5rem;
  background-color: var(--color-primary);
  color: white;
  position: relative;
  padding-top: 50px; /* Pour laisser de la place à la vague du haut */
}

.footer-wave-container {
  position: absolute;
  top: -80px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
  z-index: 5;
}

.footer-wave-svg {
  position: relative;
  display: block;
  width: 100%;
  height: 70px;
}

.footer-wave-path {
  fill: var(--color-primary);
}

.footer-content {
  position: relative;
  z-index: 10;
  padding: var(--spacing-xl) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.footer-col h4 {
  color: white;
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
  font-family: var(--font-primary);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-accent);
}

.footer-col p {
  margin-bottom: var(--spacing-md);
  opacity: 0.8;
}

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

.footer-col ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-normal) var(--ease-in-out);
}

.footer-col ul li a:hover {
  color: var(--color-accent-light);
  padding-left: var(--spacing-xs);
}

.contact-info li {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.contact-info li i {
  margin-right: var(--spacing-sm);
  width: 20px;
  color: var(--color-accent);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: var(--spacing-md) 0;
  text-align: center;
  position: relative;
  z-index: 10;
}

/* Animations */
@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
      opacity: 0;
      transform: translateX(-20px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
      opacity: 0;
      transform: translateX(20px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

/* Classes d'utilité pour les animations */
.fade-in {
  animation: fadeIn var(--transition-normal) var(--ease-out);
}

.fade-in-up {
  animation: fadeInUp var(--transition-normal) var(--ease-out);
}

.fade-in-down {
  animation: fadeInDown var(--transition-normal) var(--ease-out);
}

.fade-in-left {
  animation: fadeInLeft var(--transition-normal) var(--ease-out);
}

.fade-in-right {
  animation: fadeInRight var(--transition-normal) var(--ease-out);
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-400 {
  animation-delay: 400ms;
}

.delay-600 {
  animation-delay: 600ms;
}

/* Animation au défilement */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-normal) var(--ease-out),
              transform var(--transition-normal) var(--ease-out);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .footer-grid {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-col:first-child {
      grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .hamburger-menu {
      display: flex;
  }
  
  .nav-menu {
      position: fixed;
      top: 0;
      right: -100%;
      width: 80%;
      max-width: 300px;
      height: 100vh;
      flex-direction: column;
      background-color: var(--color-primary-dark);
      padding: 80px var(--spacing-lg) var(--spacing-lg);
      transition: right var(--transition-normal) var(--ease-in-out);
      box-shadow: var(--shadow-lg);
      z-index: 100;
  }
  
  .nav-menu.active {
      right: 0;
  }
  
  .nav-menu li {
      margin: var(--spacing-md) 0;
  }
  
  .nav-menu a {
      display: block;
      font-size: var(--font-size-lg);
      padding: var(--spacing-xs) 0;
  }
}

@media (max-width: 576px) {
  .footer-grid {
      grid-template-columns: 1fr;
  }
  
  .footer-col:first-child {
      grid-column: 1;
  }
  
  .nav-menu {
      width: 100%;
      max-width: none;
  }
}
