/**
 * Audit confidentiel (/audit-confidentiel-vente-immobiliere) — design
 * porté d'index.html (#page-audit), données réelles branchées (voir le
 * template). Sections : ah hero image · as parcours (au-steps rail,
 * au-panel étape 1, au-loading anneau) · rapport (ar-head bandeau,
 * ar-kpis, ar-sec position/ventes/explorer, ar-next final).
 */

.k-au { font-size: 10px; color: var(--gold-light); letter-spacing: 0.16em; text-transform: uppercase; display: block; margin-bottom: 14px; font-family: var(--font-sans); }
.k-au-d { font-size: 10px; color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase; display: block; margin-bottom: 8px; font-family: var(--font-sans); }

/* ═══ 1. HERO ═══ */
.ah { position: relative; background: var(--green); padding: calc(var(--r5-header-h, 96px) + 44px) 80px 56px; overflow: hidden; }
.ah-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.15; }
.ah::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at top center, rgba(196,168,130,0.14), transparent 42%),
    linear-gradient(180deg, rgba(8,25,56,0.18), rgba(8,25,56,0.42)); pointer-events: none; }
.ah-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
.ah h1 { font-family: var(--font); font-weight: 400; font-size: clamp(26px, 3.5vw, 42px); color: white; line-height: 1.2; }
.ah h1 em { font-style: italic; color: var(--gold-light); }
.ah p { margin: 16px auto 32px; font-size: 14.5px; color: rgba(255,255,255,0.75); line-height: 1.75; max-width: 600px; }
.ah-stats { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.ah-stat { min-width: 126px; padding: 16px 18px; border-radius: 999px; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(10px); text-align: center; }
.ah-stat strong { display: block; font-family: var(--font); font-weight: 400; font-size: 26px; color: white; line-height: 1.1; }
.ah-stat span { display: block; margin-top: 3px; font-size: 10px; color: rgba(255,255,255,0.45); letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-sans); }

/* ═══ 2. PARCOURS ═══ */
.as { background: var(--cream); padding: 28px 80px 64px; }
.as-inner { max-width: 720px; margin: 0 auto; }

/* Bande de preuve */
.ap { display: flex; gap: 12px 32px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px;
  padding: 14px 10px; border-bottom: 1px solid rgba(8,25,56,0.08); }
.ap-item { font-size: 11.5px; color: var(--text-muted); font-family: var(--font-sans); letter-spacing: 0.02em; }
.ap-item strong { color: var(--green); font-weight: 600; }

.au-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 34px; }
.au-step { display: flex; align-items: center; gap: 10px; min-width: 0; }
.au-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--border); color: var(--text-muted);
  font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); flex-shrink: 0; transition: background .3s, color .3s; }
