/* =====================================================================
   MonCvMonJob — design system (sans framework, ~25 Ko)
   Bleu royal #003C90 · émeraude #00A76F · polices auto-hébergées
   ===================================================================== */
@font-face { font-family: 'Inter'; src: url('../fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }

:root {
  --primary: #003c90; --primary-2: #0f52ba; --primary-soft: #e8efff; --on-primary: #fff;
  --accent: #00a76f; --accent-2: #4edea3; --accent-soft: #e3f8ef;
  --warn: #b45309; --warn-soft: #fef3c7; --danger: #ba1a1a; --danger-soft: #ffe4e1;
  --ink: #0b1220; --text: #1f2937; --muted: #5b6475; --faint: #8b93a3;
  --bg: #f4f6fb; --surface: #ffffff; --surface-2: #f1f4f9; --line: #e2e7f0; --line-2: #cfd6e3;
  --radius: 14px; --radius-sm: 10px; --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px -12px rgba(16,24,40,.12);
  --shadow-lg: 0 24px 60px -24px rgba(0,40,120,.35);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --cm-green: #007a5e; --cm-red: #ce1126; --cm-yellow: #fcd116;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #8fb2ff; --primary-2: #6d97ff; --primary-soft: #14213d; --on-primary: #06102a;
    --accent: #3ddc97; --accent-2: #4edea3; --accent-soft: #0f2a21;
    --warn: #fbbf24; --warn-soft: #2d2410; --danger: #ff8a80; --danger-soft: #3a1414;
    --ink: #f3f6fc; --text: #dce3ef; --muted: #9aa5b8; --faint: #6f7a8e;
    --bg: #0a0f1c; --surface: #111827; --surface-2: #172034; --line: #1f2a40; --line-2: #2a3754;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --primary: #8fb2ff; --primary-2: #6d97ff; --primary-soft: #14213d; --on-primary: #06102a;
  --accent: #3ddc97; --accent-2: #4edea3; --accent-soft: #0f2a21;
  --warn: #fbbf24; --warn-soft: #2d2410; --danger: #ff8a80; --danger-soft: #3a1414;
  --ink: #f3f6fc; --text: #dce3ef; --muted: #9aa5b8; --faint: #6f7a8e;
  --bg: #0a0f1c; --surface: #111827; --surface-2: #172034; --line: #1f2a40; --line-2: #2a3754;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.8rem, 4.5vw, 3.2rem); } h2 { font-size: clamp(1.4rem, 3vw, 2rem); } h3 { font-size: 1.15rem; } h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; } a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: .86rem; } .xs { font-size: .76rem; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; }
.center { text-align: center; } .right { text-align: right; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.stack > * + * { margin-top: 1rem; } .stack-sm > * + * { margin-top: .5rem; } .stack-lg > * + * { margin-top: 2rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: 1rem; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.tricolor { height: 3px; background: linear-gradient(90deg, var(--cm-green) 0 33.3%, var(--cm-red) 33.3% 66.6%, var(--cm-yellow) 66.6%); }

/* ---------- Boutons ---------- */
.btn { --b: var(--primary); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 42px; padding: .55rem 1.05rem; border-radius: 11px; border: 1px solid transparent; font: 600 .93rem/1 var(--font); cursor: pointer; text-decoration: none !important; transition: transform .12s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .input:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 40%, transparent); outline-offset: 2px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 8px 20px -10px var(--primary); }
:root[data-theme="dark"] .btn-primary { color: #06102a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #06102a; } }
.btn-primary:hover { box-shadow: 0 12px 28px -12px var(--primary); }
.btn-accent { background: linear-gradient(135deg, #00a76f, #00c389); color: #fff; box-shadow: 0 8px 20px -10px #00a76f; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.btn-sm { min-height: 34px; padding: .35rem .7rem; font-size: .84rem; border-radius: 9px; }
.btn-lg { min-height: 52px; padding: .8rem 1.5rem; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; cursor: pointer; }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; }
.field > label, .label { font-weight: 600; font-size: .86rem; color: var(--ink); }
.hint { font-size: .8rem; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; min-height: 44px; padding: .6rem .8rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent); }
.input-icon { position: relative; } .input-icon .ic { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--faint); } .input-icon .input { padding-left: 2.5rem; }
.otp-input { font: 700 1.6rem/1 var(--display); letter-spacing: .5em; text-align: center; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { margin-top: .25rem; accent-color: var(--primary); width: 16px; height: 16px; }
.hp { position: absolute !important; left: -9999px !important; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.error-text { color: var(--danger); font-size: .84rem; }

/* ---------- Cartes & éléments ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.card-lg { padding: 1.75rem; border-radius: var(--radius-lg); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card-link { display: block; color: inherit; transition: transform .15s, border-color .15s, box-shadow .2s; }
.card-link:hover { text-decoration: none; transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); box-shadow: var(--shadow-lg); }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge-primary { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.badge-accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.chip { display: inline-flex; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .84rem; color: var(--text); cursor: pointer; }
.chip.is-active, .chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); text-decoration: none; }
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); font-size: .92rem; }
.alert-success { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.alert-error { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.alert-warning { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.alert-info { background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.alert p { margin: 0; color: inherit; }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--faint); font-size: .8rem; margin: 1rem 0; } .divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty .ic { width: 42px; height: 42px; color: var(--faint); margin-bottom: .5rem; }
.kpi { display: flex; flex-direction: column; gap: .25rem; }
.kpi .kpi-label { font-size: .8rem; color: var(--muted); font-weight: 600; display: flex; gap: .4rem; align-items: center; }
.kpi .kpi-value { font: 700 1.7rem/1.1 var(--display); color: var(--ink); }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; } .progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: inherit; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); padding: .65rem .85rem; white-space: nowrap; }
.table td { padding: .7rem .85rem; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: 1.25rem; }
.tab { padding: .7rem 1rem; border: 0; background: none; color: var(--muted); font: 600 .92rem var(--font); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: .4rem; align-items: center; }
.tab.is-active, .tab:hover { color: var(--primary); border-bottom-color: var(--primary); text-decoration: none; }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.avatar { width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; font: 700 .9rem var(--display); color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); flex: none; overflow: hidden; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
details.disclosure { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; background: var(--surface); }
details.disclosure summary { cursor: pointer; font-weight: 600; color: var(--ink); }

/* Anneau de score (compatibilité IA) */
.score-ring { --v: 0; --c: var(--accent); width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--surface-2) 0); position: relative; flex: none; }
.score-ring::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface); }
.score-ring b { position: relative; font: 700 1.7rem var(--display); color: var(--ink); }
.score-ring small { position: absolute; bottom: 26px; font-size: .68rem; color: var(--muted); }

/* ---------- En-tête public ---------- */
.announce { background: linear-gradient(90deg, #002a66, var(--primary-2), #007a5e); color: #fff; font-size: .82rem; text-align: center; padding: .45rem 1rem; }
.announce a { color: #fff; text-decoration: underline; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font: 700 1.12rem var(--display); color: var(--ink); text-decoration: none !important; }
.logo img { height: 38px; width: auto; }
.logo .logo-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: grid; place-items: center; color: #fff; font-size: .8rem; }
.nav { display: none; gap: 1.3rem; } .nav a { color: var(--muted); font-weight: 500; font-size: .93rem; } .nav a:hover, .nav a.is-active { color: var(--primary); text-decoration: none; }
@media (min-width: 980px) { .nav { display: flex; } .menu-toggle { display: none !important; } }
.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; font-size: .78rem; font-weight: 700; }
.lang-switch a { padding: .35rem .55rem; color: var(--muted); } .lang-switch a.is-active { background: var(--primary); color: #fff; } .lang-switch a:hover { text-decoration: none; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: .75rem 0 1rem; } .mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: .65rem 0; color: var(--text); font-weight: 500; }

/* ---------- Héros ---------- */
.hero { position: relative; overflow: hidden; padding: 3.5rem 0 4rem; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(900px 500px at 85% -10%, color-mix(in srgb, var(--accent-2) 35%, transparent), transparent 60%), radial-gradient(800px 500px at -10% 10%, color-mix(in srgb, var(--primary-2) 30%, transparent), transparent 60%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); opacity: .7; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } .hero { padding: 5rem 0 5.5rem; } }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--muted); box-shadow: var(--shadow); }
.gradient-text { background: linear-gradient(120deg, var(--primary) 10%, var(--accent) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 40rem; }
.glass { background: color-mix(in srgb, var(--surface) 75%, transparent); backdrop-filter: blur(18px); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.trust-row { display: flex; gap: 1.25rem; flex-wrap: wrap; color: var(--muted); font-size: .86rem; } .trust-row span { display: inline-flex; gap: .4rem; align-items: center; } .trust-row .ic { color: var(--accent); }
.float { animation: float 6s ease-in-out infinite; } @keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float, .btn.is-loading::after { animation: none; } html { scroll-behavior: auto; } }
.section { padding: 4rem 0; } .section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; }
.feature { display: flex; flex-direction: column; gap: .6rem; }
.feature .f-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.feature .f-ic.accent { background: var(--accent-soft); color: var(--accent); }
.feature p { color: var(--muted); margin: 0; font-size: .93rem; }
.steps { counter-reset: s; } .step { position: relative; padding-left: 3.2rem; } .step::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 12px; display: grid; place-items: center; font: 700 1rem var(--display); color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.price-card { position: relative; display: flex; flex-direction: column; gap: 1rem; }
.price-card.is-popular { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.price-card .price { font: 700 2.2rem var(--display); color: var(--ink); } .price-card .price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; } .price-card li { display: flex; gap: .5rem; font-size: .92rem; } .price-card li .ic { color: var(--accent); margin-top: .15rem; }
.ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }

/* ---------- Offres ---------- */
.job-card { display: flex; gap: .9rem; align-items: flex-start; }
.job-card .job-logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font: 700 1.05rem var(--display); background: var(--primary-soft); color: var(--primary); flex: none; }
.job-card h3 { margin: 0 0 .2rem; font-size: 1.02rem; } .job-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; color: var(--muted); font-size: .83rem; } .job-meta span { display: inline-flex; gap: .3rem; align-items: center; }
.search-bar { display: grid; gap: .5rem; padding: .5rem; } @media (min-width: 640px) { .search-bar { grid-template-columns: 1.6fr 1fr auto; } } .search-bar.wide { } @media (min-width: 900px) { .search-bar.wide { grid-template-columns: 2fr 1.2fr 1fr 1fr auto; } }
.job-body { white-space: pre-line; overflow-wrap: anywhere; }

