:root {
  --color-primary: #007bff; /* Bleu principal */
  --color-secondary: #339cff; /* Bleu clair pour hover et accents */
  --color-bg: #ffffff;
  --color-bg2: #edf3fc;
  --color-bg3: #eee;
  --color-text: #000000;
  --color-nav-text: #888; /* Texte du menu en gris foncé */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
}

ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--color-primary);
}

/* General Styling for the Fixed Image Section */
.image-fixe {
  width: 100%;
  overflow: hidden;
  margin: 2rem auto;
  max-width: 1200px; /* Prevent it from stretching too far on larger screens */
  border-radius: 8px;
  position: relative;
}

.image-fixe img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center top;
  max-height: 500px;
  opacity: 0.8;
  border-radius: 8px;
}

.image-text {
  position: absolute;
  top: 50%;
  left: 10%; /* Positioned more to the left for balance */
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  font-weight: bold;
  max-width: 350px;
  background-color: rgba(0, 0, 0, 0.35); /* Semi-transparent background */
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.hero {
  margin-top: 0;
  text-align: center;
  padding: 3rem 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* Responsive Mobile Styles */
@media (max-width: 768px) {
  .image-text {
    font-size: 1.3rem;
    padding: 0.8rem 1rem;
    max-width: 45%;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  /* On mobile screens */
  .image-fixe {
    max-width: 95%; /* Limit image container width to 95% on mobile */
    margin: 2rem auto; /* Center the image container */
  }

  .image-text {
    font-size: 1.2rem;
    padding: 0.8rem;
    left: 5%; /* Keeps the text aligned to the left */
    max-width: 50%; /* Ensures the text doesn't overflow */
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }
}
