/* Annonce de vente — reprise de la DA de la pancarte : vert bouteille profond,
   or ambré. Pensé mobile d'abord : la page est ouverte au scan d'un QR, donc
   presque toujours sur un téléphone, souvent en extérieur et en plein soleil —
   d'où les gros contrastes et le bouton d'appel surdimensionné.
   Aucune police ni ressource externe : rien à télécharger en 4G. */

:root {
  --vert-fond: #04281a;
  --vert-carte: #073a25;
  --vert-clair: #0b5233;
  --or: #ffb43d;
  --or-clair: #ffe1a0;
  --or-sombre: #b85c06;
  --creme: #f7edd2;
  --texte: #eae3d2;
  --texte-doux: #b7c9bd;
}

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

/* Indispensable : toute règle `display` d'auteur l'emporte sur l'attribut hidden.
   Sans ceci, un bloc masqué faute de donnée (le lien e-mail, le bouton d'appel)
   réapparaît en ligne. */
[hidden] { display: none !important; }

body {
  background: var(--vert-fond);
  color: var(--texte);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

h1, h2, .kicker, .prix {
  font-family: Georgia, "Bookman Old Style", "Times New Roman", serif;
}

/* ── Bandeau brouillon ─────────────────────────────────────────────────── */
.brouillon {
  background: #7a2e0b;
  color: #ffe1a0;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  text-align: center;
  font-weight: 600;
}

/* ── En-tête ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 2.2rem 1.25rem 1.8rem;
  text-align: center;
  background:
    radial-gradient(120% 100% at 50% 0%, var(--vert-clair) 0%, var(--vert-fond) 72%);
  border-bottom: 3px solid var(--or-sombre);
  overflow: hidden;
}

.hero-contenu { position: relative; z-index: 2; }

/* ── Couverture photo (mode « affiche ») ───────────────────────────────── */
.hero.avec-photo {
  min-height: min(78vh, 660px);
  display: flex;
  align-items: flex-end;
  padding: 3rem 1.25rem 2rem;
}

.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 42%;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s ease, transform 6s ease-out;
}
.hero.avec-photo .hero-img { opacity: 1; transform: scale(1); }

/* Voile en dégradé : sans elle, un titre blanc devient illisible dès que le
   ciel de la photo est clair. */
.hero-voile {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg,
    rgba(2, 20, 14, 0.62) 0%,
    rgba(2, 20, 14, 0.18) 34%,
    rgba(2, 20, 14, 0.55) 72%,
    rgba(2, 20, 14, 0.92) 100%);
}
.hero.avec-photo .hero-voile { opacity: 1; }

.hero.avec-photo .hero-contenu { width: 100%; }

/* Titre façon couverture : capitales fines, très espacées */
.hero.avec-photo h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-transform: uppercase;
  /* Espacement réduit sur petit écran : à 0.42em, « ARISTON » sortait du cadre
     — le titre tenait tant qu'il s'appelait « RIVA ». Il s'élargit au-delà de
     700 px, là où la place existe. */
  letter-spacing: 0.18em;
  text-indent: 0.18em;              /* compense l'espacement ajouté après la dernière lettre */
  font-size: clamp(1.9rem, 10vw, 5.4rem);
  line-height: 1.12;
  overflow-wrap: break-word;
  color: #fff;
  margin-top: 0.4rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55);
  /* Le titre apparaît, puis dérive très lentement — un aller simple de 16 px
     sur 30 s, alterné. On ne le voit pas bouger, on sent juste que ça respire. */
  animation: monte 1.2s cubic-bezier(0.2, 0.7, 0.3, 1) both,
             derive 30s ease-in-out 1.2s infinite alternate;
}

@keyframes derive {
  from { transform: translate3d(-8px, 0, 0); }
  to   { transform: translate3d(8px, 0, 0); }
}

.hero.avec-photo .kicker {
  font-size: clamp(0.85rem, 3.4vw, 1.05rem);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
}

.hero.avec-photo .sous-titre {
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: clamp(0.68rem, 2.9vw, 0.82rem);
  margin-top: 0.9rem;
}

.kicker {
  font-size: clamp(2.4rem, 13vw, 4.2rem);
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  /* Reflet : une bande claire traverse lentement l'or, comme la lumière sur du
     métal poli. C'est le gradient lui-même qui se déplace — donc pas de repeint
     de mise en page, juste de la composition. */
  background: linear-gradient(100deg,
    #C9660A 0%, #E8850F 16%, #FFB43D 32%, #FFF6DC 44%,
    #FFD98A 52%, #FFB43D 66%, #E8850F 82%, #C9660A 100%);
  background-size: 100% 100%;
  background-position: 50% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Reflet animé retiré : sur un objet de collection, un or qui scintille fait
     bijouterie. L'or reste, il ne bouge plus. */
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.3));
}

