/* Réinitialisation des styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  position: fixed;
  width: 100%;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 99999;
}

.logo {
  width: 120px;
  height: 118px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav {
  display: flex;
  align-items: center;
  width: 80%;
  justify-content: space-between;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  filter: drop-shadow(1px -0.1px #000);
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 22px;
  cursor: pointer;
}

.logo {
  width: 100px;
  height: auto;
}

/* Menu burger (mobile) */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: #333;
  transition: 0.3s;
}

/* ===== SECTIONS HÉROS ===== */
.hero {
  position: relative;
  color: white;
}

.hero img {
  width: 100%;
  max-height: 95vh;
  object-fit: cover;
  filter: brightness(0.4);
}

.hero-content,
.caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 800px;
}

.slogan {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.quote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 25px;
}

.caption {
  font-size: 2rem;
  font-weight: bold;
}

.cta-button {
  display: inline-block;
  background-color: #014268;
  color: white;
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

.cta-button:hover {
  background-color: #00273e;
}

/* Banner spécifiques */
.mid-banner img,
.bottom-banner img {
  height: 550px;
}

/* Flèche de défilement */
.scroll-arrow {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: black;
  background: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 1.5s infinite, glow 1.5s infinite alternate;
  cursor: pointer;
  z-index: 10;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

@keyframes glow {
  from {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  }
  to {
    box-shadow: 0 0 20px rgba(255, 255, 255, 1);
  }
}

/* ===== SECTION À PROPOS ===== */
.about {
  padding: 60px 0;
}

.container {
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.about-content img {
  width: 40%;
  max-width: 400px;
  border-radius: 10px;
}

.text {
  flex: 1;
}

.text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #014268;
}

.text p {
  font-size: 18px;
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Qualités */
.qualities {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  padding: 35px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
  border-radius: 50px;
}

.quality {
  position: relative;
  text-align: center;
  cursor: pointer;
}

.quality img {
  width: 130px;
  height: auto;
  transition: transform 0.3s ease;
}

.quality:hover img {
  transform: scale(1.05);
}

.tooltip {
  display: none;
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px;
  border-radius: 5px;
  width: 250px;
  text-align: left;
  font-size: 14px;
  z-index: 100;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.quality:hover .tooltip {
  display: block;
}

/* ===== SECTION SERVICES ===== */
.services {
  background: #f9f9f9;
  padding: 80px 20px;
}

.services h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 60px;
  color: #014268;
}

.service-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-box {
  background: #ffffff;
  padding: 30px 25px;
  width: 350px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-box h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #014268;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}

.service-box ul {
  padding-left: 20px;
}

.service-box ul li {
  margin-bottom: 10px;
  list-style: disc;
}

.service-box ul ul {
  margin-top: 10px;
  padding-left: 20px;
}

.service-box ul ul li {
  list-style: circle;
}

.service-box p {
  font-size: 17px;
  margin-bottom: 15px;
}

.fonctionnement {
  width: 75%;
  margin: 50px auto 0;
}

/* ===== SECTION CONTACT ===== */
.contact {
  padding: 70px 20px;
  background: #f9f9f9;
  text-align: center;
}

.contact h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #014268;
}

.contact p {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.contact a {
  color: #014268;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact a:hover {
  color: #00273e;
  text-decoration: underline;
}

.contact form {
  max-width: 500px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact input,
.contact textarea {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 100%;
}

.contact button {
  background-color: #014268;
  color: white;
  padding: 12px;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact button:hover {
  background-color: #00273e;
}

/* ===== FOOTER ===== */
footer {
  background: #222;
  color: white;
  padding: 30px 20px;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-container p {
  margin: 0;
}

.footer-container a {
  color: #f9f9f9;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-container a:hover {
  color: #ccc;
  text-decoration: underline;
}

.footer-container img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.footer-container img:hover {
  transform: scale(1.1);
}

/* ===== UTILITAIRES ===== */
.hidden {
  display: none !important;
}

.scroll-active {
  background-color: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 992px) {
  .slogan {
    font-size: 1.8rem;
  }

  .qualities {
    padding: 25px;
    gap: 15px;
  }

  .quality img {
    width: 100px;
  }

  .about-content {
    gap: 30px;
  }
}

@media screen and (max-width: 768px) {
  /* Navigation */
  .burger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  .nav-links.show {
    display: flex;
  }

  .slogan {
    font-size: 1.5rem;
  }

  .caption {
    font-size: 1.5rem;
  }

  .quote {
    font-size: 1rem;
  }

  #buttondisp {
    display: none;
  }
  /* About */
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-content img {
    width: 70%;
    margin-bottom: 20px;
  }

  /* Qualities */
  .qualities {
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    border-radius: 30px;
  }

  /* Services */
  .service-box {
    width: 100%;
  }

  .fonctionnement {
    width: 100%;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    gap: 15px;
  }
}

@media screen and (max-width: 480px) {
  .slogan,
  .caption {
    font-size: 1.3rem;
  }

  .quote {
    font-size: 0.9rem;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .about-content img {
    width: 90%;
  }

  .text h2 {
    font-size: 1.7rem;
  }

  .text p {
    font-size: 16px;
  }

  .services h2 {
    font-size: 1.7rem;
  }

  .contact h2 {
    font-size: 1.7rem;
  }
}

/* Cacher le logo sur mobile */
@media screen and (max-width: 768px) {
  .logo {
    display: none;
  }

  .hero-content {
    top: 45%;
    transform: translate(-50%, -45%);
  }

  .slogan {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .quote {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

  .cta-button {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-top: 10px;
  }

  .scroll-arrow {
    display: none;
  }
}

/* Pour très petits écrans */
@media screen and (max-width: 480px) {
  .slogan {
    font-size: 1rem;
  }

  .quote {
    font-size: 0.85rem;
  }

  .cta-button {
    font-size: 0.8rem;
    padding: 6px 14px;
  }
}

@media screen and (max-width: 768px) {
  nav {
    width: 100%;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    background: white;
    width: 100%;
    padding: 20px 0;
    z-index: 9999;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li a {
    color: black;
    font-size: 18px;
    text-align: center;
  }

  .burger {
    display: flex;
  }

  .logo {
    display: none;
  }
}
