/* ==========================================================================
   Yacout by Graceful : styles du premier écran et des versions vidéo
   (base, en-tête, hero, formulaire, galerie, visionneuse, pied de page court).
   Palette : Bleu nuit Atlantique · Police : Plus Jakarta Sans · Style : moderne premium
   Mobile d'abord : les règles de base visent le téléphone, les blocs
   min-width 768px (tablette) et 1024px (ordinateur) les enrichissent.
   Le reste est dans style.css, chargé sans bloquer le premier affichage.
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-var.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-var-italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}

:root {
  --navy: #0F1C2C;          /* fond principal */
  --navy-2: #16273C;        /* surfaces sombres (cartes) */
  --navy-3: #0A1420;        /* pied de page, fond le plus profond */
  --navy-line: rgba(255, 255, 255, .09);
  --sand: #F4F0E8;          /* sections claires */
  --sand-2: #EAE3D6;
  --paper: #FBF9F4;         /* sections très claires */
  --gold: #C9A06B;          /* boutons et accents sur fond sombre (7,1:1 sur le bleu nuit) */
  --gold-hover: #D7B27F;
  --gold-ink: #7E5A30;      /* or lisible sur fond clair (5,4:1 sur le sable) */
  --gold-soft: rgba(201, 160, 107, .14);
  --gold-line: rgba(201, 160, 107, .35);
  --white: #FFFFFF;
  --mist: #C3C9D1;          /* texte secondaire sur fond sombre */
  --ink: #0F1C2C;           /* texte sur fond clair */
  --muted: #5A564F;         /* texte secondaire sur fond clair */
  --line-light: #E6DFD1;
  --field-border: #CFC6B6;
  --error: #A1261B;
  --success: #2F6B3A;
  --live: #4ADE80;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --gutter: 16px;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --shadow-card: 0 1px 2px rgba(15, 28, 44, .04), 0 18px 40px -22px rgba(15, 28, 44, .28);
  --shadow-pop: 0 40px 90px -30px rgba(0, 0, 0, .7);
  --section-y: 56px;
  --header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; interpolate-size: allow-keywords; }
body {
  margin: 0; background: var(--navy); color: var(--white);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gold { color: var(--gold); }
.icon { width: 20px; height: 20px; flex: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }

/* Point « en direct » */
.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--live); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--live); animation: ping 2s var(--ease) infinite; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 28px;
  border: 0; border-radius: 999px;
  font-family: var(--font); font-size: 15.5px; font-weight: 700; line-height: 1.2; letter-spacing: -.005em;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.btn-gold {
  background: linear-gradient(180deg, #D6B27F 0%, var(--gold) 100%); color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 26px -10px rgba(201, 160, 107, .75);
}
/* survols réservés aux souris : sur écran tactile, l'effet resterait collé après l'appui */
@media (hover: hover) {
  .btn-gold:hover { background: var(--gold-hover); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 16px 34px -12px rgba(201, 160, 107, .9); }
  .btn-arrow:hover .icon { transform: translateX(4px); }
}
.btn-gold:active { transform: translateY(1px); }
.btn-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .75; cursor: progress; transform: none; }
.round-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--white); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
@media (hover: hover) { .round-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); } }
.round-btn:active { background: rgba(255, 255, 255, .16); }

