:root{
  --bg:#f6f1e7;
  --surface:rgba(255,255,255,.78);
  --surface2:rgba(255,255,255,.92);
  --ink:#1c1c1c;
  --muted:#6b6b6b;
  --navy:#1f2f4a;
  --gold:#b08a3a;
  --border:rgba(0,0,0,.10);
  --shadow:0 12px 30px rgba(0,0,0,.10);
  --radius:16px;
  --container:1200px;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--ink);
}

.container{
  width:min(var(--container), calc(100% - 40px));
  margin-inline:auto;
}

.topbar{
  position:sticky; top:0; z-index:20;
  background:rgba(246,241,231,.88);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.topbar__row{
  display:flex; align-items:center; gap:18px;
  padding:14px 0;
}
.brand{ text-decoration:none; color:inherit; }
.brand__name{
  font-family:Georgia, "Times New Roman", serif;
  font-weight:800; letter-spacing:.04em;
  color:var(--gold);
}
.brand__tagline{ font-size:12px; color:var(--muted); }

.nav{ margin-left:auto; display:flex; gap:14px; flex-wrap:wrap; }
.nav a{ color:#2a2a2a; text-decoration:none; padding:8px 10px; border-radius:999px; }
.nav a.is-active{ background:rgba(31,47,74,.10); color:var(--navy); }

.page{ padding:22px 0 44px; }

.hero{
  background:rgba(255,255,255,.45);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px 18px 16px;
  box-shadow:var(--shadow);
}
.hero h1{
  font-family:Georgia, "Times New Roman", serif;
  margin:0 0 6px 0;
}
.hero p{ margin:0 0 14px 0; color:var(--muted); }

.controls{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}
.searchbox{
  display:flex;
  gap:10px;
  flex:1 1 520px;
}
.searchbox input{
  flex:1;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--surface2);
  outline:none;
}
.btn{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--navy);
  color:#fff;
  font-weight:700;
  cursor:pointer;
}
.typefilters{
  display:flex; gap:12px; flex-wrap:wrap;
  color:#2a2a2a;
}
.typefilters label{
  background:var(--surface2);
  border:1px solid var(--border);
  padding:10px 12px;
  border-radius:999px;
  display:flex; gap:8px; align-items:center;
}

.layout{
  margin-top:16px;
  display:grid;
  grid-template-columns: 260px 1fr 320px;
  gap:16px;
  align-items:stretch;
}

.panel{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:14px;
}

.panel h2{
  font-family:Georgia, "Times New Roman", serif;
  margin:0 0 10px 0;
  font-size:18px;
}

.legend{ list-style:none; padding:0; margin:0 0 14px 0; }
.legend li{ display:flex; gap:10px; align-items:center; margin:8px 0; color:#333; }

.dot{
  width:12px; height:12px; border-radius:999px; display:inline-block;
  border:1px solid rgba(0,0,0,.25);
}
.dot--artist{ background:#c8a45b; }
.dot--institution{ background:#1f2f4a; }
.dot--exhibition{ background:#6a7f6a; }
.dot--city{ background:#9aa0a6; }

.stats{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
  margin:12px 0;
}
.stats > div{
  background:rgba(255,255,255,.75);
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px;
  text-align:center;
}
.stats b{ display:block; font-size:18px; }
.stats span{ display:block; font-size:12px; color:var(--muted); }

.hint{ font-size:13px; color:var(--muted); }

.canvas{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.network{
  height:560px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.75);
  position:relative;
}
.network.is-loading::after{
  content:"Chargement…";
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.65);
  font-weight:800;
  color:var(--navy);
  border-radius:14px;
}

.timeline{
  background:rgba(255,255,255,.70);
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 12px 10px;
}
.timeline__labels{
  display:flex; justify-content:space-between; align-items:center;
  color:var(--muted); font-size:13px; margin-bottom:10px;
}
.timeline__year{
  font-family:Georgia, "Times New Roman", serif;
  color:var(--navy);
  font-size:18px;
  font-weight:800;
}

.details{
  color:#333;
}
.details.is-empty{ color:var(--muted); }
.details__title{
  font-family:Georgia, "Times New Roman", serif;
  font-size:22px;
  font-weight:900;
}
.details__subtitle{ margin-top:4px; color:#444; font-weight:650; }
.details__meta{ margin-top:8px; color:var(--muted); font-size:13px; }
.details__link{
  display:inline-block;
  margin-top:12px;
  color:var(--navy);
  font-weight:800;
  text-decoration:none;
}
.details__link:hover{ text-decoration:underline; }
.details__hr{ border:none; border-top:1px solid var(--border); margin:14px 0; }
.details__small{ font-size:12px; color:var(--muted); }

/* noUiSlider cosmetics */
.noUi-target{ border:0; box-shadow:none; background:rgba(31,47,74,.08); }
.noUi-connect{ background:rgba(176,138,58,.70); }
.noUi-handle{
  border-radius:999px;
  border:1px solid rgba(0,0,0,.20);
  box-shadow:0 10px 20px rgba(0,0,0,.15);
}
.noUi-handle:before,.noUi-handle:after{ display:none; }

/* Responsive */
@media (max-width: 1100px){
  .layout{ grid-template-columns: 1fr; }
  .network{ height:520px; }
}
@media (max-width: 600px){
  .nav{ display:none; }
  .network{ height:460px; }
  .searchbox{ flex-direction:column; }
  .btn{ width:100%; }
}

