/* Accueil (22/10/2026) : bandeau des réservations ouvertes, offres « réservez tôt », coucher du soleil,
   photo vivante de l'ouverture et plage dessinée (scène de 14 h). Mouvement réduit : tout est immobile (fin du fichier).
   Les animations s'arrêtent quand leur partie de la page n'est pas à l'écran (classe « hors-vue », accueil.js). */

/* ---------- Bandeau « Réservations 2027 ouvertes » (ouverture) ---------- */
.ruban { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; }
.ruban a { text-decoration: none; }
.ruban-lien {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 16px 6px 13px;
  border-radius: 999px; background: rgba(10, 25, 48, .86); color: #fff; font: 700 15px/1.2 var(--f-texte); letter-spacing: .01em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 8px 24px rgba(0, 0, 0, .25);
}
.ruban-lien:hover { background: rgba(10, 25, 48, .97); }
.ruban-point { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #5BD16A; }
.ruban-point::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #5BD16A; opacity: 0; animation: pouls 2.2s ease-out infinite; }
@keyframes pouls { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.ruban-offre {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 15px; border-radius: 999px;
  background: var(--soleil); color: var(--encre); font: 700 14px/1.2 var(--f-texte); box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.ruban-offre:hover { background: #F7B85F; }

/* ---------- Offres « réservez tôt » (infos pratiques) ---------- */
.offres-titre { display: block; margin-top: 10px; font-weight: 700; }
.offres-liste { margin: 6px 0 8px; padding-left: 20px; display: grid; gap: 6px; }
.offres-liste strong { padding: 0 6px; border-radius: 6px; background: rgba(244, 162, 58, .3); white-space: nowrap; }
.offres-conditions { display: block; font-size: 15px; opacity: .85; }

/* ---------- Coucher du soleil (ouverture) ---------- */
.coucher { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255, 255, 255, .92); }
.coucher-icone { position: relative; flex: none; width: 22px; height: 12px; overflow: hidden; }
.coucher-icone::before { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--soleil); box-shadow: 0 0 10px rgba(244, 162, 58, .8); }
.coucher-icone::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .85); }

/* ---------- Compte à rebours « réservez tôt » (ouverture) ---------- */
.rebours { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: #fff; }
.rebours-texte { min-width: 0; }
.rebours-icone { position: relative; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--soleil); }
.rebours-icone::before { content: ""; position: absolute; left: calc(50% - 1px); top: 2px; width: 2px; height: 6px; border-radius: 1px; background: var(--soleil); }
.rebours-icone::after { content: ""; position: absolute; left: 50%; top: calc(50% - 1px); width: 4px; height: 2px; border-radius: 1px; background: var(--soleil); }

/* ---------- Photo vivante (ouverture) ---------- */
/* Le calque reprend exactement le cadrage de la photo (object-fit: cover, object-position 45 % 50 %) grâce aux
   unités de conteneur : les reflets restent sur la mer et le halo sur le soleil, quelle que soit la taille de l'écran.
   Rien n'est ajouté au paysage : seulement la lumière (soleil qui palpite, mer qui scintille). */
