/* Base styles */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
* {
  /* font-family: Verdana, Geneva, Tahoma, sans-serif; */
  font-family: "Roboto", sans-serif;
  color: #e5dfd1;
  box-sizing: border-box;
}

/* Responsive layout */
@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.5rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  p,
  li {
    font-size: 1.25rem;
  }

  .main-content {
    padding: 0 2rem;
  }
}

@media (min-width: 1200px) {
  .main-content {
    padding: 0 10vw; /* marges latérales fluides */
  }
}

/* Typographie */
h1 {
  font-size: 2.5rem;
  text-align: center;
  margin: 0.5em;
}
h2 {
  font-size: 2rem;
  text-align: center;
  margin: 0.5em;
}
h3 {
  font-size: 1.25rem;
  padding: 0.5em;
}
p,
li {
  font-size: 1.125rem;
}
small {
  font-size: 0.875rem;
}

html {
  font-size: 100%; /* 16px par défaut */
  overflow-x: hidden; /* évite le scroll horizontal */
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/background.png") no-repeat center center;
  background-size: cover;
  z-index: -1;
}

.main-content {
  padding: 0 1rem; /* marge intérieure responsive */
}
/* Bloc de texte */
.text-block {
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

/* Images responsives */
img {
  max-width: 80%;
  height: auto;
  display: block;
}

li {
  margin: 1rem;
}
ul {
  margin-bottom: 5rem;
}

.article {
  margin: 5rem 0 5rem 0;
}

.article > h3 {
  text-decoration: underline;
}

hr {
  max-width: 75%;
  margin: 0 auto 3rem auto;
  border: none;
  border-top: 4px solid #01a884;
}

#pourquoi {
  text-decoration: underline;
  margin-bottom: 3rem;
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #ff6f61;
  color: #fff;
  font-size: 24px;
  text-align: center;
  padding: 10px 14px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  z-index: 1000;
}

.scroll-top:hover {
  background-color: #e85c50;
}

/* ---------- partie utilisateur ---------- */

.img-app {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* espacement vertical sur mobile */
  align-items: center;
}

/* À partir de 768px (tablette et +) */
@media (min-width: 768px) {
  .img-app {
    flex-direction: row;
    justify-content: space-around; /* espace entre les images */
    align-items: flex-start;
  }

  .img-app img {
    flex: 1;
    max-width: 25%; /* pour que 3 images tiennent dans 100% avec un peu de marge */
  }
}

/* --------------------------------------- */

/* ---------- partie coach ---------- */

.img-app-coach {
  display: flex;
  justify-content: center;
  max-width: 100%;
}

@media (min-width: 768px) {
  .app-coach {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
  }
  .img-app-coach {
    display: flex;
    justify-content: center;
    max-width: 300px;
  }
}

/* --------------------------------- */

/* ---------- footer ---------- */
.footer {
  background-color: #1c1c1c;
  color: #f0f0f0;
  padding: 40px 20px;
  font-family: "Segoe UI", sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  text-align: center;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h4 {
  margin-bottom: 10px;
  color: #ff6f61;
}

.footer-section a {
  color: #f0f0f0;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9em;
  color: #aaa;
}
