/* Popin d'annonce : AME Conso devient Avenir Conso */

.popin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 19, 16, .6);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  z-index: 99998;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  box-sizing: border-box;
}
.popin-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}
.popin-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  padding: 38px 32px 30px;
  text-align: center;
  font-family: Muli, Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;
  -webkit-transform: translateY(24px) scale(.97);
  transform: translateY(24px) scale(.97);
  opacity: 0;
  transition: -webkit-transform .4s cubic-bezier(.2, .8, .2, 1), transform .4s cubic-bezier(.2, .8, .2, 1), opacity .4s ease;
  box-sizing: border-box;
}
.popin-overlay.is-visible .popin-card {
  -webkit-transform: translateY(0) scale(1);
  transform: translateY(0) scale(1);
  opacity: 1;
}
.popin-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #F6F6F4;
  color: #6C6956;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease;
  padding: 0;
}
.popin-close:hover,
.popin-close:focus {
  background: #CC0000;
  color: #FFFFFF;
  outline: none;
}
.popin-badge {
  display: inline-block;
  background: #FCEBEB;
  color: #CC0000;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 20px;
}
.popin-logo {
  margin: 0 auto 24px;
  max-width: 300px;
}
.popin-logo-inner {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 13.624%; /* rapport hauteur/largeur (100/734) du visuel "mediation-conso-sans-bulle-espace-gauche" */
}
.popin-logo-wordmark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  z-index: 1;
}
.popin-flip {
  position: absolute;
  top: 0;
  left: 0;
  width: 22.343%; /* largeur de la bulle (164px) rapportee a la largeur totale (734px) */
  height: 100%;
  -webkit-perspective: 900px;
  perspective: 900px;
  z-index: 2; /* doit passer au-dessus du visuel "wordmark", sinon son fond blanc masque la bulle */
}
.popin-flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-transition: -webkit-transform .9s cubic-bezier(.5, .05, .15, 1);
  transition: transform .9s cubic-bezier(.5, .05, .15, 1);
}
.popin-flip-face {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
}
.popin-flip-face img {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.popin-flip-back {
  -webkit-transform: rotateX(180deg);
  transform: rotateX(180deg);
}
.popin-title {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.3;
  color: #2D2C24;
  font-weight: 700;
}
.popin-title strong {
  color: #CC0000;
}
.popin-text {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: #6C6956;
}
.popin-url {
  margin: 0 0 26px;
  font-family: Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 16px;
  font-weight: 700;
  color: #141310;
  letter-spacing: .01em;
  min-height: 1.4em;
  transition: color .3s ease;
}
.popin-url.is-new {
  color: #CC0000;
}
.popin-url-noise {
  color: #A6A491;
}
.popin-action {
  display: inline-block;
  background: #CC0000;
  color: #FFFFFF !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 34px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background .2s ease, -webkit-transform .2s ease;
  transition: background .2s ease, transform .2s ease;
}
.popin-action:hover,
.popin-action:focus {
  background: #A80000;
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
  outline: none;
}

@media (max-width: 480px) {
  .popin-card { padding: 30px 20px 24px; }
  .popin-title { font-size: 19px; }
  .popin-logo { max-width: 120px; }
  .popin-logo-inner { padding-top: 60.976%; /* rapport hauteur/largeur (100/164) de la bulle seule */ }
  .popin-logo-wordmark { display: none; }
  .popin-flip { width: 100%; }
  .popin-url { font-size: 14px; }
}
