/* Polices hébergées localement (aucun appel à Google). */
@font-face{font-family:"Figtree";font-style:normal;font-weight:400;font-display:swap;src:url(vendor/fonts/figtree-400.woff2) format("woff2")}
@font-face{font-family:"Figtree";font-style:normal;font-weight:500;font-display:swap;src:url(vendor/fonts/figtree-500.woff2) format("woff2")}
@font-face{font-family:"Figtree";font-style:normal;font-weight:600;font-display:swap;src:url(vendor/fonts/figtree-600.woff2) format("woff2")}
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:500;font-display:swap;src:url(vendor/fonts/bricolage-500.woff2) format("woff2")}
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:700;font-display:swap;src:url(vendor/fonts/bricolage-700.woff2) format("woff2")}
/* Mise en page : une colonne mobile, contenu défilant, barre de navigation en bas. Palette lever de soleil sur la neige. */
:root{
  --bg:#F7F3EE; --surface:#FFFFFF; --ink:#1F3532; --muted:#5A6E6A; --line:#E4DDD3;
  --accent:#B95A12; --accent-ink:#FFFFFF; --accent-soft:#FBE6D2;
  --teal:#1F6F69; --teal-soft:#D9EEEB;
  --ok:#1F6F69; --prog:#8A6200; --todo:#A63D2F;
  --ok-soft:#D9EEEB; --prog-soft:#F8EBC8; --todo-soft:#F6DDD8;
  --font-display:"Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body:"Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#121D1B; --surface:#1B2B28; --ink:#EAF1EE; --muted:#9DB3AD; --line:#2B3F3B;
    --accent:#F0A15A; --accent-ink:#1A1209; --accent-soft:#3A2A1B;
    --teal:#6CC4BB; --teal-soft:#1F3A37;
    --ok:#6CC4BB; --prog:#E9C46A; --todo:#F29A8B;
    --ok-soft:#1F3A37; --prog-soft:#3A3217; --todo-soft:#43231F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"]{
  --bg:#121D1B; --surface:#1B2B28; --ink:#EAF1EE; --muted:#9DB3AD; --line:#2B3F3B;
  --accent:#F0A15A; --accent-ink:#1A1209; --accent-soft:#3A2A1B;
  --teal:#6CC4BB; --teal-soft:#1F3A37;
  --ok:#6CC4BB; --prog:#E9C46A; --todo:#F29A8B;
  --ok-soft:#1F3A37; --prog-soft:#3A3217; --todo-soft:#43231F;
  color-scheme: dark;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{background:var(--bg);color:var(--ink);font-family:var(--font-body);font-size:16px;line-height:1.5;display:flex;flex-direction:column}
h1,h2,h3{font-family:var(--font-display);font-weight:700;margin:0;text-wrap:balance;line-height:1.2}
h1{font-size:26px} h2{font-size:20px} h3{font-size:16px}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
#main{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}
.wrap{max-width:540px;margin:0 auto;padding:20px 16px 28px;display:flex;flex-direction:column;gap:16px}
.muted{color:var(--muted)} .small{font-size:13px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.between{justify-content:space-between}
.banner{background:var(--accent-soft);border-radius:12px;padding:10px 14px;font-size:14px}
.btn{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:10px 18px;font-weight:600;min-height:44px}
.btn.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.btn.ghost{background:transparent}
.btn.danger{color:var(--todo);border-color:var(--todo)}
.chip{border:1px solid var(--line);background:transparent;border-radius:999px;padding:7px 14px;font-size:14px;min-height:40px}
.chip[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent);font-weight:600}
.tag{display:inline-block;font-size:12px;padding:3px 10px;border-radius:999px;background:var(--teal-soft);color:var(--teal);font-weight:600}
.tag.warm{background:var(--accent-soft);color:var(--accent)}
label.f{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}
input[type=text],input[type=date],input[type=url],select,textarea{width:100%;border:1px solid var(--line);background:var(--bg);border-radius:12px;padding:10px 12px;font-weight:400;min-height:44px}
textarea{min-height:84px;resize:vertical}
.dots{display:flex;gap:6px}
.dot{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:transparent;padding:0;font-size:13px;font-weight:600;color:var(--muted)}
.dot[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.skill{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.skill span.n{font-weight:600;min-width:120px}
.bar{height:10px;border-radius:999px;background:var(--line);overflow:hidden}
.bar>i{display:block;height:100%;background:var(--teal);border-radius:999px}
.sess{padding:0}
.sess>button.head{width:100%;text-align:left;background:transparent;border:0;padding:16px;display:flex;flex-direction:column;gap:8px;border-radius:16px}
.sess .body{padding:0 16px 16px;display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--line)}
.sess .body h3{margin-top:10px}
.pill{display:inline-block;font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px;border:0}
.pill.ok{background:var(--ok-soft);color:var(--ok)} .pill.prog{background:var(--prog-soft);color:var(--prog)} .pill.todo{background:var(--todo-soft);color:var(--todo)} .pill.none{background:var(--line);color:var(--muted)}
.crit{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line)}
.crit:first-of-type{border-top:0}
.group{font-size:12px;font-weight:600;color:var(--muted);letter-spacing:.02em;margin-top:6px}
nav{background:var(--surface);border-top:1px solid var(--line);display:flex;justify-content:center;gap:6px;padding:8px 10px}
nav .in{display:flex;gap:6px;width:100%;max-width:540px;align-items:center}
nav button{flex:1;border:0;background:transparent;padding:10px 4px;border-radius:12px;font-weight:600;color:var(--muted);min-height:44px}
nav button[aria-current="page"]{color:var(--ink);background:var(--accent-soft)}
nav button.add{flex:1.4;background:var(--accent);color:var(--accent-ink)}
.stat{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.stat div{background:var(--bg);border-radius:12px;padding:10px 12px}
.stat b{font-family:var(--font-display);font-size:22px;display:block}
.err{color:var(--todo);font-size:14px;font-weight:600}
.ok-msg{color:var(--ok);font-size:14px;font-weight:600}
@media (prefers-reduced-motion: no-preference){ .bar>i{transition:width .3s} }
/* Écrans de connexion et compte */
.auth{max-width:420px;margin:0 auto;padding:40px 16px;display:flex;flex-direction:column;gap:16px;min-height:100%;justify-content:center}
.auth .tabs{display:flex;gap:6px;background:var(--line);border-radius:999px;padding:4px}
.auth .tabs button{flex:1;border:0;background:transparent;border-radius:999px;padding:10px;font-weight:600;color:var(--muted);min-height:44px}
.auth .tabs button[aria-selected="true"]{background:var(--surface);color:var(--ink)}
a{color:var(--teal)}
.linkbtn{background:none;border:0;padding:6px 0;color:var(--teal);text-decoration:underline;font-weight:600;min-height:44px;text-align:left}
input[type=email],input[type=password]{width:100%;border:1px solid var(--line);background:var(--bg);border-radius:12px;padding:10px 12px;font-weight:400;min-height:44px}
.legal{font-size:13px;color:var(--muted)}
