/**
 * Marché Rive Gauche (/communes-genevoises) — maquette
 * work/marche-rive-gauche-lab.html validée par Gary le 19/08.
 * Sections : mh hero + panneau « Marché en direct » animé (mh-live :
 * courbe qui se trace, point, grille, balayage) · mg 23 cartes
 * communes claires · mq acquéreurs · mt transactions · mb recherche →
 * off-market · mi lecture R5 · mf FAQ · ml terrains · mz final.
 */

.k-mr { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); display: block; margin-bottom: 12px; font-family: var(--font-sans); }
.k-mr-d { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 12px; font-family: var(--font-sans); }

/* ═══ 1. HERO + Marché en direct ═══ */
.mh { position: relative; background: var(--green); padding: calc(var(--r5-header-h, 96px) + 44px) 80px 72px; overflow: hidden; }
.mh-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
.mh::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,10,24,0.3), rgba(4,10,24,0.6)); }
.mh-inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.mh h1 { font-family: var(--font); font-weight: 400; font-size: clamp(28px, 3.6vw, 46px); color: white; line-height: 1.15; }
.mh h1 em { font-style: italic; color: var(--gold-light); }
.mh-inner > div > p { margin-top: 16px; font-size: 14.5px; color: rgba(255,255,255,0.75); line-height: 1.8; max-width: 56ch; }
.mh-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.mh-cta { display: inline-flex; align-items: center; min-height: 50px; background: var(--gold); color: white; padding: 14px 30px;
  border-radius: 50px; font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; text-decoration: none;
  font-family: var(--font-sans); transition: background .3s; }
.mh-cta:hover { background: var(--gold-light); }
.mh-ghost { display: inline-flex; align-items: center; min-height: 50px; background: none; color: white; border: 1px solid rgba(255,255,255,0.35);
  padding: 14px 26px; border-radius: 50px; font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; text-decoration: none;
  font-family: var(--font-sans); cursor: pointer; transition: border-color .3s; }
.mh-ghost:hover { border-color: var(--gold-light); }

.mh-panel { position: relative; background: rgba(4,10,24,0.45); border: 1px solid rgba(255,255,255,0.15); border-radius: 24px;
  padding: 30px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow: hidden; }
/* Le marché qui vit : courbe qui se trace, point qui la parcourt,
   grille analytique, balayage lent. Discret, précis, jamais criard. */