.ouverture-film { container-type: size; }
.calque { display: none; }
@supports (width: 1cqw) {
  .calque {
    --r: 1.7775; /* 1534 / 863 : photo des grands écrans */
    --w: max(100cqw, calc(100cqh * var(--r)));
    --h: max(100cqh, calc(100cqw / var(--r)));
    display: block; position: absolute; pointer-events: none;
    width: var(--w); height: var(--h);
    left: calc((100cqw - var(--w)) * .45); top: calc((100cqh - var(--h)) * .5);
  }
}
.halo {
  position: absolute; left: 97%; top: 2%; width: 34%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 238, 196, .9), rgba(255, 204, 120, .38) 45%, rgba(255, 170, 80, 0) 76%);
  mix-blend-mode: screen; animation: halo 7s ease-in-out infinite alternate;
}
@keyframes halo { from { opacity: .5; transform: scale(.94); } to { opacity: .95; transform: scale(1.06); } }
.eclat {
  position: absolute; width: clamp(9px, 1.15cqw, 17px); aspect-ratio: 1; translate: -50% -50%; opacity: 0;
  mix-blend-mode: screen; animation: scintille 3.4s ease-in-out infinite;
}
.eclat::before, .eclat::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(closest-side, #FFFFFF, rgba(255, 242, 205, .75) 40%, rgba(255, 242, 205, 0));
}
.eclat::before { transform: scaleX(.2); }
.eclat::after { transform: scaleY(.2); }
@keyframes scintille {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  40% { opacity: 1; transform: scale(1) rotate(25deg); }
  55% { opacity: .35; transform: scale(.7) rotate(35deg); }
}
/* Reflets sur la mer de la photo des grands écrans (en % de la photo) : plus nombreux vers le soleil, en haut à droite. */
.e1 { left: 70%; top: 24%; }                          .e2 { left: 74%; top: 26%; animation-delay: .7s; animation-duration: 3s; }
.e3 { left: 78%; top: 24.5%; animation-delay: 1.3s; } .e4 { left: 82%; top: 26.5%; animation-delay: 2.1s; animation-duration: 3.9s; }
.e5 { left: 66%; top: 21%; animation-delay: .3s; }    .e6 { left: 60%; top: 19%; animation-delay: 1.8s; animation-duration: 2.9s; }
.e7 { left: 10%; top: 30%; animation-delay: 2.6s; }   .e8 { left: 22%; top: 24%; animation-delay: 1s; animation-duration: 4.2s; }
.e9 { left: 35%; top: 34%; animation-delay: 3s; }     .e10 { left: 48%; top: 28%; animation-delay: .5s; animation-duration: 3.7s; }
.e11 { left: 54%; top: 38%; animation-delay: 2.3s; }  .e12 { left: 40%; top: 20%; animation-delay: 1.6s; animation-duration: 3.1s; }
.e13 { left: 28%; top: 44%; animation-delay: 2.9s; }  .e14 { left: 14%; top: 52%; animation-delay: 1.2s; animation-duration: 4s; }
@media (max-width: 760px) {
  .calque { --r: .7497; } /* 647 / 863 : photo des téléphones */
  .halo { left: 92%; top: 1%; width: 72%; }
  .e1 { left: 20%; top: 24%; }  .e2 { left: 34%; top: 20%; }  .e3 { left: 48%; top: 27%; }  .e4 { left: 62%; top: 22%; }
  .e5 { left: 76%; top: 28%; }  .e6 { left: 88%; top: 33%; }  .e7 { left: 14%; top: 40%; }  .e8 { left: 30%; top: 36%; }
  .e9 { left: 46%; top: 40%; }  .e10 { left: 60%; top: 34%; } .e11 { left: 72%; top: 38%; } .e12 { left: 8%; top: 52%; }
  .e13 { left: 26%; top: 48%; } .e14 { left: 54%; top: 46%; }
}
.ouverture.hors-vue .ouverture-film, .ouverture.hors-vue .calque *, .ouverture.hors-vue .ruban-point::after { animation-play-state: paused; }