/* ---------- Sections et titres ---------- */
.section { position: relative; padding: var(--section-y) 0; }
.section-ivory { background: var(--sand); color: var(--ink); }
.section-dark { background: var(--navy); color: var(--white); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 5px 12px;
  border-radius: 999px; background: var(--gold-soft);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.section-ivory .eyebrow { color: var(--gold-ink); background: rgba(126, 90, 48, .1); }
.section-title { font-size: 30px; }
.section-ivory .section-title em { color: var(--gold-ink); }
.section-dark .section-title em { color: var(--gold); }
.img-note {
  position: absolute; right: 12px; top: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(15, 28, 44, .6); color: rgba(255, 255, 255, .85); font-size: 12px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(15, 28, 44, .78); border-bottom: 1px solid var(--navy-line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.header-logo { width: 140px; height: auto; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-price { display: none; align-items: center; gap: 10px; font-size: 14px; color: var(--mist); }
.header-price strong { color: var(--white); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding: 20px 0 40px; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(201, 160, 107, .20), transparent 70%),
    radial-gradient(50% 40% at 0% 90%, rgba(70, 110, 160, .22), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-3) 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%); mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero-grid { display: flex; flex-direction: column; }
.hero-copy { position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 7px 14px 7px 12px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(255, 255, 255, .05);
  font-size: 12.5px; font-weight: 600; color: var(--white);
}
.hero h1 { font-size: 33px; line-height: 1.04; letter-spacing: -.04em; }
.hero h1 em { color: var(--gold); white-space: nowrap; }
.h1-price { display: block; white-space: nowrap; }
.hero-sub { margin-top: 12px; max-width: 34em; font-size: 15.5px; line-height: 1.55; color: var(--mist); }

.reassurance { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.reassurance li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; white-space: nowrap;
  border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px; font-weight: 600; line-height: 1.3;
}
.reassurance .icon { width: 18px; height: 18px; color: var(--gold); }

.hero-media { position: relative; margin-top: 20px; }
.hero-frame { position: relative; overflow: hidden; border-radius: var(--r); box-shadow: var(--shadow-pop); }
.hero-frame img { width: 100%; aspect-ratio: 760 / 430; object-fit: cover; }
.hero-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); background: linear-gradient(180deg, transparent 55%, rgba(10, 20, 32, .55)); }
.hero-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.hero-prices > span {
  padding: 10px 12px; border-radius: var(--r-sm); background: var(--navy-2); border: 1px solid var(--navy-line);
  font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--gold); white-space: nowrap;
}
.hero-prices small { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--mist); }

.hero-form { margin-top: 16px; scroll-margin-top: calc(var(--header-h) + 12px); }
.hero-form:focus { outline: none; }

/* ---------- Vidéo du hero ---------- */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); pointer-events: none; }
.hero-video.is-playing { opacity: 1; }

