* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  text-decoration: none;
  list-style: none;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
}

#veille {
  padding-top: 7em;
  background: #171a21;
  color: #fff;
}

/* ******************** */
#article {
  padding-top: 3em;
}

article {
  --img-scale: 1.001;
  --title-color: black;
  --link-icon-translate: -20px;
  --link-icon-opacity: 0;
  position: relative;
  border-radius: 16px;
  box-shadow: none;
  background: #fff;
  transform-origin: center;
  transition: all 0.4s ease-in-out;
  overflow: hidden;
  color: black;
}

article a::after {
  position: absolute;
  inset-block: 0;
  inset-inline: 0;
  cursor: pointer;
  content: "";
}

article h2 {
  margin: 0 0 18px 0;
  font-family: "Bebas Neue", cursive;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--title-color);
  transition: color 0.3s ease-out;
}

.resumer {
  font-size: 1rem;
}

.source {
  display: flex;
  justify-content: space-between;
}

figure {
  margin: 0;
  padding: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

article img {
  max-width: 100%;
  transform-origin: center;
  transform: scale(var(--img-scale));
  transition: transform 0.4s ease-in-out;
}

.article-body {
  padding: 24px;
}

article a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #28666e;
}

article a:focus {
  outline: 1px dotted #28666e;
}

article a .icon {
  min-width: 24px;
  width: 24px;
  height: 24px;
  margin-left: 5px;
  transform: translateX(var(--link-icon-translate));
  opacity: var(--link-icon-opacity);
  transition: all 0.3s;
}

article:has(:hover, :focus) {
  --img-scale: 1.1;
  --title-color: #28666e;
  --link-icon-translate: 0;
  --link-icon-opacity: 1;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px,
    rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

/* *************************** */
.articles {
  display: grid;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ****************************** */

@media screen and (max-width: 960px) {
  article {
    container: card/inline-size;
  }
  .article-body p {
    display: none;
  }
}

@container card (min-width: 380px) {
  .article-wrapper {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
  }
  .article-body {
    padding-left: 0;
  }
  figure {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  figure img {
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
  }
}

.sr-only:not(:focus):not(:active) {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.date {
  display: flex;
  margin-bottom: 5px;
}

.note {
  display: flex;
  margin-bottom: 5px;
}

.presentation {
  position: absolute;
  left: 5%;
  top: 40%;
  font-size: 2em;
  font-weight: 700;
}

.presentation p {
  white-space: nowrap;
  overflow: hidden;
  border-right: 1px solid white;
  animation: typing 2s steps(22, end) forwards;
}

.secund {
  margin-top: 20px;
  color: #351947;
  font-family: var(--title);
  font-size: 1.2em;
}
.secund::before,
.secund::after {
  border: 2px solid #000000;
  display: inline-block;
  content: "";
  width: 100px;
  transform: translate(0, -6px);
}

.navRealisation {
  display: flex;
  justify-content: center;
}

.navrealisation {
  background-color: #1f0b3f;
  border-radius: 24px;
  margin-left: 100px;
  font-size: 20px;
}

.navrealisation:hover {
  background-color: blueviolet;
  -webkit-transform: scale(1.25);
  -moz-transform: scale(1.25);
  -ms-transform: scale(1.25);
  -o-transform: scale(1.25);
  transform: scale(1.25);
}

.navrealisation a {
  color: white;
}

.navrealisation a:hover {
  color: white;
}

.imgVeille {
}

.imgVeille span {
  position: absolute;
}

/* **************************** */
#article {
  background-color: #7bafc9;
}

.articleVeille {
  background-color: aliceblue;
  filter: drop-shadow(0 0 0.9rem rgba(0, 0, 0, 0.212));
  border-radius: 24px;
}

.InfoVeille {
  display: flex;
  justify-content: space-around;
}

.imgVeille {
  display: flex;
  justify-content: center;
}

.BoutonVeille {
  display: flex;
  justify-content: end;
}

.essaiearticle img {
  border-radius: 24px;
  box-shadow: 0 0 5px var(--blanc);
  border: 1px solid transparent;
  object-fit: cover;
  height: 300px;
  width: 470px;
}

.filter-options {
  font-size: 20px;
  text-align: center;
}
