/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

/* --- BASE --- */
body {
  color: #333;
  background-color: #eaf0f8 !important; /* bleu clair global */
  scroll-behavior: smooth;
  padding-top: 70px;
}

/* --- NAVBAR --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #002b5c;
  color: white;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

/* === LOGO HEADER === */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  height: 80px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
}

.logo span {
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
  white-space: nowrap;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.navbar a:hover {
  text-decoration: underline;
}

/* --- BURGER MENU --- */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.burger .line {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
}

/* --- HERO --- */
.hero {
  /* pas d'image ici : elle sera gérée par JavaScript */
  background: linear-gradient(rgba(0, 43, 92, 0.85), rgba(0, 43, 92, 0.85));
  background-size: cover;
  background-position: center;
  color: white;
  min-height: 100vh; /* prend toute la hauteur visible */
  display: flex;
  align-items: center; /* centre verticalement */
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem 6rem 2rem;
  box-sizing: border-box;
  transition: opacity 1s ease-in-out; /* pour l'effet fondu */
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 43, 92, 0.4); /* voile uniforme léger */
  pointer-events: none;
}




.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 3rem; /* espace avant le bouton */
}

.hero-content .btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 8px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* --- BUTTONS --- */
.btn {
  background-color: #007bff;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
  cursor: pointer;
}

.btn:hover {
  background-color: #0056b3;
}

.btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* --- SECTIONS --- */
section {
  padding-top: 6rem;
  padding-bottom: 6rem;
  max-width: 1000px;
  margin: auto;
  background-color: #eaf0f8;
}

h2 {
  color: #002b5c;
  text-align: center;
  margin-bottom: 2rem;
}

/* --- SERVICES --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: #ffffffcc; /* blanc translucide */
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
  transition: all 0.3s ease;
}

.card h3 {
  color: #007bff;
  margin-bottom: 1rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}



/* --- CONTACT --- */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-info {
  text-align: center;
  margin-top: 1rem;
  color: #555;
}

.map-container {
  margin-top: 2rem;
  border-radius: 10px;
  overflow: hidden;
}

/* --- FOOTER --- */
footer {
  background-color: #002b5c;
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

/* Footer logo */
.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.logo-footer {
  height: 35px;
  width: auto;
  object-fit: contain;
}

/* Bannière cookies */
.cookie-banner {
  display: none;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffffee; /* blanc légèrement transparent */
  color: #002b5c; /* bleu du thème */
  text-align: center;
  padding: 14px 20px;
  font-size: 0.95rem;
  z-index: 2000;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 2px solid #002b5c;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.25);
  display: none; /* cachée par défaut */
}

.cookie-banner.visible {
  display: flex; /* rend la bannière visible */
  opacity: 1;
  transform: translateY(0);
}


/* Lien */
.cookie-banner a {
  color: #007bff; /* bleu clair pour contraster */
  text-decoration: underline;
}

/* Boutons */
.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-banner .btn.small {
  background-color: #002b5c; /* bleu foncé du site */
  color: #fff;
  border: none;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cookie-banner .btn.small:hover {
  background-color: #004a9c; /* bleu un peu plus clair au survol */
}

.cookie-banner .btn.small.decline {
  background-color: #777; /* bouton neutre gris */
}

.cookie-banner .btn.small.decline:hover {
  background-color: #555;
}





/* --- ANIMATIONS --- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .navbar ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #002b5c;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }

  .navbar ul.active {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  section {
    padding: 3rem 1rem;
  }

  .cookie-banner {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* --- CARROUSEL TÉMOIGNAGES --- */
#temoignages {
  background-color: #f9fafc;
  padding: 5rem 2rem;
  overflow: hidden;
}

#temoignages h2 {
  color: #002b5c;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.temoignages-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.temoignages-track {
  display: flex;
  gap: 2rem;
  animation: scrollTestimonials 25s linear infinite;
}

.temoignage {
  flex: 0 0 300px;
  background-color: #fff;
  border-left: 5px solid #007bff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.temoignage::before {
  content: "“";
  font-size: 4rem;
  color: #007bff;
  opacity: 0.15;
  position: absolute;
  top: 10px;
  left: 15px;
  font-family: Georgia, serif;
}

.temoignage p {
  font-style: italic;
  color: #333;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.temoignage strong {
  display: block;
  color: #002b5c;
  font-weight: bold;
}

/* Animation défilement infini */
@keyframes scrollTestimonials {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 768px) {
  .temoignage {
    flex: 0 0 250px;
  }
  #temoignages {
    padding: 3rem 1rem;
  }
}
#cta {
  background-color: #002b5c;
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}
#cta .btn {
  background-color: #007bff;
  margin-top: 1.5rem;
}
#cta .btn:hover {
  background-color: #004a9c;
}

body {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
}

h1, h2, h3 {
  font-family: "Segoe UI", sans-serif;
  font-weight: 700;
}



h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
