/* Da Silva Rúben 13.01.2026 Styles de la page html Index*/
body {
  margin: 100px auto;
  max-width: 1200px;
  background-color: #111;
  color: antiquewhite;
  font-family: Arial, Helvetica, sans-serif;
}

/* ================= SEARCH ================= */

.div-search {
  position: relative;
  text-align: center;
}

.div-search img {
  width: 100%;
  max-width: 100%;
}

input {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 100%;
  max-width: 350px;
  padding: 10px 14px;

  font-size: 16px;
  text-align: center;

  border-radius: 20px;
  border: 1px solid #ccc;
}

/* ================= SECTION PRINCIPALE ================= */

section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 60px;
  gap: 60px;
}

/* Texte de présentation */
.div-1 {
  flex: 2;
  text-align: justify;
}

/* Tendances */
.div-2 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}

.div-2 h2 {
  white-space: nowrap;
}

/* Affiches */
.poster-horizontal {
  width: 200px;
  border-radius: 5px;
}

/* Effet zoom au hover */
.poster-horizontal:hover {
  transform: scale(1.1);
}

/* ================= MOBILE ================= */

@media (max-width: 480px) {
  body {
    margin: 20px auto;
    max-width: 100%;
    padding: 0 10px;
    font-size: 14px;
  }

  input {
    position: static;
    transform: none;
    width: 90%;
    margin: 15px auto;
    display: block;
  }

  section {
    flex-direction: column;
    gap: 20px;
  }

  .div-1,
  .div-2 {
    width: 100%;
  }

  .div-2 h2 {
    white-space: normal;
    font-size: 18px;
  }

  .poster-horizontal {
    width: 100%;
    max-width: 150px;
  }
}
