@import './index.css' layer(index);
header {
  background-image: linear-gradient(
      to top,
      transparent,
      30%,
      rgba(0, 0, 0, 0.3)
    ),
    url('/images/actualites.jpg');

  .text {
    text-transform: uppercase;
    padding-block: 4rem;
    font-size: 6rem;
    font-weight: 400;
  }
}

.all__actualites {
  .newList {
    margin-block: 5rem;

    .title__group {
      display: flex;
      align-items: center;
      gap: 2rem;
      margin-bottom: 3rem;

      h3 {
        font-size: 3rem;
        text-transform: uppercase;
        color: black;
        font-weight: 700;
      }

      hr {
        height: 3px;
        width: 10px;
        background-color: black;
        flex: 1 1 auto;
        background-color: var(--accent-color);
      }
    }
    .new__container {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 2rem;

      .new {
        background-color: white;
        border-radius: 10px;
        box-shadow: 0px 2px 5px 2px rgba(0, 0, 0, 0.5);
        color: black;
        .img {
          border-radius: inherit;
          img {
            object-fit: cover;
            vertical-align: middle;
            aspect-ratio: 1/1;
            width: 100%;
            border-top-left-radius: inherit;
            border-top-right-radius: inherit;
          }
        }

        .icons {
          display: flex;
          align-items: center;
          justify-content: space-around;
          color: black;
          font-size: 1.5rem;
          padding-block: 1rem;

          .icon {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;

            i {
              color: var(--accent-color);
              font-weight: bolder;
            }

            .fa-arrow-down {
              transform: rotate(231deg);
            }

            span,
            a {
              font-weight: bolder;
            }
          }
        }

        .text {
          text-align: left;
          margin-block: 1rem 2rem;
          padding-inline: 1rem;
          display: -webkit-box;
          -webkit-line-clamp: 5;
          -webkit-box-orient: vertical;
          overflow: hidden;
          hyphens: auto;
          white-space: wrap;
        }
      }
    }
  }
}

@media screen and (max-width: 425px) {
  header {
    .text {
      font-size: 4rem;
    }
  }
}
