/*
 /$$$$$$$                            /$$                              
| $$__  $$                          | $$                              
| $$  \ $$  /$$$$$$  /$$$$$$$   /$$$$$$$  /$$$$$$   /$$$$$$  /$$   /$$
| $$$$$$$  |____  $$| $$__  $$ /$$__  $$ /$$__  $$ |____  $$| $$  | $$
| $$__  $$  /$$$$$$$| $$  \ $$| $$  | $$| $$$$$$$$  /$$$$$$$| $$  | $$
| $$  \ $$ /$$__  $$| $$  | $$| $$  | $$| $$_____/ /$$__  $$| $$  | $$
| $$$$$$$/|  $$$$$$$| $$  | $$|  $$$$$$$|  $$$$$$$|  $$$$$$$|  $$$$$$/
|_______/  \_______/|__/  |__/ \_______/ \_______/ \_______/ \______/ 
*/

/* Version Navigateur */
.bandeau {
  position: relative;
  width: 100%;
  height: 100%; 
  display: grid;
  grid-template-columns: 25% 25% 25% 20% 5%;
  grid-template-rows: 15% 15% 20% 5% 15% 17.5%;
  overflow: hidden;
  box-sizing: border-box;
  color: white;
}

.bandeau img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bandeau .image-shadow {
  z-index: -1;
  width: 100%;
  height: fit-content;
  grid-column-start: 1;
  grid-column-end: 6;
  grid-row-start: 1;
  grid-row-end: 7;
}

.bandeau .image-shadow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150%; 
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, black 100%);
}

.bandeau h2 {
  padding-left: 50px;
  grid-column-start: 1;
  grid-column-end: 5;
  grid-row-start: 2;
  grid-row-end: 3;
  font-size: 2.5em;
  margin: 0;
  text-align: left;
}

.description{
  padding-left: 60px;
  grid-row-start: 4;
  grid-row-end: 5;
}

.bandeau p {
  margin-left: 50px;
  grid-column-start: 1;
  grid-column-end: 4;
  font-size: 1em;
  margin: 0;
  border-radius: 10px;
  max-width: 100%;
}

.bandeau .notation {
  margin-left: 70px;
  grid-column-start: 1;
  grid-column-end: 3;
  grid-row-start: 3;
  grid-row-end: 4;
  display: flex;
  flex-direction: column;
  font-size: 1.1em;
  gap: 0.2rem;
}

.bandeau .synopsis{
  display: flex;
  align-items: center;
  margin-left: 50px;
  grid-row-start: 5;
  grid-row-end: 6;
  padding: 25px;
  background-color: rgba(0, 0, 0, 0.85);
  border-radius: 15px;
}

.bandeau .note, .recommandation{
  font-size: 1em;
}

/* Il peut y avoir un problème avec le titre sinon */
@media (max-width: 1200px) {
.bandeau h2 {
  font-size: 2em;
}}

/* Pour écran plus large */
@media (min-width: 1600px) {
.bandeau h2 {
  padding-left: 50px;
  grid-column-start: 1;
  grid-column-end: 5;
  grid-row-start: 2;
  grid-row-end: 3;
  font-size: 3em;
  margin: 0;
  text-align: left;
}

.bandeau p {
  margin-left: 50px;
  grid-column-start: 1;
  grid-column-end: 4;
  font-size: 1.2em;
  margin: 0;
  border-radius: 10px;
  max-width: 100%;
}

.bandeau .notation {
  margin-left: 70px;
  grid-column-start: 1;
  grid-column-end: 3;
  grid-row-start: 3;
  grid-row-end: 4;
  display: flex;
  flex-direction: column;
  font-size: 1.25em;
  gap: 0.2rem;
}
}

