/*
 * DCLIK Pilot — système visuel.
 * Reprend la charte des maquettes de référence : violet de marque (#4333AF → #7A6BCB),
 * accent #947EFF, police Urbanist, cartes arrondies sur fond lavande.
 * Les textes utilisent le violet de marque (contraste AA sur blanc) ;
 * l'accent clair sert aux fonds, bordures et focus, pas au texte courant.
 */

@font-face {
    font-family: "Urbanist";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/urbanist-latin-ext-wght-normal-Fiw345y.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Urbanist";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/urbanist-latin-wght-normal-cjkyxmb.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --brand-start: #4333af;
    --brand-end: #7a6bcb;
    --brand: #4333af;
    --brand-hover: #35278f;
    --accent: #947eff;
    --accent-light: #b5a8ff;
    --accent-soft: #ece8ff;
    --canvas: #e9e4ff;

    --bg: #ffffff;
    --bg-muted: #f0f2f4;
    --text: #121212;
    --text-2: #2b2b2d;
    --text-soft: #5b5a66;
    --border: #dcd8ee;

    --success: #1b7f1a;
    --success-bg: rgba(51, 240, 47, 0.16);
    --danger: #b3213a;
    --danger-bg: rgba(240, 47, 79, 0.1);
    --warning: #9a5a12;
    --warning-bg: rgba(245, 165, 91, 0.2);

    --radius-s: 8px;
    --radius-m: 12px;
    --radius-l: 20px;
    --shadow: 0 8px 30px rgba(67, 51, 175, 0.1);

    --font: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text);
    background: linear-gradient(160deg, #f3f0ff 0%, var(--canvas) 55%, #dcd4ff 100%) fixed;
    min-height: 100vh;
}

h1, h2, h3 { line-height: 1.2; color: var(--text); margin: 0 0 0.5em; }
h1 { font-size: 1.5rem; font-weight: 700; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 16px; border-radius: var(--radius-s); z-index: 100; }
.skip-link:focus { left: 8px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── Coque applicative ───────── */

.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 16px; padding: 16px; min-height: 100vh; }

.sidebar {
    background: var(--bg-muted);
    border-radius: var(--radius-l);
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 16px;
    align-self: start;
    max-height: calc(100vh - 32px);
}

.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.25rem; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-start), var(--brand-end)); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.brand small { display: block; font-size: 0.72rem; font-weight: 600; color: var(--text-soft); line-height: 1.1; }

