/************ Vignette (article) ************/

/****** Grid vignette ******/

.grid-vignette {
  row-gap: 55px !important;
}

@media (max-width: 767px) {

  .grid-vignette {
    row-gap: 30px !important;
  }
}

/****** Vignette PC ******/

.vignette-pc .media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
}

.vignette-pc .media img,
.vignette-pc .media picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vignette-pc .cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  position: absolute;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.vignette-pc .cta-row .bloc-boutons-audios {
  flex-direction: column;
  align-items: center;
}

.vignette-pc .cta-row .bloc-bouton-video {
  justify-content: center;
}

.vignette-pc .cta-row .texte-format {
  font-size: 16px;
}

.vignette-pc .overlay,
.vignette-pc .overlay-first {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px;
  background-color: rgba(0, 0, 0, 0.40)!important;
  transform: translateY(65%);
  transition: transform 0.35s ease;
  color: var(--blanc);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
}

.vignette-pc .overlay {
  transform: translateY(65%);
}

.vignette-pc .overlay-first {
  transform: translateY(100%);
}

.vignette-pc .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  gap: 8px;
  padding: 40px 0px 0px 0px;
  width: 100%;
  pointer-events: none;
  transition: opacity 0s ease;
}

.vignette-pc .meta-row .format-icone {
  width: 58px;
  padding: 6px 8px;
  font-size: 14px;
}

.vignette-pc .meta-row .tag {
  border: 1px solid var(--blanc);
  color: var(--blanc);
  padding: 2px 6px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 16px;
}

.first-post .tag {
  border: 2px solid var(--bleu-fonce);
  color: var(--bleu-fonce);
  padding: 2px 6px;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  height: fit-content;
}

.vignette-pc .meta-row .date {
  width: 200px;
  font-weight: 600;
  text-align: end;
}

.vignette-pc .content {
  width: calc(100% - 40px);
}

.vignette-pc .vignette-title {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 20px;
}

.vignette-pc .vignette-title a {
  font-size: 15px;
  color: inherit;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.vignette-pc .lien-plus-infos {
  display: inline-block;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: var(--bleu-fonce);
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.first-post .lien-plus-infos {
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bleu-fonce);
  margin-top: 20px;
  display: none;
}

.vignette-pc .lien-audio-plus-infos,
.vignette-pc .lien-video-plus-infos {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  color: var(--blanc);
}

.vignette-pc .lien-video-plus-infos {
  transform: translateY(20px);
}

.vignette-pc .lien-audio-plus-infos:hover,
.vignette-pc .lien-video-plus-infos:hover {
  font-weight: 600;
  text-decoration: underline;
  color: var(--jaune-principal);
}

.first-post .vignette-title {
  font-size: 20px;
  color: inherit;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
  margin-bottom: 10px;;
}

.first-post:hover .vignette-title,
.first-post .lien-plus-infos:hover {
  color: var(--jaune-or);
}

.first-post .colonne-texte {
  transition: all ease 0.3s;
}

.first-post:hover .meta-row {
  opacity: 0;
}

.first-post:hover .lien-plus-infos {
  display: block;
}

.first-post:hover .colonne-texte {
  margin-top : -60px;
}

/****** Animations PC ******/

.first-post:hover .cta-row,
.vignette-pc:hover .cta-row {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.vignette-pc:hover .overlay,
.first-post:hover .overlay-first {
  transform: translateY(0);
}

.vignette-pc:hover .meta-row {
  opacity: 0;
}

.vignette-pc .vignette-title a:hover {
  color: var(--jaune-principal);
}

.vignette-pc:hover .lien-plus-infos {
  opacity: 1;
  transform: translateY(0);
}

/****** Vignette MOB ******/

.vignette-mob .media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
}

.vignette-mob .tag {
  border: 1px solid var(--blanc);
  color: var(--blanc);
  padding: 2px 6px;
  margin: 8px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 12px;
}

.vignette-mob .bloc-liens-media-mobile {
  top: 0px;
  opacity: 1;
}

.vignette-mob .cta-play svg,
.vignette-mob .spk-open svg {
  position: relative;
  top: 5px;
  width: 60px;
  height: 60px;
}

.vignette-mob .media {
  background-color: rgba(0, 0, 0, 0.30);
}

.vignette-mob .date {
  font-size: 14px;
  font-weight: 600;
  color: var(--jaune-or);
}

.vignette-mob .vignette-title {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 17px;
  padding-top: 10px;
}

.vignette-mob .vignette-title a {
  display: inline-block;
  font-size: 14px;
  color: inherit;
  text-transform: lowercase;
  text-decoration: none;
}

.vignette-mob .vignette-title a::first-letter {
  text-transform: uppercase;
}

/****** Icônes dynamiques (communes) ******/

.format-icone::before {
  content: "";
  display: flex;
  width: 42px;
  height: 42px;
  background: no-repeat center / contain;
}

.first-post .format-icone::before {
  width: 45px;
  height: 45px;
}

@media (max-width: 767px) {

  .format-icone::before {
    width: 35px;
    height: 35px;
  }
}

/* Icônes blanches */

.format-icone.icone-blanche-video::before {
  background-image: url("../../icons/Picto-Regarder-Blanc.svg");
}

.format-icone.icone-blanche-texte::before {
  background-image: url("../../icons/Picto-Lire-larticle-Blanc.svg");
}

.format-icone.icone-blanche-audio::before {
  background-image: url("../../icons/Picto-Ecouter-Blanc.svg");
}

/* Icônes jaunes */

.format-icone.icone-jaune-video::before {
  background-image: url("../../icons/Picto-Regarder-Jaune.svg");
}

.format-icone.icone-jaune-texte::before {
  background-image: url("../../icons/Picto-Lire-larticle-Jaune.svg");
}

.format-icone.icone-jaune-audio::before {
  background-image: url("../../icons/Picto-Ecouter-Jaune.svg");
}

/* Icônes bleues */

.format-icone.icone-bleue-video::before {
  background-image: url("../../icons/Picto-Regarder.svg");
}

.format-icone.icone-bleue-texte::before {
  background-image: url("../../icons/Picto-Lire-larticle.svg");
}

.format-icone.icone-bleue-audio::before {
  background-image: url("../../icons/Picto-Ecouter.svg");
}

/****** Gestion vignettes (PC et MOB) ******/

.vignette-pc {
  display: flex;
  gap: 15px;
}

.first-post {
  display: grid;
}

.vignette-mob {
  display: none;
}

@media (max-width: 767px) {

  .first-post,
  .vignette-pc {
    display: none!important;
  }

  .vignette-mob {
    display: flex;
  }
}