@font-face { font-family: "Fredoka"; src: url(/fonts/fredoka-latin-wght-normal.woff2) format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Fredoka"; src: url(/fonts/fredoka-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1EFF; }
@font-face { font-family: "Figtree"; src: url(/fonts/figtree-latin-wght-normal.woff2) format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Figtree"; src: url(/fonts/figtree-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1EFF; }
:root { color-scheme: light dark; --green-900: #0f3a24; --green-700: #1d5c3a; --sun: #f5b82e; --sun-soft: #fff1c9;
  --bg: #f4f5ec; --bg-2: #ebeedf; --surface: #fff; --surface-2: #f0f3e6; --ink: #10261a; --ink-2: #44594a; --ink-3: #55695b; --line: rgba(16,38,26,.14);
  --brand: #1d5c3a; --brand-ink: #fff; --danger: #b23a26; --danger-ink: #fff; --ok: #2d7d2a; --focus: #1b6fd1; --shadow: 0 2px 4px rgba(16,38,26,.08), 0 14px 36px rgba(16,38,26,.12);
  --f-d: "Fredoka", "Segoe UI Rounded", system-ui, sans-serif; --f-b: "Figtree", "Segoe UI", system-ui, sans-serif; --r: 16px; }
@media (prefers-color-scheme: dark) { :root { --bg: #0a1810; --bg-2: #0d1f15; --surface: #12281b; --surface-2: #173222; --ink: #eef3e4; --ink-2: #b2c4b4; --ink-3: #8fa593; --line: rgba(238,243,228,.16); --brand: #7ccb5c; --brand-ink: #0a2417; --danger: #ff8a73; --danger-ink: #3a0d05; --ok: #7ccb5c; --focus: #7fb8ff; --shadow: 0 2px 4px rgba(0,0,0,.4), 0 14px 36px rgba(0,0,0,.5); } }
* { box-sizing: border-box; } html { scroll-behavior: smooth; } @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.6 var(--f-b); }
h1, h2, h3, h4 { font-family: var(--f-d); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); } h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 1.4em; } h3 { font-size: 1.2rem; margin-top: 1.2em; }
a { color: var(--brand); text-underline-offset: 3px; } a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; } .skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 99; }
.top { background: var(--green-900); color: #fff; position: sticky; top: 0; z-index: 20; } .bar { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 600 1.35rem var(--f-d); } .brand img { border-radius: 10px; }
nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; } nav a, nav button { color: #e8f2e2; text-decoration: none; padding: 8px 12px; border-radius: 999px; font: 600 .95rem var(--f-b); background: none; border: 0; cursor: pointer; }
nav a:hover, nav button:hover { background: rgba(255,255,255,.12); } nav a[aria-current="page"] { background: var(--sun); color: #2b1d00; } nav .who { color: #cfe6b8; font-size: .9rem; padding: 0 8px; }
.burger { display: none; margin-left: auto; background: none; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 10px; font-size: 1.3rem; padding: 4px 12px; cursor: pointer; }
@media (max-width: 760px) { .burger { display: block; } nav { display: none; width: 100%; flex-direction: column; align-items: stretch; margin: 0 0 12px; } nav.open { display: flex; } }
main { min-height: 70vh; outline: 0; padding-bottom: 64px; }
.hero { background: linear-gradient(160deg, var(--green-900), var(--green-700)); color: #fff; padding: 48px 0 56px; overflow: hidden; } .hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.hero p { font-size: 1.15rem; color: #dcebd2; max-width: 52ch; } .hero img { width: min(360px, 100%); justify-self: center; filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); }
@media (max-width: 760px) { .hero .wrap { grid-template-columns: 1fr; } .hero img { width: 220px; } }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; background: var(--brand); color: var(--brand-ink); font: 700 1rem var(--f-b); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); } .btn.sun { background: var(--sun); color: #2b1d00; } .btn.ghost { background: transparent; color: inherit; border-color: currentColor; } .btn.sm { padding: 6px 14px; font-size: .9rem; } .btn.danger { background: var(--danger); color: var(--danger-ink); } .btn[disabled] { opacity: .55; cursor: not-allowed; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; } .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; } .card h3 { margin-top: 0; } a.card { color: inherit; text-decoration: none; display: block; } a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); transition: .2s; }
.muted { color: var(--ink-3); } .small { font-size: .88rem; } .pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .8rem; font-weight: 700; border: 1px solid var(--line); } .pill.sun { background: var(--sun-soft); color: #5b3e00; border-color: transparent; } .pill.warn { background: #fde7e1; color: #8a2a18; }
section.block { padding: 40px 0 0; } .page { padding-top: 32px; } .narrow { max-width: 760px; }
.prose { font-size: 1.05rem; max-width: 70ch; } .prose h2 { margin-top: 1.6em; } .prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin: .25em 0; } .prose li.chk { list-style: none; margin-left: -1.1em; } .prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--sun); background: var(--surface-2); border-radius: 0 12px 12px 0; } .prose code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; } .prose pre { overflow: auto; }
.tw { overflow-x: auto; } table { border-collapse: collapse; width: 100%; background: var(--surface); } th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; } th { background: var(--surface-2); font-size: .9rem; }
label { display: block; font-weight: 700; margin: 14px 0 4px; } input, select, textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; } textarea { min-height: 220px; resize: vertical; line-height: 1.5; } input:focus, select:focus, textarea:focus { border-color: var(--focus); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); } .err { color: var(--danger); font-weight: 600; margin: 10px 0 0; min-height: 1.4em; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; } .tabs a { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: .92rem; } .tabs a[aria-current="true"] { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.cat { margin-top: 28px; } .lvl-debutant { background: #e1f3d8; color: #1c5a14; } .lvl-intermediaire { background: #fff1c9; color: #5b3e00; } .lvl-avance { background: #e6e0f7; color: #3b2a7a; }
@media (prefers-color-scheme: dark) { .lvl-debutant { background: #1f4a1a; color: #c8efb8; } .lvl-intermediaire { background: #4d3a0c; color: #ffe39a; } .lvl-avance { background: #34285e; color: #d7cdf7; } .pill.warn { background: #4a2018; color: #ffc3b6; } .pill.sun { background: #4d3a0c; color: #ffe39a; } }
.kato-say { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; } .kato-say img { width: 84px; flex: none; }
.kpi { font: 600 2rem var(--f-d); color: var(--brand); } .cmt { border-top: 1px solid var(--line); padding: 12px 0; } .cmt:first-child { border: 0; }
#toast { position: fixed; left: 16px; bottom: 16px; background: #0f3a24; color: #fff; padding: 10px 16px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .25s; max-width: min(420px, 90vw); z-index: 50; } #toast.on { opacity: 1; } #toast.bad { background: #8a2a18; }
.foot { background: var(--bg-2); border-top: 1px solid var(--line); padding: 24px 0; color: var(--ink-2); font-size: .92rem; } .foot p { margin: 4px 0; }
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .diff pre { white-space: pre-wrap; background: var(--surface-2); padding: 10px; border-radius: 10px; font: .85rem/1.45 ui-monospace, monospace; max-height: 320px; overflow: auto; margin: 0; } @media (max-width: 760px) { .diff { grid-template-columns: 1fr; } }
.steps { counter-reset: s; padding: 0; list-style: none; display: grid; gap: 12px; } .steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px 14px 60px; position: relative; } .steps li::before { content: counter(s); position: absolute; left: 16px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--sun); color: #2b1d00; display: grid; place-items: center; font: 700 1rem var(--f-d); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h2.ct { font-size: 1.2rem; margin: 8px 0 4px; }

/* transitions de page et apparition douce des cartes */
@keyframes pagein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#main > * { animation: pagein .38s cubic-bezier(.2, .7, .2, 1) both; }
#main .grid > *, #main .cards > *, #main .feats > * { animation: pagein .45s cubic-bezier(.2, .7, .2, 1) both; }
#main .grid > :nth-child(2), #main .cards > :nth-child(2), #main .feats > :nth-child(2) { animation-delay: .06s; }
#main .grid > :nth-child(3), #main .cards > :nth-child(3), #main .feats > :nth-child(3) { animation-delay: .12s; }
#main .grid > :nth-child(4), #main .cards > :nth-child(4), #main .feats > :nth-child(4) { animation-delay: .18s; }
#main .grid > :nth-child(n+5), #main .cards > :nth-child(n+5), #main .feats > :nth-child(n+5) { animation-delay: .24s; }

/* ---- connexion / inscription ---- */
.navcta { background: var(--sun); color: #2b1d00 !important; } nav a.navcta:hover { background: #ffd04f; }
main:has(.auth) { padding-bottom: 0; }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 64px); }
.auth-side { background: radial-gradient(900px 500px at 20% 0%, #2f7d4d 0%, transparent 60%), linear-gradient(160deg, var(--green-900), #164a2e); color: #fff; display: grid; align-items: center; padding: 48px 32px; }
.auth-in { max-width: 440px; margin-inline: auto; } .auth-in img { filter: drop-shadow(0 16px 22px rgba(0,0,0,.35)); margin-bottom: 8px; } .auth-in h1 { font-size: clamp(2rem, 4vw, 2.8rem); } .auth-in p { color: #dcebd2; font-size: 1.1rem; }
.auth-perks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; } .auth-perks li { padding-left: 30px; position: relative; color: #e8f2e2; } .auth-perks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b1d00' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat; } .auth-perks b { color: #fff; }
.auth-main { display: grid; place-items: center; padding: 32px 20px; } .auth-card { width: min(440px, 100%); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 999px; padding: 4px; margin-bottom: 22px; border: 1px solid var(--line); } .auth-tabs a:only-child { grid-column: 1 / -1; }
.auth-tabs a { text-align: center; padding: 10px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--ink-2); } .auth-tabs a[aria-selected="true"] { background: var(--brand); color: var(--brand-ink); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.auth-card input:not([type=checkbox]) { padding: 13px 14px; } .pw { position: relative; } .pw input { padding-right: 48px !important; } .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; } .eye:hover { background: var(--surface-2); } .eye[aria-pressed="true"] { color: var(--brand); }
.block-btn { width: 100%; justify-content: center; margin-top: 12px; padding: 14px; } .block-btn:disabled { opacity: .7; cursor: wait; }
.meter { height: 6px; border-radius: 9px; background: var(--surface-2); margin-top: 8px; overflow: hidden; } .meter i { display: block; height: 100%; width: 0; border-radius: 9px; background: var(--danger); transition: width .25s, background .25s; } .meter i[data-s="mid"] { background: #d99a12; } .meter i[data-s="high"] { background: var(--ok); }
label.chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin-top: 14px; } label.chk input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.auth-alt { text-align: center; margin: 16px 0 0; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-side { padding: 28px 20px; } .auth-in img { width: 110px; height: 110px; float: right; margin: 0 0 0 12px; } .auth-perks { display: none; } .auth-in p { font-size: 1rem; } .auth-in h1 { font-size: 1.8rem; } }

/* ---- administration ---- */
.adm { width: min(1240px, 100% - 32px); margin: 24px auto 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.adm-nav { position: sticky; top: 80px; display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; } .adm-nav hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }
.adm-t { font: 600 .85rem var(--f-d); color: var(--ink-3); margin: 4px 10px 6px; } .adm-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 700; } .adm-nav a:hover { background: var(--surface-2); } .adm-nav a[aria-current="page"] { background: var(--brand); color: var(--brand-ink); }
.adm-main h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); display: flex; align-items: center; gap: 12px; } .adm-main h2 { font-size: 1.3rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 8px 0 20px; } .kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 2px; } .kpi b { font: 600 2rem/1 var(--f-d); color: var(--brand); } .kpi span { font-weight: 700; color: var(--ink-2); } .kpi small { color: var(--ink-3); } .kpi.warn b { color: var(--danger); }
.adm-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; } .todo { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; } .todo a { display: block; padding: 10px 14px; border-radius: 12px; background: var(--sun-soft); color: #4a3200; text-decoration: none; font-weight: 600; } .todo b { font-size: 1.1rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; } .kv dt { color: var(--ink-3); } .kv dd { margin: 0; font-weight: 700; }
.chart { width: 100%; height: auto; } .chart .cbar { fill: var(--brand); } .chart text { fill: var(--ink-3); font-size: 10px; }
.adm-tools { margin: 6px 0 14px; } .adm-tools input { max-width: 360px; } .adm-tools select { width: auto; }
.adt { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); } .adt td, .adt th { vertical-align: middle; } .adt select { width: auto; padding: 6px 8px; } .adt .acts { white-space: nowrap; text-align: right; } .adt .acts .btn { margin-left: 4px; } tr[hidden] { display: none; }
.who { display: flex; gap: 10px; align-items: center; } .who small { display: block; color: var(--ink-3); } .av { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font: 600 1rem var(--f-d); flex: none; }
.danger-t { color: var(--danger); } .pwres { margin-top: 16px; border-color: var(--sun); background: var(--sun-soft); color: #3a2800; } .pwres code { font-size: 1.15rem; background: #fff; padding: 4px 10px; border-radius: 8px; margin-right: 8px; }
.adlg { border: 0; border-radius: var(--r); padding: 24px; width: min(440px, 92vw); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); } .adlg::backdrop { background: rgba(8, 20, 13, .55); } .adlg h2 { margin-top: 0; font-size: 1.4rem; } .btn.danger { background: var(--danger); color: var(--danger-ink); }
@media (max-width: 860px) { .adm { grid-template-columns: minmax(0, 1fr); gap: 14px; } .adm-nav { position: static; display: flex; overflow-x: auto; padding: 8px; } .adm-nav a { white-space: nowrap; } .adm-nav .adm-t, .adm-nav hr { display: none; } .adt .acts { white-space: normal; } }