.au-dot.on { background: var(--green); color: white; }
.au-dot.done { background: var(--gold); color: white; }
.au-lbl { font-size: 12px; color: var(--text-muted); font-family: var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-lbl.on { color: var(--green); font-weight: 600; }
.au-line { flex: 1 1 auto; height: 2px; background: var(--border); min-width: 24px; transition: background .3s; }
.au-line.done { background: var(--gold); }

.au-panel { background: white; border: 1px solid rgba(8,25,56,0.08); border-radius: 30px; padding: 40px;
  box-shadow: 0 18px 44px rgba(8,25,56,0.06); }
.au-panel h2 { font-family: var(--font); font-size: 22px; font-weight: 400; color: var(--green); margin-bottom: 6px; }
.au-panel-lead { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.65; font-family: var(--font-sans); }

.au-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.au-field label { display: block; font-size: 11px; font-weight: 600; color: var(--green); text-transform: uppercase;
  letter-spacing: 0.06em; font-family: var(--font-sans); margin-bottom: 7px; }
.au-field input { width: 100%; padding: 13px 16px; border: 1px solid rgba(8,25,56,0.1); border-radius: 18px;
  font-size: 14px; font-family: var(--font-sans); outline: none; box-sizing: border-box;
  background: linear-gradient(180deg, rgba(248,245,240,0.95), rgba(255,255,255,0.98));
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.au-field input:focus { border-color: rgba(139,111,71,0.42); box-shadow: 0 0 0 4px rgba(139,111,71,0.08); background: white; }
.au-field input:disabled { cursor: not-allowed; opacity: 0.6;
  background: linear-gradient(180deg, rgba(234,230,223,0.9), rgba(244,240,234,0.9)); }

.au-url-block { margin: 10px 0 24px; padding: 22px; border-radius: 26px; border: 1px solid rgba(8,25,56,0.08);
  background: linear-gradient(180deg, rgba(248,245,240,0.8), rgba(255,255,255,0.98)); }
.au-url-input { padding: 18px 20px !important; border-radius: 22px !important; font-size: 17px !important; line-height: 1.4; }
.au-url-help { margin: 10px 0 0; font-size: 11px; line-height: 1.6; color: var(--text-muted); font-family: var(--font-sans); }
.au-url-help strong { color: var(--green); }

.au-main-btn { width: 100%; background: var(--green); color: white; border: none; border-radius: 999px;
  padding: 15px 20px; font-size: 14px; cursor: pointer; font-family: var(--font-sans); letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease; }
.au-main-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.au-main-btn:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(8,25,56,0.18); }
.au-consent { font-size: 11px; color: var(--text-muted); margin: 12px 0 0; line-height: 1.6; font-family: var(--font-sans); }

/* Analyse en cours */
.au-loading { padding: 60px 40px; text-align: center; }
.au-ring { position: relative; width: 80px; height: 80px; margin: 0 auto 28px; }
.au-ring svg:first-child { width: 80px; height: 80px; transform: rotate(-90deg); }
#au-ring-fill { transition: stroke-dashoffset 0.8s ease; }
.au-ring-ico { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; color: var(--green); }
.au-loading h3 { font-family: var(--font); font-size: 20px; font-weight: 400; color: var(--green); margin-bottom: 6px; }
.au-loading p { font-size: 13px; color: var(--text-muted); margin: 0; font-family: var(--font-sans); }
.au-loading-dots { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.au-loading-dots span { height: 5px; width: 48px; border-radius: 3px; background: var(--border); transition: background 0.4s; }
.au-loading-dots span.on { background: var(--green); }

/* ═══ 3. RAPPORT ═══ */
.ar-head { background: var(--green); padding: 40px 80px; }
.ar-head-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.ar-head h2 { font-family: var(--font); font-size: clamp(22px, 3vw, 36px); font-weight: 400; color: white; margin-bottom: 6px; line-height: 1.2; }
.ar-head p { font-size: 14px; color: rgba(255,255,255,0.65); margin: 0; font-family: var(--font-sans); }
.ar-url-card { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 24px;
  padding: 24px 32px; min-width: 220px; max-width: 340px; }
.ar-url-card > span { display: block; font-size: 11px; letter-spacing: 0.1em; color: var(--gold-light);
  font-family: var(--font-sans); text-transform: uppercase; margin-bottom: 10px; }
.ar-url-card #au-r-url { font-size: 13px; line-height: 1.6; color: white; word-break: break-word; font-family: var(--font-sans); }
.ar-url-titre { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.5; font-family: var(--font-sans); }

.ar-kpis { background: white; border-bottom: 1px solid var(--border); }
.ar-kpis-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.ar-kpi { padding: 28px 32px; border-right: 1px solid var(--border); transition: background 0.2s ease; }
.ar-kpi:last-child { border-right: none; }
.ar-kpi.is-link { cursor: pointer; }
.ar-kpi.is-link:hover { background: rgba(248,245,240,0.55); }
.ar-kpi .l { display: block; font-size: 10px; letter-spacing: 0.1em; color: var(--text-muted); font-family: var(--font-sans); text-transform: uppercase; margin-bottom: 8px; }
.ar-kpi strong { display: block; font-family: var(--font); font-weight: 400; font-size: 27px; color: var(--green); line-height: 1.1; }
.ar-kpi .s { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; font-family: var(--font-sans); line-height: 1.5; }

.ar-sec { background: var(--cream); padding: 48px 80px; }
.ar-sec.alt { background: white; }
.ar-sec-inner { max-width: 1180px; margin: 0 auto; }
.ar-sec h3 { font-family: var(--font); font-size: 20px; font-weight: 400; color: var(--green); margin: 0; }
.ar-sec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.ar-badge { background: var(--green); color: white; font-family: var(--font-sans); font-size: 10px; padding: 5px 12px;
  letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; }
.ar-copy { font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 760px; margin: 10px 0 20px; font-family: var(--font-sans); }

.ar-verdict { margin-top: 16px; padding: 18px 22px; font-size: 13.5px; line-height: 1.7; font-family: var(--font-sans);
  border-left: 3px solid var(--green); background: rgba(8,25,56,0.05); color: var(--green); border-radius: 20px; max-width: 760px; }
.ar-verdict.warn { border-color: var(--gold); background: rgba(139,111,71,0.07); color: var(--gold); }
.ar-verdict strong { font-weight: 600; }

/* Dialogue « prix sur demande » : le visiteur donne le prix, l'IA
   compare, puis la question broker — même langage visuel que le reste. */
.ar-dialogue { margin-top: 22px; padding: 22px 24px; max-width: 760px; background: white;
  border: 1px solid rgba(8,25,56,0.08); border-radius: 26px; box-shadow: 0 16px 34px rgba(8,25,56,0.05); }
.ar-dialogue h3 { margin: 0 0 4px; }
.ar-dialogue-sub { font-size: 13px; color: var(--text-muted); font-family: var(--font-sans); margin: 0 0 14px; }
.ar-dialogue-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ar-dialogue-row input { flex: 1 1 220px; padding: 13px 16px; font-size: 15px; font-family: var(--font-sans);
  border: 1px solid rgba(8,25,56,0.16); border-radius: 999px; outline: none; }
.ar-dialogue-row input:focus { border-color: var(--green); }
.ar-dialogue-btn { width: auto; padding: 13px 26px; }
.ar-dialogue-btn.ghost { background: transparent; color: var(--green); border: 1px solid rgba(8,25,56,0.25); }
.ar-dialogue-broker { margin-top: 16px; font-family: var(--font-sans); font-size: 14px; color: var(--green); }
.ar-dialogue-choix { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ar-dialogue-fin { margin-top: 14px; font-size: 13.5px; font-family: var(--font-sans); color: var(--green); }

.ar-table-wrap { background: white; border-radius: 26px; border: 1px solid rgba(8,25,56,0.08); overflow-x: auto;
  box-shadow: 0 16px 34px rgba(8,25,56,0.05); }
.ar-table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: 12.5px; }
.ar-table th { text-align: left; padding: 12px 16px; font-size: 10px; font-weight: 600; color: var(--green);
  letter-spacing: 0.05em; text-transform: uppercase; background: rgba(0,0,0,0.03); border-bottom: 1px solid var(--border); white-space: nowrap; }
.ar-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--text-muted); white-space: nowrap; }
.ar-table tr:last-child td { border-bottom: none; }
.ar-table td strong { color: var(--green); font-weight: 600; }
.ar-table-wrap.no-terrain .col-terrain { display: none; }
.ar-note { margin: 12px 0 0; font-size: 11px; color: var(--text-light); line-height: 1.6; font-family: var(--font-sans); }

