/*********************** BOUTONS GLOBAUX ***********************/

/****** Bouton "Choisir la langue" (simple) ******/

.bloc-bouton-choix-langue {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bouton-choix-langue {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 210px;
  height: 58px;
  border-radius: 50px;
  overflow: hidden;
  background-color: var(--rouge-clair);
}

.bouton-choix-langue a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.bouton-choix-langue .texte-format {
  font-weight: 600;
  font-size: 13px;
  color: var(--blanc);
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
}

/****** Bouton "Choisir la langue" (émission) ******/

.bouton-choix-langue-emission {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px;
  text-align: center;
  width: 180px;
  font-size: 16px;
  font-weight: 500;
  color: var(--violet-clair);
  background-color: var(--blanc);
  text-transform: uppercase;
  line-height: 1em;
  border-radius: 50px;
  padding: 0.5em 2.5em 0.5em 1em;
  overflow: hidden;
  cursor: pointer;
}

.bouton-choix-langue-emission::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-image: url(../../icons/play-violet.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
}

.bouton-choix-langue-emission .bloc-flex {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

/****** Bouton "Lire l'article" (simple) ******/

.bloc-bouton-lire-article {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bouton-lire-article {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 210px;
  height: 58px;
  border-radius: 50px;
  overflow: hidden;
  background-color: var(--rouge-clair);
}

.bouton-lire-article .texte-format {
  font-weight: 600;
  font-size: 13px;
  color: var(--blanc);
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
}

/****** Bouton vidéo (simple) ******/

.bloc-bouton-video {
  display: flex;
}

.bouton-video-simple {
  display: inline-flex;
  align-items: center;
  padding: 10px 10px 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  width: auto;
  position: relative;
  overflow: hidden;
  background-color: var(--violet-clair);
  gap: 8px;
}

.bouton-video-simple .texte-format {
  font-weight: 600;
  font-size: 13px;
  color: var(--blanc);
  white-space: nowrap;
}

.bouton-video-simple .icone-svg {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bouton-video-simple .icone-svg path {
  fill: var(--blanc);
}

/****** Boutons audio (simple) ******/

.bloc-boutons-audios-simple {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.bouton-audio-simple {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  width: auto;
  transition: background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bouton-audio-simple .lang-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--blanc);
  transition: color 0.3s ease;
}

.bouton-audio-simple .line {
  display: block;
  position: relative;
}

.bouton-audio-simple .line::after {
  content: attr(data-full);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  white-space: nowrap;
}

.bouton-audio-simple .icone-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-left: 8px;
  transition: fill 0.3s ease;
}

.bouton-audio-simple .icone-svg path {
  fill: var(--blanc);
}

.bouton-audio-simple.bg-rouge {
  background-color: var(--rouge-clair);
}

.bouton-audio-simple.bg-rouge:hover {
  background-color: var(--violet-clair);
}

/****** Bouton vidéo (animé) ******/

.bouton-video {
  display: inline-flex;
  align-items: center;
  padding: 10px 10px 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  width: auto;
  position: relative;
  overflow: hidden;
  background-color: var(--blanc);
  gap: 8px;
}

.bouton-video .texte-format {
  font-weight: 600;
  font-size: 13px;
  color: var(--noir);
  white-space: nowrap;
}

.bouton-video .icone-svg {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bouton-video .icone-svg path {
  fill: var(--violet-clair);
}

/****** Boutons audio (animé) ******/

.bloc-boutons-audios {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.bouton-audio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  width: 100px;
  transition: width 0.3s ease, background-color 0.3s ease, opacity 0.3s ease, color 0.3s ease, fill 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bouton-audio .lang-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--noir);
  transition: color 0.3s ease;
}

.bouton-audio .line {
  display: block;
  position: relative;
}

.bouton-audio .line::after {
  content: attr(data-full);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.bouton-audio:hover {
  width: 150px;
}

.bouton-audio:hover .line::after {
  opacity: 1;
}

.bouton-audio .icone-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: fill 0.3s ease;
}

/****** Usages des boutons ******/

/* Boutons article : header */

.boutons-article-header .bouton-audio.bg-blanc {
  width: 85px;
  background-color: var(--blanc);
  padding: 5px 5px 5px 15px;
}

.boutons-article-header .bouton-audio.bg-blanc .lang-text {
  color: var(--violet-clair);
  font-size: 15px;
}

.boutons-article-header .bouton-audio.bg-blanc .icone-svg {
  width: 28px;
  height: 28px;
}

.boutons-article-header .bouton-audio.bg-blanc .icone-svg path {
  fill: var(--violet-clair);
}

/* Boutons article : phrase */

.boutons-article-phrase .bouton-audio.bg-rouge {
  width: 85px;
  background-color: var(--rouge-clair);
  padding: 5px 5px 5px 15px;
}

.boutons-article-phrase .bouton-audio.bg-rouge .lang-text {
  color: var(--blanc);
  font-size: 15px;
}

.boutons-article-phrase .bouton-audio.bg-rouge .icone-svg {
  width: 28px;
  height: 28px;
}

.boutons-article-phrase .bouton-audio.bg-rouge .icone-svg path {
  fill: var(--blanc);
}

/* Boutons article : vignette */

.boutons-article-vignette .bouton-audio.bg-rouge {
  width: 85px;
  background-color: var(--rouge-clair);
  padding: 5px 5px 5px 15px;
}

.boutons-article-vignette .bouton-audio.bg-rouge .lang-text {
  color: var(--blanc);
  font-size: 15px;
}

.boutons-article-vignette .bouton-audio.bg-rouge .icone-svg {
  width: 28px;
  height: 28px;
}

.boutons-article-vignette .bouton-audio.bg-rouge .icone-svg path {
  fill: var(--blanc);
}

/* Hover des boutons article */

.boutons-article-header .bouton-audio.survole,
.boutons-article-phrase .bouton-audio.survole,
.boutons-article-vignette .bouton-audio.survole {
  opacity: 1 !important;
}

.boutons-article-header .bouton-audio.attenue,
.boutons-article-phrase .bouton-audio.attenue,
.boutons-article-vignette .bouton-audio.attenue {
  opacity: 0.5 !important;
}