@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(polices/dm-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(polices/dm-sans-latin-600-normal.woff2) format('woff2'); }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: 'DM Sans', system-ui, sans-serif; color: #2A1F2D; background: #3A1726; }

/* Fond : la photo du salon (WebP si le navigateur le gère, sinon JPEG), avec un voile prune pour la lisibilité. */
.scene {
  position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; padding: 40px 16px 72px; overflow: hidden;
  background-color: #6D2E46;
  background-image: url(photo-accueil.jpg);
  background-image: image-set(url(photo-accueil.webp) type("image/webp"), url(photo-accueil.jpg) type("image/jpeg"));
  background-size: cover; background-position: 65% center; background-repeat: no-repeat;
}
.voile { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(58, 23, 38, .72) 0%, rgba(109, 46, 70, .45) 55%, rgba(58, 23, 38, .25) 100%); }

/* Carte claire : même gris très clair que le fond du logo, pour qu'il s'y fonde. */
.carte {
  position: relative; width: 100%; max-width: 460px; background: #F7F7F7; border-radius: 26px;
  padding: 26px 28px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px;
  box-shadow: 0 24px 60px rgba(30, 10, 20, .45);
}
h1 { margin: 0; line-height: 0; }
.logo { width: 230px; max-width: 70%; height: auto; }
.surtitre { margin: 4px 0 0; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: #8E4A63; font-weight: 600; }
.accroche { margin: 0; font-size: 16px; line-height: 1.55; color: #4A3D45; }
.bouton {
  margin-top: 8px; display: inline-block; padding: 14px 28px; border-radius: 999px; background: #6D2E46; color: #fff;
  font-weight: 600; text-decoration: none; box-shadow: 0 8px 22px rgba(109, 46, 70, .35); transition: transform .15s ease, background .15s ease;
}
.bouton:hover, .bouton:focus-visible { transform: translateY(-2px); background: #4E1F32; }
.bouton:focus-visible { outline: 3px solid #D9C7CF; outline-offset: 3px; }
.decompte { margin: 0; font-size: 13.5px; color: #6B5F66; min-height: 1.4em; }
.pied { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .75); }
#marque { cursor: default; user-select: none; -webkit-user-select: none; padding: 6px; }
/* Sur grand écran, la carte se place à gauche pour laisser voir la scène du salon. */
@media (min-width: 900px) {
  .scene { align-items: flex-start; padding-left: 7vw; background-position: right center; }
  .voile { background: linear-gradient(90deg, rgba(58, 23, 38, .75) 0%, rgba(58, 23, 38, .45) 40%, rgba(58, 23, 38, .05) 75%); }
}
@media (max-width: 480px) { .carte { padding: 22px 20px 20px; border-radius: 22px; } .logo { width: 200px; } }
@media (prefers-reduced-motion: reduce) { .bouton { transition: none; } }
