/* Popup « Bientôt ! » (Elementor popup #92, post-92.css) — chargée sur toutes les pages tant que
   site.game.released est faux. Valeurs : analyse/design-system.md §1.11, analyse/computed/interactions.json
   (popup_*), référence analyse/captures/state-desktop-popup-open.png.
   Structure : <dialog.popup> = voile plein écran (#elementor-popup-modal-92)
               > .popup__box (.dialog-widget-content + .dialog-message) > .popup__close + .popup__body (section 73ba721b). */

/* Voile : rgba(5,21,46,.64), boîte centrée ; affiché instantanément (seule la boîte est animée) */
.popup {
  position: fixed; inset: 0; z-index: 9999;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background-color: rgba(5, 21, 46, .64); color: var(--c-white);
  justify-content: center; align-items: center;
  overflow: hidden;
}
.popup[open] { display: flex; }
.popup::backdrop { background: transparent; }

/* Boîte : 495 px, fond #0F2B40, fondu d'entrée 1.2 s (entrance_animation fadeIn) ;
   max 100vw x 100vh avec défilement interne (Elementor .dialog-message) */
.popup__box {
  position: relative;
  width: 495px; max-width: 100vw; max-height: 100vh; max-height: 100dvh;
  overflow: auto; overscroll-behavior: contain;
  background-color: var(--c-bg-2);
  animation: popup-fade-in 1.2s both;
}
@keyframes popup-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .popup__box { animation: none; } }

/* Fermer : eicon-close 29 px blanc, top 0, right 3 % (15 px <= 1024 px), survol #23A455 */
.popup__close {
  position: absolute; top: 0; right: 3%; z-index: 1;
  display: flex; width: 29px; height: 29px; padding: 0; margin: 0;
  border: 0; background: none; color: var(--c-white); cursor: pointer; line-height: 1;
}
.popup__close .icon { width: 29px; height: 29px; }
.popup__close:hover { color: var(--c-green); }
@media (max-width: 1024px) { .popup__close { right: 15px; } }

/* Contenu : section 73ba721b, padding 44 px ; widgets espacés de 20 px */
.popup__body { padding: 44px; }
.popup__title {
  margin-bottom: var(--widget-gap);
  font-family: "Helvetica", Sans-serif; font-size: 55px; font-weight: 400; line-height: 1;
  text-transform: capitalize; text-align: center; color: var(--c-white);
}
/* flow-root : la marge du dernier <p> ne fusionne pas avec celle du bloc (les widgets Elementor sont des éléments flex) */
.popup__text { display: flow-root; margin-bottom: var(--widget-gap); font-size: 1.2em; font-weight: 600; }

/* Formulaire 8e54ba4 : libellé visible au-dessus du champ, bouton pleine largeur 27 px.
   20 px sous le formulaire : écart du widget suivant (bascule masquée) à l'origine. */
.popup__form { margin-bottom: var(--widget-gap); }
.popup__label { display: block; color: var(--c-white); font-size: 16px; line-height: 1; }
.popup__submit {
  min-height: 40px; padding: 0; border-radius: 8px;
  font-family: var(--font-sans); font-size: 27px; line-height: 1;
  background-color: var(--c-primary);
}
.popup__submit:hover, .popup__submit:focus { background-color: #C679A2; }
.popup__submit[disabled] { opacity: .7; cursor: wait; }

/* Verrou de défilement pendant l'ouverture (classe posée par popup.js).
   overflow:hidden sur <html> SEUL : le débordement de la racine est reporté sur la fenêtre, <body> ne devient
   pas un conteneur de défilement, donc le header sticky continue de fonctionner (le piège du README est
   overflow:hidden sur body, ou sur html + body). La largeur de la barre de défilement est compensée. */
html.has-popup { overflow: hidden; padding-inline-end: var(--popup-sbw, 0px); }
