/* ==========================================================================
   Page d'attente : visuels et logos, sans texte.
   Dossier autonome : ne dépend d'aucun des sites placés dans les sous-dossiers.
   Pour la remplacer, il suffit de changer index.html à la racine.
   ========================================================================== */
:root {
  --purple-900: #55186E;
  --purple-bg: #7E2A88;
  --red-600: #D51317;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--purple-bg);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }

/* Bandeaux ---------------------------------------------------------------- */
.bandeau { display: flex; justify-content: center; align-items: center; position: relative; z-index: 3; }
.bandeau--haut { background: var(--purple-900); padding: 14px 16px; }
.bandeau--haut img { width: clamp(150px, 16vw, 240px); }
.bandeau--bas { background: var(--red-600); gap: clamp(28px, 6vw, 90px); padding: 16px; }
.bandeau--bas img:first-child { width: clamp(70px, 7vw, 120px); }
.bandeau--bas img:last-child { width: clamp(110px, 10vw, 180px); }

/* Scène ------------------------------------------------------------------- */
.scene {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background: var(--purple-bg) center top / cover no-repeat url("../img/fond-accueil-sm.webp");
  background-image: image-set(url("../img/fond-accueil-sm.webp") 1x, url("../img/fond-accueil.webp") 2x);
}
@media (min-width: 961px) {
  .scene { background-image: image-set(url("../img/fond-accueil.webp") 1x, url("../img/fond-accueil-xl.webp") 2x); }
}

.scene > img { position: absolute; pointer-events: none; }

/* Podium en bas, fondu dans le décor */
.podium {
  left: 0; bottom: 0;
  width: 100%;
  height: 58%;
  object-fit: cover;
  object-position: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, #0000, #000 22%);
  mask-image: linear-gradient(to bottom, #0000, #000 22%);
  z-index: 1;
}

/* Billet d'invitation, au centre */
.invite {
  z-index: 2;
  left: 50%; top: 12%;
  width: clamp(240px, 32vw, 528px);
  translate: -50% 0;
  filter: drop-shadow(0 10px 18px rgba(60, 10, 80, .4));
  animation: flotte 6s ease-in-out infinite;
}

/* Décors */
.deco { z-index: 2; }
.licorne { left: 3%; top: 6%; width: clamp(90px, 17vw, 330px); transform-origin: 50% 0; animation: balance 5s ease-in-out infinite; }
.toucan  { right: 4%; top: 8%; width: clamp(70px, 12vw, 230px); transform-origin: 50% 100%; animation: balance 4.2s ease-in-out infinite reverse; }
.dragon  { left: -2%; bottom: 0; width: clamp(150px, 26vw, 500px); z-index: 3; transform-origin: 0 100%; animation: souffle 5.5s ease-in-out infinite; }

.fruit { width: clamp(34px, 5vw, 110px); animation: rebond 4s ease-in-out infinite; }
.mangue    { left: 24%; top: 52%; width: clamp(44px, 6.5vw, 140px); }
.framboise { right: 23%; top: 46%; animation-delay: -1s; }
.peche     { right: 9%; top: 58%; animation-delay: -2.2s; }
.litchi    { left: 13%; top: 40%; animation-delay: -3s; }

/* Grand écran (paysage) : billet plus haut, podium recadré sur les bouteilles */
@media (min-width: 768px) and (orientation: landscape) {
  .invite { top: 3%; width: min(26vw, 42svh, 528px); }
  .podium { height: 64%; object-position: center 70%; -webkit-mask-image: linear-gradient(to bottom, #0000, #000 10%); mask-image: linear-gradient(to bottom, #0000, #000 10%); }
}

/* Mobile : décors plus discrets, autour du billet */
@media (max-width: 767px) {
  .invite { top: 16%; width: min(78vw, 360px); }
  .licorne { left: -4%; top: 2%; }
  .toucan { right: -2%; top: 3%; }
  .mangue { left: 6%; top: 58%; }
  .framboise { right: 8%; top: 54%; }
  .peche { right: 4%; top: 70%; }
  .litchi { left: 4%; top: 46%; }
  .dragon { width: 46vw; }
}

/* Animations : légères et lentes ------------------------------------------ */
@keyframes flotte {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-12px) rotate(1deg); }
}
@keyframes balance {
  0%, 100% { transform: rotate(-3deg); }
  50%      { transform: rotate(3deg); }
}
@keyframes rebond {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-10px) rotate(6deg); }
}
@keyframes souffle {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}
@keyframes apparait { from { opacity: 0; } to { opacity: 1; } }
.scene { animation: apparait .8s ease-out both; }

/* Respecte le réglage « réduire les animations » du visiteur */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
