/************ Slider articles (accueil) ************/

/****** Slider articles PC ******/

.slider-articles-pc .media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
}

.slider-articles-pc .media img,
.slider-articles-pc .media picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-articles-pc .cta-row {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  position: absolute;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.slider-articles-pc .cta-row .bloc-boutons-audios {
  flex-direction: column;
  align-items: center;
}

.slider-articles-pc .cta-row .bloc-bouton-video {
  justify-content: center;
}

.slider-articles-pc .cta-row .texte-format {
  font-size: 16px;
}

.slider-articles-pc .overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px;
  background: rgba(0, 0, 0, 0.40);
  opacity: 0;
  transition: opacity 0.35s ease;
  color: var(--blanc);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
}

.slider-articles-pc .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  gap: 8px;
  padding: 40px 20px 0 10px;
  width: 100%;
  pointer-events: none;
  transition: opacity 0s ease;
}

.slider-articles-pc .meta-row .format-icone {
  padding: 6px 8px;
  font-size: 14px;
}

.slider-articles-pc .tag {
  position: absolute;
  top: 20px;
  left: 25px;
  border: 1px solid var(--blanc);
  color: var(--blanc);
  padding: 2px 6px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 400;
  opacity: 1;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.slider-articles-pc .meta-row .date {
  font-weight: 600;
}

.slider-articles-pc .content {
  width: 100%;
}

.slider-articles-pc .slider-articles-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.2;
}

.slider-articles-pc .slider-articles-title i {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-articles-pc .slider-articles-title a {
  display: block;
  max-height: 45px;
  overflow-y: auto;
  font-size: 18px;
  font-weight: bold;
  color: inherit;
  text-transform: uppercase;
  text-decoration: none;
  padding-right: 20px;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.slider-articles-pc .slider-articles-title a::-webkit-scrollbar {
  width: 6px;
}

.slider-articles-pc .slider-articles-title a::-webkit-scrollbar-track {
  background: transparent;
}

.slider-articles-pc .slider-articles-title a::-webkit-scrollbar-thumb {
  background-color: var(--jaune-principal);
  border-radius: 10px;
}

.slider-articles-pc .slider-articles-title .format-icone::before {
  width: 45px;
  height: 45px;
}

.slider-articles-pc .lien-plus-infos {
  display: inline-block;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  color: var(--blanc);
  font-size: 18px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  cursor: pointer;
}

/****** Animations PC ******/

.slider-articles-pc:hover .cta-row {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.slider-articles-pc:hover .overlay {
  opacity: 1;
}

.slider-articles-pc:hover .meta-row {
  opacity: 0;
}

.slider-articles-pc:hover .tag {
  opacity: 0;
}

.slider-articles-pc:hover .slider-articles-title a {
  color: var(--jaune-principal);
}

.slider-articles-pc:hover .lien-plus-infos {
  opacity: 1;
  transform: translateY(0);
}

.slider-articles-pc:hover .lien-plus-infos:hover {
  color: var(--jaune-principal);
}

/****** Slider articles MOB ******/

.slider-articles-mob .media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
}

.slider-articles-mob .media img,
.slider-articles-mob .media picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-articles-mob .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;
}

.slider-articles-mob .cta-row .bloc-boutons-audios {
  flex-direction: column;
  align-items: center;
}

.slider-articles-mob .cta-row .bloc-bouton-video {
  justify-content: center;
}

.slider-articles-mob .cta-row .texte-format {
  font-size: 16px;
}

.slider-articles-mob .overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.40);
  color: var(--blanc);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  height: 110px;
}

.slider-articles-mob .meta-row {
  display: flex;
  width: 100%;
  pointer-events: all;
}

.slider-articles-mob .meta-row .format-icone {
  padding: 6px 8px;
  font-size: 14px;
}

.slider-articles-mob .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: 14px;
}

.slider-articles-mob .date {
  font-size: 12px;
  font-weight: 600;
  color: var(--jaune-or);
}

.slider-articles-mob .content {
  padding: 0px 20px;
}

.slider-articles-mob .slider-articles-title {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 17px;
  padding-top: 20px;
}

.slider-articles-mob .slider-articles-title a {
  display: inline-block;
  font-size: 16px;
  color: inherit;
  text-transform: lowercase;
  text-decoration: none;
}

.slider-articles-mob .slider-articles-title a::first-letter {
  text-transform: uppercase;
}

.slider-articles-mob .introduction {
  font-size: 14px;
}

.slider-articles-mob .bloc-bouton-video .bouton-video,
.slider-articles-mob .bloc-boutons-audios .bouton-audio {
  padding: 5px 8px 5px 15px !important;
}

.slider-articles-mob .bloc-boutons-audios {
  gap: 15px;
  justify-content: flex-end;
}

.slider-articles-mob .bloc-boutons-audios .bouton-audio {
  width: 115px;
}

.slider-articles-mob .bloc-boutons-audios .bouton-audio .lang-text {
  font-size: 11px;
}

.slider-articles-mob .bloc-boutons-audios .bouton-audio .line::after {
  opacity: 1;
}

.slider-articles-mob .bloc-bouton-video .bouton-video .icone-svg,
.slider-articles-mob .bloc-boutons-audios .bouton-audio .icone-svg {
  width: 25px;
  height: 25px;
}

/****** Icônes dynamiques (communes) ******/

.format-icone-accueil::before {
  content: "";
  display: flex;
  width: 42px;
  height: 42px;
  background: no-repeat center / contain;
}

.format-icone-accueil.icone-blanche-video::before {
  background-image: url("../../icons/Picto-Regarder-Blanc.svg");
}

.format-icone-accueil.icone-blanche-texte::before {
  background-image: url("../../icons/Picto-Lire-larticle-Blanc.svg");
}

.format-icone-accueil.icone-blanche-audio::before {
  background-image: url("../../icons/Picto-Ecouter-Blanc.svg");
}

/****** Gestion slider articles (PC et MOB) ******/

.slider-articles-pc {
  display: flex;
  gap: 20px;
}

.slider-articles-mob {
  display: none;
}

@media (max-width: 767px) {

  .slider-articles-pc {
    display: none;
  }

  .slider-articles-mob {
    display: flex;
  }
}