/* NOVAQ · applis gratuites : style commun (clair, bleu en accent) */
:root { --bg: #f5f7fa; --card: #fff; --fg: #0f172a; --muted: #5b6575; --line: #dfe6f0; --blue: #1d4ed8; --blue-d: #0b3d91; --blue-l: #eef3ff; --green: #0f9d58; --red: #b42318; --amber: #b45309; --r: 16px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.55 Manrope, "Segoe UI", system-ui, sans-serif; min-height: 100vh; }
h1, h2, h3 { font-family: Sora, Manrope, "Segoe UI", sans-serif; letter-spacing: -.01em; line-height: 1.2; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* barre du haut */
.ab { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0); }
.ab .in { max-width: 980px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ab-home { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--fg); font: 700 1.05rem Sora, sans-serif; letter-spacing: .12em; }
.ab-home img { width: 38px; height: 29px; object-fit: contain; }
.ab-r { display: flex; align-items: center; gap: 8px; }
.ab-site { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 6px 10px; border-radius: 8px; }
.ab-site:hover { background: var(--blue-l); color: var(--blue-d); }
.ab-lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.ab-lang a { padding: 5px 9px; font: 700 .8rem/1 Manrope, sans-serif; color: var(--muted); text-decoration: none; }
html:not([lang^="en"]) .ab-lang a[data-lang="fr"], html[lang^="en"] .ab-lang a[data-lang="en"] { background: var(--fg); color: #fff; }

/* bandeau photo */
.hero { position: relative; color: #fff; background: #0b1a33 var(--ph) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,18,45,.86) 0, rgba(6,18,45,.55) 55%, rgba(6,18,45,.2) 100%); }
.hero .in { position: relative; max-width: 980px; margin: 0 auto; padding: 34px 16px 30px; }
.hero h1 { margin: 10px 0 6px; font-size: clamp(1.7rem, 4.6vw, 2.6rem); }
.hero p { margin: 0; max-width: 52ch; color: #dbe6f7; font-size: 1.05rem; }
.pill { display: inline-block; font: 800 .74rem Manrope, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--green); border-radius: 999px; padding: 5px 11px; }

/* onglets */
.tabs { position: sticky; top: calc(46px + env(safe-area-inset-top, 0px)); z-index: 15; background: #fff; border-bottom: 1px solid var(--line); }
.tabs .in { max-width: 980px; margin: 0 auto; padding: 0 10px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs .in::-webkit-scrollbar { display: none; }
.tabs button { flex: none; background: none; border: 0; border-bottom: 3px solid transparent; padding: 13px 14px 11px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--blue-d); border-bottom-color: var(--blue); }

main { max-width: 980px; margin: 0 auto; padding: 22px 16px 30px; }
.panel[hidden] { display: none; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 18px 34px -28px rgba(10,40,110,.4); }
.card + .card { margin-top: 16px; }
.grid2 > .card + .card, .kids > .card + .card, .calc > .card + .card { margin-top: 0; }
.card h2 { margin: 0 0 12px; font-size: 1.15rem; }
.card h3 { margin: 0 0 8px; font-size: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 140px; min-width: 0; }
.row > .btn, .row > .btn2 { flex: 0 0 auto; }
label.f { display: grid; gap: 4px; font-weight: 600; font-size: .88rem; color: #334155; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]), select, textarea { width: 100%; background: #fff; border: 1px solid #cdd7e5; border-radius: 10px; padding: 10px 12px; font-size: 1rem; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid #93b4ff; outline-offset: 0; border-color: var(--blue); }
textarea { resize: vertical; min-height: 70px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--blue); color: #fff; border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: #1e40af; }
.btn2 { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #fff; color: var(--blue-d); border: 1px solid #bcd0f2; border-radius: 10px; padding: 10px 16px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn2:hover { background: var(--blue-l); }
.lnk { background: none; border: 0; padding: 4px 6px; color: var(--muted); cursor: pointer; font-weight: 600; font-size: .88rem; border-radius: 6px; }
.lnk:hover { color: var(--red); background: #fdeeee; }
.x { background: none; border: 0; width: 30px; height: 30px; border-radius: 8px; color: #94a3b8; cursor: pointer; font-size: 1.2rem; line-height: 1; flex: none; }
.x:hover { color: var(--red); background: #fdeeee; }

.acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* listes */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid #eef2f7; }
.list li:last-child { border-bottom: 0; }
.list li .grow { flex: 1; min-width: 0; }
.list li.done .grow { color: #94a3b8; text-decoration: line-through; }
.chk { width: 22px; height: 22px; accent-color: var(--blue); flex: none; cursor: pointer; }
.tag { display: inline-block; font-size: .76rem; font-weight: 700; color: var(--blue-d); background: var(--blue-l); border-radius: 999px; padding: 2px 9px; }
.tag.warn { color: var(--amber); background: #fff4e5; }
.tag.bad { color: var(--red); background: #fdeeee; }
.tag.ok { color: #0f7a43; background: #e6f6ee; }
.empty { color: var(--muted); text-align: center; padding: 18px 8px; }

/* chiffres */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.kpi .v { font: 700 1.5rem Sora, sans-serif; color: var(--fg); letter-spacing: -.01em; }
.kpi .l { color: var(--muted); font-size: .85rem; font-weight: 600; }
.kpi.big { background: linear-gradient(135deg, #0b3d91, #1d4ed8); border: 0; }
.kpi.big .v, .kpi.big .l { color: #fff; }
.bar { height: 10px; background: #e8eef7; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }

/* pied : installer, sauvegarder, avis */
.foot { max-width: 980px; margin: 0 auto; padding: 8px 16px 40px; }
.foot .card { display: grid; gap: 12px; }
.foot .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.foot p { margin: 0; }
.foot .sig { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 18px; }
.foot .sig a { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 600; z-index: 99; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); max-width: calc(100% - 32px); }

@media (max-width: 560px) {
  .ab-site { display: none; }
  .hero .in { padding: 26px 16px 22px; }
  .card { padding: 15px; }
}
@media print {
  .ab, .tabs, .foot, .hero, .noprint { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .panel[hidden] { display: none !important; }
}
