@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #FAF7F6;
    color: #374151;
}

main {
  margin-top: 80px; /* adapte selon la hauteur réelle du header */
}

  /* Navbar */
  /* Navbar */
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #FAF7F6;
    opacity: 0.98;
    backdrop-filter: blur(1.5rem);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
  }
  
  .logo {
    width: 80px;
    height: 60px;
    border-radius: 10px;
  }
  
  .burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 1rem;
  }
  
  .burger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #374151;
    border-radius: 3px;
  }

  
  .navbar-right a {
    margin-left: 1.5rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
  }
  
  .navbar-right a:hover {
    border: 2px solid #C7BFBD;
    background-color: #D4CCC9;
    border-radius: 1.5rem;
  }
  
  .cta-devis {
    display: none;
    background-color: #374151;
    color: #111;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-left: 1rem;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }
  
  .cta-devis:hover {
    background-color: #333;
  }
  
  .cta-devis-pc {
    background-color: #F0EDEB;
    border-color: #C7BFBD;
    color: #111;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.3s ease;
  }
  
  .cta-devis-pc:hover {
    background-color: #C7BFBD;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  }
  
  /* ===== Version Mobile ===== */
  @media (max-width: 768px) {
    .navbar {
      padding: 1rem;
      position: static; /* plus de fixed */
      transition: transform 0.3s ease;
    }
    
    .navbar.hidden {
      transform: translateY(-100%);
    }
  
    .navbar.visible {
      transform: translateY(0);
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
    }

    .navbar-mobile-left {
      display: flex;
      align-items: center;
      gap: 1rem;
    }
    
    .logo {
      width: 70px;
      height: 50px;
      border-radius: 10px;
    }

    .burger {
      display: flex;
    }
  
    .navbar-right {
      position: absolute;
      top: 64px;
      left: 0;
      display: none;
      flex-direction: column;
      align-items: flex-start;
      padding: 1rem 2rem;
      background-color: #FAF7F6;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      backdrop-filter: blur(10px);
      z-index: 99;
    }
  
    .navbar-right.active {
      display: flex;
    }
  
    .navbar-right a {
      margin: 0.5rem 0;
    }
    
    .cta-devis-pc{
      display: none;
    }

    .cta-devis {
      display: contents;
      margin-left: auto;
    }
  
    .navbar {
      justify-content: space-between;
    }
  }

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.mentions-wrapper {
  max-width: 900px;
  padding: 1.5rem 2rem;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  background-color: #fafafa;
  color: #222;
  font-family: "Aptos", monospace;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.legal-toc {
  font-size: 1rem;
  margin-bottom: 2rem;
  white-space: nowrap;
  overflow-x: auto;
}

.legal-toc p {
  margin: 0;
}

.legal-toc a {
  color: #216083;
  text-decoration: none;
  margin: 0 0.25rem;
  white-space: nowrap;
}

.legal-toc a:hover {
  text-decoration: underline;
}



.separator {
  width: 60px;
  height: 3px;
  background-color: #222;
  margin-bottom: 2rem;
}
  
section {
  margin-bottom: 2.5rem;
}
  
section h2 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #111;
}
  
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
  
ul li {
  margin-bottom: 0.5rem;
}

@media screen and (max-width: 768px) {
.burger {
  display: flex;
}

.nav-links {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background-color: #222;
  display: none;
  padding: 1rem;
  gap: 1rem;
  animation: slideDown 0.3s ease forwards;
}

.nav-links.active {
  display: flex;
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
} 

@keyframes slideDown {
from {
  opacity: 0;
  transform: translateY(-10%);
}
to {
  opacity: 1;
  transform: translateY(0);
}
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #222;
  color: #fff;
  font-size: 1.5rem;
  padding: 10px 15px;
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background-color: #444;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
} 

.site-footer {
  background-color: #FAF7F6;
  padding: 3rem 2rem 1.5rem;
  border-top: 1px solid #e0dcd9;
  font-family: 'Roboto', sans-serif;
  margin-top: 35px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.footer-col {
  flex: 1 1 200px;
}

.footer-col h2,
.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #3B2F2F;
}

.footer-col p,
.footer-col ul,
.footer-col a {
  color: #555;
  font-size: 0.95rem;
  text-decoration: none;
}

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

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: #000;
  text-decoration: underline;
}

.footer-col.social .social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-col.social img {
  width: 26px;
  height: 26px;
  filter: grayscale(1);
  opacity: 0.8;
  transition: filter 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.footer-col.social img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.1);
}


.footer-bottom {
  margin-top: 2rem;
  text-align: center;
  color: #888;
  font-size: 0.85rem;
  border-top: 1px solid #e5e5e5;
  padding-top: 1rem;
}

.footer-bottom a {
  text-decoration: underline;
  color: #888;
}

/* Responsive mobile */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-btn-1,
  .hero-btn-2 {
    width: 100%;
    max-width: 280px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-col {
    flex: none;
    width: 100%;
  }

  .social-icons {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .mentions-wrapper {
    margin-top: 220px;
  }
}
  