.nav { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius-m); color: var(--text-2); text-decoration: none; font-weight: 600; }
.nav a:hover { background: var(--accent-soft); }
.nav a[aria-current="page"] { background: linear-gradient(135deg, var(--brand-start), var(--brand-end)); color: #fff; }

.sidebar-user { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px 10px 0; border-top: 1px solid var(--border); font-size: 0.9rem; }
.sidebar-user strong { display: block; overflow-wrap: anywhere; }
.sidebar-user span { color: var(--text-soft); overflow-wrap: anywhere; }

.main { background: var(--bg); border-radius: var(--radius-l); box-shadow: var(--shadow); padding: 28px 32px 40px; min-width: 0; }
.main:focus { outline: none; }

.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--bg-muted); }
.page-head h1 { margin: 0; font-size: 1.75rem; }
.page-head .page-sub { color: var(--text-soft); margin: 4px 0 0; max-width: 62ch; }
.page-head .eyebrow { color: var(--text-soft); font-size: 0.9rem; font-weight: 600; margin: 0 0 2px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.breadcrumb { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 8px; }

/* ───────── Cartes, grilles ───────── */

.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 20px 22px; }
.card.soft { background: var(--bg-muted); border-color: transparent; }
.card > :last-child { margin-bottom: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .stat-value { font-size: 2rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.stat .stat-label { color: var(--text-soft); font-weight: 600; font-size: 0.92rem; }

.meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.meta dt { color: var(--text-soft); font-weight: 600; }
.meta dd { margin: 0; overflow-wrap: anywhere; }

.muted { color: var(--text-soft); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ───────── Boutons ───────── */

.btn {
    --btn-bg: var(--bg);
    --btn-fg: var(--brand);
    --btn-border: var(--accent-light);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 20px;
    border: 1.5px solid var(--btn-border); border-radius: var(--radius-m);
    background: var(--btn-bg); color: var(--btn-fg);
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--accent-soft); color: var(--brand-hover); }
.btn:active { background: #ddd5ff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.btn.primary { --btn-fg: #fff; --btn-border: transparent; background: linear-gradient(135deg, var(--brand-start), var(--brand-end)); }
.btn.primary:hover { background: linear-gradient(135deg, var(--brand-hover), #5d4eb8); color: #fff; }
.btn.primary:active { background: var(--brand-hover); }

.btn.danger { --btn-fg: var(--danger); --btn-border: #e9a9b5; }
.btn.danger:hover { background: var(--danger-bg); color: var(--danger); }

.btn.small { min-height: 36px; padding: 6px 14px; font-size: 0.92rem; }
.btn.block { width: 100%; }

/* ───────── Icônes ───────── */

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon.s16 { width: 16px; height: 16px; }
.icon.s24 { width: 24px; height: 24px; }

/* ───────── Formulaires ───────── */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 0.95rem; color: var(--text-2); }
.field .help { color: var(--text-soft); font-size: 0.88rem; margin: 0; }

input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], input[type="tel"], select, textarea {
    width: 100%; min-height: 44px; padding: 10px 14px;
    border: 1.5px solid var(--border); border-radius: var(--radius-m);
    background: var(--bg); color: var(--text); font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--accent-light); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid rgba(148, 126, 255, 0.35); outline-offset: 0; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.9rem; font-weight: 600; margin: 0; }

.check { flex-direction: row; align-items: center; gap: 10px; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.check label { font-weight: 600; }

.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.inline-form { display: inline; }

.search-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.search-bar input[type="search"] { flex: 1 1 240px; width: auto; }

/* ───────── Tableaux ───────── */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-m); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 12px 16px; vertical-align: middle; }
th { background: var(--bg-muted); font-size: 0.85rem; color: var(--text-soft); font-weight: 700; }
tbody tr + tr td { border-top: 1px solid var(--bg-muted); }
tbody tr:hover td { background: #faf9ff; }
td.actions { text-align: right; white-space: nowrap; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 0.92rem; color: var(--text-soft); }

/* ───────── Badges et alertes : jamais la couleur seule (texte + pastille) ───────── */

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; background: var(--accent-soft); color: var(--brand); white-space: nowrap; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge.success { background: var(--success-bg); color: var(--success); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.warning { background: var(--warning-bg); color: var(--warning); }
.badge.neutral { background: var(--bg-muted); color: var(--text-soft); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-m); margin-bottom: 16px; font-weight: 600; border: 1px solid transparent; }
.alert.success { background: var(--success-bg); color: var(--success); border-color: rgba(27, 127, 26, 0.25); }
.alert.error { background: var(--danger-bg); color: var(--danger); border-color: rgba(179, 33, 58, 0.25); }
.alert.warning { background: var(--warning-bg); color: var(--warning); border-color: rgba(154, 90, 18, 0.25); }
.alert.info { background: var(--accent-soft); color: var(--brand); border-color: var(--accent-light); }

.empty { text-align: center; padding: 36px 16px; color: var(--text-soft); border: 1.5px dashed var(--accent-light); border-radius: var(--radius-m); }
.empty strong { display: block; color: var(--text-2); margin-bottom: 4px; }

/* ───────── Authentification ───────── */

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(100%, 440px); background: var(--bg); border-radius: var(--radius-l); box-shadow: var(--shadow); padding: 36px 32px; }
.auth-card:focus { outline: none; }
.auth-card .brand { padding: 0; margin-bottom: 24px; }
.auth-card h1 { font-size: 1.75rem; }
.auth-foot { margin-top: 20px; font-size: 0.92rem; color: var(--text-soft); text-align: center; }

/* ───────── Adaptation mobile ───────── */

@media (max-width: 960px) {
    /* minmax(0, 1fr) : une colonne ne doit jamais s'élargir à cause d'un tableau large (défilement dans .table-wrap). */
    .shell { grid-template-columns: minmax(0, 1fr); padding: 10px; }
    .sidebar { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px; }
    .nav { flex-direction: row; flex-wrap: wrap; }
    .sidebar-user { margin-top: 0; flex-direction: row; align-items: center; flex-wrap: wrap; border-top: 0; padding: 0; margin-left: auto; }
    .main { padding: 20px 16px 32px; }
    .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
    .meta { grid-template-columns: 1fr; gap: 0; }
    .meta dt { margin-top: 10px; }
    .page-actions .btn { flex: 1 1 auto; }
    .auth-card { padding: 28px 20px; }
}

/* ───────── Questionnaire, documents ───────── */

fieldset.card { min-width: 0; }
fieldset.card legend { padding: 0 6px; }
.steps { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0 0 20px; font-weight: 700; color: var(--text-soft); }
.steps [aria-current="step"] { color: var(--brand); }
.save-status[data-state="ok"] { color: var(--success); font-weight: 700; }
.save-status[data-state="error"] { color: var(--danger); font-weight: 700; }
.save-status[data-state="pending"] { color: var(--text-soft); }
.link-retry { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--brand); text-decoration: underline; cursor: pointer; }
input[type="file"] { width: 100%; padding: 8px 0; font: inherit; }
progress { accent-color: var(--brand); }

/* ───────── Calendrier mensuel ───────── */

table.calendar { table-layout: fixed; min-width: 760px; }
table.calendar td { vertical-align: top; height: 7.5rem; border: 1px solid var(--bg-muted); padding: 6px 8px; font-size: 0.85rem; }
table.calendar td.out { background: #fafafa; color: var(--text-soft); }
table.calendar td.today { outline: 2px solid var(--accent); outline-offset: -2px; background: #faf9ff; }
table.calendar .day-number { font-weight: 800; display: block; margin-bottom: 4px; }
table.calendar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
table.calendar .badge { font-size: 0.72rem; padding: 1px 8px; }
code { background: var(--bg-muted); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* ───────── Formulaires : champs date/nombre, grille deux colonnes ───────── */

input[type="date"], input[type="datetime-local"], input[type="time"], input[type="number"], input[type="month"] {
    width: 100%; min-height: 44px; padding: 10px 14px;
    border: 1.5px solid var(--border); border-radius: var(--radius-m);
    background: var(--bg); color: var(--text); font: inherit;
}
input[type="date"]:hover, input[type="datetime-local"]:hover, input[type="time"]:hover, input[type="number"]:hover { border-color: var(--accent-light); }
input[type="date"]:focus, input[type="datetime-local"]:focus, input[type="time"]:focus, input[type="number"]:focus { border-color: var(--accent); outline: 3px solid rgba(148, 126, 255, 0.35); outline-offset: 0; }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="datetime-local"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.6; padding: 4px; border-radius: 6px; }
input[type="date"]::-webkit-calendar-picker-indicator:hover, input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover { opacity: 1; background: var(--bg-muted); }
.has-error input[type="date"], .has-error input[type="datetime-local"], .has-error input[type="number"] { border-color: var(--danger); }

.form-card { max-width: 980px; }
@media (min-width: 760px) {
    /* Formulaire = grille à deux colonnes ; le widget racine Symfony (div#nom) en est une aussi. Champs longs et blocs : pleine largeur. */
    .form-card form, .form-card form > div[id], form.form-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
    .form-card form > :not(.field), form.form-card > :not(.field), .form-card form > div[id] > :not(.field) { grid-column: 1 / -1; }
    .form-card form > .field:has(textarea, fieldset), form.form-card > .field:has(textarea), .form-card form > .check, form.form-card > .check, .form-card form > div[id] > .field:has(textarea), .form-card form > div[id] > .check { grid-column: 1 / -1; }
}
form.form-card, .form-card.narrow { max-width: 760px; }

/* ───────── Recherche dans l'annuaire des entreprises ───────── */

.company-search { margin-bottom: 20px; padding: 16px 18px; background: var(--bg-muted); border-radius: var(--radius-m); }
.company-search > label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--text-2); }
.company-search input[type="search"] { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-m); background: var(--bg); font: inherit; color: var(--text); }
.company-search input[type="search"]:focus { border-color: var(--accent); outline: 3px solid rgba(148, 126, 255, 0.35); }
.company-search .help { margin: 8px 0 0; color: var(--text-soft); font-size: 0.88rem; }
.company-results { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.company-result { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 10px 14px; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-m); font: inherit; color: var(--text); cursor: pointer; }
.company-result:hover, .company-result:focus-visible { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(148, 126, 255, 0.25); }
.company-line { font-size: 0.88rem; color: var(--text-soft); }

