/* ===================== RESET ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  max-width: 100%;
  overflow-x: hidden; /* évite que le contenu “déborde” sur mobile */
}
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #7ec8ff; /* fond bleu joyeux */
  color: #1f2933;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===================== BANDEROLE (HERO) ===================== */
.hero {
  background: #7ec8ff;
  padding: 20px 0;
  display: flex;
  justify-content: center;
}
.hero img {
  width: 95%;
  max-width: 1600px;
  height: 180px;         /* fine mais large */
  object-fit: contain;
  display: block;
}

/* ===================== MENU ===================== */
.menu {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
  background: #fb8500;
  position: sticky;
  top: 0;
  z-index: 10;
}
.menu a {
  padding: 20px 45px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
  transition: background 0.3s, transform 0.3s, color 0.3s;
  text-align: center;
}
.menu a:hover {
  background: #ffb703;
  color: #1f2933;
  transform: translateY(-2px);
}

/* ===================== BANNIÈRE SOUS MENU ===================== */
.menu-banner {
  width: 100%;
  padding: 0;
  background: #7ec8ff;
}
.menu-banner img {
  width: 100%;
  height: 140px;     /* plus fin */
  object-fit: cover;
  display: block;
}

/* ===================== SECTIONS (STYLE UNIQUE) ===================== */
/* Utilise UN seul style de section uniforme (au lieu de .section + section en double) */
section,
.section,
.legal {
  width: 95%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Variante légère */
.section-alt {
  background: #f4faff;
}

/* Intro */
.intro {
  text-align: center;
}

/* Titres dans les sections */
section h1,
section h2,
.section h1,
.section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  color: #023047;
  text-transform: uppercase;
}

/* Paragraphes dans les sections */
section p,
.section p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 15px;
}

/* Sécurité : mots/URLs trop longs */
section,
.section,
.legal {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ===================== BLOCS ANIMATION ===================== */
.animation-block {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}
.animation-block img {
  width: 350px;
  height: 220px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  display: block;
}
.animation-block div {
  flex: 1;
}
.animation-block p {
  font-size: 17px;
  line-height: 1.6;
}

/* ===================== MENTIONS LÉGALES ===================== */
.legal {
  max-width: 900px;         /* plus étroit */
  background: #f9f9f9;
  padding: 50px 30px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  font-size: 16px;
  line-height: 1.8;
  color: #1f2933;
  text-align: left;
}
.legal h1 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 50px;
  color: #fb8500;
  letter-spacing: 1px;
  text-transform: none; /* garde lisible */
}
.legal-section {
  margin-bottom: 35px;
}
.legal-section h2 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #023047;
  border-bottom: 2px solid #ffb703;
  padding-bottom: 5px;
  text-transform: none;
  text-align: left;
}
.legal-section p {
  margin-top: 8px;
  text-align: left;
}

/* ===================== FOOTER ===================== */
footer {
  background: #fb8500;
  color: #ffffff;
  text-align: center;
  padding: 12px 10px; /* plus fin */
  margin-top: auto;
  font-size: 14px;
}
footer a {
  color: #ffffff;
  text-decoration: none;
}
footer a:hover {
  color: #ffb703;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  section, .section, .legal { padding: 30px; }
  section h1, section h2, .section h1, .section h2 { font-size: 28px; }
  section p, .section p { font-size: 16px; }
}

@media (max-width: 768px) {
  /* Menu */
  .menu a {
    padding: 14px 25px;
    font-size: 18px;
  }

  /* Sections */
  section, .section, .legal {
    padding: 25px;
    margin: 30px auto;
  }
  section h1, section h2, .section h1, .section h2 {
    font-size: 26px;
  }
  section p, .section p {
    font-size: 15px;
  }

  /* Bloc animation : passe en colonne pour éviter le débordement */
  .animation-block {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .animation-block img {
    width: 100%;
    max-width: 100%;
    height: auto; /* très important en mobile */
  }

  /* Si tu utilises ces classes ailleurs */
  .main-content {
    flex-direction: column;
    padding: 30px 20px;
    text-align: center;
  }
  .content-right {
    width: 100%;
    text-align: center;
  }
  .content-left h2 {
    font-size: 24px;
  }
  .content-left p {
    font-size: 15px;
  }

  /* Mentions légales */
  .legal { padding: 30px 20px; }
  .legal h1 { font-size: 30px; margin-bottom: 30px; }
}

@media (max-width: 480px) {
  section, .section, .legal { padding: 20px; }
  section h1, section h2, .section h1, .section h2 { font-size: 24px; }
  section p, .section p { font-size: 14px; }
}