/* Fenêtre commune au partage d'une carte, originale ou personnalisée. */
/* FENÊTRE DE PARTAGE : centrage, défilement et fond. */
.card-share-dialog {
  position: fixed;
  width: min(680px, calc(100% - 28px));
  max-height: 90vh;
  padding: 30px;
  overflow-y: auto;
  border: 1px solid #d2e2ee;
  border-radius: 22px;
  color: #073453;
  background: #fff;
  box-shadow: 0 24px 80px #07345333;
}

.card-share-dialog::backdrop {
  background: #0734539c;
  backdrop-filter: blur(4px);
}

.card-share-dialog h2 {
  margin: 12px 35px 22px 0;
  font: 700 30px/1.2 Georgia, serif;
  color: #073453;
}

.card-share-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #c6dce9;
  border-radius: 50%;
  color: #073453;
  background: #eff7fc;
  font-size: 26px;
}

.card-share-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 42vh;
  object-fit: contain;
  border-radius: 12px;
  background: #f3f9fe;
}

.card-share-caption {
  margin: 15px 0 8px;
  font-weight: 600;
  color: #073453;
}

.card-share-note {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.7;
  color: #425770;
}

/* ACTIONS : applications, lien direct et fichier WebP. */
.card-share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card-share-actions a,
.card-share-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 15px;
  border: 1px solid #bdd6e5;
  border-radius: 12px;
  color: #073453;
  background: #eef7fc;
  font: 600 13px/1.4 Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.card-share-actions a:hover,
.card-share-actions button:hover {
  background: #e0eff8;
}

.card-share-actions .card-share-download {
  grid-column: 1 / -1;
  color: #fff;
  background: #c34c49;
  border-color: #c34c49;
}

.card-share-status {
  min-height: 20px;
  margin: 14px 0 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: #425770;
}

/* ADAPTATION AUX ÉCRANS : tablette, mobile et impression selon le fichier. */
@media (max-width: 480px) {
  .card-share-dialog {
    padding: 23px 18px;
  }

  .card-share-dialog h2 {
    font-size: 25px;
  }

  .card-share-actions {
    grid-template-columns: 1fr;
  }
}