/* Version Tel */
@media (max-width: 1000px) {
  .bandeau {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
  }
  
  .bandeau .image-shadow {
    z-index: -1;
    width: fit-content;
    height: fit-content;
  }

  .bandeau img{
    width: 100%;
    height: 100%; 
  }
  .bandeau .image-shadow::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: fit-content;
    height: fit-content;  
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, black 100%);
  }
    .bandeau h2 {
    padding: 6px;
    margin: 0;
    margin-top: 15px;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    width: 100%;
    text-align: center;
  }

  .bandeau h3 {
    margin-top: 50px;
    font-size: clamp(1.5rem, 5vw, 2rem);
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
  }

  .bandeau .notation {
    margin: 0;
    margin-top: 50px;
    margin-bottom: 25px;
    font-size: clamp(1rem, 4vw, 1.2rem);
    align-items: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
  }

  .description{
    padding: 0;
    text-align: center;
  }
  .bandeau .synopsis{
    text-align: center;
    margin: 0;
    margin-top: 50px;
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    max-width: 100%;
  }
}

/* 
  /$$$$$$             /$$          
 /$$__  $$           |__/          
| $$  \ $$ /$$    /$$ /$$  /$$$$$$$
| $$$$$$$$|  $$  /$$/| $$ /$$_____/
| $$__  $$ \  $$/$$/ | $$|  $$$$$$ 
| $$  | $$  \  $$$/  | $$ \____  $$
| $$  | $$   \  $/   | $$ /$$$$$$$/
|__/  |__/    \_/    |__/|_______/ 
*/

.avis .formAvis{
  text-align: center;
  width: fit-content;
  max-width: 90%;
  margin: 2rem auto;
  padding: 1em 5rem 2.5rem;
  background: rgb(54, 178, 209);
  border-radius: 12px;
  color: rgb(255, 255, 255);
  font-family: 'Segoe UI', sans-serif;
}

.avis .formAvis h3 {
  font-size: 1.75em;
  margin-bottom: 1rem;
  color: black;
  font-weight: bold;
}

.avis label {
  display: block;
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: bold;
  color: black;
}

.avis input[type="text"],
.avis select{
  width: 100%;
  max-width: 400px;
  padding: 10px;
  margin-top: 5px;
  font-size: 1rem;
  border: 1px solid rgb(0, 35, 190);
  border-radius: 8px;
  box-sizing: border-box;
  transition: border 0.3s ease;
}

.avis textarea {
  width: 100%;
  max-width: 500px;
  height: 150px;
  padding: 10px;
  margin-top: 5px;
  font-size: 1rem;
  border: 1px solid rgb(0, 35, 190);
  border-radius: 8px;
  box-sizing: border-box;
  transition: border 0.3s ease;
  resize: vertical;
}

.avis input[type="submit"] {
  margin-top: 1.5rem;
  padding: 10px 75px;
  background-color: rgb(16, 56, 233);
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border: 1px solid rgb(0, 35, 190);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.avis input[type="submit"]:hover {
  background-color: rgb(28, 70, 255);
}

.avis h3{
  text-align: center;
  font-size: 1.75em;
  font-weight: bold;
  color: rgb(255, 255, 255);
}

.avis-card {
  background-color: white;
  margin: 2rem auto;
  padding: 1rem;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
  text-align: left;
}

.avis-card p {
  margin: 0.5rem 0;
  color: black;
  font-size: 0.95rem;
}

.retourAvisRed{
  text-align: center;
  color: rgb(255, 0, 0);
}

.retourAvisGreen{
  text-align: center;
  color: rgb(0, 255, 34);
}

.stars {
  color: gold;
  font-size: 1.2rem;
}

@media (max-width: 600px) {
  .avis .formAvis {
    padding: 1rem 1.5rem 2rem;
    max-width: 95%;
  }

  .avis input[type="text"],
  .avis select,
  .avis textarea {
    max-width: 100%;
  }

  .avis input[type="submit"] {
    width: 100%;
    padding: 10px;
  }
  
  .avis textarea {
    width: 100%;
    min-width: none;
  }
}


@media (max-width: 450px) {
  .avis .formAvis {
    padding: 0.5rem 1rem 1.5rem;
  }
}