/* ---------- Formulaire ---------- */
.card-form {
  position: relative; background: var(--white); color: var(--ink);
  padding: 20px 18px 18px; border-radius: 24px;
  box-shadow: var(--shadow-pop), 0 0 0 1px rgba(255, 255, 255, .06);
}
.sold { margin: -4px 0 16px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--sand); }
/* tient sur une ligne dès 360 px ; en dessous, « +65 % vendu » passe à la ligne, calé à droite */
.sold-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.sold-top > span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.sold-top .live-dot { background: #22A35A; }
.sold-top .live-dot::after { background: #22A35A; }
.sold-top strong { margin-left: auto; color: var(--gold-ink); font-weight: 800; white-space: nowrap; }
.sold-bar { position: relative; height: 6px; margin-top: 10px; border-radius: 999px; background: var(--sand-2); overflow: hidden; }
.sold-bar span { position: absolute; inset: 0 auto 0 0; width: 65%; border-radius: inherit; background: linear-gradient(90deg, #D6B27F, var(--gold-ink)); transform-origin: left; }
.js .sold-bar span { animation: grow 1.4s .3s var(--ease) both; }
.form-title { font-size: 22px; letter-spacing: -.03em; color: var(--ink); }
.form-title:focus { outline: none; }
.form-intro { margin-top: 6px; color: var(--muted); font-size: 15px; }
.form-chosen { margin-top: 14px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--gold-soft); font-size: 15px; }
.field { position: relative; margin-top: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.field input, .cc select {
  width: 100%; min-height: 54px; padding: 12px 14px;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--field-border); border-radius: var(--r-sm);
  font-size: 16px; /* évite le zoom iOS */
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input::placeholder { color: #9A9184; }
.field input:hover, .cc select:hover { border-color: #B3A893; }
.field input:focus, .cc select:focus { outline: none; background: var(--white); border-color: var(--gold-ink); box-shadow: 0 0 0 4px rgba(201, 160, 107, .25); }
.field input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(161, 38, 27, .12); }
.phone-row { display: flex; gap: 8px; }
.phone-row input { flex: 1; min-width: 0; letter-spacing: .02em; }
.cc { position: relative; flex: none; width: 88px; }
.cc select { appearance: none; -webkit-appearance: none; color: transparent; cursor: pointer; padding: 0; }
.cc select option { color: var(--ink); }
.cc-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; pointer-events: none; font-weight: 700; color: var(--ink); }
.cc-label::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.field-error { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--error); }
.field-error:empty { display: none; }
.card-form .btn { margin-top: 20px; min-height: 58px; padding-left: 16px; padding-right: 16px; font-size: 16px; }
.form-status { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--error); }
.form-status:empty { display: none; }
.form-meta { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-light); display: grid; gap: 8px; }
.form-meta li { display: flex; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.form-meta .icon { width: 16px; height: 16px; margin-top: 1px; color: var(--gold-ink); }

.form-progress { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.form-ok { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 999px; background: rgba(47, 107, 58, .1); font-size: 13.5px; font-weight: 700; color: var(--success); }
.form-ok .icon { width: 18px; height: 18px; }
.form-progress-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.choices { margin: 16px 0 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 10px 18px;
  background: var(--paper); border: 1.5px solid var(--field-border); border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:checked + span::before { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-2px) rotate(-45deg); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.choices.is-missing legend { color: var(--error); }
.choices.is-missing .chip span { border-color: var(--error); }

/* Téléphone : étape 2 compacte, le rappel tient sur une ligne au-dessus des questions */
@media (max-width: 767px) {
  .form-progress { gap: 8px; margin-bottom: 10px; }
  .form-ok { padding: 3px 10px 3px 6px; font-size: 12.5px; line-height: 1.3; white-space: nowrap; }
  .form-ok .icon { width: 15px; height: 15px; }
  .form-progress-label { font-size: 12px; line-height: 1.3; white-space: nowrap; }
  .choices { margin-top: 12px; gap: 6px; }
  .choices legend { margin-bottom: 6px; }
  .chip span { min-height: 44px; padding: 8px 15px; font-size: 14.5px; }
}

/* ---------- Chiffres clés ---------- */
.proof { background: var(--navy-3); border-top: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line); }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; }
.proof-grid li { padding: 18px 10px; text-align: center; }
.proof-grid li:nth-child(odd) { border-right: 1px solid var(--navy-line); }
.proof-grid li:nth-child(-n+2) { border-bottom: 1px solid var(--navy-line); }
.proof-grid strong { display: block; font-size: 27px; font-weight: 800; line-height: 1.05; letter-spacing: -.04em; color: var(--gold); }
.proof-grid small { font-size: .5em; letter-spacing: -.01em; }
.proof-grid span { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.35; color: var(--mist); }
.gallery-foot .btn { width: 100%; }
@media (hover: hover) {
  .g-item:hover img { transform: scale(1.04); }
}

/* ---------- Galerie ---------- */
.gallery-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.gallery-nav { display: flex; align-items: center; gap: 8px; }
.gallery-count { margin-right: 6px; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--mist); font-variant-numeric: tabular-nums; }
.gallery {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter); scroll-padding: 0 var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.g-item { position: relative; flex: 0 0 86%; scroll-snap-align: start; overflow: hidden; border-radius: var(--r); }
.g-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.g-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.g-cap {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 14px; pointer-events: none; white-space: nowrap; border-radius: 999px;
  background: rgba(15, 28, 44, .6); border: 1px solid rgba(255, 255, 255, .16); color: var(--white);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 700;
}
.gallery-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 18px; }
.disclaimer { font-size: 13px; color: var(--mist); }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--navy-3); color: rgba(195, 201, 209, .65); padding: 36px 0 0; font-size: 13px; text-align: center; }
/* filet doré qui s'estompe vers les bords */
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line) 30%, var(--gold-line) 70%, transparent); }
.footer-inner { display: flex; flex-direction: column; align-items: center; }
.footer-logo { width: 120px; height: auto; opacity: .9; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 10px; margin-top: 6px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; } /* zone d'appui au doigt */
.footer-links a + a::before { content: "·"; margin-right: 10px; color: rgba(195, 201, 209, .4); }
.footer-inner p { margin-top: 8px; font-size: 12px; color: rgba(195, 201, 209, .45); }
.site-footer a { color: inherit; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--white); }
/* grand logotype doré qui se fond dans le bas de page (décoratif) */
.footer-word {
  margin: 20px 0 0; line-height: .78; white-space: nowrap; user-select: none; pointer-events: none;
  font-size: 25vw; font-weight: 800; letter-spacing: -.06em; text-indent: -.06em;
  background: linear-gradient(180deg, rgba(201, 160, 107, .32), rgba(201, 160, 107, 0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Barre collante mobile ---------- */
.sticky-cta {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgba(15, 28, 44, .88); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6);
  transition: transform .35s var(--ease), opacity .35s, visibility .35s;
}
.sticky-cta.is-hidden { transform: translateY(140%); opacity: 0; visibility: hidden; }
.sticky-price { font-size: 16px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--white); }
.sticky-price small { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--mist); }
.sticky-price .live-dot { width: 6px; height: 6px; }
.sticky-cta .btn { flex: none; min-height: 48px; padding: 12px 20px; font-size: 15px; }
/* espace réservé à la barre collante, dans le pied de page pour garder sa couleur */
.site-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

