/**
 * Page Off-Market — maquette work/offmarket-lab.html validée par Gary
 * le 17/08. L'univers de l'ombre : Genève de nuit, confidentialité
 * luxueuse, et la machine à dossiers acquéreurs qualifiés.
 *
 * Sections : oh hero nuit · op piliers · os accès privé (définition +
 * texte SEO + encadré CTA) · of formulaire 5 étapes · ov « Ce que vous
 * auriez pu acheter » (transactions réelles, après soumission) · od
 * bloc vendeur · oq FAQ · ofloat bouton flottant.
 */

.k-om { font-size: 10px; color: var(--gold); letter-spacing: 0.16em; text-transform: uppercase; display: block; margin-bottom: 14px; }

/* ═══ 1. HERO nuit ═══ */
.oh { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--green-800); }
.oh-media { position: absolute; inset: 0; }
.oh-media img { width: 100%; height: 100%; object-fit: cover; }
.oh-veil { position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(2,8,20,0.92) 0%, rgba(2,8,20,0.55) 40%, rgba(2,8,20,0.35) 100%); }
.oh-content { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto;
  padding: calc(var(--r5-header-h, 96px) + 54px) 80px 70px; }
.oh-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 18px; }
.oh-kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light);
  box-shadow: 0 0 12px rgba(168,139,99,0.9); }
.oh h1 { font-family: var(--font); font-weight: 400; font-size: clamp(36px, 5vw, 66px); line-height: 1.06; color: white; max-width: 16ch; }
.oh h1 em { font-style: italic; color: var(--gold-light); }
.oh-lead { margin-top: 18px; font-size: 14.5px; color: rgba(255,255,255,0.72); line-height: 1.8; max-width: 58ch; }
.oh-ctas { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 32px; }
.oh-cta { display: inline-flex; align-items: center; min-height: 52px; background: var(--gold); color: white;
  padding: 15px 36px; border-radius: 50px; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; transition: background .3s, transform .3s; font-family: var(--font-sans); }
.oh-cta:hover { background: var(--gold-light); transform: translateY(-2px); color: white; }
.oh-note { font-size: 11.5px; color: rgba(255,255,255,0.5); }

/* ═══ 2. Les 3 piliers ═══ */
.op { background: var(--cream); padding: 72px 80px; }
.op-inner { max-width: 1280px; margin: 0 auto; }
.op-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.op-cell { background: var(--white); padding: 36px 32px; }
.op-num { font-family: var(--font); font-size: 15px; color: var(--gold); display: block; margin-bottom: 14px; }
.op-cell h2 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; font-weight: 600; font-family: var(--font-sans); }
.op-cell p { font-size: 13.5px; color: var(--text-muted); line-height: 1.8; }

/* ═══ 2b. L'accès privé — définition + texte SEO ═══
   Desktop : texte à gauche, encadré CTA sticky à droite.
   Mobile : accroche+définition → encadré CTA → texte long. */
.os { background: var(--cream); padding: 24px 80px 80px; }
.os-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr;
  grid-template-areas: 'lede aside' 'more aside'; gap: 0 64px; align-items: start; }
.os-lede { grid-area: lede; }
.os-more { grid-area: more; }
.os-aside { grid-area: aside; }
.os h2 { font-family: var(--font); font-size: clamp(24px, 3vw, 38px); font-weight: 400; color: var(--green); line-height: 1.2; margin-bottom: 18px; }
.os p { font-size: 14.5px; color: var(--text-muted); line-height: 1.9; margin-bottom: 15px; }
.os-lede > p { font-family: var(--font); font-size: 18px; line-height: 1.65; color: var(--green); }
.os-more a, .os-def a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(139,111,71,0.4); transition: color .22s; }
.os-more a:hover, .os-def a:hover { color: var(--gold-light); }
/* Définition « position zéro » : la réponse que Google et les IA citent */
.os-def { margin: 24px 0 8px; background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--gold); padding: 24px 28px; }
.os-def h3 { font-family: var(--font); font-size: 18px; font-weight: 400; color: var(--green); margin-bottom: 8px; }
.os-def p { font-size: 13.5px; line-height: 1.85; margin: 0; font-family: var(--font-sans); color: var(--text-muted); }
.os-aside { border: 1px solid var(--border); background: var(--white); padding: 32px; position: sticky; top: calc(var(--r5-header-h, 96px) + 16px); }
.os-aside h3 { font-family: var(--font); font-size: 20px; font-weight: 400; color: var(--green); margin-bottom: 12px; }
.os-aside p { font-size: 13px; color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }
.os-aside .os-aside-cta { display: inline-flex; align-items: center; min-height: 48px; background: var(--gold); color: white;
  padding: 13px 28px; border-radius: 50px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; transition: background .3s; font-family: var(--font-sans); }