.mh-live { position: absolute; inset: 0; pointer-events: none; }
.mh-live::before { content: ""; position: absolute; inset: 0; opacity: 0.5;
  background:
    repeating-linear-gradient(to top, rgba(255,255,255,0.05) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(to right, rgba(255,255,255,0.035) 0 1px, transparent 1px 56px); }
.mh-live::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px;
  background: linear-gradient(to right, transparent, rgba(196,168,130,0.08), transparent);
  animation: mh-scan 9s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes mh-scan { 0% { left: -20%; } 100% { left: 110%; } }
.mh-live svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mh-live .mkt { fill: none; stroke: url(#mh-grad); stroke-width: 1.5; stroke-dasharray: 900 260; stroke-linecap: round;
  animation: mh-draw 13s linear infinite; opacity: 0.55; }
@keyframes mh-draw { from { stroke-dashoffset: 1160; } to { stroke-dashoffset: 0; } }
.mh-live .dot { fill: var(--gold-light); filter: drop-shadow(0 0 5px rgba(196,168,130,0.9)); }
.mh-panel > *:not(.mh-live) { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .mh-live::after { animation: none; display: none; }
  .mh-live .mkt { animation: none; stroke-dasharray: none; }
  .mh-live .dot { display: none; }
}
.mh-panel-k { font-size: 10.5px; color: rgba(255,255,255,0.75); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-sans); }
.mh-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mh-stat { background: rgba(255,255,255,0.1); border-bottom: 2px solid var(--gold); border-radius: 12px 12px 0 0; padding: 16px; }
.mh-stat strong { display: block; font-family: var(--font); font-weight: 400; font-size: 30px; color: white; line-height: 1; }
.mh-stat span { display: block; margin-top: 6px; font-size: 10.5px; color: rgba(255,255,255,0.75); line-height: 1.5; font-family: var(--font-sans); }

/* ═══ 2. Cartes communes ═══ */
.mg { background: var(--cream); }
.mg-inner { max-width: 1180px; margin: 0 auto; padding: 72px 80px 84px; }
.mg-head { margin-bottom: 28px; }
.mg-head h2 { font-family: var(--font); font-weight: 400; font-size: clamp(24px, 2.8vw, 34px); color: var(--green); }
.mg-head p { margin-top: 10px; font-size: 13.5px; color: var(--text-muted); line-height: 1.7; max-width: 74ch; }
.mg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mc { display: flex; flex-direction: column; background: white; border: 1px solid var(--border); border-radius: 24px;
  padding: 26px 28px 22px; text-decoration: none; transition: transform .3s, box-shadow .3s, border-color .3s;
  box-shadow: 0 14px 30px rgba(8,25,56,0.05); }
.mc:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(8,25,56,0.12); border-color: rgba(139,111,71,0.45); }
.mc-name { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(139,111,71,0.3); margin-bottom: 6px; }
.mc-name strong { font-family: var(--font); font-weight: 500; font-size: clamp(19px, 1.8vw, 24px); color: var(--green); line-height: 1.2; }
.mc-name span { font-size: 11px; letter-spacing: 0.12em; color: var(--gold); white-space: nowrap; font-family: var(--font-sans); }
.mc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.mc-row .l { font-size: 11px; color: var(--text-muted); line-height: 1.5; font-family: var(--font-sans); }
.mc-row .v { font-family: var(--font); font-size: 19px; color: var(--green); white-space: nowrap; }
.mc-row .v small { font-size: 11px; color: var(--text-muted); font-family: var(--font-sans); margin-left: 4px; }
.mc-foot { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.mc-foot span { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green); transition: color .3s; font-family: var(--font-sans); }
.mc-foot .a { color: var(--gold); font-size: 14px; transition: transform .3s; }
.mc:hover .mc-foot span { color: var(--gold); }
.mc:hover .mc-foot .a { transform: translate(3px, -3px); }

/* ═══ 3. Acquéreurs en recherche ═══ */
.mq { background: white; padding: 72px 80px; border-top: 1px solid var(--border); }
.mq-inner { max-width: 1180px; margin: 0 auto; }
.mq h2 { font-family: var(--font); font-weight: 400; font-size: clamp(22px, 2.6vw, 32px); color: var(--green); }
.mq-copy { margin: 10px 0 26px; font-size: 13.5px; color: var(--text-muted); line-height: 1.7; max-width: 74ch; font-family: var(--font-sans); }
.mq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
.mq-card { border: 1px solid var(--border); border-radius: 22px; padding: 22px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248,245,240,0.55)); }
.mq-card .t { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-family: var(--font-sans); }
.mq-card strong { display: block; margin-top: 8px; font-family: var(--font); font-weight: 500; font-size: 17px; color: var(--green); line-height: 1.35; }
.mq-card .d { margin-top: 8px; font-size: 12px; color: var(--text-muted); line-height: 1.65; font-family: var(--font-sans); }
.mq-card .s { display: inline-block; margin-top: 12px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(139,111,71,0.3); border-radius: 999px; padding: 4px 12px; font-family: var(--font-sans); }
.mq-cta { display: inline-flex; align-items: center; min-height: 50px; background: var(--gold); color: white; padding: 14px 32px;
  border-radius: 50px; font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; text-decoration: none;
  font-family: var(--font-sans); transition: background .3s; }
.mq-cta:hover { background: var(--gold-light); }

