/*
 /$$$$$$$                            /$$                              
| $$__  $$                          | $$                              
| $$  \ $$  /$$$$$$  /$$$$$$$   /$$$$$$$  /$$$$$$   /$$$$$$  /$$   /$$
| $$$$$$$  |____  $$| $$__  $$ /$$__  $$ /$$__  $$ |____  $$| $$  | $$
| $$__  $$  /$$$$$$$| $$  \ $$| $$  | $$| $$$$$$$$  /$$$$$$$| $$  | $$
| $$  \ $$ /$$__  $$| $$  | $$| $$  | $$| $$_____/ /$$__  $$| $$  | $$
| $$$$$$$/|  $$$$$$$| $$  | $$|  $$$$$$$|  $$$$$$$|  $$$$$$$|  $$$$$$/
|_______/  \_______/|__/  |__/ \_______/ \_______/ \_______/ \______/ 
*/

/* Version Navigateur */
.bandeau {
  margin: 10px auto;
  padding: 2rem;
  max-width: 1500px;
  min-height: 750px;
  background-image: url('../Images/Horimiya_banner.webp');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: white;
  display: grid;
  grid-template-columns: 20% 25% 25% 25%;
  grid-template-rows: 25% 10% 10% 17% 8% 17.5% 12.5%;
  border-radius: 12px;
  box-sizing: border-box;
}

.bandeau h2 {
  margin: 0;
  grid-column-start: 4;
  grid-column-end: 5;
  display: inline-block;
  font-size: 3em;
  color: rgb(216, 166, 0);
  background-color: rgba(0, 0, 0, 0.85);
  border-radius: 15px;
  padding: 0.5rem 1rem;
  text-align: center;
  align-self: start;
}

.bandeau h3 {
  grid-column-start: 1;
  grid-column-end: 2;
  grid-row-start: 3;
  grid-row-end: 4;
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 15px 15px 0px 0px;
  padding: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 2.5em;
  margin: 0;
  text-align: center;
}

.bandeau p {
  grid-column-start: 1;
  grid-column-end: 4;
  font-size: 1em;
  margin: 0;
  border-radius: 10px;
  max-width: 100%;
}

.bandeau .notation {
  grid-column-start: 1;
  grid-column-end: 2;
  grid-row-start: 4;
  grid-row-end: 5;
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 0px 0px 15px 15px;
  display: flex;
  
  flex-direction: column;
  font-size: 1.1em;
  text-align: center;
  gap: 0.2rem;
}

.bandeau .synopsis{
  grid-row-start: 6;
  grid-row-end: 7;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.85);
  border-radius: 15px;
}

/* Version Tel */
@media (max-width: 904px) {
  .bandeau {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    margin: 10px 15px;
  }

  .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;
    font-size: clamp(1rem, 4vw, 1.2rem);
    align-items: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
  }

  .bandeau .synopsis{
    margin-top: 50px;
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    max-width: 100%;
  }
}

/* 
  /$$$$$$              /$$                                             /$$          
 /$$__  $$            | $$                                            |__/          
| $$  \__/  /$$$$$$  /$$$$$$    /$$$$$$   /$$$$$$   /$$$$$$   /$$$$$$  /$$  /$$$$$$ 
| $$       |____  $$|_  $$_/   /$$__  $$ /$$__  $$ /$$__  $$ /$$__  $$| $$ /$$__  $$
| $$        /$$$$$$$  | $$    | $$$$$$$$| $$  \ $$| $$  \ $$| $$  \__/| $$| $$$$$$$$
| $$    $$ /$$__  $$  | $$ /$$| $$_____/| $$  | $$| $$  | $$| $$      | $$| $$_____/
|  $$$$$$/|  $$$$$$$  |  $$$$/|  $$$$$$$|  $$$$$$$|  $$$$$$/| $$      | $$|  $$$$$$$
 \______/  \_______/   \___/   \_______/ \____  $$ \______/ |__/      |__/ \_______/
                                         /$$  \ $$                                  
                                        |  $$$$$$/                                  
                                         \______/                                   
*/

.categorie {
    padding-left: 50px;
    color: rgb(54, 178, 209);
}
.categorie h2{
    font-size: 2.5em;
    margin: 10px 0px 0px 0px;
}
.categorie .animelist{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
@media (max-width: 904px) {
  .categorie {
    padding: 10px;
  }
  .categorie h2{
      font-size: 2.5em;
      margin: 10px 0px 0px 0px;
  }
  .categorie .animelist{
      padding-left: 0px;
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
  } 
}

/*
  /$$$$$$                                /$$ /$$
 /$$__  $$                              | $$| $$
| $$  \__/  /$$$$$$$  /$$$$$$   /$$$$$$ | $$| $$
|  $$$$$$  /$$_____/ /$$__  $$ /$$__  $$| $$| $$
 \____  $$| $$      | $$  \__/| $$  \ $$| $$| $$
 /$$  \ $$| $$      | $$      | $$  | $$| $$| $$
|  $$$$$$/|  $$$$$$$| $$      |  $$$$$$/| $$| $$
 \______/  \_______/|__/       \______/ |__/|__/
*/

.scroll-container {
    position: relative;
    height: fit-content;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border: 100%;
    transition: background 0.3s ease;
    font-family: Audiowide;
    transition: opacity 0.3s ease;
}

.scroll-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.scroll-btn.left {
    left: 0;
}

.scroll-btn.right {
    right: 0;
}

.scroll-btn[style*="display: none"] {
    opacity: 0;
    pointer-events: none;
}

.animelist-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 25px;
    padding-top: 10px;
    padding-left: 10px;
    -ms-overflow-style: none;
    scrollbar-width: none;     
}

.animelist {
    display: flex;
    gap: 1rem;
    padding-left: 1rem;
    width: max-content;
}