.os-aside .os-aside-cta:hover { background: var(--gold-light); color: white; }
.os-links { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-light); line-height: 1.8; margin-bottom: 0; }
.os-links a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(139,111,71,0.4); font-size: 12px; }
.os-links a:hover { color: var(--gold-light); }

/* ═══ 3. LE FORMULAIRE — 5 étapes ═══ */
.of { background: var(--white); padding: 80px; }
.of-inner { max-width: 880px; margin: 0 auto; }
.of-head h2 { font-family: var(--font); font-size: clamp(26px, 3.2vw, 40px); font-weight: 400; color: var(--green); }
.of-head p { margin-top: 12px; font-size: 13.5px; color: var(--text-muted); line-height: 1.8; }
.of-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); border: 1px solid rgba(139,111,71,0.3); border-radius: 50px; padding: 7px 15px; }
.of-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

.of-step { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--border); }
.of-step-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.of-step-num { font-family: var(--font); font-size: 15px; color: var(--gold); white-space: nowrap; letter-spacing: 0.1em; }
.of-step-head h3 { font-family: var(--font); font-size: clamp(19px, 2vw, 24px); font-weight: 400; color: var(--green); }
.of-step-sub { font-size: 12px; color: var(--text-light); margin-bottom: 22px; }

.of-label { display: block; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
  margin: 22px 0 10px; font-weight: 600; }
.of-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.of-chip { background: var(--cream); border: 1px solid var(--border); color: var(--text-muted); font-size: 12px;
  letter-spacing: 0.03em; padding: 10px 18px; border-radius: 50px !important; cursor: pointer; font-family: var(--font-sans);
  transition: all .22s; user-select: none; }
.of-chip:hover { border-color: rgba(139,111,71,0.5); }
.of-chip.on { background: var(--green); border-color: var(--green); color: white; }
.of-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.of-input, .of-textarea { width: 100%; padding: 14px 20px; border: 1px solid var(--border); border-radius: 50px;
  background: var(--white); color: var(--text); font-size: 14px; font-family: var(--font-sans); }
.of-textarea { border-radius: 20px; min-height: 110px; resize: vertical; }
.of-input:focus, .of-textarea:focus { outline: none; border-color: var(--gold); }
.of-hint { font-size: 11.5px; color: var(--text-light); margin-top: 8px; line-height: 1.6; }

/* Réassurance chiffrée juste avant l'engagement */
.of-count { margin-top: 44px; padding: 22px 28px; background: var(--cream); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; gap: 12px 40px; flex-wrap: wrap; }
.of-count div { text-align: center; }
.of-count strong { display: block; font-family: var(--font); font-size: 24px; font-weight: 400; color: var(--green); }
.of-count span { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }

.of-submit-wrap { margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.of-confid { font-size: 12px; color: var(--text-muted); line-height: 1.7; max-width: 46ch; }
.of-submit { display: inline-flex; align-items: center; min-height: 54px; background: var(--gold); color: white;
  padding: 16px 40px; border: 0; border-radius: 50px; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; font-family: var(--font-sans); transition: background .3s, transform .3s; }
.of-submit:hover { background: var(--gold-light); transform: translateY(-2px); }
.of-submit[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.of-link { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(139,111,71,0.4); font-size: inherit; transition: color .22s; cursor: pointer; }
.of-link:hover { color: var(--gold-light); }
.of-emprunt { margin-top: 18px; font-size: 12.5px; color: var(--text-light); }
.of .r5-form-status { margin-top: 16px; font-size: 13px; line-height: 1.7; }
.of .r5-form-status.is-error { color: #A33; }
.of .r5-form-status.is-success { color: var(--green); }

/* ═══ 4. Après soumission — « Ce que vous auriez pu acheter » ═══ */
.ov { background: var(--green); padding: 84px 80px; }
.ov-inner { max-width: 880px; margin: 0 auto; }
.ov-seal { width: 52px; height: 52px; border: 1px solid rgba(168,139,99,0.5); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--gold-light);
  font-size: 20px; margin-bottom: 22px; }
.ov .k-om { color: var(--gold-light); }
.ov h2 { font-family: var(--font); font-size: clamp(24px, 3vw, 36px); font-weight: 400; color: white; line-height: 1.2; }
.ov-lead { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.85; max-width: 62ch; }
.ov-table-wrap { margin-top: 34px; border: 1px solid rgba(255,255,255,0.14); overflow-x: auto; }
.ov-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.ov-table th { text-align: left; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-light); font-weight: 600; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.ov-table td { font-size: 13.5px; color: rgba(255,255,255,0.85); padding: 13px 20px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.ov-table td:first-child { font-family: var(--font); color: white; }
.ov-table td:nth-child(4) { font-family: var(--font); color: white; white-space: nowrap; }
.ov-table td:last-child { color: var(--gold-light); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.ov-table tr:last-child td { border-bottom: 0; }
.ov-note { margin-top: 14px; font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.7; }
.ov-ctas { margin-top: 28px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.ov-cta { display: inline-flex; align-items: center; min-height: 50px; background: var(--gold); color: white;
  padding: 14px 32px; border-radius: 50px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; transition: background .3s; font-family: var(--font-sans); }
.ov-cta:hover { background: var(--gold-light); color: white; }
.ov .of-link { color: var(--gold-light); border-bottom-color: rgba(168,139,99,0.5); font-size: 12.5px; }

/* ═══ 5. Bloc vendeur — l'autre face de l'off-market ═══ */
.od { background: radial-gradient(130% 110% at 88% 6%, rgba(26,74,128,0.25) 0%, transparent 52%),
  linear-gradient(135deg, var(--green-800), var(--green-700) 45%, var(--green) 80%, var(--green-mid));
  padding: 80px; text-align: center; }
.od h2 { font-family: var(--font); font-size: clamp(26px, 3.4vw, 44px); font-weight: 400; color: white; }
.od h2 em { font-style: italic; color: var(--gold-light); }
.od p { margin: 14px auto 30px; font-size: 14px; color: rgba(255,255,255,0.7); max-width: 56ch; line-height: 1.8; }
.od a { display: inline-flex; align-items: center; min-height: 52px; background: var(--gold); color: white;
  padding: 15px 36px; border-radius: 50px; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; transition: background .3s, transform .3s; font-family: var(--font-sans); }
.od a:hover { background: var(--gold-light); transform: translateY(-2px); color: white; }

/* ═══ 6. FAQ (même vocabulaire que Nos ventes) ═══ */
.oq { background: var(--white); padding: 64px 80px; }
.oq-inner { max-width: 860px; margin: 0 auto; }
.oq h2 { font-family: var(--font); font-size: clamp(22px, 2.8vw, 32px); font-weight: 400; color: var(--green); margin-bottom: 28px; }
.oq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.oq-item:first-of-type { border-top: 1px solid var(--border); }
.oq-item h3 { font-family: var(--font); font-size: 17px; font-weight: 400; color: var(--green); margin-bottom: 10px; }
.oq-item p { font-size: 13.5px; color: var(--text-muted); line-height: 1.85; }

/* ═══ Bouton flottant « Déposer ma recherche » ═══ */
.ofloat { position: fixed; right: 24px; bottom: 32px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px; min-height: 52px; background: var(--gold); color: white;
  padding: 15px 28px; border-radius: 50px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; font-family: var(--font-sans); box-shadow: 0 14px 40px rgba(8,25,56,0.35);
  transform: translateY(140%); opacity: 0; transition: transform .45s cubic-bezier(0.22,1,0.36,1), opacity .35s, background .3s; }
.ofloat.on { transform: translateY(0); opacity: 1; }
.ofloat:hover { background: var(--gold-light); color: white; }
.ofloat::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: white; opacity: 0.85; }
/* La bulle WhatsApp remonte au-dessus du bouton flottant. */
.page-template-off-market #wa-float { bottom: 100px; }

/* ═══ Responsive ═══ */
@media (max-width: 1000px) {
  .oh-content, .op, .os, .of, .od, .oq { padding-left: 24px; padding-right: 24px; }
  /* Mobile : dans le vif du sujet — hero raccourci, accroche resserrée */
  .oh { min-height: 74vh; }
  .oh-content { padding-bottom: 48px; }
  .oh-lead-more { display: none; }
  .op { padding-top: 48px; padding-bottom: 48px; }
  .op-grid { grid-template-columns: 1fr; }
  .op-cell { padding: 26px 24px; }
  .op-cell p { font-size: 13px; }
  /* Accroche → encadré CTA → texte long ; l'encadré ne colle plus */
  .os { padding-bottom: 56px; }
  .os-inner { grid-template-columns: 1fr; grid-template-areas: 'lede' 'aside' 'more'; }
  .os-aside { position: static; margin: 6px 0 30px; border-left: 3px solid var(--gold); }
  .os-aside .os-aside-cta { width: 100%; justify-content: center; }
  .of, .ov { padding-top: 56px; padding-bottom: 56px; }
  .ov { padding-left: 24px; padding-right: 24px; }
  .od { padding-top: 56px; padding-bottom: 56px; }
  .of-grid-2 { grid-template-columns: 1fr; }
  .of-submit-wrap { flex-direction: column; align-items: stretch; text-align: center; }
  .of-submit { justify-content: center; }
  .of-count { gap: 12px 28px; }
  .ofloat { right: auto; left: 50%; bottom: 18px; padding: 14px 30px;
    transform: translate(-50%, 160%); }
  .ofloat.on { transform: translate(-50%, 0); }
  .page-template-off-market #wa-float { bottom: 88px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .oh-cta, .of-submit, .of-chip, .ofloat, .od a { transition: none; }
}

/* ═══ Deux façons d'entrer : formulaire, ou demande écrite / dictée ═══
   (Gary 26/08) — l'IA range la demande dans les mêmes chips, le visiteur
   relit et corrige avant d'envoyer. */
.of-mode { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.of-mode-btn { flex: 1 1 220px; padding: 14px 18px; border-radius: 50px; cursor: pointer;
  background: var(--cream); border: 1px solid var(--border); color: var(--text-muted);
  font-family: var(--font-sans); font-size: 13px; letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.of-mode-btn:hover { border-color: var(--gold); color: var(--gold); }
.of-mode-btn.on { background: var(--green); border-color: var(--green); color: white; }

.of-libre { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--border); }
.of-libre .of-textarea { min-height: 170px; margin-top: 14px; }
.of-libre-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.of-libre-btn { margin: 0; }

.of-mic { display: inline-flex; align-items: center; gap: 9px; min-height: 54px; padding: 0 24px;
  border-radius: 50px; cursor: pointer; background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); font-family: var(--font-sans); font-size: 13px;
  transition: border-color 0.2s ease, color 0.2s ease; }
.of-mic:hover { border-color: var(--gold); color: var(--gold); }
.of-mic-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-light); flex: none; }
.of-mic.rec { border-color: #c0392b; color: #c0392b; }
.of-mic.rec .of-mic-dot { background: #c0392b; animation: of-pulse 1.2s ease-in-out infinite; }
@keyframes of-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .of-mic.rec .of-mic-dot { animation: none; } }

.of-relu { margin-top: 26px; padding: 20px 24px; border-radius: 20px;
  background: rgba(139,111,71,0.07); border-left: 3px solid var(--gold); }
.of-relu strong { display: block; font-family: var(--font); font-size: 15px; color: var(--gold); margin-bottom: 6px; }
.of-relu p { font-size: 13.5px; line-height: 1.7; color: var(--text-muted); font-family: var(--font-sans); margin: 0; }
.of-relu .of-hint { margin-top: 10px; }
