/*
 * Kœurflor — Charte : Kœur ouvert (enveloppe, carte manuscrite, vocal, réactions, merci)
 * Auteur : Jacks Ngalangala
 */
/* Kœur ouvert : enveloppe, carte manuscrite, vocal */
.enveloppe-scene {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
  padding: 32px 20px;
}
.enveloppe {
  position: relative;
  width: min(320px, 82vw);
  aspect-ratio: 3 / 2.1;
  background: var(--enveloppe);
  border-radius: 16px;
  box-shadow: 0 30px 50px rgba(11, 59, 48, 0.14);
  overflow: hidden;
}
.enveloppe::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom right, transparent 49.6%, var(--enveloppe-trait) 49.8%, transparent 50.2%) left / 50% 100%
      no-repeat,
    linear-gradient(to bottom left, transparent 49.6%, var(--enveloppe-trait) 49.8%, transparent 50.2%) right / 50% 100%
      no-repeat;
}
.enveloppe-rabat {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 55%;
  background: var(--enveloppe-rabat);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top;
  transition: transform 0.6s ease;
}
.enveloppe.ouverte .enveloppe-rabat {
  transform: rotateX(180deg);
}
.sceau {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 5px solid var(--leaf);
  background: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(11, 59, 48, 0.3);
  padding: 0;
}
.carte-manuscrite {
  background: var(--surface);
  border-radius: 6px;
  border-top: 8px solid var(--petal);
  padding: 28px 24px 24px;
  box-shadow: 0 16px 30px rgba(11, 59, 48, 0.12);
  transform: rotate(-1deg);
  color: var(--ink);
}
.carte-manuscrite .ecrit {
  font: 400 30px/40px var(--manuscrit);
  overflow-wrap: anywhere;
}
.carte-manuscrite .imprime {
  font: 500 18px/28px var(--sans);
}
.carte-manuscrite .signature {
  font: 600 30px/36px var(--manuscrit);
  color: var(--petal-text);
  text-align: right;
  margin-top: 12px;
}
.ecriture-progressive {
  white-space: pre-wrap;
}
.vocal {
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 24px;
  padding: 12px 18px 12px 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.vocal-lecture {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--on-brand);
  color: var(--brand);
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.vocal-ondes {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 40px;
}
.vocal-ondes span {
  width: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
}
.vocal-ondes span.joue {
  background: var(--on-brand);
}
.vocal-duree {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.photo-bouquet {
  border-radius: 24px;
  background: var(--petal-soft);
  overflow: hidden;
}
.photo-bouquet img {
  width: 100%;
  height: auto;
}
.reactions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.reaction {
  aspect-ratio: 1;
  min-height: var(--tactile);
  border-radius: 16px;
  border: 1px solid var(--sable);
  background: var(--surface);
  font-size: 34px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.reaction[aria-pressed='true'] {
  border: 2px solid var(--brand);
  background: var(--brand-soft);
}
.choix-merci {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--sable);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  min-height: 88px;
}
.choix-merci[aria-checked='true'] {
  border: 2px solid var(--brand);
  background: var(--brand-soft);
}
.choix-merci-icone {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--petal-pale);
  color: var(--petal-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lien-pointille {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1.5px dashed var(--brand);
  border-radius: 18px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  min-height: 64px;
}
.enregistreur {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--sable);
}
.chrono {
  font: 800 32px var(--display);
  font-variant-numeric: tabular-nums;
}
