*, *::before, *::after {
  box-sizing: border-box;
}
body {
  font-family: 'Manrope', sans-serif;
  margin: 0;
  padding: 0;
  background: #181a1b;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.navbar {
  background: #0b2545;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  position: sticky;
  top: 0;
  width: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
}
.navbar-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: min(100%, 1000px);
  padding: 0 16px;
}
.navbar a {
  color: #fff;
  margin: 0 12px;
  padding: 8px 10px;
  min-width: 100px;
  flex: 1 1 auto;
  text-align: center;
  text-decoration: none;
  font-weight: var(--font-light);
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.navbar a.active-link,
.navbar a:hover {
  color: #4fd1c5;
}

section#accueil {
  position: relative;
  overflow: visible;
}

section#accueil > div {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: clamp(300px, 35vh, 420px);
  padding: clamp(20px, 4vw, 40px);
}

section#accueil h1 {
  position: relative;
  z-index: 2;
  margin: 0.4em 0 0.2em;
  text-align: center;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
  width: min(100%, 1000px);
  max-width: 100%;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  overflow: hidden;
  z-index: 0;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11,37,69,1) 0%,
    rgba(11,37,69,0.65) 10%,
    rgba(11,37,69,0.15) 35%,
    rgba(11,37,69,0) 60%,
    rgba(11,37,69,0) 80%,
    rgba(24,26,27,0.65) 90%,
    rgba(24,26,27,1) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 75%;
  opacity: 0.7;
  filter: brightness(0.7);
  z-index: 0;
}

.btn-primary {
  background: #4fd1c5;
  color: #181a1b;
}
.btn-primary:hover {
  background: #38b2ac;
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #4fd1c5;
}
.btn-secondary:hover {
  background: #4fd1c5;
  color: #181a1b;
}
section {
  display: none;
  background: #181a1b;
  color: #fff;
  border-radius: 18px;
  padding: 0px 20px;
  max-width: 900px;
  margin: 0px auto;
  box-shadow: 0 4px 24px rgba(11,37,69,0.08);
}
section.active-section {
  display: block;
}
section p {
  text-align: justify;
}
h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 18px;
  font-weight: 700;
}
footer {
  background: #0b2545;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 1rem;
  margin-top: 0;
  position: relative;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 1000;
}
footer a {
  color: white;
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 20px auto;
}
.contact-form label {
  font-size: 1rem;
  color: #fff;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #4fd1c5;
  border-radius: 5px;
  background: #181a1b;
  color: #fff;
  font-size: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #38b2ac;
}
.contact-form button {
  padding: 10px 20px;
  background: #4fd1c5;
  color: #181a1b;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
}
.contact-form button:hover {
  background: #38b2ac;
}

.images-legende {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
  margin: 32px 0;
  flex-wrap: wrap;
}
.images-legende figure {
  margin: 0;
  text-align: center;
  min-height: 250px;
}
.images-legende img {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(11,37,69,0.12);
}
.images-legende figcaption {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #cfd8dc;
}

.logo-no-fade {
  opacity: 1 !important;
  transition: none !important;
  position: relative;
  z-index: 10;
}