/* ---------- Application (connecté) ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 264px; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 50; transform: translateX(-100%); transition: transform .25s; }
.sidebar.is-open { transform: none; box-shadow: var(--shadow-lg); }
.sidebar-head { height: 66px; display: flex; align-items: center; padding: 0 1.1rem; border-bottom: 1px solid var(--line); }
.side-nav { flex: 1; overflow-y: auto; padding: .9rem .7rem; display: flex; flex-direction: column; gap: .15rem; }
.side-nav .group-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 700; padding: .9rem .7rem .35rem; }
.side-nav a { display: flex; align-items: center; gap: .7rem; padding: .62rem .75rem; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: .93rem; }
.side-nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.side-nav a.is-active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.side-nav a .badge { margin-left: auto; }
.sidebar-foot { padding: .9rem; border-top: 1px solid var(--line); }
.plan-box { padding: .85rem; border-radius: 12px; background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft)); font-size: .84rem; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: 62px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 0 16px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.page { padding: 1.5rem 16px 3rem; width: 100%; max-width: 1240px; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; }
.page-head p { margin: .3rem 0 0; color: var(--muted); }
.scrim { position: fixed; inset: 0; background: rgba(5,10,25,.45); z-index: 45; display: none; } .scrim.is-open { display: block; }
@media (min-width: 1024px) { .sidebar { transform: none; } .main { margin-left: 264px; } .menu-toggle { display: none !important; } .scrim { display: none !important; } .page { padding: 2rem 32px 3rem; } .topbar { padding: 0 32px; } }
.welcome { position: relative; overflow: hidden; color: #fff; border: 0; background: radial-gradient(600px 300px at 100% 0%, rgba(78,222,163,.45), transparent 60%), linear-gradient(135deg, #002a66, #0f52ba); }
.welcome h1, .welcome h2 { color: #fff; } .welcome p { color: rgba(255,255,255,.85); }
.quick { display: flex; flex-direction: column; gap: .55rem; }
.quick .q-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.list { display: flex; flex-direction: column; } .list > * { padding: .8rem 0; border-top: 1px solid var(--line); } .list > *:first-child { border-top: 0; }
.kanban { display: grid; gap: 1rem; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); overflow-x: auto; padding-bottom: .5rem; }
.kanban-col { background: var(--surface-2); border-radius: var(--radius); padding: .75rem; min-height: 200px; }
.kanban-col h3 { font-size: .86rem; display: flex; justify-content: space-between; margin: .2rem .3rem .75rem; }
.kanban-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .8rem; margin-bottom: .6rem; box-shadow: var(--shadow); }

/* ---------- Générateur & document ---------- */
.gen-layout { display: grid; gap: 1.25rem; } @media (min-width: 1100px) { .gen-layout { grid-template-columns: 420px 1fr; align-items: start; } .gen-layout .sticky { position: sticky; top: 80px; } }
.tpl-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); max-height: 380px; overflow-y: auto; padding: 2px; }
.tpl { border: 2px solid var(--line); border-radius: 12px; padding: .45rem; cursor: pointer; background: var(--surface); text-align: left; font: inherit; color: inherit; }
.tpl.is-active { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.tpl .mini { aspect-ratio: 210/297; border-radius: 6px; background: #fff; border: 1px solid #e5e7eb; overflow: hidden; position: relative; margin-bottom: .35rem; }
.tpl b { display: block; font-size: .76rem; color: var(--ink); line-height: 1.2; } .tpl span { font-size: .68rem; color: var(--muted); }
.swatches { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; padding: 0; }
.swatch.is-active { box-shadow: 0 0 0 2px var(--ink); }
.dropzone { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 1.4rem; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; display: block; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--primary); background: var(--primary-soft); }
.dropzone input { display: none; }
.mic-btn { position: absolute; right: .5rem; bottom: .5rem; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.mic-btn.is-on { background: var(--danger); color: #fff; border-color: var(--danger); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--danger) 25%, transparent); } }
.rel { position: relative; }
.doc-stage { background: var(--surface-2); border-radius: var(--radius-lg); padding: clamp(.5rem, 2vw, 2rem); overflow-x: auto; }
.doc-toolbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.ai-loading { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 3rem 1rem; text-align: center; }
.orb { width: 72px; height: 72px; border-radius: 50%; background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--primary-2), var(--primary)); animation: spin 1.6s linear infinite; mask: radial-gradient(circle, transparent 52%, #000 54%); }
[contenteditable="true"] { outline: 1px dashed color-mix(in srgb, var(--primary) 50%, transparent); outline-offset: 2px; border-radius: 3px; cursor: text; }
[contenteditable="true"]:focus { outline: 2px solid var(--primary); background: color-mix(in srgb, var(--primary) 6%, transparent); }

/* ---------- Authentification ---------- */
.auth-wrap { min-height: 100vh; display: grid; } @media (min-width: 980px) { .auth-wrap { grid-template-columns: 1fr 1fr; } }
.auth-side { display: none; position: relative; overflow: hidden; color: #fff; padding: 3rem; background: radial-gradient(700px 400px at 100% 100%, rgba(78,222,163,.45), transparent 60%), linear-gradient(150deg, #001a40, #003c90 60%, #0f52ba); }
.auth-side h2 { color: #fff; font-size: 2rem; } .auth-side p, .auth-side li { color: rgba(255,255,255,.82); }
@media (min-width: 980px) { .auth-side { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 16px; }
.auth-card { width: 100%; max-width: 430px; }
.method-btn { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .9rem 1rem; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); text-align: left; }
.method-btn:hover, .method-btn.is-active { border-color: var(--primary); background: var(--primary-soft); }
.method-btn .m-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary); flex: none; }
.codes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; font: 600 .98rem ui-monospace, monospace; }
.codes-grid span { padding: .5rem; border-radius: 8px; background: var(--surface-2); text-align: center; }
.qr-box { width: 200px; height: 200px; padding: 10px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.qr-box img, .qr-box svg { width: 100%; height: 100%; }

/* ---------- Pied de page ---------- */
.site-footer { background: #061022; color: #a9b4c8; padding: 3rem 0 1.5rem; margin-top: auto; font-size: .9rem; }
.site-footer h4 { color: #fff; font-size: .9rem; } .site-footer a { color: #a9b4c8; } .site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column; gap: .5rem; max-width: min(92vw, 380px); }
.toast { padding: .8rem 1rem; border-radius: 12px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); font-size: .9rem; animation: toast .25s ease-out; }
.toast.error { background: var(--danger); color: #fff; } .toast.success { background: #007a5e; color: #fff; }
@keyframes toast { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Mode économie de données ---------- */
html.data-saver .hero::before, html.data-saver .hero::after, html.data-saver .float { display: none; animation: none; }
html.data-saver img:not(.keep) { display: none; }
html.data-saver .glass { backdrop-filter: none; }
.offline-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--warn); color: #fff; text-align: center; padding: .5rem; font-size: .85rem; z-index: 99; display: none; }
html.is-offline .offline-banner { display: block; }

/* ---------- Impression ---------- */
@media print {
  body { background: #fff; }
  .no-print, .site-header, .site-footer, .sidebar, .topbar, .doc-toolbar, .toasts, .announce { display: none !important; }
  .main { margin: 0 !important; } .page, .doc-stage { padding: 0 !important; background: #fff !important; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo span span:first-child { color: #8fb2ff !important; } }
:root[data-theme="dark"] .logo span span:first-child { color: #8fb2ff !important; }

/* Miniatures du sélecteur de modèle */
.mini .m-band { position: absolute; left: 0; right: 0; top: 0; height: 22%; }
.mini .m-side { position: absolute; top: 0; bottom: 0; left: 0; width: 34%; }
.mini .m-line { position: absolute; height: 4%; border-radius: 2px; background: #e5e7eb; }
.mini .m-circle { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; }
.mini .m-rule { position: absolute; height: 2px; left: 10%; right: 10%; }
@media (min-width: 1200px) { .doc-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .doc-grid aside { position: sticky; top: 80px; } }
/* ---------- Console d'administration ---------- */
.admin-side { background: #070d1c; border-right-color: #141e36; }
.admin-side .sidebar-head { border-bottom-color: #141e36; }
.admin-side .side-nav a { color: #a8b3c7; }
.admin-side .side-nav a:hover { background: #111a2e; color: #fff; }
.admin-side .side-nav a.is-active { background: linear-gradient(90deg, rgba(15,82,186,.45), rgba(0,167,111,.18)); color: #fff; }
.admin-side .side-nav .group-label { color: #56627a; }
.admin-side .sidebar-foot { border-top-color: #141e36; }
.chart-box { position: relative; height: 260px; }
.sev-critical { color: var(--danger); font-weight: 700; } .sev-warning { color: var(--warn); font-weight: 600; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; } .filters .input { width: auto; min-width: 160px; }
.check-ok { color: var(--accent); } .check-ko { color: var(--danger); }
.btn-block { white-space: normal; text-align: center; }

.header-actions { flex-wrap: nowrap; }
@media (max-width: 639px) { .hide-sm { display: none !important; } .logo { font-size: 1rem; } .topbar .lang-switch { display: none; } }
