/* Luxury One Collection · Private Listing Club
   Marine profond + or. Une seule échelle d'espacement (base 8 px),
   trois tailles de texte, une seule logique d'alignement : centré. */

:root {
  --nuit: #060b14;
  --marine: #0a111d;
  --or: #c9a96e;
  --or-clair: #e4cf9f;
  --or-degrade: linear-gradient(180deg, #e4cf9f 0%, #c9a96e 100%);
  --texte: #f5f5f7;
  --texte-2: #9aa3b2;
  --texte-3: #6b7486;
  --trait: rgba(255, 255, 255, .08);

  /* Trois tailles, pas une de plus */
  --t1: clamp(40px, 6.4vw, 80px);
  --t2: clamp(19px, 1.7vw, 24px);
  --t3: 13px;

  /* Échelle 8 px */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s8: 64px; --s12: 96px;
  --section: 128px;
  --gouttiere: 16px;

  --police: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
@media (min-width: 734px) { :root { --gouttiere: 32px; --section: 200px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--nuit); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.verrou { overflow: hidden; }
body {
  margin: 0; background: var(--nuit); color: var(--texte);
  font-family: var(--police); font-size: 17px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; }
p, h1, h2, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(201, 169, 110, .35); color: #fff; }

/* ---------- Texte ---------- */
.titre {
  font-size: var(--t1); line-height: 1.05; font-weight: 600;
  letter-spacing: -.04em; color: var(--texte);
  max-width: 18ch; margin-inline: auto; text-wrap: balance;
}
.sous {
  margin-top: var(--s3); font-size: var(--t2); line-height: 1.4; font-weight: 400;
  letter-spacing: -.01em; color: var(--texte-2);
  max-width: 30em; margin-inline: auto; text-wrap: balance;
}
.sur {
  margin-bottom: var(--s2); font-size: var(--t3); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--texte-2);
}
/* L'or : un seul rôle, l'accent. Même dégradé partout. */
.or {
  background: var(--or-degrade); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------- Bouton : un seul, identique partout ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 var(--s3); border: 0; border-radius: 980px;
  background: var(--or-degrade); color: var(--nuit);
  font-size: 15px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap;
  cursor: pointer; transition: filter .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn:focus-visible, .marque:focus-visible, .fermer:focus-visible { outline: 2px solid var(--or-clair); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Icônes : 64 px, trait 1, or ---------- */
.ico, .mono { fill: none; stroke: var(--or); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.ico { width: var(--s8); height: var(--s8); margin-inline: auto; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 64px;
  background: rgba(6, 11, 20, .5);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: background .4s var(--ease), border-color .4s var(--ease);
}
.nav.colle { background: rgba(6, 11, 20, .72); border-bottom-color: var(--trait); }
.nav-in {
  height: 100%; max-width: 1040px; margin: 0 auto; padding: 0 var(--gouttiere);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
}
.marque { display: flex; align-items: center; gap: var(--s1); color: var(--texte); text-decoration: none; font-size: var(--t3); font-weight: 500; letter-spacing: .02em; border-radius: 4px; }
.mono { width: var(--s3); height: var(--s3); stroke-width: 1.75; }

/* ---------- Sections ---------- */
main { display: block; }
.contenu { position: relative; max-width: 1040px; margin: 0 auto; padding: 0 var(--gouttiere); text-align: center; }
.bloc, .photo {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: var(--section) 0;
}
.bloc > .contenu, .photo > .contenu { width: 100%; }
.bloc {
  background: radial-gradient(56% 48% at 50% 50%, rgba(22, 38, 64, .42) 0%, rgba(10, 17, 29, 0) 72%);
}
.action { margin-top: var(--s6); }

/* Photos : même traitement pour les deux, plein cadre, même voile */
.photo { overflow: hidden; isolation: isolate; }
.photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--nuit) 0%, rgba(6, 11, 20, .6) 22%, rgba(6, 11, 20, .6) 78%, var(--nuit) 100%);
}
.hero .photo-img { object-position: 50% 60%; }
.cercle .photo-img { object-position: 50% 50%; }

/* Trois accès */
.trio { margin-top: var(--s12); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.trio li { display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.trio span, .chiffres li span:last-child { font-size: var(--t2); color: var(--texte-2); letter-spacing: -.01em; line-height: 1.4; }

/* Chiffres */
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.chiffres li { display: flex; flex-direction: column; align-items: center; gap: var(--s1); }
.nombre { font-size: var(--t1); line-height: 1.05; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }

/* Dernière section : le monogramme en tête */
.bloc .contenu > .ico { margin-bottom: var(--s4); }

/* ---------- Pied ---------- */
.pied { border-top: 1px solid var(--trait); }
.pied-in {
  max-width: 1040px; margin: 0 auto; padding: var(--s4) var(--gouttiere) var(--s6);
  display: flex; flex-direction: column; align-items: center; gap: var(--s1);
  text-align: center; font-size: 12px; color: var(--texte-3);
}

/* ---------- Mouvement ---------- */
.js .revele { opacity: 0; transform: translateY(32px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js .revele.vu { opacity: 1; transform: none; }
.js .apparait { opacity: 0; transform: translateY(16px); animation: monte 1.4s var(--ease) forwards; }
.js .apparait:nth-child(2) { animation-delay: .12s; }
.js .apparait:nth-child(3) { animation-delay: .28s; }
.js .apparait:nth-child(4) { animation-delay: .44s; }
.js .photo-img { animation: recul 2.4s var(--ease) both; }
@keyframes monte { to { opacity: 1; transform: none; } }
@keyframes recul { from { transform: scale(1.06); } to { transform: none; } }

/* ---------- Modale ---------- */
dialog {
  width: min(560px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  padding: 0; border: 0; background: transparent; color: var(--texte); overflow: visible;
}
dialog::backdrop { background: rgba(3, 6, 12, .62); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
dialog[open] { animation: pop-in .5s var(--ease); }
dialog[open]::backdrop { animation: fondu .5s var(--ease); }
dialog.ferme { animation: pop-out .32s var(--ease) forwards; }
dialog.ferme::backdrop { animation: fondu .32s var(--ease) reverse forwards; }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes fondu { from { opacity: 0; } }

.pop {
  position: relative; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .14) transparent;
  padding: var(--s6); border-radius: 24px; text-align: center;
  background: linear-gradient(180deg, rgba(16, 26, 42, .94), rgba(8, 13, 23, .96));
  border: 1px solid var(--trait);
  box-shadow: 0 32px 96px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px);
}
.pop:focus { outline: none; }
.fermer {
  position: absolute; top: var(--s2); right: var(--s2); width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .06); cursor: pointer; display: grid; place-items: center; color: var(--texte-2);
  transition: background .3s, color .3s;
}
.fermer:hover { background: rgba(255, 255, 255, .12); color: var(--texte); }
.fermer svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.pop h2 { font-size: 32px; line-height: 1.1; font-weight: 600; letter-spacing: -.035em; }
.pop-chapo { margin: var(--s1) auto var(--s4); max-width: 32ch; font-size: 15px; color: var(--texte-2); }

.champs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); text-align: left; }
.champ { display: flex; flex-direction: column; gap: var(--s1); min-width: 0; }
.champ.large { grid-column: 1 / -1; }
.champ > span { font-size: 12px; font-weight: 500; color: var(--texte-2); letter-spacing: .01em; }
.champ small { color: var(--texte-3); font-size: 12px; }
.champ input, .champ select, .champ textarea {
  width: 100%; height: 48px; padding: 0 var(--s2); border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04);
  color: var(--texte); font: inherit; font-size: 16px; outline: none;
  transition: border-color .25s, background .25s;
  -webkit-appearance: none; appearance: none;
}
.champ textarea { height: auto; min-height: 80px; padding: 12px var(--s2); resize: vertical; }
.champ select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3b2' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.champ select:invalid { color: var(--texte-3); }
.champ option { background: var(--marine); color: var(--texte); }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--or); background: rgba(255, 255, 255, .06); }
.envoye .champ input:invalid, .envoye .champ select:invalid { border-color: #d48a78; }

.accord { display: flex; gap: 12px; align-items: flex-start; margin-top: var(--s3); text-align: left; font-size: 13px; line-height: 1.45; color: var(--texte-2); cursor: pointer; }
.accord input {
  flex: none; width: 20px; height: 20px; margin: 0; border-radius: 6px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .04);
  -webkit-appearance: none; appearance: none; display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.accord input:checked { background: var(--or-degrade); border-color: var(--or); }
.accord input:checked::after { content: ""; width: 10px; height: 6px; border: solid var(--nuit); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.accord input:focus-visible { outline: 2px solid var(--or-clair); outline-offset: 2px; }
.envoye .accord input:invalid { border-color: #d48a78; }

.erreur { margin-top: var(--s2); font-size: 13px; color: #e3a594; }
.btn.plein { width: 100%; margin-top: var(--s3); }
.pop-note { margin-top: var(--s2); font-size: 12px; line-height: 1.5; color: var(--texte-3); }

.merci { padding: var(--s4) 0 var(--s1); }
.merci:focus { outline: none; }
.merci .ico { margin-bottom: var(--s3); }
.merci h2 { max-width: 14ch; margin-inline: auto; }
.merci .pop-chapo { margin-bottom: var(--s4); }

/* ---------- Mobile ---------- */
@media (max-width: 733px) {
  .trio, .chiffres { grid-template-columns: 1fr; gap: var(--s8); }
  .trio { margin-top: var(--s8); }
  .marque span { font-size: 12px; }
  dialog { width: 100%; max-height: 100dvh; margin: auto 0 0; }
  .pop { padding: var(--s6) var(--s2) var(--s4); max-height: 92dvh; border-radius: 24px 24px 0 0; border-bottom: 0; }
  .champs { grid-template-columns: 1fr; }
  dialog[open] { animation: monte-bas .5s var(--ease); }
  @keyframes monte-bas { from { transform: translateY(40px); opacity: 0; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .revele, .js .apparait { opacity: 1; transform: none; transition: none; animation: none; }
  .js .photo-img { animation: none; }
  dialog[open], dialog[open]::backdrop, dialog.ferme, dialog.ferme::backdrop { animation: none; }
}