/* ---------- Plage dessinée (scène de 14 h) ---------- */
#plage { --ciel-haut: #7FD0EE; --ciel-bas: #FFF4DC; }
.cadre--dessin { background: #BFE8F5; }
.dessin { position: absolute; inset: 0; overflow: hidden; --horizon: 46%; --rivage: 64%; }
.dessin svg { position: absolute; display: block; overflow: visible; }
.d-ciel { position: absolute; inset: 0; background: linear-gradient(180deg, #5FC0E8 0%, #A6DDF2 calc(var(--horizon) - 12%), #E8F7FB var(--horizon)); }
.d-soleil { right: 20%; top: 6%; height: 18%; aspect-ratio: 1; }
.d-rayons { transform-box: fill-box; transform-origin: center; animation: tourne 60s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.d-nuage { left: 0; aspect-ratio: 240 / 100; animation: nuage 110s linear infinite; }
.d-nuage.n1 { top: 11%; height: 9%; animation-delay: -45s; }
.d-nuage.n2 { top: 24%; height: 6.5%; opacity: .9; animation-duration: 80s; animation-delay: -12s; }
@keyframes nuage { from { transform: translateX(-30vw); } to { transform: translateX(110vw); } }
.d-mouette { left: 0; top: 18%; height: 2.4%; aspect-ratio: 60 / 24; animation: plane 34s linear infinite; }
.d-mouette.m2 { top: 23%; height: 1.9%; animation-duration: 42s; animation-delay: -18s; }
@keyframes plane { 0% { transform: translate(-10vw, 0); } 50% { transform: translate(50vw, -2vh); } 100% { transform: translate(110vw, 1vh); } }
.d-ailes { transform-box: fill-box; transform-origin: center; animation: battement .5s ease-in-out infinite alternate; }
@keyframes battement { to { transform: scaleY(.55); } }

.d-mer {
  position: absolute; left: 0; right: 0; top: var(--horizon); height: calc(var(--rivage) - var(--horizon) + 4%); overflow: hidden;
  background: linear-gradient(180deg, #0A86B5 0%, #1BA6CF 45%, #5CC9DF 100%);
}
.dessin .d-vague { left: 0; width: 200%; height: 14%; animation: houle 16s linear infinite; }
.d-vague.v1 { top: 12%; animation-duration: 24s; }
.d-vague.v2 { top: 40%; animation-duration: 17s; animation-direction: reverse; }
.d-vague.v3 { top: 68%; animation-duration: 11s; }
@keyframes houle { to { transform: translateX(-50%); } }
.d-reflet { position: absolute; width: 4%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .85); opacity: 0; animation: reflet 3.2s ease-in-out infinite; }
.d-reflet.r1 { left: 12%; top: 22%; }
.d-reflet.r2 { left: 34%; top: 55%; animation-delay: .8s; }
.d-reflet.r3 { left: 58%; top: 30%; animation-delay: 1.6s; }
.d-reflet.r4 { left: 76%; top: 60%; animation-delay: 2.2s; }
.d-reflet.r5 { left: 90%; top: 18%; animation-delay: 1.1s; }
@keyframes reflet { 0%, 100% { opacity: 0; transform: scaleX(.4); } 50% { opacity: .9; transform: scaleX(1); } }

.d-kite { aspect-ratio: 120 / 300; animation: glisse 16s ease-in-out infinite alternate; }
.d-kite.k1 { left: 13%; bottom: calc(100% - var(--horizon) - 7%); height: 30%; }
.d-kite.k2 { left: 41%; bottom: calc(100% - var(--horizon) - 9%); height: 25%; animation-duration: 21s; animation-delay: -6s; }
.d-kite.k3 { left: 86%; bottom: calc(100% - var(--horizon) - 6%); height: 30%; animation-duration: 18s; animation-delay: -11s; }
@keyframes glisse { from { transform: translateX(-4vw); } to { transform: translateX(4vw); } }
.d-aile { transform-box: view-box; transform-origin: 60px 262px; animation: aile 7s ease-in-out infinite alternate; }
.d-kite.k2 .d-aile { animation-duration: 9s; }
.d-kite.k3 .d-aile { animation-duration: 6s; animation-delay: -2s; }
@keyframes aile { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }

.d-paddle { left: 44%; bottom: calc(100% - var(--rivage) + 1%); height: 11%; aspect-ratio: 160 / 120; animation: flotte 3.6s ease-in-out infinite alternate; }
@keyframes flotte { from { transform: translateY(0) rotate(-1.5deg); } to { transform: translateY(6%) rotate(1.5deg); } }

.d-sable { position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--rivage) - 2%); }
.dessin .d-rivage { inset: 0; width: 100%; height: 100%; }
.d-ecume, .d-mouille { animation: ecume 5s ease-in-out infinite alternate; }
@keyframes ecume { from { transform: translateY(0); } to { transform: translateY(9px); } }

.d-oyat { aspect-ratio: 1; }
.d-oyat.o1 { left: -1%; bottom: 2%; height: 16%; }
.d-oyat.o2 { left: 6%; bottom: 0; height: 11%; }
.d-oyat.o3 { left: 80%; bottom: 20%; height: 10%; }
.d-brins { transform-box: fill-box; transform-origin: 50% 100%; animation: oyat 4.5s ease-in-out infinite alternate; }
.d-oyat.o2 .d-brins { animation-delay: -1.5s; }
.d-oyat.o3 .d-brins { animation-delay: -3s; }
@keyframes oyat { from { transform: rotate(-3deg); } to { transform: rotate(4deg); } }

.d-chateau { left: 41%; bottom: 11%; height: 19%; aspect-ratio: 300 / 180; }
.d-bras-pelle { transform-box: view-box; transform-origin: 72px 118px; animation: pelle 1.1s ease-in-out infinite alternate; }
@keyframes pelle { from { transform: rotate(-22deg); } to { transform: rotate(8deg); } }
.d-seau { transform-box: view-box; transform-origin: 232px 120px; animation: seau 2.4s ease-in-out infinite alternate; }
@keyframes seau { from { transform: rotate(0deg); } to { transform: rotate(-14deg); } }
.d-drapeau { transform-box: view-box; transform-origin: 151px 43px; animation: drapeau .9s ease-in-out infinite alternate; }
@keyframes drapeau { to { transform: scaleX(.8) skewY(6deg); } }

.d-coureur { left: 54%; bottom: 9%; height: 50%; aspect-ratio: 240 / 400; }
.d-cerf-volant { transform-box: view-box; transform-origin: 184px 296px; animation: cerf 3.2s ease-in-out infinite alternate; }
@keyframes cerf { from { transform: rotate(-7deg); } to { transform: rotate(5deg); } }
.d-queue { transform-box: view-box; transform-origin: 70px 130px; animation: queue 1.4s ease-in-out infinite alternate; }
@keyframes queue { from { transform: skewX(-6deg); } to { transform: skewX(6deg); } }
.d-course { animation: rebond .36s ease-in-out infinite alternate; }
@keyframes rebond { to { transform: translateY(-5px); } }
.d-jambe { transform-box: view-box; transform-origin: 201px 344px; animation: jambe .36s ease-in-out infinite alternate; }
.d-jambe.j2 { animation-direction: alternate-reverse; }
@keyframes jambe { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }

.d-tongs { left: 63%; bottom: 6%; height: 6%; aspect-ratio: 120 / 70; }

/* Ganivelle et portillon : le portillon s'ouvre quand la scène occupe tout l'écran (classe « portillon-ferme »
   retirée par accueil.js) et se referme quand elle s'en va. Sans script ou en mouvement réduit : il reste ouvert. */
.d-ganivelle { position: absolute; right: -6%; bottom: -1%; height: 24%; aspect-ratio: 520 / 230; }
.dessin .d-cloture { inset: 0; width: 100%; height: 100%; }
.dessin .d-portillon {
  left: 38.46%; top: 24.3%; width: 22.7%; height: 73.9%;
  transform-origin: 0 50%; transform: perspective(500px) rotateY(-62deg);
  transition: transform 1.5s cubic-bezier(.34, 1.4, .52, 1) .25s;
}
.portillon-ferme .dessin .d-portillon { transform: perspective(500px) rotateY(0deg); transition-duration: .4s; transition-delay: 0s; }

.scene--dessin.hors-vue .dessin *, .scene--dessin.hors-vue .dessin *::before, .scene--dessin.hors-vue .dessin *::after { animation-play-state: paused; }

/* Téléphones : composition en hauteur, les personnages au centre. */
@media (max-width: 760px) {
  /* Le récit monte plus tard que sur les autres scènes : le dessin reste visible sur les 4/5 de l'écran. */
  #plage .recit { margin-top: -18svh; }
  .dessin { --horizon: 26%; --rivage: 40%; }
  .d-soleil { right: 5%; top: 6%; height: 10%; }
  .d-nuage.n1 { top: 12%; height: 5%; }
  .d-nuage.n2 { top: 19%; height: 3.8%; }
  .d-mouette { top: 15%; }
  .d-mouette.m2 { top: 19%; }
  .d-kite.k1 { left: 3%; height: 17%; }
  .d-kite.k2 { display: none; }
  .d-kite.k3 { left: 72%; height: 18%; }
  .d-paddle { left: 52%; height: 6%; }
  /* La barre du bas (« Voir les disponibilités », téléphone) couvre environ 10 % de l'écran : rien d'important dessous. */
  .d-chateau { left: 3%; bottom: 33%; height: 9.5%; }
  .d-coureur { left: 47%; bottom: 32%; height: 25%; }
  .d-tongs { left: 39%; bottom: 31%; height: 3.5%; }
  .d-ganivelle { right: auto; left: 50%; translate: -50% 0; bottom: 16%; height: 16%; }
  .d-oyat.o1 { bottom: 14%; height: 11%; }
  .d-oyat.o2 { bottom: 13%; height: 8%; }
  .d-oyat.o3 { left: auto; right: -2%; bottom: 15%; height: 9%; }
}

/* ---------- Mouvement réduit : tout est immobile, le portillon est ouvert ---------- */
@media (prefers-reduced-motion: reduce) {
  .calque { display: none !important; }
  .ruban-point::after { animation: none; }
  .dessin *, .dessin *::before, .dessin *::after { animation: none !important; }
}

/* Infos pratiques : chaque réponse reste sous sa question, même quand la case voisine est plus haute (offres). */
.infos > div { align-content: start; }
/* Mouvement réduit : nuages et mouettes à leur place, immobiles. */
@media (prefers-reduced-motion: reduce) {
  .d-nuage.n1 { left: 28%; }
  .d-nuage.n2 { left: 60%; }
  .d-mouette.m1 { left: 42%; }
  .d-mouette.m2 { left: 50%; }
}
