
:root{
  --bg:#0b3d2e; /* vert foncé lisible */
  --card:#0f4a38;
  --text:#ecf4ef;
  --muted:#b8d0c6;
  --primary:#34d399; /* vert menthe */
  --accent:#fcd34d;  /* jaune doux */
  --danger:#ef4444;
  --shadow: 0 8px 24px rgba(0,0,0,.25);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.45;
}
.container{max-width:1100px;margin:0 auto;padding:24px}
.row{display:flex;gap:12px}
.row.center{align-items:center}
.row.between{justify-content:space-between}
.row.right{justify-content:flex-end}
.row.gap{gap:8px}
.site-header{
  position:sticky;top:0;z-index:10;
  background:linear-gradient(0deg, rgba(11,61,46,.8), rgba(11,61,46,.95));
  backdrop-filter: blur(6px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.brand .logo{
  width:42px;height:42px;border-radius:12px;
  background:#063023;display:grid;place-items:center;
  font-weight:700;letter-spacing:.5px
}
.brand-title{font-weight:700}
.brand-sub{font-size:12px;color:var(--muted)}
.nav a{color:var(--text);text-decoration:none;padding:10px 12px;border-radius:10px}
.nav a:hover{background:rgba(255,255,255,.06)}
.card{
  background:var(--card);border:1px solid rgba(255,255,255,.08);
  border-radius:16px;box-shadow:var(--shadow);padding:20px;margin:24px 0;
}
h2{margin:0 0 8px 0}
.muted{color:var(--muted)}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
label{display:flex;flex-direction:column;gap:6px;font-weight:600}
input,select,button{
  border-radius:12px;border:1px solid rgba(255,255,255,.14);
  background:#0b3a2c;color:var(--text);padding:12px 14px;
}
input::placeholder{color:#a6c3b7}
button.btn{cursor:pointer}
.btn.primary{background:var(--primary);color:#073523;border:0;font-weight:700}
.btn:hover{filter:brightness(1.05)}
.toolbar{margin:10px 0 14px 0}
.switch{display:flex;gap:8px;align-items:center;font-weight:600}
.switch input{appearance:none;width:44px;height:26px;background:#094233;border-radius:999px;position:relative;outline:none;border:1px solid rgba(255,255,255,.2)}
.switch input:checked{background:#0aa96f}
.switch input::after{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;background:#fff;border-radius:50%;transition:all .2s}
.switch input:checked::after{left:21px}
#plan-canvas{width:100%;max-width:100%;height:auto;border-radius:16px;border:1px dashed rgba(255,255,255,.25);background:#08362a}
/* Gauge */
.gauge{position:relative;background:#083d2e;border-radius:16px;padding:20px;margin-top:6px}
.gauge-needle{
  --angle:0deg;
  position:absolute;top:50%;left:8%;width:84%;height:2px;background:linear-gradient(90deg,transparent 0 10%,var(--accent) 10% 90%,transparent 90% 100%);
  transform:translateY(-50%) rotate(var(--angle));
  transform-origin:left center;transition:transform .5s ease;
}
.gauge-scale{list-style:none;display:flex;justify-content:space-between;margin:40px 10px 10px 10px;padding:0}
.gauge-scale li{font-weight:700;letter-spacing:.5px;background:#083224;border:1px solid rgba(255,255,255,.1);padding:8px 12px;border-radius:10px}
.gauge-scale li[data-grade="A"]{background:#16a34a}
.gauge-scale li[data-grade="B"]{background:#22c55e}
.gauge-scale li[data-grade="C"]{background:#84cc16}
.gauge-scale li[data-grade="D"]{background:#f59e0b}
.gauge-scale li[data-grade="E"]{background:#f97316}
.gauge-scale li[data-grade="F"]{background:#ef4444}
.gauge-scale li[data-grade="G"]{background:#b91c1c}
/* Result grid */
.result-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}
.metric{background:#0a3a2b;padding:12px;border-radius:12px;text-align:center;border:1px solid rgba(255,255,255,.08)}
.metric strong{display:block;font-size:22px}
/* Reco */
.reco-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.reco-card{background:#0a392b;border:1px solid rgba(255,255,255,.08);padding:14px;border-radius:14px}
.reco-card h4{margin:0 0 6px 0}
.reco-card .badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#094233;font-size:12px;margin-right:6px}
/* Profiles */
.profiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.profile{background:#0a392b;border:1px solid rgba(255,255,255,.08);padding:14px;border-radius:14px}
/* Footer */
.site-footer{border-top:1px solid rgba(255,255,255,.08);margin-top:40px;padding:12px 0;color:var(--muted)}
@media (max-width: 900px){
  .grid-2{grid-template-columns:1fr}
  .result-grid{grid-template-columns:repeat(2,1fr)}
  .reco-grid,.profiles{grid-template-columns:1fr}
}