@media (min-width: 760px) {
    .form-card form > button, form.form-card > button, .form-card form > .btn, form.form-card > .btn { justify-self: start; }
}

/* Éditeur visuel du questionnaire d'un modèle (glisser-déposer) */
.qb-toolbar { display: flex; justify-content: flex-end; margin: -4px 0 4px; }
.qb-toolbar [role="group"] { display: inline-flex; gap: 6px; }
.qb-toolbar [aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.qb-board { display: grid; gap: 14px; border: 1px solid var(--border, #e4e3ee); border-radius: 14px; padding: 14px; background: var(--bg-muted, #f7f6fc); }
.qb-palette-title { margin: 0 0 8px; color: var(--text-soft); font-size: 0.88rem; }
.qb-types { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.qb-chip { cursor: grab; border: 1px dashed var(--accent); background: #fff; color: var(--brand); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 0.88rem; font-weight: 600; }
.qb-chip:hover, .qb-chip:focus-visible { background: var(--accent-soft); }
.qb-sections { display: grid; gap: 14px; }
.qb-section { background: #fff; border: 1px solid var(--border, #e4e3ee); border-radius: 12px; padding: 10px; position: relative; }
.qb-section-head, .qb-question-main { display: flex; align-items: center; gap: 8px; }
.qb-title { font-weight: 700; flex: 1; min-width: 0; }
.qb-label { flex: 1; min-width: 0; }
.qb-type { width: auto; flex: 0 0 auto; max-width: 11rem; }
.qb-required { display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; white-space: nowrap; }
.qb-questions { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; min-height: 36px; border-radius: 10px; }
.qb-question { border: 1px solid var(--border, #e4e3ee); border-radius: 10px; padding: 8px; background: #fff; display: grid; gap: 8px; position: relative; }
.qb-options { margin-left: 34px; min-height: 70px; }
.qb-handle { cursor: grab; border: 0; background: transparent; font-size: 1.2rem; line-height: 1; color: var(--text-soft); padding: 4px 6px; border-radius: 6px; }
.qb-handle:hover, .qb-handle:focus-visible { background: var(--accent-soft); color: var(--brand); }
.qb-icon { border: 1px solid var(--border, #e4e3ee); background: #fff; border-radius: 8px; min-width: 34px; min-height: 34px; cursor: pointer; font: inherit; }
.qb-icon:hover, .qb-icon:focus-visible { background: var(--accent-soft); }
.qb-danger { color: var(--danger); }
.qb-section-foot { display: flex; gap: 8px; align-items: center; }
.qb-section-foot select { width: auto; }
.qb-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qb-empty { margin: 0; padding: 10px; color: var(--text-soft); font-size: 0.9rem; }
.qb-problems { margin: 0; padding: 10px 14px 10px 30px; border-radius: 10px; background: var(--warning-bg); color: var(--warning); font-size: 0.9rem; }
.qb-problems[hidden], .qb-board[hidden] { display: none; }
.qb-error { margin-top: 8px; }
.qb-board.is-dragging .qb-question, .qb-board.is-dragging .qb-section { transition: box-shadow 0.1s; }
.qb-question.drop-before::before, .qb-section.drop-before::before, .qb-question.drop-after::after, .qb-section.drop-after::after { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--accent); }
.qb-question.drop-before::before, .qb-section.drop-before::before { top: -6px; }
.qb-question.drop-after::after, .qb-section.drop-after::after { bottom: -6px; }
.qb-questions.drop-inside { outline: 3px dashed var(--accent); outline-offset: -3px; background: var(--accent-soft); }
@media (max-width: 720px) { .qb-question-main { flex-wrap: wrap; } .qb-label { flex-basis: 100%; order: 5; } .qb-options { margin-left: 0; } }

/* Prochaines étapes d'un projet, avancement du questionnaire, choix d'un nouveau projet */
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border, #dcd8ee); }
.steps-list .steps-mark { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: var(--bg-muted); color: var(--text-soft); }
.steps-list .is-done { opacity: 0.8; }
.steps-list .is-done .steps-mark { background: var(--success-bg); color: var(--success); }
.steps-list .is-current { border-color: var(--accent); background: var(--accent-soft); }
.steps-list .is-current .steps-mark { background: var(--accent); color: #fff; }
.qs-summary { margin-bottom: 16px; display: grid; gap: 10px; }
.qs-summary p { margin: 0; }
.qs-bar { height: 10px; border-radius: 999px; background: var(--bg-muted); overflow: hidden; }
.qs-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.2s; }
.qs-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.qs-nav a { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border, #dcd8ee); text-decoration: none; font-weight: 600; }
.qs-nav a[aria-current="step"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.qs-chip { font-size: 0.8rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--brand); }
.qs-chip.warn { background: var(--warning-bg); color: var(--warning); }
.qs-nav a[aria-current="step"] .qs-chip { background: rgba(255, 255, 255, 0.25); color: #fff; }
.qs-chip[hidden] { display: none; }
.qs-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 16px; }
.qs-controls[hidden], fieldset[hidden] { display: none; }
.choice-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--border, #dcd8ee); border-radius: 12px; cursor: pointer; font-weight: 400; }
.choice-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

/* Menu du projet dans le menu latéral */
.project-nav { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.project-nav-title { margin: 0; display: grid; gap: 2px; padding: 0 6px; }
.project-nav-title span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); }
.project-nav-title a { font-weight: 700; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.project-nav-title a:hover { text-decoration: underline; }
.project-nav .nav a { padding: 8px 14px; }
.sidebar-link { color: var(--text-2); font-weight: 600; text-decoration: none; }
.sidebar-link:hover, .sidebar-link[aria-current="page"] { text-decoration: underline; color: var(--brand); }
@media (max-width: 960px) { .project-nav { border-top: 0; margin-top: 0; padding-top: 0; flex-basis: 100%; } .project-nav-title { display: flex; gap: 8px; align-items: baseline; } }