/* Explorer le marché — 2 CTA */
.ar-explore { text-align: center; }
.ar-explore h3 { margin-bottom: 26px; }
.ar-explore-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.ar-explore .ar-cta.ghost { background: none; color: var(--green); border: 1px solid rgba(8,25,56,0.25); }
.ar-explore .ar-cta.ghost:hover { border-color: var(--gold); color: var(--gold); background: none; }

/* Final */
.ar-next { background: var(--green); padding: 64px 80px; }
.ar-next-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.ar-next h3 { font-family: var(--font); font-weight: 400; font-size: clamp(22px, 2.8vw, 32px); color: white; line-height: 1.25; }
.ar-next h3 em { font-style: italic; color: var(--gold-light); }
.ar-next p { margin: 14px auto 28px; font-size: 13.5px; color: rgba(255,255,255,0.7); line-height: 1.75; max-width: 56ch; font-family: var(--font-sans); }
.ar-next-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.ar-cta { display: inline-flex; align-items: center; min-height: 52px; background: var(--gold); color: white;
  padding: 15px 34px; border-radius: 50px; font-size: 12px; letter-spacing: 0.13em; text-transform: uppercase;
  text-decoration: none; font-family: var(--font-sans); transition: background .3s, transform .3s; }
.ar-cta:hover { background: var(--gold-light); transform: translateY(-2px); }
.ar-ghost { display: inline-flex; align-items: center; min-height: 52px; background: none; color: white;
  border: 1px solid rgba(255,255,255,0.35); padding: 15px 30px; border-radius: 50px; font-size: 12px;
  letter-spacing: 0.13em; text-transform: uppercase; cursor: pointer; font-family: var(--font-sans); transition: border-color .3s; }
