/* Villa Solea — l'été en plein écran.

   Direction : sable chaud, nuit bleue en ponctuation, un cuivre de
   couchant pour les prix et sur-titres. Italiana, capitale fine de
   palace, porte les titres ; Outfit fait le texte. Aucune des autres
   démos ne partage ces polices ni cette palette. La composition
   appartient au film : la page est une visite en vol. */

@font-face {
  font-family: 'Italiana';
  src: url('polices/italiana-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('polices/outfit-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --sable: #F1EAE0;
  --nuit:  #131A22;
  --soleil:#C4854B;
  --doux:  #8A8177;

  --display: 'Italiana', Georgia, serif;
  --courant: 'Outfit', system-ui, sans-serif;
  --sortie: cubic-bezier(0.22, 1, 0.36, 1);
  --marge: clamp(1.25rem, 5vw, 6rem);
}

* { margin: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--sable);
  color: var(--nuit);
  font-family: var(--courant);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.0938rem);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

a { color: inherit; }

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.015em;
}

.sur-titre {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--soleil);
}

.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.7rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.95rem; font-weight: 500;
  text-decoration: none;
  transition: transform 0.25s var(--sortie), background-color 0.25s ease, color 0.25s ease;
}

.bouton--plein { background: var(--nuit); color: var(--sable); border-color: var(--nuit); }

@media (hover: hover) and (pointer: fine) {
  .bouton:hover { transform: translateY(-2px); }
}

.js [data-monte] { opacity: 0; transform: translateY(1.1rem); }
.js [data-monte].est-la {
  opacity: 1; transform: none;
  transition: opacity 0.8s ease, transform 0.8s var(--sortie);
}

.js [data-lignes] { opacity: 0; transform: translateY(1.1rem); }
.js [data-lignes].est-la {
  opacity: 1; transform: none;
  transition: opacity 0.9s ease, transform 0.9s var(--sortie);
}

.js [data-voile] img { clip-path: inset(100% 0 0 0); }
.js [data-voile].est-la img {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--sortie);
}

/* ── L'en-tête ─────────────────────────────────────────────── */

.entete {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--marge);
  color: #fff;
  transition: color 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}

.entete.est-posee {
  color: var(--nuit);
  background: color-mix(in srgb, var(--sable) 88%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(19, 26, 34, 0.08);
}

.entete__nom {
  font-family: var(--display);
  font-size: 1.5rem;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.entete__tel {
  font-size: 0.92rem; font-weight: 500;
  text-decoration: none;
  padding: 0.55rem 1.15rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Le vol ────────────────────────────────────────────────── */

/* Cinq écrans et demi de course : 6,6 secondes de vol s'y déroulent
   au rythme du geste. */
.vol { height: 550svh; background: var(--nuit); }

.vol__colle {
  position: sticky; top: 0;
  height: 100svh;
  overflow: hidden;
}

.vol__colle video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* L'affiche en fond tant que le film n'est pas prêt, et pour
     toujours sans JavaScript : même cadre, aucun saut. */
  background: var(--nuit) url('film/affiche.jpg') center / cover no-repeat;
}

.vol__mots {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  padding: 0 var(--marge) clamp(3.5rem, 9vh, 6rem);
  color: #fff;
  /* Le voile qui tient le texte lisible sur n'importe quel
     photogramme, sans éteindre le film. */
  background: linear-gradient(to top, rgba(19, 26, 34, 0.55), transparent 45%);
}

.temps { grid-area: 1 / 1; max-width: 34rem; }

.temps h1 { font-size: clamp(3.4rem, 10vw, 8rem); margin-top: 0.9rem; }
.temps h2 { font-size: clamp(2.2rem, 6vw, 4.5rem); margin-top: 0.9rem; }

.temps .dit {
  margin-top: 1rem;
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 12px rgba(19, 26, 34, 0.5);
}

.temps .bouton { margin-top: 1.6rem; color: #fff; }

/* Le script relaie les temps ; sans lui ils se suivent, empilés. */
.js .temps {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 0.5s ease, transform 0.5s var(--sortie);
  pointer-events: none;
}
.js .temps.est-la { opacity: 1; transform: none; pointer-events: auto; }

html:not(.js) .vol { height: auto; }
html:not(.js) .vol__colle { height: auto; min-height: 100svh; }
html:not(.js) .vol__mots { position: relative; display: block; padding-top: 40svh; }
html:not(.js) .temps + .temps { margin-top: 2.5rem; }

.vol__geste {
  position: absolute;
  right: var(--marge);
  bottom: clamp(1.2rem, 4vh, 2.2rem);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Le raccord ────────────────────────────────────────────── */

/* `#39250c` n'est pas choisi à l'œil : c'est la couleur moyenne du bas
   de la dernière image du vol, relevée par
   `ffmpeg … -vf "crop=in_w:in_h*0.18:0:in_h*0.82,scale=1:1"`.
   La vidéo se fond ainsi dans la page au lieu de s'y couper. */
.raccord {
  height: clamp(6rem, 18svh, 12rem);
  background: linear-gradient(to bottom, #39250c, var(--sable));
}

/* ── La villa en chiffres ──────────────────────────────────── */

.villa {
  padding: clamp(5rem, 12vw, 9rem) var(--marge);
  text-align: center;
}

.villa__phrase {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.6vw, 3.8rem);
  line-height: 1.15;
  max-width: 26ch;
  margin-inline: auto;
}

.chiffres {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 56rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
}

.chiffres strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--soleil);
}

.chiffres span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--doux);
}