/* ---------- Visionneuse ---------- */
.lightbox {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0;
  background: rgba(8, 15, 24, .97); color: var(--white);
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox::backdrop { background: rgba(8, 15, 24, .9); }
.lb-top, .lb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter); }
.lb-caption { font-size: 15px; font-weight: 700; }
.lb-stage { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 var(--gutter); overflow: auto; touch-action: pan-x pan-y pinch-zoom; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-sm); transition: opacity .25s; }
.lb-stage img.is-loading { opacity: 0; }
.lb-video { position: relative; max-width: 100%; overflow: hidden; border-radius: var(--r-sm); background: #000; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.lb-video[hidden] { display: none; }
.lb-video video { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); cursor: pointer; }
.lb-video video:focus { outline: none; }
.lb-play {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 72px; height: 72px; padding: 0;
  transform: translate(-50%, -50%); border: 0; border-radius: 50%; cursor: pointer;
  background: linear-gradient(180deg, #D6B27F 0%, var(--gold) 100%); color: var(--navy); box-shadow: 0 14px 34px -8px rgba(0, 0, 0, .6);
}
.lb-play[hidden] { display: none; }
.lb-play .icon { width: 32px; height: 32px; }
.lb-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; pointer-events: none; background: rgba(255, 255, 255, .22); }
.lb-bar span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.lightbox.is-video .lb-arrows { visibility: hidden; }
.lightbox.is-video [data-lb-img] { display: none; }
.lb-arrows { display: flex; gap: 8px; }
.lightbox.is-plan .lb-arrows { visibility: hidden; }
.lightbox.is-plan .lb-stage { align-items: flex-start; justify-content: flex-start; }
.lightbox.is-plan .lb-stage img { max-width: none; max-height: none; width: 200vw; background: var(--white); border-radius: 0; }
.hero-video { will-change: opacity; }