.ar-ghost:hover { border-color: var(--gold-light); }

/* ═══ 4. POURQUOI ÇA BLOQUE ═══ */
.aw { background: white; padding: 84px 80px; border-top: 1px solid var(--border); }
.aw-inner { max-width: 1080px; margin: 0 auto; }
.aw h2 { font-family: var(--font); font-weight: 400; font-size: clamp(24px, 3vw, 36px); color: var(--green); line-height: 1.2; max-width: 24ch; }
.aw-lead { margin: 14px 0 40px; font-size: 14px; color: var(--text-muted); line-height: 1.75; max-width: 60ch; font-family: var(--font-sans); }
.aw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 48px; }
.aw-cell .num { font-family: var(--font); font-size: 15px; color: var(--gold); }
.aw-cell h3 { margin: 8px 0 10px; font-family: var(--font); font-weight: 500; font-size: 18px; color: var(--green); line-height: 1.35; }
.aw-cell p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.8; font-family: var(--font-sans); }

/* ═══ 5. FAQ ═══ */
.aq { background: var(--cream); padding: 84px 80px; }
.aq-inner { max-width: 820px; margin: 0 auto; }
.aq h2 { font-family: var(--font); font-weight: 400; font-size: clamp(24px, 3vw, 36px); color: var(--green); line-height: 1.2; margin-bottom: 28px; }
.aq-item { border-top: 1px solid rgba(8,25,56,0.12); }
.aq-item:last-of-type { border-bottom: 1px solid rgba(8,25,56,0.12); }
.aq-item summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; color: var(--green); font-size: 16.5px; line-height: 1.4; font-family: var(--font-sans); }
.aq-item summary::-webkit-details-marker { display: none; }
.aq-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;
  line-height: 1; transition: transform .3s; }
.aq-item[open] summary::after { content: "−"; transform: rotate(180deg); }
.aq-item p { margin: 0; padding: 0 0 24px; font-size: 13.5px; color: var(--text-muted); line-height: 1.85; max-width: 68ch; font-family: var(--font-sans); }

/* ═══ Responsive ═══ */
@media (max-width: 900px) {
  .ah { padding-left: 24px; padding-right: 24px; }
  .as { padding: 36px 16px 52px; }
  .au-panel { padding: 28px 20px; }
  .au-grid { grid-template-columns: 1fr; }
  .au-steps { gap: 8px; }
  .au-lbl { font-size: 10.5px; }
  .ar-head { padding: 32px 24px; }
  .ar-head-inner { grid-template-columns: 1fr; gap: 20px; }
  .ar-url-card { max-width: none; }
  .ar-kpis-inner { grid-template-columns: 1fr; }
  .ar-kpi { border-right: none; border-bottom: 1px solid var(--border); }
  .ar-kpi:last-child { border-bottom: none; }
  .ar-sec { padding: 40px 24px; }
  .ar-next { padding: 52px 24px; }
  .aw { padding: 56px 24px; }
  .aw-grid { grid-template-columns: 1fr; gap: 28px; }
  .aq { padding: 56px 24px; }
}
@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. */
  .ah { padding-top: calc(var(--r5-header-h, 96px) + 34px) !important; }
}
