/* ================================================================
   Pop-up « livraison offerte » (collecte d'e-mails).
   <dialog> natif : piège du focus, Échap et fond gérés par le navigateur.
   Tokens repris de main.css.
   ================================================================ */

.offre {
  width: min(520px, calc(100vw - 2 * var(--e-2)));
  max-height: calc(100dvh - 2 * var(--e-2));
  padding: 0;
  border: 1px solid var(--c-or);
  background: var(--c-blanc);
  color: var(--c-encre);
  box-shadow: 0 24px 60px rgba(18, 16, 14, .18);
}

.offre::backdrop {
  background: rgba(18, 16, 14, .55);
}

.offre__interieur {
  position: relative;
  padding: var(--e-5) var(--e-4) var(--e-4);
  text-align: center;
}

.offre__titre {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: var(--t-h3);
  line-height: 1.2;
  margin: var(--e-2) 0 var(--e-2);
}

.offre__corps {
  margin: 0 auto var(--e-3);
  max-width: 38ch;
  font-size: var(--t-petit);
  line-height: 1.65;
  color: var(--c-encre-doux);
}

/* Zone tactile 44px minimum. */
.offre__fermer {
  position: absolute;
  top: var(--e-1);
  right: var(--e-1);
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--c-encre);
  cursor: pointer;
}

.offre__fermer:focus-visible {
  outline: 1px solid var(--c-or);
  outline-offset: 2px;
}

.offre .fluentform { text-align: left; }

@media (prefers-reduced-motion: no-preference) {
  .offre[open] { animation: offre-entree var(--d-moyen) var(--courbe); }
  @keyframes offre-entree {
    from { opacity: 0; transform: translateY(12px); }
  }
}
