/* Observatoire DVF / Patrim / Annonces — Pierre Peyrard
   Déploiement Cloudflare Pages : site statique (index.html + app.js + style.css)
*/

:root{
  --bg:#0b0f19;
  --card:#111a2e;
  --card2:#0f172a;
  --text:#e6e9f2;
  --muted:#a8b3cf;
  --accent:#7dd3fc;
  --ok:#86efac;
  --warn:#fbbf24;
  --err:#fb7185;
  --border:rgba(255,255,255,.12);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  background:radial-gradient(1200px 600px at 15% -10%, rgba(125,211,252,.22), transparent 60%),
             radial-gradient(800px 500px at 90% 0%, rgba(134,239,172,.12), transparent 55%),
             var(--bg);
  color:var(--text);
}

a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
h2,h3{margin:0 0 12px 0}
h2{font-size:20px}
h3{font-size:16px}
.mt{margin-top:14px}
.dot{opacity:.8; padding:0 6px}
.muted{color:var(--muted); font-size:13px; line-height:1.4}
.value{font-size:18px; font-weight:700}
.pre{
  background:rgba(0,0,0,.25);
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  overflow:auto;
  max-height:260px;
  font-family:var(--mono);
  font-size:12px;
  line-height:1.35;
}

.container{
  width:min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 60px;
}

.hero{
  padding: 26px 0 18px;
  border-bottom: 1px solid var(--border);
  background:linear-gradient(180deg, rgba(17,26,46,.55), rgba(11,15,25,0));
}

.hero__grid{
  width:min(1200px, calc(100% - 32px));
  margin:0 auto;
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap:16px;
  align-items:start;
}
@media (max-width: 980px){
  .hero__grid{grid-template-columns:1fr}
}

.hero__title{
  font-size:20px;
  font-weight:800;
  letter-spacing:.2px;
}
.hero__subtitle{margin-top:6px; color:var(--muted); font-size:13px}
.hero__tagline{margin-top:10px; font-weight:600; opacity:.95}

.hero__headline{
  display:flex;
  align-items:center;
  gap:16px;
}
.hero__photo{
  width:110px;
  height:110px;
  border-radius:18px;
  object-fit:cover;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
}
@media (max-width: 980px){
  .hero__photo{width:96px;height:96px}
  .hero__headline{align-items:flex-start}
}

.hero__cta{margin-top:14px}
.hero__meta{margin-top:10px; color:var(--muted); font-size:13px}
.note{
  margin-top:14px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(15,23,42,.6);
}
.note--warn{border-color:rgba(251,191,36,.35)}
.note strong{color:var(--warn)}

.section{padding:18px 0}
.card{
  background:linear-gradient(180deg, rgba(17,26,46,.95), rgba(15,23,42,.85));
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
}
.card--thin{padding:14px}
.card__title{font-weight:800; margin-bottom:10px}
.subcard{
  padding:12px;
  border:1px dashed rgba(255,255,255,.16);
  border-radius:14px;
  background:rgba(0,0,0,.12);
}
.subcard__title{font-weight:800; margin-bottom:8px}
.divider{
  height:1px;
  background:var(--border);
  margin:14px 0;
}

.grid{display:grid; gap:12px}
.grid--2{grid-template-columns:1fr 1fr}
.grid--3{grid-template-columns:1fr 1fr 1fr}
.grid--4{grid-template-columns:1fr 1fr 1fr 1fr}
@media (max-width: 980px){
  .grid--2,.grid--3,.grid--4{grid-template-columns:1fr}
}

.row{display:flex; gap:10px; align-items:center}
.row--tight{gap:8px}
.row--wrap{flex-wrap:wrap}
@media (max-width: 980px){ .row{flex-wrap:wrap} }

.field{display:flex; flex-direction:column; gap:6px}
.field--inline{flex-direction:row; align-items:center; gap:10px}
.field__label{color:var(--muted); font-size:12px}

.input{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
}
.input:focus{border-color:rgba(125,211,252,.55); box-shadow:0 0 0 4px rgba(125,211,252,.12)}
.input--file{padding:8px 10px}

.btn{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  color:var(--text);
  cursor:pointer;
  font-weight:700;
}
.btn:hover{background:rgba(255,255,255,.12)}
.btn:active{transform:translateY(1px)}
.btn--accent{
  background:linear-gradient(90deg, rgba(125,211,252,.25), rgba(134,239,172,.16));
  border-color:rgba(125,211,252,.45);
}
.btn--ghost{background:transparent}

.checks{display:flex; flex-wrap:wrap; gap:10px}
.check{display:flex; align-items:center; gap:8px; color:var(--muted); font-size:13px}
.check input{accent-color:var(--accent)}

.stats{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap:10px;
}
@media (max-width: 980px){
  .stats{grid-template-columns:1fr 1fr}
}
.stat{
  padding:12px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  background:rgba(0,0,0,.12);
}
.stat__k{color:var(--muted); font-size:12px}
.stat__v{font-size:18px; font-weight:900; margin-top:4px}

.chartWrap{
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  background:rgba(0,0,0,.10);
  padding:10px;
}

.map{
  height: 420px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.14);
  overflow:hidden;
  background:rgba(0,0,0,.10);
}

.tableWrap{
  border:1px solid rgba(255,255,255,.14);
  border-radius:16px;
  overflow:auto;
  background:rgba(0,0,0,.12);
}
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width: 920px;
}
.table th, .table td{
  padding:10px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  font-size:13px;
  vertical-align:top;
}
.table th{
  position:sticky;
  top:0;
  background:rgba(17,26,46,.98);
  z-index:2;
  text-align:left;
  font-weight:800;
}
.table td{color:rgba(230,233,242,.96)}
.table tr:hover td{background:rgba(255,255,255,.03)}
.table a{color:var(--accent)}

.footer{
  margin-top:30px;
  padding-top:18px;
  border-top:1px solid var(--border);
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:13px;
}

.ol{margin:0; padding-left:18px; color:var(--muted); font-size:13px; line-height:1.45}
.ol li{margin:4px 0}


/* Ventes décochées : restent visibles mais atténuées */
.row-excluded{ opacity:.45; }
.row-excluded td{ filter: grayscale(20%); }