/* ═══ 4. Transactions récentes ═══ */
.mt { background: var(--cream); padding: 72px 80px; }
.mt-inner { max-width: 1180px; margin: 0 auto; }
.mt h2 { font-family: var(--font); font-weight: 400; font-size: clamp(22px, 2.6vw, 32px); color: var(--green); }
.mt-copy { margin: 10px 0 22px; font-size: 13.5px; color: var(--text-muted); line-height: 1.7; max-width: 76ch; font-family: var(--font-sans); }
.mt-wrap { border: 1px solid var(--border); border-radius: 24px; overflow-x: auto; box-shadow: 0 16px 34px rgba(8,25,56,0.05); background: white; }
.mt table, .ml table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-family: var(--font-sans); }
.mt th, .ml th { text-align: left; padding: 12px 16px; font-size: 10px; font-weight: 600; color: white; letter-spacing: 0.06em;
  text-transform: uppercase; background: var(--green); white-space: nowrap; }
.mt td, .ml td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-muted); white-space: nowrap; }
.mt tr:last-child td, .ml tr:last-child td { border-bottom: none; }
.mt td strong { color: var(--green); font-family: var(--font); font-size: 14px; font-weight: 500; }
.mt-note { margin-top: 12px; font-size: 11px; color: var(--text-light); line-height: 1.6; font-family: var(--font-sans); }

/* ═══ 5. Recherche accompagnée ═══ */
.mb { background: var(--green); padding: 76px 80px; }
.mb-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.mb h2 { font-family: var(--font); font-weight: 400; font-size: clamp(24px, 3vw, 36px); color: white; line-height: 1.2; }
.mb h2 em { font-style: italic; color: var(--gold-light); }
.mb p { margin-top: 14px; font-size: 13.5px; color: rgba(255,255,255,0.65); line-height: 1.8; font-family: var(--font-sans); }
.mb-panel { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: 24px; padding: 32px; }
.mb-steps { display: flex; gap: 8px; margin-bottom: 22px; }
.mb-steps span { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.1); font-family: var(--font-sans); }
.mb-steps span.on { background: var(--gold); color: white; }
.mb-label { font-size: 10.5px; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 10px; font-family: var(--font-sans); }
.mb-types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.mb-types button { padding: 13px; text-align: center; border: 1px solid rgba(255,255,255,0.25); border-radius: 14px;
  color: rgba(255,255,255,0.8); background: none; font-size: 12.5px; cursor: pointer; font-family: var(--font-sans);
  transition: border-color .25s, background .25s, color .25s; }
.mb-types button.on, .mb-types button:hover { border-color: var(--gold-light); background: rgba(139,111,71,0.25); color: white; }
.mb-go { display: flex; width: 100%; justify-content: center; background: var(--gold); color: white; padding: 14px; border-radius: 50px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; font-family: var(--font-sans); transition: background .3s; }
.mb-go:hover { background: var(--gold-light); }

/* ═══ 6. Lecture R5 ═══ */
.mi { background: white; padding: 76px 80px; border-top: 1px solid var(--border); }
.mi-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.mi h2 { font-family: var(--font); font-weight: 400; font-size: clamp(22px, 2.6vw, 30px); color: var(--green); line-height: 1.3; }
.mi-lead { margin: 14px 0 26px; font-size: 14px; color: var(--text-muted); line-height: 1.85; font-family: var(--font-sans); }
.mi-cta { display: inline-flex; align-items: center; min-height: 48px; background: none; color: var(--green);
  border: 1px solid rgba(8,25,56,0.25); padding: 13px 28px; border-radius: 50px; font-size: 11px; letter-spacing: 0.13em;
  text-transform: uppercase; cursor: pointer; font-family: var(--font-sans); transition: border-color .3s, color .3s; }
.mi-cta:hover { border-color: var(--gold); color: var(--gold); }
.mi-item { padding: 14px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: flex-start;
  font-size: 13.5px; color: var(--text); line-height: 1.6; font-family: var(--font-sans); }
.mi-item:last-child { border-bottom: none; }
.mi-item::before { content: "✓"; color: var(--gold); flex: 0 0 auto; }

