/* ---------------- BASE & RESET ---------------- */
html,body{
  margin:0;
  padding:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:#000;
  color:#fff;
}
a{
  color:#fff;
  text-decoration:none;
  transition:opacity .2s ease;
}
a:hover{opacity:.75;}
img{max-width:100%;display:block;}

/* === HEADER SECTION START === */
header {
  background: #000;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Header container styles */
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center; /* Vertically aligns all items in the header */
  justify-content: space-between; /* Spreads the logo, nav, and language switch */
  position: relative;
  height: 50px;
}

/* Logo block */
.logo {
  display: flex;
  align-items: center; /* Aligne le texte verticalement */
  flex: 1; /* Pushes the logo to the left */
}

/* Logo text */
.logo h1 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 0;
  white-space: nowrap;
}

/* Navigation menu styles */
nav.menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #000;
  z-index: 999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem; /* Adds spacing between navigation links */
  font-size: 1rem;
  justify-content: center; /* Centers the navigation links */
  align-items: center; /* Ensures the links are vertically aligned with the logo */
  flex: 2; /* Allows the nav to take up more space between the logo and language switch */
}

/* Navigation links */
nav.menu a {
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0;
}

/* Language switch styles */
.lang-switch {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
  justify-content: flex-end; /* Pushes the language switch to the right */
  align-items: center; /* Vertically aligns the language switch */
  flex: 1; /* Ensures equal spacing between logo, nav, and language switch */
}

/* Individual language links */
.lang-switch a {
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}

/* Active language highlight */
.lang-switch a.active-lang {
  font-weight: bold;
}

/* Burger menu toggle button */
.menu-toggle {
  display: none; /* Hidden on larger screens */
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001; /* Ensure it's above other elements */
}

/* === MOBILE HEADER STYLES === */
@media (max-width:768px){
  .header-container {
    position: relative;
    height: 50px;
  }
  nav.menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #000;
    z-index: 999;
    max-height: 0;
    height: calc(100vh - 50px); /* assuming header is 50px tall */
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .menu-toggle {
    display: block;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
  }
  nav.menu.open{
    max-height: 360px;
  }
  .lang-switch {
    justify-content: flex-end;
    z-index: 1002;
    position: relative;
    padding-top: 0.25rem;
    margin-right: 2.5rem;
  }
  body.menu-open main,
  body.menu-open footer,
  body.menu-open .video-container {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
  }
}

/* (Removed duplicate/conflicting Mobile styles @media (max-width: 768px) block) */

/* === FIXED MAIN HEADER STYLES === */
#main-header {
  position: fixed; /* Keeps the header at the top of the viewport */
  top: 0;
  left: 0;
  width: 100%;
  background: #000; /* Ensures the header has a background */
  z-index: 1000; /* Ensures the header is above other elements */
  transition: top 0.3s ease-in-out; /* Smooth transition for hiding/showing */
}

/* Hidden state for main header */
#main-header.hidden {
  top: -100px; /* Moves the header out of view when hidden */
}
/* === HEADER SECTION END === */

/* ---------------- FOOTER ---------------- */
footer{
  background:#000;
  padding:2.5rem 1rem 1.5rem;
  color:#fff;
  font-size:.9rem;
}
.footer-content{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:5rem;
  align-items: flex-start;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 33%;
}
.footer-contact a{
  margin:.25rem 0;
  display:flex;
  align-items:center;
  gap:.5rem;
}
.footer-links{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  width: 33%;
}
.footer-links a{
  margin:.25rem 0;
  display: block;
}
.footer-languages{
  display:flex;
  justify-content:center;
  gap:.75rem;
  margin-top:1.5rem;
  font-weight:600;
  font-size:.95rem;
}

/* --- Footer Responsive --- */
@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .footer-contact,
  .footer-links {
    width: 100%;
    align-items: center;
  }

  .footer-links a,
  .footer-contact a {
    text-align: center;
  }
}

/* ---------------- HERO SECTION ---------------- */
.video-container {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover; /* Ensures the video covers the entire container */
}

.video-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
  pointer-events: none; /* Ensures the overlay doesn't block interactions */
}

.welcome-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff; /* Ensures the text is fully white */
  text-align: center;
  font-size: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  z-index: 1; /* Ensures the text is above the overlay */
}
/* ce qui encercle de package de l'accueil:*/
.package-wrapper {
  background-color: #001c55;
  padding: qrem;
  border-radius: 8px;
  margin: 2rem auto;
  width: fit-content;
}

@media (max-width: 768px) {
  .welcome-text {
    font-size: 1.5rem; /* Adjust font size for smaller screens */
  }
}


/* --- Desktop Nav Reset --- */
@media (min-width: 769px) {
  nav.menu {
    position: static;
    max-height: none;
    overflow: visible;
    flex-direction: row;
    justify-content: center;
  }
}

/* Blur effect for background when menu is open */
.blur-background {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

/* === FAQ ACCORDION === */
.accordion {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.accordion-item {
  border-bottom: 1px solid #333;
}

.accordion-button {
  background: none;
  border: none;
  color: #fff;
  text-align: left;
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.accordion-button:hover {
  background: #111;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  color: #aaa;
  font-size: 1rem;
  transition: max-height 0.4s ease;
  padding: 0 1rem;
}

.accordion-panel p {
  margin: 1rem 0;
}


/* === HOME PAGE SECTIONS === */
.home-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 5%;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.home-section.reverse {
  flex-direction: row-reverse;
}

.home-text {
  flex: 1 1 400px;
  max-width: 600px;
  margin: 0 auto;
}

.home-image {
  flex: 1 1 400px;
  max-width: 600px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
}
.accordion-button.active + .accordion-panel {
  max-height: 500px; /* Ajuste si certaines réponses sont plus longues */
}
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.tips-card {
  background: #2a2a2a;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tips-card h3 {
  margin: 1rem 0 0.5rem;
}

.tips-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  margin-top: 1rem;
}

.tips-card ul li {
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

.tips-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #25D366;
}