/* ══════════════════════════════════════════════════════════════════════
   La demande de proposition, en pop-up

   Le bouton « Recevoir ma proposition » de la page 16 ouvre ce panneau.

   Il est posé en dehors de `.deck`, donc hors de la transformation
   d'échelle de la scène : sans cela, le formulaire rétrécirait avec la
   présentation et deviendrait illisible dès que la fenêtre n'est pas à
   la bonne taille. Les champs gardent 16 px, ce qui évite aussi que les
   navigateurs mobiles ne zooment tout seuls à la mise au point.
   ══════════════════════════════════════════════════════════════════════ */

.prop{
  position:fixed; inset:0; z-index:120;
  display:grid; place-items:center; padding:24px;
  background:rgba(7,26,60,.58);
  opacity:0; visibility:hidden; transition:opacity .22s ease;
}
.prop.est-ouvert{ opacity:1; visibility:visible; }

.prop__boite{
  position:relative; width:min(560px, 100%); max-height:calc(100vh - 48px);
  overflow:auto; background:#fff; border-radius:18px;
  box-shadow:0 8px 24px rgba(7,26,60,.18), 0 32px 80px rgba(7,26,60,.26);
  transform:translateY(14px) scale(.985); transition:transform .24s cubic-bezier(.22,.61,.36,1);
}
.prop.est-ouvert .prop__boite{ transform:none; }

.prop__x{
  position:absolute; right:14px; top:14px; width:36px; height:36px;
  display:grid; place-items:center; border:0; border-radius:50%;
  background:none; color:var(--grey); cursor:pointer;
}
.prop__x:hover{ background:var(--paper); color:var(--navy); }
.prop__x svg{
  width:18px; height:18px; fill:none; stroke:currentColor;
  stroke-width:2.2; stroke-linecap:round;
}

.prop__haut{ padding:30px 34px 0; }
.prop__sur{
  margin:0; font-size:11px; font-weight:800; letter-spacing:.14em;
  text-transform:uppercase; color:var(--rose);
}
.prop__t{
  margin:9px 0 0; font-size:25px; line-height:1.16; font-weight:800;
  letter-spacing:-.022em; color:var(--navy);
}
.prop__d{
  margin:9px 0 0; font-size:14px; font-weight:500; line-height:1.45; color:var(--grey);
}

.prop__form{ padding:22px 34px 30px; }
.prop__duo{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.prop__ch{ margin:0 0 14px; }
.prop__ch label{
  display:block; margin:0 0 6px;
  font-size:12.5px; font-weight:700; color:var(--navy); letter-spacing:-.005em;
}
.prop__ch label i{ font-style:normal; color:var(--rose); }
.prop__ch input{
  width:100%; height:46px; padding:0 14px;
  border:1px solid var(--line-3); border-radius:10px; background:#fff;
  font-family:var(--font); font-size:16px; color:var(--navy);
  transition:border-color .16s, box-shadow .16s;
}
.prop__ch input::placeholder{ color:var(--muted); font-size:14px; }
.prop__ch input:focus{
  outline:0; border-color:var(--navy); box-shadow:0 0 0 3px rgba(7,26,60,.08);
}
.prop__ch input:user-invalid{ border-color:var(--rose); }
.prop__err{
  margin:5px 0 0; min-height:0; font-size:12px; font-weight:600; color:var(--rose);
}
.prop__err:empty{ display:none; }

.prop__envoi{
  width:100%; height:50px; margin-top:6px; border:0; border-radius:25px;
  background:var(--rose); color:#fff; cursor:pointer;
  font-family:var(--font); font-size:15px; font-weight:700; letter-spacing:-.01em;
  box-shadow:0 6px 18px rgba(255,11,79,.26);
  transition:background .16s, transform .12s;
}
.prop__envoi:hover{ background:#e00945; }
.prop__envoi:active{ transform:translateY(1px); }
.prop__envoi:disabled{ opacity:.7; cursor:wait; }

/* Spinner inline dans le bouton d'envoi */
.demo-prop__spin{
  display:none; width:16px; height:16px; margin-left:8px;
  border:2px solid rgba(255,255,255,.4);
  border-top-color:#fff;
  border-radius:50%;
  animation:demo-spin .7s linear infinite;
}
.demo-prop__envoi--charge .demo-prop__spin{ display:inline-block; }
@keyframes demo-spin{ to{ transform:rotate(360deg); } }

.prop__note{
  margin:14px 0 0; font-family:var(--font-alt); font-size:11.5px; line-height:1.5;
  color:var(--muted); text-align:center;
}

/* ─────────────────────── L'accusé de réception ─────────────────────── */
.prop__merci{ display:none; padding:40px 34px 38px; text-align:center; }
.prop.est-envoye .prop__haut,
.prop.est-envoye .prop__form{ display:none; }
.prop.est-envoye .prop__merci{ display:block; }

.prop__coche{
  width:62px; height:62px; margin:0 auto 18px; border-radius:50%;
  display:grid; place-items:center;
  background:var(--rose-pale); color:var(--rose);
}
.prop__coche svg{
  width:30px; height:30px; fill:none; stroke:currentColor;
  stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round;
}
.prop__merci h3{
  margin:0; font-size:22px; font-weight:800; letter-spacing:-.02em; color:var(--navy);
}
.prop__merci p{ margin:10px auto 0; max-width:360px; font-size:14px; color:var(--grey); line-height:1.5; }
.prop__merci b{ color:var(--navy); }
.prop__fermer{
  margin-top:24px; height:44px; padding:0 26px; border:1px solid var(--line-3);
  border-radius:22px; background:#fff; color:var(--navy); cursor:pointer;
  font-family:var(--font); font-size:14px; font-weight:700;
}
.prop__fermer:hover{ border-color:var(--navy); }

@media (max-width:560px){
  .prop{ padding:12px; }
  .prop__haut{ padding:26px 22px 0; }
  .prop__form, .prop__merci{ padding-left:22px; padding-right:22px; }
  .prop__duo{ grid-template-columns:1fr; gap:0; }
  .prop__t{ font-size:21px; }
}
@media (prefers-reduced-motion:reduce){
  .prop, .prop__boite, .prop__envoi{ transition:none; }
  .prop__boite{ transform:none; }
}
@media print{ .prop{ display:none !important; } }
