/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Cacher et positionner la modale */
#heart-modal.modal {
  position: fixed;
  width: 100%;
  height: 100%;
  inset: 0;
  z-index: 6000; /* Plus haut que l'end_screen_container */
  background: rgba(0,0,0,0.25); /* léger fond sombre */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Par défaut : visible si pas .hidden */
}
#heart-modal.modal.hidden {
  display: none;
}

/* ====== MODALE COEUR / SOUTENIR ====== */
.heart-big-modal {
  width: min(100vw, 56.25vh);   /* 100vh × 9/16 = 56.25vw */
  height: min(100vh, 177.78vw); /* 100vw × 16/9 = 177.78vw */
  aspect-ratio: 9 / 16;
  padding-left: 15px;
  padding-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  container-type: inline-size;
}


.heart-modal-content {
  width: 100%;
  aspect-ratio: 9.3 / 9;
  background: var(--color-popup);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 7px;
  padding-bottom: 7px;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.14);
  font-family: 'Nunito', Arial, sans-serif;
  animation: fade-in 0.0s ease-out;
}

.heart-modal-header {
  width: 100%;
  display: flex;
  padding: 5px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--color-border);
}

.heart-modal-header-text {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.heart-emoji {
  font-size: clamp(8px, 9cqw, 70px);
  margin-right: 8px;
}

.heart-modal-title {
  width: 100%;
  font-size: clamp(8px, 6cqw, 70px);
  font-weight: 700;
  color: #d14d36;
  flex: 1;
  margin: 0;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.heart-modal-close-btn {
  width: clamp(20px, 9cqw, 50px);        /* Ou clamp(28px, 8cqw, 44px) si tu veux du responsive ! */
  height: clamp(20px, 9cqw, 50px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-close);
  border: none;
  border-radius: 7px;
  padding: 0;         /* Mets à zéro pour un carré parfait */
  cursor: pointer;
  transition: background 0.15s;
  margin-left: 8px;   /* Garde la marge si tu veux séparer du titre */
}

.heart-modal-close-btn .modal-close {
  width: clamp(12px, 7cqw, 44px);
  height: clamp(12px, 7cqw, 44px);
  display: block;
  transition: transform 0.28s cubic-bezier(.62,.18,.21,.97);
}
.heart-modal-close-btn:hover .modal-close {
  transform: rotate(90deg);
}
.heart-modal-close-btn:active {
  transform: scale(0.95);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.heart-modal-body {
  width: 100%;
  aspect-ratio: 11 / 9;
  color: #33363f;
  font-size: 1.05rem;
  text-align: justify;
  display: flex;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.heart-block-message {
  font-size: clamp(8px, 5cqw, 50px);
  color: var(--color-secondary);
  line-height: 1.2;
}

.heart-block-coffee {
  width: 100%;
  aspect-ratio: 50 / 9;
  padding-top: 5px;
  padding-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heart_btn {
  height: 100%;
  aspect-ratio: 40/9;
  font-family: inherit;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heart_btn.coffee {
  background: #ffd966;
  color: #704100;
  border: none;
  font-weight: 700;
  font-size: clamp(8px, 5cqw, 50px);
  text-decoration: none;
  transition: background 0.16s, box-shadow 0.16s;
  box-shadow: 0 2px 8px rgba(240,180,50,0.08);
}
.heart_btn.coffee:hover {
  background: #ffea9c;
}

.heart-block-share {
  width: 100%;
  aspect-ratio: 50 / 9;
  padding-top: 5px;
  padding-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heart_btn.share {
  background: var(--color-green);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: clamp(8px, 5cqw, 50px);
  text-decoration: none;
  transition: background 0.16s, box-shadow 0.16s;
  box-shadow: 0 2px 8px rgba(240,180,50,0.08);
}
.heart_btn.share:hover {
  background: #57b957;
}

.heart_btn {
  transition: background 0.15s, transform 0.13s;
}
.heart_btn:hover,
.heart_btn:active {
  transform: scale(0.95);
}
.heart_btn:not(:active) {
  transform: scale(1);
}

.heart-block-thanks {
  width: 100%;
  aspect-ratio: 68.8 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heart-thanks {
  color: #6aaa64;
  font-weight: 700;
  font-size: clamp(8px, 5cqw, 50px);
}

/* Petite anim sympa */
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* {
  outline: 1px dashed red;
}