/* DG — Label GARAN. Fichier statique, servi tel quel, hors du compilateur du thème. */

/* Le fichier du label réserve 12 % de blanc à gauche : la marge négative aligne le « 5 »
   sur le nom de la ligne, sans toucher au fichier. */
.dggl-ligne {
  --dggl-largeur: 220px;
  display: block;
  max-width: 100%;
  margin: 2px 0 0 calc(var(--dggl-largeur) * -.12);
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
  cursor: pointer;
}

.dggl-ligne img {
  display: block;
  width: var(--dggl-largeur);
  max-width: 100%;
  height: auto;
}

.dggl-ligne:focus-visible {
  outline: 2px solid #161616;
  outline-offset: 3px;
}

.dggl-fond {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, .55);
}

.dggl-pop {
  position: fixed;
  z-index: 2001;
  box-sizing: border-box;
  border: 1px solid #e4e4e4;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .16);
  animation: dggl-entree .14s ease-out;
}

@keyframes dggl-entree {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dggl-pop {
    animation: none;
  }
}

.dggl-fond[hidden],
.dggl-pop[hidden],
.dggl-svg[hidden] {
  display: none;
}

.dggl-pop--survol {
  width: 340px;
  padding: 12px;
}

.dggl-pop--ouvert {
  top: 50%;
  left: 50%;
  width: min(460px, calc(100vw - 24px), calc((100vh - 104px) * .95));
  padding: 44px 12px 12px;
  transform: translate(-50%, -50%);
}

.dggl-svg {
  aspect-ratio: 269.29 / 283.46;
}

.dggl-svg svg {
  display: block;
  width: 100%;
  height: 100%;
}

.dggl-lien {
  display: block;
  margin-top: 10px;
  color: #161616;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dggl-fermer {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: #161616;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.dggl-fermer:focus {
  outline: none;
}

.dggl-fermer:focus-visible {
  outline: 1px solid #8c8c8c;
  outline-offset: -5px;
}

.dggl-pop--survol .dggl-fermer {
  display: none;
}
