/* Styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif; /* Harmonisation de la typographie */
}

.container {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex; /* AJOUTER */
  flex-direction: column; /* AJOUTER */
}

.background-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("images/maisons-individuelles.jpg"); /* Remplacez par le chemin de votre image */
  background-size: cover;
  background-position: center;
  filter: brightness(0.3);
}

/* Navigation Architecte - CSS */

/* Menu Button */
.menu-button {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-button:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hamburger {
  width: 24px;
  height: 24px;
  position: relative;
  transition: all 0.4s ease;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: white;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }

.menu-button.active .hamburger span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.menu-button.active .hamburger span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.menu-button.active .hamburger span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

/* Navigation Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(30, 30, 60, 0.95) 100%);
  backdrop-filter: blur(30px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Navigation Container */
.nav-container {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Navigation Menu */
.nav-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Ajuste automatiquement les colonnes */
  gap: 1.5rem; /* Espacement entre les onglets */
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

/* Navigation Item */
.nav-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 1.5rem;
  text-decoration: none;
  color: white;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Animation des onglets */
.nav-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.nav-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.nav-item:nth-child(1) { transition-delay: 0.1s; }
.nav-item:nth-child(2) { transition-delay: 0.2s; }
.nav-item:nth-child(3) { transition-delay: 0.3s; }
.nav-item:nth-child(4) { transition-delay: 0.4s; }
.nav-item:nth-child(5) { transition-delay: 0.5s; }
.nav-item:nth-child(6) { transition-delay: 0.6s; }
.nav-item:nth-child(7) { transition-delay: 0.7s; }

.nav-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.nav-item-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  stroke: white;
  stroke-width: 1.5;
  fill: none;
  transition: all 0.3s ease;
}

.nav-item:hover .nav-item-icon {
  stroke: #ffd93d; /* Couleur d'accentuation au survol */
}

.nav-item-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.nav-item-description {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.4;
}

/* Animation Classes */
.nav-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.nav-item:nth-child(1) { transition-delay: 0.1s; }
.nav-item:nth-child(2) { transition-delay: 0.2s; }
.nav-item:nth-child(3) { transition-delay: 0.3s; }
.nav-item:nth-child(4) { transition-delay: 0.4s; }
.nav-item:nth-child(5) { transition-delay: 0.5s; }
.nav-item:nth-child(6) { transition-delay: 0.6s; }

/* Brand Logo */
.brand-logo {
  position: absolute;
  top: 3rem;
  left: 3rem;
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transition-delay: 0.2s;
}

.nav-overlay.active .brand-logo {
  opacity: 1;
  transform: translateX(0);
}

/* Animation des particules */
@keyframes floatUp {
  to {
      transform: translateY(-100vh);
      opacity: 0;
  }
}

.main-content {
  position: relative;
  z-index: 10;
  flex: 1; /* MODIFIER : remplacer "height: 100%;" par "flex: 1;" */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}

.logo {
  margin-bottom: 2rem;
  will-change: transform;
  transition: transform 0.3s;
}

/* TAILLES DE TEXTE AJUSTÉES POUR DESKTOP */
h1 {
  font-size: 2rem; /* Réduit de 3rem à 2rem */
  font-weight: 600; /* Légèrement moins gras pour plus de raffinement */
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.2; /* Améliore la lisibilité */
  letter-spacing: -0.02em; /* Espacement légèrement serré pour un look pro */
}

p {
  font-size: 1rem; /* Réduit de 1.25rem à 1rem */
  text-align: center;
  max-width: 42rem;
  line-height: 1.5; /* Améliore la lisibilité */
  font-weight: 400;
  opacity: 0.95; /* Légèrement moins opaque pour la hiérarchie visuelle */
}

/* Bannière de cookies - Style centré avec animation */
.cookie-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: linear-gradient(90deg, #ff6b6b, #ffd93d);
  color: #ffffff;
  padding: 2rem;
  text-align: center;
  z-index: 100;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: fadeInScale 0.5s forwards ease-out;
}

.cookie-banner a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-banner button {
  background-color: #ffffff;
  color: #ff6b6b;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cookie-banner button:hover {
  background-color: #ffd93d;
  color: #ffffff;
}

/* Animation pour l'apparition de la bannière */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Copyright Footer - REMPLACER le code footer existant */
.copyright-footer {
  position: relative;
  z-index: 10;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  text-align: center;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copyright-footer p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.copyright-footer a {
  color: #ffd93d;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.copyright-footer a:hover {
  color: #ffffff;
  border-bottom: 1px solid #ffd93d;
  transform: translateY(-1px);
}

/* Animation pro pour le texte d'accueil */
@keyframes fadeInUpPro {
  from {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.main-content h1,
.main-content p {
  opacity: 0;
  animation: fadeInUpPro 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.main-content h1 {
  animation-delay: 0.2s;
}

.main-content p {
  animation-delay: 0.5s;
}

/* RESPONSIVE AJUSTÉ POUR MOBILE */
@media (max-width: 768px) {
  .nav-menu {
      grid-template-columns: 1fr;
      gap: 1.5rem;
      padding: 0 1rem;
      max-height: 80vh;        /* Ajout : limite la hauteur */
      overflow-y: auto;        /* Ajout : active le scroll vertical */
      scrollbar-width: none;      /* Firefox */
      -ms-overflow-style: none;   /* IE/Edge */
  }
  .nav-menu::-webkit-scrollbar {
    display: none;              /* Chrome/Safari/Opera */
  }

  .nav-container {
      align-items: flex-start; /* Ajout : colle le menu en haut */
      justify-content: flex-start; /* Ajout */
      padding-top: 4rem;      /* Ajout : espace sous le logo/menu */
  }

  .nav-item {
      padding: 1.5rem;
  }

  .nav-item-title {
      font-size: 1.2rem;
  }

  .nav-item-description {
      font-size: 0.8rem;
  }

  .brand-logo {
      top: 2rem;
      left: 2rem;
      font-size: 1rem;
  }

  .menu-button {
      top: 1.5rem;
      right: 1.5rem;
      width: 50px;
      height: 50px;
  }

  .hamburger {
      width: 20px;
      height: 20px;
  }

  /* TAILLES MOBILES AJUSTÉES */
  h1 {
    font-size: 1.4rem; /* Réduit de 1.2rem à 1.4rem pour mobile */
    margin-bottom: 0.8rem;
    line-height: 1.3;
  }
  
  p {
    font-size: 0.9rem; /* Réduit de 0.95rem à 0.9rem */
    max-width: 95vw; /* Améliore l'adaptation mobile */
    padding: 0 1rem; /* Ajoute du padding horizontal */
  }
  
  .logo {
    width: 48px;
    height: 48px;
    margin-bottom: 5rem; /* Espacement maximum pour bien séparer du texte */
  }
  
  /* Responsive pour le footer */
  .copyright-footer {
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
  }
  
  .copyright-footer p {
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .copyright-footer a {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  /* TRÈS PETIT MOBILE */
  h1 {
    font-size: 1.2rem; /* Encore plus petit pour très petits écrans */
    margin-bottom: 0.6rem;
  }
  
  p {
    font-size: 0.85rem;
    padding: 0 0.5rem;
  }
  
  .logo {
    width: 40px;
    height: 40px;
    margin-bottom: 4.5rem; /* Espacement très généreux pour très petits écrans */
  }
}