/* Apparition à l'ouverture.
   ⚠️ Chaque règle déclare son animation EN ENTIER (raccourci `animation`).
   Une liste partielle (animation-name ici, iteration-count là) avait fait
   hériter `infinite` au fondu du titre : il clignotait en boucle. */
.hero .kicker {
  animation: monte 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.hero h1 { animation: monte 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) 0.08s both; }

@keyframes monte {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

h1 {
  margin-top: 0.6rem;
  font-size: clamp(1.35rem, 5.5vw, 2rem);
  font-weight: 700;
  color: var(--creme);
}

.sous-titre { color: var(--texte-doux); font-size: 1rem; margin-top: 0.2rem; }

/* « Prix sur demande » : pas d'or animé, pas de gras appuyé — une ligne calme,
   très espacée, qui invite à décrocher son téléphone plutôt qu'à comparer. */
.prix {
  margin-top: 1.4rem;
  font-size: clamp(1.1rem, 4.4vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--or);
  font-variant-numeric: oldstyle-nums;   /* millésimes et montants en chiffres anciens */
}

.lieu { margin-top: 0.4rem; color: var(--texte-doux); font-size: 0.95rem; }

/* ── Blocs ─────────────────────────────────────────────────────────────── */
/* Marges volontairement larges : sur ce type d'objet, c'est le vide autour du
   contenu qui signale la valeur, pas l'ornement. */
.bloc { padding: 2.8rem 1.4rem; max-width: 880px; margin: 0 auto; }

h2 {
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  color: var(--or);
  opacity: 0.9;
  margin-bottom: 1.4rem;
}

/* ── Liste des biens (affichée dès qu'il y en a plusieurs) ─────────────── */
.liste-biens {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.carte-bien {
  /* colonne + height:100% : une carte sans photo garde la hauteur de sa voisine
     et son prix reste calé en bas, sinon la grille part de travers */
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--vert-carte);
  border: 1px solid rgba(255, 180, 61, 0.28);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.carte-bien img { display: block; width: 100%; height: 170px; object-fit: cover; }
.carte-corps { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.carte-corps h3 { font-family: Georgia, serif; font-size: 1.2rem; color: var(--creme); }
.carte-lieu { color: var(--texte-doux); font-size: 0.9rem; margin-top: 0.15rem; }
.carte-prix {
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--or);
}

.retour-ligne { max-width: 900px; margin: 0 auto; padding: 1rem 1.25rem 0; }
.retour { color: var(--or); text-decoration: none; font-size: 0.95rem; }
.retour:hover { text-decoration: underline; }

/* ── Carrousel ─────────────────────────────────────────────────────────── */
.carousel { position: relative; border-radius: 14px; overflow: hidden; background: #04231a; }

.piste {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.piste::-webkit-scrollbar { display: none; }
.piste:focus-visible { outline: 2px solid var(--or); outline-offset: -2px; }

.slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  height: clamp(300px, 56vh, 560px);
  overflow: hidden;
}

/* Les photos alternent portrait et paysage. Plutôt que de rogner (on perdrait
   la moitié d'un portrait) ou de laisser des bandes noires, on remplit le cadre
   avec la photo elle-même, floutée et assombrie. */
.slide-fond {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(1.25) brightness(0.5);
  transform: scale(1.15);
}

.slide img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Ken Burns très lent sur la photo affichée : le cadre respire, on ne le voit
   pas bouger mais l'image cesse d'être figée. */
.slide.est-active img { animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.06) translate3d(0, -1.2%, 0); }
}

.car-fleche {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  /* Pas de backdrop-filter : il escamotait le chevron, le compteur et la légende
     posés par-dessus (constaté sur Chrome à jour). Un fond opaque suffit. */
  background: rgba(4, 35, 26, 0.78);
  color: var(--or-clair);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}
.car-fleche:hover { background: rgba(4, 35, 26, 0.85); transform: translateY(-50%) scale(1.08); }
.car-fleche:disabled { opacity: 0.25; cursor: default; }
.car-prec { left: 10px; }
.car-suiv { right: 10px; }

.car-compteur {
  position: absolute;
  right: 12px;
  bottom: 10px;
  background: rgba(4, 35, 26, 0.8);
  color: var(--or-clair);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  z-index: 2;                       /* au-dessus du voile de la légende */
}

/* Légende posée SUR la photo, sur un voile dégradé : elle nomme ce qu'on
   regarde sans pousser le reste de la page vers le bas à chaque changement. */
.car-legende {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 2.4rem 1rem 0.9rem;
  text-align: center;
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  background: linear-gradient(180deg, rgba(2, 20, 14, 0) 0%, rgba(2, 20, 14, 0.72) 68%);
  pointer-events: none;
}
.car-legende .lettre {
  display: inline-block;
  animation: lettre-monte 0.42s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
@keyframes lettre-monte {
  from { opacity: 0; transform: translateY(0.5em); }
  to   { opacity: 1; transform: none; }
}

/* Barre de navigation : une jauge + un titre par photo */
.car-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 0.9rem;
}
.car-nav li { flex: 1 1 33.333%; min-width: 0; }
@media (min-width: 700px) { .car-nav li { flex: 1 1 0; } }

.car-nav button {
  display: block;
  width: 100%;
  padding: 0.55rem 0.4rem;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  color: rgba(255, 225, 160, 0.5);
  font: inherit;
  transition: color 0.35s ease, transform 0.3s ease;
}
.car-nav button:hover { transform: translateY(-2px); }
.car-nav button[aria-current="true"] { color: var(--or-clair); }

.car-jauge {
  display: block;
  height: 2px;
  background: rgba(255, 225, 160, 0.2);
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.car-jauge i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--or-sombre), var(--or-clair));
  transition: width 0.12s linear, opacity 0.35s ease;
}
.car-nav button[aria-current="true"] .car-jauge { background: rgba(255, 225, 160, 0.34); }

