/* Villa Gaïa & Bungalows — page de lancement (à charger après site.css)
   Le jardin vu depuis la varangue : un avant-toit blanc et sa frise de lambrequin
   au-dessus de la soirée, le compte à rebours en Gilda Display, l'inscription en vert nuit. */

.page-lancement { --toit-h: 64px; }
@media (max-width: 760px) { .page-lancement { --toit-h: 56px; } }

/* Lien d'évitement, visible seulement au clavier */
.evitement { position: absolute; left: -10000px; top: 12px; z-index: 100; background: var(--vert-nuit); color: var(--blanc); padding: 10px 14px; border-radius: 4px; font-size: .9rem; }
.evitement:focus { left: 12px; }

/* ---------- Avant-toit ---------- */
.avant-toit {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  height: var(--toit-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: var(--marge);
  background: var(--blanc); color: var(--encre);
}
.avant-toit::after {
  content: ''; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16' viewBox='0 0 28 16'%3E%3Cpath d='M0 0h28v5a14 11 0 0 1-28 0z' fill='%23FBFAF7'/%3E%3C/svg%3E") repeat-x top left;
  pointer-events: none;
}
.avant-toit__lieu { color: var(--encre-2); }
.avant-toit__logo {
  grid-column: 2; align-self: start;
  width: 84px; height: 84px; margin-top: 10px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blanc-pur);
  box-shadow: 0 12px 26px -14px rgba(22, 48, 42, .7);
  position: relative; z-index: 1;
}
.avant-toit__logo img { width: 74px; height: 74px; }
.langue { grid-column: 3; justify-self: end; display: inline-flex; gap: 2px; }
.langue button {
  background: none; border: 0; cursor: pointer;
  min-width: 44px; min-height: 44px; padding: 0 8px;
  font-size: .8rem; letter-spacing: .12em; font-weight: 500; color: var(--encre-2);
  transition: color .25s;
}
.langue button:hover { color: var(--encre); }
.langue button[aria-pressed="true"] { color: var(--encre); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .45em; }
@media (max-width: 760px) {
  .avant-toit__lieu { visibility: hidden; }
  .avant-toit__logo { width: 70px; height: 70px; margin-top: 8px; }
  .avant-toit__logo img { width: 62px; height: 62px; }
}

/* ---------- Héros ---------- */
.lancement { background: var(--vert-nuit); }
.lancement .hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.lancement .hero__media::after {
  background:
    linear-gradient(to right, rgba(22,48,42,.55) 0%, rgba(22,48,42,.15) 55%, rgba(22,48,42,0) 100%),
    linear-gradient(to bottom, rgba(22,48,42,.2) 0%, rgba(22,48,42,0) 28%, rgba(22,48,42,.2) 55%, rgba(22,48,42,.8) 100%);
}
.lancement__texte { padding-top: calc(var(--toit-h) + 96px); gap: 18px; }
.lancement__texte h1 { max-width: 13ch; font-size: clamp(2.6rem, 7vw, 6rem); }
.lancement sup, .lancement-amis sup { font-size: .55em; line-height: 0; vertical-align: .62em; }
.lancement__bas {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  gap: 24px clamp(24px, 5vw, 72px);
  padding-bottom: calc(clamp(24px, 5vh, 56px) + env(safe-area-inset-bottom));
}
.lancement__action { display: grid; gap: 12px; justify-items: end; text-align: right; }
.lancement__date { font-size: .9rem; color: rgba(251,250,247,.85); max-width: 30ch; }
@media (max-width: 860px) {
  .lancement__bas { grid-template-columns: 1fr; }
  .lancement__action { justify-items: start; text-align: left; }
}

/* ---------- Compte à rebours ---------- */
.compteur {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 760px;
  border-top: 1px solid rgba(251,250,247,.4);
}
.compteur__unite {
  display: grid; gap: 8px; align-content: start;
  padding: 16px 0 0 clamp(12px, 2vw, 26px);
  border-left: 1px solid rgba(251,250,247,.4);
}
.compteur__unite:first-child { padding-left: 0; border-left: 0; }
.compteur__nombre {
  display: block;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 6.4rem); line-height: .95;
  font-variant-numeric: lining-nums tabular-nums;
}
.compteur__libelle { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: rgba(251,250,247,.82); }
.compteur__nombre.bascule { animation: bascule .7s var(--lent); }
@keyframes bascule { from { opacity: .2; transform: translateY(-.14em); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .compteur__libelle { font-size: .66rem; letter-spacing: .08em; } }
@media (prefers-reduced-motion: reduce) { .compteur__nombre.bascule { animation: none; } }

/* Sans JavaScript, la date suffit ; une fois ouvert, le compte à rebours s'efface */
html:not(.js) .lancement__compte { display: none; }
.est-ouvert .lancement__compte, .est-ouvert .lancement__date { display: none; }
.est-ouvert .lancement__bas { grid-template-columns: 1fr; }
.est-ouvert .lancement__action { justify-items: start; text-align: left; }

/* ---------- Inscription ---------- */
.lancement-amis .communaute__grille > div:first-child { align-content: start; }
.lancement-amis .abonnement p { color: var(--encre-2); }
.lancement-amis .abonnement p.erreur { color: #9A3A2E; }
.lancement-amis .abonnement p.reussi { color: var(--vert); }

/* ---------- Pied de page ---------- */
.pied-lancement { background: var(--vert-nuit); color: var(--sable-nuit); padding-bottom: calc(32px + env(safe-area-inset-bottom)); font-size: .82rem; }
.pied-lancement .col {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  padding-top: 28px; border-top: 1px solid rgba(207,201,178,.25);
}
.pied-lancement__marque { display: flex; align-items: center; gap: 14px; color: var(--blanc); font-size: .95rem; line-height: 1.35; }
.pied-lancement__lieu { color: var(--sable-nuit); font-size: .82rem; }
.pied-lancement .pied__logo { width: 64px; height: 64px; flex: none; }
.pied-lancement .pied__logo img { width: 56px; height: 56px; }

.insecable { white-space: nowrap; }