/* ── Les espaces ───────────────────────────────────────────── */

.espaces {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  padding: 0 var(--marge) clamp(5rem, 12vw, 9rem);
  max-width: 75rem;
  margin-inline: auto;
}

.espace {
  width: min(100%, 52rem);
  height: min(64svh, 32rem);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.espace--droite { justify-self: end; }

.espace figcaption {
  position: absolute;
  left: 1.4rem; bottom: 1.2rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(19, 26, 34, 0.6);
}

.espace figcaption span {
  color: var(--soleil);
  margin-right: 0.7rem;
}

/* ── La semaine ────────────────────────────────────────────── */

.sejour {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  background: var(--nuit);
  color: var(--sable);
  padding: clamp(5rem, 12vw, 8rem) var(--marge);
}

.sejour h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); margin-top: 0.9rem; }

.sejour__dit { margin-top: 1.2rem; max-width: 46ch; color: rgba(241, 234, 224, 0.78); }

.sejour__prix {
  margin-top: 1.8rem;
  font-size: 1.05rem;
  color: rgba(241, 234, 224, 0.7);
}

.sejour__prix strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.2rem;
  color: var(--soleil);
  margin: 0 0.3rem;
}

.sejour__vue {
  height: min(70svh, 34rem);
  border-radius: 18px;
  overflow: hidden;
}

@media (max-width: 860px) {
  .sejour { grid-template-columns: 1fr; }
  .sejour__vue { height: 46svh; order: -1; }
}

/* ── Le lieu ───────────────────────────────────────────────── */

.lieu {
  padding: clamp(5rem, 12vw, 9rem) var(--marge);
  max-width: 56rem;
}

.lieu h2 { font-size: clamp(2.2rem, 5.5vw, 4rem); margin-top: 0.9rem; }
.lieu__dit { margin-top: 1.2rem; max-width: 52ch; color: var(--doux); }

/* ── Réserver ──────────────────────────────────────────────── */

.reserver {
  text-align: center;
  padding: 0 var(--marge) clamp(5rem, 12vw, 9rem);
}

.reserver h2 { font-size: clamp(2.6rem, 7vw, 5rem); }
.reserver p { margin-top: 1rem; max-width: 50ch; margin-inline: auto; color: var(--doux); }

.reserver__actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.8rem; margin-top: 1.8rem;
}

/* ── Le pied ───────────────────────────────────────────────── */

.pied {
  background: var(--nuit);
  color: rgba(241, 234, 224, 0.75);
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) var(--marge) 1.8rem;
}

.pied__nom {
  font-family: var(--display);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  color: var(--sable);
}

.pied__infos { margin-top: 0.8rem; font-size: 0.95rem; }
.pied__infos a { color: inherit; font-weight: 500; }

.pied__mention {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: rgba(241, 234, 224, 0.45);
}

/* ── Mouvement réduit ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-monte], .js [data-lignes], .js .temps {
    opacity: 1; transform: none; transition: none;
  }
  .js [data-voile] img { clip-path: none; }
}