.car-nom {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 700px) { .car-nom { font-size: 0.68rem; } }

/* ── Vidéo ─────────────────────────────────────────────────────────────── */
video { width: 100%; border-radius: 12px; background: #000; display: block; }

/* ── Fiche technique ───────────────────────────────────────────────────── */
/* Filets fins plutôt que pastilles : on lit un cartouche de catalogue, pas une
   fiche produit. */
.fiche { display: grid; grid-template-columns: auto 1fr; gap: 0; }
.fiche dt,
.fiche dd {
  padding: 0.72rem 0;
  border-top: 1px solid rgba(255, 225, 160, 0.14);
}
.fiche dt {
  color: var(--texte-doux);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-right: 1.6rem;
}
.fiche dd {
  font-weight: 400;
  text-align: right;
  font-variant-numeric: oldstyle-nums;
}

#description p { line-height: 1.75; }
#description p + p { margin-top: 1.1rem; }

.atouts { list-style: none; }
.atouts li {
  color: var(--or-clair);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  padding: 0.55rem 0 0.55rem 1.4rem;
  border-top: 1px solid rgba(255, 225, 160, 0.14);
  position: relative;
}
.atouts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 7px;
  height: 1px;
  background: var(--or);
}

/* ── Contact ───────────────────────────────────────────────────────────── */
.contact { text-align: center; padding-bottom: 2.4rem; }
.contact-nom { font-size: 1.1rem; margin-bottom: 0.9rem; }

.bouton-appel {
  display: block;
  background: linear-gradient(180deg, var(--or-clair) 0%, var(--or) 45%, var(--or-sombre) 100%);
  color: #2a1400;
  text-decoration: none;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.bouton-appel-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.bouton-appel-num { display: block; font-size: 1.7rem; letter-spacing: 0.04em; }

.bouton-mail {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--or);
  text-decoration: underline;
  font-size: 0.95rem;
}

footer {
  padding: 1.4rem 1.25rem 2rem;
  text-align: center;
  color: var(--texte-doux);
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 700px) {
  .hero { padding: 3rem 2rem 2.4rem; }
  .bouton-appel { display: inline-block; padding: 1rem 2.6rem; }
  .hero.avec-photo h1 { letter-spacing: 0.38em; text-indent: 0.38em; }
  .bloc { padding: 3.4rem 2rem; }
}

/* ── Révélation au scroll ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.vu { opacity: 1; transform: none; }

/* ── Mouvement réduit : on coupe tout ce qui bouge ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .slide.est-active img { animation: none; }
  .piste { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  /* sans l'animation, le gradient resterait figé sur une position quelconque */
  .kicker, .prix { background-position: 50% 50%; }
}