/* Entrée du hero au chargement : le titre et l'image, vus en premier, s'affichent tout de suite */
.js .hero-copy > :not(h1), .js .hero-form { animation: rise .5s var(--ease) both; }
.js .hero-copy > :nth-child(3) { animation-delay: .04s; }
.js .hero-copy > :nth-child(4) { animation-delay: .08s; }
.js .hero-form { animation-delay: .1s; }
@media (max-width: 1023px) {
  .site-header { background: var(--navy); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sticky-cta { background: rgba(15, 28, 44, .97); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .img-note, .g-cap { background: rgba(15, 28, 44, .85); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.gallery-section {
  content-visibility: auto; contain-intrinsic-size: auto var(--h, 800px);
}
.gallery-section { --h: 620px; }
@media (min-width: 1024px) {
  .gallery-section { --h: 1270px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 104px; --header-h: 72px; }
  .header-logo { width: 172px; }
  .header-price { display: flex; }
  .btn-sm { min-height: 46px; padding: 10px 22px; }
  .section-title { font-size: 52px; }
  .eyebrow { margin-bottom: 16px; padding: 6px 14px; font-size: 12.5px; }

  /* Hero */
  .hero { padding: 48px 0 72px; }
  .badge { margin-bottom: 20px; font-size: 13px; }
  .hero h1 { font-size: 64px; }
  .h1-price { white-space: normal; }
  .hero-sub { margin-top: 16px; font-size: 17px; line-height: 1.6; }
  .reassurance { gap: 8px; margin-top: 22px; }
  .reassurance li { padding: 8px 14px 8px 10px; font-size: 13.5px; white-space: normal; }
  .hero-media { margin-top: 26px; }
  .hero-prices > span { font-size: 20px; padding: 14px 18px; }
  .hero-prices small { font-size: 12px; }
  .hero-form { margin-top: 20px; }
  .card-form { padding: 32px 32px 26px; border-radius: var(--r-lg); }
  .sold { margin-bottom: 20px; }
  .sold-top { gap: 12px; font-size: 13px; }
  .sold-top > span { white-space: normal; }
  .form-title { font-size: 24px; }
  .field { margin-top: 16px; }
  .field input { padding: 12px 16px; }
  .cc { width: 96px; }

  /* Chiffres clés */
  .proof-grid { grid-template-columns: repeat(4, 1fr); }
  .proof-grid li { padding: 30px 16px; border: 0 !important; }
  .proof-grid li + li { border-left: 1px solid var(--navy-line) !important; }
  .proof-grid strong { font-size: 38px; }
  .proof-grid span { font-size: 13.5px; }
  .gallery-foot .btn { width: auto; }

  /* Galerie, promoteur, CTA final, pied de page */
  .g-item { flex-basis: 58%; }
  .gallery-head { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; }
  .gallery-foot { flex-direction: row; justify-content: space-between; align-items: center; gap: 20px; margin-top: 26px; }
  .footer-word { font-size: clamp(76px, 21vw, 260px); }
  .lb-stage { padding: 0 72px; }
  .lightbox.is-plan .lb-stage { justify-content: center; }
  .lightbox.is-plan .lb-stage img { width: min(1100px, 100%); }
}
@media (min-width: 1024px) {
  :root { --section-y: 128px; --header-h: 80px; }
  .header-logo { width: 190px; }
  .site-footer { padding-bottom: 0; }
  .sticky-cta { display: none; }

  .hero { padding: 64px 0 104px; }
  .hero-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) 420px; column-gap: 64px;
    grid-template-areas: "copy form" "media form";
    grid-template-rows: auto 1fr; align-items: start;
  }
  .hero-copy { grid-area: copy; }
  .hero-media { grid-area: media; margin-top: 36px; }
  .hero-form { grid-area: form; margin-top: 0; position: sticky; top: calc(var(--header-h) + 24px); }
  .hero h1 { font-size: 46px; }
  .h1-price { white-space: nowrap; }
  .hero-sub { font-size: 18.5px; }
  .hero-prices { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; margin: 0; display: flex; justify-content: flex-end; gap: 8px; pointer-events: none; }
  .hero-prices > span { background: rgba(15, 28, 44, .62); border-color: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .hero-frame img { aspect-ratio: 760 / 420; }
  .img-note { top: 16px; right: 16px; }

  /* en-tête : plus opaque, pour ne pas virer au gris au-dessus des sections claires */
  .site-header { background: rgba(15, 28, 44, .94); }

  .card-form { padding: 32px 32px 26px; }

  .gallery-nav { display: none; }
  .gallery-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
  .gallery { flex-wrap: wrap; gap: 14px; overflow: visible; padding: 0; }
  /* 3 images par rangée ; largeur proportionnelle au format => même hauteur dans la rangée */
  .g-item { --sum: 3.556; flex: 0 0 calc((100% - 28px) * var(--ar) / var(--sum)); }
  .g-item:nth-child(n+4) { --sum: 5.719; }
  .g-item:nth-child(n+7) { --sum: 5.322; }
  .g-item img { aspect-ratio: var(--ar); }
  .footer-links { align-items: normal; gap: 6px 10px; margin-top: 16px; }
  .footer-links a { display: inline; min-height: 0; }
}

@media (min-width: 1280px) {
  .hero h1 { font-size: 58px; }
  .h1-place { white-space: nowrap; }
}

/* grands écrans : un peu plus de largeur utile */
@media (min-width: 1440px) {
  .container, .gallery-wrap { max-width: 1280px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 440px; column-gap: 80px; }
  .hero h1 { font-size: 62px; }
}
.is-current strong { color: var(--gold); }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