/* ═══ 7. FAQ ═══ */
.mf { background: var(--cream); padding: 76px 80px; }
.mf-inner { max-width: 820px; margin: 0 auto; }
.mf h2 { font-family: var(--font); font-weight: 400; font-size: clamp(24px, 3vw, 34px); color: var(--green); margin-bottom: 28px; }
.mf-item { border-top: 1px solid rgba(8,25,56,0.12); }
.mf-item:last-of-type { border-bottom: 1px solid rgba(8,25,56,0.12); }
.mf-item summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; color: var(--green); font-size: 16px; line-height: 1.4; font-family: var(--font-sans); }
.mf-item summary::-webkit-details-marker { display: none; }
.mf-item summary::after { content: "+"; flex: 0 0 auto; width: 28px; height: 28px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 999px; border: 1px solid rgba(139,111,71,0.28); color: var(--gold); font-size: 18px; transition: transform .3s; }
.mf-item[open] summary::after { content: "−"; transform: rotate(180deg); }
.mf-item p { margin: 0; padding: 0 0 22px; font-size: 13.5px; color: var(--text-muted); line-height: 1.85; max-width: 68ch; font-family: var(--font-sans); }

/* ═══ 8. Terrains ═══ */
.ml { background: white; padding: 76px 80px; border-top: 1px solid var(--border); }
.ml-inner { max-width: 1000px; margin: 0 auto; }
.ml h2 { font-family: var(--font); font-weight: 400; font-size: clamp(22px, 2.8vw, 32px); color: var(--green); }
.ml-copy { margin: 10px 0 24px; font-size: 13.5px; color: var(--text-muted); line-height: 1.7; max-width: 66ch; font-family: var(--font-sans); }
.ml-wrap { border: 1px solid var(--border); border-radius: 24px; overflow-x: auto; box-shadow: 0 16px 34px rgba(8,25,56,0.05); }
.ml td.c { color: var(--green); font-weight: 600; }
.ml td.e { color: #2d5a8a; font-weight: 600; text-align: right; }
.ml td.r, .ml th.r { text-align: right; }
.ml-note { margin-top: 12px; font-size: 10.5px; color: var(--text-light); font-style: italic; line-height: 1.6; font-family: var(--font-sans); }
.ml-cta { margin-top: 26px; border: 1px solid rgba(139,111,71,0.3); border-radius: 22px; padding: 24px 30px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(248,245,240,0.8), rgba(255,255,255,0.6)); }
.ml-cta p { font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 56ch; font-family: var(--font-sans); }
.ml-cta p strong { color: var(--green); }
.ml-cta a { display: inline-flex; align-items: center; min-height: 48px; background: var(--gold); color: white; padding: 13px 30px;
  border-radius: 50px; font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap; font-family: var(--font-sans); transition: background .3s; }
.ml-cta a:hover { background: var(--gold-light); }

/* ═══ 9. Final ═══ */
.mz { background: var(--green); padding: 76px 80px; text-align: center; }
.mz-inner { max-width: 680px; margin: 0 auto; }
.mz h2 { font-family: var(--font); font-weight: 400; font-size: clamp(24px, 3vw, 36px); color: white; line-height: 1.25; }
.mz h2 em { font-style: italic; color: var(--gold-light); }
.mz p { margin: 14px auto 28px; font-size: 13.5px; color: rgba(255,255,255,0.65); line-height: 1.8; max-width: 56ch; font-family: var(--font-sans); }
.mz-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ═══ Responsive ═══ */
@media (max-width: 980px) {
  .mh { padding-left: 24px; padding-right: 24px; }
  .mh-inner, .mb-inner, .mi-inner { grid-template-columns: 1fr; gap: 36px; }
  .mg-inner { padding: 56px 16px 64px; }
  .mg-grid, .mq-grid { grid-template-columns: 1fr 1fr; }
  .mq, .mt, .mb, .mi, .mf, .ml, .mz { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 680px) { .mg-grid, .mq-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  /* base.css aplatit tout <section> à 36px de padding vertical sur
     téléphone (règle filet !important) — le hero garde son dégagement
     sous le menu flottant. */
  .mh { padding-top: calc(var(--r5-header-h, 96px) + 34px) !important; }
}
