/* ==============================================
   Gestion2groupes — Feuille de style principale
   Charte graphique inspirée d'Inclusia (MEN)
   Bleu Éducation Nationale + tons inclusifs
   ============================================== */

/* --- VARIABLES & RESET --- */
:root {
    /* Palette Inclusia / Éducation Nationale */
    --primary:        #003189;   /* Bleu EN */
    --primary-light:  #e8eef8;
    --primary-mid:    #1e4db7;
    --primary-dark:   #001f5c;
    --accent:         #00a0e3;   /* Bleu ciel complémentaire */
    --accent-light:   #e0f4fc;

    /* Dimensions CPS */
    --cog-color:      #7c3aed;   /* Violet — cognitif */
    --cog-light:      #f3f0ff;
    --soc-color:      #0891b2;   /* Cyan — social */
    --soc-light:      #e0f9ff;
    --emo-color:      #d97706;   /* Ambre — émotionnel */
    --emo-light:      #fffbeb;

    /* États */
    --success:        #16a34a;
    --success-light:  #dcfce7;
    --danger:         #dc2626;
    --danger-light:   #fee2e2;
    --warning:        #d97706;
    --warning-light:  #fef9c3;

    /* Neutres */
    --bg:             #e3eaf3;
    --surface:        #ffffff;
    --border:         #d1dae8;
    --text-main:      #0f172a;
    --text-muted:     #5a6a7e;
    --text-light:     #94a3b8;
    --surface-2:      #f8fafc;
    --surface-3:      #f1f5f9;
    --text-body:      #334155;
    --text-soft:      #475569;

    /* Dimensions */
    --header-h:       64px;
    --sidebar-w:      280px;
    --radius:         10px;
    --radius-lg:      16px;
    --shadow-sm:      0 1px 4px rgba(0,49,137,.08);
    --shadow-md:      0 4px 16px rgba(0,49,137,.12);
    --shadow-lg:      0 10px 40px rgba(0,49,137,.16);
    --transition:     .18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ==============================
   EN-TÊTE APPLICATIF
   ============================== */
.app-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-mid) 100%);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 14px 20px 12px;
    gap: 14px 24px;
    box-shadow: var(--shadow-md);
    z-index: 200;
    flex-shrink: 0;
}

/* Brand */
.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    order: 1;
}
.header-home-link {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}
.header-home-link:hover .brand-logo {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(255,255,255,.12);
}
.header-home-link:hover .brand-text h1,
.header-home-link:focus-visible .brand-text h1 {
    text-decoration: underline;
}
.header-home-link:focus-visible {
    outline: 3px solid rgba(255,255,255,.35);
    outline-offset: 4px;
    border-radius: 12px;
}
.brand-logo {
    width: 40px; height: 40px;
    background: rgba(255,255,255,.15);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: white;
}
.brand-text h1 {
    font-size: 1.1rem; font-weight: 800; color: white;
    line-height: 1.1; letter-spacing: -.3px;
}
.brand-text span {
    font-size: .65rem; color: rgba(255,255,255,.7);
    text-transform: uppercase; letter-spacing: .5px;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 6px;
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    overflow-x: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,.18);
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }

.nav-btn {
    padding: 7px 13px;
    border: none;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.8);
    border-radius: 7px;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.nav-btn:hover { background: rgba(255,255,255,.2); color: white; }
.nav-btn.active { background: white; color: var(--primary); box-shadow: var(--shadow-sm); }

/* Sélecteur de classe */
.header-actions {
    flex-shrink: 0;
    order: 2;
    margin-left: auto;
}
.class-selector-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    padding: 6px 12px;
    border-radius: 8px;
}
.class-selector-wrap label {
    font-size: .75rem;
    color: rgba(255,255,255,.8);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}
/* v3.8.3 — sélecteur de classe active en GRIS CLAIR (mode clair) */
.class-selector-wrap select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #e2e8f0 !important;
    background-image: linear-gradient(135deg, #eef2f7, #dbe3ec) !important;
    border: 1px solid #b6c2d1 !important;
    border-radius: 6px;
    padding: 4px 28px 4px 10px;
    font-size: .82rem;
    color: #1e293b !important;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 14px -10px rgba(15,23,42,.45);
}

.class-selector-wrap select:focus {
    outline: none;
    background-color: #dbe3ec !important;
    background-image: linear-gradient(135deg, #e2e8f0, #cbd5e1) !important;
    box-shadow: 0 0 0 3px rgba(100,116,139,.28);
}

/* v3.8.3 — sélecteur de classe active en GRIS FONCÉ (mode sombre) */
body.theme-dark .class-selector-wrap select {
    background-color: #334155 !important;
    background-image: linear-gradient(135deg, #3b4a5f, #2b3849) !important;
    border: 1px solid #52627a !important;
    color: #e2e8f0 !important;
    box-shadow: 0 6px 14px -10px rgba(0,0,0,.6);
}

body.theme-dark .class-selector-wrap select:focus {
    outline: none;
    background-color: #3b4a5f !important;
    background-image: linear-gradient(135deg, #475569, #334155) !important;
    box-shadow: 0 0 0 3px rgba(148,163,184,.30);
}

body.theme-dark .class-selector-wrap select option {
    background: #1e293b;
    color: #e2e8f0;
}

.class-selector-wrap select option {
    color: #0f172a;
}

/* ==============================
   CONTENU PRINCIPAL
   ============================== */
.app-main {
    flex: 1;
    overflow: visible;
    position: relative;
}

/* Vues */
.view {
    display: none;
    height: auto;
    min-height: calc(100vh - 160px);
    overflow: visible;
    padding: 28px;
    animation: fadeInView .2s ease;
}
.view.active { display: block; }

@keyframes fadeInView {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.view-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.view-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ==============================
   CARDS / PANELS
   ============================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.card h3 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==============================
   GRILLE DES CLASSES
   ============================== */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.class-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.class-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.class-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.class-card.active-class {
    border-color: var(--primary);
    background: var(--primary-light);
}
.class-card-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}
.class-card-meta {
    font-size: .78rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.class-card-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.class-stat-badge {
    background: var(--primary-light);
    color: var(--primary);
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}
.class-card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: var(--transition);
}
.class-card:hover .class-card-actions { opacity: 1; }
.btn-icon-sm {
    width: 28px; height: 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.btn-icon-sm.danger { background: var(--danger-light); color: var(--danger); }
.btn-icon-sm.danger:hover { background: var(--danger); color: white; }
.btn-icon-sm.primary { background: var(--primary-light); color: var(--primary); }
.btn-icon-sm.primary:hover { background: var(--primary); color: white; }

/* ==============================
   TABLEAU DES ÉLÈVES
   ============================== */
.eleves-container { display: flex; flex-direction: column; gap: 12px; }

.eleves-filters {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eleves-table-wrap { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.data-table thead tr {
    background: var(--primary);
    color: white;
}
.data-table th {
    padding: 12px 16px;
    font-size: .78rem;
    font-weight: 700;
    text-align: left;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.data-table td {
    padding: 11px 16px;
    font-size: .85rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--primary-light); }
.td-empty { text-align: center; color: var(--text-muted); padding: 40px !important; }

/* Score CPS dans le tableau */
.score-bar-wrap { display: flex; align-items: center; gap: 8px; }
.score-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    flex: 1;
    overflow: hidden;
}
.score-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width .4s ease;
}
.score-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 28px;
    text-align: right;
}

/* Badges dimensions */
.dim-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: .72rem;
    font-weight: 600;
}
.dim-badge.cog { background: var(--cog-light); color: var(--cog-color); }
.dim-badge.soc { background: var(--soc-light); color: var(--soc-color); }
.dim-badge.emo { background: var(--emo-light); color: var(--emo-color); }

/* ==============================
   ÉVALUATION CPS
   ============================== */
.eval-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.eval-dimension {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    border-left: 4px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.eval-dimension.cog { border-left-color: var(--cog-color); }
.eval-dimension.soc { border-left-color: var(--soc-color); }
.eval-dimension.emo { border-left-color: var(--emo-color); }

.eval-dim-title {
    font-size: .85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.eval-dimension.cog .eval-dim-title { color: var(--cog-color); }
.eval-dimension.soc .eval-dim-title { color: var(--soc-color); }
.eval-dimension.emo .eval-dim-title { color: var(--emo-color); }

.eval-criterion {
    margin-bottom: 16px;
}
.eval-criterion-label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.3;
}
.eval-criterion-desc {
    font-size: .72rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-style: italic;
}

/* Échelle de notation (étoiles/niveaux) */
.eval-stars {
    display: flex;
    gap: 4px;
}
.eval-star {
    width: 32px; height: 32px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-light);
    transition: var(--transition);
    background: var(--bg);
}
.eval-star:hover { border-color: var(--primary); color: var(--primary); }
.eval-star.selected-1 { background: #fee2e2; border-color: #dc2626; color: #dc2626; }
.eval-star.selected-2 { background: #fef9c3; border-color: #ca8a04; color: #ca8a04; }
.eval-star.selected-3 { background: #dbeafe; border-color: #2563eb; color: #2563eb; }
.eval-star.selected-4 { background: #dcfce7; border-color: #16a34a; color: #16a34a; }

.eval-legend {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
    font-size: .68rem;
    color: var(--text-muted);
}
.eval-legend span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.legend-dot {
    width: 10px; height: 10px;
    border-radius: 3px;
}

/* Barre de score par dimension */
.dim-score-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.dim-score-bar .score-bar { height: 8px; }

/* ==============================
   GROUPES
   ============================== */
.groupes-cps-source {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.info-chip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: .78rem;
    line-height: 1.45;
    border: 1px solid transparent;
}
.info-chip.primary {
    background: var(--primary-light);
    color: var(--primary);
    border-color: rgba(0,49,137,.14);
}
.info-chip.warning {
    background: var(--warning-light);
    color: #8a5800;
    border-color: rgba(217,119,6,.22);
}
.groupes-coverage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.coverage-card {
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--border);
    background: white;
}
.coverage-card.success {
    background: var(--success-light);
    border-color: rgba(22,163,74,.16);
}
.coverage-card.warning {
    background: var(--warning-light);
    border-color: rgba(217,119,6,.16);
}
.coverage-card.neutral {
    background: #f8fafc;
}
.coverage-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}
.coverage-label {
    font-size: .72rem;
    color: var(--text-muted);
}
.groupes-help-text {
    font-size: .72rem;
    color: var(--text-muted);
}
.groupes-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

.groupes-config,
.groupes-result {
    grid-column: 1 / -1;
}

.groupes-config { overflow: visible; }

.groupes-result {
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    align-content: start;
}

.groupes-summary-card {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.groupes-summary-card h3 {
    color: var(--primary);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 6px;
}
.groupes-summary-card p {
    font-size: .82rem;
    color: var(--text-muted);
    max-width: 780px;
}
.groupes-summary-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.groupe-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.groupe-card:hover { box-shadow: var(--shadow-md); }

.groupe-card-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.groupe-card-subtitle {
    font-size: .75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.groupe-number {
    background: var(--primary);
    color: white;
    width: 22px; height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 800;
}

.groupe-eleves { display: flex; flex-direction: column; gap: 6px; }

.groupe-eleve-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: var(--bg);
    border-radius: 8px;
    font-size: .82rem;
}
.eleve-avatar {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    color: white;
    font-size: .7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.eleve-name { font-weight: 600; flex: 1; }
.eleve-score-mini {
    font-size: .68rem;
    color: var(--text-muted);
    background: var(--primary-light);
    padding: 1px 6px;
    border-radius: 6px;
}

/* Cohérence CPS du groupe */
.groupe-cps-bars {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.groupe-cps-bar-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .65rem;
    color: var(--text-muted);
}
.groupe-cps-bar-label { min-width: 24px; }
.groupe-cps-bar-track {
    flex: 1;
    height: 5px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.groupe-cps-bar-fill {
    height: 100%;
    border-radius: 3px;
}
.fill-cog { background: var(--cog-color); }
.fill-soc { background: var(--soc-color); }
.fill-emo { background: var(--emo-color); }

/* ==============================
   EMPLOI DU TEMPS
   ============================== */
.edt-grid-wrap { overflow: visible; max-height: none; }
.edt-grid-wrap.is-full-day { overflow: visible; max-height: none; }

.edt-grid {
    display: grid;
    grid-template-columns: 80px repeat(5, 1fr);
    grid-auto-rows: minmax(64px, auto);
    min-width: 680px;
    border-radius: var(--radius-lg);
    overflow: visible;
    box-shadow: var(--shadow-sm);
    background: var(--surface);
    border: 1px solid var(--border);
}

.edt-header-cell {
    background: var(--primary);
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.edt-time-cell {
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 8px;
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.edt-cell {
    padding: 6px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    min-height: 50px;
    vertical-align: top;
    cursor: default;
}
.edt-cell:last-child { border-right: none; }

.edt-seance {
    background: linear-gradient(135deg, var(--accent-light), var(--primary-light));
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 6px 8px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.edt-seance:hover { box-shadow: var(--shadow-sm); }
.edt-seance-title { font-weight: 700; }
.edt-seance-time { font-size: .65rem; color: var(--text-muted); }
.edt-seance-delete {
    position: absolute;
    top: 2px; right: 4px;
    font-size: .65rem;
    color: var(--danger);
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
}
.edt-seance:hover .edt-seance-delete { opacity: 1; }

/* ==============================
   HISTORIQUE
   ============================== */
.historique-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.histo-chart-wrap, .histo-radar-wrap {
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.histo-sessions { }

.session-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 8px;
    background: var(--bg);
    transition: var(--transition);
}
.session-item:hover { background: var(--primary-light); border-color: var(--primary); }

.session-date {
    font-size: .72rem;
    color: white;
    background: var(--primary);
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    font-weight: 700;
    min-width: 90px;
    text-align: center;
}

.session-info { flex: 1; }
.session-matiere { font-weight: 700; font-size: .85rem; color: var(--text-main); }
.session-scores { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }

/* ==============================
   PLAN DE CLASSE (hérité Plan2Classe)
   ============================== */
#view-plan {
    padding: 0;
    display: none;
    overflow: visible;
}
#view-plan.active { display: flex; flex-direction: column; overflow: visible; }

.plan-layout {
    display: flex;
    flex: 1;
    overflow: visible;
    height: auto;
    min-height: calc(100vh - 120px);
    align-items: flex-start;
}

.plan-sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    overflow-y: auto;
    max-height: calc(100vh - 24px);
    position: sticky;
    top: 12px;
    align-self: flex-start;
    z-index: 10;
}

.plan-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .95rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}
.plan-sidebar-brand i { font-size: 1.1rem; }

.panel {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.panel-title {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
}
.panel-inline-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.panel-help {
    font-size: .72rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.radio-group.compact {
    gap: 8px;
}

.layout-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: var(--border);
    padding: 3px;
    border-radius: 8px;
    gap: 3px;
}
.layout-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 7px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: var(--transition);
}
.layout-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.mode-switcher { display: flex; gap: 4px; }
.mode-btn {
    flex: 1;
    border: 1px solid var(--border);
    background: white;
    padding: 7px 4px;
    font-size: .7rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transition: var(--transition);
}
.mode-btn i { font-size: .9rem; }
.mode-btn:hover { background: var(--bg); }
.mode-btn.active { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
#plan-btn-archi.active { color: var(--danger); border-color: var(--danger); background: var(--danger-light); }

.plan-actions { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }

.plan-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
    position: relative;
    min-height: 0;
}

.plan-toolbar {
    height: 44px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.canvas-wrapper {
    flex: 1;
    padding: 30px;
    overflow: auto;
    display: flex;
    justify-content: safe center;
    align-items: flex-start;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 20px 20px;
}

#plan-export-area {
    background: white;
    padding: 30px;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.teacher-desk {
    width: 220px; height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: .7rem;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.classroom-container {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.row-group { display: flex; gap: 32px; justify-content: center; }

.mode-classic .table-block {
    display: grid;
    gap: 4px;
    padding: 6px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}

/* Sièges */
.seat {
    width: 88px; height: 52px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: grab;
    position: relative;
    transition: all .15s;
    user-select: none;
    text-align: center;
    font-size: .72rem;
    font-weight: 600;
    padding: 2px 4px;
    overflow: hidden;
    word-break: break-word;
    line-height: 1.1;
}
.seat:hover:not(.empty) { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.seat.drag-over { background: var(--primary-light); border-color: var(--primary); border-style: dashed; }
.seat.dragging { opacity: .5; }

.seat.is-void { opacity: 0; pointer-events: none; }
body.mode-archi .seat.is-void {
    opacity: .4;
    pointer-events: auto;
    background: repeating-linear-gradient(45deg, #fee2e2, #fee2e2 5px, #fff 5px, #fff 10px);
    border: 2px dashed var(--danger);
    cursor: pointer;
}
body.mode-archi .seat:not(.is-void) {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'><path fill='%23dc2626' d='M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z'/></svg>") 10 10, pointer;
}
body.mode-archi .seat:not(.is-void):hover { background: #fee2e2; }

.seat.locked { border: 2px solid var(--danger) !important; }
.seat.locked::after {
    content: '\f023';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -6px; right: -6px;
    background: var(--danger);
    color: white;
    font-size: 8px;
    padding: 2px;
    border-radius: 50%;
}

/* Parking */
.parking-dock {
    position: absolute;
    bottom: 16px; right: 16px;
    width: 300px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 45vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: all .3s ease;
}
.parking-header {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-size: .78rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--bg);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.parking-content { padding: 10px; overflow-y: auto; flex: 1; }
.parking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 5px;
}
.parking-grid .seat { width: 100%; height: 44px; font-size: .68rem; }
.parking-dock.minimized { max-height: 42px; overflow: hidden; }
.parking-dock.drag-hover { border: 2px dashed var(--primary); background: var(--primary-light); }

/* ==============================
   BOUTONS
   ============================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-mid));
    color: white;
    box-shadow: 0 2px 8px rgba(0,49,137,.2);
}
.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-mid), var(--primary-dark));
    box-shadow: 0 4px 12px rgba(0,49,137,.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    border: 1px solid var(--border);
    color: var(--text-main);
}
.btn-secondary:hover:not(:disabled) { background: var(--bg); border-color: var(--primary); color: var(--primary); }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }

.btn-full { width: 100%; }
.btn-sm { padding: 5px 12px; font-size: .78rem; }

/* ==============================
   FORMULAIRES
   ============================== */
.input-text, .input-search, .select-styled, .textarea-large {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .85rem;
    color: var(--text-main);
    background: white;
    transition: var(--transition);
    font-family: inherit;
}
.input-text:focus, .input-search:focus, .select-styled:focus, .textarea-large:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,49,137,.12);
    outline: none;
}
.textarea-large {
    min-height: 160px;
    resize: vertical;
    font-family: monospace;
    font-size: .82rem;
}

.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 5px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.range-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.range-group input[type="range"] {
    flex: 1;
    accent-color: var(--primary);
    cursor: pointer;
}
.range-group span {
    min-width: 110px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--primary);
}

.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.radio-option:hover { border-color: var(--primary); background: var(--primary-light); }
.radio-option input[type="radio"] { accent-color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.radio-option span { font-size: .82rem; line-height: 1.4; }

/* File drop zone */
.file-drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}
.file-drop-zone:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.file-drop-zone i { font-size: 2rem; margin-bottom: 8px; display: block; }
.file-drop-zone p { font-size: .85rem; }

/* ==============================
   MODALES
   ============================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    animation: fadeInModal .2s;
}
.modal-overlay.active { display: flex; }

@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
    background: white;
    width: 90%;
    max-width: 520px;
    max-height: 88vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    animation: slideUpModal .25s ease-out;
}
.modal-large { max-width: 680px; }
.modal-xl { max-width: 1100px; width: min(96vw, 1100px); }

@keyframes slideUpModal {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-close-btn {
    background: rgba(255,255,255,.2);
    border: none;
    color: white;
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.modal-close-btn:hover { background: rgba(255,255,255,.35); }

.modal-body { padding: 24px; overflow-y: auto; flex: 1; }

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    background: var(--bg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ==============================
   TABS
   ============================== */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: var(--bg);
    padding: 4px;
    border-radius: 8px;
}
.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}
.tab-btn.active { background: white; color: var(--primary); box-shadow: var(--shadow-sm); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ==============================
   UTILITAIRES
   ============================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
    grid-column: 1 / -1;
}
.empty-state i { font-size: 2.5rem; opacity: .35; }
.empty-state p { font-size: .9rem; line-height: 1.5; }

.stats-pill {
    font-size: .78rem;
    font-weight: 600;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
}

.badge-count {
    background: var(--primary);
    color: white;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}
.badge-success {
    background: var(--success);
    color: white;
    font-size: .78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
}

.help-text {
    background: var(--accent-light);
    border-left: 3px solid var(--accent);
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    font-size: .82rem;
    color: var(--text-main);
    margin-bottom: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.help-text i { color: var(--accent); margin-top: 2px; flex-shrink: 0; }

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.preview-list {
    max-height: 180px;
    overflow-y: auto;
    padding: 10px;
    background: var(--bg);
    border-radius: 8px;
    font-size: .82rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.preview-list li {
    padding: 4px 8px;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 6px;
}
.preview-list li i { color: var(--success); }

.text-muted { color: var(--text-muted); font-size: .85rem; }

code {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: .82rem;
}

/* ==============================
   TOAST
   ============================== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary-dark);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transition: transform .3s ease, opacity .3s ease;
    opacity: 0;
    white-space: nowrap;
}
.toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger);  }
.toast.warning { background: var(--warning); }

/* ==============================
   IMPRESSION
   ============================== */
@media print {
    .app-header, .plan-sidebar, .plan-toolbar, .parking-dock { display: none !important; }
    body, .app-main, #view-plan, .plan-layout, .plan-main, .canvas-wrapper {
        background: white !important;
        margin: 0 !important; padding: 0 !important;
        display: block !important; height: auto !important; overflow: visible !important;
    }
    #plan-export-area { box-shadow: none !important; border: none !important; margin: 0 auto; }
    .seat { border: 1px solid #000 !important; color: #000 !important; }
    .seat.is-void { display: none !important; }
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 900px) {
    .eval-layout { grid-template-columns: 1fr; }
    .groupes-layout { grid-template-columns: 1fr; }
    .historique-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .main-nav { gap: 2px; }
    .nav-btn { font-size: .7rem; padding: 6px 8px; }
    .nav-btn i { display: none; }
}
@media (max-width: 600px) {
    .app-header { padding: 10px; gap: 8px; }
    .header-actions { margin-left: 0; width: 100%; }
    .class-selector-wrap { width: 100%; justify-content: space-between; }
    .main-nav { order: 3; width: 100%; }
    .view { padding: 16px; min-height: auto; }
    .plan-layout { flex-direction: column; }
    .plan-sidebar { width: 100%; min-width: 0; max-height: none; position: static; }
}

.export-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.export-btn i {
    color: #b91c1c;
}

.export-btn[data-format="docx"] i {
    color: #1d4ed8;
}

.export-btn:disabled {
    opacity: .7;
    cursor: wait;
}

.export-field-value,
.export-value-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text-main);
    font-size: .82rem;
}

.export-value-chip {
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
}

.export-radio-mark {
    color: var(--success);
    font-weight: 800;
}

.view,
.plan-sidebar,
.plan-main,
.canvas-wrapper,
#view-plan.active,
body {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,49,137,.35) transparent;
}

.view::-webkit-scrollbar,
.plan-sidebar::-webkit-scrollbar,
.plan-main::-webkit-scrollbar,
.canvas-wrapper::-webkit-scrollbar,
#view-plan.active::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.view::-webkit-scrollbar-thumb,
.plan-sidebar::-webkit-scrollbar-thumb,
.plan-main::-webkit-scrollbar-thumb,
.canvas-wrapper::-webkit-scrollbar-thumb,
#view-plan.active::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: rgba(0,49,137,.28);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.view::-webkit-scrollbar-track,
.plan-sidebar::-webkit-scrollbar-track,
.plan-main::-webkit-scrollbar-track,
.canvas-wrapper::-webkit-scrollbar-track,
#view-plan.active::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: transparent;
}

/* ==============================================
   Gestion2groupes — améliorations Plan de classe
   ============================================== */
.plan-toolbar {
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 56px;
    height: auto;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 3;
}
.stats-pill.muted {
    background: #eef2ff;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
#plan-export-area {
    position: relative;
    width: min(100%, 1120px);
    min-height: 820px;
    padding: 96px 48px 48px;
    align-items: stretch;
    overflow: visible;
}
#plan-export-area.room-format-landscape {
    max-width: 1120px;
    min-height: 820px;
}
#plan-export-area.room-format-portrait {
    max-width: 820px;
    min-height: 1120px;
}
.teacher-desk {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: none;
    width: 260px;
    height: 46px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 14px;
    border-radius: 10px;
    cursor: grab;
    z-index: 5;
    box-shadow: 0 10px 24px rgba(0,49,137,.18);
}
.teacher-desk.dragging {
    cursor: grabbing;
    opacity: .92;
}
.teacher-desk-rotate {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.24);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    line-height: 1;
    padding: 0;
    z-index: 2;
}
.teacher-desk-rotate:hover {
    background: rgba(255,255,255,.4);
}
.teacher-desk-rotate {
    width: 24px;
    height: 24px;
    margin-left: 4px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    color: inherit;
    cursor: ew-resize;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    touch-action: none;
}
.teacher-desk-rotate:hover, .teacher-desk-rotate:focus-visible { background: rgba(255,255,255,.38); }
.teacher-desk-handle {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.teacher-desk-label {
    letter-spacing: 1.4px;
}
.classroom-container {
    margin-top: 18px;
    width: 100%;
    min-height: 100%;
}
.row-group {
    flex-wrap: wrap;
}
.u-top-row {
    width: 100%;
    justify-content: center;
}
.u-row-group {
    width: min(100%, 980px);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
}
.u-spacer {
    min-height: 32px;
}
.draggable-table {
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.draggable-table:hover {
    transform: translateY(-1px);
}
.table-controls {
    position: absolute;
    top: -13px;
    right: -13px;
    display: flex;
    gap: 6px;
    z-index: 4;
}
.table-drag-handle,
.table-rotate-btn,
.table-delete-btn {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: white;
    border: 1px solid var(--border);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.table-drag-handle {
    cursor: grab;
}
.table-drag-handle:active {
    cursor: grabbing;
}
.table-rotate-btn,
.table-delete-btn {
    cursor: pointer;
}
.table-rotate-btn:hover {
    background: var(--primary-light);
}
.table-delete-btn {
    color: var(--danger);
}
.table-delete-btn:hover {
    background: #fee2e2;
    border-color: #fecaca;
}
.table-drop-target {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(0,49,137,.12), var(--shadow-md) !important;
    background: #eef4ff !important;
}
.table-dragging {
    opacity: .65;
}
.mode-classic .table-block,
.mode-u .table-block {
    min-width: 108px;
}
.mode-classic .table-block.table-horizontal,
.mode-u .table-block.table-horizontal {
    align-items: stretch;
    width: auto;
    min-width: 138px;
    padding: 10px 9px;
}
.mode-classic .table-block.table-vertical,
.mode-u .table-block.table-vertical {
    width: auto;
    min-width: 138px;
    padding: 10px 9px;
}
.seat small {
    font-size: .65rem;
    font-weight: 500;
}
.seat-group-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: .62rem;
    font-weight: 800;
    color: white;
    background: var(--primary);
    border-radius: 999px;
    padding: 2px 6px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,49,137,.18);
}
.seat-has-group {
    position: relative;
}
@media print {
    #plan-export-area {
        width: 100% !important;
        max-width: none !important;
        min-height: auto !important;
        padding-top: 88px !important;
        overflow: visible !important;
    }
    .table-controls { display: none !important; }
}

/* ==============================
   CLASSES — BLOCS FUSIONNÉS
   ============================== */
.class-details-section {
    margin-top: 24px;
}

.class-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.class-details-header h3 {
    margin-bottom: 4px;
    color: var(--primary);
    text-transform: none;
    font-size: 1.1rem;
    letter-spacing: 0;
}

.class-details-subtitle,
.block-subtitle {
    font-size: .8rem;
    color: var(--text-muted);
}

.class-details-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.class-details-grid {
    display: grid;
    grid-template-columns: 1.15fr .95fr;
    gap: 20px;
    align-items: start;
}

.class-block {
    min-height: 100%;
}

.block-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.block-header h3 {
    margin-bottom: 6px;
}

/* ==============================
   ÉVALUATION CPS — DEUX BLOCS
   ============================== */
.eval-blocks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.eval-block {
    padding: 18px;
}

.eval-block-header {
    margin-bottom: 14px;
}

.eval-block-header h3 {
    color: var(--primary);
    margin-bottom: 4px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
}

.eval-block-header p {
    color: var(--text-muted);
    font-size: .78rem;
}

.eval-layout.eval-layout-stacked {
    grid-template-columns: 1fr;
    gap: 14px;
}

.eval-dim-subtitle {
    font-size: .72rem;
    color: var(--text-muted);
    margin: -8px 0 12px;
}

/* ==============================
   RESPONSIVE AJUSTEMENTS
   ============================== */
@media (max-width: 1100px) {
    .class-details-grid,
    .eval-blocks-grid,
    .historique-layout,
    .groupes-layout,
    .eval-layout,
    .groupes-coverage-grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   AJUSTEMENTS V6 — DEMANDE CLIENT
   ============================== */
.class-details-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.class-block {
    min-width: 0;
}
.eleves-table-wrap,
#edt-container,
.edt-grid-wrap {
    width: 100%;
}
.edt-grid {
    min-width: 100%;
}
.edt-week-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-light), #fff);
}
.edt-week-label strong {
    display: block;
    color: var(--primary);
}
.edt-week-label span {
    color: var(--text-muted);
    font-size: .8rem;
}
.edt-header-cell small {
    display: block;
    margin-top: 4px;
    font-size: .7rem;
    color: rgba(255,255,255,.82);
}

.eval-download-card {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.eval-download-card h3 {
    margin-bottom: 6px;
    color: var(--primary);
    text-transform: none;
    letter-spacing: 0;
}
.eval-download-card p {
    color: var(--text-muted);
    font-size: .82rem;
}

.groupes-layout {
    grid-template-columns: 1fr;
}
.groupes-config {
    width: 100%;
}
.groupes-config-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.groupes-actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.groupes-actions-row .btn {
    flex: 1 1 220px;
}

.school-calendar-wrap,
.week-details-wrap {
    margin-bottom: 20px;
}
.school-calendar-wrap h3,
.week-details-wrap h3 {
    color: var(--primary);
    text-transform: none;
    letter-spacing: 0;
}
.school-calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.school-calendar-caption {
    font-size: .82rem;
    color: var(--text-muted);
    font-weight: 600;
}
.school-calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.school-month-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    background: #fff;
}
.school-month-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: .95rem;
}
.school-week-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.school-week-btn {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    padding: 8px 10px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.school-week-btn strong {
    color: var(--primary);
    font-size: .82rem;
}
.school-week-btn span {
    color: var(--text-muted);
    font-size: .74rem;
}
.school-week-btn.current {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(0,160,227,.25);
}
.school-week-btn.selected,
.active-filter {
    background: var(--primary-light) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}
.week-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.week-detail-header p {
    color: var(--text-muted);
    font-size: .82rem;
    margin-top: 6px;
}
.week-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.history-group-record + .history-group-record {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.history-group-record-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: .78rem;
}
.history-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}
.history-group-card {
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: 12px;
    padding: 10px 12px;
}
.history-group-name {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}
.history-group-card ul {
    padding-left: 18px;
    color: var(--text-main);
    font-size: .82rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.history-eval-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.history-eval-card {
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: 12px;
    padding: 12px;
}
.history-eval-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.history-eval-head strong {
    color: var(--primary);
}
.history-eval-head span,
.history-eval-note {
    color: var(--text-muted);
    font-size: .78rem;
}
.history-eval-note {
    margin-top: 8px;
}

.classroom-container {
    position: relative;
    min-height: 620px;
}
.draggable-table {
    position: absolute;
}
.table-controls {
    cursor: default;
}
.table-drag-handle {
    cursor: grab;
}
.table-drag-handle:active,
.table-dragging .table-drag-handle {
    cursor: grabbing;
}
.plan-toolbar {
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    height: auto;
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.quick-adjust-help {
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: .82rem;
}
.quick-adjust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.quick-adjust-card {
    border: 1px solid var(--border);
    border-left: 4px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    background: var(--bg);
}
.quick-adjust-card.cog { border-left-color: var(--cog-color); }
.quick-adjust-card.soc { border-left-color: var(--soc-color); }
.quick-adjust-card.emo { border-left-color: var(--emo-color); }
.quick-adjust-card h3 {
    margin-bottom: 12px;
    text-transform: none;
    letter-spacing: 0;
}
.quick-adjust-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid rgba(148,163,184,.22);
}
.quick-adjust-row:first-of-type {
    border-top: none;
    padding-top: 0;
}
.quick-adjust-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.quick-adjust-meta strong {
    font-size: .82rem;
    color: var(--text-main);
}
.quick-adjust-meta span {
    font-size: .72rem;
    color: var(--text-muted);
}
.quick-adjust-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.quick-adjust-score {
    min-width: 26px;
    text-align: center;
    font-weight: 800;
    color: var(--primary);
}

#modal-plan-cps .modal-body {
    padding: 28px;
}

#modal-plan-cps .quick-adjust-grid {
    gap: 18px;
}

@media (max-width: 1200px) {
    .school-calendar-grid,
    .quick-adjust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .groupes-config-grid,
    .week-detail-grid,
    .school-calendar-grid,
    .quick-adjust-grid {
        grid-template-columns: 1fr;
    }
    .plan-toolbar {
        align-items: flex-start;
    }
}

/* ==============================
   Pépite — finitions visuelles et ergonomiques
   ============================== */
.brand-logo {
    background: linear-gradient(135deg, #dff4ff 0%, #c0ecff 48%, #eaf2ff 100%);
    color: var(--primary);
}
.brand-logo i {
    text-shadow: 0 6px 18px rgba(0,49,137,.16);
}
.groupes-layout {
    grid-template-columns: 1fr;
}
.groupes-config-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.groupes-config-intro {
    color: var(--text-muted);
    font-size: .83rem;
    max-width: 760px;
}
.groupes-config-head #groupes-cps-source:empty {
    display: none;
}
.groupes-config-head #groupes-cps-source {
    flex: 1 1 320px;
    min-width: 280px;
}
.group-size-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
#group-size-input {
    max-width: 120px;
    font-weight: 700;
}
.group-size-label {
    font-size: .82rem;
    color: var(--primary);
    font-weight: 700;
}
.field-help {
    margin-top: 8px;
    font-size: .74rem;
    color: var(--text-muted);
}
.groupes-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.groupes-choice-card {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    min-height: 100%;
}
.groupes-choice-card > label {
    display: block;
    margin-bottom: 12px;
}
.plan-group-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.plan-groupes-status {
    border: 1px dashed rgba(0,49,137,.18);
    background: rgba(0,49,137,.04);
    color: var(--text-muted);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: .78rem;
    line-height: 1.45;
}
.plan-groupes-status strong {
    color: var(--primary);
}
.plan-groupes-status.is-ready {
    border-style: solid;
    border-color: rgba(0,160,227,.24);
    background: rgba(0,160,227,.08);
}
#plan-apply-groups-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
}
.canvas-wrapper {
    align-items: flex-start;
}
#plan-export-area {
    width: min(100%, 1120px);
}
.classroom-container {
    margin: 18px auto 0;
}
.app-footer {
    padding: 14px 24px 24px;
    background: transparent;
}
.app-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}
.app-footer-inner a {
    color: var(--primary);
    text-decoration: none;
}
.app-footer-inner a:hover {
    text-decoration: underline;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 1100px) {
    .groupes-layout,
    .groupes-choice-grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   Pépite V10.1 — Historique compact + exports data
   ============================== */
.historique-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 20px;
}

.histo-chart-wrap,
.histo-radar-wrap {
    width: min(100%, 650px);
    min-width: min(100%, 650px);
    height: 550px;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    padding: 16px 18px 18px;
}

.histo-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.histo-panel-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.histo-panel-title h3 {
    margin-bottom: 0;
}

.histo-panel-title p {
    margin: 0;
    font-size: .8rem;
    color: var(--text-muted);
}

.chart-panel-export-actions {
    gap: 8px;
}

.chart-panel-export-actions .btn {
    padding: 8px 12px;
}

.chart-card-body {
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-card-body canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-placeholder {
    text-align: center;
    padding: 0 18px;
    font-size: .88rem;
    line-height: 1.5;
}

.school-month-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.school-month-btn {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.school-month-btn strong {
    color: var(--primary);
    font-size: .84rem;
}

.school-month-btn span {
    color: var(--text-muted);
    font-size: .72rem;
}

.school-month-btn.selected {
    background: var(--primary-light);
    border-color: var(--primary);
}

.school-weeks-panel {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(0,49,137,.04), rgba(255,255,255,1));
}

.school-weeks-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.school-weeks-head strong {
    display: block;
    color: var(--primary);
    font-size: .9rem;
    margin-bottom: 4px;
}

.school-weeks-head span {
    color: var(--text-muted);
    font-size: .78rem;
}

.school-week-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.school-week-btn.compact {
    min-width: 118px;
    padding: 8px 10px;
}

.school-calendar-hint {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: .82rem;
}

@media (max-width: 1400px) {
    .school-month-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .histo-chart-wrap,
    .histo-radar-wrap {
        min-width: 100%;
        width: 100%;
        height: 550px;
    }

    .school-month-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .school-week-pills {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .school-week-btn.compact {
        min-width: 0;
    }

    .histo-chart-wrap,
    .histo-radar-wrap {
        height: 500px;
        min-height: 500px;
    }
}

/* ==============================
   QR mobile & auto-évaluation smartphone
   ============================== */
.mobile-share-grid,
.mobile-import-grid {
    display: grid;
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: 18px;
    align-items: start;
}

.mobile-qrcode-card,
.mobile-import-scanner-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.mobile-qr-canvas-wrap {
    width: 280px;
    max-width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--border);
    box-shadow: inset 0 0 0 1px rgba(0,49,137,.03);
}

.mobile-qr-canvas-wrap canvas {
    max-width: 100%;
    height: auto;
}

.mobile-share-panel,
.mobile-import-side {
    display: grid;
    gap: 14px;
}

.mobile-share-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.mobile-share-meta,
.mobile-share-caption,
.mobile-import-status,
.mobile-helper-text,
.mobile-criterion-hint,
.mobile-result-caption,
.mobile-result-help {
    color: var(--text-muted);
    line-height: 1.5;
}

.mobile-share-steps ol {
    padding-left: 18px;
    color: var(--text-main);
    display: grid;
    gap: 8px;
}

.mobile-share-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.mobile-auto-share-wrap {
    margin-bottom: 16px;
}

.mobile-auto-share-card,
.mobile-auto-share-empty {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.mobile-auto-share-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: center;
}

.mobile-auto-share-qr-wrap {
    width: 200px;
    max-width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--border);
}

.mobile-auto-share-qr-wrap canvas {
    max-width: 100%;
    height: auto;
}

.mobile-auto-share-head h3 {
    color: var(--primary);
    margin-bottom: 6px;
}

.mobile-share-students-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mobile-student-share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.mobile-student-share-card {
    display: grid;
    gap: 12px;
    align-content: start;
}

.mobile-student-share-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
}

.mobile-student-share-head h3 {
    margin-bottom: 4px;
    color: var(--primary);
}

.mobile-student-share-head p,
.mobile-student-share-label {
    color: var(--text-muted);
}

.mobile-share-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--primary);
    font-weight: 700;
    font-size: .8rem;
    white-space: nowrap;
}

.mobile-student-share-qr-wrap {
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    min-height: 290px;
}

.mobile-student-share-iframe {
    width: 100%;
    height: 290px;
    border: 0;
    display: block;
    background: #fff;
}

.mobile-student-share-label {
    display: block;
    font-weight: 700;
    margin-bottom: -4px;
}

.mobile-import-reader {
    width: 100%;
    min-height: 280px;
    border-radius: 18px;
    overflow: hidden;
    background: #0f172a;
}

.mobile-import-reader video {
    border-radius: 18px;
}

.mobile-import-text {
    min-height: 140px;
}

.mobile-import-log {
    display: grid;
    gap: 10px;
}

.mobile-import-log-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #fff, #f8fbff);
}

.mobile-import-log-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: 4px;
}

.mobile-import-log-item span {
    display: block;
    color: var(--text-muted);
    font-size: .9rem;
}

body.mobile-cps-body {
    min-height: 100vh;
    background: linear-gradient(180deg, #edf4ff 0%, #f7fbff 100%);
}

.mobile-cps-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.mobile-cps-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 62%, var(--primary-mid) 100%);
    color: #fff;
    border-radius: 22px;
    padding: 22px 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 18px;
}

.mobile-cps-hero h1 {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.mobile-cps-hero p {
    color: rgba(255,255,255,.85);
    line-height: 1.5;
}

.mobile-chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.mobile-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: .85rem;
}

.mobile-cps-layout {
    display: grid;
    gap: 16px;
}

.mobile-student-card label,
.mobile-link-card label {
    display: block;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.mobile-select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 1rem;
    background: #fff;
    color: var(--text-main);
}

.mobile-student-card-locked {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.mobile-student-identity {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.05rem;
}

.mobile-dim-card {
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.mobile-dim-head {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.mobile-dim-head.soc { background: linear-gradient(180deg, var(--soc-light), #fff); }
.mobile-dim-head.emo { background: linear-gradient(180deg, var(--emo-light), #fff); }
.mobile-dim-head.cog { background: linear-gradient(180deg, var(--cog-light), #fff); }

.mobile-dim-head h2 {
    font-size: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.mobile-dim-head p {
    color: var(--text-muted);
    line-height: 1.5;
}

.mobile-criterion {
    padding: 16px 18px;
    border-top: 1px solid rgba(15, 23, 42, .05);
}

.mobile-criterion-title {
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.mobile-criterion-desc {
    color: var(--text-muted);
    line-height: 1.45;
    font-size: .95rem;
    margin-bottom: 10px;
}

.mobile-score-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    gap: 8px;
}

.mobile-score-btn {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-main);
    min-height: 46px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-score-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.mobile-score-btn.selected-0 { background: #f8fafc; color: #64748b; border-color: #cbd5e1; }
.mobile-score-btn.selected-1 { background: #fee2e2; color: #991b1b; border-color: #f87171; }
.mobile-score-btn.selected-2 { background: #fef3c7; color: #92400e; border-color: #f59e0b; }
.mobile-score-btn.selected-3 { background: #dbeafe; color: #1d4ed8; border-color: #60a5fa; }
.mobile-score-btn.selected-4 { background: #dcfce7; color: #166534; border-color: #4ade80; }

.mobile-actions-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.mobile-actions-left,
.mobile-actions-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mobile-result-card {
    border: 2px dashed rgba(0,49,137,.18);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.mobile-result-qr {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0;
}

.mobile-result-qr canvas {
    max-width: 100%;
    height: auto;
    background: #fff;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.mobile-link-card input {
    width: 100%;
}

.mobile-alert {
    border-left: 4px solid var(--accent);
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--accent-light);
    color: var(--primary-dark);
}

.mobile-error-card {
    max-width: 720px;
    margin: 40px auto;
}

@media (max-width: 900px) {
    .mobile-share-grid,
    .mobile-import-grid,
    .mobile-auto-share-grid {
        grid-template-columns: 1fr;
    }

    .mobile-auto-share-qr-wrap {
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
    }

    .mobile-student-share-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .mobile-cps-page {
        padding: 14px 12px 30px;
    }

    .mobile-cps-hero {
        padding: 18px 16px;
    }

    .mobile-score-grid {
        grid-template-columns: repeat(5, minmax(42px, 1fr));
    }

    .mobile-actions-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .mobile-actions-left,
    .mobile-actions-right,
    .mobile-share-actions,
    .mobile-share-students-footer {
        width: 100%;
    }

    .mobile-actions-left .btn,
    .mobile-actions-right .btn,
    .mobile-share-actions .btn,
    .mobile-share-actions a.btn,
    .mobile-share-students-footer .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* ================================================================
   Styles — Session ArUco (procédé QCMCam)
   ================================================================ */

.modal-xlarge { max-width: 980px; }

/* Layout session */
.aruco-session-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px;
    min-height: 520px;
}

.aruco-left-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.aruco-right-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    max-height: 70vh;
}

/* Caméra */
.aruco-cam-wrapper {
    position: relative;
    width: 100%;
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
    min-height: 200px;
}

.aruco-cam-status {
    font-size: 12px;
    margin: 6px 0 10px;
    padding: 5px 8px;
    border-radius: 6px;
    background: var(--accent-light, #eff6ff);
    color: var(--primary, #003189);
}

.aruco-cam-status.success {
    background: var(--success-light, #dcfce7);
    color: #15803d;
}

.aruco-cam-status.warning {
    background: var(--warning-light, #fef9c3);
    color: #92400e;
}

/* Panneau critère */
.aruco-critere-panel {
    padding: 14px 16px;
}

.aruco-critere-header {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.aruco-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: var(--accent-light, #eff6ff);
    color: var(--primary, #003189);
}

.aruco-badge-dim {
    background: #f3f0ff;
    color: #7c3aed;
}

.aruco-progress-bar {
    height: 5px;
    background: var(--border-color, #e2e8f0);
    border-radius: 3px;
    margin-bottom: 12px;
    overflow: hidden;
}

.aruco-progress-fill {
    height: 100%;
    background: var(--primary, #003189);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.aruco-critere-title {
    font-size: 18px;
    color: var(--primary, #003189);
    margin: 0 0 6px;
}

.aruco-critere-enonce {
    font-size: 13px;
    color: var(--text-muted, #64748b);
    margin: 0 0 14px;
    line-height: 1.5;
}

.aruco-critere-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.aruco-level-legend {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.aruco-level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.aruco-level-badge.level-0 { background: #94a3b8; }
.aruco-level-badge.level-1 { background: #dc2626; }
.aruco-level-badge.level-2 { background: #ca8a04; }
.aruco-level-badge.level-3 { background: #2563eb; }
.aruco-level-badge.level-4 { background: #16a34a; }

/* Tableau scores */
.aruco-score-table-wrap {
    padding: 14px 16px;
    flex: 1;
}

.aruco-score-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.aruco-score-table th {
    text-align: left;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-secondary, #f8fafc);
}

.aruco-score-table td {
    padding: 5px 8px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    vertical-align: middle;
}

.aruco-score-table tr.row-scanned td {
    background: #f0fdf4;
}

.aruco-score-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    padding: 0 6px;
}

.aruco-filled-count {
    font-size: 11px;
    color: var(--text-muted, #64748b);
    margin-right: 6px;
}

.aruco-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 1px;
    vertical-align: middle;
}

/* Bouton success */
.btn-success {
    background: #16a34a;
    color: #fff;
    border: none;
}

.btn-success:hover {
    background: #15803d;
}

/* Responsive session */
@media (max-width: 760px) {
    .aruco-session-layout {
        grid-template-columns: 1fr;
    }
    .aruco-right-col {
        max-height: none;
    }
}

/* ==============================
   Pépite V19 — ajustements plan de classe
   ============================== */
.plan-sidebar {
    gap: 14px;
}
.plan-main {
    min-width: 0;
}
.plan-number-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}
.plan-number-grid label {
    margin-top: 2px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--primary);
}
.plan-number-input {
    width: 100%;
}
.canvas-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    padding-bottom: 10px;
}
#plan-export-area {
    width: 100%;
    min-height: 720px;
    padding: 78px 28px 28px;
    overflow: visible;
}
#plan-export-area.room-format-landscape {
    width: 1120px;
    min-width: 1120px;
    max-width: 1120px;
    min-height: 720px;
}
#plan-export-area.room-format-portrait {
    width: 760px;
    min-width: 760px;
    max-width: 760px;
    min-height: 1040px;
}
.teacher-desk {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 210px;
    height: 40px;
    padding: 0 12px;
    border-radius: 9px;
}
.teacher-desk-label {
    font-size: .76rem;
    letter-spacing: 1px;
}
.teacher-desk-handle {
    width: 24px;
    height: 24px;
    font-size: .78rem;
}
.classroom-container {
    min-height: 560px;
}
.mode-classic .table-block,
.mode-u .table-block {
    min-width: 84px;
    gap: 3px;
    padding: 5px;
    border-radius: 7px;
}
.mode-classic .table-block.table-vertical,
.mode-u .table-block.table-vertical {
    width: 84px;
}
.seat {
    width: 66px;
    height: 42px;
    border-radius: 5px;
    font-size: .6rem;
    padding: 2px 3px;
    line-height: 1.04;
}
.seat small {
    font-size: .54rem;
}
.seat-group-badge {
    top: 4px;
    right: 4px;
    font-size: .54rem;
    padding: 2px 5px;
}
.table-controls {
    top: -10px;
    right: -10px;
    gap: 4px;
}
.table-drag-handle,
.table-rotate-btn,
.table-delete-btn {
    width: 24px;
    height: 24px;
    font-size: .72rem;
}
.plan-actions {
    margin-top: 4px;
}
.parking-dock-sidebar {
    position: relative;
    inset: auto;
    width: 100%;
    max-height: 320px;
    margin-top: 4px;
    z-index: 1;
}
.parking-dock-sidebar .parking-grid {
    grid-template-columns: 1fr;
}
.parking-dock-sidebar .parking-grid .seat {
    width: 100%;
    height: auto;
    min-height: 42px;
    padding: 6px 8px;
}
@media (max-width: 1100px) {
    .plan-layout {
        flex-direction: column;
    }
    .plan-sidebar {
        width: 100%;
        min-width: 0;
        max-height: none;
    }
}
@media print {
    .parking-dock-sidebar {
        display: none !important;
    }
}

/* ==============================
   Pépite v. 2.0 Mai 2026 — mode sombre et cadence 6 semaines
   ============================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.header-theme-btn {
    background: rgba(255,255,255,.14);
    color: #fff;
    border-color: rgba(255,255,255,.22);
}
.header-theme-btn:hover:not(:disabled) {
    background: rgba(255,255,255,.22);
    color: #fff;
    border-color: rgba(255,255,255,.38);
}
.eval-cadence-card {
    margin-bottom: 18px;
    border-left: 5px solid var(--warning);
}
.eval-cadence-card.done {
    border-left-color: var(--success);
}
.eval-cadence-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.eval-cadence-head h3 {
    margin-bottom: 4px;
    color: var(--primary);
    text-transform: none;
    letter-spacing: 0;
}
.eval-cadence-head p,
.eval-cadence-detail {
    color: var(--text-muted);
    font-size: .82rem;
    line-height: 1.5;
}
.eval-cadence-badge {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .74rem;
    font-weight: 800;
    white-space: nowrap;
}
.eval-cadence-badge.pending {
    background: var(--warning-light);
    color: var(--warning);
}
.eval-cadence-badge.done {
    background: var(--success-light);
    color: var(--success);
}
#plan-export-area.room-format-landscape {
    width: 1120px;
    min-width: 1120px;
    max-width: 1120px;
    min-height: 720px;
}
#plan-export-area.room-format-portrait {
    width: 760px;
    min-width: 760px;
    max-width: 760px;
    min-height: 1040px;
}
body.theme-dark {
    --surface-2: #16233c;
    --surface-3: #1d2c48;
    --text-body: #d7e2f2;
    --text-soft: #bccbe0;
    --primary-light: #0f234a;
    --accent-light: #0f2134;
    --cog-light: #22163e;
    --soc-light: #0d2732;
    --emo-light: #2f2612;
    --success-light: #12261a;
    --danger-light: #34151a;
    --warning-light: #33270c;
    --bg: #060d18;
    --surface: #101a2d;
    --border: #2b3b58;
    --text-main: #edf4ff;
    --text-muted: #a4b2c8;
    --text-light: #7f91ad;
    --shadow-sm: 0 1px 4px rgba(0,0,0,.28);
    --shadow-md: 0 8px 28px rgba(0,0,0,.28);
    --shadow-lg: 0 16px 44px rgba(0,0,0,.34);
    background: var(--bg);
    color: var(--text-main);
}
body.theme-dark .app-header {
    background: linear-gradient(135deg, #06101f 0%, #0d1d3a 56%, #17346a 100%);
}
body.theme-dark .nav-btn {
    background: rgba(148, 163, 184, .12);
    color: rgba(255,255,255,.82);
}
body.theme-dark .nav-btn:hover {
    background: rgba(148, 163, 184, .2);
}
body.theme-dark .nav-btn.active {
    background: #dbe8ff;
    color: #0d2c6d;
}
body.theme-dark .class-selector-wrap {
    background: rgba(15, 23, 42, .48);
}
body.theme-dark .card,
body.theme-dark .modal-box,
body.theme-dark .parking-dock,
body.theme-dark .week-details-wrap,
body.theme-dark .school-calendar-wrap,
body.theme-dark .histo-sessions,
body.theme-dark .groupes-result,
body.theme-dark .toast {
    background: var(--surface);
    color: var(--text-main);
    border-color: var(--border);
}
body.theme-dark .input-text,
body.theme-dark .input-search,
body.theme-dark .select-styled,
body.theme-dark .textarea-large,
body.theme-dark .class-selector-wrap select {
    background: #0b1526;
    color: var(--text-main);
    border-color: var(--border);
}
body.theme-dark .input-text::placeholder,
body.theme-dark .input-search::placeholder,
body.theme-dark .textarea-large::placeholder {
    color: var(--text-light);
}
body.theme-dark .data-table,
body.theme-dark .data-table td,
body.theme-dark .data-table th,
body.theme-dark .groupes-choice-card,
body.theme-dark .groupes-choice-card .radio-option,
body.theme-dark .quick-adjust-card,
body.theme-dark .eval-criterion,
body.theme-dark .score-bar,
body.theme-dark .parking-header,
body.theme-dark .school-week-btn,
body.theme-dark .school-month-btn,
body.theme-dark .week-session-card,
body.theme-dark .session-card {
    border-color: var(--border);
}
body.theme-dark .data-table tbody tr:hover,
body.theme-dark .school-week-btn.selected,
body.theme-dark .school-month-btn.selected,
body.theme-dark .groupes-choice-card.selected,
body.theme-dark .radio-option:hover,
body.theme-dark .btn-secondary:hover:not(:disabled) {
    background: #172845;
}
body.theme-dark .seat,
body.theme-dark .parking-grid .seat,
body.theme-dark .teacher-desk,
body.theme-dark #plan-export-area,
body.theme-dark .canvas-wrapper,
body.theme-dark .classroom-container {
    background: #0e1728;
    color: var(--text-main);
}
body.theme-dark #plan-export-area {
    border-color: var(--border);
}
body.theme-dark .teacher-desk {
    background: linear-gradient(135deg, #16356c, #0b2450);
}
body.theme-dark .plan-toolbar,
body.theme-dark .stats-pill,
body.theme-dark .stats-pill.muted,
body.theme-dark .badge-count,
body.theme-dark .class-stat-badge,
body.theme-dark .print-chip {
    background: #132540;
    color: var(--text-main);
    border-color: var(--border);
}
body.theme-dark .empty-state,
body.theme-dark .panel-help,
body.theme-dark .field-help,
body.theme-dark .block-subtitle,
body.theme-dark .class-details-subtitle,
body.theme-dark .help-text,
body.theme-dark .session-meta,
body.theme-dark .session-date,
body.theme-dark .aruco-session-status,
body.theme-dark .eval-cadence-detail,
body.theme-dark .eval-cadence-head p {
    color: var(--text-muted);
}
body.theme-dark .app-footer {
    background: #08111d;
    border-top-color: var(--border);
}
body.theme-dark .app-footer-inner,
body.theme-dark .app-footer-inner a {
    color: var(--text-muted);
}
body.theme-dark .btn-secondary {
    background: #13213a;
    color: var(--text-main);
    border-color: var(--border);
}
body.theme-dark .btn-primary {
    box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
body.theme-dark .modal-header,
body.theme-dark .modal-footer {
    border-color: var(--border);
}
body.theme-dark .class-card,
body.theme-dark .view,
body.theme-dark .eval-download-card,
body.theme-dark .eval-block,
body.theme-dark .groupes-config,
body.theme-dark .histo-chart-wrap,
body.theme-dark .histo-radar-wrap {
    color: var(--text-main);
}
body.theme-dark .brand-logo {
    background: rgba(255,255,255,.12);
}

/* ==============================
   Pépite v. 2.6 Mai 2026 — finitions mode sombre, plan et bilans
   ============================== */
.main-nav {
    gap: 8px;
    flex-wrap: wrap;
}

.view {
    gap: 18px;
}

.segmented-control {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
    background: rgba(0,49,137,.06);
    border: 1px solid rgba(0,49,137,.08);
}

.segmented-btn {
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--primary);
    padding: 9px 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.segmented-btn:hover {
    background: rgba(0,49,137,.08);
}

.segmented-btn.active {
    background: #fff;
    border-color: rgba(0,49,137,.12);
    box-shadow: var(--shadow-sm);
}

.bilan-header-actions {
    gap: 10px;
}

.bilan-summary-card {
    background: linear-gradient(135deg, rgba(0,49,137,.06) 0%, rgba(255,255,255,.96) 100%);
    border: 1px solid rgba(0,49,137,.08);
}

.bilan-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.bilan-summary-head h3 {
    margin-bottom: 6px;
}

.bilan-summary-head p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 920px;
}

.bilan-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.bilan-summary-pill,
.bilan-dim-card {
    border-radius: 16px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.82);
    display: grid;
    gap: 6px;
}

.bilan-summary-pill span,
.bilan-dim-card span {
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    font-weight: 700;
}

.bilan-summary-pill strong,
.bilan-dim-card strong {
    font-size: 1.2rem;
    color: var(--text-main);
}

.bilan-summary-pill.soc,
.bilan-dim-card.soc { background: linear-gradient(180deg, rgba(8,145,178,.10), rgba(255,255,255,.94)); }
.bilan-summary-pill.emo,
.bilan-dim-card.emo { background: linear-gradient(180deg, rgba(217,119,6,.10), rgba(255,255,255,.94)); }
.bilan-summary-pill.cog,
.bilan-dim-card.cog { background: linear-gradient(180deg, rgba(124,58,237,.10), rgba(255,255,255,.94)); }
.bilan-summary-pill.global,
.bilan-dim-card.global { background: linear-gradient(180deg, rgba(0,49,137,.10), rgba(255,255,255,.94)); }

.bilan-students-list {
    display: grid;
    gap: 20px;
}

.student-bilan-card {
    width: min(100%, 1040px);
    margin: 0 auto;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(0,49,137,.08);
    box-shadow: 0 16px 40px rgba(15,23,42,.08);
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,251,255,1) 100%);
}

.student-bilan-card.no-data {
    min-height: 420px;
}

.bilan-card-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(148,163,184,.22);
}

.bilan-student-name {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}

.bilan-student-meta {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.bilan-card-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.bilan-radar-side {
    display: grid;
    gap: 14px;
}

.bilan-chart-shell {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 360px;
    height: auto;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(241,245,249,.96));
}

.bilan-chart-shell canvas {
    width: 100% !important;
    height: 100% !important;
}

.bilan-summary-note {
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(0,49,137,.08);
    background: linear-gradient(180deg, rgba(0,49,137,.05), rgba(255,255,255,.98));
}

.bilan-summary-note strong {
    color: var(--primary);
}

.bilan-summary-note p {
    margin: 8px 0 0;
    line-height: 1.6;
    color: var(--text-main);
}

.inline-highlight {
    color: var(--primary);
    font-weight: 800;
}

.bilan-strategies {
    display: grid;
    gap: 14px;
}

.bilan-pillar {
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: #fff;
}

.bilan-pillar.soc { box-shadow: inset 4px 0 0 rgba(8,145,178,.58); }
.bilan-pillar.emo { box-shadow: inset 4px 0 0 rgba(217,119,6,.58); }
.bilan-pillar.cog { box-shadow: inset 4px 0 0 rgba(124,58,237,.58); }

.bilan-pillar-head {
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(248,250,252,.9), rgba(255,255,255,.96));
    border-bottom: 1px solid rgba(148,163,184,.18);
}

.bilan-pillar-head h3 {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bilan-pillar-head span {
    color: var(--text-muted);
    line-height: 1.45;
    display: block;
}

.bilan-criterion-list {
    display: grid;
}

.bilan-criterion-item {
    padding: 14px 16px;
    border-top: 1px solid rgba(148,163,184,.14);
}

.bilan-criterion-item:first-child {
    border-top: 0;
}

.bilan-criterion-item.priority { background: linear-gradient(180deg, rgba(254,242,242,.78), rgba(255,255,255,1)); }
.bilan-criterion-item.fragile { background: linear-gradient(180deg, rgba(255,247,237,.82), rgba(255,255,255,1)); }
.bilan-criterion-item.progress { background: linear-gradient(180deg, rgba(239,246,255,.82), rgba(255,255,255,1)); }
.bilan-criterion-item.success { background: linear-gradient(180deg, rgba(240,253,244,.86), rgba(255,255,255,1)); }

.bilan-criterion-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.bilan-criterion-head strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-main);
}

.bilan-criterion-head span {
    display: block;
    color: var(--text-muted);
    font-size: .84rem;
    line-height: 1.45;
}

.bilan-criterion-item p {
    margin: 0;
    line-height: 1.6;
}

.bilan-score-chip {
    min-width: 52px;
    text-align: center;
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: .88rem;
    border: 1px solid transparent;
}

.bilan-score-chip.tone-priority { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.bilan-score-chip.tone-fragile { background: #ffedd5; color: #9a3412; border-color: #fed7aa; }
.bilan-score-chip.tone-progress { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.bilan-score-chip.tone-success { background: #dcfce7; color: #166534; border-color: #bbf7d0; }

.trend-up {
    background: rgba(22,163,74,.12);
    color: #166534;
}

.trend-down {
    background: rgba(220,38,38,.12);
    color: #991b1b;
}

.trend-neutral {
    background: rgba(0,49,137,.10);
    color: var(--primary);
}

.compact-empty-state {
    padding: 28px 20px;
}

.bilan-no-data-body {
    min-height: 240px;
}

.plan-layout {
    gap: 22px;
    align-items: stretch;
}

.plan-sidebar {
    border-radius: 24px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,255,.96));
    border: 1px solid rgba(148,163,184,.18);
    box-shadow: 0 20px 44px rgba(15,23,42,.08);
}

.plan-main {
    gap: 0;
}

.plan-toolbar {
    min-height: 60px;
    height: auto;
    padding: 12px 16px;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
    border: 1px solid rgba(148,163,184,.18);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
}

.plan-toolbar .export-actions {
    margin-left: auto;
}

.canvas-wrapper {
    border-radius: 0 0 24px 24px;
    border: 1px solid rgba(148,163,184,.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
    background-image:
        linear-gradient(180deg, rgba(255,255,255,.35), rgba(241,245,249,.35)),
        radial-gradient(rgba(148,163,184,.45) 1px, transparent 1px);
    background-size: auto, 20px 20px;
}

#plan-export-area {
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 24px;
}

.teacher-desk {
    box-shadow: 0 10px 22px rgba(0,49,137,.18);
}

.seat {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}

.parking-dock-sidebar {
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
}

body.theme-dark {
    background:
        radial-gradient(circle at top right, rgba(37,99,235,.16), transparent 28%),
        radial-gradient(circle at top left, rgba(14,165,233,.10), transparent 24%),
        var(--bg);
}

body.theme-dark .app-header {
    box-shadow: 0 16px 40px rgba(0,0,0,.28);
}

body.theme-dark .nav-btn {
    border: 1px solid rgba(148,163,184,.12);
}

body.theme-dark .nav-btn.active {
    box-shadow: 0 12px 24px rgba(0,0,0,.26);
}

body.theme-dark .class-selector-wrap {
    border: 1px solid rgba(148,163,184,.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

body.theme-dark .card,
body.theme-dark .modal-box,
body.theme-dark .parking-dock,
body.theme-dark .week-details-wrap,
body.theme-dark .school-calendar-wrap,
body.theme-dark .histo-sessions,
body.theme-dark .groupes-result,
body.theme-dark .toast,
body.theme-dark .student-bilan-card,
body.theme-dark .bilan-summary-card,
body.theme-dark .plan-sidebar {
    box-shadow: 0 18px 40px rgba(0,0,0,.24);
}

body.theme-dark .segmented-control {
    background: rgba(255,255,255,.04);
    border-color: rgba(148,163,184,.14);
}

body.theme-dark .segmented-btn {
    color: var(--text-main);
}

body.theme-dark .segmented-btn:hover,
body.theme-dark .segmented-btn.active {
    background: rgba(255,255,255,.08);
    border-color: rgba(148,163,184,.12);
}

body.theme-dark .bilan-summary-card,
body.theme-dark .student-bilan-card,
body.theme-dark .plan-sidebar {
    background: linear-gradient(180deg, rgba(16,26,45,.98), rgba(10,18,34,.98));
    border-color: rgba(148,163,184,.18);
}

body.theme-dark .bilan-summary-head p,
body.theme-dark .bilan-student-meta,
body.theme-dark .bilan-pillar-head span,
body.theme-dark .bilan-criterion-head span {
    color: var(--text-muted);
}

body.theme-dark .bilan-summary-pill,
body.theme-dark .bilan-dim-card,
body.theme-dark .bilan-chart-shell,
body.theme-dark .bilan-summary-note,
body.theme-dark .bilan-pillar,
body.theme-dark .parking-dock-sidebar,
body.theme-dark .plan-toolbar {
    background: rgba(15,23,42,.62);
    border-color: rgba(148,163,184,.16);
}

body.theme-dark .bilan-criterion-item.priority { background: linear-gradient(180deg, rgba(69,20,28,.62), rgba(16,26,45,.96)); }
body.theme-dark .bilan-criterion-item.fragile { background: linear-gradient(180deg, rgba(79,45,14,.58), rgba(16,26,45,.96)); }
body.theme-dark .bilan-criterion-item.progress { background: linear-gradient(180deg, rgba(21,44,85,.62), rgba(16,26,45,.96)); }
body.theme-dark .bilan-criterion-item.success { background: linear-gradient(180deg, rgba(18,54,33,.62), rgba(16,26,45,.96)); }

body.theme-dark .bilan-score-chip.tone-priority { background: rgba(220,38,38,.18); color: #fecaca; border-color: rgba(239,68,68,.25); }
body.theme-dark .bilan-score-chip.tone-fragile { background: rgba(249,115,22,.18); color: #fed7aa; border-color: rgba(249,115,22,.24); }
body.theme-dark .bilan-score-chip.tone-progress { background: rgba(37,99,235,.22); color: #bfdbfe; border-color: rgba(96,165,250,.24); }
body.theme-dark .bilan-score-chip.tone-success { background: rgba(22,163,74,.18); color: #bbf7d0; border-color: rgba(34,197,94,.24); }

body.theme-dark .trend-up { background: rgba(22,163,74,.18); color: #bbf7d0; }
body.theme-dark .trend-down { background: rgba(220,38,38,.18); color: #fecaca; }
body.theme-dark .trend-neutral { background: rgba(59,130,246,.18); color: #dbeafe; }

body.theme-dark .plan-toolbar,
body.theme-dark .canvas-wrapper,
body.theme-dark #plan-export-area,
body.theme-dark .parking-dock-sidebar {
    border-color: rgba(148,163,184,.16);
}

body.theme-dark .canvas-wrapper {
    background-image:
        linear-gradient(180deg, rgba(15,23,42,.72), rgba(11,17,31,.78)),
        radial-gradient(rgba(71,85,105,.62) 1px, transparent 1px);
}

body.theme-dark #plan-export-area {
    background: linear-gradient(180deg, rgba(11,17,31,.98), rgba(16,26,45,.98));
}

body.theme-dark .teacher-desk {
    background: linear-gradient(135deg, #2450a6 0%, #0f3c87 100%);
}

body.theme-dark .seat,
body.theme-dark .parking-grid .seat {
    background: linear-gradient(180deg, rgba(15,23,42,.95), rgba(10,18,34,.95));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

body.theme-dark .input-text:focus,
body.theme-dark .input-search:focus,
body.theme-dark .select-styled:focus,
body.theme-dark .textarea-large:focus {
    box-shadow: 0 0 0 3px rgba(59,130,246,.16);
}

@media (max-width: 1200px) {
    .bilan-card-layout {
        grid-template-columns: 1fr;
    }

    .student-bilan-card {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .bilan-header-actions {
        width: 100%;
    }

    .bilan-header-actions .segmented-control,
    .bilan-header-actions .select-styled {
        width: 100%;
    }

    .segmented-control {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media print {
    #view-bilan .view-header,
    #view-bilan .bilan-summary-card {
        display: none !important;
    }

    .student-bilan-card {
        box-shadow: none !important;
        border-radius: 0 !important;
        width: 100% !important;
    }

    .bilan-page {
        page-break-after: always;
        break-after: page;
    }
}

/* ==============================
   Pépite v. 2.6 Mai 2026 — bilans imprimés, CPS & plan plus lisible
   ============================== */
.bilan-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

.bilan-main-column {
    min-width: 0;
    display: grid;
    gap: 20px;
}

.bilan-cps-info {
    position: sticky;
    top: 92px;
    border-radius: 24px;
    padding: 22px;
    border: 1px solid rgba(148,163,184,.18);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.98));
    box-shadow: 0 18px 38px rgba(15,23,42,.08);
}

.bilan-cps-info-head {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148,163,184,.18);
}

.bilan-cps-info-head h3 {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.bilan-cps-info-head span,
.bilan-cps-info p,
.bilan-cps-point span,
.bilan-cps-sources li {
    color: var(--text-muted);
    line-height: 1.6;
}

.bilan-cps-points {
    display: grid;
    gap: 10px;
    margin: 16px 0 18px;
}

.bilan-cps-point {
    border-radius: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(148,163,184,.16);
    background: linear-gradient(180deg, rgba(0,49,137,.05), rgba(255,255,255,.96));
}

.bilan-cps-point strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-main);
}

.bilan-cps-sources h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.bilan-cps-sources ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.bilan-cps-sources a {
    color: var(--primary);
    text-decoration: none;
}

.bilan-cps-sources a:hover {
    text-decoration: underline;
}

.plan-number-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.mode-classic .table-block,
.mode-u .table-block {
    min-width: 124px;
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
}

.mode-classic .table-block.table-vertical,
.mode-u .table-block.table-vertical {
    width: 124px;
}

.seat {
    width: 82px;
    height: 56px;
    border-radius: 8px;
    font-size: .68rem;
    padding: 4px 6px;
    line-height: 1.08;
}

.seat small {
    font-size: .58rem;
}

.seat-name-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    max-width: 100%;
    transform-origin: center center;
    transition: transform .18s ease;
}

.draggable-table[data-rotation="90"] .seat-name-stack {
    transform: rotate(90deg) scale(.92);
}

.draggable-table[data-rotation="180"] .seat-name-stack {
    transform: rotate(180deg);
}

.draggable-table[data-rotation="270"] .seat-name-stack {
    transform: rotate(-90deg) scale(.92);
}

.seat-group-badge {
    top: 5px;
    right: 5px;
}

.table-controls {
    top: -12px;
    right: -12px;
    gap: 5px;
}

.table-drag-handle,
.table-rotate-btn,
.table-delete-btn {
    width: 26px;
    height: 26px;
}

body.theme-dark .bilan-cps-info {
    background: linear-gradient(180deg, rgba(16,26,45,.98), rgba(11,19,34,.98));
    border-color: rgba(59,76,110,.72);
}

body.theme-dark .bilan-cps-point,
body.theme-dark .bilan-cps-sources a {
    color: #dbeafe;
}

body.theme-dark .bilan-cps-point {
    background: linear-gradient(180deg, rgba(0,49,137,.16), rgba(15,23,42,.86));
    border-color: rgba(59,76,110,.62);
}

@media (max-width: 1180px) {
    .bilan-content-layout {
        grid-template-columns: 1fr;
    }

    .bilan-cps-info {
        position: static;
        order: 2;
    }
}

@media (max-width: 760px) {
    #conf-classic .plan-number-grid,
    #conf-classic .plan-number-grid {
        grid-template-columns: 1fr;
    }
}

@page {
    size: A4 portrait;
    margin: 10mm;
}

@media print {
    body,
    #view-bilan {
        background: #ffffff !important;
    }

    #view-bilan .view-header,
    #view-bilan .bilan-summary-card,
    #view-bilan .bilan-cps-info {
        display: none !important;
    }

    #view-bilan .bilan-students-list {
        gap: 0 !important;
    }

    .student-bilan-card {
        width: 190mm !important;
        min-height: 274mm;
        margin: 0 auto !important;
        padding: 6mm !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #ffffff !important;
        color: #0f172a !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .student-bilan-card.no-data {
        min-height: auto !important;
    }

    .bilan-card-hero {
        margin-bottom: 4mm !important;
        padding-bottom: 3mm !important;
    }

    .bilan-card-layout {
        grid-template-columns: 62mm 1fr !important;
        gap: 5mm !important;
    }

    .bilan-chart-shell {
        height: 58mm !important;
        padding: 2.5mm !important;
        border-radius: 4mm !important;
        background: #ffffff !important;
    }

    .bilan-dim-grid {
        gap: 2mm !important;
    }

    .bilan-dim-card,
    .bilan-summary-note,
    .bilan-pillar,
    .bilan-criterion-item {
        box-shadow: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .bilan-summary-note,
    .bilan-pillar-head,
    .bilan-criterion-item {
        padding: 2.5mm !important;
    }

    .bilan-pillar-head h3,
    .bilan-student-name {
        font-size: 11pt !important;
    }

    .bilan-student-meta,
    .bilan-pillar-head span,
    .bilan-criterion-head span,
    .bilan-summary-note p,
    .bilan-criterion-item p {
        color: #334155 !important;
        font-size: 8.8pt !important;
        line-height: 1.35 !important;
    }

    .bilan-criterion-head {
        margin-bottom: 1.5mm !important;
    }

    .bilan-score-chip {
        min-width: 15mm !important;
        padding: 1.2mm 2mm !important;
        font-size: 8.5pt !important;
    }

    .bilan-page {
        page-break-after: always;
        break-after: page;
    }
}

/* ==============================
   Pépite v. 2.2.3 Mai 2026 — export plan stabilisé et répartition sans reconfiguration
   ============================== */
#view-bilan .bilan-summary-card,
#view-bilan .bilan-students-list {
    width: min(100%, 1040px);
    margin-left: auto;
    margin-right: auto;
}

#view-cps-info .cps-info-shell {
    width: min(100%, 1120px);
    margin: 0 auto;
}

#view-cps-info .bilan-cps-info {
    position: static;
    max-width: none;
    box-shadow: 0 18px 38px rgba(15,23,42,.08);
}

#view-cps-info .bilan-cps-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
    #view-cps-info .bilan-cps-points {
        grid-template-columns: 1fr;
    }
}

.mode-classic .table-block.table-vertical,
.mode-u .table-block.table-vertical {
    width: auto;
    min-width: 124px;
}

.seat-name-stack {
    position: relative;
    min-width: 0;
}

.draggable-table[data-rotation="90"] .seat-name-stack,
.draggable-table[data-rotation="270"] .seat-name-stack {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 74px;
    max-width: none;
    transform-origin: center center;
}

.draggable-table[data-rotation="90"] .seat-name-stack {
    transform: translate(-50%, -50%) rotate(90deg) scale(.84);
}

.draggable-table[data-rotation="270"] .seat-name-stack {
    transform: translate(-50%, -50%) rotate(-90deg) scale(.84);
}

.draggable-table[data-rotation="0"] .seat-name-stack,
.draggable-table[data-rotation="180"] .seat-name-stack {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    transform: none !important;
}

.bilan-export-sheet {
    position: fixed;
    left: -20000px;
    top: 0;
    width: 860px;
    min-height: 1160px;
    padding: 10px;
    box-sizing: border-box;
    background: #ffffff;
    z-index: -1;
}

.bilan-export-sheet .student-bilan-card {
    width: 100% !important;
    min-height: 1140px;
    margin: 0 !important;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #d7dfeb;
    box-shadow: none !important;
    background: #ffffff !important;
}

.bilan-export-sheet .student-bilan-card.no-data {
    min-height: 1103px;
}

.bilan-export-sheet .bilan-card-hero {
    margin-bottom: 10px;
    padding-bottom: 10px;
    gap: 8px;
}

.bilan-export-sheet .bilan-card-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 10px;
}

.bilan-export-sheet .bilan-radar-side {
    gap: 8px;
}

.bilan-export-sheet .bilan-chart-shell {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0;
    height: auto;
    padding: 10px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(245,247,250,1));
}

.bilan-export-sheet .bilan-dim-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.bilan-export-sheet .bilan-summary-note,
.bilan-export-sheet .bilan-pillar,
.bilan-export-sheet .bilan-criterion-item {
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
}

.bilan-export-sheet .bilan-strategies {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
}

.bilan-export-sheet .bilan-pillar {
    border-radius: 14px;
}

.bilan-export-sheet .bilan-pillar-head,
.bilan-export-sheet .bilan-summary-note {
    padding: 9px 10px;
}

.bilan-export-sheet .bilan-criterion-item {
    padding: 8px 9px;
}

.bilan-export-sheet .bilan-student-name {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.bilan-export-sheet .bilan-student-meta,
.bilan-export-sheet .bilan-summary-note p,
.bilan-export-sheet .bilan-criterion-item p {
    color: #334155;
    line-height: 1.28;
    font-size: .7rem;
}

.bilan-export-sheet .bilan-pillar-head span,
.bilan-export-sheet .bilan-criterion-head span {
    display: none;
}

.bilan-export-sheet .bilan-pillar-head h3,
.bilan-export-sheet .bilan-summary-note strong {
    font-size: .78rem;
}

.bilan-export-sheet .bilan-criterion-head {
    margin-bottom: 4px;
    gap: 6px;
}

.bilan-export-sheet .bilan-criterion-head strong {
    font-size: .72rem;
    margin-bottom: 0;
}

.bilan-export-sheet .bilan-score-chip {
    min-width: 34px;
    padding: 4px 6px;
    font-size: .68rem;
}

.bilan-export-sheet .bilan-dim-card {
    padding: 7px 8px;
    border-radius: 12px;
}

.bilan-export-sheet .bilan-dim-card span {
    font-size: .6rem;
}

.bilan-export-sheet .bilan-dim-card strong {
    font-size: .95rem;
}

.bilan-export-sheet .class-stat-badge {
    white-space: normal;
    font-size: .58rem;
    padding: 2px 6px;
}

.bilan-export-sheet .export-chart-image {
    width: 100%;
    height: auto;
    display: block;
}

@media print {
    #view-bilan .bilan-summary-card {
        display: none !important;
    }

    .student-bilan-card {
        width: 190mm !important;
        min-height: 273mm;
        padding: 5.5mm !important;
    }

    .bilan-card-layout {
        grid-template-columns: 63mm 1fr !important;
        gap: 4.5mm !important;
    }

    .bilan-chart-shell {
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
    }
}

/* ==============================
   Pépite v. 2.6 Mai 2026 — DOCX plus typographique, tables tournées plus nettes
   ============================== */
.plan-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#plan-rotate-selection-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

#plan-classroom {
    position: relative;
}

.plan-selection-box {
    position: absolute;
    border: 2px dashed rgba(0, 49, 137, .75);
    background: rgba(59, 130, 246, .12);
    border-radius: 12px;
    pointer-events: none;
    z-index: 30;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}

.draggable-table.is-selected {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .28), 0 14px 30px rgba(15, 23, 42, .14) !important;
    border-color: rgba(37, 99, 235, .85) !important;
}

.draggable-table.is-selected .table-controls {
    transform: scale(1.02);
}

#plan-classroom .draggable-table.table-vertical .seat {
    width: 60px;
    height: 86px;
    padding: 6px 4px;
}

#plan-classroom .draggable-table.table-vertical .seat small {
    font-size: .54rem;
}

#plan-classroom .draggable-table.table-labels-side .seat {
    position: relative;
    overflow: hidden;
}

#plan-classroom .seat-name-stack {
    min-width: 0;
}

#plan-classroom .seat-name-stack span,
#plan-classroom .seat-name-stack small {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

#plan-classroom .draggable-table:not(.table-labels-side) .seat-name-stack {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    transform: none !important;
}

#plan-classroom .draggable-table.table-labels-side .seat-name-stack {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 78px;
    max-width: none;
    transform-origin: center center;
    transform: translate(-50%, -50%) rotate(var(--seat-label-rotation, 90deg)) scale(.86) !important;
}

#plan-classroom .draggable-table[data-rotation="180"] .seat-name-stack {
    transform: none !important;
}

#plan-classroom .draggable-table.table-labels-side .seat-group-badge {
    top: 4px;
    right: 4px;
}

body.theme-dark .plan-selection-box {
    border-color: rgba(147, 197, 253, .92);
    background: rgba(59, 130, 246, .18);
}

body.theme-dark .draggable-table.is-selected {
    box-shadow: 0 0 0 3px rgba(96, 165, 250, .3), 0 14px 32px rgba(0, 0, 0, .34) !important;
}

@media (max-width: 900px) {
    .plan-toolbar-actions {
        width: 100%;
    }
}

/* ==============================
   Pépite v. 2.9 Mai 2026 — rotation continue 360° sans restriction sur le plan
   ============================== */
#plan-classroom .draggable-table {
    --table-rotation: 0deg;
    --table-counter-rotation: 0deg;
    --table-lift: 0px;
    transform-origin: center center;
    transform: translateY(var(--table-lift)) rotate(var(--table-rotation)) !important;
}

#plan-classroom .draggable-table:hover {
    --table-lift: -1px;
}

#plan-classroom .draggable-table.table-dragging {
    --table-lift: 0px;
}

#plan-classroom .draggable-table .table-controls {
    transform: rotate(var(--table-counter-rotation));
    transform-origin: center center;
}

#plan-classroom .draggable-table .seat-name-stack {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: nowrap;
    text-align: center;
    transform-origin: center center;
    transform: none !important;
}

#plan-classroom .draggable-table .seat-name-stack span,
#plan-classroom .draggable-table .seat-name-stack small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#plan-classroom .draggable-table .seat-group-badge {
    transform: none;
    transform-origin: center center;
}

/* ==============================
   Pépite v2.1.9 — correctifs rotation 90°
   ============================== */

/* FIX 1 — Noms des élèves qui disparaissent à 90°
   Conflit entre l'ancien système table-labels-side (position: absolute +
   translate(-50%,-50%)) et le nouveau système v2.9 (position: relative !important).
   Block v2.9 gagne sur position/left/top via !important, mais l'ancien bloc
   garde son transform via sa spécificité CSS supérieure.
   Résultat : translate(-50%,-50%) sur un élément position:relative
   déplace le nom hors du siège → overflow:hidden le masque.
   Solution : neutraliser le transform de l'ancien bloc ;
   les noms pivotent naturellement avec le conteneur. */
#plan-classroom .draggable-table.table-labels-side .seat-name-stack {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
}

/* FIX 2 — Tables qui restent visuellement horizontales après rotation 90°
   L'ancien système redimensionnait les sièges en 60×86px (plus haut que large)
   pour les tables verticales. Avec la rotation CSS v2.9 du conteneur
   draggable-table, les sièges tournent avec lui : 60×86px après 90° donnent
   visuellement 86px large × 60px haut → siège plus large que haut = aspect
   horizontal indésirable.
   Solution : conserver les proportions natives (88×52px) ; la rotation CSS
   du conteneur rend les sièges visuellement plus hauts que larges. */
#plan-classroom .draggable-table.table-vertical .seat {
    width: 88px;
    height: 52px;
    padding: 2px 4px;
}

#plan-export-area.plan-export-capture {
    overflow: hidden !important;
}

#plan-export-area.plan-export-capture #plan-classroom,
#plan-export-area.plan-export-capture .draggable-table,
#plan-export-area.plan-export-capture .draggable-table .seat {
    overflow: visible !important;
}

#plan-export-area.plan-export-capture .draggable-table .seat-name-stack {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    white-space: normal !important;
    text-align: center;
    transform: none !important;
}

#plan-export-area.plan-export-capture .draggable-table .seat-name-stack span,
#plan-export-area.plan-export-capture .draggable-table .seat-name-stack small {
    display: block;
    width: 100%;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.05;
}

#plan-export-area.plan-export-capture .draggable-table .seat-name-stack span {
    font-size: .62rem;
}

#plan-export-area.plan-export-capture .draggable-table .seat-name-stack small {
    font-size: .56rem;
}

.bilan-cps-points.compact {
    margin-top: 12px;
    gap: 10px;
}

.bilan-cps-points.compact .bilan-cps-point {
    min-height: auto;
}

.bilan-pillar-head h3 {
    flex-wrap: wrap;
}

.table-rotate-btn.is-rotating {
    cursor: grabbing;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .18);
}

/* ==============================
   Pépite v2.1.9 — guide intégré
   ============================== */
.guide-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.guide-hero-card,
.guide-card {
    border: 1px solid rgba(0, 49, 137, .10);
}

.guide-hero-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.guide-hero-head h3,
.guide-card h3 {
    margin-bottom: 8px;
}

.guide-hero-head p {
    color: var(--text-muted);
    max-width: 920px;
}

.guide-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.guide-flow-step,
.guide-tips-grid > div {
    background: linear-gradient(180deg, rgba(0, 49, 137, .05), rgba(0, 49, 137, .02));
    border: 1px solid rgba(0, 49, 137, .10);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.guide-flow-step strong,
.guide-tips-grid strong {
    color: var(--primary-dark);
}

.guide-flow-step span,
.guide-tips-grid span {
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.45;
}

.guide-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.guide-steps-horizontal {
    width: 100%;
    grid-template-columns: 1fr;
}
.guide-steps-horizontal .guide-card {
    width: 100%;
}
.guide-media-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 18px;
    width: 100%;
}
.guide-media-card {
    min-width: 0;
}
.guide-video {
    display: block;
    width: 100%;
    max-height: 520px;
    background: #0f172a;
    border-radius: 12px;
}
.guide-infographic {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    object-position: top center;
    background: #fff;
    border-radius: 12px;
}
@media (max-width: 860px) {
    .guide-media-grid { grid-template-columns: 1fr; }
}

.guide-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: var(--text-main);
}

.guide-list li {
    line-height: 1.5;
}

.guide-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

body.theme-dark .guide-hero-card,
body.theme-dark .guide-card,
body.theme-dark .guide-flow-step,
body.theme-dark .guide-tips-grid > div {
    background: rgba(15, 23, 42, .78);
    border-color: rgba(148, 163, 184, .22);
}

.eval-class-summary {
    display: grid;
    gap: 16px;
}

.eval-class-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.eval-class-summary-head h3 {
    color: var(--primary);
    margin-bottom: 6px;
}

.eval-class-summary-head p {
    color: var(--text-muted);
    margin: 0;
}

.eval-class-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    min-width: min(100%, 560px);
}

.eval-class-kpi {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
}

.eval-class-kpi span {
    display: block;
    font-size: .75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.eval-class-kpi strong {
    color: var(--primary);
    font-size: 1.15rem;
}

.eval-class-students {
    display: grid;
    gap: 10px;
}

.eval-class-student-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    background: var(--bg);
}

.eval-class-student-row strong {
    display: block;
    color: var(--text-main);
}

.eval-class-student-row span {
    color: var(--text-muted);
    font-size: .8rem;
}

.bilan-summary-pill.note20,
.bilan-dim-card.note20,
.bilan-note20-chip {
    background: linear-gradient(135deg, rgba(0,49,137,.12), rgba(59,130,246,.18));
    color: var(--primary);
}

.week-detail-bottom {
    margin-top: 16px;
}

.history-eval-card.is-self {
    background: linear-gradient(180deg, rgba(239,246,255,.82), rgba(255,255,255,1));
    border-color: rgba(59,130,246,.22);
}

.history-eval-card.is-teacher {
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
}

/* ==============================
   Pépite v. 2.2.5 Mai 2026 — consolidation lexicale
   ============================== */
#view-consolidation #consolidation-root {
    display: grid;
    gap: 18px;
}

.consolidation-overview {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 18px;
}

.consolidation-overview-card,
.consolidation-rhythm-card,
.consolidation-week-card,
.consolidation-editor-card {
    border-radius: 22px;
}

.consolidation-overview-card,
.consolidation-rhythm-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.consolidation-overview-card p,
.consolidation-rhythm-card p {
    margin-top: 8px;
    color: var(--text-muted);
    line-height: 1.6;
}

.consolidation-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.consolidation-rhythm {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0 8px;
}

.consolidation-rhythm span,
.consolidation-pillar-pills span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0,49,137,.08), rgba(76,110,245,.16));
    color: var(--primary);
    font-weight: 700;
    font-size: .86rem;
}

.consolidation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.consolidation-section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.consolidation-section-head p {
    margin-top: 6px;
    color: var(--text-muted);
}

.consolidation-week-label {
    margin-bottom: 14px;
}

.consolidation-grid .edt-cell {
    min-height: 98px;
}

.edt-seance-clickable,
.consolidation-seance {
    cursor: pointer;
}

.consolidation-seance {
    width: 100%;
    border: 1px solid rgba(0,49,137,.08);
    text-align: left;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
}

.consolidation-seance.active {
    border-color: rgba(0,49,137,.3);
    box-shadow: 0 12px 28px rgba(0,49,137,.12);
    background: linear-gradient(180deg, rgba(239,246,255,1), rgba(230,240,255,1));
}

.consolidation-seance-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    font-size: .75rem;
    color: var(--text-muted);
}

.consolidation-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 16px;
    margin-bottom: 18px;
}

.consolidation-textarea {
    min-height: 220px;
    margin-top: 10px;
}

.consolidation-help {
    margin-top: 10px;
}

.consolidation-actions,
.consolidation-inline-stats,
.consolidation-pillar-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.consolidation-actions {
    margin-top: 12px;
}

.consolidation-inline-stats,
.consolidation-pillar-pills {
    margin-top: 14px;
}

.consolidation-guide-panel {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(0,49,137,.08);
    background: linear-gradient(180deg, rgba(246,248,252,1), rgba(255,255,255,1));
}

.consolidation-guide-panel h4,
.consolidation-card-columns h4 {
    margin-bottom: 12px;
    color: var(--text-main);
}

.consolidation-guide-list {
    margin-bottom: 0;
}

.consolidation-card-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 16px;
}

.consolidation-cards-stack,
.consolidation-mini-stack {
    display: grid;
    gap: 12px;
}

.consolidation-card,
.consolidation-mini-card {
    border: 1px solid rgba(148,163,184,.28);
    border-radius: 18px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,1));
}

.consolidation-card.is-due {
    border-color: rgba(59,130,246,.28);
    box-shadow: 0 10px 24px rgba(59,130,246,.12);
}

.consolidation-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.consolidation-card-term {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text-main);
}

.consolidation-card-meta,
.consolidation-mini-card small,
.consolidation-empty-list {
    color: var(--text-muted);
    font-size: .86rem;
}

.consolidation-emoji {
    font-size: 1.7rem;
}

.consolidation-card-answer {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.consolidation-answer-line {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.consolidation-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.consolidation-mini-card {
    display: grid;
    gap: 6px;
}

.consolidation-empty-state,
.consolidation-empty-list {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(248,250,252,1), rgba(255,255,255,1));
    border: 1px dashed rgba(148,163,184,.45);
}

.guide-card-highlight {
    border-color: rgba(0,49,137,.14);
    box-shadow: 0 18px 36px rgba(0,49,137,.08);
}

body.theme-dark .consolidation-overview-card,
body.theme-dark .consolidation-rhythm-card,
body.theme-dark .consolidation-week-card,
body.theme-dark .consolidation-editor-card,
body.theme-dark .consolidation-guide-panel,
body.theme-dark .consolidation-card,
body.theme-dark .consolidation-mini-card,
body.theme-dark .guide-card-highlight {
    background: linear-gradient(180deg, rgba(15,23,42,.96), rgba(17,24,39,.96));
    border-color: rgba(148,163,184,.16);
}

body.theme-dark .consolidation-seance {
    background: linear-gradient(180deg, rgba(15,23,42,.96), rgba(30,41,59,.96));
    border-color: rgba(148,163,184,.18);
}

body.theme-dark .consolidation-seance.active {
    background: linear-gradient(180deg, rgba(30,41,59,.96), rgba(37,99,235,.2));
    border-color: rgba(96,165,250,.44);
}

body.theme-dark .consolidation-empty-list,
body.theme-dark .consolidation-empty-state {
    background: linear-gradient(180deg, rgba(15,23,42,.96), rgba(30,41,59,.9));
}

@media (max-width: 1180px) {
    .consolidation-overview,
    .consolidation-layout,
    .consolidation-editor-grid,
    .consolidation-card-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .consolidation-overview-card,
    .consolidation-rhythm-card,
    .consolidation-section-head,
    .consolidation-card-top {
        flex-direction: column;
    }

    .consolidation-answer-line {
        grid-template-columns: 1fr;
    }
}

/* Pépite v2.2.8 — consolidation en double colonne, EDT agrandi et projection */
.consolidation-layout {
    grid-template-columns: 1fr;
}

.consolidation-grid-wrap {
    overflow-x: auto;
}

.consolidation-grid.consolidation-grid-compact {
    min-width: 760px;
}

.consolidation-grid-compact .edt-header-cell {
    padding: 8px 4px;
    font-size: .68rem;
}

.consolidation-grid-compact .edt-header-cell small {
    display: block;
    margin-top: 2px;
    font-size: .62rem;
    opacity: .92;
}

.consolidation-grid-compact .edt-time-cell {
    padding: 5px 6px;
    font-size: .66rem;
}

.consolidation-grid .edt-cell,
.consolidation-grid-compact .edt-cell {
    min-height: 68px;
    padding: 4px;
}

.consolidation-grid-compact .consolidation-seance {
    padding: 5px 6px;
    border-radius: 10px;
    font-size: .68rem;
}

.consolidation-grid-compact .edt-seance-title {
    font-size: .7rem;
}

.consolidation-grid-compact .edt-seance-time,
.consolidation-grid-compact .consolidation-seance-meta {
    font-size: .6rem;
}

.consolidation-editor-vertical {
    display: grid;
    gap: 18px;
}

.consolidation-editor-grid {
    grid-template-columns: 1fr;
}

.consolidation-textarea {
    min-height: 180px;
}

.consolidation-export-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.consolidation-week-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.consolidation-week-nav-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.consolidation-week-current {
    color: var(--text-muted);
    font-weight: 700;
}

.consolidation-timeline-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
}

.consolidation-timeline-week {
    min-width: 78px;
    border: 1px solid rgba(0,49,137,.12);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(248,250,252,1), rgba(255,255,255,1));
    color: var(--text-main);
    padding: 10px 10px 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: var(--transition);
}

.consolidation-timeline-week strong {
    color: var(--primary);
    font-size: .82rem;
}

.consolidation-timeline-week span {
    color: var(--text-muted);
    font-size: .72rem;
}

.consolidation-timeline-week:hover,
.consolidation-timeline-week.active {
    border-color: rgba(37,99,235,.45);
    box-shadow: 0 12px 28px rgba(37,99,235,.12);
    transform: translateY(-1px);
}

.consolidation-timeline-week.active {
    background: linear-gradient(180deg, rgba(239,246,255,1), rgba(219,234,254,1));
}

.guide-animation-card {
    border-color: rgba(0,49,137,.14);
    box-shadow: 0 18px 36px rgba(0,49,137,.08);
}

body.theme-dark .consolidation-timeline-week {
    background: linear-gradient(180deg, rgba(15,23,42,.96), rgba(30,41,59,.96));
    border-color: rgba(148,163,184,.16);
}

body.theme-dark .consolidation-timeline-week strong {
    color: #bfdbfe;
}

body.theme-dark .consolidation-timeline-week span,
body.theme-dark .consolidation-week-current {
    color: #cbd5e1;
}

body.theme-dark .consolidation-timeline-week.active,
body.theme-dark .guide-animation-card {
    background: linear-gradient(180deg, rgba(30,41,59,.96), rgba(37,99,235,.2));
    border-color: rgba(96,165,250,.44);
}

@media (max-width: 760px) {
    .consolidation-week-nav {
        align-items: stretch;
    }

    .consolidation-week-nav-actions,
    .consolidation-export-actions {
        flex-direction: column;
    }

    .consolidation-grid {
        min-width: 680px;
    }
}

/* Pépite v2.2.8 — consolidation alignée sur la rubrique Classes */
.consolidation-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
}

.consolidation-week-card,
.consolidation-editor-card {
    min-width: 0;
}

.consolidation-grid {
    min-width: 100%;
}

.consolidation-grid .edt-header-cell {
    padding: 12px 8px;
    font-size: .78rem;
}

.consolidation-grid .edt-header-cell small {
    display: block;
    margin-top: 4px;
    font-size: .7rem;
    color: rgba(255,255,255,.82);
    opacity: 1;
}

.consolidation-grid .edt-time-cell {
    padding: 6px 8px;
    font-size: .72rem;
}

.consolidation-grid .edt-cell {
    min-height: 50px;
    padding: 6px;
}

.consolidation-grid .consolidation-seance {
    padding: 6px 8px;
    border-radius: 6px;
    font-size: .72rem;
}

.consolidation-grid .edt-seance-title {
    font-size: .72rem;
}

.consolidation-grid .edt-seance-time {
    font-size: .65rem;
}

.consolidation-grid .consolidation-seance-meta {
    font-size: .75rem;
}

.consolidation-textarea {
    min-height: 240px;
}

/* ==============================
   ACTIVITÉS — Onglets
   ============================== */
.activites-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--bg);
    padding: 4px;
    border-radius: 8px;
    width: fit-content;
}
.activites-tab-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.activites-tab-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.activites-tab-content { display: block; }

/* Pépite v2.3.6 — rapidité, tablette, accessibilité et sensation native */
:root {
    --app-dvh: 100vh;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-height: var(--app-dvh);
    overscroll-behavior-y: contain;
}

body.nav-open,
body.modal-open {
    overflow: hidden;
}

button,
a,
input,
select,
textarea {
    touch-action: manipulation;
}

.input-text,
.input-search,
.select-styled,
.textarea-large,
.mobile-select,
button,
.btn,
.btn-sm {
    font-size: 16px;
}

.app-header {
    position: sticky;
    top: 0;
    padding-top: calc(14px + var(--safe-top));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.app-main,
.view,
.modal-body,
.main-nav,
.canvas-wrapper,
.eleves-table-wrap,
.edt-grid-wrap,
.consolidation-grid-wrap {
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-toggle,
.mobile-nav-backdrop {
    display: none;
}

.mobile-nav-toggle {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    z-index: 1002;
    border: none;
    background: rgba(255,255,255,.16);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.mobile-nav-toggle i {
    pointer-events: none;
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    border: none;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.mobile-nav-backdrop.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.plan-touch-note {
    display: none;
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(0, 160, 227, .1);
    border: 1px solid rgba(0, 160, 227, .24);
    color: var(--primary-dark);
}

.is-touch-device .plan-touch-note {
    display: block;
}

.is-touch-device #plan-classroom .seat.mobile-seat-selected,
.is-touch-device #parking-grid .seat.mobile-seat-selected {
    outline: 3px solid rgba(0, 160, 227, .45);
    box-shadow: 0 0 0 4px rgba(0, 160, 227, .14), 0 12px 24px rgba(0, 49, 137, .14);
    transform: translateY(-1px);
}

.is-touch-device .teacher-desk-handle,
.is-touch-device .table-drag-handle,
.is-touch-device .table-rotate-btn,
.is-touch-device .table-delete-btn,
.is-touch-device #plan-classroom,
.is-touch-device .mobile-score-btn {
    touch-action: none;
}

@media (max-width: 900px) {
    .app-header {
        gap: 10px 14px;
        padding-left: calc(14px + var(--safe-left));
        padding-right: calc(14px + var(--safe-right));
        padding-bottom: 12px;
    }

    .header-home-link {
        min-width: 0;
        flex: 1;
    }

    .header-brand {
        min-width: 0;
        flex: 1;
    }

    .brand-text {
        min-width: 0;
    }

    .brand-text h1,
    .brand-text span {
        white-space: normal;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        order: 2;
        margin-left: auto;
        flex-shrink: 0;
    }

    .main-nav {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(88vw, 360px);
        height: var(--app-dvh);
        padding: calc(22px + var(--safe-top)) 16px calc(24px + var(--safe-bottom)) 16px;
        background: linear-gradient(180deg, rgba(0,31,92,.98), rgba(0,49,137,.98));
        border-top: none;
        border-left: 1px solid rgba(255,255,255,.12);
        box-shadow: -14px 0 34px rgba(15,23,42,.22);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        z-index: 1001;
        transform: translateX(104%);
        transition: transform .22s ease;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav .nav-btn[style] {
        margin-left: 0 !important;
    }

    .nav-btn {
        width: 100%;
        min-height: 46px;
        justify-content: flex-start;
        font-size: .95rem;
        padding: 12px 14px;
    }

    .nav-btn i {
        display: inline-flex !important;
    }

    .header-actions {
        width: 100%;
        margin-left: 0;
        order: 3;
        display: grid;
        grid-template-columns: 1fr;
    }

    .class-selector-wrap,
    .class-selector-wrap select {
        width: 100%;
    }

    .class-selector-wrap {
        justify-content: flex-start;
        gap: 10px;
        flex-wrap: wrap;
        padding: 10px 12px;
    }

    .class-selector-wrap select {
        min-height: 44px;
    }

    .view {
        padding: 18px calc(14px + var(--safe-right)) calc(26px + var(--safe-bottom)) calc(14px + var(--safe-left));
    }

    .view-header-actions,
    .plan-actions,
    .panel-inline-actions,
    .chart-panel-export-actions {
        width: 100%;
    }

    .view-header-actions .btn,
    .plan-actions .btn,
    .panel-inline-actions .btn,
    .chart-panel-export-actions .btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .btn,
    .btn-sm,
    .btn-icon-sm,
    .layout-btn,
    .mode-btn,
    .modal-close-btn,
    .table-drag-handle,
    .table-rotate-btn,
    .table-delete-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-box,
    .modal-large,
    .modal-xl,
    .modal-xlarge {
        width: 100%;
        max-width: none;
        max-height: calc(var(--app-dvh) - 6px);
        border-radius: 20px 20px 0 0;
    }

    .modal-header {
        padding: 16px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-footer {
        padding: 14px 16px calc(14px + var(--safe-bottom));
        flex-wrap: wrap;
    }

    .modal-footer .btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .toast {
        left: 14px;
        right: 14px;
        bottom: calc(14px + var(--safe-bottom));
        width: auto;
    }
}

@media (max-width: 640px) {
    .brand-text span {
        display: none;
    }

    .view-header h2 {
        font-size: 1.15rem;
    }

    .class-details-grid,
    .classes-grid {
        grid-template-columns: 1fr;
    }
}

/* Pépite v2.3.6 — finition mobile et tablette premium */
@media (max-width: 900px) {
    :root {
        --mobile-action-bar-height: 90px;
    }

    .mobile-nav-toggle {
        position: relative;
        z-index: 1002;
        width: 40px;
        height: 40px;
        border-radius: 11px;
        background: rgba(255,255,255,.12);
    }

    body.nav-open .mobile-nav-toggle {
        background: rgba(255,255,255,.96);
        color: var(--primary);
    }

    .main-nav {
        width: min(82vw, 320px);
        padding: calc(18px + var(--safe-top)) 12px calc(18px + var(--safe-bottom)) 12px;
        gap: 8px;
        border-left: 1px solid rgba(255,255,255,.1);
        box-shadow: -18px 0 34px rgba(15,23,42,.26);
        visibility: hidden;
        pointer-events: none;
    }

    .main-nav::before {
        content: 'Navigation';
        display: block;
        margin-bottom: 4px;
        padding: 0 2px 8px;
        font-size: .74rem;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: rgba(255,255,255,.62);
        border-bottom: 1px solid rgba(255,255,255,.12);
    }

    .main-nav.open {
        visibility: visible;
        pointer-events: auto;
    }

    .nav-btn {
        min-height: 42px;
        padding: 10px 12px;
        font-size: .89rem;
        border-radius: 12px;
        background: rgba(255,255,255,.08);
        gap: 8px;
    }

    .nav-btn i {
        width: 18px;
        justify-content: center;
    }

    .class-selector-wrap {
        padding: 8px 10px;
        border-radius: 12px;
    }

    .class-selector-wrap label {
        font-size: .72rem;
    }

    .view {
        padding-bottom: calc(30px + var(--safe-bottom));
    }

    .input-text,
    .input-search,
    .select-styled,
    .textarea-large {
        min-height: 50px;
        padding: 13px 14px;
        border-radius: 14px;
        font-size: 16px;
    }

    .plan-number-input,
    input[type="number"].input-text {
        text-align: center;
        font-weight: 700;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group label {
        font-size: .88rem;
        margin-bottom: 8px;
    }

    .field-help,
    .panel-help {
        font-size: .8rem;
        line-height: 1.45;
    }

    .radio-option {
        gap: 12px;
        padding: 12px;
        border-radius: 14px;
    }

    .radio-option input[type="radio"] {
        transform: scale(1.15);
        margin-top: 4px;
    }

    .panel {
        padding: 14px;
        border-radius: 16px;
    }

    .modal-footer {
        position: sticky;
        bottom: 0;
        background: rgba(248,250,252,.96);
        backdrop-filter: blur(10px);
    }

    #view-evaluation .view-header-actions {
        align-items: stretch;
    }

    #view-evaluation .view-header-actions .btn,
    #view-evaluation .view-header-actions .select-styled,
    #view-evaluation .view-header-actions a.btn {
        flex: 1 1 100%;
    }

    #view-classes.active > .view-header .mobile-primary-actions,
    #view-groupes.active .groupes-actions-row.mobile-primary-actions {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(10px + var(--safe-bottom));
        z-index: 960;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 10px;
        background: rgba(255,255,255,.96);
        border: 1px solid rgba(148,163,184,.28);
        border-radius: 18px;
        box-shadow: 0 16px 34px rgba(15,23,42,.16);
        backdrop-filter: blur(12px);
    }

    #view-groupes.active .groupes-actions-row.mobile-primary-actions {
        grid-template-columns: 1fr;
    }

    #view-classes.active,
    #view-groupes.active {
        padding-bottom: calc(132px + var(--safe-bottom));
    }

    #view-classes.active > .view-header .mobile-primary-actions .btn,
    #view-groupes.active .groupes-actions-row.mobile-primary-actions .btn {
        width: 100%;
        min-height: 48px;
    }

    body[data-current-view="classes"] .toast,
    body[data-current-view="groupes"] .toast,
    body[data-current-view="plan"] .toast {
        bottom: calc(104px + var(--safe-bottom));
    }

    #view-plan.active {
        padding: 12px calc(10px + var(--safe-right)) calc(140px + var(--safe-bottom)) calc(10px + var(--safe-left));
    }

    .plan-layout {
        gap: 12px;
    }

    .plan-sidebar {
        width: 100%;
        min-width: 0;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    .plan-sidebar-brand {
        gap: 10px;
        margin-bottom: 8px;
        padding: 0 2px;
    }

    .plan-sidebar-brand h3 {
        margin-bottom: 0;
    }

    .plan-mobile-settings-toggle {
        margin-left: auto;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
    }

    .plan-sidebar-panels {
        display: grid;
        gap: 12px;
        margin-bottom: 12px;
    }

    .plan-sidebar.mobile-collapsed .plan-sidebar-panels {
        display: none;
    }

    .plan-touch-note {
        margin: 0 0 10px;
        padding: 10px 12px;
        font-size: .78rem;
        border-radius: 14px;
    }

    .plan-toolbar {
        position: sticky;
        top: calc(76px + var(--safe-top));
        z-index: 20;
        height: auto;
        margin-bottom: 10px;
        padding: 10px 12px;
        border: 1px solid var(--border);
        border-radius: 16px;
        box-shadow: var(--shadow-sm);
    }

    .plan-toolbar-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .plan-toolbar-actions .stats-pill {
        flex: 1 1 100%;
        justify-content: center;
    }

    .plan-toolbar-actions .btn {
        flex: 1 1 calc(50% - 4px);
    }

    .canvas-wrapper {
        padding: 12px 6px 92px;
        border-radius: 18px;
        background-size: 16px 16px;
    }

    #plan-export-area {
        width: max-content;
        min-width: 100%;
        padding: 14px 12px 18px;
        border-radius: 18px;
    }

    .classroom-container {
        gap: 16px;
    }

    .row-group {
        gap: 14px;
        align-items: flex-start;
    }

    .mode-classic .table-block {
        padding: 6px;
    }

    .teacher-desk {
        width: 180px;
        margin-bottom: 18px;
        font-size: .62rem;
        letter-spacing: 1.2px;
    }

    .seat {
        width: 74px;
        height: 46px;
        font-size: .66rem;
        border-radius: 10px;
    }

    .seat-name-stack small {
        font-size: .52rem;
    }

    .plan-actions.plan-mobile-actions {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(10px + var(--safe-bottom));
        z-index: 970;
        margin-top: 0;
        padding: 10px;
        background: rgba(255,255,255,.97);
        border: 1px solid rgba(148,163,184,.28);
        border-radius: 18px;
        box-shadow: 0 16px 34px rgba(15,23,42,.16);
        backdrop-filter: blur(12px);
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .plan-actions.plan-mobile-actions .btn {
        min-height: 48px;
        width: 100%;
        white-space: normal;
    }

    .parking-dock-sidebar {
        position: static;
        width: 100%;
        max-height: 30vh;
        margin-top: 12px;
        border-radius: 16px;
    }

    .parking-grid {
        grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    }

    .parking-grid .seat {
        width: 100%;
        height: 48px;
    }

    .is-touch-device #plan-classroom {
        touch-action: pan-x pan-y;
    }
}

@media (max-width: 640px) {
    .mobile-nav-toggle {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .main-nav {
        width: min(84vw, 300px);
        padding: calc(16px + var(--safe-top)) 10px calc(16px + var(--safe-bottom)) 10px;
    }

    .nav-btn {
        min-height: 40px;
        padding: 9px 11px;
        font-size: .84rem;
    }

    .app-header {
        gap: 8px 10px;
        padding-bottom: 10px;
    }

    .view-header {
        margin-bottom: 16px;
    }

    .view-header h2 {
        font-size: 1.06rem;
    }

    #view-classes.active > .view-header .mobile-primary-actions {
        grid-template-columns: 1fr;
    }

    .plan-toolbar-actions .btn {
        flex: 1 1 100%;
    }

    .seat {
        width: 68px;
        height: 44px;
        font-size: .62rem;
    }

    .row-group {
        gap: 10px;
    }

    .canvas-wrapper {
        padding-left: 4px;
        padding-right: 4px;
    }

    #plan-export-area {
        padding: 12px 8px 16px;
    }
}

/* Pépite v2.3.6 — activités premium, navigation native et plein écran immersif */
.activites-premium-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.activite-hero-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(59,130,246,.18);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(239,246,255,.98));
    box-shadow: 0 18px 42px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.8);
    transform-style: preserve-3d;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
    cursor: pointer;
}
.activite-hero-card:hover,
.activite-hero-card:focus-within {
    transform: translateY(-4px) rotateX(1.2deg);
    border-color: rgba(37,99,235,.4);
    box-shadow: 0 28px 56px rgba(37,99,235,.14), 0 10px 26px rgba(15,23,42,.08);
}
.activite-hero-glow {
    position: absolute;
    inset: -80px auto auto -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(96,165,250,.25), transparent 68%);
    pointer-events: none;
}
.activite-hero-head {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.activite-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(37,99,235,.1);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.activite-hero-head h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: 0;
}
.activite-hero-head p,
.activite-hero-note {
    color: var(--text-muted);
    line-height: 1.55;
}
.activite-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(96,165,250,.32));
    color: var(--primary);
    font-size: 1.5rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.activite-hero-points {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0 14px;
}
.activite-hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(148,163,184,.24);
    color: var(--text-main);
    font-size: .8rem;
    font-weight: 600;
}
.activite-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.app-bottom-nav {
    display: none;
}
.bottom-nav-btn {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    color: var(--text-muted);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 56px;
    border-radius: 16px;
    font-size: .72rem;
    font-weight: 700;
}
.bottom-nav-btn i {
    font-size: 1.05rem;
}
.bottom-nav-btn.active {
    color: var(--primary);
    background: rgba(37,99,235,.08);
}
#plan-fullscreen-btn.active {
    border-color: rgba(37,99,235,.4);
    color: var(--primary);
    background: rgba(37,99,235,.08);
}
body.plan-fullscreen .app-header,
body.plan-fullscreen .app-footer,
body.plan-fullscreen .app-bottom-nav {
    display: none !important;
}
body.plan-fullscreen #view-plan.active {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
}
body.plan-fullscreen .plan-layout,
body.plan-fullscreen .plan-main {
    height: 100%;
}
body.plan-fullscreen .canvas-wrapper {
    min-height: calc(var(--app-dvh) - 132px);
}
@media (max-width: 900px) {
    .app-main {
        padding-bottom: calc(84px + var(--safe-bottom));
    }
    .app-footer {
        padding-bottom: calc(88px + var(--safe-bottom));
    }
    .app-bottom-nav {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 6px;
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(8px + var(--safe-bottom));
        z-index: 1100;
        padding: 8px;
        background: rgba(255,255,255,.97);
        border: 1px solid rgba(148,163,184,.24);
        border-radius: 22px;
        box-shadow: 0 18px 40px rgba(15,23,42,.14);
        backdrop-filter: blur(14px);
    }
    .main-nav {
        bottom: calc(86px + var(--safe-bottom));
        height: calc(var(--app-dvh) - 86px - var(--safe-bottom));
    }
    #view-classes.active > .view-header .mobile-primary-actions,
    #view-groupes.active .groupes-actions-row.mobile-primary-actions,
    .plan-actions.plan-mobile-actions {
        bottom: calc(84px + var(--safe-bottom));
    }
    body[data-current-view="classes"] .toast,
    body[data-current-view="groupes"] .toast,
    body[data-current-view="plan"] .toast {
        bottom: calc(170px + var(--safe-bottom));
    }
    #view-plan.active {
        padding-bottom: calc(206px + var(--safe-bottom));
    }
    .plan-toolbar {
        top: calc(68px + var(--safe-top));
    }
    body.plan-fullscreen #view-plan.active {
        padding: calc(8px + var(--safe-top)) calc(8px + var(--safe-right)) calc(102px + var(--safe-bottom)) calc(8px + var(--safe-left));
    }
    body.plan-fullscreen .plan-sidebar {
        display: none;
    }
    body.plan-fullscreen .plan-toolbar {
        top: 0;
        margin-bottom: 8px;
        border-radius: 18px;
    }
    body.plan-fullscreen .canvas-wrapper {
        padding: 8px 2px 110px;
        min-height: calc(var(--app-dvh) - 118px);
    }
    body.plan-fullscreen .plan-actions.plan-mobile-actions {
        bottom: calc(10px + var(--safe-bottom));
    }
    body.plan-fullscreen .toast {
        bottom: calc(96px + var(--safe-bottom));
    }
    .activite-hero-actions .btn {
        flex: 1 1 100%;
    }
}
@media (max-width: 640px) {
    .app-bottom-nav {
        left: 8px;
        right: 8px;
        gap: 4px;
        padding: 7px;
        border-radius: 20px;
    }
    .bottom-nav-btn {
        min-height: 52px;
        font-size: .68rem;
    }
    .activite-hero-head {
        flex-direction: column;
    }
    .activite-hero-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }
    .activite-hero-card {
        padding: 18px;
    }
}

/* Pépite v2.3.6 — performance, contraste, tablette et sensation native */
:root {
    color-scheme: light;
    accent-color: #005fcc;
    --focus-ring: #0b57d0;
    --focus-ring-shadow: 0 0 0 4px rgba(11,87,208,.18);
    --native-glass: rgba(255,255,255,.88);
    --native-border: rgba(15,23,42,.12);
    --native-shadow: 0 18px 44px rgba(15,23,42,.12);
}

html {
    scroll-behavior: smooth;
}

body {
    background: #edf4ff;
    color: #0f172a;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
}

.skip-link {
    position: fixed;
    left: 12px;
    top: calc(8px + var(--safe-top));
    transform: translateY(-160%);
    z-index: 1600;
    padding: 10px 14px;
    border-radius: 14px;
    background: #ffffff;
    color: var(--primary);
    border: 2px solid rgba(37,99,235,.28);
    box-shadow: var(--native-shadow);
    font-weight: 700;
    transition: transform .18s ease;
}

.skip-link:focus-visible {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    box-shadow: var(--focus-ring-shadow);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    border-color: var(--focus-ring);
}

.card,
.class-card,
.panel,
.modal-box,
.school-month-card,
.chart-panel,
.consolidation-card,
.consolidation-week,
.plan-toolbar,
.plan-sidebar,
.app-bottom-nav {
    contain: layout paint style;
}

.class-card,
.card,
.panel,
.consolidation-card,
.history-chart-panel,
.bilan-summary-card,
.plan-toolbar,
.plan-sidebar {
    content-visibility: auto;
    contain-intrinsic-size: 320px 180px;
}

.nav-btn,
.bottom-nav-btn,
.btn,
.layout-btn,
.mode-btn,
.segmented-btn,
.activites-tab-btn,
.class-card,
.activite-hero-card {
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}

.bottom-nav-btn,
.mobile-nav-toggle,
.btn,
.nav-btn,
.modal-box,
.plan-toolbar,
.plan-sidebar,
.class-selector-wrap {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.bottom-nav-btn span,
.nav-btn span,
.brand-text,
.class-card-name,
.block-subtitle,
.help-text,
.activite-hero-note,
.consolidation-card-meta,
.consolidation-seance-meta {
    text-wrap: balance;
}

.toast {
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 18px 40px rgba(15,23,42,.16);
}

body.platform-ios .app-header,
body.platform-ios .app-bottom-nav,
body.platform-android .app-header,
body.platform-android .app-bottom-nav {
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

body.platform-ios .app-bottom-nav {
    border-radius: 24px;
}

body.platform-android .app-bottom-nav {
    border-radius: 26px;
}

body.platform-windows {
    --shadow-sm: 0 10px 24px rgba(15,23,42,.08);
}

body.is-standalone .app-header {
    padding-top: calc(10px + var(--safe-top));
}

body.is-standalone .app-bottom-nav {
    bottom: calc(4px + var(--safe-bottom));
}

.main-nav .nav-btn.active,
.bottom-nav-btn.active {
    position: relative;
}

.bottom-nav-btn.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 24px;
    height: 4px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #00a0e3);
}

.bottom-nav-btn:active,
.btn:active,
.nav-btn:active,
.activite-hero-card:active {
    transform: scale(.985);
}

.plan-toolbar,
.plan-sidebar,
.class-selector-wrap,
.mobile-nav-toggle,
.app-bottom-nav {
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.92));
    border: 1px solid var(--native-border);
    box-shadow: var(--native-shadow);
}

body.plan-fullscreen {
    background: #dfeeff;
}

body.plan-fullscreen #view-plan.active {
    border-radius: 0;
}

body.plan-fullscreen .plan-layout {
    gap: 10px;
}

body.plan-fullscreen .plan-toolbar {
    position: sticky;
    top: calc(6px + var(--safe-top));
    z-index: 1205;
    margin-bottom: 6px;
}

body.plan-fullscreen .plan-main {
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255,255,255,.58);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

body.plan-fullscreen .canvas-wrapper {
    background: radial-gradient(circle at top, rgba(191,219,254,.55), rgba(248,250,252,.96) 58%);
}

body.plan-native-immersive .plan-toolbar {
    padding-top: calc(8px + var(--safe-top));
}

body.plan-native-immersive .plan-actions.plan-mobile-actions {
    background: rgba(255,255,255,.94);
    border-color: rgba(37,99,235,.12);
    box-shadow: 0 18px 44px rgba(15,23,42,.14);
}

@media (max-width: 900px) {
    .app-main {
        contain: layout paint;
    }

    .app-bottom-nav {
        background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(241,245,249,.92));
        box-shadow: 0 16px 40px rgba(15,23,42,.16), inset 0 1px 0 rgba(255,255,255,.92);
    }

    .bottom-nav-btn {
        min-height: 58px;
        gap: 5px;
    }

    .bottom-nav-btn.active {
        background: rgba(37,99,235,.1);
        color: #0b57d0;
    }

    .view {
        padding-top: 16px;
    }

    .card,
    .panel,
    .class-card,
    .activite-hero-card,
    .modal-box {
        border-radius: 20px;
    }

    .input-text,
    .input-search,
    .select-styled,
    .textarea-large,
    .mobile-select {
        min-height: 48px;
        border-width: 1.5px;
        background: rgba(255,255,255,.98);
    }

    .plan-toolbar {
        border-radius: 18px;
    }

    body.plan-fullscreen #view-plan.active {
        background: linear-gradient(180deg, #e8f1ff 0%, #f8fbff 100%);
    }

    body.plan-fullscreen .plan-main {
        border-radius: 20px;
    }
}

@media (max-width: 640px) {
    .brand-text span {
        color: rgba(255,255,255,.92);
    }

    .bottom-nav-btn {
        min-height: 54px;
        font-size: .7rem;
    }

    body.plan-fullscreen .canvas-wrapper {
        padding-bottom: 116px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (prefers-contrast: more) {
    :root {
        --border: rgba(15,23,42,.34);
        --text-muted: #334155;
    }

    body {
        background: #f8fbff;
    }

    .card,
    .class-card,
    .panel,
    .modal-box,
    .app-bottom-nav,
    .plan-toolbar,
    .plan-sidebar,
    .nav-btn,
    .bottom-nav-btn,
    .btn,
    .select-styled,
    .input-text,
    .input-search,
    .textarea-large {
        border-color: rgba(15,23,42,.38) !important;
    }

    .btn-primary,
    .nav-btn.active,
    .bottom-nav-btn.active {
        box-shadow: inset 0 0 0 2px rgba(15,23,42,.18);
    }
}

@media (forced-colors: active) {
    .skip-link,
    .btn,
    .nav-btn,
    .bottom-nav-btn,
    .card,
    .modal-box,
    .input-text,
    .input-search,
    .select-styled,
    .textarea-large {
        forced-color-adjust: auto;
        border: 1px solid CanvasText;
    }
}

.quiz-scoreboard-list {
    display: grid;
    gap: 10px;
}

.quiz-scoreboard-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe4f3;
}

.quiz-scoreboard-item.is-leading {
    border-color: rgba(22,163,74,.35);
    box-shadow: 0 0 0 2px rgba(22,163,74,.08);
}

.quiz-scoreboard-rank {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff4ff;
    color: var(--primary);
    font-weight: 800;
}

.quiz-scoreboard-name strong,
.quiz-scoreboard-name small {
    display: block;
}

.quiz-scoreboard-name small {
    color: var(--text-muted);
}

.quiz-scoreboard-points {
    font-weight: 800;
    color: var(--primary);
}

/* Pépite v2.3.6 — mode tablette enseignant, offline renforcé et RGAA poussé */
body.is-offline .app-header,
body.is-offline .app-bottom-nav {
    border-color: rgba(217,119,6,.34);
    box-shadow: 0 14px 34px rgba(180,83,9,.14);
}

body.is-offline .app-header::after {
    content: 'Mode hors ligne';
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(245,158,11,.14);
    color: #92400e;
    font-size: .76rem;
    font-weight: 700;
}

[role="tab"][aria-selected="true"] {
    box-shadow: 0 0 0 2px rgba(37,99,235,.12) inset;
}

.modal-box[role="dialog"] {
    outline: none;
}

.teacher-tablet-mode .view {
    padding-left: 24px;
    padding-right: 24px;
}

.teacher-tablet-mode .view-header {
    align-items: flex-start;
}

.teacher-tablet-mode .class-details-grid,
.teacher-tablet-mode .groupes-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    gap: 18px;
}

.teacher-tablet-mode .view-header-actions,
.teacher-tablet-mode .groupes-actions-row {
    flex-wrap: nowrap;
}

.teacher-tablet-mode .btn,
.teacher-tablet-mode .nav-btn,
.teacher-tablet-mode .bottom-nav-btn,
.teacher-tablet-mode .select-styled,
.teacher-tablet-mode .input-text,
.teacher-tablet-mode .input-search,
.teacher-tablet-mode .textarea-large {
    min-height: 50px;
}

.teacher-tablet-mode .plan-layout {
    gap: 18px;
}

.teacher-tablet-mode .plan-sidebar {
    position: sticky;
    top: calc(88px + var(--safe-top));
    max-width: 360px;
    max-height: calc(var(--app-dvh) - 128px - var(--safe-bottom));
}

.teacher-tablet-mode .plan-toolbar {
    top: calc(88px + var(--safe-top));
}

.teacher-tablet-mode .app-bottom-nav {
    display: grid;
    width: min(92vw, 920px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.teacher-tablet-mode .bottom-nav-btn {
    min-height: 62px;
    font-size: .8rem;
}

.teacher-tablet-mode #view-plan.active {
    padding-bottom: calc(146px + var(--safe-bottom));
}

.teacher-tablet-mode .plan-actions.plan-mobile-actions {
    bottom: calc(88px + var(--safe-bottom));
}

.teacher-tablet-mode .modal-box,
.teacher-tablet-mode .modal-large,
.teacher-tablet-mode .modal-xl,
.teacher-tablet-mode .modal-xlarge {
    max-width: min(920px, calc(100vw - 48px));
}

@media (min-width: 768px) and (max-width: 1366px) and (pointer: coarse) {
    .app-header {
        padding-left: calc(22px + var(--safe-left));
        padding-right: calc(22px + var(--safe-right));
    }

    .main-nav {
        gap: 8px;
    }
}

/* Pépite v2.3.6 — stabilité QA complète et Plan de classe tactile optimisé */
.plan-qa-btn {
    border-color: rgba(14, 116, 144, .24);
}

.plan-qa-btn i {
    color: #0f766e;
}

.plan-touch-note {
    border: 1px solid rgba(14,116,144,.18);
    background: linear-gradient(135deg, rgba(240,253,250,.92), rgba(236,253,245,.96));
    color: #0f172a;
}

#plan-classroom {
    -webkit-user-select: none;
    user-select: none;
}

.plan-interacting .canvas-wrapper,
.plan-interacting #plan-classroom {
    touch-action: none;
    overscroll-behavior: contain;
}

.seat {
    touch-action: manipulation;
}

.teacher-desk,
.teacher-desk-handle,
.table-drag-handle,
.table-rotate-btn,
.table-delete-btn {
    touch-action: none;
}

.is-touch-device .teacher-desk-handle,
.is-touch-device .table-drag-handle,
.is-touch-device .table-rotate-btn,
.is-touch-device .table-delete-btn {
    min-width: 44px;
    min-height: 44px;
    border-radius: 14px;
}

.is-touch-device .plan-toolbar-actions .btn,
.is-touch-device .plan-actions.plan-mobile-actions .btn {
    min-height: 50px;
}

.is-touch-device .plan-toolbar-actions {
    gap: 10px;
}

.is-touch-device .seat {
    min-width: 76px;
    min-height: 50px;
}

.is-touch-device .parking-grid .seat {
    min-height: 52px;
}

.is-touch-device .draggable-table.is-selected {
    box-shadow: 0 0 0 3px rgba(11,87,208,.18), 0 18px 32px rgba(15,23,42,.16);
}

body.plan-fullscreen .plan-toolbar-actions .plan-qa-btn,
.teacher-tablet-mode .plan-toolbar-actions .plan-qa-btn {
    flex: 1 1 calc(50% - 4px);
}

.teacher-tablet-mode .plan-touch-note {
    font-size: .84rem;
}

.teacher-tablet-mode .seat {
    width: 78px;
    height: 48px;
}

.teacher-tablet-mode .plan-actions.plan-mobile-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .plan-toolbar-actions .plan-qa-btn {
        flex: 1 1 100%;
    }

    .plan-actions.plan-mobile-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .is-touch-device .seat {
        min-width: 70px;
        min-height: 48px;
    }

    .plan-actions.plan-mobile-actions {
        grid-template-columns: 1fr;
    }
}

/* Pépite v2.3.8 — clavier complet, contraste classe active et impression rapide du plan */
.class-selector-wrap {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.55);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.class-selector-wrap label {
    color: var(--primary);
    font-weight: 800;
}
.class-selector-wrap select {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary-dark);
}
.class-selector-wrap select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(191,219,254,.55);
}
.parking-header[role="button"] {
    width: 100%;
    border: none;
    text-align: left;
}
#plan-classroom .draggable-table:focus-visible,
#plan-classroom .seat:focus-visible,
.teacher-desk-handle:focus-visible,
.parking-header:focus-visible,
.parking-grid .seat:focus-visible {
    outline: 3px solid rgba(37,99,235,.9);
    outline-offset: 3px;
}
#plan-classroom .draggable-table:focus-visible {
    box-shadow: 0 0 0 4px rgba(191,219,254,.95), 0 14px 30px rgba(15,23,42,.14) !important;
}
.teacher-desk-handle[role="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
}
.plan-fast-export-host {
    position: fixed;
    left: -10000px;
    top: 0;
    opacity: 0;
    pointer-events: none;
    contain: layout style paint;
    background: #fff;
    z-index: -1;
}
@media print {
    body.plan-print-mode .app-header,
    body.plan-print-mode .app-footer,
    body.plan-print-mode .app-bottom-nav,
    body.plan-print-mode .mobile-nav-backdrop,
    body.plan-print-mode .plan-sidebar,
    body.plan-print-mode .plan-toolbar,
    body.plan-print-mode .export-actions,
    body.plan-print-mode .modal-overlay {
        display: none !important;
    }
    body.plan-print-mode .view {
        display: none !important;
        padding: 0 !important;
        min-height: auto !important;
    }
    body.plan-print-mode #view-plan {
        display: block !important;
    }
    body.plan-print-mode .plan-layout,
    body.plan-print-mode .plan-main,
    body.plan-print-mode .canvas-wrapper {
        display: block !important;
        background: #fff !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    body.plan-print-mode #plan-export-area {
        width: auto !important;
        min-width: auto !important;
        max-width: none !important;
        margin: 0 auto !important;
        border: none !important;
        box-shadow: none !important;
    }
}

/* Pépite v2.4.2 — activité Quiz type QCMCam */
.activites-premium-grid-double {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.activite-hero-card-quiz {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

.quiz-shell {
    display: grid;
    gap: 20px;
}

.quiz-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .9fr);
    gap: 20px;
}

.quiz-hero-card {
    border: 1px solid #dbe4f3;
    background: linear-gradient(135deg, rgba(0,49,137,.05) 0%, rgba(37,99,235,.02) 100%);
}

.quiz-hero-head,
.quiz-section-head,
.quiz-progress-head,
.quiz-table-head,
.quiz-live-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.quiz-hero-head h3,
.quiz-section-head h3,
.quiz-live-header h3,
.quiz-progress-head h4,
.quiz-history-block h4,
.quiz-manual-card h4 {
    margin: 0;
    color: var(--primary);
}

.quiz-hero-head p,
.quiz-section-head p,
.quiz-live-header p,
.quiz-progress-head p,
.quiz-history-block p {
    margin: 6px 0 0;
    color: var(--text-muted);
}

.quiz-hero-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: rgba(0,49,137,.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.quiz-hero-points,
.quiz-answer-legend,
.quiz-preview-stats,
.quiz-session-summary,
.quiz-editor-actions,
.quiz-preview-actions,
.quiz-live-header-actions,
.quiz-question-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quiz-hero-points span,
.quiz-answer-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 12px;
    background: #eff4ff;
    color: var(--primary);
    font-size: .82rem;
    font-weight: 700;
}

.quiz-answer-pill {
    background: color-mix(in srgb, var(--answer-color) 12%, white);
    color: color-mix(in srgb, var(--answer-color) 75%, #1e293b);
    border: 1px solid color-mix(in srgb, var(--answer-color) 28%, white);
}

.quiz-form-grid,
.quiz-manual-grid,
.quiz-launch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.quiz-textarea {
    min-height: 360px;
    font-family: inherit;
    line-height: 1.55;
}

.quiz-help {
    margin-top: 10px;
}

.quiz-preview-card,
.quiz-editor-card,
.quiz-live-card,
.quiz-launch-card {
    border: 1px solid #dbe4f3;
}

.quiz-question-list {
    display: grid;
    gap: 12px;
    max-height: 520px;
    overflow: auto;
    padding-right: 4px;
}

.quiz-question-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.quiz-question-card-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    color: var(--primary);
}

.quiz-question-card p {
    margin: 0 0 10px;
    color: var(--text-main);
    line-height: 1.5;
}

.quiz-option-list {
    list-style: none;
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.quiz-option-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;
    padding: 8px 10px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.quiz-option-list li.is-correct {
    border-color: rgba(22,163,74,.35);
    background: rgba(22,163,74,.08);
}

.quiz-option-label {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: .82rem;
}

.quiz-empty-preview,
.quiz-empty-state {
    min-height: 180px;
}

.quiz-history-block {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.quiz-history-list {
    display: grid;
    gap: 10px;
}

.quiz-history-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.quiz-history-item strong,
.quiz-history-item small,
.quiz-history-metrics {
    display: block;
}

.quiz-history-item small,
.quiz-history-metrics {
    color: var(--text-muted);
}

.quiz-launch-panel {
    min-height: 100%;
    border-radius: 16px;
    border: 1px dashed #bfd0eb;
    padding: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    display: grid;
    gap: 10px;
    align-content: start;
}

.quiz-live-card {
    display: grid;
    gap: 18px;
}

.quiz-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.quiz-live-option {
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--answer-color) 28%, white);
    background: color-mix(in srgb, var(--answer-color) 8%, white);
    padding: 14px;
    display: grid;
    gap: 12px;
}

.quiz-live-option.is-correct {
    box-shadow: 0 0 0 2px rgba(22,163,74,.18);
}

.quiz-live-option-head {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;
}

.quiz-live-option-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.8);
    overflow: hidden;
}

.quiz-live-option-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--answer-color);
}

.quiz-live-option-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--text-muted);
    font-size: .82rem;
}

.quiz-live-grid {
    display: grid;
    grid-template-columns: minmax(320px, .95fr) minmax(0, 1.15fr);
    gap: 18px;
}

.quiz-camera-col,
.quiz-responses-col {
    display: grid;
    gap: 14px;
    align-content: start;
}

.quiz-camera-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
    min-height: 280px;
}

.quiz-camera-wrapper video,
.quiz-camera-wrapper canvas {
    width: 100%;
    display: block;
}

.quiz-camera-wrapper canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.quiz-manual-card {
    padding: 16px;
}

.quiz-manual-grid {
    grid-template-columns: 1.25fr .9fr auto;
    align-items: end;
}

.quiz-table-wrap {
    max-height: 420px;
    overflow: auto;
}

.quiz-score-table th,
.quiz-score-table td {
    vertical-align: middle;
}

@media (max-width: 1080px) {
    .quiz-grid,
    .quiz-live-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .quiz-form-grid,
    .quiz-manual-grid,
    .quiz-launch-grid {
        grid-template-columns: 1fr;
    }

    .quiz-history-item,
    .quiz-live-option-meta,
    .quiz-progress-head,
    .quiz-section-head,
    .quiz-live-header,
    .quiz-table-head {
        flex-direction: column;
        align-items: stretch;
    }

    .quiz-textarea {
        min-height: 280px;
    }
}

/* Pépite v2.4.2 — quiz export, historique et projection améliorée */
.quiz-history-item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.quiz-history-item {
    flex-wrap: wrap;
}

.quiz-preview-actions .btn,
.quiz-live-header-actions .btn {
    white-space: nowrap;
}

.quiz-live-header-actions {
    align-items: center;
}

.quiz-launch-panel strong {
    color: var(--primary);
}

@media (max-width: 720px) {
    .quiz-history-item-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .quiz-live-header-actions .btn,
    .quiz-preview-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.quiz-statistics-grid {
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:16px;
}

.quiz-stat-card {
    padding:16px;
}

.quiz-current-focus {
    display:flex;
    flex-wrap:wrap;
    gap:8px 12px;
    align-items:center;
    margin-bottom:12px;
    padding:10px 12px;
    border-radius:14px;
    background:var(--primary-light);
    color:var(--primary-dark);
    font-size:.9rem;
}

.quiz-mini-table-wrap {
    overflow:auto;
}

.quiz-mini-table th,
.quiz-mini-table td {
    font-size:.82rem;
    vertical-align:top;
}

.quiz-mini-table td:first-child,
.quiz-mini-table th:first-child {
    white-space:nowrap;
}

@media (max-width: 1100px) {
    .quiz-statistics-grid {
        grid-template-columns:1fr;
    }
}

/* Pépite v2.5.4 — plan, consolidation et quiz en direct */
.activite-hero-actions,
.quiz-preview-actions,
.quiz-live-header-actions,
.quiz-question-actions,
.quiz-history-item-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.activite-hero-actions .btn,
.quiz-preview-actions .btn,
.quiz-live-header-actions .btn,
.quiz-question-actions .btn,
.quiz-history-item-actions .btn {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
}

.quiz-history-item {
    align-items: flex-start;
    flex-wrap: wrap;
}

.quiz-live-detached-card {
    background: linear-gradient(135deg, rgba(0,49,137,.05) 0%, rgba(37,99,235,.02) 100%);
}

@media (max-width: 640px) {
    .activite-hero-actions,
    .quiz-preview-actions,
    .quiz-live-header-actions,
    .quiz-question-actions,
    .quiz-history-item-actions {
        grid-template-columns: 1fr;
    }
}

/* Pépite v2.5.2 — ajustements consolidation, groupes, plan et quiz */
.groupes-config-head > div:first-child {
    flex: 1 1 100%;
    min-width: 0;
}

.groupes-config-head #groupes-cps-source {
    margin-top: 12px;
    min-width: 0;
    max-width: 760px;
}

.consolidation-overview {
    grid-template-columns: 1fr;
}

.consolidation-layout {
    grid-template-columns: 1fr;
}

.consolidation-overview-card-full {
    display: grid;
    gap: 14px;
    align-items: start;
}

.consolidation-overview-card-compact .consolidation-compact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
    align-items: flex-start;
}

.consolidation-rhythm-inline {
    display: grid;
    gap: 8px;
    min-width: min(100%, 320px);
}

.consolidation-rhythm-inline strong {
    color: var(--primary);
    font-size: .88rem;
}

.consolidation-week-card,
.consolidation-editor-card {
    width: 100%;
}

.consolidation-grid .edt-cell {
    min-height: 126px;
}

.consolidation-grid .edt-seance {
    display: grid;
    gap: 8px;
    align-content: start;
    min-height: 100%;
}

.consolidation-seance-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
}

.edt-seance-assign {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0,49,137,.14);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255,255,255,.88);
    color: var(--primary);
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
}

.edt-seance-assign:hover {
    background: #fff;
    box-shadow: 0 8px 18px rgba(0,49,137,.12);
}

.quiz-live-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.quiz-live-header-actions .btn {
    width: auto;
    flex: 0 1 auto;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .quiz-live-header-actions .btn {
        flex: 1 1 calc(50% - 10px);
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .consolidation-overview-card-compact .consolidation-compact-details {
        flex-direction: column;
    }

    .consolidation-rhythm-inline {
        width: 100%;
    }

    .quiz-live-header-actions .btn {
        flex: 1 1 100%;
    }
}

/* Pépite v2.5.4 — vidéo CPS, consolidation compacte et quiz live simplifié */
.cps-video-wrap {
    margin: 20px 0;
}

.cps-video-wrap h4 {
    margin-bottom: 10px;
}

.cps-video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0,49,137,.12);
    background: linear-gradient(180deg, rgba(240,244,248,1), rgba(255,255,255,1));
    box-shadow: 0 16px 34px rgba(0,49,137,.08);
}

.cps-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.consolidation-grid-wrap {
    max-height: 220px;
    overflow: auto;
}

.consolidation-grid .edt-header-cell {
    padding: 8px 6px;
    font-size: .7rem;
}

.consolidation-grid .edt-header-cell small {
    margin-top: 2px;
    font-size: .62rem;
}

.consolidation-grid .edt-time-cell {
    padding: 4px 6px;
    font-size: .64rem;
}

.consolidation-grid .edt-cell {
    min-height: 24px;
    padding: 3px;
}

.consolidation-grid .consolidation-seance {
    padding: 4px 6px;
    border-radius: 8px;
    font-size: .66rem;
}

.consolidation-grid .edt-seance-time,
.consolidation-grid .consolidation-seance-meta {
    font-size: .58rem;
}

/* Pépite v2.5.4 — activités, plan et quiz : polish UI/UX */
.activites-premium-grid-double {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.activite-hero-card {
    padding: 18px;
    border-radius: 20px;
}

.activite-hero-card-compact {
    min-height: 0;
}

.activite-hero-head h3 {
    font-size: 1.06rem;
    margin-bottom: 8px;
}

.activite-hero-head p,
.activite-hero-note {
    font-size: .93rem;
}

.activite-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 1.3rem;
}

.activite-hero-points {
    margin: 12px 0 10px;
}

.activite-hero-points span {
    padding: 7px 11px;
    font-size: .76rem;
}

#activites-direct-links,
#activites-tab-consolidation,
#activites-tab-quiz {
    scroll-margin-top: 92px;
}

.cps-video-meta {
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.5;
}

.plan-toolbar {
    position: sticky;
    top: 12px;
    z-index: 16;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid rgba(148,163,184,.20);
    background: rgba(255,255,255,.84);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 38px rgba(15,23,42,.10);
    margin-bottom: 14px;
}

.plan-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

#plan-undo-btn:not([disabled]),
#plan-undo-btn-mobile:not([disabled]) {
    border-color: rgba(37,99,235,.26);
    background: rgba(37,99,235,.08);
    color: var(--primary);
}

.draggable-table {
    transition: left .16s ease, top .16s ease, box-shadow .2s ease, transform .2s ease;
}

.draggable-table.is-selected {
    box-shadow: 0 14px 26px rgba(37,99,235,.18);
}

.quiz-live-card,
.quiz-live-detached-card {
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(244,248,255,.98) 100%);
    box-shadow: 0 18px 40px rgba(15,23,42,.08);
}

.quiz-live-header {
    align-items: center;
}

.quiz-live-header-actions {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.quiz-live-header-actions .btn,
.quiz-question-actions .btn {
    min-height: 44px;
}

.quiz-camera-wrapper {
    border: 1px solid rgba(148,163,184,.24);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 10px 24px rgba(15,23,42,.08);
}

.aruco-cam-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(241,245,249,.88);
    border: 1px solid rgba(148,163,184,.18);
}

.aruco-cam-status.success {
    color: #166534;
    background: rgba(220,252,231,.88);
    border-color: rgba(34,197,94,.22);
}

.aruco-cam-status.warning {
    color: #92400e;
    background: rgba(254,243,199,.92);
    border-color: rgba(245,158,11,.28);
}

@media (max-width: 900px) {
    .plan-toolbar {
        top: 8px;
        border-radius: 18px;
    }
}

/* Pépites v2.6.3 — compactage export + outils plan + import quiz md */
.export-actions,
.quiz-history-item-actions,
.quiz-preview-actions,
.quiz-live-header-actions {
    align-items: center;
}

.export-actions .btn,
.export-btn,
.btn-compact-export {
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: .78rem;
    line-height: 1.1;
    gap: 6px;
}

.export-actions .btn i,
.export-btn i,
.btn-compact-export i {
    font-size: .9em;
}

.plan-tools-panel {
    margin-top: 14px;
}

.plan-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.plan-tools-grid .btn {
    width: 100%;
    justify-content: center;
}

.plan-toolbar {
    padding: 10px 12px;
}

.plan-toolbar-actions {
    justify-content: flex-start;
}

.quiz-inline-import {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quiz-inline-import .btn {
    min-height: 40px;
}

@media (max-width: 900px) {
    .plan-tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Pépites v2.6.3 — charte live-quiz, groupes compacts, plan collable, consolidation resserrée */
:root {
    --primary: #1d58cd;
    --primary-light: #eff6ff;
    --primary-mid: #3b82f6;
    --primary-dark: #153e9c;
    --accent: #7b9ce2;
    --accent-light: #eef4ff;
    --success: #00a76f;
    --success-light: #dcfce7;
    --bg: #e6ebf2;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 10px 25px -18px rgba(29,114,221,.25), 0 4px 10px -8px rgba(15,23,42,.10);
    --shadow-md: 0 18px 36px -24px rgba(29,114,221,.28), 0 10px 20px -14px rgba(15,23,42,.12);
    --shadow-lg: 0 28px 60px -34px rgba(29,114,221,.30), 0 16px 30px -20px rgba(15,23,42,.14);
}

html { background: #e9eff7; }
body { font-family: Inter, Roboto, system-ui, -apple-system, sans-serif; background: linear-gradient(180deg, #e9eff7 0%, #e2e9f2 100%); }
.app-header { background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px -20px rgba(15,23,42,.18); }
.header-home-link { color: var(--text-main); }
.brand-logo { background: #1d58cd; color: #fff; border-radius: 12px; box-shadow: 0 10px 20px -10px rgba(29,88,205,.45); }
.brand-text h1 { color: var(--text-main); }
.brand-text span, .class-selector-wrap label { color: var(--text-muted); }
.main-nav { border-top: 0; padding-top: 0; }
.nav-btn { background: #f8fafc; color: var(--text-muted); border: 1px solid var(--border); border-radius: 10px; }
.nav-btn:hover { background: #fff; color: var(--primary); border-color: rgba(29,88,205,.24); }
.nav-btn.active { background: var(--primary-light); color: var(--primary); border-color: rgba(29,88,205,.18); box-shadow: 0 10px 15px -12px rgba(29,88,205,.32); }
.class-selector-wrap { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; }
.class-selector-wrap select { border: 1px solid var(--border); padding: 6px 10px; }
.view { padding: 24px; }
#view-bilan, #view-historique { padding-top: 14px; }
#view-bilan .view-header, #view-historique .view-header { margin-bottom: 18px; align-items: flex-start; }
.card, .panel, .groupe-card, .coverage-card, .quiz-question-card, .quiz-preview-card, .quiz-editor-card, .quiz-live-card, .quiz-launch-card { border-color: var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); }
.btn { min-height: 42px; border-radius: 10px; }
.btn-primary { background: #7b9ce2; box-shadow: 0 10px 15px -10px rgba(29,88,205,.38); }
.btn-primary:hover:not(:disabled) { background: #1d58cd; box-shadow: 0 16px 24px -16px rgba(29,88,205,.48); }
.btn-secondary { background: #fff; border-color: var(--border); box-shadow: 0 1px 2px rgba(15,23,42,.03); }
.input-text, .input-search, .select-styled, .textarea-large { border-radius: 10px; border-color: var(--border); }
.groupes-config-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 16px; align-items: start; }
.groupes-config-copy { min-width: 0; }
.groupes-config-head #groupes-cps-source { margin-top: 0; max-width: none; min-width: 0; }
.groupes-cps-inline { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr); gap: 12px; align-items: stretch; }
.groupes-strategies-card { min-height: 100%; }
.groupes-strategies-card span { display: block; }
.groupes-coverage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.coverage-card { padding: 12px 14px; gap: 2px; justify-content: center; }
.coverage-value { font-size: 1.25rem; }
.coverage-label { font-size: .74rem; }
.groupes-help-text { margin-top: 8px; }
.plan-tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.plan-tools-grid .btn { width: 100%; min-height: 46px; padding: 9px 12px; justify-content: flex-start; align-items: center; text-align: left; line-height: 1.2; white-space: normal; }
.plan-tools-grid .btn.plan-tool-wide { grid-column: 1 / -1; }
.consolidation-overview-card-compact { gap: 12px; }
.consolidation-overview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.consolidation-overview-head h3 { margin-bottom: 0; }
.consolidation-overview-copy { color: var(--text-muted); margin: 0; max-width: 980px; }
.consolidation-compact-details-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; }
.consolidation-rhythm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.consolidation-rhythm-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.consolidation-rhythm-inline strong { white-space: nowrap; margin: 0; }
.consolidation-rhythm-copy { margin: 0; flex: 1 1 280px; color: var(--text-muted); font-size: .82rem; }
.consolidation-rhythm { display: flex; flex-wrap: wrap; gap: 8px; }
.consolidation-rhythm span { padding: 6px 10px; border-radius: 999px; }
.quiz-hero-card { border: 1px solid var(--border); background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); padding: 18px 20px; }
.quiz-hero-head-compact { margin-bottom: 10px; }
.quiz-hero-head-compact h3 { font-size: 1.16rem; }
.quiz-hero-points-compact { align-items: center; gap: 8px; }
.quiz-hero-points span { padding: 7px 11px; font-size: .76rem; }
.quiz-hero-point-main { background: rgba(29,88,205,.10) !important; color: var(--primary) !important; }
.quiz-hero-point-main i { width: 28px; height: 28px; border-radius: 10px; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.quiz-preview-actions, .quiz-live-header-actions, .quiz-history-item-actions { align-items: center; }
.quiz-preview-actions .btn, .quiz-live-header-actions .btn, .quiz-history-item-actions .btn { min-height: 38px; }
@media (max-width: 1100px) { .groupes-config-head, .groupes-cps-inline { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .plan-tools-grid { grid-template-columns: 1fr; } .plan-tools-grid .btn.plan-tool-wide { grid-column: auto; } }
@media (max-width: 640px) { .view { padding: 18px 14px 24px; } .groupes-coverage-grid { grid-template-columns: 1fr; } .consolidation-rhythm-inline, .consolidation-rhythm-head { align-items: flex-start; } }

/* Pépites v2.6.3 — finitions visuelles, compaction mobile et quiz markdown regroupé */
.card,
.panel,
.class-card,
.groupe-card,
.coverage-card,
.quiz-preview-card,
.quiz-editor-card,
.quiz-live-card,
.quiz-launch-card,
.student-bilan-card,
.bilan-summary-card,
.consolidation-card,
.consolidation-overview-card,
.consolidation-rhythm-card,
.consolidation-week-card,
.plan-sidebar,
.plan-toolbar,
.parking-dock {
    border-radius: 16px;
    border-color: rgba(226,232,240,.96);
    box-shadow: 0 14px 34px -26px rgba(15,23,42,.22), 0 6px 18px -16px rgba(29,88,205,.18);
}

.card,
.panel,
.quiz-preview-card,
.quiz-editor-card,
.quiz-live-card,
.quiz-launch-card,
.consolidation-card,
.consolidation-overview-card,
.consolidation-rhythm-card,
.consolidation-week-card,
.student-bilan-card,
.bilan-summary-card {
    padding: 18px;
}

.btn,
.layout-btn,
.mode-btn,
.bottom-nav-btn,
.export-btn,
.btn-compact-export {
    min-height: 38px;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: .8rem;
    line-height: 1.15;
    gap: 6px;
    box-shadow: none;
}

.btn {
    max-width: 100%;
    white-space: normal;
}

.btn i,
.layout-btn i,
.mode-btn i,
.bottom-nav-btn i {
    font-size: .95em;
}

.btn-sm,
.quiz-history-item-actions .btn,
.quiz-live-header-actions .btn,
.export-actions .btn,
.btn-compact-export {
    min-height: 36px;
    padding: 6px 10px;
    font-size: .76rem;
}

.btn-primary {
    box-shadow: 0 12px 22px -18px rgba(29,88,205,.55);
}

.btn-secondary {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 18px -18px rgba(15,23,42,.24);
}

.view-header,
.block-header,
.class-details-header,
.quiz-section-head,
.consolidation-overview-head,
.consolidation-rhythm-head {
    gap: 10px 12px;
}

.view-header-actions,
.panel-inline-actions,
.export-actions,
.quiz-preview-actions,
.quiz-live-header-actions,
.quiz-history-item-actions,
.quiz-editor-actions,
.plan-toolbar-actions {
    gap: 8px;
}

.quiz-inline-import {
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.quiz-inline-import .btn,
.quiz-preview-actions .btn,
.quiz-editor-actions .btn {
    min-width: 0;
}

.quiz-inline-import .btn-inline-markdown {
    flex: 0 0 auto;
}

.quiz-preview-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.quiz-preview-actions .btn:first-child {
    flex: 1 1 260px;
}

.quiz-preview-actions .btn:not(:first-child) {
    flex: 0 1 auto;
}

.plan-sidebar {
    gap: 10px;
    padding: 14px;
}

.plan-sidebar .panel {
    padding: 11px 12px;
    gap: 7px;
    border-radius: 14px;
    background: rgba(255,255,255,.92);
}

.plan-sidebar .panel-title {
    font-size: .66rem;
}

.plan-sidebar .btn,
.plan-sidebar .layout-btn,
.plan-sidebar .mode-btn {
    min-height: 36px;
    padding: 6px 10px;
    font-size: .76rem;
}

.plan-sidebar .layout-btn {
    justify-content: center;
}

.plan-sidebar .mode-btn {
    gap: 2px;
}

.plan-tools-panel {
    margin-top: 10px;
}

.plan-tools-grid {
    gap: 8px;
    margin-top: 8px;
}

.plan-tools-grid .btn {
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 12px;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    line-height: 1.15;
    box-shadow: none;
}

.plan-toolbar {
    padding: 10px 12px;
}

.plan-toolbar-actions .btn {
    min-height: 36px;
    padding: 6px 10px;
}

#plan-classroom .draggable-table {
    transition: transform .24s cubic-bezier(.22,1,.36,1), box-shadow .2s ease, border-color .2s ease, background .2s ease, left .12s linear, top .12s linear;
    will-change: transform, left, top;
}

#plan-classroom .draggable-table:hover {
    --table-lift: -2px;
}

#plan-classroom .table-controls {
    gap: 5px;
}

#plan-classroom .table-drag-handle,
#plan-classroom .table-rotate-btn,
#plan-classroom .table-delete-btn {
    width: 26px;
    height: 26px;
    box-shadow: 0 10px 20px -18px rgba(15,23,42,.4);
}

@media (max-width: 900px) {
    .view {
        padding: 16px 12px 24px;
    }

    .card,
    .panel,
    .quiz-preview-card,
    .quiz-editor-card,
    .quiz-live-card,
    .quiz-launch-card,
    .student-bilan-card,
    .bilan-summary-card,
    .consolidation-card,
    .consolidation-overview-card,
    .consolidation-rhythm-card,
    .consolidation-week-card {
        padding: 16px;
    }

    .view-header {
        margin-bottom: 16px;
    }

    .btn,
    .layout-btn,
    .mode-btn,
    .bottom-nav-btn,
    .export-btn,
    .btn-compact-export {
        min-height: 36px;
        padding: 6px 10px;
        font-size: .76rem;
    }

    .quiz-inline-import,
    .quiz-preview-actions,
    .quiz-editor-actions,
    .quiz-live-header-actions,
    .view-header-actions,
    .panel-inline-actions {
        width: 100%;
    }

    .quiz-inline-import .btn,
    .quiz-preview-actions .btn,
    .quiz-editor-actions .btn,
    .quiz-live-header-actions .btn,
    .view-header-actions .btn,
    .panel-inline-actions .btn {
        flex: 1 1 calc(50% - 4px);
    }

    .plan-sidebar {
        padding: 0;
        gap: 8px;
    }

    .plan-sidebar .panel {
        padding: 10px 11px;
    }

    .plan-tools-grid {
        grid-template-columns: 1fr 1fr;
    }

    .plan-tools-grid .btn.plan-tool-wide {
        grid-column: 1 / -1;
    }

    .plan-toolbar {
        padding: 9px 10px;
    }
}

@media (max-width: 640px) {
    .btn,
    .layout-btn,
    .mode-btn,
    .bottom-nav-btn,
    .export-btn,
    .btn-compact-export {
        min-height: 34px;
        padding: 6px 9px;
        font-size: .74rem;
    }

    .quiz-inline-import .btn,
    .quiz-preview-actions .btn,
    .quiz-editor-actions .btn,
    .quiz-live-header-actions .btn,
    .view-header-actions .btn,
    .panel-inline-actions .btn {
        flex-basis: 100%;
        width: 100%;
    }

    .plan-tools-grid {
        grid-template-columns: 1fr;
    }

    .plan-tools-grid .btn.plan-tool-wide {
        grid-column: auto;
    }

    .plan-toolbar-actions .btn {
        flex: 1 1 calc(50% - 4px);
    }
}

/* Pépites v2.6.3 — responsive pixel-perfect, blocs redimensionnables et outils plan compacts */
.resizable-block {
    position: relative;
    overflow: auto;
    min-width: 0;
}

.resizable-block::after {
    content: '';
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 12px;
    height: 12px;
    border-right: 2px solid rgba(100,116,139,.45);
    border-bottom: 2px solid rgba(100,116,139,.45);
    border-radius: 0 0 10px 0;
    pointer-events: none;
    opacity: .85;
}

.resizable-block.is-resizing {
    user-select: none;
    box-shadow: 0 0 0 2px rgba(37,99,235,.16), 0 18px 36px -26px rgba(15,23,42,.32) !important;
}

.btn,
.btn-sm,
.btn-compact-export,
.layout-btn,
.mode-btn,
.bottom-nav-btn,
.plan-tools-grid .btn,
.quiz-inline-import .btn,
.quiz-preview-actions .btn,
.panel-inline-actions .btn,
.export-actions .btn {
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.plan-toolbar {
    position: sticky;
    top: calc(70px + var(--safe-top));
    z-index: 24;
}

.teacher-tablet-mode .plan-toolbar {
    top: calc(82px + var(--safe-top));
}

.plan-tools-grid {
    align-items: stretch;
}

#plan-reset-layout-btn {
    order: 5;
}

#plan-fullscreen-btn.plan-tool-compact {
    min-height: 34px;
    padding: 5px 8px;
    font-size: .72rem;
    letter-spacing: -.01em;
}

.plan-tools-grid .plan-tool-compact i {
    font-size: .9em;
}

.quiz-inline-import {
    row-gap: 6px;
}

.quiz-inline-import .btn-inline-export {
    flex: 0 1 auto;
}

.quiz-editor-actions .btn,
.quiz-preview-actions .btn,
.view-header-actions .btn,
.panel-inline-actions .btn {
    min-height: 36px;
}

@media (max-width: 1024px) and (orientation: portrait) {
    .teacher-tablet-mode .view {
        padding: 18px 16px 26px;
    }

    .teacher-tablet-mode .plan-sidebar {
        max-width: 332px;
        top: calc(82px + var(--safe-top));
    }

    .teacher-tablet-mode .plan-toolbar,
    .teacher-tablet-mode .plan-actions.plan-mobile-actions {
        border-radius: 18px;
    }

    .teacher-tablet-mode .btn,
    .teacher-tablet-mode .btn-sm,
    .teacher-tablet-mode .plan-tools-grid .btn,
    .teacher-tablet-mode .quiz-inline-import .btn {
        min-height: 42px;
        font-size: .8rem;
    }
}

@media (max-width: 900px) {
    .btn,
    .btn-sm,
    .btn-compact-export,
    .layout-btn,
    .mode-btn,
    .plan-tools-grid .btn,
    .quiz-inline-import .btn,
    .quiz-preview-actions .btn,
    .quiz-editor-actions .btn,
    .panel-inline-actions .btn,
    .export-actions .btn {
        min-height: 36px;
        padding: 6px 10px;
        font-size: .75rem;
    }

    .view {
        padding: 16px 12px 24px;
    }

    .quiz-inline-import .btn-inline-export,
    .quiz-preview-actions .btn,
    .quiz-editor-actions .btn,
    .panel-inline-actions .btn,
    .view-header-actions .btn {
        flex: 1 1 calc(50% - 4px);
    }

    .plan-toolbar {
        top: calc(64px + var(--safe-top));
        padding: 8px 10px;
        border-radius: 18px;
    }

    .plan-toolbar-actions {
        gap: 6px;
    }

    .plan-toolbar-actions .btn {
        min-height: 34px;
    }

    .plan-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .plan-tools-grid .btn {
        min-height: 34px;
        padding: 6px 8px;
        font-size: .73rem;
    }

    #plan-fullscreen-btn.plan-tool-compact {
        min-height: 32px;
        padding: 5px 7px;
        font-size: .7rem;
    }

    .resizable-block::after {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 640px) {
    .btn,
    .btn-sm,
    .btn-compact-export,
    .layout-btn,
    .mode-btn,
    .plan-tools-grid .btn,
    .quiz-inline-import .btn,
    .quiz-preview-actions .btn,
    .quiz-editor-actions .btn,
    .panel-inline-actions .btn,
    .export-actions .btn {
        min-height: 34px;
        padding: 6px 9px;
        font-size: .72rem;
    }

    .view {
        padding: 14px 10px 22px;
    }

    .card,
    .panel,
    .quiz-preview-card,
    .quiz-editor-card,
    .quiz-live-card,
    .quiz-launch-card {
        padding: 14px;
    }

    .quiz-inline-import .btn-inline-export,
    .quiz-preview-actions .btn,
    .quiz-editor-actions .btn,
    .panel-inline-actions .btn,
    .view-header-actions .btn {
        flex-basis: 100%;
        width: 100%;
    }

    .plan-tools-grid {
        grid-template-columns: 1fr;
    }

    #plan-fullscreen-btn.plan-tool-compact {
        width: 100%;
        justify-content: center;
    }

    .bottom-nav-btn {
        min-height: 50px;
        font-size: .66rem;
    }

    .plan-toolbar {
        top: calc(60px + var(--safe-top));
    }
}

/* Pépites v2.6.3 — quiz countdown, fin de quiz optionnelle et polish production */
.quiz-countdown-row {
    display: grid;
    grid-template-columns: minmax(0, 140px) auto;
    gap: 10px;
    align-items: center;
}

.quiz-launch-actions {
    margin-top: 14px;
}

.quiz-end-options-card {
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(0,49,137,.04), rgba(255,255,255,.9));
}

.quiz-end-options-card h4 {
    margin: 0 0 12px;
}

.quiz-end-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.quiz-toggle-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-main);
}

.quiz-toggle-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.quiz-live-hidden-tools,
.quiz-hidden-manual {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip-path: inset(50%);
}

.quiz-camera-wrapper-hidden {
    width: 320px;
    height: 180px;
}

.quiz-question-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.quiz-countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    min-height: 38px;
    border-radius: 999px;
    background: rgba(245,158,11,.14);
    border: 1px solid rgba(245,158,11,.24);
    color: #b45309;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(245,158,11,.12);
}

.quiz-countdown-badge.is-finished {
    background: rgba(239,68,68,.12);
    border-color: rgba(239,68,68,.24);
    color: #b91c1c;
}

.quiz-preview-card .quiz-history-block {
    margin-top: 18px;
}

.quiz-live-card > #quiz-scoreboard[hidden],
.quiz-live-card > #quiz-statistics-panel[hidden] {
    display: none !important;
}

.header-actions a[href^="mailto:"] {
    color: inherit;
}

.app-footer-inner a[href^="mailto:"] {
    font-weight: 700;
}

@media (max-width: 900px) {
    .quiz-countdown-row {
        grid-template-columns: 1fr;
    }

    .quiz-end-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .quiz-live-header-actions .btn,
    .quiz-preview-actions .btn,
    .quiz-question-actions .btn,
    .quiz-launch-actions .btn {
        min-height: 46px;
    }

    .quiz-live-card,
    .quiz-launch-card,
    .quiz-editor-card,
    .quiz-preview-card,
    .class-card,
    .class-details-grid > .card {
        border-radius: 18px;
    }
}

@media (orientation: landscape) and (min-width: 768px) and (max-width: 1366px) {
    .quiz-live-card,
    .quiz-launch-card,
    .quiz-editor-card,
    .quiz-preview-card,
    .class-card,
    .class-details-grid > .card {
        border-radius: 20px;
        box-shadow: 0 14px 36px rgba(15,23,42,.12);
    }
}

body.theme-dark .quiz-end-options-card {
    background: linear-gradient(180deg, rgba(19,37,64,.88), rgba(16,26,45,.96));
    border-color: var(--border);
}

body.theme-dark .quiz-countdown-badge {
    color: #fcd34d;
    background: rgba(245,158,11,.16);
    border-color: rgba(245,158,11,.28);
}

body.theme-dark .quiz-countdown-badge.is-finished {
    color: #fca5a5;
    background: rgba(239,68,68,.16);
    border-color: rgba(239,68,68,.28);
}

/* Pépites v2.6.3 — dark toggle + quiz layout + plan stretch */
.nav-icon-btn.theme-toggle-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    margin-left: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    color: var(--primary);
    border: 1px solid rgba(148,163,184,.34);
    box-shadow: 0 10px 24px rgba(15,23,42,.14);
}
.nav-icon-btn.theme-toggle-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
}
.nav-icon-btn.theme-toggle-btn i { font-size: 1rem; }
.theme-toggle-btn.is-dark {
    background: rgba(15,23,42,.86);
    color: #fde68a;
    border-color: rgba(251,191,36,.28);
}
body.theme-dark .nav-icon-btn.theme-toggle-btn {
    background: rgba(15,23,42,.88);
    color: #fde68a;
    border-color: rgba(251,191,36,.24);
}
.quiz-grid-main-col {
    display: grid;
    gap: 18px;
}
.quiz-history-card {
    display: grid;
    gap: 14px;
}

.quiz-history-card .quiz-history-block {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.quiz-history-block-inline {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.quiz-live-detached-card {
    margin-bottom: 18px;
}
.quiz-live-main-card {
    display: grid;
    gap: 16px;
}
.quiz-live-main-card > #quiz-statistics-panel[hidden],
.quiz-live-main-card > #quiz-scoreboard[hidden] {
    display: none !important;
}
.quiz-live-main-card > #quiz-statistics-panel,
.quiz-live-main-card > #quiz-scoreboard {
    margin-top: 0;
}
.quiz-live-side-card .manual-card {
    margin-top: 16px;
}
.quiz-live-side-card .quiz-manual-grid {
    margin-top: 12px;
}
.quiz-live-main-card .quiz-end-options-card {
    margin-top: 0;
}
.quiz-live-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    gap: 18px;
    align-items: start;
}
.quiz-live-side-card {
    padding: 18px;
    border-radius: 22px;
}
.quiz-live-main-card .quiz-end-options-card {
    margin-top: 16px;
}
.quiz-live-main-card #quiz-scoreboard,
.quiz-live-main-card #quiz-statistics-panel {
    margin-top: 16px;
}
@media (max-width: 1100px) {
    .quiz-live-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 900px) {
    .nav-icon-btn.theme-toggle-btn {
        width: 100%;
        min-width: 0;
        height: 46px;
        justify-content: flex-start;
        padding: 12px 14px;
        border-radius: 12px;
    }
}

/* Pépites v2.6.3 — classes redimensionnables, plan vertical et dock quiz compact */
.class-details-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: stretch;
}
.class-block {
    flex: 1 1 420px;
    min-width: 320px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.class-block .block-header {
    margin-bottom: 0;
}
.class-block .eleves-container,
.class-block #edt-container {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.class-block .eleves-table-wrap,
.class-block .edt-grid-wrap {
    flex: 1;
    min-height: 180px;
    overflow: auto;
}
.class-block .edt-grid {
    min-height: 100%;
}
.layout-selector-plan-v261 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.layout-selector-plan-v261 .layout-btn:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 4px);
}
#plan-export-area {
    width: min(100%, var(--plan-room-width, 1120px));
    min-height: var(--plan-room-height, 820px);
}
#plan-export-area.room-format-portrait {
    max-width: var(--plan-room-width, 760px);
    min-height: var(--plan-room-height, 1040px);
}
#plan-export-area.room-format-landscape {
    max-width: var(--plan-room-width, 1120px);
    min-height: var(--plan-room-height, 720px);
}
.plan-room-size-badge {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 7;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: .76rem;
    box-shadow: var(--shadow-sm);
}
.plan-room-resize-handle {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 7;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.96);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: nwse-resize;
}
.plan-room-resize-handle.is-resizing {
    box-shadow: 0 0 0 2px rgba(37,99,235,.18), 0 18px 36px -24px rgba(15,23,42,.3);
}
.draggable-table.table-grouped {
    box-shadow: 0 0 0 2px rgba(37,99,235,.12), 0 12px 24px rgba(15,23,42,.12);
}
.draggable-table.table-grouped::after {
    content: attr(data-group-size) '×';
    position: absolute;
    left: 10px;
    top: -10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(37,99,235,.12);
    border: 1px solid rgba(37,99,235,.18);
    color: var(--primary);
    font-size: .68rem;
    font-weight: 700;
}
.draggable-table.table-group-leader::after {
    background: rgba(22,163,74,.12);
    border-color: rgba(22,163,74,.22);
    color: #166534;
}
.quiz-shell-v261 {
    display: grid;
    gap: 14px;
}
.quiz-dock-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}
.quiz-dock-card,
.quiz-dock-stack {
    position: relative;
    min-width: 0;
}
.quiz-dock-card-wide,
.quiz-dock-stack {
    grid-column: 1 / -1;
}
.quiz-dock-card {
    padding-top: 40px;
}
.quiz-dock-stack > .quiz-live-card,
.quiz-dock-stack > .quiz-live-detached-card {
    margin-bottom: 0;
}
.quiz-block-handle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px dashed rgba(100,116,139,.4);
    border-radius: 999px;
    background: rgba(248,250,252,.92);
    color: var(--text-muted);
    padding: 5px 10px;
    font-size: .72rem;
    cursor: grab;
}
.quiz-block-handle:active {
    cursor: grabbing;
}
.quiz-dock-card.is-dragging,
.quiz-dock-stack.is-dragging {
    opacity: .62;
}
.quiz-dock-drop-target {
    box-shadow: 0 0 0 2px rgba(37,99,235,.18), 0 18px 36px -28px rgba(15,23,42,.28) !important;
}
.quiz-editor-card,
.quiz-preview-card,
.quiz-launch-card,
.quiz-history-card,
.quiz-live-card,
.quiz-hero-card {
    padding: 14px 14px 16px;
    border-radius: 18px;
}
.quiz-editor-card,
.quiz-preview-card,
.quiz-history-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.quiz-preview-card #quiz-preview-body {
    flex: 1;
    min-height: 0;
}
.quiz-preview-card .quiz-question-list {
    max-height: none;
    height: 100%;
}
.quiz-textarea {
    min-height: 310px;
}
.quiz-form-grid,
.quiz-manual-grid,
.quiz-launch-grid,
.quiz-grid-main-col,
.quiz-live-main-card,
.quiz-live-grid {
    gap: 12px;
}
.quiz-history-item,
.quiz-question-card,
.quiz-launch-panel,
.quiz-live-option,
.quiz-manual-card {
    border-radius: 14px;
}
.quiz-history-block {
    margin-top: 10px;
    padding-top: 10px;
}
.quiz-history-list {
    gap: 8px;
}
.quiz-history-item {
    padding: 9px 11px;
}
.quiz-live-card {
    gap: 14px;
}
.quiz-live-side-card {
    padding: 14px;
    border-radius: 18px;
}
@media (max-width: 1100px) {
    .quiz-dock-grid {
        grid-template-columns: 1fr;
    }
    .quiz-dock-card-wide,
    .quiz-dock-stack {
        grid-column: auto;
    }
    .class-block {
        min-width: 0;
    }
}
@media (max-width: 900px) {
    .layout-selector-plan-v261,
    .quiz-dock-grid {
        grid-template-columns: 1fr;
    }
    .quiz-block-handle {
        left: 10px;
        right: auto;
    }
    .plan-room-size-badge {
        right: 70px;
    }
}
body.theme-dark .plan-room-size-badge,
body.theme-dark .plan-room-resize-handle,
body.theme-dark .quiz-block-handle {
    background: rgba(15,23,42,.92);
    color: #e2e8f0;
    border-color: rgba(148,163,184,.28);
}
body.theme-dark .draggable-table.table-grouped::after {
    background: rgba(96,165,250,.14);
    color: #bfdbfe;
}

/* Pépites v2.6.3 — ajustements classes, plan, consolidation, quiz et guide */
.class-details-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
    align-items: start;
}

#class-edt-block {
    max-width: 560px;
    justify-self: stretch;
}

#class-edt-block .edt-grid-wrap {
    max-height: 560px;
    overflow: auto;
}

.consolidation-week-card.resizable-block {
    min-height: 320px;
    overflow: auto;
}

body.theme-dark #class-eleves-block,
body.theme-dark #class-edt-block,
body.theme-dark .consolidation-week-card {
    color: #e2e8f0;
}

body.theme-dark .edt-week-label {
    background: linear-gradient(135deg, rgba(30, 41, 59, .96), rgba(15, 23, 42, .92));
    border-color: rgba(148, 163, 184, .28);
}

body.theme-dark .edt-week-label strong,
body.theme-dark #class-eleves-block h3,
body.theme-dark #class-edt-block h3,
body.theme-dark .consolidation-week-card h3 {
    color: #f8fafc;
}

body.theme-dark #class-eleves-block .block-subtitle,
body.theme-dark #class-edt-block .block-subtitle,
body.theme-dark .edt-week-label span,
body.theme-dark .edt-header-cell small,
body.theme-dark .edt-cell,
body.theme-dark .consolidation-section-head p,
body.theme-dark .consolidation-week-label span,
body.theme-dark .consolidation-grid-wrap,
body.theme-dark .consolidation-grid {
    color: #cbd5e1;
}

body.theme-dark .edt-grid,
body.theme-dark .edt-seance,
body.theme-dark .consolidation-grid,
body.theme-dark .consolidation-week-card .class-stat-badge {
    border-color: rgba(148, 163, 184, .22);
}

.quiz-dock-grid {
    align-items: start;
}

.quiz-editor-card,
.quiz-preview-card {
    align-self: start;
    max-height: 75vh;
    overflow: auto;
}

.quiz-textarea {
    min-height: 190px;
    max-height: 235px;
}

.quiz-preview-card #quiz-preview-body,
.quiz-preview-card .quiz-question-list {
    overflow: auto;
}

.quiz-launch-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
}

.quiz-launch-actions .btn {
    min-width: 0;
    white-space: nowrap;
    padding-left: 10px;
    padding-right: 10px;
}

.guide-flow {
    display: none;
}

@media (max-width: 1100px) {
    .class-details-grid {
        grid-template-columns: 1fr;
    }

    #class-edt-block {
        max-width: none;
    }

    .quiz-editor-card,
    .quiz-preview-card {
        max-height: none;
    }

    .quiz-launch-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .quiz-launch-actions {
        grid-template-columns: 1fr;
    }

    .quiz-launch-actions .btn {
        white-space: normal;
    }
}

/* Pépites v2.6.3 — plan extensible et quiz projection ajustés */
#plan-reset-layout-btn {
    order: 7;
}

#plan-fullscreen-btn {
    order: 6;
}

.plan-room-resize-handle[data-resize-dir="left"] {
    left: 16px;
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    cursor: ew-resize;
}

.plan-room-resize-handle[data-resize-dir="right"] {
    right: 16px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    cursor: ew-resize;
}

.plan-room-resize-handle[data-resize-dir="bottom"] {
    left: 50%;
    right: auto;
    bottom: 16px;
    top: auto;
    transform: translateX(-50%);
    width: 64px;
    cursor: ns-resize;
}

.plan-room-resize-handle[data-resize-dir="right-bottom"] {
    right: 16px;
    bottom: 16px;
    cursor: nwse-resize;
}

.quiz-editor-card,
.quiz-preview-card {
    max-height: none;
    min-height: 780px;
}

.quiz-editor-card #quiz-questions-input {
    min-height: 430px;
    max-height: 430px;
}

.quiz-preview-card #quiz-preview-body {
    min-height: 500px;
}

body.theme-dark .quiz-preview-card,
body.theme-dark .quiz-preview-card p,
body.theme-dark .quiz-preview-card strong,
body.theme-dark .quiz-preview-card span,
body.theme-dark .quiz-preview-card li,
body.theme-dark .quiz-preview-card .quiz-question-card,
body.theme-dark .quiz-preview-card .quiz-option-list,
body.theme-dark .quiz-preview-card .quiz-option-list li {
    color: #e5eefc;
}

body.theme-dark .quiz-preview-card .quiz-question-card {
    background: rgba(15, 23, 42, .74);
    border-color: rgba(148, 163, 184, .2);
}

body.theme-dark .quiz-preview-card .quiz-option-list li.is-correct {
    color: #bbf7d0;
}

.quiz-launch-grid {
    grid-template-columns: minmax(0, .8fr) minmax(620px, 1.2fr);
}

.quiz-launch-panel {
    min-width: 620px;
    grid-auto-rows: min-content;
}

@media (max-width: 1200px) {
    .quiz-editor-card,
    .quiz-preview-card {
        min-height: 700px;
    }

    .quiz-launch-grid {
        grid-template-columns: 1fr;
    }

    .quiz-launch-panel {
        min-width: 0;
    }
}

@media (max-width: 900px) {
    .plan-room-resize-handle[data-resize-dir="left"],
    .plan-room-resize-handle[data-resize-dir="right"],
    .plan-room-resize-handle[data-resize-dir="bottom"] {
        width: 40px;
    }

    .quiz-editor-card,
    .quiz-preview-card {
        min-height: auto;
    }

    .quiz-editor-card #quiz-questions-input {
        min-height: 340px;
        max-height: 340px;
    }

    .quiz-preview-card #quiz-preview-body {
        min-height: 360px;
    }
}

/* Pépites v2.6.4 — correctifs UI, accessibilité et notes de version */
.footer-version-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 49, 137, .08);
    border: 1px solid rgba(0, 49, 137, .14);
}

.footer-release-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, .08);
    border: 1px solid rgba(15, 118, 110, .18);
    font-weight: 700;
}

.app-footer-inner {
    row-gap: 10px;
}

.class-selector-wrap label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.eleves-filters {
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.eleves-filters .input-search {
    flex: 1 1 280px;
    min-width: 220px;
}

.view-header-actions {
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .app-footer-inner {
        align-items: flex-start;
    }

    .class-selector-wrap {
        width: 100%;
    }

    .class-selector-wrap select {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .footer-version-badge,
    .footer-release-link {
        width: 100%;
        justify-content: center;
    }

    .view-header-actions,
    .mobile-primary-actions,
    .eleves-filters {
        width: 100%;
    }

    .eleves-filters .input-search,
    .view-header-actions .btn,
    .mobile-primary-actions .btn {
        width: 100%;
    }
}

/* Pépites v2.7.7 — cadre du plan, mélange avancé et quiz compact */
#plan-export-area {
    width: var(--plan-room-width, 1120px) !important;
    min-width: var(--plan-room-width, 1120px) !important;
    max-width: var(--plan-room-width, 1120px) !important;
    min-height: var(--plan-room-height, 820px) !important;
    height: var(--plan-room-height, 820px);
}

#plan-export-area.room-format-portrait,
#plan-export-area.room-format-landscape {
    max-width: none !important;
}

.plan-shuffle-stack {
    display: grid;
    gap: 8px;
    width: 100%;
}

.plan-shuffle-select {
    width: 100%;
}

.quiz-editor-card {
    min-height: 780px;
}

.quiz-preview-card {
    min-height: 260px;
    align-self: start;
}

.quiz-preview-card #quiz-preview-body {
    min-height: 170px;
    max-height: 250px;
    overflow: auto;
}

@media (max-width: 1200px) {
    .quiz-preview-card {
        min-height: 240px;
    }

    .quiz-preview-card #quiz-preview-body {
        max-height: 230px;
    }
}

@media (max-width: 900px) {
    .plan-actions.plan-mobile-actions .plan-shuffle-stack,
    .plan-actions.plan-mobile-actions .plan-shuffle-select {
        width: 100%;
    }

    .quiz-preview-card {
        min-height: 220px;
    }

    .quiz-preview-card #quiz-preview-body {
        min-height: 140px;
        max-height: 210px;
    }
}

/* Pépites v2.7.7 — tables compactes, regroupement manuel et aperçu quiz aligné */
#plan-classroom .table-controls {
    left: 50%;
    right: auto;
    top: -11px;
    gap: 4px;
    justify-content: center;
    transform: translateX(-50%) rotate(var(--table-counter-rotation));
}

#plan-classroom .table-drag-handle,
#plan-classroom .table-rotate-btn,
#plan-classroom .table-delete-btn {
    width: 22px;
    height: 22px;
    font-size: .62rem;
}

#plan-classroom .mode-classic .table-block,
#plan-classroom .mode-u .table-block {
    min-width: 96px;
}

#plan-classroom .mode-classic .table-block.table-horizontal,
#plan-classroom .mode-u .table-block.table-horizontal,
#plan-classroom .mode-classic .table-block.table-vertical,
#plan-classroom .mode-u .table-block.table-vertical {
    min-width: 112px;
    padding: 8px 6px;
}

#plan-classroom .seat {
    width: 58px;
    height: 36px;
    padding: 1px 3px;
    font-size: .56rem;
}

#plan-classroom .seat small {
    font-size: .48rem;
}

#plan-classroom .seat-group-badge {
    top: 4px;
    right: 4px;
    font-size: .48rem;
    padding: 2px 4px;
}

#plan-run-qa-btn,
#plan-group-selection-btn {
    min-width: 0;
}

.quiz-editor-card,
.quiz-preview-card {
    min-height: 780px;
}

.quiz-preview-card {
    align-self: stretch;
}

.quiz-preview-card #quiz-preview-body {
    min-height: 500px;
    max-height: 500px;
    overflow: auto;
}

@media (max-width: 1200px) {
    .quiz-editor-card,
    .quiz-preview-card {
        min-height: 680px;
    }

    .quiz-preview-card #quiz-preview-body {
        min-height: 420px;
        max-height: 420px;
    }
}

@media (max-width: 900px) {
    #plan-classroom .table-controls {
        top: -10px;
    }

    #plan-classroom .table-drag-handle,
    #plan-classroom .table-rotate-btn,
    #plan-classroom .table-delete-btn {
        width: 20px;
        height: 20px;
        font-size: .58rem;
    }

    .quiz-editor-card,
    .quiz-preview-card {
        min-height: 560px;
    }

    .quiz-preview-card #quiz-preview-body {
        min-height: 340px;
        max-height: 340px;
    }
}

/* Pépites v2.7.7 — plan fusion libre et quiz live fusionné */
.plan-inline-help {
    display:flex;
    align-items:center;
    gap:10px;
    margin:0 0 12px;
    padding:10px 14px;
    border-radius:14px;
    background:rgba(0,49,137,.08);
    border:1px solid rgba(0,49,137,.12);
    color:var(--primary);
    font-size:.9rem;
    font-weight:600;
}

#plan-classroom .mode-vertical .table-block {
    min-width: 58px;
}

#plan-classroom .mode-classic .table-block[data-seat-count="1"],
#plan-classroom .mode-u .table-block[data-seat-count="1"],
#plan-classroom .mode-vertical .table-block[data-seat-count="1"] {
    min-width: 58px;
    width: 58px;
}

#plan-classroom .mode-classic .table-block.table-horizontal,
#plan-classroom .mode-u .table-block.table-horizontal,
#plan-classroom .mode-classic .table-block.table-vertical,
#plan-classroom .mode-u .table-block.table-vertical,
#plan-classroom .mode-vertical .table-block.table-vertical,
#plan-classroom .mode-vertical .table-block.table-horizontal {
    padding: 6px 6px 6px;
}

#plan-classroom .mode-vertical .table-block.table-vertical,
#plan-classroom .mode-u .table-block.table-vertical {
    min-width: 70px;
}

#plan-classroom .mode-classic .table-block[data-seat-count="1"].table-horizontal,
#plan-classroom .mode-classic .table-block[data-seat-count="1"].table-vertical,
#plan-classroom .mode-u .table-block[data-seat-count="1"].table-horizontal,
#plan-classroom .mode-u .table-block[data-seat-count="1"].table-vertical,
#plan-classroom .mode-vertical .table-block[data-seat-count="1"].table-horizontal,
#plan-classroom .mode-vertical .table-block[data-seat-count="1"].table-vertical {
    min-width: 58px;
    width: 58px;
    min-height: 36px;
    height: 36px;
    padding: 0;
}

#plan-classroom .table-controls {
    left: 50%;
    right: auto;
    top: -12px;
    gap: 4px;
    justify-content: center;
    transform: translateX(-50%) rotate(var(--table-counter-rotation));
}

#plan-classroom .table-drag-handle,
#plan-classroom .table-rotate-btn,
#plan-classroom .table-delete-btn {
    width: 22px;
    height: 22px;
    font-size: .62rem;
}

.quiz-preview-card,
.quiz-editor-card {
    min-height: 780px;
}

.quiz-preview-card {
    align-self: stretch;
}

.quiz-preview-card #quiz-preview-body,
.quiz-preview-card .quiz-preview-body-full {
    display:flex;
    flex-direction:column;
    flex:1 1 auto;
    min-height:0;
    height:100%;
    max-height:none;
    overflow:auto;
}

.quiz-preview-card .quiz-question-list {
    flex:1 1 auto;
    overflow:auto;
}

.quiz-live-main-controls {
    margin-top: -2px;
}

@media (max-width: 1200px) {
    .quiz-preview-card,
    .quiz-editor-card {
        min-height: 680px;
    }
}

@media (max-width: 900px) {
    .plan-inline-help {
        font-size: .82rem;
        padding: 9px 12px;
    }

    .quiz-preview-card,
    .quiz-editor-card {
        min-height: 560px;
    }
}

/* Pépites v2.7.7 — ergonomie plan de classe et commandes de projection */
.plan-sidebar-status {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(0,49,137,.10), rgba(37,99,235,.06));
    border: 1px solid rgba(0,49,137,.12);
    display: grid;
    gap: 4px;
}

.plan-sidebar-status .stats-pill {
    justify-content: center;
    width: 100%;
}

.plan-sidebar-status small {
    color: var(--text-muted);
    text-align: center;
    font-size: .76rem;
}

.plan-inline-help {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.plan-inline-help-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    flex: 1 1 340px;
}

.plan-inline-help-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 360px;
}

.plan-inline-help-actions .export-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
}

.plan-inline-help-actions .export-actions .btn {
    min-height: 36px;
}

.quiz-projection-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.quiz-shortcut-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    min-height: 20px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(148,163,184,.24);
    font-size: .68rem;
    font-weight: 700;
    line-height: 1;
}

.quiz-live-header-nav .btn,
.quiz-live-main-nav .btn {
    white-space: nowrap;
}

.quiz-editor-card,
.quiz-preview-card {
    height: 720px;
    min-height: 720px;
    max-height: 720px;
}

.quiz-preview-card #quiz-preview-body,
.quiz-preview-card .quiz-preview-body-full {
    height: 100%;
}

@media (max-width: 1200px) {
    .quiz-editor-card,
    .quiz-preview-card {
        height: 620px;
        min-height: 620px;
        max-height: 620px;
    }
}

@media (max-width: 900px) {
    .plan-sidebar-status {
        margin-bottom: 12px;
    }

    .plan-inline-help-text,
    .plan-inline-help-actions {
        flex-basis: 100%;
    }

    .plan-inline-help-actions .export-actions {
        justify-content: flex-start;
    }

    .quiz-projection-actions {
        width: 100%;
    }

    .quiz-projection-actions .btn {
        flex: 1 1 calc(33.333% - 8px);
    }

    .quiz-editor-card,
    .quiz-preview-card {
        height: auto;
        min-height: 560px;
        max-height: none;
    }
}

/* Pépites v2.7.7 — stabilité des tables et aperçu quiz agrandi */
.plan-toolbar[hidden] {
    display: none !important;
}

#plan-classroom .draggable-table.table-seat-stack-vertical .seat {
    width: 60px;
    height: 86px;
    padding: 6px 4px;
}

#plan-classroom .draggable-table.table-seat-stack-vertical .seat small {
    font-size: .54rem;
}

#plan-classroom .draggable-table.table-seat-stack-vertical .seat-name-stack,
#plan-classroom .draggable-table.table-seat-stack-vertical .seat-name-stack span,
#plan-classroom .draggable-table.table-seat-stack-vertical .seat-name-stack small {
    transform: none !important;
    writing-mode: horizontal-tb;
    white-space: normal;
    text-overflow: clip;
    overflow: visible;
    line-height: 1.05;
}

#plan-classroom .mode-u .table-block.table-seat-stack-vertical,
#plan-classroom .mode-vertical .table-block.table-seat-stack-vertical {
    min-width: 70px;
}

#plan-classroom .draggable-table.table-vertical:not(.table-seat-stack-vertical) .seat {
    width: 58px;
    height: 36px;
    padding: 1px 3px;
}

#plan-classroom .draggable-table.table-vertical:not(.table-seat-stack-vertical) .seat small {
    font-size: .48rem;
}

.quiz-editor-card,
.quiz-preview-card {
    height: auto;
    min-height: fit-content;
    max-height: none;
    align-self: start;
}

.quiz-preview-card {
    min-height: 3120px;
}

.quiz-preview-card #quiz-preview-body,
.quiz-preview-card .quiz-preview-body-full {
    height: auto;
    min-height: 2840px;
    max-height: none;
}

@media (max-width: 1200px) {
    .quiz-preview-card {
        min-height: 2720px;
    }

    .quiz-preview-card #quiz-preview-body,
    .quiz-preview-card .quiz-preview-body-full {
        min-height: 2440px;
    }
}

@media (max-width: 900px) {
    .quiz-preview-card {
        min-height: 2240px;
    }

    .quiz-preview-card #quiz-preview-body,
    .quiz-preview-card .quiz-preview-body-full {
        min-height: 1960px;
    }
}

/* Pépites v2.7.7 — géométrie et interactions harmonisées sur les 4 dispositions */
#plan-classroom.mode-u .table-block,
#plan-classroom.mode-vertical .table-block {
    display: grid;
    box-sizing: border-box;
}

#plan-classroom.mode-u .table-block {
    gap: 6px;
}

#plan-classroom.mode-vertical .table-block,
#plan-classroom.mode-u .table-block.table-seat-stack-vertical,
#plan-classroom.mode-vertical .table-block.table-seat-stack-vertical {
    gap: 0;
}

#plan-classroom.mode-u .table-block.table-seat-stack-vertical,
#plan-classroom.mode-vertical .table-block.table-seat-stack-vertical {
    width: 70px;
    min-width: 70px;
    padding: 0;
}

#plan-classroom.mode-u .table-block.table-seat-stack-vertical .table-controls,
#plan-classroom.mode-vertical .table-block.table-seat-stack-vertical .table-controls {
    left: calc(100% + 10px);
    right: auto;
    top: 50%;
    gap: 4px;
    flex-direction: column;
    justify-content: center;
    transform: translateY(-50%) rotate(var(--table-counter-rotation));
}

#plan-classroom.mode-u .table-block.table-horizontal,
#plan-classroom.mode-u .table-block.table-vertical,
#plan-classroom.mode-vertical .table-block.table-vertical {
    overflow: visible;
}

#plan-classroom.mode-u .table-block.table-horizontal .seat {
    width: 58px;
    height: 36px;
    padding: 1px 3px;
}

.quiz-preview-card {
    min-height: 3148px;
}

.quiz-preview-card #quiz-preview-body,
.quiz-preview-card .quiz-preview-body-full {
    min-height: 2868px;
}

@media (max-width: 1200px) {
    .quiz-preview-card {
        min-height: 2748px;
    }

    .quiz-preview-card #quiz-preview-body,
    .quiz-preview-card .quiz-preview-body-full {
        min-height: 2468px;
    }
}

@media (max-width: 900px) {
    .quiz-preview-card {
        min-height: 2268px;
    }

    .quiz-preview-card #quiz-preview-body,
    .quiz-preview-card .quiz-preview-body-full {
        min-height: 1988px;
    }
}

/* Pépites v2.7.7 — aperçu du quiz allégé, plus lisible en mode sombre */
body.theme-dark .quiz-preview-card .quiz-option-list li:not(.is-correct) {
    color: #0f172a;
    background: #ffffff;
    border-color: #cbd5e1;
}

body.theme-dark .quiz-preview-card .quiz-option-list li:not(.is-correct) span:last-child {
    color: #0f172a;
}

body.theme-dark .quiz-preview-card .quiz-option-list li.is-correct {
    color: #dcfce7;
    background: rgba(22, 163, 74, .18);
    border-color: rgba(134, 239, 172, .4);
}

body.theme-dark .quiz-preview-card .quiz-option-list li .quiz-option-label {
    color: #ffffff !important;
}

.quiz-preview-card {
    min-height: 3176px;
}

.quiz-preview-card #quiz-preview-body,
.quiz-preview-card .quiz-preview-body-full {
    min-height: 2896px;
}

@media (max-width: 1200px) {
    .quiz-preview-card {
        min-height: 2776px;
    }

    .quiz-preview-card #quiz-preview-body,
    .quiz-preview-card .quiz-preview-body-full {
        min-height: 2496px;
    }
}

@media (max-width: 900px) {
    .quiz-preview-card {
        min-height: 2296px;
    }

    .quiz-preview-card #quiz-preview-body,
    .quiz-preview-card .quiz-preview-body-full {
        min-height: 2016px;
    }
}

/* Pépites v2.7.7 — séances enrichies et noms verticaux sur tables verticales */
.edt-seance {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.edt-seance-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.edt-seance-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: var(--primary-dark);
    font-size: .6rem;
    font-weight: 700;
    line-height: 1.2;
}

.edt-seance-badge i {
    opacity: .85;
}

#plan-classroom.mode-u .draggable-table.table-seat-stack-vertical .seat-name-stack,
#plan-classroom.mode-vertical .draggable-table.table-seat-stack-vertical .seat-name-stack {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    max-width: none !important;
    height: 100%;
    margin: 0 auto;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap !important;
    line-height: 1;
    text-align: center;
}

#plan-classroom.mode-u .draggable-table.table-seat-stack-vertical .seat-name-stack span,
#plan-classroom.mode-u .draggable-table.table-seat-stack-vertical .seat-name-stack small,
#plan-classroom.mode-vertical .draggable-table.table-seat-stack-vertical .seat-name-stack span,
#plan-classroom.mode-vertical .draggable-table.table-seat-stack-vertical .seat-name-stack small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

#plan-classroom.mode-u .draggable-table.table-seat-stack-vertical .seat small,
#plan-classroom.mode-vertical .draggable-table.table-seat-stack-vertical .seat small {
    font-size: .5rem;
}

/* Pépites v2.7.7 — salles existantes, reset fidèle, bloc d'aide compact et CPS vidéo */
#view-plan.plan-scroll-compact .plan-inline-help {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    transform: translateY(-12px);
    pointer-events: none;
}

#view-plan .plan-inline-help {
    transition: max-height .22s ease, opacity .22s ease, margin .22s ease, padding .22s ease, transform .22s ease, border-width .22s ease;
    max-height: 140px;
}

#plan-classroom.mode-u .draggable-table.table-vertical .seat-name-stack,
#plan-classroom.mode-vertical .draggable-table.table-vertical .seat-name-stack,
#plan-classroom.mode-u .draggable-table.table-vertical .seat-name-stack span,
#plan-classroom.mode-u .draggable-table.table-vertical .seat-name-stack small,
#plan-classroom.mode-vertical .draggable-table.table-vertical .seat-name-stack span,
#plan-classroom.mode-vertical .draggable-table.table-vertical .seat-name-stack small {
    transform: none !important;
    writing-mode: vertical-rl !important;
    text-orientation: mixed;
    white-space: nowrap !important;
    text-overflow: clip;
    overflow: visible;
    line-height: 1.05;
    width: auto !important;
    max-width: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#plan-classroom.mode-u .draggable-table.table-vertical .seat,
#plan-classroom.mode-vertical .draggable-table.table-vertical .seat {
    overflow: visible;
}

.cps-video-wrap iframe {
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0,49,137,.12);
    background: #0f172a;
}

/* Pépites v2.8.2 — visite guidée recentrée */
.guided-tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 2200;
    pointer-events: none;
}

.guided-tour-scrim {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(2px);
}

.guided-tour-card {
    position: fixed;
    width: min(380px, calc(100vw - 32px));
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(0,49,137,.16);
    box-shadow: 0 18px 48px rgba(15,23,42,.24);
    pointer-events: auto;
}

.guided-tour-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.guided-tour-step {
    font-size: .78rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}

.guided-tour-card h3 {
    margin: 0;
}

.guided-tour-step-text {
    margin: 0 0 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.guided-tour-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.guided-tour-focus-target {
    position: relative;
    z-index: 2201 !important;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, .45), 0 18px 42px rgba(15,23,42,.18) !important;
    transform: scale(1.015);
    transform-origin: center center;
    transition: transform .18s ease, box-shadow .18s ease;
}

body.theme-dark .guided-tour-card {
    background: rgba(15,23,42,.96);
    border-color: rgba(148, 163, 184, .28);
}

body.theme-dark .guided-tour-step-text {
    color: #cbd5e1;
}

@media (max-width: 900px) {
    .guided-tour-card {
        width: calc(100vw - 24px);
        max-width: none;
    }

    .guided-tour-card-actions {
        justify-content: stretch;
    }

    .guided-tour-card-actions .btn {
        flex: 1 1 140px;
    }
}

/* Pépites v2.8.2 — visite guidée, accueil compact et menu mobile net */
.guided-tour-overlay {
    --guided-tour-x: 50vw;
    --guided-tour-y: 50vh;
    --guided-tour-radius: 150px;
}

.guided-tour-scrim {
    background:
        radial-gradient(circle at var(--guided-tour-x) var(--guided-tour-y), rgba(255,255,255,.12) 0, rgba(255,255,255,.08) calc(var(--guided-tour-radius) * .46), rgba(15,23,42,.14) calc(var(--guided-tour-radius) * .72), rgba(15,23,42,.68) var(--guided-tour-radius));
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

.guided-tour-card {
    z-index: 2204;
    width: min(360px, calc(100vw - 32px));
    padding: 16px 16px 14px;
    border-radius: 16px;
}

.guided-tour-progress {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(148,163,184,.22);
    overflow: hidden;
    margin: 0 0 12px;
}

.guided-tour-progress span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #00a0e3);
    transition: width .2s ease;
}

.guided-tour-step-text {
    font-size: .95rem;
    line-height: 1.52;
}

.guided-tour-focus-target {
    z-index: 2202 !important;
    isolation: isolate;
    box-shadow: 0 0 0 4px rgba(96,165,250,.45), 0 0 0 10px rgba(96,165,250,.14), 0 18px 42px rgba(15,23,42,.16) !important;
    transform: scale(1.01);
}

[data-guided-tour-focus='true'] {
    scroll-margin: 92px;
}

.guided-tour-welcome-box {
    max-width: min(520px, calc(100vw - 28px));
}

.guided-tour-welcome-body {
    display: grid;
    gap: 12px;
}

.guided-tour-welcome-intro {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.guided-tour-welcome-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.guided-tour-welcome-pills span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(29,88,205,.1);
    color: var(--primary);
    font-size: .76rem;
    font-weight: 700;
}

.guided-tour-welcome-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text-muted);
    line-height: 1.5;
}

.guided-tour-welcome-footer {
    gap: 8px;
}

body.theme-dark .guided-tour-progress {
    background: rgba(148,163,184,.18);
}

body.theme-dark .guided-tour-welcome-pills span {
    background: rgba(59,130,246,.16);
    color: #dbeafe;
}

@media (max-width: 900px) {
    .guided-tour-card {
        width: calc(100vw - 20px);
        padding: 14px;
        border-radius: 14px;
    }

    .guided-tour-card-actions {
        gap: 8px;
    }

    .guided-tour-card-actions .btn {
        flex: 1 1 120px;
    }

    .guided-tour-welcome-box {
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    .mobile-nav-backdrop {
        background: rgba(15,23,42,.46);
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .main-nav,
    .main-nav .nav-btn,
    .mobile-nav-toggle {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .main-nav {
        background: linear-gradient(180deg, #0b2c70 0%, #113983 100%);
        box-shadow: -14px 0 28px rgba(15,23,42,.22);
    }

    .main-nav .nav-btn {
        background: rgba(15,23,42,.96);
        border-color: rgba(59,130,246,.22);
        box-shadow: none;
    }

    body.nav-open .app-main,
    body.nav-open .view,
    body.nav-open .class-card,
    body.nav-open .panel,
    body.nav-open .card {
        filter: none !important;
    }
}

/* Pépites v2.8.2 — accueil de visite plus compact */
.guided-tour-welcome-box {
    max-width: min(460px, calc(100vw - 24px));
}

.guided-tour-welcome-box .modal-header,
.guided-tour-welcome-box .modal-body,
.guided-tour-welcome-box .modal-footer {
    padding-left: 18px;
    padding-right: 18px;
}

.guided-tour-welcome-body {
    gap: 10px;
}

.guided-tour-welcome-intro {
    font-size: .95rem;
    line-height: 1.45;
}

.guided-tour-welcome-list {
    font-size: .92rem;
    line-height: 1.42;
}

.guided-tour-welcome-list li + li {
    margin-top: 4px;
}

@media (max-width: 900px) {
    .guided-tour-welcome-box {
        max-width: calc(100vw - 12px);
    }

    .guided-tour-welcome-box .modal-header,
    .guided-tour-welcome-box .modal-body,
    .guided-tour-welcome-box .modal-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .guided-tour-welcome-pills {
        gap: 6px;
    }

    .guided-tour-welcome-pills span {
        padding: 5px 8px;
        font-size: .72rem;
    }
}

/* Pépites v2.8.2 — fenêtre de visite toujours au premier plan */
.guided-tour-overlay {
    z-index: 14040;
}

.guided-tour-scrim {
    z-index: 14041;
}

.guided-tour-card {
    z-index: 14050 !important;
}

.guided-tour-focus-target {
    z-index: 14045 !important;
}

.toast,
.toast-container {
    z-index: 14020 !important;
}

/* Pépites v2.8.2 — en-tête avec logo de l'application */
.guided-tour-welcome-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.guided-tour-welcome-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.guided-tour-welcome-logo {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
}

.guided-tour-welcome-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.guided-tour-welcome-brand-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.guided-tour-welcome-brand-text small {
    color: var(--text-muted);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.guided-tour-welcome-pills {
    display: none !important;
}

body.theme-dark .guided-tour-welcome-brand-name {
    color: #dbeafe;
}

body.theme-dark .guided-tour-welcome-brand-text small {
    color: #cbd5e1;
}

/* Pépites v3.8.3 — noms des élèves en blanc dans Classes en mode sombre */
body.theme-dark #class-eleves-block .data-table,
body.theme-dark #class-eleves-block .data-table td,
body.theme-dark #class-eleves-block .data-table td span,
body.theme-dark #class-eleves-block .data-table td strong {
    color: #ffffff !important;
}

body.theme-dark #class-eleves-block .data-table {
    background: #2a2a2a !important;
    border-color: #404040 !important;
}

body.theme-dark #class-eleves-block .data-table tbody tr:hover {
    background: #333333 !important;
}

@media (max-width: 900px) {
    .guided-tour-card {
        left: 10px !important;
        right: 10px;
        width: auto;
        max-width: none;
    }
}

/* Pépites v2.8.2 — visite guidée déplaçable et prioritaire */
.guided-tour-overlay {
    z-index: 2147483000 !important;
    isolation: isolate;
    pointer-events: auto !important;
}

.guided-tour-scrim {
    z-index: 2147483001 !important;
    pointer-events: none !important;
}

.guided-tour-card {
    z-index: 2147483005 !important;
    pointer-events: auto !important;
    will-change: left, top;
}

.guided-tour-focus-target {
    z-index: 2147483003 !important;
}

body.guided-tour-active .app-header,
body.guided-tour-active .app-main,
body.guided-tour-active .app-bottom-nav,
body.guided-tour-active .modal-overlay:not(#modal-guided-tour-welcome),
body.guided-tour-active .toast,
body.guided-tour-active .toast-container {
    pointer-events: none !important;
}

body.guided-tour-active #guided-tour-overlay,
body.guided-tour-active #guided-tour-overlay * {
    pointer-events: auto;
}

.guided-tour-card-head {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.guided-tour-card.is-dragging,
.guided-tour-dragging .guided-tour-card {
    transition: none !important;
}

.guided-tour-card.is-dragging .guided-tour-card-head,
.guided-tour-dragging .guided-tour-card-head {
    cursor: grabbing;
}

.guided-tour-welcome-header {
    background: linear-gradient(135deg, #003189 0%, #0f5bd3 100%);
    border-bottom: none !important;
    color: #ffffff !important;
}

.guided-tour-welcome-logo {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,.18));
}

.guided-tour-welcome-brand-text {
    gap: 4px;
}

.guided-tour-welcome-brand-name {
    margin: 0;
    color: #ffffff !important;
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.1;
}

.guided-tour-welcome-brand-text small {
    color: rgba(255,255,255,.92) !important;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: none;
}

.guided-tour-welcome-header .modal-close-btn {
    color: #ffffff;
    background: rgba(255,255,255,.14);
    border-radius: 12px;
}

.guided-tour-welcome-header .modal-close-btn:hover,
.guided-tour-welcome-header .modal-close-btn:focus-visible {
    background: rgba(255,255,255,.22);
}

body.theme-dark .guided-tour-welcome-header {
    background: linear-gradient(135deg, #071938 0%, #0f5bd3 100%);
}

body.theme-dark .guided-tour-welcome-brand-name,
body.theme-dark .guided-tour-welcome-brand-text small {
    color: #ffffff !important;
}

/* Pépites v2.8.2 — visite guidée au-dessus de tous les plans */
#guided-tour-overlay.guided-tour-overlay,
body.guided-tour-active #guided-tour-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483644 !important;
    isolation: isolate;
    pointer-events: auto !important;
}

#guided-tour-overlay .guided-tour-scrim {
    z-index: 2147483645 !important;
    pointer-events: none !important;
}

#guided-tour-overlay .guided-tour-card,
body.guided-tour-active #guided-tour-overlay .guided-tour-card {
    position: fixed !important;
    z-index: 2147483647 !important;
    isolation: isolate;
    transform: translateZ(0);
    pointer-events: auto !important;
}

body.guided-tour-active .guided-tour-focus-target,
body.guided-tour-active [data-guided-tour-focus='true'] {
    z-index: 2147483646 !important;
    isolation: isolate;
}

body.guided-tour-active .app-header,
body.guided-tour-active .app-main,
body.guided-tour-active .app-bottom-nav,
body.guided-tour-active .view,
body.guided-tour-active .card,
body.guided-tour-active .panel,
body.guided-tour-active .modal-overlay:not(#modal-guided-tour-welcome):not(#guided-tour-overlay),
body.guided-tour-active .toast,
body.guided-tour-active .toast-container,
body.guided-tour-active .select-styled,
body.guided-tour-active .canvas-wrapper,
body.guided-tour-active #plan-export-area,
body.guided-tour-active .classroom-container,
body.guided-tour-active .groupes-result,
body.guided-tour-active .historique-layout,
body.guided-tour-active .histo-chart-wrap,
body.guided-tour-active .histo-radar-wrap,
body.guided-tour-active .week-details-wrap,
body.guided-tour-active .school-calendar-wrap,
body.guided-tour-active #view-historique canvas,
body.guided-tour-active #view-plan canvas {
    z-index: 1 !important;
}

.guided-tour-card-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.guided-tour-card-actions .btn i {
    font-size: .9em;
}

.guided-tour-keycap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 4px 8px;
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,.45);
    background: rgba(255,255,255,.88);
    color: #0f172a;
    font-size: .74rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: inset 0 -1px 0 rgba(15,23,42,.08);
}

body.theme-dark .guided-tour-keycap {
    background: rgba(15,23,42,.96);
    color: #f8fafc;
    border-color: rgba(148,163,184,.4);
}

body.theme-dark #view-groupes .groupes-choice-card > label,
body.theme-dark #view-groupes .groupes-choice-card > label strong,
body.theme-dark #view-groupes .groupes-choice-card .radio-option,
body.theme-dark #view-groupes .groupes-choice-card .radio-option span,
body.theme-dark #view-groupes .groupes-choice-card .radio-option strong,
body.theme-dark #view-bilan .bilan-pillar-head h3,
body.theme-dark #view-bilan .bilan-pillar-head h3 i {
    color: #ffffff !important;
}

/* Pépites v2.8.2 — boutons compacts de visite guidée */
.guided-tour-card-actions {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px !important;
    align-items: stretch;
    flex-wrap: nowrap !important;
}

.guided-tour-card-actions .btn {
    min-width: 0;
    width: 100%;
    padding: 7px 6px;
    border-radius: 10px;
    font-size: .72rem;
    line-height: 1.05;
    gap: 5px;
    white-space: nowrap;
    letter-spacing: -.01em;
}

.guided-tour-card-actions .btn span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.guided-tour-keycap {
    min-width: 0;
    width: 100%;
    padding: 4px 6px;
    font-size: .68rem;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .guided-tour-card-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px !important;
    }

    .guided-tour-card-actions .btn {
        padding: 6px 4px;
        font-size: .67rem;
        gap: 4px;
    }

    .guided-tour-keycap {
        padding: 3px 4px;
        font-size: .62rem;
    }
}

/* Pépites v2.8.2 — quiz CPS intégré */
.cps-quiz-wrap {
    margin-top: 18px;
    border-top: 1px solid rgba(148,163,184,.24);
    padding-top: 18px;
}

.cps-quiz-intro h4 {
    margin: 0 0 6px;
}

.cps-quiz-intro p {
    margin: 0 0 14px;
    color: var(--text-muted);
}

.cps-quiz-card {
    border: 1px solid rgba(0,49,137,.14);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 16px 34px rgba(0,49,137,.08);
    padding: 18px;
}

.cps-quiz-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.cps-quiz-head h4 {
    margin: 0 0 6px;
}

.cps-quiz-head p {
    margin: 0;
    color: var(--text-muted);
}

.cps-quiz-badge,
.cps-quiz-progress,
.cps-quiz-topic {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,49,137,.08);
    color: var(--primary);
    font-size: .76rem;
    font-weight: 700;
}

.cps-quiz-topic {
    background: rgba(0,160,227,.12);
}

.cps-quiz-form {
    display: grid;
    gap: 14px;
}

.cps-quiz-question {
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 16px;
    background: rgba(255,255,255,.92);
}

.cps-quiz-question-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.cps-quiz-question legend {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.55;
}

.cps-quiz-options {
    display: grid;
    gap: 10px;
}

.cps-quiz-option {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: start;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
}

.cps-quiz-option input {
    margin-top: 2px;
}

.cps-quiz-option.is-correct {
    border-color: rgba(22,163,74,.35);
    background: rgba(240,253,244,.95);
}

.cps-quiz-option.is-wrong {
    border-color: rgba(220,38,38,.28);
    background: rgba(254,242,242,.96);
}

.cps-quiz-option.is-missed {
    box-shadow: inset 0 0 0 1px rgba(22,163,74,.24);
}

.cps-quiz-feedback {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: .92rem;
    line-height: 1.5;
}

.cps-quiz-feedback.is-success {
    background: rgba(22,163,74,.12);
    color: #166534;
}

.cps-quiz-feedback.is-warning {
    background: rgba(245,158,11,.14);
    color: #92400e;
}

.cps-quiz-summary {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
}

.cps-quiz-summary p {
    margin: 0;
}

.cps-quiz-summary.is-success {
    background: rgba(22,163,74,.14);
    color: #166534;
}

.cps-quiz-summary.is-warning {
    background: rgba(245,158,11,.14);
    color: #92400e;
}

.cps-quiz-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

body.theme-dark .cps-quiz-card {
    background: linear-gradient(180deg, rgba(15,23,42,.98), rgba(10,18,34,.98));
    border-color: rgba(148,163,184,.22);
}

body.theme-dark .cps-quiz-head p,
body.theme-dark .cps-quiz-intro p {
    color: #cbd5e1;
}

body.theme-dark .cps-quiz-question {
    background: rgba(15,23,42,.84);
    border-color: rgba(148,163,184,.18);
}

body.theme-dark .cps-quiz-option {
    background: rgba(15,23,42,.94);
    border-color: rgba(148,163,184,.18);
    color: var(--text-main);
}

body.theme-dark .cps-quiz-option.is-correct {
    background: rgba(20,83,45,.34);
    color: #dcfce7;
}

body.theme-dark .cps-quiz-option.is-wrong {
    background: rgba(127,29,29,.34);
    color: #fee2e2;
}

body.theme-dark .cps-quiz-feedback.is-success {
    color: #dcfce7;
    background: rgba(20,83,45,.28);
}

body.theme-dark .cps-quiz-feedback.is-warning {
    color: #fde68a;
    background: rgba(120,53,15,.32);
}

body.theme-dark .cps-quiz-summary.is-success {
    color: #dcfce7;
    background: rgba(20,83,45,.28);
}

body.theme-dark .cps-quiz-summary.is-warning {
    color: #fde68a;
    background: rgba(120,53,15,.32);
}

@media (max-width: 900px) {
    .cps-quiz-card {
        padding: 14px;
    }

    .cps-quiz-head {
        flex-direction: column;
    }

    .cps-quiz-actions .btn {
        flex: 1 1 100%;
    }
}

/* v2.8.3 — quiz séquentiel inspiré de la maquette fournie */
.cps-seq-quiz {
    margin-top: 12px;
}
.cps-seq-quiz-shell {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid rgba(148,163,184,.28);
    border-radius: 22px;
    box-shadow: 0 18px 36px rgba(15,23,42,.08);
    padding: 16px 16px 18px;
}
.cps-seq-quiz.is-maximized .cps-seq-quiz-shell {
    position: relative;
    z-index: 20;
}
.cps-seq-quiz-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.cps-seq-quiz-head h4 {
    margin: 4px 0 0;
    font-size: 1.02rem;
    color: var(--text-main);
}
.cps-seq-quiz-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.cps-seq-quiz-expand {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(148,163,184,.35);
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cps-seq-quiz-question-card,
.cps-seq-quiz-summary-card {
    min-height: 280px;
}
.cps-seq-quiz-question-top,
.cps-seq-quiz-summary-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.cps-seq-quiz-progress,
.cps-seq-quiz-topic,
.cps-seq-quiz-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #0f5bd3;
    font-size: .78rem;
    font-weight: 700;
}
.cps-seq-quiz-topic {
    background: #f1f5f9;
    color: #334155;
}
.cps-seq-quiz-question-card h5,
.cps-seq-quiz-summary-card h5 {
    margin: 0 0 16px;
    font-size: 1.02rem;
    line-height: 1.5;
    color: var(--text-main);
}
.cps-seq-quiz-options {
    display: grid;
    gap: 10px;
}
.cps-seq-quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #d7dee8;
    background: #eceff3;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
    cursor: pointer;
}
.cps-seq-quiz-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15,23,42,.06);
}
.cps-seq-quiz-option input {
    margin: 0;
    flex-shrink: 0;
}
.cps-seq-quiz-option span {
    color: #0f172a;
    font-weight: 600;
    line-height: 1.45;
}
.cps-seq-quiz-option.is-correct {
    border-color: rgba(34,197,94,.5);
    background: rgba(220,252,231,.9);
}
.cps-seq-quiz-option.is-wrong {
    border-color: rgba(239,68,68,.5);
    background: rgba(254,226,226,.92);
}
.cps-seq-quiz-option.is-missed {
    box-shadow: inset 0 0 0 2px rgba(34,197,94,.22);
}
.cps-seq-quiz-feedback {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,.22);
    background: #f8fafc;
    line-height: 1.6;
}
.cps-seq-quiz-feedback.is-success {
    background: rgba(220,252,231,.82);
    border-color: rgba(34,197,94,.35);
    color: #166534;
}
.cps-seq-quiz-feedback.is-warning {
    background: rgba(255,247,237,.92);
    border-color: rgba(249,115,22,.28);
    color: #9a3412;
}
.cps-seq-quiz-footer {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}
.cps-seq-quiz-primary-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.cps-seq-quiz-check {
    min-width: 132px;
    border-radius: 999px;
}
.cps-seq-quiz-next {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f5bd3 0%, #3b82f6 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(15,91,211,.22);
}
.cps-seq-quiz-next:disabled,
.cps-seq-quiz-check:disabled,
.cps-seq-quiz-expand:disabled {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none;
}
.cps-seq-quiz-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cps-seq-quiz-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 1px solid #94a3b8;
    background: #fff;
    padding: 0;
}
.cps-seq-quiz-dot.active {
    transform: scale(1.18);
    border-color: #0f5bd3;
    box-shadow: 0 0 0 3px rgba(15,91,211,.12);
}
.cps-seq-quiz-dot.is-success {
    background: #22c55e;
    border-color: #22c55e;
}
.cps-seq-quiz-dot.is-warning {
    background: #f59e0b;
    border-color: #f59e0b;
}
.cps-seq-quiz-secondary-actions,
.cps-seq-quiz-summary-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.cps-seq-quiz-summary-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 4px;
}
.cps-seq-quiz-summary-card p {
    margin: 0 0 14px;
    line-height: 1.65;
}
.cps-seq-quiz-summary-card.is-success {
    color: #166534;
}
.cps-seq-quiz-summary-card.is-warning {
    color: #9a3412;
}

/* v2.8.3 — section liens */
.cps-links-section {
    margin-top: 24px;
}
.cps-links-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.cps-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.cps-link-card {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,.2);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 22px rgba(15,23,42,.05);
}
.cps-link-card h5 {
    margin: 0 0 8px;
    font-size: .98rem;
}
.cps-link-card h5 a {
    color: var(--primary);
    text-decoration: none;
}
.cps-link-card h5 a:hover {
    text-decoration: underline;
}
.cps-link-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}
.cps-link-card-wide {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .cps-seq-quiz-shell {
        padding: 14px 12px 16px;
        border-radius: 18px;
    }
    .cps-seq-quiz-primary-actions {
        gap: 10px;
    }
    .cps-seq-quiz-check {
        flex: 1 1 auto;
        min-width: 0;
    }
    .cps-seq-quiz-secondary-actions .btn {
        flex: 1 1 100%;
    }
}

body.theme-dark .cps-seq-quiz-shell,
body.theme-dark .cps-link-card {
    background: linear-gradient(180deg, #0f172a 0%, #111c31 100%);
    border-color: rgba(148,163,184,.2);
}
body.theme-dark .cps-seq-quiz-head h4,
body.theme-dark .cps-seq-quiz-question-card h5,
body.theme-dark .cps-link-card h5,
body.theme-dark .cps-link-card h5 a {
    color: #f8fafc;
}
body.theme-dark .cps-seq-quiz-expand,
body.theme-dark .cps-seq-quiz-option,
body.theme-dark .cps-seq-quiz-feedback {
    background: #162338;
    border-color: rgba(148,163,184,.22);
}
body.theme-dark .cps-seq-quiz-option span,
body.theme-dark .cps-link-card p,
body.theme-dark .cps-seq-quiz-feedback,
body.theme-dark .cps-seq-quiz-kicker {
    color: #cbd5e1;
}
body.theme-dark .cps-seq-quiz-topic {
    background: rgba(148,163,184,.16);
    color: #e2e8f0;
}
body.theme-dark .cps-seq-quiz-option.is-correct {
    background: rgba(20,83,45,.72);
}
body.theme-dark .cps-seq-quiz-option.is-wrong {
    background: rgba(127,29,29,.74);
}
body.theme-dark .cps-seq-quiz-feedback.is-success {
    color: #dcfce7;
}
body.theme-dark .cps-seq-quiz-feedback.is-warning {
    color: #ffedd5;
}

/* v2.8.4 — harmonisation visuelle quiz CPS / Activités */
.cps-seq-quiz-shell {
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.98));
}

.cps-seq-quiz-head {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(209,218,232,.8);
}

.cps-seq-quiz-kicker {
    color: var(--primary);
    letter-spacing: .04em;
}

.cps-seq-quiz-head h4 {
    font-size: 1.08rem;
    font-weight: 800;
}

.cps-seq-quiz-progress,
.cps-seq-quiz-topic,
.cps-seq-quiz-badge {
    background: rgba(0,49,137,.08);
    color: var(--primary);
}

.cps-seq-quiz-topic {
    background: rgba(56,189,248,.12);
}

.cps-seq-quiz-question-card,
.cps-seq-quiz-summary-card {
    min-height: 300px;
    padding: 18px;
    border: 1px solid rgba(209,218,232,.9);
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.cps-seq-quiz-option {
    align-items: flex-start;
    background: #fff;
    border-color: rgba(148,163,184,.2);
}

.cps-seq-quiz-option span {
    font-weight: 500;
}

.cps-seq-quiz-next,
.cps-seq-quiz-check {
    min-height: 42px;
}

.cps-seq-quiz-check.btn-primary {
    box-shadow: 0 10px 18px rgba(0,49,137,.14);
}

.cps-seq-quiz-expand {
    border-radius: 10px;
}

.cps-seq-quiz-dot.active {
    box-shadow: 0 0 0 3px rgba(0,49,137,.12);
}

.quiz-preview-card .quiz-question-card,
.quiz-launch-card,
.quiz-history-item {
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.98));
}

body.theme-dark .cps-seq-quiz-shell,
body.theme-dark .cps-seq-quiz-question-card,
body.theme-dark .cps-seq-quiz-summary-card {
    border-color: rgba(148,163,184,.2);
    background: linear-gradient(180deg, rgba(15,23,42,.98), rgba(10,18,34,.98));
}

body.theme-dark .cps-seq-quiz-head {
    border-bottom-color: rgba(148,163,184,.16);
}

/* v2.8.5 — activités épurées, imports assistés, hauteur fixe aperçu quiz */
.activites-tabs-hidden {
    display: none !important;
}

.quiz-export-split {
    position: relative;
    display: inline-flex;
}

.quiz-format-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 168px;
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid #dbe4f3;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .14);
    z-index: 20;
}

.quiz-import-assistant,
.consolidation-import-assistant {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #dbe4f3;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.quiz-assistant-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.quiz-assistant-field {
    margin-bottom: 0;
}

.quiz-assistant-actions,
.quiz-assistant-actions-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quiz-structured-textarea {
    min-height: 150px;
}

.quiz-ai-document-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.quiz-launch-duration-field {
    display: grid;
    gap: 8px;
    margin-top: 2px;
}

.quiz-launch-duration-field > label {
    margin: 0;
}

.import-choice-card-ai-full {
    grid-column: 1 / -1;
}

.quiz-questions-block {
    margin-top: 2px;
}

.quiz-ai-grid-simple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quiz-ai-document-field {
    display: grid;
    gap: 10px;
}

.quiz-ai-document-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.quiz-ai-document-head > label {
    margin: 0;
}

.quiz-ai-document-textarea {
    min-height: 150px;
}

.quiz-ai-scribeo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #bfe7dd;
    background: #f3fbf8;
    color: #0f766e;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.quiz-ai-scribeo-link:hover {
    border-color: #10a37f;
    background: #ecfdf5;
    text-decoration: none;
}

.quiz-ai-scribeo-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    border-radius: 6px;
    overflow: hidden;
    flex: 0 0 20px;
}

.quiz-ai-scribeo-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.quiz-ai-help a,
.consolidation-import-assistant a {
    font-weight: 700;
}

.quiz-preview-card,
.quiz-editor-card {
    height: 720px !important;
    min-height: 720px !important;
    max-height: 720px !important;
}

.quiz-preview-card #quiz-preview-body,
.quiz-preview-card .quiz-preview-body-full {
    min-height: 0 !important;
    height: calc(720px - 112px) !important;
    max-height: calc(720px - 112px) !important;
    overflow: auto !important;
}

.quiz-preview-card .quiz-question-list {
    max-height: none !important;
}

@media (max-width: 1200px) {
    .quiz-preview-card,
    .quiz-editor-card {
        height: 620px !important;
        min-height: 620px !important;
        max-height: 620px !important;
    }

    .quiz-preview-card #quiz-preview-body,
    .quiz-preview-card .quiz-preview-body-full {
        height: calc(620px - 112px) !important;
        max-height: calc(620px - 112px) !important;
    }
}

@media (max-width: 900px) {
    .quiz-ai-grid-simple {
        grid-template-columns: 1fr;
    }

    .quiz-ai-document-head {
        align-items: flex-start;
    }

    .quiz-assistant-row {
        grid-template-columns: 1fr;
    }

    .quiz-export-split,
    .quiz-format-menu,
    .quiz-assistant-actions .btn,
    .quiz-assistant-actions-wrap .btn {
        width: 100%;
    }

    .quiz-preview-card,
    .quiz-editor-card {
        height: 560px !important;
        min-height: 560px !important;
        max-height: 560px !important;
    }

    .quiz-preview-card #quiz-preview-body,
    .quiz-preview-card .quiz-preview-body-full {
        height: calc(560px - 112px) !important;
        max-height: calc(560px - 112px) !important;
    }
}

/* v2.8.7 — activités flashcards, import exclusif CodiMD/JSON, aperçu quiz pas à pas */
.activite-hero-icon {
    width: 88px !important;
    height: 88px !important;
    font-size: 2rem !important;
}

.activite-hero-head h3 {
    font-size: 1.4rem;
}

.quiz-dock-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.quiz-editor-card,
.quiz-preview-card {
    min-height: 780px !important;
    height: auto !important;
    max-height: none !important;
    align-self: stretch;
}

.quiz-editor-card #quiz-questions-input {
    min-height: 290px;
}

.quiz-preview-card #quiz-preview-body,
.quiz-preview-card .quiz-preview-body-full {
    min-height: 420px !important;
    height: auto !important;
    max-height: none !important;
    overflow: auto !important;
}

.quiz-inline-import {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.quiz-inline-import .btn {
    flex: 0 0 auto;
}

.quiz-format-menu,
.quiz-export-split {
    display: none !important;
}

.quiz-import-assistant,
.consolidation-import-assistant {
    display: grid;
    gap: 14px;
}

.quiz-import-choice-copy {
    margin: 0;
}

.import-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.import-choice-card[data-import-source-card="ai"] {
    grid-column: 1 / -1;
}

.quiz-ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin: 10px 0 4px;
}

#quiz-ai-status {
    margin-top: 8px;
}

#quiz-ai-status.is-error {
    color: #b91c1c;
}

#quiz-ai-status.is-success {
    color: #15803d;
}

.import-choice-card {
    border: 1px solid #dbe4f3;
    border-radius: 16px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,251,255,.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, opacity .18s ease;
}

.import-choice-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.import-choice-card.is-active {
    border-color: rgba(0, 49, 137, .45);
    box-shadow: 0 0 0 3px rgba(0, 49, 137, .08), 0 12px 26px rgba(0, 49, 137, .08);
}

.import-choice-card.is-inactive {
    opacity: .58;
}

.import-choice-card .form-group {
    margin-bottom: 0;
}

.import-choice-card textarea,
.import-choice-card input {
    margin-top: 8px;
}

.quiz-structured-textarea {
    min-height: 180px;
}

.quiz-preview-stage {
    display: grid;
    gap: 14px;
}

.quiz-preview-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #dbe4f3;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: var(--primary);
}

.quiz-question-card-focus {
    min-height: 0;
}

.quiz-preview-nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
}

.quiz-preview-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.quiz-preview-dot {
    min-width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid #dbe4f3;
    background: #ffffff;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
}

.quiz-preview-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 49, 137, .18);
}

body.theme-dark .import-choice-card,
body.theme-dark .quiz-preview-progress {
    border-color: rgba(148, 163, 184, .2);
    background: linear-gradient(180deg, rgba(15,23,42,.98), rgba(10,18,34,.98));
}

body.theme-dark .quiz-preview-dot {
    border-color: rgba(148, 163, 184, .22);
    background: rgba(15, 23, 42, .92);
    color: #e2e8f0;
}

body.theme-dark .quiz-preview-dot.active {
    background: #60a5fa;
    border-color: #60a5fa;
    color: #0f172a;
}

@media (max-width: 1200px) {
    .quiz-dock-grid,
    .import-choice-grid {
        grid-template-columns: 1fr;
    }

    .quiz-editor-card,
    .quiz-preview-card {
        min-height: 0 !important;
    }
}

@media (max-width: 900px) {
    .activite-hero-icon {
        width: 74px !important;
        height: 74px !important;
        font-size: 1.7rem !important;
    }

    .quiz-preview-nav {
        grid-template-columns: 1fr;
    }

    .quiz-preview-nav .btn,
    .quiz-inline-import .btn {
        width: 100%;
    }
}

/* Pépites v3.8.3 — exports quiz rapprochés, projection app-like et contraste sombre renforcé */
.quiz-editor-card,
.quiz-preview-card,
.quiz-scoreboard-card {
    grid-column: 1 / -1;
}

.quiz-editor-card,
.quiz-preview-card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-self: start;
}

.quiz-preview-card #quiz-preview-body,
.quiz-preview-card .quiz-preview-body-full {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible;
}

.quiz-scoreboard-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-scoreboard-card[hidden] {
    display: none !important;
}

.quiz-live-main-card {
    display: grid;
    gap: 16px;
}

.quiz-live-inline-section {
    display: grid;
    gap: 12px;
}

.quiz-live-main-card > #quiz-statistics-panel[hidden],
.quiz-live-main-card > #quiz-scoreboard[hidden] {
    display: none !important;
}

.quiz-live-main-card > #quiz-statistics-panel,
.quiz-live-main-card > #quiz-scoreboard {
    margin-top: 0;
}

.quiz-live-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    align-items: start;
}

.quiz-live-side-card {
    padding: 18px;
    border-radius: 22px;
}

body.theme-dark .quiz-preview-progress {
    background: rgba(30, 41, 59, .84);
}

@media (max-width: 1100px) {
    .quiz-live-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .quiz-preview-nav {
        grid-template-columns: 1fr;
    }

    .quiz-preview-nav .btn,
    .quiz-projection-actions .btn {
        width: 100%;
    }
}

/* Pépites v3.8.3 — accueil guidé compact et textes blancs sur fonds sombres */
#activites-tab-btn-quiz.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 91, 211, .22);
}

#activites-tab-btn-quiz.active i {
    color: #ffffff !important;
}

.quiz-import-choice-copy,
.quiz-import-choice-copy a {
    white-space: nowrap;
}

.quiz-import-assistant-help {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.quiz-import-assistant-help .quiz-ai-help {
    margin: 0;
}

.quiz-inline-import {
    align-items: flex-start;
}

.quiz-export-split {
    position: relative;
    display: inline-flex;
}

.quiz-format-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, .22);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
    box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
    z-index: 30;
}

.quiz-format-menu[hidden] {
    display: none;
}

.quiz-format-menu .btn {
    width: 100%;
    justify-content: flex-start;
}

body.theme-dark .quiz-format-menu {
    border-color: rgba(148, 163, 184, .28);
    background: linear-gradient(180deg, rgba(15,23,42,.98), rgba(8,15,29,.98));
    box-shadow: 0 18px 42px rgba(2, 6, 23, .48);
}

body.theme-dark .quiz-format-menu .btn {
    background: rgba(15, 23, 42, .88);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, .24);
}

body.theme-dark .quiz-format-menu .btn:hover,
body.theme-dark .quiz-format-menu .btn:focus-visible {
    background: rgba(30, 41, 59, .96);
    color: #f8fafc;
}

body.theme-dark .card,
body.theme-dark .class-card,
body.theme-dark .stat-card,
body.theme-dark .summary-card,
body.theme-dark .guide-card,
body.theme-dark .support-card,
body.theme-dark .resource-card,
body.theme-dark .history-card,
body.theme-dark .plan-sidebar-status,
body.theme-dark .quiz-dock-card,
body.theme-dark .quiz-live-side-card,
body.theme-dark .quiz-live-main-card,
body.theme-dark .quiz-live-inline-section,
body.theme-dark .quiz-import-assistant,
body.theme-dark .consolidation-import-assistant,
body.theme-dark .import-choice-card,
body.theme-dark .activite-hero-card,
body.theme-dark .activites-tab-content .card,
body.theme-dark .modal-content,
body.theme-dark .modal-card,
body.theme-dark .settings-card,
body.theme-dark .panel,
body.theme-dark .table-card,
body.theme-dark .quiz-scoreboard-card,
body.theme-dark .quiz-preview-card,
body.theme-dark .quiz-editor-card {
    background: linear-gradient(180deg, rgba(15,23,42,.96), rgba(7,15,29,.96)) !important;
    border-color: rgba(148, 163, 184, .22) !important;
    color: #e5eefb !important;
    box-shadow: 0 18px 40px rgba(2, 6, 23, .34);
}

body.theme-dark .card h1,
body.theme-dark .card h2,
body.theme-dark .card h3,
body.theme-dark .card h4,
body.theme-dark .card h5,
body.theme-dark .card h6,
body.theme-dark .guide-card h3,
body.theme-dark .guide-card h4,
body.theme-dark .quiz-dock-card h3,
body.theme-dark .quiz-dock-card h4,
body.theme-dark .activite-hero-card h3,
body.theme-dark .activite-hero-card h4,
body.theme-dark .modal-content h3,
body.theme-dark .modal-card h3,
body.theme-dark .panel h3,
body.theme-dark .panel h4 {
    color: #f8fafc !important;
}

body.theme-dark .card p,
body.theme-dark .card li,
body.theme-dark .card label,
body.theme-dark .card span,
body.theme-dark .guide-card p,
body.theme-dark .quiz-dock-card p,
body.theme-dark .quiz-dock-card label,
body.theme-dark .activite-hero-card p,
body.theme-dark .modal-content p,
body.theme-dark .modal-card p,
body.theme-dark .panel p,
body.theme-dark .panel li,
body.theme-dark .table-card td,
body.theme-dark .table-card th,
body.theme-dark .help-text,
body.theme-dark .field-help,
body.theme-dark .empty-state,
body.theme-dark .class-stat-badge,
body.theme-dark .quiz-import-choice-copy,
body.theme-dark .quiz-ai-help {
    color: #d8e5f8 !important;
}

body.theme-dark .help-text a,
body.theme-dark .card a,
body.theme-dark .guide-card a,
body.theme-dark .panel a,
body.theme-dark .quiz-dock-card a,
body.theme-dark .modal-content a,
body.theme-dark .modal-card a {
    color: #93c5fd !important;
}

body.theme-dark .activites-tabs {
    background: rgba(15, 23, 42, .72);
    border: 1px solid rgba(148, 163, 184, .16);
}

body.theme-dark .activites-tab-btn {
    color: #cbd5e1;
}

body.theme-dark .activites-tab-btn.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, .95), rgba(59, 130, 246, .95));
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .28);
}

body.theme-dark .activites-tab-btn.active i {
    color: #ffffff !important;
}

body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
    background: rgba(15, 23, 42, .92) !important;
    color: #f8fafc !important;
    border-color: rgba(148, 163, 184, .24) !important;
}

body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
    color: #94a3b8 !important;
}

body.theme-dark table thead th,
body.theme-dark .table thead th,
body.theme-dark .stats-table thead th {
    background: rgba(30, 41, 59, .92) !important;
    color: #f8fafc !important;
}

body.theme-dark table tbody td,
body.theme-dark .table tbody td,
body.theme-dark .stats-table tbody td {
    background: rgba(10, 18, 34, .72);
    color: #e2e8f0 !important;
}

/* Pépites v3.8.3 — lisibilité sombre globale et fenêtre d’accueil compactée */
body.theme-dark {
    --primary: #4a90e2;
    --primary-light: #2a2a2a;
    --primary-mid: #4a90e2;
    --primary-dark: #1a1a1a;
    --accent: #4a90e2;
    --accent-light: #333333;
    --success: #50c878;
    --success-light: rgba(80,200,120,.16);
    --danger: #ff4444;
    --danger-light: rgba(255,68,68,.16);
    --warning: #ffa500;
    --warning-light: rgba(255,165,0,.18);
    --bg: #1a1a1a;
    --surface: #2a2a2a;
    --border: #404040;
    --text-main: #f4f4f9;
    --text-muted: #b4b4b9;
    --text-light: #b4b4b9;
    --shadow-sm: 0 1px 4px rgba(0,0,0,.30);
    --shadow-md: 0 4px 16px rgba(0,0,0,.30);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.30);
}

body.theme-dark,
body.theme-dark .view,
body.theme-dark .app-main {
    background: #1a1a1a !important;
    color: #f4f4f9 !important;
}

body.theme-dark .app-header,
body.theme-dark .main-nav,
body.theme-dark .mobile-nav-panel {
    background: #1a1a1a !important;
    border-color: #404040 !important;
}

body.theme-dark .brand-text h1,
body.theme-dark .brand-text span,
body.theme-dark .header-brand,
body.theme-dark .header-actions,
body.theme-dark .nav-btn,
body.theme-dark .nav-btn i,
body.theme-dark .app-footer,
body.theme-dark .app-footer a {
    color: #f4f4f9 !important;
}

body.theme-dark .nav-btn,
body.theme-dark .theme-toggle-btn,
body.theme-dark .mobile-nav-toggle,
body.theme-dark .btn-secondary,
body.theme-dark .segmented-btn,
body.theme-dark .activites-tab-btn {
    background: #2a2a2a !important;
    border-color: #404040 !important;
    color: #f4f4f9 !important;
}

body.theme-dark .nav-btn.active,
body.theme-dark .nav-btn:hover,
body.theme-dark .segmented-btn.active,
body.theme-dark .segmented-btn:hover,
body.theme-dark .btn-primary,
body.theme-dark .activites-tab-btn.active,
body.theme-dark #activites-tab-btn-quiz.active,
body.theme-dark .theme-toggle-btn:hover,
body.theme-dark .mobile-nav-toggle:hover {
    background: #4a90e2 !important;
    border-color: #4a90e2 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

body.theme-dark .btn-primary:hover:not(:disabled),
body.theme-dark .btn-secondary:hover:not(:disabled) {
    background: #3a7bc8 !important;
    border-color: #3a7bc8 !important;
    color: #ffffff !important;
}

body.theme-dark .card,
body.theme-dark .modal-box,
body.theme-dark .modal-content,
body.theme-dark .class-card,
body.theme-dark .panel,
body.theme-dark .view,
body.theme-dark .toast,
body.theme-dark .quiz-dock-card,
body.theme-dark .quiz-live-side-card,
body.theme-dark .quiz-live-main-card,
body.theme-dark .quiz-live-inline-section,
body.theme-dark .quiz-import-assistant,
body.theme-dark .consolidation-import-assistant,
body.theme-dark .import-choice-card,
body.theme-dark .guide-card,
body.theme-dark .guide-hero-card,
body.theme-dark .summary-card,
body.theme-dark .stat-card,
body.theme-dark .history-card,
body.theme-dark .resource-card,
body.theme-dark .student-bilan-card,
body.theme-dark .bilan-summary-card,
body.theme-dark .plan-sidebar,
body.theme-dark .quiz-preview-card,
body.theme-dark .quiz-editor-card,
body.theme-dark .quiz-scoreboard-card,
body.theme-dark .consolidation-card,
body.theme-dark .consolidation-mini-card,
body.theme-dark .consolidation-week-card,
body.theme-dark .consolidation-editor-card,
body.theme-dark .consolidation-overview-card,
body.theme-dark .consolidation-rhythm-card,
body.theme-dark .table-card,
body.theme-dark .week-details-wrap,
body.theme-dark .school-calendar-wrap,
body.theme-dark .groupes-result,
body.theme-dark .parking-dock,
body.theme-dark .plan-toolbar,
body.theme-dark #plan-export-area,
body.theme-dark .canvas-wrapper,
body.theme-dark .classroom-container {
    background: #2a2a2a !important;
    border-color: #404040 !important;
    color: #f4f4f9 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.30) !important;
}

body.theme-dark .data-table,
body.theme-dark .data-table td,
body.theme-dark .data-table th,
body.theme-dark .stats-table thead th,
body.theme-dark .stats-table tbody td,
body.theme-dark .table tbody td,
body.theme-dark .table thead th {
    background: #2a2a2a !important;
    border-color: #404040 !important;
    color: #f4f4f9 !important;
}

body.theme-dark .input-text,
body.theme-dark .input-search,
body.theme-dark .select-styled,
body.theme-dark .textarea-large,
body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea,
body.theme-dark .class-selector-wrap,
body.theme-dark .quiz-format-menu,
body.theme-dark .quiz-format-menu .btn,
body.theme-dark .groupes-choice-card,
body.theme-dark .quick-adjust-card,
body.theme-dark .eval-criterion,
body.theme-dark .school-week-btn,
body.theme-dark .school-month-btn,
body.theme-dark .session-card,
body.theme-dark .week-session-card,
body.theme-dark .radio-option,
body.theme-dark .quiz-preview-progress,
body.theme-dark .quiz-preview-dot,
body.theme-dark .quiz-question-card,
body.theme-dark .quiz-option-list,
body.theme-dark .quiz-option-list li,
body.theme-dark .quiz-end-options-card,
body.theme-dark .quiz-countdown-badge,
body.theme-dark .projection-rank-item,
body.theme-dark .projection-stat-item {
    background: #333333 !important;
    border-color: #404040 !important;
    color: #f4f4f9 !important;
}

body.theme-dark p,
body.theme-dark li,
body.theme-dark label,
body.theme-dark span,
body.theme-dark strong,
body.theme-dark small,
body.theme-dark .help-text,
body.theme-dark .field-help,
body.theme-dark .empty-state,
body.theme-dark .block-subtitle,
body.theme-dark .class-details-subtitle,
body.theme-dark .session-meta,
body.theme-dark .session-date,
body.theme-dark .aruco-session-status,
body.theme-dark .class-stat-badge,
body.theme-dark .badge-count,
body.theme-dark .stats-pill,
body.theme-dark .stats-pill.muted {
    color: #ffffff !important;
}

body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6,
body.theme-dark .quiz-question-title,
body.theme-dark .projection-empty h1,
body.theme-dark .guided-tour-card h3 {
    color: #f4f4f9 !important;
}

body.theme-dark a,
body.theme-dark .help-text a,
body.theme-dark .panel a,
body.theme-dark .guide-card a {
    color: #4a90e2 !important;
}

body.theme-dark .quiz-preview-dot.active,
body.theme-dark .quiz-option-list li.is-correct,
body.theme-dark .projection-rank-item.is-leading,
body.theme-dark .guided-tour-progress span {
    background: #4a90e2 !important;
    border-color: #4a90e2 !important;
    color: #ffffff !important;
}

.guided-tour-welcome-box {
    max-width: min(400px, calc(100vw - 20px));
    border-radius: 14px;
}

.guided-tour-welcome-box .modal-header,
.guided-tour-welcome-box .modal-body,
.guided-tour-welcome-box .modal-footer {
    padding-left: 14px;
    padding-right: 14px;
}

.guided-tour-welcome-header {
    min-height: auto;
}

.guided-tour-welcome-body {
    gap: 8px;
}

.guided-tour-welcome-intro {
    font-size: .92rem;
    line-height: 1.38;
}

.guided-tour-welcome-footer {
    gap: 6px;
}

@media (max-width: 900px) {
    .guided-tour-welcome-box {
        max-width: calc(100vw - 10px);
    }
}

/* Pépites v3.8.3 — export quiz visible, contrastes renforcés, projection synchronisée */
.quiz-inline-import {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.quiz-import-assistant .import-choice-card {
    display: grid;
    gap: 10px;
}

.quiz-structured-inline-help,
.quiz-import-choice-copy {
    margin: 0;
}

.quiz-import-choice-copy {
    white-space: normal;
}

.guided-tour-welcome-box {
    max-width: min(360px, calc(100vw - 16px));
    border-radius: 14px;
}

.guided-tour-welcome-box .modal-header,
.guided-tour-welcome-box .modal-body,
.guided-tour-welcome-box .modal-footer {
    padding-left: 12px;
    padding-right: 12px;
}

.guided-tour-welcome-header {
    padding-top: 10px;
    padding-bottom: 10px;
}

.guided-tour-welcome-body {
    gap: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.guided-tour-welcome-intro {
    font-size: .88rem;
    line-height: 1.32;
}

.guided-tour-welcome-footer {
    gap: 6px;
}

.guided-tour-welcome-footer .btn {
    min-height: 34px;
    padding: 7px 10px;
    font-size: .82rem;
    border-radius: 9px;
    flex: 1 1 110px;
}

body.theme-dark,
body.theme-dark .view,
body.theme-dark .app-main,
body.theme-dark .app-header,
body.theme-dark .main-nav,
body.theme-dark .mobile-nav-panel,
body.theme-dark .card,
body.theme-dark .panel,
body.theme-dark .class-card,
body.theme-dark .modal-box,
body.theme-dark .modal-content,
body.theme-dark .toast,
body.theme-dark .guide-card,
body.theme-dark .guide-hero-card,
body.theme-dark .quiz-dock-card,
body.theme-dark .quiz-preview-card,
body.theme-dark .quiz-editor-card,
body.theme-dark .quiz-scoreboard-card,
body.theme-dark .quiz-live-side-card,
body.theme-dark .quiz-live-main-card,
body.theme-dark .quiz-live-inline-section,
body.theme-dark .quiz-import-assistant,
body.theme-dark .consolidation-import-assistant,
body.theme-dark .import-choice-card,
body.theme-dark .summary-card,
body.theme-dark .stat-card,
body.theme-dark .history-card,
body.theme-dark .resource-card,
body.theme-dark .student-bilan-card,
body.theme-dark .bilan-summary-card,
body.theme-dark .plan-sidebar,
body.theme-dark .consolidation-card,
body.theme-dark .consolidation-mini-card,
body.theme-dark .consolidation-week-card,
body.theme-dark .consolidation-editor-card,
body.theme-dark .consolidation-overview-card,
body.theme-dark .consolidation-rhythm-card,
body.theme-dark .week-details-wrap,
body.theme-dark .school-calendar-wrap,
body.theme-dark .groupes-result,
body.theme-dark .parking-dock,
body.theme-dark .plan-toolbar,
body.theme-dark #plan-export-area,
body.theme-dark .canvas-wrapper,
body.theme-dark .classroom-container,
body.theme-dark .data-table,
body.theme-dark .stats-table,
body.theme-dark table,
body.theme-dark .input-text,
body.theme-dark .input-search,
body.theme-dark .select-styled,
body.theme-dark .textarea-large,
body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea,
body.theme-dark .groupes-choice-card,
body.theme-dark .quick-adjust-card,
body.theme-dark .eval-criterion,
body.theme-dark .school-week-btn,
body.theme-dark .school-month-btn,
body.theme-dark .session-card,
body.theme-dark .week-session-card,
body.theme-dark .radio-option,
body.theme-dark .quiz-preview-progress,
body.theme-dark .quiz-preview-dot,
body.theme-dark .quiz-question-card,
body.theme-dark .quiz-option-list,
body.theme-dark .quiz-option-list li,
body.theme-dark .quiz-end-options-card,
body.theme-dark .quiz-countdown-badge,
body.theme-dark .class-selector-wrap,
body.theme-dark .quiz-format-menu,
body.theme-dark .quiz-format-menu .btn,
body.theme-dark .segmented-btn,
body.theme-dark .nav-btn,
body.theme-dark .activites-tab-btn,
body.theme-dark .btn-secondary {
    color: #ffffff !important;
}

body.theme-dark :is(h1,h2,h3,h4,h5,h6,p,li,label,span,small,strong,em,b,td,th,caption,legend,div) {
    color: #ffffff !important;
}

body.theme-dark a,
body.theme-dark .help-text a,
body.theme-dark .panel a,
body.theme-dark .guide-card a,
body.theme-dark .quiz-import-assistant a,
body.theme-dark .consolidation-import-assistant a {
    color: #93c5fd !important;
}

body.theme-dark .field-help,
body.theme-dark .help-text,
body.theme-dark .empty-state,
body.theme-dark .block-subtitle,
body.theme-dark .class-details-subtitle,
body.theme-dark .session-meta,
body.theme-dark .session-date,
body.theme-dark .aruco-session-status,
body.theme-dark .class-stat-badge,
body.theme-dark .badge-count,
body.theme-dark .stats-pill,
body.theme-dark .stats-pill.muted,
body.theme-dark .text-muted,
body.theme-dark .guided-tour-welcome-intro {
    color: #ffffff !important;
    opacity: .96;
}

body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
    color: rgba(255,255,255,.78) !important;
}

body.theme-dark .btn-primary,
body.theme-dark .btn-primary * {
    color: #ffffff !important;
}

body.theme-dark .quiz-preview-dot.active,
body.theme-dark .quiz-option-list li.is-correct,
body.theme-dark .guided-tour-progress span {
    color: #ffffff !important;
}

@media (max-width: 900px) {
    .guided-tour-welcome-box {
        max-width: calc(100vw - 8px);
    }
    .guided-tour-welcome-footer .btn {
        flex: 1 1 100%;
    }
}

/* Pépites v3.8.3 — export quiz visible + contrastes sombres renforcés */
.quiz-inline-import > .btn-inline-import,
.quiz-inline-import > .quiz-export-split,
.quiz-inline-import > .btn-inline-export {
    flex: 0 0 auto;
}

.quiz-inline-import .btn-inline-import,
.quiz-inline-import .quiz-export-split > .btn {
    white-space: nowrap;
}

.quiz-inline-import .quiz-export-split > .btn {
    min-width: 270px;
}

.quiz-import-choice-copy {
    margin: 6px 0 0;
    line-height: 1.45;
}

.quiz-structured-inline-help,
.quiz-import-choice-copy {
    max-width: 100%;
}

body.theme-dark #view-eleves,
body.theme-dark #view-eleves .card,
body.theme-dark #view-eleves .card *,
body.theme-dark #eleves-tbody td,
body.theme-dark #eleves-tbody th,
body.theme-dark #eleves-count,
body.theme-dark #view-groupes .groupes-summary-card,
body.theme-dark #view-groupes .groupes-summary-card *,
body.theme-dark #view-groupes .groupes-strategies-card,
body.theme-dark #view-groupes .groupes-strategies-card *,
body.theme-dark #view-groupes .groupe-card,
body.theme-dark #view-groupes .groupe-card *,
body.theme-dark #view-groupes .radio-option,
body.theme-dark #view-groupes .radio-option *,
body.theme-dark #view-bilan .student-bilan-card,
body.theme-dark #view-bilan .student-bilan-card *,
body.theme-dark #view-bilan .bilan-pillar,
body.theme-dark #view-bilan .bilan-pillar *,
body.theme-dark #view-bilan .bilan-summary-card,
body.theme-dark #view-bilan .bilan-summary-card * {
    color: #ffffff !important;
}

body.theme-dark #view-groupes .groupe-card-subtitle,
body.theme-dark #view-groupes .groupes-summary-card p,
body.theme-dark #view-groupes .groupes-summary-card .class-stat-badge,
body.theme-dark #view-groupes .groupes-strategies-card span,
body.theme-dark #view-bilan .bilan-student-meta,
body.theme-dark #view-bilan .bilan-pillar-head span,
body.theme-dark #view-bilan .bilan-criterion-head span,
body.theme-dark #view-bilan .bilan-summary-head p,
body.theme-dark #view-bilan .bilan-summary-pill span,
body.theme-dark #view-bilan .bilan-dim-card span {
    color: #ffffff !important;
    opacity: .96;
}

body.theme-dark #view-groupes .radio-option,
body.theme-dark #view-groupes .groupes-choice-card,
body.theme-dark #view-groupes .groupes-summary-card,
body.theme-dark #view-groupes .groupe-card,
body.theme-dark #view-bilan .bilan-pillar,
body.theme-dark #view-bilan .bilan-summary-pill,
body.theme-dark #view-bilan .bilan-dim-card,
body.theme-dark #view-bilan .bilan-chart-shell,
body.theme-dark #view-bilan .bilan-summary-note,
body.theme-dark #view-eleves .data-table,
body.theme-dark #view-eleves .data-table td,
body.theme-dark #view-eleves .data-table th {
    background: #2a2a2a !important;
    border-color: #404040 !important;
}

body.theme-dark #view-eleves .input-search::placeholder,
body.theme-dark #view-eleves .input-text::placeholder,
body.theme-dark #view-groupes .input-text::placeholder,
body.theme-dark #view-bilan .input-text::placeholder,
body.theme-dark #view-bilan textarea::placeholder {
    color: rgba(255,255,255,.78) !important;
}

/* Pépites v3.8.3 — export quiz corrigé, blocs sombres renforcés, boutons verts */
.quiz-inline-import {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.quiz-inline-import > .btn-inline-import,
.quiz-inline-import > .quiz-export-split,
.quiz-inline-import > .btn-inline-export {
    flex: 0 0 auto;
}

.quiz-export-split {
    position: relative;
    display: inline-flex !important;
}

.quiz-format-menu {
    display: grid;
}

.quiz-format-menu[hidden] {
    display: none !important;
}

.import-choice-grid {
    align-items: start;
}

.import-choice-card {
    align-self: start;
}

.quiz-codimd-field {
    display: grid;
    gap: 6px;
    margin-bottom: 0;
}

.quiz-codimd-field > label,
.quiz-import-choice-copy {
    margin: 0;
}

.quiz-assistant-row-codimd {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.quiz-assistant-row-codimd input {
    margin-top: 0;
}

.quiz-import-choice-copy {
    display: block;
    width: 100%;
    max-width: none;
    line-height: 1.45;
}

.btn-primary,
button.primary,
body.theme-dark .btn-primary,
body.theme-dark .nav-btn.active,
body.theme-dark .segmented-btn.active,
body.theme-dark .segmented-btn:hover,
body.theme-dark .activites-tab-btn.active,
body.theme-dark #activites-tab-btn-quiz.active,
body.theme-dark .theme-toggle-btn:hover,
body.theme-dark .mobile-nav-toggle:hover {
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(22, 163, 74, .24) !important;
}

.btn-primary:hover:not(:disabled),
button.primary:hover:not(:disabled),
body.theme-dark .btn-primary:hover:not(:disabled),
body.theme-dark .btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #15803d, #16a34a) !important;
    border-color: #15803d !important;
    color: #ffffff !important;
}

body.theme-dark .quiz-live-card,
body.theme-dark .quiz-live-side-card,
body.theme-dark .quiz-live-main-card,
body.theme-dark .quiz-live-inline-section,
body.theme-dark .quiz-launch-panel,
body.theme-dark .manual-card,
body.theme-dark .quiz-session-summary,
body.theme-dark .quiz-history-card,
body.theme-dark .quiz-history-block,
body.theme-dark .quiz-history-item,
body.theme-dark #quiz-question-panel,
body.theme-dark #quiz-statistics-panel,
body.theme-dark #quiz-scoreboard,
body.theme-dark #quiz-responses-table {
    background: #111111 !important;
    border-color: #2f2f2f !important;
    color: #ffffff !important;
}

body.theme-dark .quiz-history-item *,
body.theme-dark .quiz-live-card *,
body.theme-dark .quiz-launch-panel *,
body.theme-dark .manual-card *,
body.theme-dark .quiz-session-summary *,
body.theme-dark #quiz-question-panel *,
body.theme-dark #quiz-statistics-panel *,
body.theme-dark #quiz-scoreboard * {
    color: #ffffff !important;
}

body.theme-dark .quiz-live-option,
body.theme-dark .quiz-live-option-bar,
body.theme-dark .quiz-countdown-badge,
body.theme-dark .quiz-question-card,
body.theme-dark .quiz-preview-progress,
body.theme-dark .quiz-preview-dot,
body.theme-dark .quiz-end-options-card {
    background: #1a1a1a !important;
    border-color: #303030 !important;
    color: #ffffff !important;
}

body.theme-dark .quiz-history-item small,
body.theme-dark .quiz-history-metrics,
body.theme-dark .quiz-live-header p,
body.theme-dark .quiz-section-head p,
body.theme-dark .quiz-cam-status,
body.theme-dark .quiz-live-option-meta {
    color: #f2f2f2 !important;
}

@media (max-width: 900px) {
    .quiz-assistant-row-codimd {
        grid-template-columns: 1fr;
    }
    .quiz-export-split,
    .quiz-export-split > .btn {
        width: 100%;
    }
}

/* Pépites v2.9.4 — mobile terrain, cartes, agenda, FAB et bottom sheets */
@media (max-width: 900px) {
  button,
  a.btn,
  .btn,
  .btn-icon-sm,
  .eval-star,
  .layout-btn,
  .mode-btn,
  .tab-btn,
  .nav-btn,
  .bottom-nav-btn,
  .modal-close-btn,
  .edt-day-pill,
  .student-card-menu summary,
  .aruco-quick-level,
  input,
  select,
  textarea {
    min-width: 44px;
    min-height: 44px;
  }

  .btn-icon-sm {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .eval-star {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .eleves-table-wrap {
    display: none;
  }

  .eleves-cards-mobile {
    display: grid;
    gap: 12px;
  }

  .student-card-empty {
    padding: 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-align: center;
  }

  .student-mobile-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
  }

  .student-mobile-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .student-mobile-card-head h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary);
  }

  .student-mobile-card-head p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: .82rem;
  }

  .student-mobile-card-scores {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .student-score-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .18);
    font-size: .82rem;
    font-weight: 700;
  }

  .student-score-chip strong,
  .student-score-chip em {
    font-style: normal;
  }

  .student-score-chip.soc { background: var(--soc-light); color: var(--soc-color); }
  .student-score-chip.emo { background: var(--emo-light); color: var(--emo-color); }
  .student-score-chip.cog { background: var(--cog-light); color: var(--cog-color); }

  .student-card-menu {
    position: relative;
  }

  .student-card-menu summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, .08);
    color: var(--primary);
    cursor: pointer;
  }

  .student-card-menu summary::-webkit-details-marker {
    display: none;
  }

  .student-card-menu-list {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 5;
    width: min(220px, 72vw);
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, .24);
    box-shadow: 0 20px 40px rgba(15, 23, 42, .14);
  }

  .edt-grid-wrap {
    overflow: visible;
  }

  .edt-grid {
    display: block !important;
  }

  .edt-mobile-agenda {
    display: grid;
    gap: 12px;
  }

  .edt-mobile-agenda-head {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 10px;
    align-items: center;
  }

  .edt-mobile-agenda-title {
    text-align: center;
    display: grid;
    gap: 2px;
  }

  .edt-mobile-agenda-title strong {
    color: var(--primary);
    font-size: 1rem;
  }

  .edt-mobile-agenda-title span {
    color: var(--text-muted);
    font-size: .8rem;
  }

  .edt-mobile-days-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .edt-day-pill {
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 999px;
    background: #fff;
    color: var(--text-muted);
    font-weight: 700;
    font-size: .78rem;
  }

  .edt-day-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }

  .edt-mobile-agenda-list {
    display: grid;
    gap: 12px;
  }

  .edt-agenda-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
  }

  .edt-agenda-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }

  .edt-agenda-card-head h4 {
    margin: 0;
    color: var(--primary);
    font-size: 1rem;
  }

  .edt-agenda-card-head p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: .82rem;
  }

  .edt-agenda-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .edt-agenda-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .08);
    color: var(--primary);
    font-size: .76rem;
    font-weight: 700;
  }

  .edt-mobile-empty {
    padding: 18px;
    border-radius: 16px;
    text-align: center;
    color: var(--text-muted);
    background: rgba(255,255,255,.88);
    border: 1px dashed rgba(148, 163, 184, .34);
  }

  .pepites-mobile-fab {
    position: fixed;
    right: 16px;
    bottom: calc(96px + var(--safe-bottom));
    z-index: 1200;
    display: grid;
    justify-items: end;
    gap: 12px;
  }

  .pepites-mobile-fab[hidden] {
    display: none;
  }

  .pepites-mobile-fab-actions {
    display: grid;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
  }

  .pepites-mobile-fab.is-open .pepites-mobile-fab-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .pepites-mobile-fab-main,
  .pepites-mobile-fab-action {
    border: none;
    box-shadow: 0 18px 36px rgba(15, 23, 42, .18);
  }

  .pepites-mobile-fab-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 1.2rem;
  }

  .pepites-mobile-fab.is-open .pepites-mobile-fab-main i {
    transform: rotate(45deg);
  }

  .pepites-mobile-fab-main i {
    transition: transform .18s ease;
  }

  .pepites-mobile-fab-action {
    min-height: 48px;
    min-width: 48px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
  }

  .pepites-mobile-fab-action span {
    white-space: nowrap;
  }

  .modal-overlay.active {
    align-items: flex-end;
    padding: 0;
  }

  .modal-box {
    width: 100%;
    max-width: none;
    max-height: min(92vh, calc(var(--app-dvh) - 8px - var(--safe-top)));
    border-radius: 24px 24px 0 0;
    animation: pepitesSheetUp .22s ease-out;
  }

  .modal-header {
    padding-top: 20px;
    position: relative;
  }

  .modal-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 54px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,.52);
  }

  .modal-box.sheet-dragging {
    transition: none !important;
  }

  .modal-body {
    padding: 20px 18px;
  }

  .modal-footer {
    padding: 14px 18px calc(14px + var(--safe-bottom));
    flex-wrap: wrap;
  }

  .modal-footer .btn {
    flex: 1 1 140px;
  }

  #plan-canvas-wrapper,
  #plan-export-area {
    touch-action: none;
  }

  #plan-export-area {
    transition: transform .12s ease-out;
  }

  body.plan-gesture-lock {
    overflow: hidden;
    touch-action: none;
  }

  body.plan-gesture-lock #plan-canvas-wrapper {
    overflow: hidden;
  }

  .aruco-hidden-select {
    display: none;
  }

  .aruco-quick-levels {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .aruco-quick-level {
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 14px;
    background: #fff;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1rem;
  }

  .aruco-quick-level.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }

  .select-styled,
  .input-text,
  .textarea-large,
  input[type="time"],
  input[type="text"],
  input[type="search"],
  input[type="number"] {
    min-height: 48px;
    font-size: 16px;
  }
}

@keyframes pepitesSheetUp {
  from { transform: translateY(100%); opacity: .9; }
  to { transform: translateY(0); opacity: 1; }
}

/* Pépites v2.9.7 — dialogs natifs et cartes swipeables */
dialog.modal-overlay {
  padding: 0;
  border: none;
  background: transparent;
  width: 100%;
  max-width: none;
  max-height: none;
  height: 100%;
  overflow: visible;
}

dialog.modal-overlay::backdrop {
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(4px);
}

dialog.modal-overlay[open] {
  display: flex;
}

@media (max-width: 900px) {
  dialog.modal-overlay[open],
  dialog.modal-overlay.active {
    align-items: flex-end;
    padding: 0;
  }

  .modal-overlay[open] .modal-box {
    width: 100%;
  }

  .student-mobile-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: transparent;
  }

  .student-mobile-card-actions-reveal {
    position: absolute;
    inset: 0 0 0 auto;
    width: 188px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 45%, #ffffff 100%);
  }

  .student-mobile-card-surface {
    position: relative;
    z-index: 2;
    min-height: 100%;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    transition: transform .18s ease;
    will-change: transform;
  }

  .student-mobile-card.is-swipe-open .student-mobile-card-surface {
    box-shadow: -10px 0 24px rgba(15, 23, 42, .12);
  }

  .student-mobile-swipe-action-btn {
    min-height: 44px;
    border-radius: 14px;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(15, 23, 42, .08);
  }
}

/* Pépites v2.9.7 — intégration des badges CPS et contrôle UX mobile final */
.badge-showcase {
  margin-top: 18px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,251,255,.98) 100%);
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(37,99,235,.08);
}

.badge-showcase--compact {
  margin-top: 0;
  padding: 12px 14px;
}

.badge-showcase__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.badge-showcase__title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 800;
}

.badge-showcase__summary {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 700;
}

.badge-showcase__pilier + .badge-showcase__pilier {
  margin-top: 12px;
}

.badge-showcase__pilier-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.badge-showcase__list,
.badge-class-preview,
.badge-class-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cps-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
}

.cps-badge--compact {
  min-height: 30px;
  padding: 4px 10px;
  font-size: .74rem;
}

.cps-badge.soc { background: #e0f9ff; color: #0f766e; }
.cps-badge.emo { background: #fffbeb; color: #b45309; }
.cps-badge.cog { background: #f3f0ff; color: #6d28d9; }

.badge-tier-bronze { border-color: rgba(180, 83, 9, .35); box-shadow: inset 0 0 0 1px rgba(180,83,9,.10); }
.badge-tier-argent { border-color: rgba(100, 116, 139, .4); box-shadow: inset 0 0 0 1px rgba(100,116,139,.10); }
.badge-tier-or { border-color: rgba(202, 138, 4, .42); box-shadow: inset 0 0 0 1px rgba(202,138,4,.12); }
.badge-tier-diamant { border-color: rgba(37, 99, 235, .35); box-shadow: inset 0 0 0 1px rgba(37,99,235,.10); }

.badge-showcase--empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  color: var(--text-muted);
  min-height: 112px;
}

.badge-showcase__empty-inline {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(148,163,184,.12);
  color: var(--text-muted);
  font-size: .74rem;
  font-weight: 700;
}

.badge-class-overview {
  margin-top: 18px;
}

.badge-class-overview--empty {
  display: grid;
  gap: 8px;
}

.badge-class-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.badge-class-kpi {
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border: 1px solid rgba(148,163,184,.18);
}

.badge-class-kpi span {
  display: block;
  color: var(--text-muted);
  font-size: .78rem;
}

.badge-class-kpi strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
  color: var(--primary);
}

.badge-class-leaderboard {
  display: grid;
  gap: 12px;
}

.badge-class-student {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(255,255,255,.9);
}

.badge-class-student-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.badge-class-total {
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 700;
}

.badge-class-inline {
  margin-top: 6px;
}

.student-mobile-badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.student-mobile-badge-count,
.student-mobile-badge-empty,
.student-mobile-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
}

.student-mobile-badge-count {
  background: rgba(37,99,235,.10);
  color: var(--primary);
}

.student-mobile-badge-empty {
  background: rgba(148,163,184,.12);
  color: var(--text-muted);
}

.student-mobile-badge-pill.soc { background: #e0f9ff; color: #0f766e; }
.student-mobile-badge-pill.emo { background: #fffbeb; color: #b45309; }
.student-mobile-badge-pill.cog { background: #f3f0ff; color: #6d28d9; }

@media (max-width: 900px) {
  .badge-showcase {
    padding: 14px;
    border-radius: 18px;
  }

  .badge-showcase__summary {
    width: 100%;
  }

  .badge-class-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .badge-class-student-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-mobile-badge-strip {
    gap: 6px;
  }

  .student-mobile-badge-pill {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Pépites v3.8.3 — référentiel des badges et versioning global */
@media (max-width: 900px) {
  .eleves-cards-mobile {
    gap: 10px;
  }

  .student-mobile-card-surface {
    padding: 12px 12px 11px;
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  }

  .student-mobile-card-head {
    gap: 10px;
    margin-bottom: 10px;
  }

  .student-mobile-card-head h4 {
    font-size: 1.03rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #0f3b8c;
  }

  .student-mobile-card-head p {
    margin-top: 5px;
    font-size: .78rem;
    line-height: 1.4;
    color: #475569;
  }

  .student-mobile-card-head p strong {
    color: #0f172a;
    font-size: .92rem;
  }

  .student-mobile-card-scores {
    gap: 7px;
  }

  .student-score-chip {
    padding: 9px 11px;
    border-radius: 13px;
    font-size: .79rem;
    letter-spacing: -.01em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
  }

  .student-score-chip strong {
    opacity: .92;
  }

  .student-score-chip em {
    font-size: .86rem;
    font-weight: 800;
  }

  .student-mobile-badge-strip {
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(148,163,184,.16);
  }

  .student-mobile-badge-count,
  .student-mobile-badge-empty,
  .student-mobile-badge-pill {
    min-height: 30px;
    padding: 4px 9px;
    font-size: .72rem;
    line-height: 1.15;
  }

  .student-mobile-badge-count {
    background: linear-gradient(180deg, rgba(37,99,235,.12), rgba(37,99,235,.08));
    color: #1847a5;
    border: 1px solid rgba(37,99,235,.14);
  }

  .student-mobile-badge-empty {
    background: rgba(148,163,184,.12);
    color: #64748b;
    border: 1px dashed rgba(148,163,184,.22);
  }

  .student-mobile-badge-pill {
    border: 1px solid rgba(255,255,255,.55);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
    max-width: calc(100vw - 126px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .student-mobile-badge-pill.soc { background: #dff7f8; color: #0f766e; }
  .student-mobile-badge-pill.emo { background: #fff6db; color: #a16207; }
  .student-mobile-badge-pill.cog { background: #f1ebff; color: #6d28d9; }

  .badge-showcase {
    padding: 14px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(37,99,235,.08);
  }

  .badge-showcase__header {
    gap: 8px;
    margin-bottom: 10px;
  }

  .badge-showcase__title-wrap {
    font-size: .92rem;
    line-height: 1.2;
  }

  .badge-showcase__summary {
    gap: 6px;
    font-size: .76rem;
  }

  .badge-showcase__pilier-title {
    margin-bottom: 7px;
    font-size: .73rem;
    letter-spacing: .05em;
  }

  .badge-showcase__list,
  .badge-class-preview,
  .badge-class-inline {
    gap: 6px;
  }

  .cps-badge {
    min-height: 32px;
    padding: 5px 10px;
    font-size: .73rem;
    letter-spacing: -.005em;
  }

  .cps-badge--compact {
    min-height: 28px;
    padding: 4px 9px;
    font-size: .7rem;
  }

  .badge-class-kpis {
    gap: 10px;
  }

  .badge-class-kpi {
    padding: 11px 12px;
    border-radius: 14px;
  }

  .badge-class-kpi span {
    font-size: .74rem;
  }

  .badge-class-kpi strong {
    font-size: 1.08rem;
  }

  .badge-class-student {
    padding: 11px 12px;
    border-radius: 14px;
  }

  .app-bottom-nav {
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(241,245,249,.96));
    box-shadow: 0 14px 34px rgba(15,23,42,.16), inset 0 1px 0 rgba(255,255,255,.96);
  }

  .bottom-nav-btn {
    min-height: 56px;
    gap: 4px;
  }

  .bottom-nav-btn span {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .01em;
  }

  .bottom-nav-btn i {
    font-size: 1.08rem;
  }

  .app-bottom-nav .bottom-nav-btn.active {
    color: #0f3b8c;
  }

  .pepites-mobile-fab-main {
    box-shadow: 0 14px 30px rgba(37,99,235,.28);
  }

  body.platform-ios .app-bottom-nav {
    background: linear-gradient(180deg, rgba(255,255,255,.84), rgba(247,250,252,.78));
    border-color: rgba(255,255,255,.55);
    box-shadow: 0 18px 42px rgba(15,23,42,.14), inset 0 1px 0 rgba(255,255,255,.92);
  }

  body.platform-ios .student-mobile-card-surface,
  body.platform-ios .badge-showcase,
  body.platform-ios .badge-class-student {
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,255,.96));
  }

  body.platform-ios .student-mobile-badge-count {
    background: linear-gradient(180deg, rgba(37,99,235,.14), rgba(37,99,235,.09));
    color: #103e9d;
  }

  body.platform-android .app-bottom-nav {
    background: linear-gradient(180deg, #ffffff, #eef2f8);
    border-color: rgba(15,23,42,.08);
    box-shadow: 0 12px 28px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.82);
  }

  body.platform-android .student-mobile-card-surface,
  body.platform-android .badge-showcase,
  body.platform-android .badge-class-student,
  body.platform-android .student-card-menu-list {
    border-color: rgba(15,23,42,.08);
  }

  body.platform-android .student-mobile-card-head h4,
  body.platform-android .app-bottom-nav .bottom-nav-btn.active {
    color: #0b3a89;
  }
}

/* Pépites v3.8.3 — historique des badges intégrés dans le Bilan et exports */
.bilan-badges-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, .18);
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(239,246,255,.94));
    color: #0f172a;
    font-weight: 700;
    cursor: pointer;
}

.bilan-badges-toggle input {
    accent-color: #003189;
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
}

.bilan-badges-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bilan-badge-summary-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(37, 99, 235, .08);
    border: 1px solid rgba(37, 99, 235, .14);
    color: #1e3a8a;
    font-weight: 600;
}

.bilan-badge-summary-inline.is-muted {
    background: rgba(148, 163, 184, .12);
    border-color: rgba(148, 163, 184, .22);
    color: #475569;
}

.bilan-badge-section {
    margin: 16px 0 0;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
    border: 1px solid rgba(203, 213, 225, .9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.bilan-badge-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.bilan-badge-section-head strong,
.bilan-badge-section-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bilan-badge-section-head span {
    color: #475569;
    font-weight: 700;
}

.bilan-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bilan-export-badge-item {
    max-width: 100%;
}

@media (max-width: 900px) {
    .bilan-badges-toggle {
        width: 100%;
        justify-content: center;
    }

    .bilan-badge-section {
        padding: 12px 12px 10px;
        border-radius: 16px;
    }

    .bilan-badge-list {
        gap: 8px;
    }

    .bilan-export-badge-item {
        font-size: .82rem;
    }
}

body.theme-dark .bilan-badges-toggle {
    background: rgba(30, 41, 59, .88);
    border-color: rgba(96, 165, 250, .18);
    color: #f8fafc;
}

body.theme-dark .bilan-badge-summary-inline {
    background: rgba(37, 99, 235, .14);
    border-color: rgba(96, 165, 250, .18);
    color: #dbeafe;
}

body.theme-dark .bilan-badge-summary-inline.is-muted {
    background: rgba(51, 65, 85, .72);
    border-color: rgba(100, 116, 139, .26);
    color: #cbd5e1;
}

body.theme-dark .bilan-badge-section {
    background: rgba(15, 23, 42, .82);
    border-color: rgba(71, 85, 105, .85);
    box-shadow: 0 12px 28px rgba(2, 6, 23, .34);
}

body.theme-dark .bilan-badge-section-head span {
    color: #cbd5e1;
}

/* Pépites v3.8.3 — onglet référentiel des badges : finition livret pédagogique + exports dédiés */
#view-bilan .bilan-toolbar {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

#view-bilan .bilan-summary-card,
#view-bilan .bilan-students-list {
    width: min(100%, 1040px);
    margin-left: auto;
    margin-right: auto;
}

#view-bilan .bilan-badge-referential-card {
    width: min(100%, 1240px);
    margin-left: auto;
    margin-right: auto;
}

.bilan-toolbar {
    padding: 18px;
    border-radius: 24px;
    display: grid;
    gap: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.98));
    border: 1px solid rgba(0,49,137,.08);
    box-shadow: 0 16px 38px rgba(15,23,42,.06);
}

.bilan-toolbar-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.bilan-tabbar {
    width: 100%;
    max-width: 100%;
}

.bilan-reports-controls {
    display: block;
}

.bilan-reports-controls.is-badge-tab {
    align-items: center;
}

.bilan-report-filters {
    flex: 1 1 720px;
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(240px, 1fr) auto;
    grid-template-areas:
        "period period period"
        "select select toggle";
    gap: 12px;
    align-items: center;
}

.bilan-report-filters[hidden] {
    display: none !important;
}

.bilan-period-control {
    grid-area: period;
}

#bilan-eleve-select {
    grid-area: select;
    width: 100%;
}

.bilan-badges-toggle {
    grid-area: toggle;
    justify-self: start;
}

.bilan-toolbar-actions {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
    margin-left: auto;
    width: auto;
}

.bilan-toolbar-actions:empty {
    display: none;
}

.bilan-toolbar-actions .export-actions,
.bilan-toolbar-actions .bilan-inline-link-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.bilan-inline-export-actions,
.bilan-inline-link-actions {
    align-items: center;
}

.bilan-badge-referential-card {
    padding: 24px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98)),
        repeating-linear-gradient(0deg, rgba(203,213,225,.08), rgba(203,213,225,.08) 1px, transparent 1px, transparent 28px);
    border: 1px solid rgba(0,49,137,.08);
    box-shadow: 0 18px 44px rgba(15,23,42,.08);
}

.bilan-ref-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}

.bilan-ref-hero-full {
    width: 100%;
}

.bilan-ref-hero-copy,
.bilan-ref-hero-side {
    border-radius: 22px;
    border: 1px solid rgba(148,163,184,.18);
    background: rgba(255,255,255,.88);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 10px 28px rgba(15,23,42,.05);
}

.bilan-ref-hero-copy {
    padding: 20px 22px;
}

.bilan-ref-hero-copy-full {
    width: 100%;
    min-height: 0;
}

.bilan-ref-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 11px;
    border-radius: 999px;
    margin-bottom: 10px;
    background: rgba(30,64,175,.08);
    border: 1px solid rgba(30,64,175,.12);
    color: #1d4ed8;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bilan-ref-hero h3 {
    margin-bottom: 8px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1.35rem, 2vw, 1.65rem);
}

.bilan-ref-hero p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 100%;
}

.bilan-ref-hero-subtitle {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.bilan-ref-hero-indicators {
    margin-top: 12px !important;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(30,64,175,.07);
    border: 1px solid rgba(30,64,175,.12);
    color: #1e3a8a;
    line-height: 1.65;
}

.bilan-ref-hero-indicators strong {
    color: inherit;
}

.bilan-ref-hero-side {
    padding: 18px;
    background: linear-gradient(180deg, rgba(239,246,255,.92), rgba(255,255,255,.94));
}

.bilan-ref-tier-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
}

.bilan-ref-editorial-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 20px;
}

.bilan-ref-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(0,49,137,.07), rgba(30,64,175,.04));
    border: 1px solid rgba(0,49,137,.08);
    color: #1e3a8a;
    font-weight: 600;
    line-height: 1.6;
}

.bilan-ref-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.bilan-ref-guide-card {
    border-radius: 18px;
    padding: 16px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(148,163,184,.18);
    box-shadow: 0 10px 24px rgba(15,23,42,.05);
}

.bilan-ref-guide-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.bilan-ref-guide-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-bottom: 10px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 800;
}

.bilan-ref-booklet {
    display: grid;
    gap: 22px;
}

.bilan-ref-pilier {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(148,163,184,.16);
    background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.96));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 12px 28px rgba(15,23,42,.04);
}

.bilan-ref-pilier-head {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    gap: 16px;
    align-items: start;
}

.bilan-ref-section-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
    background: rgba(15,23,42,.05);
    color: var(--text-main);
    font-size: .8rem;
    font-weight: 700;
}

.bilan-ref-pilier-head h3 {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bilan-ref-pilier-head p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.bilan-ref-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.bilan-ref-card {
    border-radius: 22px;
    border: 1px solid rgba(148,163,184,.18);
    background: rgba(255,255,255,.94);
    padding: 16px;
    display: grid;
    gap: 12px;
    box-shadow: 0 10px 28px rgba(15,23,42,.05);
}

.bilan-ref-card.soc { background: linear-gradient(180deg, rgba(8,145,178,.08), rgba(255,255,255,.96)); }
.bilan-ref-card.emo { background: linear-gradient(180deg, rgba(217,119,6,.08), rgba(255,255,255,.96)); }
.bilan-ref-card.cog { background: linear-gradient(180deg, rgba(124,58,237,.08), rgba(255,255,255,.96)); }

.bilan-ref-card-kicker {
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin-bottom: 6px;
}

.bilan-ref-card-head h4 {
    margin-bottom: 4px;
    color: var(--text-main);
}

.bilan-ref-card-head span {
    color: var(--text-muted);
    line-height: 1.58;
}

.bilan-ref-card-note {
    display: block;
    margin-top: 8px;
    color: #475569;
    line-height: 1.58;
    font-size: .94rem;
}

.bilan-ref-levels {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.bilan-ref-level {
    border-radius: 16px;
    padding: 12px 13px;
    border: 1px solid rgba(148,163,184,.18);
    background: rgba(255,255,255,.9);
}

.bilan-ref-level-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    color: var(--text-main);
    flex-wrap: wrap;
}

.bilan-ref-tier-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 800;
    border: 1px solid rgba(148,163,184,.22);
    background: rgba(255,255,255,.96);
}

.bilan-ref-level p {
    margin: 0 0 6px;
    color: var(--text-muted);
    line-height: 1.58;
}

.bilan-ref-level small {
    display: block;
    color: #64748b;
    line-height: 1.45;
}

@media (max-width: 1100px) {
    .bilan-ref-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bilan-report-filters {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "period period"
            "select toggle";
    }

    .bilan-toolbar-top {
        grid-template-columns: 1fr;
    }

    .bilan-toolbar-actions,
    .bilan-toolbar-actions .export-actions,
    .bilan-toolbar-actions .bilan-inline-link-actions {
        justify-content: flex-start;
    }

    .bilan-ref-hero,
    .bilan-ref-editorial-grid,
    .bilan-ref-pilier-head {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .bilan-toolbar {
        padding: 14px;
        gap: 14px;
    }

    .bilan-toolbar-top,
    .bilan-tabbar,
    .bilan-period-control,
    .bilan-report-filters,
    .bilan-toolbar-actions,
    .bilan-toolbar-actions .export-actions,
    .bilan-toolbar-actions .bilan-inline-link-actions,
    .bilan-badges-toggle {
        width: 100%;
    }

    .bilan-toolbar-top,
    .bilan-reports-controls {
        align-items: stretch;
    }

    .bilan-report-filters {
        grid-template-columns: 1fr;
        grid-template-areas:
            "period"
            "select"
            "toggle";
    }

    .bilan-toolbar-actions,
    .bilan-toolbar-actions .export-actions,
    .bilan-toolbar-actions .bilan-inline-link-actions {
        justify-content: flex-start;
    }

    .bilan-ref-guide-grid,
    .bilan-ref-grid {
        grid-template-columns: 1fr;
    }

    .bilan-badge-referential-card {
        padding: 18px;
        border-radius: 22px;
    }
}

body.theme-dark #view-bilan .bilan-toolbar,
body.theme-dark #view-bilan .bilan-badge-referential-card {
    background: rgba(15, 23, 42, .88);
    border-color: rgba(71, 85, 105, .78);
    box-shadow: 0 18px 40px rgba(2, 6, 23, .34);
}

body.theme-dark .bilan-ref-hero-copy,
body.theme-dark .bilan-ref-hero-side,
body.theme-dark .bilan-ref-guide-card,
body.theme-dark .bilan-ref-pilier,
body.theme-dark .bilan-ref-card,
body.theme-dark .bilan-ref-level {
    background: rgba(30, 41, 59, .86);
    border-color: rgba(71, 85, 105, .78);
}

body.theme-dark .bilan-ref-kicker,
body.theme-dark .bilan-ref-guide-index,
body.theme-dark .bilan-ref-note {
    background: rgba(37,99,235,.14);
    border-color: rgba(96,165,250,.18);
    color: #dbeafe;
}

body.theme-dark .bilan-ref-section-chip {
    background: rgba(51,65,85,.78);
    color: #e2e8f0;
}

body.theme-dark .bilan-ref-intro p,
body.theme-dark .bilan-ref-card-head span,
body.theme-dark .bilan-ref-card-note,
body.theme-dark .bilan-ref-level p,
body.theme-dark .bilan-ref-guide-card p,
body.theme-dark .bilan-ref-pilier-head p,
body.theme-dark .bilan-ref-level small {
    color: #cbd5e1;
}

body.theme-dark .bilan-ref-hero-subtitle {
    color: #f8fafc;
}

body.theme-dark .bilan-ref-hero-indicators {
    background: rgba(37,99,235,.16);
    border-color: rgba(96,165,250,.22);
    color: #dbeafe;
}

body.theme-dark .bilan-ref-tier-chip {
    background: rgba(51, 65, 85, .88);
    border-color: rgba(96, 165, 250, .18);
    color: #f8fafc;
}

/* Pépites v3.8.3 — référentiel sans doublons et plan de classe compact restauré */
.badge-medal {
  display: block;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border-radius: 18px;
  background-repeat: no-repeat;
  background-size: 400% 1200%;
  background-color: rgba(255,255,255,.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 18px rgba(15,23,42,.08);
}

.bilan-badge-list-rich {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.bilan-badge-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(148,163,184,.18);
}

.bilan-badge-card.no-illustration {
  display: block;
  padding: 14px 15px;
}

.bilan-badge-medal { margin-top: 2px; }

.bilan-badge-card-copy strong,
.bilan-ref-level-body strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-main);
}

.bilan-badge-card-copy span {
  display: block;
  color: #475569;
  font-size: .84rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.bilan-badge-card-copy p,
.bilan-ref-level-body p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.bilan-ref-level {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.bilan-ref-medal {
  width: 70px;
  height: 70px;
  flex-basis: 70px;
  border-radius: 16px;
}

.bilan-ref-level-body {
  min-width: 0;
}

@media (max-width: 900px) {
  .badge-medal { width: 68px; height: 68px; flex-basis: 68px; }
  .bilan-badge-card { grid-template-columns: 68px minmax(0, 1fr); }
  .bilan-badge-card.no-illustration { display: block; }
  .bilan-ref-level { grid-template-columns: 62px minmax(0, 1fr); }
  .bilan-ref-medal { width: 62px; height: 62px; flex-basis: 62px; }
}

body.theme-dark .badge-medal,
body.theme-dark .bilan-badge-card {
  background-color: rgba(30,41,59,.9);
  border-color: rgba(71,85,105,.82);
}

/* v3.8.3 — étapes quiz, banque de questions et options de séance */
.bilan-ref-level.no-illustration {
    display: block;
    padding: 14px 15px;
}

.bilan-ref-pdf-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px !important;
}

.bilan-badge-card.no-illustration .bilan-badge-card-copy strong {
  margin-bottom: 2px;
}

.bilan-badge-card.no-illustration .bilan-badge-card-copy span {
  margin-bottom: 5px;
}

/* v3.8.3 — correctifs lisibilité mode sombre ciblés */
body.theme-dark #view-groupes .coverage-card {
    border-color: #475569 !important;
    color: #f8fafc !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

body.theme-dark #view-groupes .coverage-card.success {
    background: linear-gradient(180deg, #14532d, #166534) !important;
    border-color: #22c55e !important;
}

body.theme-dark #view-groupes .coverage-card.warning {
    background: linear-gradient(180deg, #78350f, #92400e) !important;
    border-color: #f59e0b !important;
}

body.theme-dark #view-groupes .coverage-card.neutral {
    background: linear-gradient(180deg, #1e293b, #0f172a) !important;
    border-color: #64748b !important;
}

body.theme-dark #view-groupes .coverage-value,
body.theme-dark #view-groupes .coverage-label,
body.theme-dark #view-groupes .groupes-help-text {
    color: #f8fafc !important;
}

body.theme-dark #view-plan .layout-selector {
    background: #0f172a !important;
    border: 1px solid #334155;
}

body.theme-dark #view-plan .layout-btn {
    background: #111827 !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(71,85,105,.85);
}

body.theme-dark #view-plan .layout-btn.active {
    background: linear-gradient(180deg, #16a34a, #166534) !important;
    color: #f0fdf4 !important;
    border-color: #22c55e !important;
    box-shadow: 0 10px 24px rgba(22,101,52,.32) !important;
}

body.theme-dark #view-plan #plan-btn-lock {
    background: linear-gradient(180deg, #b91c1c, #991b1b) !important;
    color: #fef2f2 !important;
    border-color: #ef4444 !important;
    box-shadow: 0 10px 22px rgba(153,27,27,.28);
}

body.theme-dark #view-plan #plan-btn-lock.active {
    background: linear-gradient(180deg, #dc2626, #991b1b) !important;
    color: #ffffff !important;
    border-color: #f87171 !important;
}

body.theme-dark #view-plan #plan-btn-lock i {
    color: inherit !important;
}

body.theme-dark #view-bilan .student-bilan-card {
    background: #111827 !important;
    border-color: #374151 !important;
}

body.theme-dark #view-bilan .bilan-pillar {
    background: #0f172a !important;
    border-color: #334155 !important;
}

body.theme-dark #view-bilan .bilan-pillar.cog .bilan-pillar-head {
    background: linear-gradient(180deg, #4c1d95, #3b0764) !important;
    border-bottom-color: rgba(196,181,253,.4) !important;
}

body.theme-dark #view-bilan .bilan-pillar.soc .bilan-pillar-head {
    background: linear-gradient(180deg, #155e75, #164e63) !important;
    border-bottom-color: rgba(103,232,249,.4) !important;
}

body.theme-dark #view-bilan .bilan-pillar.emo .bilan-pillar-head {
    background: linear-gradient(180deg, #9a3412, #7c2d12) !important;
    border-bottom-color: rgba(253,186,116,.4) !important;
}

body.theme-dark #view-bilan .bilan-pillar-head h3,
body.theme-dark #view-bilan .bilan-pillar-head h3 i,
body.theme-dark #view-bilan .bilan-pillar-head span {
    color: #f8fafc !important;
}

body.theme-dark #view-historique .history-eval-card {
    background: #111827 !important;
    border-color: #334155 !important;
    box-shadow: 0 10px 24px rgba(2,6,23,.22);
}

body.theme-dark #view-historique .history-eval-card.is-teacher {
    background: linear-gradient(180deg, #1e293b, #0f172a) !important;
    border-left: 4px solid #60a5fa !important;
}

body.theme-dark #view-historique .history-eval-card.is-self {
    background: linear-gradient(180deg, #1f2937, #111827) !important;
    border-left: 4px solid #34d399 !important;
}

body.theme-dark #view-historique .history-eval-head strong,
body.theme-dark #view-historique .history-eval-head span,
body.theme-dark #view-historique .history-eval-note {
    color: #f8fafc !important;
}

/* v3.8.3 — bascule stricte des modes d'import quiz et lisibilité projection */
.quiz-ai-doc-hint {
    margin: 2px 0 0;
}

.quiz-launch-duration-field > label i {
    margin-right: 6px;
}

.quiz-import-assistant[data-active-source="ai"] [data-import-alternatives="quiz"] {
    display: none !important;
}

.quiz-import-assistant[data-active-source="structured"] [data-import-source-card="ai"],
.quiz-import-assistant[data-active-source="codimd"] [data-import-source-card="ai"] {
    opacity: .82;
}

.quiz-import-assistant[data-active-source="structured"] [data-import-source-card="ai"] .quiz-ai-help,
.quiz-import-assistant[data-active-source="structured"] [data-import-source-card="ai"] .quiz-ai-grid,
.quiz-import-assistant[data-active-source="structured"] [data-import-source-card="ai"] .quiz-ai-document-field,
.quiz-import-assistant[data-active-source="structured"] [data-import-source-card="ai"] .quiz-assistant-actions,
.quiz-import-assistant[data-active-source="structured"] [data-import-source-card="ai"] #quiz-ai-status,
.quiz-import-assistant[data-active-source="codimd"] [data-import-source-card="ai"] .quiz-ai-help,
.quiz-import-assistant[data-active-source="codimd"] [data-import-source-card="ai"] .quiz-ai-grid,
.quiz-import-assistant[data-active-source="codimd"] [data-import-source-card="ai"] .quiz-ai-document-field,
.quiz-import-assistant[data-active-source="codimd"] [data-import-source-card="ai"] .quiz-assistant-actions,
.quiz-import-assistant[data-active-source="codimd"] [data-import-source-card="ai"] #quiz-ai-status {
    display: none !important;
}

.quiz-import-assistant[data-active-source="structured"] [data-import-source-card="ai"] .quiz-ai-field,
.quiz-import-assistant[data-active-source="codimd"] [data-import-source-card="ai"] .quiz-ai-field {
    min-height: 0;
}

/* v3.8.3 — lisibilité du quiz en direct en mode clair + guide quiz IA */
#quiz-question-panel h4,
.quiz-progress-head h4,
.quiz-table-head h4 {
    color: #111111;
}

body.theme-dark #quiz-question-panel h4,
body.theme-dark .quiz-progress-head h4,
body.theme-dark .quiz-table-head h4 {
    color: #ffffff !important;
}

/* v3.8.3 — structuration en 3 étapes et options de séance */
.quiz-step-strip{display:flex;flex-wrap:wrap;gap:10px;margin:6px 0 16px}.quiz-bank-actions,.quiz-session-options{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 10px}.quiz-option-chip{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid #dbe4f3;border-radius:999px;background:#fff;font-weight:700}.quiz-option-chip input{margin:0}.quiz-bank-actions .btn{min-width:0}body.theme-dark .quiz-option-chip{background:rgba(15,23,42,.9);border-color:rgba(148,163,184,.22);color:#e2e8f0}

/* Lot 2 — élève/projecteur/diagnostic */
.pepites-student-answer[disabled] {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none !important;
}
.pepites-student-answer[data-selected="1"] {
    outline: 3px solid rgba(0, 49, 137, 0.25);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.pepites-student-status.is-warning {
    background: rgba(217, 119, 6, 0.12);
    color: #92400e;
}
.pepites-student-status.is-info {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}
.quiz-supervisor-status {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
}
.quiz-supervisor-status.is-online { color: #047857; }
.quiz-supervisor-status.is-offline { color: #b45309; }
.quiz-supervisor-status.is-duplicate { color: #b91c1c; }
.quiz-supervisor-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* v3.8.3 — Étape 3 : contenu réparti sur toute la largeur sous les consignes */
.quiz-launch-card .quiz-launch-grid { display:flex; flex-direction:column; width:100%; gap:16px; }
.quiz-launch-card .quiz-launch-grid > div, .quiz-launch-card .quiz-launch-panel { width:100%; max-width:none; }
.quiz-launch-card .quiz-launch-grid .quiz-guide-list { width:100%; margin:0; }

/* v3.8.3 — bouton Salon Tchap du Guide */
.guide-tchap-btn{display:inline-flex!important;align-items:center;gap:8px;padding:8px 14px;}
.guide-tchap-btn .tchap-logo{width:22px;height:22px;object-fit:contain;border-radius:4px;background:#fff;padding:2px;}

/* Pépites v3.8.3 — bureau professeur : centre haut + poignée de rotation continue */
#plan-export-area .teacher-desk {
    position: absolute;
    top: 24px;
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
    z-index: 8;
}
#plan-export-area .teacher-desk-rotate {
    cursor: ew-resize;
    touch-action: none;
}

/* v3.8.3 — compact U tables so 30 places fit without overlap */
#plan-classroom.mode-u .seat { width: 44px; }
#plan-classroom.mode-u .table-block.table-vertical .seat { width: 44px; }

/* v3.8.3 — Tutoriel du Guide : blocs numérotés façon Live Quiz */
.lq-tutorial{display:flex;flex-direction:column;gap:1.15rem;margin-top:1.1rem}
.lq-step{display:flex;gap:1.1rem;align-items:flex-start;background:linear-gradient(180deg,#f0f7ff 0%,#e6f0fe 100%);border:1px solid #c7dbef;border-left:8px solid #2563eb;border-radius:14px;padding:1.15rem 1.35rem;box-shadow:0 1px 3px rgba(16,24,40,.06);background:linear-gradient(180deg,#f0f7ff 0%,#e6f0fe 100%);border:1px solid #c7dbef;border-left:8px solid #2563eb;border-radius:14px;padding:1.15rem 1.35rem;box-shadow:0 1px 3px rgba(16,24,40,.06)}
.lq-step-num{flex:0 0 3.1rem;display:flex;align-items:center;justify-content:center;width:3.1rem;height:3.1rem;border-radius:12px;background:#4f46e5;color:#ffffff;font-weight:800;font-size:1.4rem;line-height:1;margin-top:.15rem}
.lq-step-content{flex:1;min-width:0}
.lq-step-content h3{margin:0 0 .45rem;font-size:1.08rem;color:#1e293b}
.lq-step-content ul{margin:0;padding-left:1.15rem;color:#334155}
.lq-step-content li{margin:.3rem 0}

/* thème sombre : piloté par l’application, plus par le système */
body.theme-dark .lq-step {background:#1e293b;border-color:#334155}body.theme-dark .lq-step-content h3 {color:#f1f5f9}body.theme-dark .lq-step-content ul {color:#cbd5e1}

/* v3.8.3 — Tutoriel du Guide : structure façon Live Quiz (bandeau bleu + emoji) */
.lq-tutorial-head{padding:1.1rem 1.3rem 0;display:grid;gap:.3rem}
.lq-tutorial-head h3{margin:0;color:#1e293b;font-size:1.18rem;display:flex;align-items:center;gap:.5rem}
.lq-tutorial-head p{margin:0 0 .4rem;color:#475569;line-height:1.45}
.lq-tutorial{display:flex;flex-direction:column;gap:1.15rem;margin-top:1.1rem}
.lq-step{display:flex;gap:1.1rem;align-items:flex-start;background:linear-gradient(180deg,#f0f7ff 0%,#e6f0fe 100%);border:1px solid #c7dbef;border-left:8px solid #2563eb;border-radius:14px;padding:1.15rem 1.35rem;box-shadow:0 1px 3px rgba(16,24,40,.06);
         background:#ffffff;border:1px solid #dbe3ef;
         border-left:8px solid #2563eb;border-radius:14px;
         padding:1.1rem 1.3rem;
         box-shadow:0 1px 3px rgba(16,24,40,.06)}
.lq-step-num{flex:0 0 3.1rem;display:flex;align-items:center;
             justify-content:center;width:3.1rem;height:3.1rem;
             border-radius:12px;background:#2563eb;color:#ffffff;
             font-weight:800;font-size:1.4rem;line-height:1;
             margin-top:.15rem}
.lq-step-content{flex:1;min-width:0}
.lq-step-content h3{margin:0 0 .55rem;font-size:1.08rem;color:#1e293b;display:flex;align-items:center;gap:.5rem}
.lq-emoji-list{list-style:none;padding:0;margin:0}
.lq-emoji-list li{display:flex;gap:.65rem;align-items:flex-start;
                  margin:.35rem 0;color:#334155;line-height:1.4}
.lq-emoji{display:inline-block;font-size:1.15rem;width:1.6rem;
          text-align:center;flex:0 0 1.6rem;line-height:1.4}

/* thème sombre : piloté par l’application, plus par le système */

  body.theme-dark .lq-step {background:#1e293b;border-color:#334155;border-left-color:#3b82f6}
  body.theme-dark .lq-step-content h3 {color:#f1f5f9}
  body.theme-dark .lq-tutorial-head h3 {color:#f1f5f9}
  body.theme-dark .lq-tutorial-head p {color:#cbd5e1}
  body.theme-dark .lq-emoji-list li {color:#cbd5e1}


/* === v3.8.3 : guide en couleur claire type live-quiz.forge.apps.education.fr === */
.lq-step{background:linear-gradient(180deg,#f0f7ff 0%,#e6f0fe 100%)!important;border:1px solid #c7dbef!important;border-left:8px solid #2563eb!important;border-radius:14px!important;padding:1.15rem 1.35rem!important}
.lq-tutorial-head{background:linear-gradient(180deg,#ffffff 0%,#f0f7ff 100%)!important;border:1px solid #c7dbef!important;border-radius:14px!important;padding:1.1rem 1.3rem!important}
.lq-step-num{background:linear-gradient(135deg,#2563eb,#60a5fa)!important;color:#ffffff!important}
body[data-theme="dark"] .lq-step{background:linear-gradient(180deg,#0f1f3a 0%,#16294f 100%)!important;border-color:#334155!important;border-left-color:#3b82f6!important}
body[data-theme="dark"] .lq-tutorial-head{background:linear-gradient(180deg,#0b1220 0%,#0f1f3a 100%)!important;border-color:#334155!important}

/* === v3.8.3 : texte du Guide en couleur foncée (corrige texte invisible) === */
:root {
  --g2g-text-fonce: #0f172a;
  --g2g-text-fonce-soft: #1e293b;
  --g2g-text-muted: #475569;
}
.lq-step-content,
.lq-step-content h3,
.lq-step-content p,
.lq-step-content ul,
.lq-step-content ol,
.lq-step-content li,
.lq-step-content strong,
.lq-step-content b,
.lq-step-content span { color: var(--g2g-text-fonce) !important; }
.lq-step-content h3 { color: var(--g2g-text-fonce-soft) !important; }
.lq-step-content em { color: var(--g2g-text-fonce) !important; font-style: italic; }
.row-tools span { color: var(--g2g-text-fonce) !important; background: #ffffff !important; border:1px solid #c7dbef !important; }
body[data-theme="dark"] .lq-step-content,
body[data-theme="dark"] .lq-step-content h3,
body[data-theme="dark"] .lq-step-content p,
body[data-theme="dark"] .lq-step-content ul,
body[data-theme="dark"] .lq-step-content li,
body[data-theme="dark"] .row-tools span { color:#f1f5f9 !important; background:#1e293b !important; border-color:#334155 !important; }

/* v3.8.3 \u2014 Guide centr\u00e9 + \u00e9troit comme live-quiz.forge.apps.education.fr */
.guide-shell .lq-tutorial{max-width:880px;margin:0 auto;}
.guide-shell .lq-step{max-width:880px;margin-left:auto;margin-right:auto;width:auto;}
/* v3.8.3 \u2014 mode nuit tranche gris fonc\u00e9 */
body.theme-dark .lq-step{
  background:#343a40!important;
  border-color:#4b5563!important;
  border-left-color:#60a5fa!important;
  color:#f8fafc!important;
}
body.theme-dark .lq-step-content, body.theme-dark .lq-step-content h3, body.theme-dark .lq-step-content p, body.theme-dark .lq-step-content ul, body.theme-dark .lq-step-content li, body.theme-dark .lq-step-content strong{color:#f8fafc!important;}

/* v3.8.3 - Guide : largeur commune (celle de l'etape la plus large), blocs centred, texte aligne a gauche */
.guide-shell .lq-tutorial{width:fit-content;max-width:100%;margin-left:auto;margin-right:auto;align-items:stretch;}
.guide-shell .lq-step{width:100%;box-sizing:border-box;margin-left:0;margin-right:0;text-align:left;}
/* v3.8.3 - Guide : mode nuit, fond des etapes en gris fonce */
body.theme-dark .lq-step{background:#3a3f47!important;border-color:#4b5563!important;border-left-color:#60a5fa!important;color:#f8fafc!important;}
body[data-theme="dark"] .lq-step{background:#3a3f47!important;border-color:#4b5563!important;border-left-color:#60a5fa!important;color:#f8fafc!important;}

/* v3.8.3 — Quiz en direct Live Quiz */
.quiz-import-assistant-v348 {
    display: grid;
    gap: 18px;
    padding: 18px;
}

.quiz-source-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.quiz-source-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 190px;
    padding: 22px 18px;
    border: 1px solid #d7e3f4;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    color: inherit;
    text-align: center;
    font: inherit;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.quiz-source-card:hover,
.quiz-source-card:focus-visible {
    border-color: #003189;
    box-shadow: 0 16px 32px rgba(0, 49, 137, .14);
    transform: translateY(-2px);
    outline: none;
}

.quiz-source-card.is-active {
    border-color: #003189;
    background: linear-gradient(180deg, #edf4ff 0%, #ffffff 100%);
    box-shadow: 0 18px 36px rgba(0, 49, 137, .16);
}

.quiz-source-card.is-inactive {
    opacity: .78;
}

.quiz-source-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #003189;
    color: #ffffff;
    font-size: 1.35rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.quiz-source-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.quiz-source-card-desc {
    font-size: .88rem;
    line-height: 1.45;
    color: #475569;
}

.quiz-source-picker-note {
    margin: -4px 0 0;
}

.quiz-source-panels {
    display: grid;
    gap: 16px;
}

.quiz-source-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #dbe4f3;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.quiz-source-panel[hidden] {
    display: none !important;
}

.quiz-source-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.quiz-source-panel-head h4 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: #0f172a;
}

.quiz-source-panel-head p {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

.quiz-manual-head {
    margin-bottom: 10px;
}

.quiz-manual-head > div {
    display: grid;
    gap: 6px;
}

.quiz-questions-block[hidden] {
    display: none !important;
}

body.theme-dark .quiz-source-card,
body[data-theme="dark"] .quiz-source-card {
    border-color: rgba(148, 163, 184, .22);
    background: linear-gradient(180deg, #132033 0%, #0f1a2b 100%);
}

body.theme-dark .quiz-source-card.is-active,
body[data-theme="dark"] .quiz-source-card.is-active {
    border-color: #60a5fa;
    background: linear-gradient(180deg, #182742 0%, #0f1a2b 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, .34);
}

body.theme-dark .quiz-source-card-title,
body[data-theme="dark"] .quiz-source-card-title,
body.theme-dark .quiz-source-panel-head h4,
body[data-theme="dark"] .quiz-source-panel-head h4 {
    color: #f8fafc;
}

body.theme-dark .quiz-source-card-desc,
body[data-theme="dark"] .quiz-source-card-desc,
body.theme-dark .quiz-source-panel-head p,
body[data-theme="dark"] .quiz-source-panel-head p {
    color: #cbd5e1;
}

body.theme-dark .quiz-source-panel,
body[data-theme="dark"] .quiz-source-panel {
    border-color: rgba(148, 163, 184, .24);
    background: #101a2d;
    box-shadow: 0 16px 34px rgba(2, 6, 23, .34);
}

@media (max-width: 768px) {
    .quiz-source-card {
        min-height: 0;
    }

    .quiz-source-panel,
    .quiz-import-assistant-v348 {
        padding: 16px;
    }

    .quiz-source-panel-head {
        flex-direction: column;
    }
}

/* v3.8.3 — cartes façon Live Quiz (Quiz en direct) */
.quiz-live-options { display:grid; grid-template-columns:repeat(auto-fit, minmax(160px,1fr)); gap:12px; margin:10px 0 6px; }
.quiz-live-option-card { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:14px 12px; border:1px solid #dbe4f3; border-radius:18px; background:linear-gradient(180deg,#f8fbff 0%,#fff 100%); color:inherit; text-align:center; font:inherit; cursor:pointer; box-shadow:0 8px 18px rgba(15,23,42,.04); transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.quiz-live-option-card:hover, .quiz-live-option-card:focus-visible { border-color:#003189; box-shadow:0 12px 24px rgba(0,49,137,.14); transform:translateY(-2px); outline:none; }
.quiz-live-option-card.is-active { border-color:#003189; background:linear-gradient(180deg,#edf4ff 0%,#fff 100%); box-shadow:0 14px 28px rgba(0,49,137,.18); }
.quiz-live-option-icon { display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:14px; background:#003189; color:#fff; font-size:1rem; }
.quiz-live-option-card.is-active .quiz-live-option-icon { background:#0036c4; }
.quiz-live-option-title { font-weight:800; color:#0f172a; font-size:.92rem; }
.quiz-live-option-help { font-size:.76rem; color:#475569; }
.quiz-live-option-input { width:100%; }
.quiz-live-option-toggle-switch { position:relative; width:34px; height:18px; border-radius:999px; background:#cbd5e1; transition:background .2s ease; }
.quiz-live-option-toggle-switch > span { position:absolute; top:2px; left:2px; width:14px; height:14px; border-radius:50%; background:#fff; box-shadow:0 2px 4px rgba(15,23,42,.2); transition:transform .2s ease; }
.quiz-live-option-card.is-active .quiz-live-option-toggle-switch { background:#003189; }
.quiz-live-option-card.is-active .quiz-live-option-toggle-switch > span { transform:translateX(16px); }
body.theme-dark .quiz-live-option-card, body[data-theme="dark"] .quiz-live-option-card { border-color:rgba(148,163,184,.22); background:linear-gradient(180deg,#132033 0%,#0f1a2b 100%); }
body.theme-dark .quiz-live-option-card.is-active, body[data-theme="dark"] .quiz-live-option-card.is-active { border-color:#60a5fa; background:linear-gradient(180deg,#182742 0%,#0f1a2b 100%); }
body.theme-dark .quiz-live-option-title, body[data-theme="dark"] .quiz-live-option-title, body.theme-dark .quiz-live-option-help, body[data-theme="dark"] .quiz-live-option-help { color:#cbd5e1; }
body.theme-dark .quiz-live-option-card.is-active .quiz-live-option-title, body[data-theme="dark"] .quiz-live-option-card.is-active .quiz-live-option-title { color:#f8fafc; }

/* ==============================
   Pépites v3.8.3 — Bouton Enregistrer unifié (état + chemin mémorisé)
   ============================== */
.indicator-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: .9rem;
    line-height: 1.2;
    cursor: pointer;
    text-align: left;
    max-width: 320px;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
    background: #16a34a;
    color: #ffffff;
    border-color: #15803d;
}
.indicator-btn:hover { filter: brightness(1.05); box-shadow: 0 4px 14px rgba(22, 163, 74, .28); }
.indicator-btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.indicator-btn-icon { display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.indicator-btn-stack { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.indicator-btn-label { font-weight: 700; letter-spacing: .01em; }
.indicator-btn-path {
    font-size: .72rem;
    font-weight: 500;
    opacity: .9;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 260px;
}
.indicator-btn--idle    { background: #16a34a; border-color: #15803d; color: #ffffff; }
.indicator-btn--dirty   { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.indicator-btn--saving  { background: #2563eb; border-color: #1d4ed8; color: #ffffff; }
.indicator-btn--saved   { background: #f0fdf4; border-color: #86efac; color: #166534; }
.indicator-btn--error   { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
body.theme-dark .indicator-btn--idle   { background: #166534; border-color: #15803d; color: #bbf7d0; }
body.theme-dark .indicator-btn--saving { background: #1d4ed8; border-color: #2563eb; color: #dbeafe; }
body.theme-dark .indicator-btn--saved  { background: rgba(22, 101, 52, .3); border-color: rgba(34, 197, 94, .35); color: #bbf7d0; }
body.theme-dark .indicator-btn--dirty  { background: rgba(146, 64, 14, .3); border-color: rgba(250, 204, 21, .35); color: #fde68a; }
body.theme-dark .indicator-btn--error  { background: rgba(185, 28, 28, .3); border-color: rgba(239, 68, 68, .35); color: #fecaca; }

/* Compatibilité descendante : pavé indicateur historique (caché par défaut) */
.save-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid var(--border);
    background: #f8fafc;
    color: var(--text-muted);
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.save-indicator i { font-size: .9rem; }
.save-indicator--idle { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.save-indicator--dirty { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.save-indicator--saving { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.save-indicator--saved { background: #f0fdf4; border-color: #86efac; color: #15803d; }
.save-indicator--error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }

/* ==============================
   Pépites v3.8.3 — Stratégies de formation en grandes cartes
   ============================== */
.strategie-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 10px;
}
.strategie-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin: 0;
    padding: 16px 14px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(15, 23, 42, .05);
}
.strategie-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 49, 137, .12);
}
.strategie-card:has(input:checked),
.strategie-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 6px 16px rgba(0, 49, 137, .16);
}
.strategie-card input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.strategie-card input[type="radio"]:focus-visible ~ .strategie-card-icon {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}
.strategie-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary);
    color: #ffffff;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.strategie-card-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    text-align: center;
}
.strategie-card-help {
    font-size: .78rem;
    line-height: 1.45;
    color: var(--text-muted);
    text-align: center;
}
body.theme-dark .strategie-card {
    background: #14213a;
    border-color: var(--border);
}
body.theme-dark .strategie-card:hover,
body.theme-dark .strategie-card:has(input:checked),
body.theme-dark .strategie-card.selected {
    background: #172845;
    border-color: var(--primary);
}
body.theme-dark .strategie-card-title { color: #ffffff; }
body.theme-dark .strategie-card-help { color: var(--text-muted); }

/* ==============================
   Pépites v3.8.3 — Cartes « Proposition de répartition »
   ============================== */
.placement-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 10px;
}
.placement-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin: 0;
    padding: 16px 14px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(15, 23, 42, .05);
}
.placement-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 49, 137, .12);
}
.placement-card:has(input:checked),
.placement-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 6px 16px rgba(0, 49, 137, .16);
}
.placement-card input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.placement-card input[type="radio"]:focus-visible ~ .placement-card-icon {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}
.placement-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary);
    color: #ffffff;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.placement-card-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    text-align: center;
}
.placement-card-help {
    font-size: .78rem;
    line-height: 1.45;
    color: var(--text-muted);
    text-align: center;
}
body.theme-dark .placement-card { background: #14213a; border-color: var(--border); }
body.theme-dark .placement-card:hover,
body.theme-dark .placement-card:has(input:checked),
body.theme-dark .placement-card.selected { background: #172845; border-color: var(--primary); }
body.theme-dark .placement-card-title { color: #ffffff; }
body.theme-dark .placement-card-help { color: var(--text-muted); }

/* ==============================
   v3.8.3 — Emploi du temps : périodes, vacances, import Pronote
   ============================== */
.edt-cell-add { cursor: pointer; }
.edt-cell-add:hover { background: var(--primary-light); }
.edt-seance-periods { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.edt-period-badge {
    font-size: .58rem; font-weight: 700; padding: 1px 5px; border-radius: 8px;
    background: #eef2f7; color: #475569;
}
.edt-alt-A { background: #dcfce7; color: #166534; }
.edt-alt-B { background: #dbeafe; color: #1e40af; }
.edt-seance-off { opacity: .45; filter: grayscale(.4); }
.edt-holiday-cell {
    background: repeating-linear-gradient(45deg, #fef3c7, #fef3c7 8px, #fde68a 8px, #fde68a 16px) !important;
}
.edt-holiday-badge { background: #f59e0b !important; color: #fff !important; }
.edt-vacation-note { display: block; font-size: .68rem; color: var(--text-muted); margin-top: 2px; }
#edt-zone-select { max-width: 175px; }
.pronote-pv-classes {
    background: #e0f2fe; padding: 8px 10px; border-radius: 8px; margin: 10px 0 6px; font-size: .8rem;
}
.pronote-pv-seances { font-size: .8rem; margin-bottom: 6px; }
.pronote-pv-list {
    max-height: 190px; overflow-y: auto; font-size: .72rem;
    background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px;
}
body.theme-dark .pronote-pv-classes { background: #0c4a6e; }
body.theme-dark .pronote-pv-list { background: #1e293b; }
body.theme-dark .edt-period-badge { background: #334155; color: #e2e8f0; }

/* ==============================
   v3.8.3 — Accueil Pronote + glisser-déposer des classes
   ============================== */
.empty-state-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.empty-state-help { font-size: .8rem; color: var(--text-muted); margin-top: 10px; max-width: 520px; line-height: 1.45; }
.class-card { cursor: grab; }
.class-card:active { cursor: grabbing; }
.class-card.dragging { opacity: .45; }
.class-card.drag-target { outline: 2px dashed var(--accent); outline-offset: 3px; }

/* ==============================
   v3.8.3 — Accueil : bouton d'import Pronote 2× « Créer une classe »,
   explication affichée sous ce bouton.
   ============================== */
.empty-state-actions {
    display: flex; gap: 12px; align-items: stretch; justify-content: center;
    width: min(100%, 640px); margin: 18px auto 0;
}
.empty-state-actions > .btn:first-child { flex: 1 1 0; min-width: 170px; }
.empty-state-pronote { flex: 2 1 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.btn-home-pronote { width: 100%; white-space: normal; line-height: 1.3; }
.empty-state-help {
    margin: 0; font-size: .78rem; color: var(--text-muted);
    text-align: center; line-height: 1.45;
}

/* ==============================
   v3.8.3 — Accueil : deux boutons de même taille, titre en gras et explication
   sous le titre À L'INTÉRIEUR du bouton. Boutons des cartes de classe réduits.
   ============================== */
.empty-state-actions {
    display: flex; gap: 14px; align-items: stretch; justify-content: center;
    width: min(100%, 760px); margin: 18px auto 0;
}
.btn-home-action {
    flex: 1 1 0; min-width: 0; min-height: 92px;
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 7px; padding: 16px 18px; text-align: left;
}
.btn-home-title { font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 8px; line-height: 1.25; }
.btn-home-sub { font-size: .74rem; font-weight: 400; opacity: .9; line-height: 1.4; }

/* v3.8.3 — boutons des cartes de classe : taille légèrement réduite */
.class-card .btn-icon-sm,
.class-card-actions .btn-icon-sm { width: 24px; height: 24px; font-size: .72rem; border-radius: 5px; }

@media (max-width: 640px){ .empty-state-actions{ flex-direction: column; align-items: stretch; } .btn-home-action{ min-height: 80px; } }

/* ── v3.8.3 ── */
.edt-seance-class { font-size:.62rem; color:var(--text-muted); font-weight:600; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ============ v3.8.3 ============ */
/* Dezoom emploi du temps : toute la semaine visible d un coup d oeil */
.edt-grid { grid-auto-rows: minmax(48px, auto); }
.edt-grid-wrap { overflow-x: auto; }
@media (min-width: 1024px) {
    .edt-grid { zoom: .72; -moz-transform: scale(.72); -moz-transform-origin: top left; }
}
.edt-cell { padding: 4px; }
.edt-seance-title { font-size: .72rem; }
.edt-seance-time, .edt-seance-class { font-size: .58rem; }
/* Bouton Importer l emploi du temps depuis Pronote : bleu */
.btn-home-pronote { background: #1976d2 !important; border-color: #1976d2 !important; color: #fff !important; }
.btn-home-pronote:hover { background: #1565c0 !important; border-color: #1565c0 !important; }
.empty-state-actions > .btn:nth-child(2) { background: #1976d2 !important; border-color: #1976d2 !important; color: #fff !important; }
.empty-state-actions > .btn:nth-child(2):hover { background: #1565c0 !important; }
/* Titres et explications des boutons d accueil centres */
.btn-home-action { text-align: center; align-items: center; }
.btn-home-title, .btn-home-sub { display: block; width: 100%; }
.btn-home-action span, .btn-home-action small, .btn-home-action .btn-title,
.btn-home-action .btn-sub, .btn-home-action i { text-align: center; }
@media (max-width: 1023px) { .edt-grid { zoom: 1; min-width: 100%; } }

/* ============ v3.8.3 — EDT ajusté au bloc (semaine entière 8h→18h) ============ */
#class-edt-block .edt-grid-wrap { max-height: none !important; overflow: visible !important; }
#class-edt-block .edt-grid {
    min-width: 0 !important;
    width: 100%;
    grid-template-columns: minmax(56px, 80px) repeat(5, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(56px, auto);
    zoom: 1;
    -moz-transform: none;
    -moz-transform-origin: initial;
}
#class-edt-block .edt-cell { padding: 3px 4px; min-height: 0; }
#class-edt-block .edt-seance { padding: 3px 5px; font-size: clamp(.58rem, .55vw + .3rem, .72rem); line-height: 1.25; gap: 2px; }
#class-edt-block .edt-seance-title { font-size: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
#class-edt-block .edt-seance-time, #class-edt-block .edt-seance-class { font-size: .56rem; }
@media (max-width: 1023px) { #class-edt-block .edt-grid { zoom: 1; -moz-transform: none; } }

/* ==============================
   v3.8.3 — centrage titres et explications dans « Stratégie de formation »
   ============================== */
.groupes-config .groupes-choice-card:has(.strategie-cards) { text-align: center; }
.groupes-config .groupes-choice-card:has(.strategie-cards) > label,
.groupes-config .groupes-choice-card:has(.strategie-cards) > .field-help { text-align: center; }
.strategie-card { text-align: center; align-items: center; }
.strategie-card .strategie-card-icon { margin-left: auto; margin-right: auto; }
.strategie-card .strategie-card-title,
.strategie-card .strategie-card-help { text-align: center; }

/* v3.8.3 — Emploi du temps plein largeur sans classe active */
#app-body[data-empty-class] #creneaux-grid { grid-column: 1 / -1 !important; width: 100% !important; }
#app-body[data-empty-class] .class-card.selected { display: none !important; }
#empty-edt { padding: 18px; background: var(--surface-2, #f6f8fb); border-radius: 12px; border: 1px solid rgba(0,49,137,.10); margin-bottom: 14px; }
#empty-edt[hidden] { display: none !important; }
#empty-edt header { font-weight: 600; font-size: 1.1rem; color: var(--primary, #003189); }
#empty-edt p { color: var(--text-secondary, #555); margin: 6px 0 0; }

/* ===== v3.8.3 - aucun calque / panneau derriere ou entre les tables ===== */
#plan-export-area,
#plan-export-area.room-format-portrait,
#plan-export-area.room-format-landscape,
body.theme-dark #plan-export-area,
body.theme-dark #plan-export-area.room-format-portrait,
body.theme-dark #plan-export-area.room-format-landscape{
  background:transparent !important;border:0 !important;box-shadow:none !important;
}
#plan-export-area .classroom-container,
#plan-classroom,
.classroom-container{
  background:transparent !important;border:0 !important;box-shadow:none !important;
}
.mode-classic .table-block,
.mode-u .table-block,
#plan-classroom .mode-classic .table-block,
#plan-classroom .mode-u .table-block{
  background:transparent !important;border:0 !important;box-shadow:none !important;
}
.draggable-table.table-grouped,
.draggable-table.table-group-leader{box-shadow:none !important;}
.draggable-table.table-grouped::after,
.draggable-table.table-group-leader::after{content:none !important;display:none !important;}
/* ===== v3.8.3 - bloc Emploi du temps pleine largeur (rubrique Classes) ===== */
#empty-edt{
  width:100% !important;box-sizing:border-box;padding:22px 24px;margin:18px 0 0;
  background:var(--surface-2,#f6f8fb);border:1px solid rgba(0,49,137,.12);
  border-radius:14px;text-align:center;
}
#empty-edt[hidden],.view:not(.no-active-class) #empty-edt{display:none !important;}
.view.no-active-class #empty-edt{display:block !important;}
#empty-edt header{font-weight:700;font-size:1.25rem;color:var(--primary,#003189);}
#empty-edt header i{margin-right:8px;}
#empty-edt p{margin:8px 0 0;color:var(--text-secondary,#555);font-size:.95rem;}

/* ===== v3.8.3-rev — poignees de redimensionnement du plan supprimees ===== */
.plan-room-resize-handle,
body.theme-dark .plan-room-resize-handle,
#plan-room-resize-badge{display:none !important;visibility:hidden !important;pointer-events:none !important;}

/* ===== v3.8.3-rev — plan sans marges : la zone epouse la taille de la salle ===== */
#plan-export-area,
#plan-export-area.room-format-portrait,
#plan-export-area.room-format-landscape{
  padding:0 !important;margin:0 !important;border:0 !important;border-radius:0 !important;
  box-shadow:none !important;background:transparent !important;
  display:block !important;align-items:initial !important;
}
#plan-classroom,.classroom-container{margin-top:0 !important;padding:0 !important;}

/* ===== v3.8.3-rev — contour de contraste sur chaque table (clair / sombre) ===== */
.mode-classic .table-block,.mode-u .table-block,
#plan-classroom .draggable-table,.draggable-table.table-block{
  outline:2px solid #0f172a !important;outline-offset:1px;
}
body.theme-dark .mode-classic .table-block,body.theme-dark .mode-u .table-block,
body.theme-dark #plan-classroom .draggable-table,body.theme-dark .draggable-table.table-block{
  outline:2px solid #e5eaf3 !important;outline-offset:1px;
}

/* ===== v3.8.3-rev — tables + noms d'eleves agrandis de 10 % (CSS) ===== */
.mode-classic .table-block,.mode-u .table-block,
#plan-classroom .mode-classic .table-block,#plan-classroom .mode-u .table-block{
  min-width:92px !important;padding:5.5px !important;
}
#plan-classroom .seat,.mode-classic .table-block .seat,.mode-u .table-block .seat{
  width:72.6px !important;height:46.2px !important;font-size:.66rem !important;
}
.seat small,#plan-classroom .seat small,#plan-classroom .draggable-table .seat small{font-size:.594rem !important;}
#plan-classroom .seat-name-stack span,#plan-classroom .seat-name-stack small{
  font-size:1.1em !important;line-height:1.08 !important;
}
#plan-classroom .draggable-table .seat-name-stack span{font-size:.726rem !important;}
#plan-classroom .draggable-table .seat-name-stack small{font-size:.6534rem !important;}

/* ===== v3.8.3-rev — boutons des classes reduits de 15 % ===== */
.classes-grid{grid-template-columns:repeat(auto-fill,minmax(221px,1fr)) !important;gap:13.6px !important;}
.class-card{padding:17px !important;border-width:1.7px !important;}
.class-card-name{font-size:1.02rem !important;margin-bottom:3.4px !important;}
.class-card-meta{font-size:.663rem !important;margin-bottom:10.2px !important;}
.class-stat-badge{font-size:.612rem !important;padding:2.55px 8.5px !important;}
.class-card-actions{top:10.2px !important;right:10.2px !important;}
.btn-icon-sm{width:23.8px !important;height:23.8px !important;}

/* ===== v3.8.3-rev — emploi du temps pleine largeur sous la liste des classes ===== */
#view-classes.no-active-class #empty-edt{display:block !important;}
#empty-edt{
  width:100% !important;max-width:none !important;box-sizing:border-box;
  margin:18px 0 0 !important;padding:20px 22px;border-radius:14px;
  background:var(--surface-2,#f6f8fb);border:1px solid rgba(0,49,137,.12);text-align:left;
}
#empty-edt header{font-weight:700;font-size:1.15rem;color:var(--primary,#003189);margin-bottom:4px;}
#empty-edt p{color:var(--text-secondary,#555);margin:0;font-size:.92rem;}
#empty-edt .edt-fullwidth-grid{width:100%;margin-top:14px;overflow-x:auto;}

/* v3.8.3 — bureau du professeur masquable + cartes de répartition fiables au clic */
.teacher-desk.is-hidden { display: none !important; }
.placement-card, .strategie-card { cursor: pointer; }
.placement-card input[type="radio"], .strategie-card input[type="radio"] { pointer-events: none; }
.placement-card[aria-disabled="true"], .strategie-card[aria-disabled="true"] { opacity: .6; pointer-events: none; }


/* ═══════════ v3.8.3 — Activités collaboratives (page dédiée) ═══════════ */
.collab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.collab-big-btn {
    cursor: pointer;
    padding: 22px 20px;
    border-radius: 14px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.collab-big-btn:hover,
.collab-big-btn:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .14);
}
.collab-big-btn h3 { margin: 0 0 10px; font-size: 1.15em; }
.collab-big-btn .collab-desc { margin: 0; color: #334155; line-height: 1.55; font-size: .93em; }
.collab-big-btn .collab-source { margin: 10px 0 0; font-size: .78em; color: #94a3b8; font-style: italic; }
body.theme-dark .collab-big-btn .collab-desc { color: #cbd5e1; }
body.theme-dark .collab-big-btn .collab-source { color: #64748b; }

/* ═══════════ v3.8.3 — Onglet Historique dans Bilan des pépites ═══════════ */
.bilan-historique-panel { margin-top: 0; }
.bilan-historique-panel[hidden] { display: none !important; }
.bilan-historique-panel .view-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px; margin-bottom: 14px;
}
.bilan-historique-panel .view-header h2 { margin: 0; font-size: 1.25em; }


/* ═══════════ v3.8.3b — Règle graduée CECRL (pré-A1 → C2) ═══════════ */
.cecr-slider input[type="range"] {
    width: 100%;
    accent-color: #2563eb;
    cursor: pointer;
}
.cecr-scale {
    display: flex;
    justify-content: space-between;
    font-size: .72em;
    color: #64748b;
    margin-top: 2px;
    font-weight: 600;
}
.cecr-scale span { flex: 1; text-align: center; }
body.theme-dark .cecr-scale { color: #94a3b8; }
body.theme-dark .cecr-desc { background: #1e293b; color: #cbd5e1; }

/* ==============================
   Pépites v3.8.3 — Compétences : blocs en gris très foncé (mode sombre)
   ============================== */
body.theme-dark .comp-ui-card,
body.theme-dark .comp-plan-card {
    background: #141414 !important;
    border-color: #2e2e2e !important;
    color: #ededed !important;
}
body.theme-dark .comp-ui-card h3,
body.theme-dark .comp-plan-card h3 {
    color: #f3f3f3 !important;
}
body.theme-dark .comp-ui-inner {
    background: #0d0d0d !important;
    border-color: #2e2e2e !important;
}
body.theme-dark .comp-hint-block {
    background: #141414 !important;
    border-left-color: #b45309 !important;
    color: #e5e5e5 !important;
}
body.theme-dark .comp-plan-svg {
    background: #0d0d0d !important;
    border-color: #2e2e2e !important;
}
body.theme-dark .comp-tab-panel .comp-eleve-card,
body.theme-dark .comp-tab-panel .empty-state {
    background: #141414 !important;
    border-color: #2e2e2e !important;
    color: #ededed !important;
}
body.theme-dark .comp-tabs {
    background: rgba(148, 163, 184, .12);
    border-color: #2e2e2e;
}
body.theme-dark .comp-tabs .segmented-btn {
    color: #dbe8ff;
}
body.theme-dark .comp-tabs .segmented-btn.active {
    background: #dbe8ff;
    color: #0d2c6d;
}


/* ══════════════════════════════════════════════════════════════════
   v3.8.3 — Onglet « Créer une grille de critères » (Compétences)
   ══════════════════════════════════════════════════════════════════ */

.gcrit-card { border-left: 4px solid var(--primary, #003189); }
.gcrit-modes { margin-top: 6px; flex-wrap: wrap; }
.gcrit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.gcrit-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; }
.gcrit-check { display: inline-flex; align-items: center; gap: 6px; font-size: .93em; cursor: pointer; padding: 4px 8px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.gcrit-check input { margin: 0; }
.gcrit-check em { color: #64748b; font-style: normal; }
.gcrit-note { margin: 10px 0 0; padding: 8px 10px; background: #f8fafc; border-left: 3px solid #2563eb; border-radius: 6px; color: #475569; font-size: .88em; }
.gcrit-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gcrit-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.gcrit-total { font-size: .8em; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-left: 8px; }
.gcrit-total.is-ok { background: #dcfce7; color: #166534; }
.gcrit-total.is-ko { background: #fee2e2; color: #991b1b; }
.gcrit-hint { font-weight: 400; font-size: .85em; color: #64748b; }
.gcrit-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: .86em; }
.gcrit-status { margin: 10px 0 0; padding: 8px 10px; border-radius: 6px; font-size: .9em; }
.gcrit-status-info { background: #eff6ff; color: #1e40af; border-left: 3px solid #2563eb; }
.gcrit-status-success { background: #f0fdf4; color: #166534; border-left: 3px solid #16a34a; }
.gcrit-status-error { background: #fef2f2; color: #991b1b; border-left: 3px solid #dc2626; }
.gcrit-empty { margin: 0; padding: 12px; background: #f8fafc; border-radius: 8px; color: #475569; font-size: .92em; }
.gcrit-table-wrap { overflow-x: auto; }
.gcrit-table { width: 100%; border-collapse: collapse; font-size: .9em; }
.gcrit-table th { text-align: left; padding: 8px 6px; background: #f1f5f9; border: 1px solid #cbd5e1; font-size: .92em; }
.gcrit-table td { padding: 6px; border: 1px solid #cbd5e1; vertical-align: top; }
.gcrit-table .gcrit-input { width: 100%; font-size: .95em; }
.gcrit-table textarea.gcrit-input { resize: vertical; min-height: 68px; }
.gcrit-table .gcrit-points { width: 100%; text-align: center; font-weight: 600; }
.gcrit-actions { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.gcrit-icon { border: 1px solid #cbd5e1; background: #fff; border-radius: 6px; padding: 4px 7px; cursor: pointer; color: #334155; }
.gcrit-icon:hover { border-color: var(--primary, #003189); color: var(--primary, #003189); }
.gcrit-icon-danger:hover { border-color: #dc2626; color: #dc2626; }
.gcrit-saved-list { display: flex; flex-direction: column; gap: 6px; }
.gcrit-saved-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; font-size: .9em; }
.gcrit-saved-item em { color: #64748b; font-style: normal; }

body.theme-dark .gcrit-card { border-left-color: #60a5fa; background: #1e293b; color: #e2e8f0; }
body.theme-dark .gcrit-check,
body.theme-dark .gcrit-saved-item,
body.theme-dark .gcrit-icon { background: #334155; color: #e2e8f0; border-color: #475569; }
body.theme-dark .gcrit-note,
body.theme-dark .gcrit-empty { background: #334155; color: #cbd5e1; border-left-color: #60a5fa; }
body.theme-dark .gcrit-table th { background: #334155; color: #e2e8f0; border-color: #475569; }
body.theme-dark .gcrit-table td { border-color: #475569; color: #e2e8f0; }
body.theme-dark .gcrit-chip { background: #3730a3; color: #e0e7ff; }
body.theme-dark .gcrit-status-info { background: #1e3a8a; color: #dbeafe; }
body.theme-dark .gcrit-status-success { background: #14532d; color: #dcfce7; }
body.theme-dark .gcrit-status-error { background: #7f1d1d; color: #fee2e2; }


/* Cartes de choix, assorties à « Préparer le quiz ». */
.gcrit-modes.quiz-source-picker { display:flex; justify-content:center; flex-wrap:wrap; gap:16px; width:100%; margin:20px auto; }
.gcrit-modes .quiz-source-card { flex:0 1 300px; min-height:210px; text-align:center; align-items:center; display:flex; flex-direction:column; gap:12px; padding:22px; border-radius:18px; border:1px solid #d2e0ff; background:linear-gradient(180deg,#f8fbff,#fff); transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.gcrit-modes .quiz-source-card:hover, .gcrit-modes .quiz-source-card:focus-visible { transform:translateY(-5px); box-shadow:0 12px 24px #0b3d9120; border-color:#0b3d91; }
.gcrit-modes .quiz-source-card.active { border:2px solid #0b3d91; box-shadow:0 4px 16px #0b3d9118; }
.gcrit-modes .quiz-source-card-icon { display:flex; align-items:center; justify-content:center; width:60px; height:60px; flex-shrink:0; border-radius:18px; background:#073b91; color:#fff; font-size:24px; transition:transform .2s ease; }
.gcrit-modes .quiz-source-card:hover .quiz-source-card-icon { transform:scale(1.08) rotate(-4deg); }
.gcrit-modes .quiz-source-card-title { font-size:1rem; font-weight:800; color:#0f172a; }
.gcrit-modes .quiz-source-card-desc { color:#28518d; line-height:1.5; font-size:.9rem; font-weight:400; }
#gcrit-import-btn.gcrit-subject-upload { background:#166534; color:#fff; border-color:#166534; }
#gcrit-import-btn.gcrit-subject-upload:hover { background:#14532d; color:#fff; }
@media (prefers-reduced-motion: reduce) { .gcrit-modes .quiz-source-card, .gcrit-modes .quiz-source-card-icon { transition:none; transform:none!important; } }
@media (max-width:600px) { .gcrit-modes .quiz-source-card { flex-basis:100%; } }
body.theme-dark .gcrit-modes .quiz-source-card { background:#17253c; border-color:#57749e; }
body.theme-dark .gcrit-modes .quiz-source-card-title { color:#fff; }
body.theme-dark .gcrit-modes .quiz-source-card-desc { color:#cbdcff; }

/* Quiz : outils placés sous le libellé et alignés à gauche. */
.quiz-ai-document-head { display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.quiz-ai-document-tools { display:flex; justify-content:flex-start; align-items:center; flex-wrap:wrap; margin-left:0; width:100%; }
body.theme-dark .quiz-ai-scribeo-link { background:#374151; color:#fff; border-color:#4b5563; }
body.theme-dark .quiz-ai-scribeo-link:hover { background:#4b5563; }
/* Titre et import au-dessus des cinq paramètres compacts. */
.gcrit-grid { display:grid; grid-template-columns:1fr 1fr 2fr 1.25fr .85fr; gap:12px; align-items:end; }
.gcrit-grid > .gcrit-import-row, .gcrit-grid > .form-group:has(#gcrit-titre) { grid-column:1/-1; }
.gcrit-grid > .form-group { min-width:0; margin-bottom:0; }
.gcrit-grid select, .gcrit-grid input { width:100%; min-width:0; font-size:.88rem; }
.gcrit-grid label { font-size:.82rem; }
.gcrit-bareme-inline { display:flex; gap:4px; align-items:center; }
.gcrit-bareme-unit { font-size:.75rem; }
.comp-tabs.segmented-control { display:flex; flex-wrap:wrap; align-items:stretch; gap:8px; }
.comp-tabs .segmented-btn { flex:1 1 220px; margin:0; display:flex; align-items:center; justify-content:center; min-height:48px; }
@media(max-width:900px) { .gcrit-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:520px) { .gcrit-grid { grid-template-columns:1fr; } }

body.theme-dark #view-guide code, body.theme-dark .lq-tutorial code { background:#374151!important; color:#f8fafc!important; }
.plan-embed-host, .ap2-main, .ap-plan, .ap2-plan { min-width:0; }
.plan-embed-host .plan-layout, .plan-embed-host .plan-main { min-width:0!important; width:100%!important; }
.plan-embed-host #plan-export-area { transform-origin:top left; }
#plan-classroom { margin:0!important; inset:auto!important; position:relative; }
.ap2-layout > *, #collab-page-panel .card { min-width:0; }
.plan-embed-host .plan-layout { grid-template-columns:minmax(0,1fr)!important; }
.plan-embed-host #plan-export-area { flex-shrink:0; }
.plan-embed-host .parking-dock { max-width:100%; }

/* Pépites : conserver le bleu de l’icône dans les deux thèmes. */
body.theme-dark .app-header .brand-logo,
body[data-theme="dark"] .app-header .brand-logo {
    background: #1d58cd !important;
    color: #fff !important;
}

/* Surface visible = surface déplaçable, sans bordure ni zone de réserve. */
#plan-canvas-wrapper {
    padding:0!important; margin:0!important; border:0!important; border-radius:0!important;
    justify-content:flex-start!important; align-items:flex-start!important;
    width:100%!important; max-width:100%!important; min-height:0!important;
    flex:0 0 auto!important;
}
#plan-export-area, #plan-export-area.room-format-portrait, #plan-export-area.room-format-landscape {
    position:relative!important; padding:0!important; margin:0!important;
    width:var(--plan-room-width,600px)!important;
    min-width:var(--plan-room-width,600px)!important;
    max-width:var(--plan-room-width,600px)!important;
    height:var(--plan-room-height,800px)!important;
    min-height:var(--plan-room-height,800px)!important;
    box-sizing:border-box!important;
}
#plan-classroom { position:absolute!important; left:0!important; top:0!important; margin:0!important; padding:0!important; }
#plan-export-area .teacher-desk { margin:0!important; transform-origin:center center; }
.plan-embed-host { padding:0!important; min-height:0!important; }

#plan-classroom .table-at-top-edge .table-controls { top:0!important; }

/* v3.8.17 — full-width room, including the embedded collaborative view. */
.plan-main { min-width:0!important; align-self:stretch; }
#plan-canvas-wrapper { flex:1 0 auto!important; overflow:visible!important; }
#plan-export-area { flex-shrink:0!important; }
.placement-card-help { display:block; width:100%; min-width:0; white-space:normal!important; text-align:center!important; overflow-wrap:break-word; }

/* v3.8.18 — emploi du temps pleine largeur, hauteur des lignes +20 %. */
#view-classes #class-edt-block {
    flex:1 0 100%; grid-column:1 / -1;
    width:100%!important; max-width:none!important; min-width:0;
    box-sizing:border-box;
}
#view-classes #empty-edt .edt-grid,
#view-classes #class-edt-block .edt-grid {
    width:100%!important; min-width:0!important; max-width:none!important;
    box-sizing:border-box; zoom:1!important; transform:none!important;
    -moz-transform:none!important;
    grid-template-columns:minmax(48px,80px) repeat(5,minmax(0,1fr))!important;
    grid-auto-rows:minmax(67.2px,auto);
}
#view-classes #empty-edt .edt-grid { grid-auto-rows:minmax(57.6px,auto); }
#view-classes #edt-container, #view-classes .edt-grid-wrap,
#view-classes .edt-fullwidth-grid { width:100%; max-width:none; min-width:0; }

/* v3.8.21 — élèves à gauche, emploi du temps plus large à droite. */
#view-classes .class-details-grid { display:grid!important; grid-template-columns:minmax(280px, .85fr) minmax(0,1.35fr)!important; align-items:start; }
#view-classes #class-eleves-block, #view-classes #class-edt-block { grid-column:auto!important; width:100%!important; max-width:none!important; min-width:0!important; }
#view-activites .consolidation-grid-wrap { width:100%!important; max-width:none!important; max-height:none!important; overflow:visible!important; }
#view-activites .consolidation-grid { width:100%!important; min-width:0!important; max-width:none!important; zoom:1!important; transform:none!important; -moz-transform:none!important; grid-template-columns:60px repeat(5,minmax(0,1fr)); }
@media(max-width:900px) { #view-classes .class-details-grid { grid-template-columns:minmax(0,1fr)!important; } }

/* v3.8.22 — menus de choix, sans contenu pré-ouvert. */
.comp-tabs, .bilan-tabbar { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px!important; width:100%; background:transparent!important; padding:0!important; }
.comp-tabs .choice-action-card, .bilan-tabbar .choice-action-card { display:flex!important; flex-direction:column; align-items:center; justify-content:center; gap:12px; min-height:172px; padding:24px 18px!important; white-space:normal!important; text-align:center!important; border:1px solid var(--border); border-radius:18px!important; background:var(--surface); color:var(--text); box-shadow:0 6px 18px rgba(0,49,137,.1); transition:transform .2s ease,box-shadow .2s ease; }
.choice-action-card > i { font-size:1.8rem; color:var(--primary); }
.choice-action-card > strong { font-size:1.05rem; }
.choice-action-card > span { display:block; font-size:.88rem; line-height:1.45; font-weight:400; text-align:center; }
.choice-action-card:hover { transform:translateY(-4px); box-shadow:0 12px 24px rgba(0,49,137,.18); }
.choice-action-card:focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
.choice-action-card.active { border-color:var(--primary)!important; background:var(--primary-light)!important; }
.comp-intro > div:has(> .comp-tabs) { display:flex!important; flex-wrap:wrap; width:100%; }
.comp-tabs { flex-basis:100%!important; }
.comp-export-bilan { margin-left:auto!important; order:3; }
.bilan-toolbar-top { display:block!important; }
#view-bilan.awaiting-choice > :not(.view-header):not(.bilan-toolbar),
#view-bilan.awaiting-choice .bilan-reports-controls,
#view-bilan.awaiting-choice .bilan-toolbar-actions { display:none!important; }
#view-bilan .bilan-summary-card, #view-bilan .bilan-students-list,
#view-bilan .bilan-students-list > * { width:100%!important; max-width:none!important; margin-left:0!important; margin-right:0!important; }
#view-bilan .bilan-students-list { grid-template-columns:minmax(0,1fr)!important; }
.comp-tab-panel[hidden], .activites-tab-content[hidden] { display:none!important; }
@media(min-width:1101px) {
 .groupes-config { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr); gap:14px 18px; align-items:start; }
 .groupes-config > * { grid-column:1/-1; }
 .groupes-config-head { display:contents; }
 .groupes-config-copy { grid-column:1; grid-row:1; }
 .groupes-config-head #groupes-cps-source { grid-column:2; grid-row:1/span 3; align-self:start; }
 .groupes-config > .groupes-config-grid { grid-column:1; grid-row:2; margin:0; }
 .groupes-config > .groupes-choice-grid { grid-column:1; grid-row:3; margin:0; grid-template-columns:minmax(0,1fr); }
}
@media(max-width:760px) { .comp-tabs, .bilan-tabbar { grid-template-columns:minmax(0,1fr); } }
@media(prefers-reduced-motion:reduce) { .choice-action-card { transition:none!important; } .choice-action-card:hover { transform:none; } }

/* v3.8.23 — configuration pleine largeur. */
#view-classes #empty-edt[hidden], #view-classes.no-created-class #empty-edt { display:none!important; }
#view-groupes .groupes-layout { display:grid!important; grid-template-columns:minmax(0,1fr)!important; width:100%; }
#view-groupes .groupes-config { display:block!important; width:100%; max-width:none; min-width:0; box-sizing:border-box; }
#view-groupes .groupes-config-head { display:flex!important; align-items:center; flex-wrap:wrap; gap:12px 20px; }
#view-groupes .groupes-config-head > h3 { flex:0 0 auto; margin:0; }
#view-groupes #groupes-cps-source { flex:1 1 320px; min-width:0; width:auto; max-width:none; margin:0; }
#view-groupes .groupes-config-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; gap:20px; margin:16px 0; }
#view-groupes .groupes-choice-grid { display:grid; grid-template-columns:minmax(0,1fr)!important; width:100%; gap:16px; margin:0; }
#view-groupes .groupes-choice-card { width:100%; min-width:0; min-height:0; box-sizing:border-box; }
@media(max-width:640px) { #view-groupes .groupes-config-grid { grid-template-columns:minmax(0,1fr); } }

/* v3.8.24 — téléphones et clavier virtuel, sans désactiver le zoom. */
@media(max-width:760px) {
 #comp-tab-positionnement > div { grid-template-columns:minmax(0,1fr)!important; }
 .ap2-layout { grid-template-columns:minmax(0,1fr)!important; }
 .modal-content, .modal-dialog { max-width:calc(100vw - 24px); max-height:calc(var(--app-dvh,100dvh) - 24px); overflow-y:auto; }
}
@media(pointer:coarse) {
 .choice-action-card, .btn, .nav-btn { min-height:44px; }
 input, select, textarea { scroll-margin-bottom:80px; }
}

/* v3.8.25 — fixed furniture geometry, independent of its distance to an edge. */
#plan-classroom .draggable-table {
    width:max-content!important; max-width:none!important; flex-shrink:0;
    --table-lift:0px!important;
    outline-offset:-2px!important;
}
#plan-classroom .draggable-table .seat { flex-shrink:0; }
#plan-export-area .teacher-desk {
    width:210px; height:58px; box-sizing:border-box;
    padding:26px 8px 0; gap:0;
}
#plan-export-area .teacher-desk-controls {
    position:absolute; top:0; left:50%; transform:translateX(-50%);
    display:flex; align-items:center; justify-content:center; gap:5px;
}
#plan-export-area .teacher-desk-controls > * {
    position:static; transform:none; margin:0; padding:0;
    width:24px; height:24px; min-width:24px; min-height:24px;
    display:inline-flex; align-items:center; justify-content:center;
    border:0; border-radius:50%; background:rgba(255,255,255,.24); color:white;
}
#plan-export-area .teacher-desk-label { white-space:nowrap; }


/* ===== Corrections regroupées : v378.css ===== */
/* ==========================================================================
   Pépites v3.8.3 — correctifs et nouveautés
   1) Tutoriel : mise en page assainie (plus de sauts de ligne ni d'espaces
      parasites autour des mots en gras).
   2) Activités collaboratives : hôte du moteur du plan de classe.
   3) Bibliothèque des mini-structures coopératives (Buchs 2022, 33 structures).
   ========================================================================== */

/* --- 1. Tutoriel ---------------------------------------------------------- */
.lq-emoji-list li {
    display: block;
    position: relative;
    padding-left: 2.35rem;
    gap: 0;
    margin: .35rem 0;
}
.lq-emoji-list li > .lq-emoji {
    position: absolute;
    left: 0;
    top: .06em;
    width: 1.6rem;
    font-size: 1.15rem;
    line-height: 1.45;
    text-align: center;
}
.lq-emoji-list li > .lq-emoji[aria-hidden="true"] { display: block; }
.lq-step-content strong,
.lq-step-content b,
.lq-step-content em,
.lq-step-content code,
.lq-step-content a { display: inline; }
.lq-step-content code {
    padding: .05em .35em;
    border-radius: 4px;
    background: #eef2ff;
    font-size: .94em;
    white-space: nowrap;
}
.lq-step-content { line-height: 1.55; }
.lq-step-content li { line-height: 1.55; }
.lq-step-content ul { margin: .15rem 0 .1rem; }

/* --- 2. Moteur du plan de classe embarqué --------------------------------- */
.collab-plan-block {
    margin-top: 20px;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}
.collab-plan-head h3 {
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #1e293b;
}
.collab-plan-head p {
    margin: 0 0 10px;
    color: #475569;
    line-height: 1.5;
}
.plan-embed-host {
    margin-top: 12px;
    padding: 8px;
    min-height: 420px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: auto;
}
.plan-embed-host .plan-layout { height: auto; min-height: 0; }
.plan-embed-host .plan-classroom-wrap,
.plan-embed-host .plan-canvas { max-height: none; }
.plan-layout-embedded { width: 100%; }

/* --- 3. Bibliothèque des mini-structures coopératives --------------------- */
.ms-count-badge {
    display: inline-block;
    margin-left: .45rem;
    padding: .1rem .5rem;
    border-radius: 999px;
    background: #ede9fe;
    color: #5b21b6;
    font-size: .72em;
    font-weight: 700;
    vertical-align: middle;
}
.mini-panel { margin-top: 4px; }
.ms-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.ms-count { color: #64748b; font-size: .92em; }
.ms-intro {
    margin: 0 0 14px;
    color: #334155;
    line-height: 1.55;
    font-size: .96em;
}
.ms-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ms-chip {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-size: .86em;
    font-weight: 600;
    cursor: pointer;
}
.ms-chip:hover { border-color: #94a3b8; }
.ms-chip-active { background: #7c3aed; border-color: #7c3aed; color: #fff; }

.ms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 12px;
}
.ms-btn {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-left: 5px solid #7c3aed;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ms-btn:hover { border-color: #a78bfa; box-shadow: 0 3px 10px rgba(15, 23, 42, .07); transform: translateY(-1px); }
.ms-btn-active { border-color: #7c3aed; background: #faf5ff; }
.ms-num {
    flex: 0 0 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #7c3aed;
    color: #fff;
    font-weight: 800;
    font-size: .95em;
}
.ms-btn-body { display: block; min-width: 0; }
.ms-btn-body strong { display: block; color: #1e293b; font-size: .98em; line-height: 1.3; }
.ms-desc { display: block; margin-top: 4px; color: #475569; font-size: .86em; line-height: 1.4; }
.ms-meta { display: block; margin-top: 6px; color: #64748b; font-size: .8em; }

.ms-detail {
    margin-top: 18px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #ddd6fe;
    border-left: 6px solid #7c3aed;
    border-radius: 14px;
}
.ms-detail-head { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ms-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: #7c3aed;
    color: #fff;
    font-size: .78em;
    font-weight: 700;
}
.ms-badge-soft { background: #f1f5f9; color: #334155; }
.ms-detail h3 { margin: 0 0 8px; color: #1e293b; }
.ms-detail h4 {
    margin: 18px 0 8px;
    color: #4c1d95;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: .45rem;
}
.ms-objectif { margin: 0 0 6px; color: #334155; line-height: 1.5; }
.ms-steps { margin: 0 0 0 20px; color: #334155; }
.ms-steps li { margin: .4rem 0; line-height: 1.5; }
.ms-enst { margin: 0 0 0 20px; color: #334155; }
.ms-enst li { margin: .3rem 0; line-height: 1.5; font-size: .95em; }
.ms-conseil {
    margin: 12px 0;
    padding: 10px 12px;
    background: #fffbeb;
    border-left: 4px solid #d97706;
    border-radius: 8px;
    color: #7c2d12;
    font-size: .94em;
    line-height: 1.5;
}
.ms-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ms-source { margin: 16px 0 0; color: #64748b; font-size: .84em; line-height: 1.5; }

/* --- Thème sombre --------------------------------------------------------- */
body[data-theme="dark"] .collab-plan-block,
body[data-theme="dark"] .ms-detail { background: #0f172a; border-color: #334155; }
body[data-theme="dark"] .plan-embed-host { background: #0b1220; border-color: #334155; }
body[data-theme="dark"] .collab-plan-head h3,
body[data-theme="dark"] .ms-detail h3,
body[data-theme="dark"] .ms-btn-body strong { color: #e2e8f0; }
body[data-theme="dark"] .collab-plan-head p,
body[data-theme="dark"] .ms-intro,
body[data-theme="dark"] .ms-objectif,
body[data-theme="dark"] .ms-steps,
body[data-theme="dark"] .ms-enst { color: #cbd5e1; }
body[data-theme="dark"] .ms-btn { background: #1e293b; border-color: #334155; }
body[data-theme="dark"] .ms-btn-active { background: #2e1065; border-color: #a78bfa; }
body[data-theme="dark"] .ms-chip { background: #1e293b; border-color: #334155; color: #e2e8f0; }
body[data-theme="dark"] .ms-chip-active { background: #7c3aed; color: #fff; }
body[data-theme="dark"] .ms-badge-soft { background: #334155; color: #e2e8f0; }
body[data-theme="dark"] .lq-step-content code { background: #1e293b; color: #e2e8f0; }
body[data-theme="dark"] .ms-conseil { background: #422006; color: #fde68a; }


/* thème sombre : piloté par l’application, plus par le système */

    body:not([data-theme="light"]) .ms-btn { background: #1e293b; border-color: #334155; }
    body:not([data-theme="light"]) .ms-chip { background: #1e293b; border-color: #334155; color: #e2e8f0; }
    body:not([data-theme="light"]) .ms-detail { background: #0f172a; border-color: #334155; }
    body:not([data-theme="light"]) .collab-plan-block { background: #0f172a; border-color: #334155; }



/* --- v3.8.3 : plan interactif logé dans le bloc « Plan de classe de la séance » --- */
.ap-plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.ap-plan-head h4 { margin: 0; }
#ap-plan-live {
    min-height: 460px;
    max-height: 74vh;
    overflow: auto;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 6px;
}
#ap-plan-live .plan-layout { height: auto; width: 100%; }
#ap-plan-live .plan-sidebar { max-height: 62vh; overflow: auto; }
#ap-plan-box { background: #ffffff; border-radius: 10px; padding: 6px; }

/* --- v3.8.3 : fiabilité du contraste en mode clair --------------------------
   Aucun composant ne doit rester sombre lorsque l'application est en mode clair.
   Filet de sécurité : ces blocs reprennent les jetons de thème clairs. */
body:not(.theme-dark):not([data-theme="dark"]) .plan-embed-host,
body:not(.theme-dark):not([data-theme="dark"]) #ap-plan-live,
body:not(.theme-dark):not([data-theme="dark"]) #ap-plan-box,
body:not(.theme-dark):not([data-theme="dark"]) .collab-plan-block,
body:not(.theme-dark):not([data-theme="dark"]) .ms-detail,
body:not(.theme-dark):not([data-theme="dark"]) .ms-btn,
body:not(.theme-dark):not([data-theme="dark"]) .ms-chip,
body:not(.theme-dark):not([data-theme="dark"]) .ms-toolbar {
    background: #ffffff;
    color: var(--text-main, #0f172a);
    border-color: #cbd5e1;
}
body:not(.theme-dark):not([data-theme="dark"]) .ms-btn-body strong,
body:not(.theme-dark):not([data-theme="dark"]) .ms-detail h3,
body:not(.theme-dark):not([data-theme="dark"]) .ms-detail h4,
body:not(.theme-dark):not([data-theme="dark"]) .ms-intro,
body:not(.theme-dark):not([data-theme="dark"]) .ms-objectif,
body:not(.theme-dark):not([data-theme="dark"]) .ms-steps,
body:not(.theme-dark):not([data-theme="dark"]) .ms-enst,
body:not(.theme-dark):not([data-theme="dark"]) .ms-count,
body:not(.theme-dark):not([data-theme="dark"]) .ms-source {
    color: #0f172a;
}
body:not(.theme-dark):not([data-theme="dark"]) .ms-chip-active { background: #7c3aed; color: #ffffff; }
body:not(.theme-dark):not([data-theme="dark"]) .ms-num { background: #7c3aed; color: #ffffff; }
body:not(.theme-dark):not([data-theme="dark"]) .ms-badge-soft { background: #f1f5f9; color: #334155; }
body:not(.theme-dark):not([data-theme="dark"]) .lq-step,
body:not(.theme-dark):not([data-theme="dark"]) .lq-tutorial-head {
    background: linear-gradient(180deg, #f0f7ff 0%, #e6f0fe 100%);
    color: #1e293b;
}
body:not(.theme-dark):not([data-theme="dark"]) .lq-step-content h3 { color: #1e293b; }
body:not(.theme-dark):not([data-theme="dark"]) .lq-emoji-list li { color: #334155; }
@media (max-width: 1100px) {
    .collab-page-grid, #collab-page-panel .card > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}


/* ═══════════════════════════════════════════════════════════════════════
   v3.8.3 — lisibilité des cartes (clair ET sombre)
   Les cartes « Compétences langagières » et « Activités collaboratives »
   sont désormais entièrement pilotées par les jetons de thème.
   ═══════════════════════════════════════════════════════════════════════ */
.card.gcrit-card,
.card.collab-big-btn,
#collab-page-panel .card,
#mini-panel .ms-detail,
#mini-panel .ms-btn,
.collab-plan-block,
.plan-embed-host,
#ap-plan-live,
#ap-plan-box {
    background: var(--surface, #ffffff);
    color: var(--text-main, #0f172a);
    border-color: var(--border, #d1dae8);
}
.gcrit-card p, .gcrit-card li, .gcrit-card label,
.collab-big-btn p, #collab-page-panel p, #collab-page-panel li,
#mini-panel .ms-desc, #mini-panel .ms-objectif, #mini-panel .ms-steps li,
#mini-panel .ms-enst li, #mini-panel .ms-intro {
    color: var(--text-body, #334155);
}
.gcrit-card h3, .gcrit-card h4, .collab-big-btn h3,
#collab-page-panel h3, #collab-page-panel h4,
#mini-panel h3, #mini-panel h4 { color: var(--text-main, #0f172a); }
.gcrit-note, .gcrit-hint, .collab-source, #mini-panel .ms-source, #mini-panel .ms-count {
    color: var(--text-muted, #5a6a7e);
}
.gcrit-table th { background: var(--surface-3, #f1f5f9); color: var(--text-main, #0f172a); }
.gcrit-table td { border-color: var(--border, #d1dae8); }
.gcrit-empty, .gcrit-status-info { background: var(--surface-2, #f8fafc); color: var(--text-body, #334155); }
.gcrit-status-success { background: var(--success-light, #dcfce7); color: #14532d; }
.gcrit-status-error { background: var(--danger-light, #fee2e2); color: #7f1d1d; }
.gcrit-chip { background: var(--surface-3, #f1f5f9); color: var(--text-main, #0f172a); }
.gcrit-total.is-ok { background: var(--success-light, #dcfce7); color: #14532d; }
.gcrit-total.is-ko { background: var(--danger-light, #fee2e2); color: #7f1d1d; }
input.input-text, select.select-styled, textarea.textarea-large {
    background: var(--surface, #ffffff);
    color: var(--text-main, #0f172a);
    border-color: var(--border, #d1dae8);
}
body.theme-dark .gcrit-card,
body.theme-dark .collab-big-btn,
body.theme-dark #collab-page-panel .card,
body.theme-dark #mini-panel .ms-detail,
body.theme-dark #mini-panel .ms-btn,
body.theme-dark .plan-embed-host,
body.theme-dark #ap-plan-live,
body.theme-dark #ap-plan-box {
    background: var(--surface, #101a2d);
    color: var(--text-main, #edf4ff);
    border-color: var(--border, #2b3b58);
}
body.theme-dark .gcrit-card p, body.theme-dark .gcrit-card li, body.theme-dark .gcrit-card label,
body.theme-dark .collab-big-btn p, body.theme-dark #collab-page-panel p,
body.theme-dark #mini-panel .ms-desc, body.theme-dark #mini-panel .ms-objectif,
body.theme-dark #mini-panel .ms-steps li, body.theme-dark #mini-panel .ms-enst li {
    color: var(--text-body, #d7e2f2);
}
body.theme-dark .gcrit-note, body.theme-dark .gcrit-hint,
body.theme-dark .collab-source, body.theme-dark #mini-panel .ms-source {
    color: var(--text-muted, #a4b2c8);
}
body.theme-dark .gcrit-table th { background: var(--surface-3, #1d2c48); color: var(--text-main, #edf4ff); }
body.theme-dark .gcrit-empty, body.theme-dark .gcrit-status-info { background: var(--surface-2, #16233c); color: var(--text-body, #d7e2f2); }
body.theme-dark input.input-text, body.theme-dark select.select-styled, body.theme-dark textarea.textarea-large {
    background: var(--surface, #101a2d); color: var(--text-main, #edf4ff); border-color: var(--border, #2b3b58);
}

/* v3.8.3 — boutons de retour bleus */
.btn.btn-retour,
#view-collab .view-header-actions .btn,
#mini-panel .ms-toolbar .btn-ms-retour {
    background: var(--primary, #003189) !important;
    border-color: var(--primary, #003189) !important;
    color: #ffffff !important;
}
.btn.btn-retour:hover,
#view-collab .view-header-actions .btn:hover,
#mini-panel .ms-toolbar .btn-ms-retour:hover { background: var(--primary-mid, #1e4db7) !important; }

/* v3.8.3 — bibliothèque : bouton de retour tout à droite */
#mini-panel .ms-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#mini-panel .ms-toolbar .ms-count { order: 1; }
#mini-panel .ms-toolbar .ms-plan-btn { order: 2; }
#mini-panel .ms-toolbar .btn-ms-retour { order: 3; margin-left: auto; }

/* v3.8.3 — barre d'outil de gauche masquée dans le plan de la séance */
#ap-plan-live .plan-sidebar { display: none !important; }
#ap-plan-live .plan-main { width: 100%; }
#ap-plan-live .plan-toolbar { display: none !important; }

/* --- v3.8.3 : lisibilite du mode nuit (titres de page + en-tete) --- */
body.theme-dark .view-header h1,
body.theme-dark .view-header h2,
body.theme-dark .view-header h3 { color: var(--text-main, #edf4ff) !important; }
body.theme-dark .app-header,
body.theme-dark .topbar,
body.theme-dark .top-bar,
body.theme-dark .app-topbar { background: var(--surface, #16203a) !important; border-color: var(--border, #26324c) !important; }
body.theme-dark .app-header .nav-btn,
body.theme-dark .topbar .nav-btn,
body.theme-dark .top-bar .nav-btn { color: var(--text-body, #d7e2f2); }

/* ══════════════════════════════════════════════════════════════════
   v3.8.3 — BARRE D'EXPORT DU PLAN DE CLASSE
   Les boutons d'export vivaient dans le bloc d'aide repliable
   (.plan-scroll-compact → max-height:0 / opacity:0) : ils disparaissaient.
   Ils sont désormais dans une barre dédiée, hors de ce bloc.
   ══════════════════════════════════════════════════════════════════ */
.plan-export-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    margin-bottom: 0;
    border: 1px solid var(--border, rgba(148,163,184,.30));
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: var(--surface-2, #f8fafc);
}
.plan-export-bar-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    font-size: .92em;
    color: var(--text-main, #0f172a);
}
.plan-export-bar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.plan-export-bar-actions .export-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.plan-export-bar-actions .export-actions .btn { min-height: 36px; }
/* La barre ne suit pas le plan dans « Activités collaboratives » */
#ap-plan-live .plan-export-bar { display: none !important; }
body.theme-dark .plan-export-bar { background: var(--surface-2, #16233c); border-color: var(--border, #26324c); }
body.theme-dark .plan-export-bar-label { color: var(--text-main, #edf4ff); }
@media (max-width: 900px) {
    .plan-export-bar-actions { margin-left: 0; width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════
   v3.8.3
   ══════════════════════════════════════════════════════════════════ */

/* --- Grille de critères : « Barème par critère » / « Barème total » --- */
.gcrit-bareme-row { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.gcrit-bareme-row .form-group { flex: 1 1 180px; min-width: 160px; }
.gcrit-bareme-inline { display: flex; align-items: center; gap: 8px; }
.gcrit-bareme-inline .input-text { max-width: 110px; }
.gcrit-bareme-unit { font-size: .9em; color: var(--text-body, #334155); }
.gcrit-import-btn { margin-top: 8px; }

/* --- Boutons d'export du plan : toujours visibles --- */
.plan-export-bar { display: flex !important; visibility: visible !important; opacity: 1 !important; }
.plan-export-bar-actions, .plan-export-bar-actions .export-actions {
    display: flex !important; visibility: visible !important; opacity: 1 !important;
}
#view-plan.plan-scroll-compact .plan-export-bar { max-height: none !important; }

/* --- Bureau du professeur ---
   v3.8.3 : la règle en !important qui figeait left/top est SUPPRIMÉE : elle
   écrasait la position écrite en style inline par le moteur du plan, ce qui
   rendait le bureau impossible à déplacer. Le centrage par défaut reste assuré
   par le moteur (resetTeacherDesk : x = largeur de salle / 2) et par le CSS
   left:50% + translateX(-50%) de style.css. */

/* --- Groupes : contenu des cartes « Stratégie de formation » centré --- */
.strategie-card { align-items: center !important; text-align: center !important; justify-content: flex-start !important; }
.strategie-card-icon { margin: 0 auto !important; }
.strategie-card-title, .strategie-card-help { width: 100%; text-align: center !important; }
.placement-card { align-items: center !important; text-align: center !important; }
.placement-card-icon, .placement-card-title, .placement-card-help { text-align: center !important; }


/* ===== Corrections regroupées : v379.css ===== */
/* ============================================================================
   Pepites v3.8.3 — feuille de corrections
   (1) Export des plans : lisibilite et fidelite au plan affiche.
   (2) Bureau du professeur : de nouveau deplacable (la regle en !important de
       v3.8.3 ecrasait la position ecrite en style inline par le moteur du plan).
   (3) Plan de classe : boutons d'export en un seul endroit (barre dediee).
   (4) Competences : ligne d'import de grille (bouton a gauche + formats).
   (5) Activites collaboratives : blocs de seance (plan + compte a rebours).
   ============================================================================ */

/* --- (2) Bureau du professeur : positionnement rendu au moteur du plan ------- */
/* Le centrage par defaut reste assure par left:50% + translateX(-50%) de
   style.css ; la position vient du style inline ecrit par Plan.applyTeacherDeskPosition(). */
#plan-export-area .teacher-desk { transform-origin: center center; }

/* --- (3) Boutons d'export : une seule barre, aucune doublon dans l'aide ------ */
#plan-inline-help .plan-inline-help-actions,
#plan-inline-help-actions { display: none !important; }
#plan-export-bar { display: flex !important; visibility: visible !important; opacity: 1 !important; }

/* Dans les hotes de plan embarque (activites collaboratives), on masque les
   barres et aides qui n'ont pas de sens hors de la rubrique « Plan de classe ». */
.plan-embed-host .plan-export-bar,
.plan-embed-host .plan-inline-help,
.plan-embed-host .plan-sidebar,
.plan-embed-host .plan-toolbar { display: none !important; }
.plan-embed-host .plan-main { width: 100% !important; }
#ap-plan-live, #ms2-plan-live { min-height: 430px; }

/* --- (4) Competences : ligne d'import de grille ------------------------------ */
.gcrit-import-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.gcrit-import-row .gcrit-import-btn { margin-top: 0 !important; flex: 0 0 auto; }
.gcrit-import-row .gcrit-hint {
    margin: 0 !important;
    flex: 1 1 260px;
    font-size: .92em;
    color: var(--text-body, #475569);
}
.gcrit-bareme-row .form-group { flex: 0 1 260px; }

/* --- (5) Blocs « seance » reutilisables (mini-structures) -------------------- */
.ap2-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .ap2-layout { grid-template-columns: 1fr; } }
.ms-seance-blocks { margin-top: 18px; }
.ap2-clock { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ap2-clock-display { font-size: 2.2em; font-weight: 800; font-variant-numeric: tabular-nums; }
.ap2-groups { display: grid; gap: 10px; }
.ap2-group { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; background: #f8fafc; }
.ap2-group h5 { margin: 0 0 6px; font-size: .95em; }
.ap2-group ul { margin: 0 0 0 18px; padding: 0; color: #334155; font-size: .92em; }
.ap2-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ap2-plan-head h4 { margin: 0; }


/* ===== Corrections regroupées : v380.css ===== */
/* ============================================================================
   Pepites v3.8.3 — feuille de corrections
   (1) Plan de classe : barre unique au-dessus du plan (rappel d'usage + exports).
   (2) Mini-structures : liste allégée, étoile de favori, catégorie « Favoris ».
   (3) Bouton « Toutes les activités collaboratives » en bleu dans les trois
       activités (Classe Puzzle, World Café, Marché de connaissances).
   ============================================================================ */

/* --- (1) Barre d'aide : rappel d'usage à gauche, exports à droite ------------ */
#plan-inline-help,
.plan-inline-help {
    display: flex !important;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 52px;
    padding: 9px 14px;
}
#plan-inline-help .plan-inline-help-text { flex: 1 1 320px; }
#plan-inline-help .plan-inline-help-actions {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-left: auto;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
#plan-inline-help .plan-inline-help-actions .export-actions {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}
#plan-inline-help .plan-inline-help-actions .export-actions .btn { min-height: 36px; }
#view-plan.plan-scroll-compact #plan-inline-help { max-height: none !important; }
.plan-export-bar, #plan-export-bar { display: none !important; }
.plan-embed-host #plan-inline-help, .plan-embed-host .plan-inline-help { display: none !important; }
@media (max-width: 900px) {
    #plan-inline-help .plan-inline-help-actions { margin-left: 0; width: 100%; }
}

/* --- (2) Mini-structures : cartes, étoile de favori, catégorie Favoris ------- */
.ms-grid { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.ms-item { position: relative; display: block; }
.ms-item .ms-btn { width: 100%; height: 100%; }
.ms-item-fav .ms-btn { border-color: #fcd34d; }
.ms-star {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, .94);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: transform .12s ease, color .12s ease, border-color .12s ease, background .12s ease;
}
.ms-star:hover { color: #f59e0b; border-color: #fbbf24; transform: scale(1.08); }
.ms-star:focus-visible { outline: 3px solid var(--primary, #1d58cd); outline-offset: 2px; }
.ms-star.is-fav { color: #f59e0b; border-color: #fbbf24; background: #fffbeb; }
.ms-chip .fa-star { color: #f59e0b; margin-right: 4px; }
.ms-empty {
    padding: 18px 16px;
    border: 1px dashed var(--border, #e2e8f0);
    border-radius: 12px;
    color: #64748b;
    text-align: center;
    background: #f8fafc;
}
.ms-toolbar-compact { border-bottom: 1px solid #e2e8f0; }

/* --- (3) Bouton bleu « Toutes les activités collaboratives » ----------------- */
.btn.btn-primary.ap-back-hub {
    background: linear-gradient(135deg, var(--primary, #1d58cd), var(--primary-mid, #2563eb)) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 2px 8px rgba(0, 49, 137, .25);
}
.btn.btn-primary.ap-back-hub:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-mid, #2563eb), var(--primary-dark, #143a8c)) !important;
    box-shadow: 0 4px 12px rgba(0, 49, 137, .32);
}
body.theme-dark .ms-star { background: rgba(30, 41, 59, .94); border-color: #334155; color: #94a3b8; }
body.theme-dark .ms-star.is-fav { color: #fbbf24; border-color: #fbbf24; background: #422006; }
body.theme-dark .ms-empty { background: #16233c; border-color: #334155; color: #94a3b8; }
@media (max-width: 720px) { .ms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* ===== Corrections regroupées : v381.css ===== */
/* ============================================================================
   Pepites v3.8.3 — feuille de corrections
   (1) Competences : bouton « Export bilan des competences » a droite de l'onglet.
   (2) Groupes : titres centres, explications a la ligne (Strategie de formation).
   (3) Activites collaboratives : aucun bouton d'export, plan embarque silencieux.
   (4) Blocs de seance : duree de la structure, taille de groupe et phases.
   ============================================================================ */

/* --- (1) Competences : barre d'onglets + bouton de bilan -------------------- */
.comp-head-row {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.comp-head-row .comp-tabs { margin: 0; }
.comp-head-row .comp-export-bilan { min-height: 38px; }

/* --- (2) Groupes : « Strategie de formation » ------------------------------- */
.strategie-cards .strategie-card,
.strategie-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    gap: 5px !important;
}
.strategie-card .strategie-card-icon { margin: 0 auto !important; }
.strategie-card .strategie-card-title,
.strategie-card-title {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}
.strategie-card .strategie-card-help,
.strategie-card-help {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 3px !important;
    line-height: 1.45 !important;
    white-space: normal !important;
}

/* --- (3) Le plan embarque n'expose jamais les boutons d'export -------------- */
.plan-embed-host .export-actions,
.plan-embed-host .plan-inline-help,
.plan-embed-host .plan-export-bar,
#mini-panel .export-actions,
#mini-panel .plan-inline-help,
#collab-page-panel .export-actions,
#collab-page-panel .plan-inline-help { display: none !important; }

/* --- (4) Blocs de seance : phases et taille de groupe ----------------------- */
.ap2-hint { margin: 8px 0 0; font-size: .86em; color: #64748b; line-height: 1.45; }
.ap2-presets { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.ap2-size { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ap2-size label { font-size: .9em; font-weight: 600; }
.ap2-size input { width: 70px; }
.ap2-size-info { font-size: .85em; color: #64748b; }
.ap2-subhead { margin: 12px 0 6px; font-size: .92em; }
.ap2-phases { display: grid; gap: 6px; }
.ap2-phase {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 62px 26px 36px 36px;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}
.ap2-phase.is-off { opacity: .5; }
.ap2-phase .ap2-phase-label { min-width: 0; font-size: .9em; }
.ap2-phase .ap2-phase-min { text-align: center; font-size: .9em; }
.ap2-phase-unit { font-size: .78em; color: #64748b; }
.ap2-phase-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 760px) {
    .ap2-phase { grid-template-columns: 22px minmax(0, 1fr) 56px 34px 34px; }
    .ap2-phase-unit { display: none; }
}
body.theme-dark .ap2-phase { background: #16233c; border-color: #334155; }
body.theme-dark .ap2-phase .ap2-phase-label,
body.theme-dark .ap2-phase .ap2-phase-min { color: #edf4ff; background: #0f1a2e; }


/* ===== Corrections regroupées : v385.css ===== */
/* ============================================================================
   Pepites v3.8.3 — feuille de corrections
   (1) Plan de classe : rappel d'usage et boutons d'export sur UNE seule ligne.
   (2) Mode sombre : bulles, paragraphes, cartes « Groupes & modalites »,
       compteur « 33 structures », point de vigilance, phases.
   (3) Competences : « Mediation » sur la meme ligne que les autres activites.
   ============================================================================ */

/* --- (1) Barre du plan : une seule ligne, sans retour a la ligne ------------- */
#view-plan .plan-inline-help,
#plan-inline-help {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    min-height: 52px;
}
#plan-inline-help .plan-inline-help-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
}
#plan-inline-help .plan-inline-help-actions {
    flex: 0 0 auto !important;
    display: flex !important;
    margin-left: auto !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}
#plan-inline-help .plan-inline-help-actions .export-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin: 0 !important;
}
#plan-inline-help .plan-inline-help-actions .export-actions .btn { white-space: nowrap; }
@media (max-width: 900px) {
    #view-plan .plan-inline-help, #plan-inline-help { flex-wrap: wrap !important; }
    #plan-inline-help .plan-inline-help-actions { flex-wrap: wrap !important; }
}

/* --- (2) Mode sombre : tout le fond clair des mini-structures passe en gris fonce --- */
body.theme-dark .ms-count,
body.theme-dark #mini-panel .ms-count,
body.theme-dark .ms-count-badge,
body.theme-dark .ms-badge-soft,
body.theme-dark .ms-toolbar,
body.theme-dark #mini-panel .ms-toolbar,
body.theme-dark #mini-panel .ms-desc,
body.theme-dark #mini-panel .ms-meta,
body.theme-dark #mini-panel .ms-btn-body,
body.theme-dark #mini-panel .ms-btn-body strong,
body.theme-dark .ms-conseil,
body.theme-dark #mini-panel .ms-conseil,
body.theme-dark .ms-empty {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}
body.theme-dark .ms-count-badge,
body.theme-dark .ms-badge-soft { background: #334155 !important; color: #e2e8f0 !important; }
body.theme-dark #mini-panel .ms-item,
body.theme-dark #mini-panel .ms-grid,
body.theme-dark #mini-panel .ms-chips { background: transparent !important; }
body.theme-dark #mini-panel .ms-btn { background: #16233c !important; border-color: #334155 !important; }
body.theme-dark #mini-panel .ms-btn:hover { background: #1e293b !important; }
body.theme-dark #mini-panel .ms-detail { background: #16233c !important; border-color: #334155 !important; }
body.theme-dark #mini-panel .ms-detail h3,
body.theme-dark #mini-panel .ms-detail h4 { color: #edf4ff !important; }
body.theme-dark #mini-panel .ms-steps li,
body.theme-dark #mini-panel .ms-enst li,
body.theme-dark #mini-panel .ms-objectif,
body.theme-dark #mini-panel .ms-intro,
body.theme-dark #mini-panel .ms-source { color: #cbd5e1 !important; }

/* Blocs « seance » (plan / compte a rebours / groupes & modalites) */
body.theme-dark .ms-seance-blocks .card,
body.theme-dark .ap2-layout .card,
body.theme-dark .ap2-layout > div > .card {
    background: #16233c !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
body.theme-dark .ap2-layout h4,
body.theme-dark .ap2-layout h5,
body.theme-dark .ap2-subhead,
body.theme-dark .ap2-plan-head h4 { color: #edf4ff !important; }
body.theme-dark .ap2-group { background: #1e293b !important; border-color: #334155 !important; }
body.theme-dark .ap2-group h5 { color: #edf4ff !important; }
body.theme-dark .ap2-group ul { color: #cbd5e1 !important; }
body.theme-dark .ap2-hint,
body.theme-dark .ap2-size-info { color: #94a3b8 !important; }
body.theme-dark .ap2-phase { background: #1e293b !important; border-color: #334155 !important; }
body.theme-dark .ap2-phase .ap2-phase-label { background: #0f1a2e !important; color: #edf4ff !important; }
body.theme-dark .ap2-phase .ap2-phase-min { background: #0f1a2e !important; color: #edf4ff !important; }
body.theme-dark .ap2-clock-display { color: #a78bfa !important; }
body.theme-dark .ap2-plan-head #ms2-plan-refresh,
body.theme-dark .ap2-layout .btn-secondary { background: #1e293b !important; color: #e2e8f0 !important; border-color: #475569 !important; }

/* --- (3) Competences : « Mediation » sur la meme ligne ----------------------- */
.gcrit-checks { gap: 8px 10px !important; align-items: center; }
.gcrit-check { white-space: nowrap; }
.gcrit-check span { white-space: nowrap; }
.comp-cecrl-link { white-space: nowrap; }

/* --- v3.8.3 : prompt envoyé à Albert (relecture) ---------------------------- */
.gcrit-prompt-box { margin-top: 10px; }
.gcrit-prompt-box summary { cursor: pointer; font-size: .9em; color: #475569; }
.gcrit-prompt-box pre {
    white-space: pre-wrap; word-break: break-word;
    font-size: .82em; line-height: 1.5;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
    padding: 10px; margin-top: 8px; color: #0f172a;
}
body.theme-dark .gcrit-prompt-box summary { color: #cbd5e1; }
body.theme-dark .gcrit-prompt-box pre { background: #0f1a2e; border-color: #334155; color: #e2e8f0; }

/* ─── Grille générée : format de référence (modèle Grille_CO_Esenciales) ─── */
.gcrit-modele { padding:18px 20px; margin-top:14px; }
.gcrit-m-titre { font-weight:700; font-size:1.02rem; text-align:center; text-transform:uppercase; margin-bottom:4px; }
.gcrit-m-doc { text-align:center; font-size:.86rem; color:var(--text-soft,#64748b); margin-bottom:6px; }
.gcrit-m-champs { text-align:center; font-size:.84rem; margin-bottom:14px; }
.gcrit-m-h5 { margin:14px 0 6px; font-size:.86rem; text-transform:uppercase; letter-spacing:.04em; color:var(--text-soft,#64748b); }
.gcrit-m-reperes { width:100%; border-collapse:collapse; margin-bottom:6px; }
.gcrit-m-reperes td { border:1px solid var(--border,#cbd5e1); padding:6px 8px; vertical-align:top; font-size:.84rem; }
.gcrit-m-reperes .gcrit-m-lab { width:28%; font-weight:600; background:rgba(148,163,184,.14); }
.gcrit-m-scroll { overflow-x:auto; }
.gcrit-m-grille { width:100%; border-collapse:collapse; table-layout:fixed; min-width:640px; }
.gcrit-m-grille th, .gcrit-m-grille td { border:1px solid var(--border,#cbd5e1); padding:6px 7px; vertical-align:top; font-size:.8rem; text-align:left; }
.gcrit-m-grille thead th { background:rgba(148,163,184,.18); font-weight:700; text-align:center; }
.gcrit-m-lvl { width:64px; text-align:center; font-weight:700; background:rgba(148,163,184,.14); }
.gcrit-m-pts { width:70px; text-align:center; white-space:nowrap; }
.gcrit-m-desc { font-weight:600; margin-bottom:4px; }
.gcrit-m-cr { list-style:none; margin:0; padding:0; }
.gcrit-m-cr li { display:flex; gap:6px; margin:3px 0; line-height:1.35; }
.gcrit-m-case { flex:0 0 auto; }
.gcrit-m-bilan td { background:rgba(148,163,184,.08); font-size:.78rem; }
.gcrit-m-note { font-size:.78rem; font-style:italic; color:var(--text-soft,#64748b); margin:8px 0; }
.gcrit-m-list { margin:0 0 6px 18px; padding:0; font-size:.82rem; }
.gcrit-m-list li { margin:3px 0; line-height:1.4; }
.gcrit-m-total { font-weight:700; margin:12px 0 6px; }
body.theme-dark .gcrit-m-reperes td, body.theme-dark .gcrit-m-grille th, body.theme-dark .gcrit-m-grille td { border-color:rgba(148,163,184,.35); }
body.theme-dark .gcrit-m-grille thead th, body.theme-dark .gcrit-m-lvl, body.theme-dark .gcrit-m-reperes .gcrit-m-lab { background:rgba(148,163,184,.12); }
@media print { .gcrit-m-scroll { overflow:visible; } .gcrit-modele { break-inside:avoid; } }


/* ===== Font Awesome — licence conservée ci-dessous ===== */
/*!
 * Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com
 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
 * Copyright 2023 Fonticons, Inc.
 */
.fa{font-family:var(--fa-style-family,"Font Awesome 6 Free");font-weight:var(--fa-style,900)}.fa,.fa-brands,.fa-classic,.fa-regular,.fa-sharp,.fa-solid,.fab,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:var(--fa-display,inline-block);font-style:normal;font-variant:normal;line-height:1;text-rendering:auto}.fa-classic,.fa-regular,.fa-solid,.far,.fas{font-family:"Font Awesome 6 Free"}.fa-brands,.fab{font-family:"Font Awesome 6 Brands"}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-2xs{font-size:.625em;line-height:.1em;vertical-align:.225em}.fa-xs{font-size:.75em;line-height:.08333em;vertical-align:.125em}.fa-sm{font-size:.875em;line-height:.07143em;vertical-align:.05357em}.fa-lg{font-size:1.25em;line-height:.05em;vertical-align:-.075em}.fa-xl{font-size:1.5em;line-height:.04167em;vertical-align:-.125em}.fa-2xl{font-size:2em;line-height:.03125em;vertical-align:-.1875em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:var(--fa-li-margin,2.5em);padding-left:0}.fa-ul>li{position:relative}.fa-li{left:calc(var(--fa-li-width, 2em)*-1);position:absolute;text-align:center;width:var(--fa-li-width,2em);line-height:inherit}.fa-border{border-radius:var(--fa-border-radius,.1em);border:var(--fa-border-width,.08em) var(--fa-border-style,solid) var(--fa-border-color,#eee);padding:var(--fa-border-padding,.2em .25em .15em)}.fa-pull-left{float:left;margin-right:var(--fa-pull-margin,.3em)}.fa-pull-right{float:right;margin-left:var(--fa-pull-margin,.3em)}.fa-beat{-webkit-animation-name:fa-beat;animation-name:fa-beat;-webkit-animation-delay:var(--fa-animation-delay,0s);animation-delay:var(--fa-animation-delay,0s);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,ease-in-out);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-bounce{-webkit-animation-name:fa-bounce;animation-name:fa-bounce;-webkit-animation-delay:var(--fa-animation-delay,0s);animation-delay:var(--fa-animation-delay,0s);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,cubic-bezier(.28,.84,.42,1));animation-timing-function:var(--fa-animation-timing,cubic-bezier(.28,.84,.42,1))}.fa-fade{-webkit-animation-name:fa-fade;animation-name:fa-fade;-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1));animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-beat-fade,.fa-fade{-webkit-animation-delay:var(--fa-animation-delay,0s);animation-delay:var(--fa-animation-delay,0s);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s)}.fa-beat-fade{-webkit-animation-name:fa-beat-fade;animation-name:fa-beat-fade;-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1));animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-flip{-webkit-animation-name:fa-flip;animation-name:fa-flip;-webkit-animation-delay:var(--fa-animation-delay,0s);animation-delay:var(--fa-animation-delay,0s);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,ease-in-out);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-shake{-webkit-animation-name:fa-shake;animation-name:fa-shake;-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,linear);animation-timing-function:var(--fa-animation-timing,linear)}.fa-shake,.fa-spin{-webkit-animation-delay:var(--fa-animation-delay,0s);animation-delay:var(--fa-animation-delay,0s);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal)}.fa-spin{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-duration:var(--fa-animation-duration,2s);animation-duration:var(--fa-animation-duration,2s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,linear);animation-timing-function:var(--fa-animation-timing,linear)}.fa-spin-reverse{--fa-animation-direction:reverse}.fa-pulse,.fa-spin-pulse{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,steps(8));animation-timing-function:var(--fa-animation-timing,steps(8))}@media (prefers-reduced-motion:reduce){.fa-beat,.fa-beat-fade,.fa-bounce,.fa-fade,.fa-flip,.fa-pulse,.fa-shake,.fa-spin,.fa-spin-pulse{-webkit-animation-delay:-1ms;animation-delay:-1ms;-webkit-animation-duration:1ms;animation-duration:1ms;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s}}@-webkit-keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(var(--fa-beat-scale,1.25));transform:scale(var(--fa-beat-scale,1.25))}}@keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(var(--fa-beat-scale,1.25));transform:scale(var(--fa-beat-scale,1.25))}}@-webkit-keyframes fa-bounce{0%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}10%{-webkit-transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9)) translateY(0);transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9)) translateY(0)}30%{-webkit-transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1)) translateY(var(--fa-bounce-height,-.5em));transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1)) translateY(var(--fa-bounce-height,-.5em))}50%{-webkit-transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95)) translateY(0);transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95)) translateY(0)}57%{-webkit-transform:scale(1) translateY(var(--fa-bounce-rebound,-.125em));transform:scale(1) translateY(var(--fa-bounce-rebound,-.125em))}64%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}to{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}}@keyframes fa-bounce{0%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}10%{-webkit-transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9)) translateY(0);transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9)) translateY(0)}30%{-webkit-transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1)) translateY(var(--fa-bounce-height,-.5em));transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1)) translateY(var(--fa-bounce-height,-.5em))}50%{-webkit-transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95)) translateY(0);transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95)) translateY(0)}57%{-webkit-transform:scale(1) translateY(var(--fa-bounce-rebound,-.125em));transform:scale(1) translateY(var(--fa-bounce-rebound,-.125em))}64%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}to{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}}@-webkit-keyframes fa-fade{50%{opacity:var(--fa-fade-opacity,.4)}}@keyframes fa-fade{50%{opacity:var(--fa-fade-opacity,.4)}}@-webkit-keyframes fa-beat-fade{0%,to{opacity:var(--fa-beat-fade-opacity,.4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(var(--fa-beat-fade-scale,1.125));transform:scale(var(--fa-beat-fade-scale,1.125))}}@keyframes fa-beat-fade{0%,to{opacity:var(--fa-beat-fade-opacity,.4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(var(--fa-beat-fade-scale,1.125));transform:scale(var(--fa-beat-fade-scale,1.125))}}@-webkit-keyframes fa-flip{50%{-webkit-transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg));transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg))}}@keyframes fa-flip{50%{-webkit-transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg));transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg))}}@-webkit-keyframes fa-shake{0%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}4%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}8%,24%{-webkit-transform:rotate(-18deg);transform:rotate(-18deg)}12%,28%{-webkit-transform:rotate(18deg);transform:rotate(18deg)}16%{-webkit-transform:rotate(-22deg);transform:rotate(-22deg)}20%{-webkit-transform:rotate(22deg);transform:rotate(22deg)}32%{-webkit-transform:rotate(-12deg);transform:rotate(-12deg)}36%{-webkit-transform:rotate(12deg);transform:rotate(12deg)}40%,to{-webkit-transform:rotate(0deg);transform:rotate(0deg)}}@keyframes fa-shake{0%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}4%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}8%,24%{-webkit-transform:rotate(-18deg);transform:rotate(-18deg)}12%,28%{-webkit-transform:rotate(18deg);transform:rotate(18deg)}16%{-webkit-transform:rotate(-22deg);transform:rotate(-22deg)}20%{-webkit-transform:rotate(22deg);transform:rotate(22deg)}32%{-webkit-transform:rotate(-12deg);transform:rotate(-12deg)}36%{-webkit-transform:rotate(12deg);transform:rotate(12deg)}40%,to{-webkit-transform:rotate(0deg);transform:rotate(0deg)}}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}.fa-rotate-by{-webkit-transform:rotate(var(--fa-rotate-angle,none));transform:rotate(var(--fa-rotate-angle,none))}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%;z-index:var(--fa-stack-z-index,auto)}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:var(--fa-inverse,#fff)}

.fa-0:before{content:"\30"}.fa-1:before{content:"\31"}.fa-2:before{content:"\32"}.fa-3:before{content:"\33"}.fa-4:before{content:"\34"}.fa-5:before{content:"\35"}.fa-6:before{content:"\36"}.fa-7:before{content:"\37"}.fa-8:before{content:"\38"}.fa-9:before{content:"\39"}.fa-fill-drip:before{content:"\f576"}.fa-arrows-to-circle:before{content:"\e4bd"}.fa-chevron-circle-right:before,.fa-circle-chevron-right:before{content:"\f138"}.fa-at:before{content:"\40"}.fa-trash-alt:before,.fa-trash-can:before{content:"\f2ed"}.fa-text-height:before{content:"\f034"}.fa-user-times:before,.fa-user-xmark:before{content:"\f235"}.fa-stethoscope:before{content:"\f0f1"}.fa-comment-alt:before,.fa-message:before{content:"\f27a"}.fa-info:before{content:"\f129"}.fa-compress-alt:before,.fa-down-left-and-up-right-to-center:before{content:"\f422"}.fa-explosion:before{content:"\e4e9"}.fa-file-alt:before,.fa-file-lines:before,.fa-file-text:before{content:"\f15c"}.fa-wave-square:before{content:"\f83e"}.fa-ring:before{content:"\f70b"}.fa-building-un:before{content:"\e4d9"}.fa-dice-three:before{content:"\f527"}.fa-calendar-alt:before,.fa-calendar-days:before{content:"\f073"}.fa-anchor-circle-check:before{content:"\e4aa"}.fa-building-circle-arrow-right:before{content:"\e4d1"}.fa-volleyball-ball:before,.fa-volleyball:before{content:"\f45f"}.fa-arrows-up-to-line:before{content:"\e4c2"}.fa-sort-desc:before,.fa-sort-down:before{content:"\f0dd"}.fa-circle-minus:before,.fa-minus-circle:before{content:"\f056"}.fa-door-open:before{content:"\f52b"}.fa-right-from-bracket:before,.fa-sign-out-alt:before{content:"\f2f5"}.fa-atom:before{content:"\f5d2"}.fa-soap:before{content:"\e06e"}.fa-heart-music-camera-bolt:before,.fa-icons:before{content:"\f86d"}.fa-microphone-alt-slash:before,.fa-microphone-lines-slash:before{content:"\f539"}.fa-bridge-circle-check:before{content:"\e4c9"}.fa-pump-medical:before{content:"\e06a"}.fa-fingerprint:before{content:"\f577"}.fa-hand-point-right:before{content:"\f0a4"}.fa-magnifying-glass-location:before,.fa-search-location:before{content:"\f689"}.fa-forward-step:before,.fa-step-forward:before{content:"\f051"}.fa-face-smile-beam:before,.fa-smile-beam:before{content:"\f5b8"}.fa-flag-checkered:before{content:"\f11e"}.fa-football-ball:before,.fa-football:before{content:"\f44e"}.fa-school-circle-exclamation:before{content:"\e56c"}.fa-crop:before{content:"\f125"}.fa-angle-double-down:before,.fa-angles-down:before{content:"\f103"}.fa-users-rectangle:before{content:"\e594"}.fa-people-roof:before{content:"\e537"}.fa-people-line:before{content:"\e534"}.fa-beer-mug-empty:before,.fa-beer:before{content:"\f0fc"}.fa-diagram-predecessor:before{content:"\e477"}.fa-arrow-up-long:before,.fa-long-arrow-up:before{content:"\f176"}.fa-burn:before,.fa-fire-flame-simple:before{content:"\f46a"}.fa-male:before,.fa-person:before{content:"\f183"}.fa-laptop:before{content:"\f109"}.fa-file-csv:before{content:"\f6dd"}.fa-menorah:before{content:"\f676"}.fa-truck-plane:before{content:"\e58f"}.fa-record-vinyl:before{content:"\f8d9"}.fa-face-grin-stars:before,.fa-grin-stars:before{content:"\f587"}.fa-bong:before{content:"\f55c"}.fa-pastafarianism:before,.fa-spaghetti-monster-flying:before{content:"\f67b"}.fa-arrow-down-up-across-line:before{content:"\e4af"}.fa-spoon:before,.fa-utensil-spoon:before{content:"\f2e5"}.fa-jar-wheat:before{content:"\e517"}.fa-envelopes-bulk:before,.fa-mail-bulk:before{content:"\f674"}.fa-file-circle-exclamation:before{content:"\e4eb"}.fa-circle-h:before,.fa-hospital-symbol:before{content:"\f47e"}.fa-pager:before{content:"\f815"}.fa-address-book:before,.fa-contact-book:before{content:"\f2b9"}.fa-strikethrough:before{content:"\f0cc"}.fa-k:before{content:"\4b"}.fa-landmark-flag:before{content:"\e51c"}.fa-pencil-alt:before,.fa-pencil:before{content:"\f303"}.fa-backward:before{content:"\f04a"}.fa-caret-right:before{content:"\f0da"}.fa-comments:before{content:"\f086"}.fa-file-clipboard:before,.fa-paste:before{content:"\f0ea"}.fa-code-pull-request:before{content:"\e13c"}.fa-clipboard-list:before{content:"\f46d"}.fa-truck-loading:before,.fa-truck-ramp-box:before{content:"\f4de"}.fa-user-check:before{content:"\f4fc"}.fa-vial-virus:before{content:"\e597"}.fa-sheet-plastic:before{content:"\e571"}.fa-blog:before{content:"\f781"}.fa-user-ninja:before{content:"\f504"}.fa-person-arrow-up-from-line:before{content:"\e539"}.fa-scroll-torah:before,.fa-torah:before{content:"\f6a0"}.fa-broom-ball:before,.fa-quidditch-broom-ball:before,.fa-quidditch:before{content:"\f458"}.fa-toggle-off:before{content:"\f204"}.fa-archive:before,.fa-box-archive:before{content:"\f187"}.fa-person-drowning:before{content:"\e545"}.fa-arrow-down-9-1:before,.fa-sort-numeric-desc:before,.fa-sort-numeric-down-alt:before{content:"\f886"}.fa-face-grin-tongue-squint:before,.fa-grin-tongue-squint:before{content:"\f58a"}.fa-spray-can:before{content:"\f5bd"}.fa-truck-monster:before{content:"\f63b"}.fa-w:before{content:"\57"}.fa-earth-africa:before,.fa-globe-africa:before{content:"\f57c"}.fa-rainbow:before{content:"\f75b"}.fa-circle-notch:before{content:"\f1ce"}.fa-tablet-alt:before,.fa-tablet-screen-button:before{content:"\f3fa"}.fa-paw:before{content:"\f1b0"}.fa-cloud:before{content:"\f0c2"}.fa-trowel-bricks:before{content:"\e58a"}.fa-face-flushed:before,.fa-flushed:before{content:"\f579"}.fa-hospital-user:before{content:"\f80d"}.fa-tent-arrow-left-right:before{content:"\e57f"}.fa-gavel:before,.fa-legal:before{content:"\f0e3"}.fa-binoculars:before{content:"\f1e5"}.fa-microphone-slash:before{content:"\f131"}.fa-box-tissue:before{content:"\e05b"}.fa-motorcycle:before{content:"\f21c"}.fa-bell-concierge:before,.fa-concierge-bell:before{content:"\f562"}.fa-pen-ruler:before,.fa-pencil-ruler:before{content:"\f5ae"}.fa-people-arrows-left-right:before,.fa-people-arrows:before{content:"\e068"}.fa-mars-and-venus-burst:before{content:"\e523"}.fa-caret-square-right:before,.fa-square-caret-right:before{content:"\f152"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-sun-plant-wilt:before{content:"\e57a"}.fa-toilets-portable:before{content:"\e584"}.fa-hockey-puck:before{content:"\f453"}.fa-table:before{content:"\f0ce"}.fa-magnifying-glass-arrow-right:before{content:"\e521"}.fa-digital-tachograph:before,.fa-tachograph-digital:before{content:"\f566"}.fa-users-slash:before{content:"\e073"}.fa-clover:before{content:"\e139"}.fa-mail-reply:before,.fa-reply:before{content:"\f3e5"}.fa-star-and-crescent:before{content:"\f699"}.fa-house-fire:before{content:"\e50c"}.fa-minus-square:before,.fa-square-minus:before{content:"\f146"}.fa-helicopter:before{content:"\f533"}.fa-compass:before{content:"\f14e"}.fa-caret-square-down:before,.fa-square-caret-down:before{content:"\f150"}.fa-file-circle-question:before{content:"\e4ef"}.fa-laptop-code:before{content:"\f5fc"}.fa-swatchbook:before{content:"\f5c3"}.fa-prescription-bottle:before{content:"\f485"}.fa-bars:before,.fa-navicon:before{content:"\f0c9"}.fa-people-group:before{content:"\e533"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-heart-broken:before,.fa-heart-crack:before{content:"\f7a9"}.fa-external-link-square-alt:before,.fa-square-up-right:before{content:"\f360"}.fa-face-kiss-beam:before,.fa-kiss-beam:before{content:"\f597"}.fa-film:before{content:"\f008"}.fa-ruler-horizontal:before{content:"\f547"}.fa-people-robbery:before{content:"\e536"}.fa-lightbulb:before{content:"\f0eb"}.fa-caret-left:before{content:"\f0d9"}.fa-circle-exclamation:before,.fa-exclamation-circle:before{content:"\f06a"}.fa-school-circle-xmark:before{content:"\e56d"}.fa-arrow-right-from-bracket:before,.fa-sign-out:before{content:"\f08b"}.fa-chevron-circle-down:before,.fa-circle-chevron-down:before{content:"\f13a"}.fa-unlock-alt:before,.fa-unlock-keyhole:before{content:"\f13e"}.fa-cloud-showers-heavy:before{content:"\f740"}.fa-headphones-alt:before,.fa-headphones-simple:before{content:"\f58f"}.fa-sitemap:before{content:"\f0e8"}.fa-circle-dollar-to-slot:before,.fa-donate:before{content:"\f4b9"}.fa-memory:before{content:"\f538"}.fa-road-spikes:before{content:"\e568"}.fa-fire-burner:before{content:"\e4f1"}.fa-flag:before{content:"\f024"}.fa-hanukiah:before{content:"\f6e6"}.fa-feather:before{content:"\f52d"}.fa-volume-down:before,.fa-volume-low:before{content:"\f027"}.fa-comment-slash:before{content:"\f4b3"}.fa-cloud-sun-rain:before{content:"\f743"}.fa-compress:before{content:"\f066"}.fa-wheat-alt:before,.fa-wheat-awn:before{content:"\e2cd"}.fa-ankh:before{content:"\f644"}.fa-hands-holding-child:before{content:"\e4fa"}.fa-asterisk:before{content:"\2a"}.fa-check-square:before,.fa-square-check:before{content:"\f14a"}.fa-peseta-sign:before{content:"\e221"}.fa-header:before,.fa-heading:before{content:"\f1dc"}.fa-ghost:before{content:"\f6e2"}.fa-list-squares:before,.fa-list:before{content:"\f03a"}.fa-phone-square-alt:before,.fa-square-phone-flip:before{content:"\f87b"}.fa-cart-plus:before{content:"\f217"}.fa-gamepad:before{content:"\f11b"}.fa-circle-dot:before,.fa-dot-circle:before{content:"\f192"}.fa-dizzy:before,.fa-face-dizzy:before{content:"\f567"}.fa-egg:before{content:"\f7fb"}.fa-house-medical-circle-xmark:before{content:"\e513"}.fa-campground:before{content:"\f6bb"}.fa-folder-plus:before{content:"\f65e"}.fa-futbol-ball:before,.fa-futbol:before,.fa-soccer-ball:before{content:"\f1e3"}.fa-paint-brush:before,.fa-paintbrush:before{content:"\f1fc"}.fa-lock:before{content:"\f023"}.fa-gas-pump:before{content:"\f52f"}.fa-hot-tub-person:before,.fa-hot-tub:before{content:"\f593"}.fa-map-location:before,.fa-map-marked:before{content:"\f59f"}.fa-house-flood-water:before{content:"\e50e"}.fa-tree:before{content:"\f1bb"}.fa-bridge-lock:before{content:"\e4cc"}.fa-sack-dollar:before{content:"\f81d"}.fa-edit:before,.fa-pen-to-square:before{content:"\f044"}.fa-car-side:before{content:"\f5e4"}.fa-share-alt:before,.fa-share-nodes:before{content:"\f1e0"}.fa-heart-circle-minus:before{content:"\e4ff"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-microscope:before{content:"\f610"}.fa-sink:before{content:"\e06d"}.fa-bag-shopping:before,.fa-shopping-bag:before{content:"\f290"}.fa-arrow-down-z-a:before,.fa-sort-alpha-desc:before,.fa-sort-alpha-down-alt:before{content:"\f881"}.fa-mitten:before{content:"\f7b5"}.fa-person-rays:before{content:"\e54d"}.fa-users:before{content:"\f0c0"}.fa-eye-slash:before{content:"\f070"}.fa-flask-vial:before{content:"\e4f3"}.fa-hand-paper:before,.fa-hand:before{content:"\f256"}.fa-om:before{content:"\f679"}.fa-worm:before{content:"\e599"}.fa-house-circle-xmark:before{content:"\e50b"}.fa-plug:before{content:"\f1e6"}.fa-chevron-up:before{content:"\f077"}.fa-hand-spock:before{content:"\f259"}.fa-stopwatch:before{content:"\f2f2"}.fa-face-kiss:before,.fa-kiss:before{content:"\f596"}.fa-bridge-circle-xmark:before{content:"\e4cb"}.fa-face-grin-tongue:before,.fa-grin-tongue:before{content:"\f589"}.fa-chess-bishop:before{content:"\f43a"}.fa-face-grin-wink:before,.fa-grin-wink:before{content:"\f58c"}.fa-deaf:before,.fa-deafness:before,.fa-ear-deaf:before,.fa-hard-of-hearing:before{content:"\f2a4"}.fa-road-circle-check:before{content:"\e564"}.fa-dice-five:before{content:"\f523"}.fa-rss-square:before,.fa-square-rss:before{content:"\f143"}.fa-land-mine-on:before{content:"\e51b"}.fa-i-cursor:before{content:"\f246"}.fa-stamp:before{content:"\f5bf"}.fa-stairs:before{content:"\e289"}.fa-i:before{content:"\49"}.fa-hryvnia-sign:before,.fa-hryvnia:before{content:"\f6f2"}.fa-pills:before{content:"\f484"}.fa-face-grin-wide:before,.fa-grin-alt:before{content:"\f581"}.fa-tooth:before{content:"\f5c9"}.fa-v:before{content:"\56"}.fa-bangladeshi-taka-sign:before{content:"\e2e6"}.fa-bicycle:before{content:"\f206"}.fa-rod-asclepius:before,.fa-rod-snake:before,.fa-staff-aesculapius:before,.fa-staff-snake:before{content:"\e579"}.fa-head-side-cough-slash:before{content:"\e062"}.fa-ambulance:before,.fa-truck-medical:before{content:"\f0f9"}.fa-wheat-awn-circle-exclamation:before{content:"\e598"}.fa-snowman:before{content:"\f7d0"}.fa-mortar-pestle:before{content:"\f5a7"}.fa-road-barrier:before{content:"\e562"}.fa-school:before{content:"\f549"}.fa-igloo:before{content:"\f7ae"}.fa-joint:before{content:"\f595"}.fa-angle-right:before{content:"\f105"}.fa-horse:before{content:"\f6f0"}.fa-q:before{content:"\51"}.fa-g:before{content:"\47"}.fa-notes-medical:before{content:"\f481"}.fa-temperature-2:before,.fa-temperature-half:before,.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\f2c9"}.fa-dong-sign:before{content:"\e169"}.fa-capsules:before{content:"\f46b"}.fa-poo-bolt:before,.fa-poo-storm:before{content:"\f75a"}.fa-face-frown-open:before,.fa-frown-open:before{content:"\f57a"}.fa-hand-point-up:before{content:"\f0a6"}.fa-money-bill:before{content:"\f0d6"}.fa-bookmark:before{content:"\f02e"}.fa-align-justify:before{content:"\f039"}.fa-umbrella-beach:before{content:"\f5ca"}.fa-helmet-un:before{content:"\e503"}.fa-bullseye:before{content:"\f140"}.fa-bacon:before{content:"\f7e5"}.fa-hand-point-down:before{content:"\f0a7"}.fa-arrow-up-from-bracket:before{content:"\e09a"}.fa-folder-blank:before,.fa-folder:before{content:"\f07b"}.fa-file-medical-alt:before,.fa-file-waveform:before{content:"\f478"}.fa-radiation:before{content:"\f7b9"}.fa-chart-simple:before{content:"\e473"}.fa-mars-stroke:before{content:"\f229"}.fa-vial:before{content:"\f492"}.fa-dashboard:before,.fa-gauge-med:before,.fa-gauge:before,.fa-tachometer-alt-average:before{content:"\f624"}.fa-magic-wand-sparkles:before,.fa-wand-magic-sparkles:before{content:"\e2ca"}.fa-e:before{content:"\45"}.fa-pen-alt:before,.fa-pen-clip:before{content:"\f305"}.fa-bridge-circle-exclamation:before{content:"\e4ca"}.fa-user:before{content:"\f007"}.fa-school-circle-check:before{content:"\e56b"}.fa-dumpster:before{content:"\f793"}.fa-shuttle-van:before,.fa-van-shuttle:before{content:"\f5b6"}.fa-building-user:before{content:"\e4da"}.fa-caret-square-left:before,.fa-square-caret-left:before{content:"\f191"}.fa-highlighter:before{content:"\f591"}.fa-key:before{content:"\f084"}.fa-bullhorn:before{content:"\f0a1"}.fa-globe:before{content:"\f0ac"}.fa-synagogue:before{content:"\f69b"}.fa-person-half-dress:before{content:"\e548"}.fa-road-bridge:before{content:"\e563"}.fa-location-arrow:before{content:"\f124"}.fa-c:before{content:"\43"}.fa-tablet-button:before{content:"\f10a"}.fa-building-lock:before{content:"\e4d6"}.fa-pizza-slice:before{content:"\f818"}.fa-money-bill-wave:before{content:"\f53a"}.fa-area-chart:before,.fa-chart-area:before{content:"\f1fe"}.fa-house-flag:before{content:"\e50d"}.fa-person-circle-minus:before{content:"\e540"}.fa-ban:before,.fa-cancel:before{content:"\f05e"}.fa-camera-rotate:before{content:"\e0d8"}.fa-air-freshener:before,.fa-spray-can-sparkles:before{content:"\f5d0"}.fa-star:before{content:"\f005"}.fa-repeat:before{content:"\f363"}.fa-cross:before{content:"\f654"}.fa-box:before{content:"\f466"}.fa-venus-mars:before{content:"\f228"}.fa-arrow-pointer:before,.fa-mouse-pointer:before{content:"\f245"}.fa-expand-arrows-alt:before,.fa-maximize:before{content:"\f31e"}.fa-charging-station:before{content:"\f5e7"}.fa-shapes:before,.fa-triangle-circle-square:before{content:"\f61f"}.fa-random:before,.fa-shuffle:before{content:"\f074"}.fa-person-running:before,.fa-running:before{content:"\f70c"}.fa-mobile-retro:before{content:"\e527"}.fa-grip-lines-vertical:before{content:"\f7a5"}.fa-spider:before{content:"\f717"}.fa-hands-bound:before{content:"\e4f9"}.fa-file-invoice-dollar:before{content:"\f571"}.fa-plane-circle-exclamation:before{content:"\e556"}.fa-x-ray:before{content:"\f497"}.fa-spell-check:before{content:"\f891"}.fa-slash:before{content:"\f715"}.fa-computer-mouse:before,.fa-mouse:before{content:"\f8cc"}.fa-arrow-right-to-bracket:before,.fa-sign-in:before{content:"\f090"}.fa-shop-slash:before,.fa-store-alt-slash:before{content:"\e070"}.fa-server:before{content:"\f233"}.fa-virus-covid-slash:before{content:"\e4a9"}.fa-shop-lock:before{content:"\e4a5"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-blender-phone:before{content:"\f6b6"}.fa-building-wheat:before{content:"\e4db"}.fa-person-breastfeeding:before{content:"\e53a"}.fa-right-to-bracket:before,.fa-sign-in-alt:before{content:"\f2f6"}.fa-venus:before{content:"\f221"}.fa-passport:before{content:"\f5ab"}.fa-heart-pulse:before,.fa-heartbeat:before{content:"\f21e"}.fa-people-carry-box:before,.fa-people-carry:before{content:"\f4ce"}.fa-temperature-high:before{content:"\f769"}.fa-microchip:before{content:"\f2db"}.fa-crown:before{content:"\f521"}.fa-weight-hanging:before{content:"\f5cd"}.fa-xmarks-lines:before{content:"\e59a"}.fa-file-prescription:before{content:"\f572"}.fa-weight-scale:before,.fa-weight:before{content:"\f496"}.fa-user-friends:before,.fa-user-group:before{content:"\f500"}.fa-arrow-up-a-z:before,.fa-sort-alpha-up:before{content:"\f15e"}.fa-chess-knight:before{content:"\f441"}.fa-face-laugh-squint:before,.fa-laugh-squint:before{content:"\f59b"}.fa-wheelchair:before{content:"\f193"}.fa-arrow-circle-up:before,.fa-circle-arrow-up:before{content:"\f0aa"}.fa-toggle-on:before{content:"\f205"}.fa-person-walking:before,.fa-walking:before{content:"\f554"}.fa-l:before{content:"\4c"}.fa-fire:before{content:"\f06d"}.fa-bed-pulse:before,.fa-procedures:before{content:"\f487"}.fa-shuttle-space:before,.fa-space-shuttle:before{content:"\f197"}.fa-face-laugh:before,.fa-laugh:before{content:"\f599"}.fa-folder-open:before{content:"\f07c"}.fa-heart-circle-plus:before{content:"\e500"}.fa-code-fork:before{content:"\e13b"}.fa-city:before{content:"\f64f"}.fa-microphone-alt:before,.fa-microphone-lines:before{content:"\f3c9"}.fa-pepper-hot:before{content:"\f816"}.fa-unlock:before{content:"\f09c"}.fa-colon-sign:before{content:"\e140"}.fa-headset:before{content:"\f590"}.fa-store-slash:before{content:"\e071"}.fa-road-circle-xmark:before{content:"\e566"}.fa-user-minus:before{content:"\f503"}.fa-mars-stroke-up:before,.fa-mars-stroke-v:before{content:"\f22a"}.fa-champagne-glasses:before,.fa-glass-cheers:before{content:"\f79f"}.fa-clipboard:before{content:"\f328"}.fa-house-circle-exclamation:before{content:"\e50a"}.fa-file-arrow-up:before,.fa-file-upload:before{content:"\f574"}.fa-wifi-3:before,.fa-wifi-strong:before,.fa-wifi:before{content:"\f1eb"}.fa-bath:before,.fa-bathtub:before{content:"\f2cd"}.fa-underline:before{content:"\f0cd"}.fa-user-edit:before,.fa-user-pen:before{content:"\f4ff"}.fa-signature:before{content:"\f5b7"}.fa-stroopwafel:before{content:"\f551"}.fa-bold:before{content:"\f032"}.fa-anchor-lock:before{content:"\e4ad"}.fa-building-ngo:before{content:"\e4d7"}.fa-manat-sign:before{content:"\e1d5"}.fa-not-equal:before{content:"\f53e"}.fa-border-style:before,.fa-border-top-left:before{content:"\f853"}.fa-map-location-dot:before,.fa-map-marked-alt:before{content:"\f5a0"}.fa-jedi:before{content:"\f669"}.fa-poll:before,.fa-square-poll-vertical:before{content:"\f681"}.fa-mug-hot:before{content:"\f7b6"}.fa-battery-car:before,.fa-car-battery:before{content:"\f5df"}.fa-gift:before{content:"\f06b"}.fa-dice-two:before{content:"\f528"}.fa-chess-queen:before{content:"\f445"}.fa-glasses:before{content:"\f530"}.fa-chess-board:before{content:"\f43c"}.fa-building-circle-check:before{content:"\e4d2"}.fa-person-chalkboard:before{content:"\e53d"}.fa-mars-stroke-h:before,.fa-mars-stroke-right:before{content:"\f22b"}.fa-hand-back-fist:before,.fa-hand-rock:before{content:"\f255"}.fa-caret-square-up:before,.fa-square-caret-up:before{content:"\f151"}.fa-cloud-showers-water:before{content:"\e4e4"}.fa-bar-chart:before,.fa-chart-bar:before{content:"\f080"}.fa-hands-bubbles:before,.fa-hands-wash:before{content:"\e05e"}.fa-less-than-equal:before{content:"\f537"}.fa-train:before{content:"\f238"}.fa-eye-low-vision:before,.fa-low-vision:before{content:"\f2a8"}.fa-crow:before{content:"\f520"}.fa-sailboat:before{content:"\e445"}.fa-window-restore:before{content:"\f2d2"}.fa-plus-square:before,.fa-square-plus:before{content:"\f0fe"}.fa-torii-gate:before{content:"\f6a1"}.fa-frog:before{content:"\f52e"}.fa-bucket:before{content:"\e4cf"}.fa-image:before{content:"\f03e"}.fa-microphone:before{content:"\f130"}.fa-cow:before{content:"\f6c8"}.fa-caret-up:before{content:"\f0d8"}.fa-screwdriver:before{content:"\f54a"}.fa-folder-closed:before{content:"\e185"}.fa-house-tsunami:before{content:"\e515"}.fa-square-nfi:before{content:"\e576"}.fa-arrow-up-from-ground-water:before{content:"\e4b5"}.fa-glass-martini-alt:before,.fa-martini-glass:before{content:"\f57b"}.fa-rotate-back:before,.fa-rotate-backward:before,.fa-rotate-left:before,.fa-undo-alt:before{content:"\f2ea"}.fa-columns:before,.fa-table-columns:before{content:"\f0db"}.fa-lemon:before{content:"\f094"}.fa-head-side-mask:before{content:"\e063"}.fa-handshake:before{content:"\f2b5"}.fa-gem:before{content:"\f3a5"}.fa-dolly-box:before,.fa-dolly:before{content:"\f472"}.fa-smoking:before{content:"\f48d"}.fa-compress-arrows-alt:before,.fa-minimize:before{content:"\f78c"}.fa-monument:before{content:"\f5a6"}.fa-snowplow:before{content:"\f7d2"}.fa-angle-double-right:before,.fa-angles-right:before{content:"\f101"}.fa-cannabis:before{content:"\f55f"}.fa-circle-play:before,.fa-play-circle:before{content:"\f144"}.fa-tablets:before{content:"\f490"}.fa-ethernet:before{content:"\f796"}.fa-eur:before,.fa-euro-sign:before,.fa-euro:before{content:"\f153"}.fa-chair:before{content:"\f6c0"}.fa-check-circle:before,.fa-circle-check:before{content:"\f058"}.fa-circle-stop:before,.fa-stop-circle:before{content:"\f28d"}.fa-compass-drafting:before,.fa-drafting-compass:before{content:"\f568"}.fa-plate-wheat:before{content:"\e55a"}.fa-icicles:before{content:"\f7ad"}.fa-person-shelter:before{content:"\e54f"}.fa-neuter:before{content:"\f22c"}.fa-id-badge:before{content:"\f2c1"}.fa-marker:before{content:"\f5a1"}.fa-face-laugh-beam:before,.fa-laugh-beam:before{content:"\f59a"}.fa-helicopter-symbol:before{content:"\e502"}.fa-universal-access:before{content:"\f29a"}.fa-chevron-circle-up:before,.fa-circle-chevron-up:before{content:"\f139"}.fa-lari-sign:before{content:"\e1c8"}.fa-volcano:before{content:"\f770"}.fa-person-walking-dashed-line-arrow-right:before{content:"\e553"}.fa-gbp:before,.fa-pound-sign:before,.fa-sterling-sign:before{content:"\f154"}.fa-viruses:before{content:"\e076"}.fa-square-person-confined:before{content:"\e577"}.fa-user-tie:before{content:"\f508"}.fa-arrow-down-long:before,.fa-long-arrow-down:before{content:"\f175"}.fa-tent-arrow-down-to-line:before{content:"\e57e"}.fa-certificate:before{content:"\f0a3"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-suitcase:before{content:"\f0f2"}.fa-person-skating:before,.fa-skating:before{content:"\f7c5"}.fa-filter-circle-dollar:before,.fa-funnel-dollar:before{content:"\f662"}.fa-camera-retro:before{content:"\f083"}.fa-arrow-circle-down:before,.fa-circle-arrow-down:before{content:"\f0ab"}.fa-arrow-right-to-file:before,.fa-file-import:before{content:"\f56f"}.fa-external-link-square:before,.fa-square-arrow-up-right:before{content:"\f14c"}.fa-box-open:before{content:"\f49e"}.fa-scroll:before{content:"\f70e"}.fa-spa:before{content:"\f5bb"}.fa-location-pin-lock:before{content:"\e51f"}.fa-pause:before{content:"\f04c"}.fa-hill-avalanche:before{content:"\e507"}.fa-temperature-0:before,.fa-temperature-empty:before,.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\f2cb"}.fa-bomb:before{content:"\f1e2"}.fa-registered:before{content:"\f25d"}.fa-address-card:before,.fa-contact-card:before,.fa-vcard:before{content:"\f2bb"}.fa-balance-scale-right:before,.fa-scale-unbalanced-flip:before{content:"\f516"}.fa-subscript:before{content:"\f12c"}.fa-diamond-turn-right:before,.fa-directions:before{content:"\f5eb"}.fa-burst:before{content:"\e4dc"}.fa-house-laptop:before,.fa-laptop-house:before{content:"\e066"}.fa-face-tired:before,.fa-tired:before{content:"\f5c8"}.fa-money-bills:before{content:"\e1f3"}.fa-smog:before{content:"\f75f"}.fa-crutch:before{content:"\f7f7"}.fa-cloud-arrow-up:before,.fa-cloud-upload-alt:before,.fa-cloud-upload:before{content:"\f0ee"}.fa-palette:before{content:"\f53f"}.fa-arrows-turn-right:before{content:"\e4c0"}.fa-vest:before{content:"\e085"}.fa-ferry:before{content:"\e4ea"}.fa-arrows-down-to-people:before{content:"\e4b9"}.fa-seedling:before,.fa-sprout:before{content:"\f4d8"}.fa-arrows-alt-h:before,.fa-left-right:before{content:"\f337"}.fa-boxes-packing:before{content:"\e4c7"}.fa-arrow-circle-left:before,.fa-circle-arrow-left:before{content:"\f0a8"}.fa-group-arrows-rotate:before{content:"\e4f6"}.fa-bowl-food:before{content:"\e4c6"}.fa-candy-cane:before{content:"\f786"}.fa-arrow-down-wide-short:before,.fa-sort-amount-asc:before,.fa-sort-amount-down:before{content:"\f160"}.fa-cloud-bolt:before,.fa-thunderstorm:before{content:"\f76c"}.fa-remove-format:before,.fa-text-slash:before{content:"\f87d"}.fa-face-smile-wink:before,.fa-smile-wink:before{content:"\f4da"}.fa-file-word:before{content:"\f1c2"}.fa-file-powerpoint:before{content:"\f1c4"}.fa-arrows-h:before,.fa-arrows-left-right:before{content:"\f07e"}.fa-house-lock:before{content:"\e510"}.fa-cloud-arrow-down:before,.fa-cloud-download-alt:before,.fa-cloud-download:before{content:"\f0ed"}.fa-children:before{content:"\e4e1"}.fa-blackboard:before,.fa-chalkboard:before{content:"\f51b"}.fa-user-alt-slash:before,.fa-user-large-slash:before{content:"\f4fa"}.fa-envelope-open:before{content:"\f2b6"}.fa-handshake-alt-slash:before,.fa-handshake-simple-slash:before{content:"\e05f"}.fa-mattress-pillow:before{content:"\e525"}.fa-guarani-sign:before{content:"\e19a"}.fa-arrows-rotate:before,.fa-refresh:before,.fa-sync:before{content:"\f021"}.fa-fire-extinguisher:before{content:"\f134"}.fa-cruzeiro-sign:before{content:"\e152"}.fa-greater-than-equal:before{content:"\f532"}.fa-shield-alt:before,.fa-shield-halved:before{content:"\f3ed"}.fa-atlas:before,.fa-book-atlas:before{content:"\f558"}.fa-virus:before{content:"\e074"}.fa-envelope-circle-check:before{content:"\e4e8"}.fa-layer-group:before{content:"\f5fd"}.fa-arrows-to-dot:before{content:"\e4be"}.fa-archway:before{content:"\f557"}.fa-heart-circle-check:before{content:"\e4fd"}.fa-house-chimney-crack:before,.fa-house-damage:before{content:"\f6f1"}.fa-file-archive:before,.fa-file-zipper:before{content:"\f1c6"}.fa-square:before{content:"\f0c8"}.fa-glass-martini:before,.fa-martini-glass-empty:before{content:"\f000"}.fa-couch:before{content:"\f4b8"}.fa-cedi-sign:before{content:"\e0df"}.fa-italic:before{content:"\f033"}.fa-church:before{content:"\f51d"}.fa-comments-dollar:before{content:"\f653"}.fa-democrat:before{content:"\f747"}.fa-z:before{content:"\5a"}.fa-person-skiing:before,.fa-skiing:before{content:"\f7c9"}.fa-road-lock:before{content:"\e567"}.fa-a:before{content:"\41"}.fa-temperature-arrow-down:before,.fa-temperature-down:before{content:"\e03f"}.fa-feather-alt:before,.fa-feather-pointed:before{content:"\f56b"}.fa-p:before{content:"\50"}.fa-snowflake:before{content:"\f2dc"}.fa-newspaper:before{content:"\f1ea"}.fa-ad:before,.fa-rectangle-ad:before{content:"\f641"}.fa-arrow-circle-right:before,.fa-circle-arrow-right:before{content:"\f0a9"}.fa-filter-circle-xmark:before{content:"\e17b"}.fa-locust:before{content:"\e520"}.fa-sort:before,.fa-unsorted:before{content:"\f0dc"}.fa-list-1-2:before,.fa-list-numeric:before,.fa-list-ol:before{content:"\f0cb"}.fa-person-dress-burst:before{content:"\e544"}.fa-money-check-alt:before,.fa-money-check-dollar:before{content:"\f53d"}.fa-vector-square:before{content:"\f5cb"}.fa-bread-slice:before{content:"\f7ec"}.fa-language:before{content:"\f1ab"}.fa-face-kiss-wink-heart:before,.fa-kiss-wink-heart:before{content:"\f598"}.fa-filter:before{content:"\f0b0"}.fa-question:before{content:"\3f"}.fa-file-signature:before{content:"\f573"}.fa-arrows-alt:before,.fa-up-down-left-right:before{content:"\f0b2"}.fa-house-chimney-user:before{content:"\e065"}.fa-hand-holding-heart:before{content:"\f4be"}.fa-puzzle-piece:before{content:"\f12e"}.fa-money-check:before{content:"\f53c"}.fa-star-half-alt:before,.fa-star-half-stroke:before{content:"\f5c0"}.fa-code:before{content:"\f121"}.fa-glass-whiskey:before,.fa-whiskey-glass:before{content:"\f7a0"}.fa-building-circle-exclamation:before{content:"\e4d3"}.fa-magnifying-glass-chart:before{content:"\e522"}.fa-arrow-up-right-from-square:before,.fa-external-link:before{content:"\f08e"}.fa-cubes-stacked:before{content:"\e4e6"}.fa-krw:before,.fa-won-sign:before,.fa-won:before{content:"\f159"}.fa-virus-covid:before{content:"\e4a8"}.fa-austral-sign:before{content:"\e0a9"}.fa-f:before{content:"\46"}.fa-leaf:before{content:"\f06c"}.fa-road:before{content:"\f018"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-person-circle-plus:before{content:"\e541"}.fa-chart-pie:before,.fa-pie-chart:before{content:"\f200"}.fa-bolt-lightning:before{content:"\e0b7"}.fa-sack-xmark:before{content:"\e56a"}.fa-file-excel:before{content:"\f1c3"}.fa-file-contract:before{content:"\f56c"}.fa-fish-fins:before{content:"\e4f2"}.fa-building-flag:before{content:"\e4d5"}.fa-face-grin-beam:before,.fa-grin-beam:before{content:"\f582"}.fa-object-ungroup:before{content:"\f248"}.fa-poop:before{content:"\f619"}.fa-location-pin:before,.fa-map-marker:before{content:"\f041"}.fa-kaaba:before{content:"\f66b"}.fa-toilet-paper:before{content:"\f71e"}.fa-hard-hat:before,.fa-hat-hard:before,.fa-helmet-safety:before{content:"\f807"}.fa-eject:before{content:"\f052"}.fa-arrow-alt-circle-right:before,.fa-circle-right:before{content:"\f35a"}.fa-plane-circle-check:before{content:"\e555"}.fa-face-rolling-eyes:before,.fa-meh-rolling-eyes:before{content:"\f5a5"}.fa-object-group:before{content:"\f247"}.fa-chart-line:before,.fa-line-chart:before{content:"\f201"}.fa-mask-ventilator:before{content:"\e524"}.fa-arrow-right:before{content:"\f061"}.fa-map-signs:before,.fa-signs-post:before{content:"\f277"}.fa-cash-register:before{content:"\f788"}.fa-person-circle-question:before{content:"\e542"}.fa-h:before{content:"\48"}.fa-tarp:before{content:"\e57b"}.fa-screwdriver-wrench:before,.fa-tools:before{content:"\f7d9"}.fa-arrows-to-eye:before{content:"\e4bf"}.fa-plug-circle-bolt:before{content:"\e55b"}.fa-heart:before{content:"\f004"}.fa-mars-and-venus:before{content:"\f224"}.fa-home-user:before,.fa-house-user:before{content:"\e1b0"}.fa-dumpster-fire:before{content:"\f794"}.fa-house-crack:before{content:"\e3b1"}.fa-cocktail:before,.fa-martini-glass-citrus:before{content:"\f561"}.fa-face-surprise:before,.fa-surprise:before{content:"\f5c2"}.fa-bottle-water:before{content:"\e4c5"}.fa-circle-pause:before,.fa-pause-circle:before{content:"\f28b"}.fa-toilet-paper-slash:before{content:"\e072"}.fa-apple-alt:before,.fa-apple-whole:before{content:"\f5d1"}.fa-kitchen-set:before{content:"\e51a"}.fa-r:before{content:"\52"}.fa-temperature-1:before,.fa-temperature-quarter:before,.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\f2ca"}.fa-cube:before{content:"\f1b2"}.fa-bitcoin-sign:before{content:"\e0b4"}.fa-shield-dog:before{content:"\e573"}.fa-solar-panel:before{content:"\f5ba"}.fa-lock-open:before{content:"\f3c1"}.fa-elevator:before{content:"\e16d"}.fa-money-bill-transfer:before{content:"\e528"}.fa-money-bill-trend-up:before{content:"\e529"}.fa-house-flood-water-circle-arrow-right:before{content:"\e50f"}.fa-poll-h:before,.fa-square-poll-horizontal:before{content:"\f682"}.fa-circle:before{content:"\f111"}.fa-backward-fast:before,.fa-fast-backward:before{content:"\f049"}.fa-recycle:before{content:"\f1b8"}.fa-user-astronaut:before{content:"\f4fb"}.fa-plane-slash:before{content:"\e069"}.fa-trademark:before{content:"\f25c"}.fa-basketball-ball:before,.fa-basketball:before{content:"\f434"}.fa-satellite-dish:before{content:"\f7c0"}.fa-arrow-alt-circle-up:before,.fa-circle-up:before{content:"\f35b"}.fa-mobile-alt:before,.fa-mobile-screen-button:before{content:"\f3cd"}.fa-volume-high:before,.fa-volume-up:before{content:"\f028"}.fa-users-rays:before{content:"\e593"}.fa-wallet:before{content:"\f555"}.fa-clipboard-check:before{content:"\f46c"}.fa-file-audio:before{content:"\f1c7"}.fa-burger:before,.fa-hamburger:before{content:"\f805"}.fa-wrench:before{content:"\f0ad"}.fa-bugs:before{content:"\e4d0"}.fa-rupee-sign:before,.fa-rupee:before{content:"\f156"}.fa-file-image:before{content:"\f1c5"}.fa-circle-question:before,.fa-question-circle:before{content:"\f059"}.fa-plane-departure:before{content:"\f5b0"}.fa-handshake-slash:before{content:"\e060"}.fa-book-bookmark:before{content:"\e0bb"}.fa-code-branch:before{content:"\f126"}.fa-hat-cowboy:before{content:"\f8c0"}.fa-bridge:before{content:"\e4c8"}.fa-phone-alt:before,.fa-phone-flip:before{content:"\f879"}.fa-truck-front:before{content:"\e2b7"}.fa-cat:before{content:"\f6be"}.fa-anchor-circle-exclamation:before{content:"\e4ab"}.fa-truck-field:before{content:"\e58d"}.fa-route:before{content:"\f4d7"}.fa-clipboard-question:before{content:"\e4e3"}.fa-panorama:before{content:"\e209"}.fa-comment-medical:before{content:"\f7f5"}.fa-teeth-open:before{content:"\f62f"}.fa-file-circle-minus:before{content:"\e4ed"}.fa-tags:before{content:"\f02c"}.fa-wine-glass:before{content:"\f4e3"}.fa-fast-forward:before,.fa-forward-fast:before{content:"\f050"}.fa-face-meh-blank:before,.fa-meh-blank:before{content:"\f5a4"}.fa-parking:before,.fa-square-parking:before{content:"\f540"}.fa-house-signal:before{content:"\e012"}.fa-bars-progress:before,.fa-tasks-alt:before{content:"\f828"}.fa-faucet-drip:before{content:"\e006"}.fa-cart-flatbed:before,.fa-dolly-flatbed:before{content:"\f474"}.fa-ban-smoking:before,.fa-smoking-ban:before{content:"\f54d"}.fa-terminal:before{content:"\f120"}.fa-mobile-button:before{content:"\f10b"}.fa-house-medical-flag:before{content:"\e514"}.fa-basket-shopping:before,.fa-shopping-basket:before{content:"\f291"}.fa-tape:before{content:"\f4db"}.fa-bus-alt:before,.fa-bus-simple:before{content:"\f55e"}.fa-eye:before{content:"\f06e"}.fa-face-sad-cry:before,.fa-sad-cry:before{content:"\f5b3"}.fa-audio-description:before{content:"\f29e"}.fa-person-military-to-person:before{content:"\e54c"}.fa-file-shield:before{content:"\e4f0"}.fa-user-slash:before{content:"\f506"}.fa-pen:before{content:"\f304"}.fa-tower-observation:before{content:"\e586"}.fa-file-code:before{content:"\f1c9"}.fa-signal-5:before,.fa-signal-perfect:before,.fa-signal:before{content:"\f012"}.fa-bus:before{content:"\f207"}.fa-heart-circle-xmark:before{content:"\e501"}.fa-home-lg:before,.fa-house-chimney:before{content:"\e3af"}.fa-window-maximize:before{content:"\f2d0"}.fa-face-frown:before,.fa-frown:before{content:"\f119"}.fa-prescription:before{content:"\f5b1"}.fa-shop:before,.fa-store-alt:before{content:"\f54f"}.fa-floppy-disk:before,.fa-save:before{content:"\f0c7"}.fa-vihara:before{content:"\f6a7"}.fa-balance-scale-left:before,.fa-scale-unbalanced:before{content:"\f515"}.fa-sort-asc:before,.fa-sort-up:before{content:"\f0de"}.fa-comment-dots:before,.fa-commenting:before{content:"\f4ad"}.fa-plant-wilt:before{content:"\e5aa"}.fa-diamond:before{content:"\f219"}.fa-face-grin-squint:before,.fa-grin-squint:before{content:"\f585"}.fa-hand-holding-dollar:before,.fa-hand-holding-usd:before{content:"\f4c0"}.fa-bacterium:before{content:"\e05a"}.fa-hand-pointer:before{content:"\f25a"}.fa-drum-steelpan:before{content:"\f56a"}.fa-hand-scissors:before{content:"\f257"}.fa-hands-praying:before,.fa-praying-hands:before{content:"\f684"}.fa-arrow-right-rotate:before,.fa-arrow-rotate-forward:before,.fa-arrow-rotate-right:before,.fa-redo:before{content:"\f01e"}.fa-biohazard:before{content:"\f780"}.fa-location-crosshairs:before,.fa-location:before{content:"\f601"}.fa-mars-double:before{content:"\f227"}.fa-child-dress:before{content:"\e59c"}.fa-users-between-lines:before{content:"\e591"}.fa-lungs-virus:before{content:"\e067"}.fa-face-grin-tears:before,.fa-grin-tears:before{content:"\f588"}.fa-phone:before{content:"\f095"}.fa-calendar-times:before,.fa-calendar-xmark:before{content:"\f273"}.fa-child-reaching:before{content:"\e59d"}.fa-head-side-virus:before{content:"\e064"}.fa-user-cog:before,.fa-user-gear:before{content:"\f4fe"}.fa-arrow-up-1-9:before,.fa-sort-numeric-up:before{content:"\f163"}.fa-door-closed:before{content:"\f52a"}.fa-shield-virus:before{content:"\e06c"}.fa-dice-six:before{content:"\f526"}.fa-mosquito-net:before{content:"\e52c"}.fa-bridge-water:before{content:"\e4ce"}.fa-person-booth:before{content:"\f756"}.fa-text-width:before{content:"\f035"}.fa-hat-wizard:before{content:"\f6e8"}.fa-pen-fancy:before{content:"\f5ac"}.fa-digging:before,.fa-person-digging:before{content:"\f85e"}.fa-trash:before{content:"\f1f8"}.fa-gauge-simple-med:before,.fa-gauge-simple:before,.fa-tachometer-average:before{content:"\f629"}.fa-book-medical:before{content:"\f7e6"}.fa-poo:before{content:"\f2fe"}.fa-quote-right-alt:before,.fa-quote-right:before{content:"\f10e"}.fa-shirt:before,.fa-t-shirt:before,.fa-tshirt:before{content:"\f553"}.fa-cubes:before{content:"\f1b3"}.fa-divide:before{content:"\f529"}.fa-tenge-sign:before,.fa-tenge:before{content:"\f7d7"}.fa-headphones:before{content:"\f025"}.fa-hands-holding:before{content:"\f4c2"}.fa-hands-clapping:before{content:"\e1a8"}.fa-republican:before{content:"\f75e"}.fa-arrow-left:before{content:"\f060"}.fa-person-circle-xmark:before{content:"\e543"}.fa-ruler:before{content:"\f545"}.fa-align-left:before{content:"\f036"}.fa-dice-d6:before{content:"\f6d1"}.fa-restroom:before{content:"\f7bd"}.fa-j:before{content:"\4a"}.fa-users-viewfinder:before{content:"\e595"}.fa-file-video:before{content:"\f1c8"}.fa-external-link-alt:before,.fa-up-right-from-square:before{content:"\f35d"}.fa-table-cells:before,.fa-th:before{content:"\f00a"}.fa-file-pdf:before{content:"\f1c1"}.fa-bible:before,.fa-book-bible:before{content:"\f647"}.fa-o:before{content:"\4f"}.fa-medkit:before,.fa-suitcase-medical:before{content:"\f0fa"}.fa-user-secret:before{content:"\f21b"}.fa-otter:before{content:"\f700"}.fa-female:before,.fa-person-dress:before{content:"\f182"}.fa-comment-dollar:before{content:"\f651"}.fa-briefcase-clock:before,.fa-business-time:before{content:"\f64a"}.fa-table-cells-large:before,.fa-th-large:before{content:"\f009"}.fa-book-tanakh:before,.fa-tanakh:before{content:"\f827"}.fa-phone-volume:before,.fa-volume-control-phone:before{content:"\f2a0"}.fa-hat-cowboy-side:before{content:"\f8c1"}.fa-clipboard-user:before{content:"\f7f3"}.fa-child:before{content:"\f1ae"}.fa-lira-sign:before{content:"\f195"}.fa-satellite:before{content:"\f7bf"}.fa-plane-lock:before{content:"\e558"}.fa-tag:before{content:"\f02b"}.fa-comment:before{content:"\f075"}.fa-birthday-cake:before,.fa-cake-candles:before,.fa-cake:before{content:"\f1fd"}.fa-envelope:before{content:"\f0e0"}.fa-angle-double-up:before,.fa-angles-up:before{content:"\f102"}.fa-paperclip:before{content:"\f0c6"}.fa-arrow-right-to-city:before{content:"\e4b3"}.fa-ribbon:before{content:"\f4d6"}.fa-lungs:before{content:"\f604"}.fa-arrow-up-9-1:before,.fa-sort-numeric-up-alt:before{content:"\f887"}.fa-litecoin-sign:before{content:"\e1d3"}.fa-border-none:before{content:"\f850"}.fa-circle-nodes:before{content:"\e4e2"}.fa-parachute-box:before{content:"\f4cd"}.fa-indent:before{content:"\f03c"}.fa-truck-field-un:before{content:"\e58e"}.fa-hourglass-empty:before,.fa-hourglass:before{content:"\f254"}.fa-mountain:before{content:"\f6fc"}.fa-user-doctor:before,.fa-user-md:before{content:"\f0f0"}.fa-circle-info:before,.fa-info-circle:before{content:"\f05a"}.fa-cloud-meatball:before{content:"\f73b"}.fa-camera-alt:before,.fa-camera:before{content:"\f030"}.fa-square-virus:before{content:"\e578"}.fa-meteor:before{content:"\f753"}.fa-car-on:before{content:"\e4dd"}.fa-sleigh:before{content:"\f7cc"}.fa-arrow-down-1-9:before,.fa-sort-numeric-asc:before,.fa-sort-numeric-down:before{content:"\f162"}.fa-hand-holding-droplet:before,.fa-hand-holding-water:before{content:"\f4c1"}.fa-water:before{content:"\f773"}.fa-calendar-check:before{content:"\f274"}.fa-braille:before{content:"\f2a1"}.fa-prescription-bottle-alt:before,.fa-prescription-bottle-medical:before{content:"\f486"}.fa-landmark:before{content:"\f66f"}.fa-truck:before{content:"\f0d1"}.fa-crosshairs:before{content:"\f05b"}.fa-person-cane:before{content:"\e53c"}.fa-tent:before{content:"\e57d"}.fa-vest-patches:before{content:"\e086"}.fa-check-double:before{content:"\f560"}.fa-arrow-down-a-z:before,.fa-sort-alpha-asc:before,.fa-sort-alpha-down:before{content:"\f15d"}.fa-money-bill-wheat:before{content:"\e52a"}.fa-cookie:before{content:"\f563"}.fa-arrow-left-rotate:before,.fa-arrow-rotate-back:before,.fa-arrow-rotate-backward:before,.fa-arrow-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-hard-drive:before,.fa-hdd:before{content:"\f0a0"}.fa-face-grin-squint-tears:before,.fa-grin-squint-tears:before{content:"\f586"}.fa-dumbbell:before{content:"\f44b"}.fa-list-alt:before,.fa-rectangle-list:before{content:"\f022"}.fa-tarp-droplet:before{content:"\e57c"}.fa-house-medical-circle-check:before{content:"\e511"}.fa-person-skiing-nordic:before,.fa-skiing-nordic:before{content:"\f7ca"}.fa-calendar-plus:before{content:"\f271"}.fa-plane-arrival:before{content:"\f5af"}.fa-arrow-alt-circle-left:before,.fa-circle-left:before{content:"\f359"}.fa-subway:before,.fa-train-subway:before{content:"\f239"}.fa-chart-gantt:before{content:"\e0e4"}.fa-indian-rupee-sign:before,.fa-indian-rupee:before,.fa-inr:before{content:"\e1bc"}.fa-crop-alt:before,.fa-crop-simple:before{content:"\f565"}.fa-money-bill-1:before,.fa-money-bill-alt:before{content:"\f3d1"}.fa-left-long:before,.fa-long-arrow-alt-left:before{content:"\f30a"}.fa-dna:before{content:"\f471"}.fa-virus-slash:before{content:"\e075"}.fa-minus:before,.fa-subtract:before{content:"\f068"}.fa-chess:before{content:"\f439"}.fa-arrow-left-long:before,.fa-long-arrow-left:before{content:"\f177"}.fa-plug-circle-check:before{content:"\e55c"}.fa-street-view:before{content:"\f21d"}.fa-franc-sign:before{content:"\e18f"}.fa-volume-off:before{content:"\f026"}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before,.fa-hands-american-sign-language-interpreting:before,.fa-hands-asl-interpreting:before{content:"\f2a3"}.fa-cog:before,.fa-gear:before{content:"\f013"}.fa-droplet-slash:before,.fa-tint-slash:before{content:"\f5c7"}.fa-mosque:before{content:"\f678"}.fa-mosquito:before{content:"\e52b"}.fa-star-of-david:before{content:"\f69a"}.fa-person-military-rifle:before{content:"\e54b"}.fa-cart-shopping:before,.fa-shopping-cart:before{content:"\f07a"}.fa-vials:before{content:"\f493"}.fa-plug-circle-plus:before{content:"\e55f"}.fa-place-of-worship:before{content:"\f67f"}.fa-grip-vertical:before{content:"\f58e"}.fa-arrow-turn-up:before,.fa-level-up:before{content:"\f148"}.fa-u:before{content:"\55"}.fa-square-root-alt:before,.fa-square-root-variable:before{content:"\f698"}.fa-clock-four:before,.fa-clock:before{content:"\f017"}.fa-backward-step:before,.fa-step-backward:before{content:"\f048"}.fa-pallet:before{content:"\f482"}.fa-faucet:before{content:"\e005"}.fa-baseball-bat-ball:before{content:"\f432"}.fa-s:before{content:"\53"}.fa-timeline:before{content:"\e29c"}.fa-keyboard:before{content:"\f11c"}.fa-caret-down:before{content:"\f0d7"}.fa-clinic-medical:before,.fa-house-chimney-medical:before{content:"\f7f2"}.fa-temperature-3:before,.fa-temperature-three-quarters:before,.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-mobile-android-alt:before,.fa-mobile-screen:before{content:"\f3cf"}.fa-plane-up:before{content:"\e22d"}.fa-piggy-bank:before{content:"\f4d3"}.fa-battery-3:before,.fa-battery-half:before{content:"\f242"}.fa-mountain-city:before{content:"\e52e"}.fa-coins:before{content:"\f51e"}.fa-khanda:before{content:"\f66d"}.fa-sliders-h:before,.fa-sliders:before{content:"\f1de"}.fa-folder-tree:before{content:"\f802"}.fa-network-wired:before{content:"\f6ff"}.fa-map-pin:before{content:"\f276"}.fa-hamsa:before{content:"\f665"}.fa-cent-sign:before{content:"\e3f5"}.fa-flask:before{content:"\f0c3"}.fa-person-pregnant:before{content:"\e31e"}.fa-wand-sparkles:before{content:"\f72b"}.fa-ellipsis-v:before,.fa-ellipsis-vertical:before{content:"\f142"}.fa-ticket:before{content:"\f145"}.fa-power-off:before{content:"\f011"}.fa-long-arrow-alt-right:before,.fa-right-long:before{content:"\f30b"}.fa-flag-usa:before{content:"\f74d"}.fa-laptop-file:before{content:"\e51d"}.fa-teletype:before,.fa-tty:before{content:"\f1e4"}.fa-diagram-next:before{content:"\e476"}.fa-person-rifle:before{content:"\e54e"}.fa-house-medical-circle-exclamation:before{content:"\e512"}.fa-closed-captioning:before{content:"\f20a"}.fa-hiking:before,.fa-person-hiking:before{content:"\f6ec"}.fa-venus-double:before{content:"\f226"}.fa-images:before{content:"\f302"}.fa-calculator:before{content:"\f1ec"}.fa-people-pulling:before{content:"\e535"}.fa-n:before{content:"\4e"}.fa-cable-car:before,.fa-tram:before{content:"\f7da"}.fa-cloud-rain:before{content:"\f73d"}.fa-building-circle-xmark:before{content:"\e4d4"}.fa-ship:before{content:"\f21a"}.fa-arrows-down-to-line:before{content:"\e4b8"}.fa-download:before{content:"\f019"}.fa-face-grin:before,.fa-grin:before{content:"\f580"}.fa-backspace:before,.fa-delete-left:before{content:"\f55a"}.fa-eye-dropper-empty:before,.fa-eye-dropper:before,.fa-eyedropper:before{content:"\f1fb"}.fa-file-circle-check:before{content:"\e5a0"}.fa-forward:before{content:"\f04e"}.fa-mobile-android:before,.fa-mobile-phone:before,.fa-mobile:before{content:"\f3ce"}.fa-face-meh:before,.fa-meh:before{content:"\f11a"}.fa-align-center:before{content:"\f037"}.fa-book-dead:before,.fa-book-skull:before{content:"\f6b7"}.fa-drivers-license:before,.fa-id-card:before{content:"\f2c2"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-heart-circle-exclamation:before{content:"\e4fe"}.fa-home-alt:before,.fa-home-lg-alt:before,.fa-home:before,.fa-house:before{content:"\f015"}.fa-calendar-week:before{content:"\f784"}.fa-laptop-medical:before{content:"\f812"}.fa-b:before{content:"\42"}.fa-file-medical:before{content:"\f477"}.fa-dice-one:before{content:"\f525"}.fa-kiwi-bird:before{content:"\f535"}.fa-arrow-right-arrow-left:before,.fa-exchange:before{content:"\f0ec"}.fa-redo-alt:before,.fa-rotate-forward:before,.fa-rotate-right:before{content:"\f2f9"}.fa-cutlery:before,.fa-utensils:before{content:"\f2e7"}.fa-arrow-up-wide-short:before,.fa-sort-amount-up:before{content:"\f161"}.fa-mill-sign:before{content:"\e1ed"}.fa-bowl-rice:before{content:"\e2eb"}.fa-skull:before{content:"\f54c"}.fa-broadcast-tower:before,.fa-tower-broadcast:before{content:"\f519"}.fa-truck-pickup:before{content:"\f63c"}.fa-long-arrow-alt-up:before,.fa-up-long:before{content:"\f30c"}.fa-stop:before{content:"\f04d"}.fa-code-merge:before{content:"\f387"}.fa-upload:before{content:"\f093"}.fa-hurricane:before{content:"\f751"}.fa-mound:before{content:"\e52d"}.fa-toilet-portable:before{content:"\e583"}.fa-compact-disc:before{content:"\f51f"}.fa-file-arrow-down:before,.fa-file-download:before{content:"\f56d"}.fa-caravan:before{content:"\f8ff"}.fa-shield-cat:before{content:"\e572"}.fa-bolt:before,.fa-zap:before{content:"\f0e7"}.fa-glass-water:before{content:"\e4f4"}.fa-oil-well:before{content:"\e532"}.fa-vault:before{content:"\e2c5"}.fa-mars:before{content:"\f222"}.fa-toilet:before{content:"\f7d8"}.fa-plane-circle-xmark:before{content:"\e557"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen-sign:before,.fa-yen:before{content:"\f157"}.fa-rouble:before,.fa-rub:before,.fa-ruble-sign:before,.fa-ruble:before{content:"\f158"}.fa-sun:before{content:"\f185"}.fa-guitar:before{content:"\f7a6"}.fa-face-laugh-wink:before,.fa-laugh-wink:before{content:"\f59c"}.fa-horse-head:before{content:"\f7ab"}.fa-bore-hole:before{content:"\e4c3"}.fa-industry:before{content:"\f275"}.fa-arrow-alt-circle-down:before,.fa-circle-down:before{content:"\f358"}.fa-arrows-turn-to-dots:before{content:"\e4c1"}.fa-florin-sign:before{content:"\e184"}.fa-arrow-down-short-wide:before,.fa-sort-amount-desc:before,.fa-sort-amount-down-alt:before{content:"\f884"}.fa-less-than:before{content:"\3c"}.fa-angle-down:before{content:"\f107"}.fa-car-tunnel:before{content:"\e4de"}.fa-head-side-cough:before{content:"\e061"}.fa-grip-lines:before{content:"\f7a4"}.fa-thumbs-down:before{content:"\f165"}.fa-user-lock:before{content:"\f502"}.fa-arrow-right-long:before,.fa-long-arrow-right:before{content:"\f178"}.fa-anchor-circle-xmark:before{content:"\e4ac"}.fa-ellipsis-h:before,.fa-ellipsis:before{content:"\f141"}.fa-chess-pawn:before{content:"\f443"}.fa-first-aid:before,.fa-kit-medical:before{content:"\f479"}.fa-person-through-window:before{content:"\e5a9"}.fa-toolbox:before{content:"\f552"}.fa-hands-holding-circle:before{content:"\e4fb"}.fa-bug:before{content:"\f188"}.fa-credit-card-alt:before,.fa-credit-card:before{content:"\f09d"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-hand-holding-hand:before{content:"\e4f7"}.fa-book-open-reader:before,.fa-book-reader:before{content:"\f5da"}.fa-mountain-sun:before{content:"\e52f"}.fa-arrows-left-right-to-line:before{content:"\e4ba"}.fa-dice-d20:before{content:"\f6cf"}.fa-truck-droplet:before{content:"\e58c"}.fa-file-circle-xmark:before{content:"\e5a1"}.fa-temperature-arrow-up:before,.fa-temperature-up:before{content:"\e040"}.fa-medal:before{content:"\f5a2"}.fa-bed:before{content:"\f236"}.fa-h-square:before,.fa-square-h:before{content:"\f0fd"}.fa-podcast:before{content:"\f2ce"}.fa-temperature-4:before,.fa-temperature-full:before,.fa-thermometer-4:before,.fa-thermometer-full:before{content:"\f2c7"}.fa-bell:before{content:"\f0f3"}.fa-superscript:before{content:"\f12b"}.fa-plug-circle-xmark:before{content:"\e560"}.fa-star-of-life:before{content:"\f621"}.fa-phone-slash:before{content:"\f3dd"}.fa-paint-roller:before{content:"\f5aa"}.fa-hands-helping:before,.fa-handshake-angle:before{content:"\f4c4"}.fa-location-dot:before,.fa-map-marker-alt:before{content:"\f3c5"}.fa-file:before{content:"\f15b"}.fa-greater-than:before{content:"\3e"}.fa-person-swimming:before,.fa-swimmer:before{content:"\f5c4"}.fa-arrow-down:before{content:"\f063"}.fa-droplet:before,.fa-tint:before{content:"\f043"}.fa-eraser:before{content:"\f12d"}.fa-earth-america:before,.fa-earth-americas:before,.fa-earth:before,.fa-globe-americas:before{content:"\f57d"}.fa-person-burst:before{content:"\e53b"}.fa-dove:before{content:"\f4ba"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-socks:before{content:"\f696"}.fa-inbox:before{content:"\f01c"}.fa-section:before{content:"\e447"}.fa-gauge-high:before,.fa-tachometer-alt-fast:before,.fa-tachometer-alt:before{content:"\f625"}.fa-envelope-open-text:before{content:"\f658"}.fa-hospital-alt:before,.fa-hospital-wide:before,.fa-hospital:before{content:"\f0f8"}.fa-wine-bottle:before{content:"\f72f"}.fa-chess-rook:before{content:"\f447"}.fa-bars-staggered:before,.fa-reorder:before,.fa-stream:before{content:"\f550"}.fa-dharmachakra:before{content:"\f655"}.fa-hotdog:before{content:"\f80f"}.fa-blind:before,.fa-person-walking-with-cane:before{content:"\f29d"}.fa-drum:before{content:"\f569"}.fa-ice-cream:before{content:"\f810"}.fa-heart-circle-bolt:before{content:"\e4fc"}.fa-fax:before{content:"\f1ac"}.fa-paragraph:before{content:"\f1dd"}.fa-check-to-slot:before,.fa-vote-yea:before{content:"\f772"}.fa-star-half:before{content:"\f089"}.fa-boxes-alt:before,.fa-boxes-stacked:before,.fa-boxes:before{content:"\f468"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-assistive-listening-systems:before,.fa-ear-listen:before{content:"\f2a2"}.fa-tree-city:before{content:"\e587"}.fa-play:before{content:"\f04b"}.fa-font:before{content:"\f031"}.fa-rupiah-sign:before{content:"\e23d"}.fa-magnifying-glass:before,.fa-search:before{content:"\f002"}.fa-ping-pong-paddle-ball:before,.fa-table-tennis-paddle-ball:before,.fa-table-tennis:before{content:"\f45d"}.fa-diagnoses:before,.fa-person-dots-from-line:before{content:"\f470"}.fa-trash-can-arrow-up:before,.fa-trash-restore-alt:before{content:"\f82a"}.fa-naira-sign:before{content:"\e1f6"}.fa-cart-arrow-down:before{content:"\f218"}.fa-walkie-talkie:before{content:"\f8ef"}.fa-file-edit:before,.fa-file-pen:before{content:"\f31c"}.fa-receipt:before{content:"\f543"}.fa-pen-square:before,.fa-pencil-square:before,.fa-square-pen:before{content:"\f14b"}.fa-suitcase-rolling:before{content:"\f5c1"}.fa-person-circle-exclamation:before{content:"\e53f"}.fa-chevron-down:before{content:"\f078"}.fa-battery-5:before,.fa-battery-full:before,.fa-battery:before{content:"\f240"}.fa-skull-crossbones:before{content:"\f714"}.fa-code-compare:before{content:"\e13a"}.fa-list-dots:before,.fa-list-ul:before{content:"\f0ca"}.fa-school-lock:before{content:"\e56f"}.fa-tower-cell:before{content:"\e585"}.fa-down-long:before,.fa-long-arrow-alt-down:before{content:"\f309"}.fa-ranking-star:before{content:"\e561"}.fa-chess-king:before{content:"\f43f"}.fa-person-harassing:before{content:"\e549"}.fa-brazilian-real-sign:before{content:"\e46c"}.fa-landmark-alt:before,.fa-landmark-dome:before{content:"\f752"}.fa-arrow-up:before{content:"\f062"}.fa-television:before,.fa-tv-alt:before,.fa-tv:before{content:"\f26c"}.fa-shrimp:before{content:"\e448"}.fa-list-check:before,.fa-tasks:before{content:"\f0ae"}.fa-jug-detergent:before{content:"\e519"}.fa-circle-user:before,.fa-user-circle:before{content:"\f2bd"}.fa-user-shield:before{content:"\f505"}.fa-wind:before{content:"\f72e"}.fa-car-burst:before,.fa-car-crash:before{content:"\f5e1"}.fa-y:before{content:"\59"}.fa-person-snowboarding:before,.fa-snowboarding:before{content:"\f7ce"}.fa-shipping-fast:before,.fa-truck-fast:before{content:"\f48b"}.fa-fish:before{content:"\f578"}.fa-user-graduate:before{content:"\f501"}.fa-adjust:before,.fa-circle-half-stroke:before{content:"\f042"}.fa-clapperboard:before{content:"\e131"}.fa-circle-radiation:before,.fa-radiation-alt:before{content:"\f7ba"}.fa-baseball-ball:before,.fa-baseball:before{content:"\f433"}.fa-jet-fighter-up:before{content:"\e518"}.fa-diagram-project:before,.fa-project-diagram:before{content:"\f542"}.fa-copy:before{content:"\f0c5"}.fa-volume-mute:before,.fa-volume-times:before,.fa-volume-xmark:before{content:"\f6a9"}.fa-hand-sparkles:before{content:"\e05d"}.fa-grip-horizontal:before,.fa-grip:before{content:"\f58d"}.fa-share-from-square:before,.fa-share-square:before{content:"\f14d"}.fa-child-combatant:before,.fa-child-rifle:before{content:"\e4e0"}.fa-gun:before{content:"\e19b"}.fa-phone-square:before,.fa-square-phone:before{content:"\f098"}.fa-add:before,.fa-plus:before{content:"\2b"}.fa-expand:before{content:"\f065"}.fa-computer:before{content:"\e4e5"}.fa-close:before,.fa-multiply:before,.fa-remove:before,.fa-times:before,.fa-xmark:before{content:"\f00d"}.fa-arrows-up-down-left-right:before,.fa-arrows:before{content:"\f047"}.fa-chalkboard-teacher:before,.fa-chalkboard-user:before{content:"\f51c"}.fa-peso-sign:before{content:"\e222"}.fa-building-shield:before{content:"\e4d8"}.fa-baby:before{content:"\f77c"}.fa-users-line:before{content:"\e592"}.fa-quote-left-alt:before,.fa-quote-left:before{content:"\f10d"}.fa-tractor:before{content:"\f722"}.fa-trash-arrow-up:before,.fa-trash-restore:before{content:"\f829"}.fa-arrow-down-up-lock:before{content:"\e4b0"}.fa-lines-leaning:before{content:"\e51e"}.fa-ruler-combined:before{content:"\f546"}.fa-copyright:before{content:"\f1f9"}.fa-equals:before{content:"\3d"}.fa-blender:before{content:"\f517"}.fa-teeth:before{content:"\f62e"}.fa-ils:before,.fa-shekel-sign:before,.fa-shekel:before,.fa-sheqel-sign:before,.fa-sheqel:before{content:"\f20b"}.fa-map:before{content:"\f279"}.fa-rocket:before{content:"\f135"}.fa-photo-film:before,.fa-photo-video:before{content:"\f87c"}.fa-folder-minus:before{content:"\f65d"}.fa-store:before{content:"\f54e"}.fa-arrow-trend-up:before{content:"\e098"}.fa-plug-circle-minus:before{content:"\e55e"}.fa-sign-hanging:before,.fa-sign:before{content:"\f4d9"}.fa-bezier-curve:before{content:"\f55b"}.fa-bell-slash:before{content:"\f1f6"}.fa-tablet-android:before,.fa-tablet:before{content:"\f3fb"}.fa-school-flag:before{content:"\e56e"}.fa-fill:before{content:"\f575"}.fa-angle-up:before{content:"\f106"}.fa-drumstick-bite:before{content:"\f6d7"}.fa-holly-berry:before{content:"\f7aa"}.fa-chevron-left:before{content:"\f053"}.fa-bacteria:before{content:"\e059"}.fa-hand-lizard:before{content:"\f258"}.fa-notdef:before{content:"\e1fe"}.fa-disease:before{content:"\f7fa"}.fa-briefcase-medical:before{content:"\f469"}.fa-genderless:before{content:"\f22d"}.fa-chevron-right:before{content:"\f054"}.fa-retweet:before{content:"\f079"}.fa-car-alt:before,.fa-car-rear:before{content:"\f5de"}.fa-pump-soap:before{content:"\e06b"}.fa-video-slash:before{content:"\f4e2"}.fa-battery-2:before,.fa-battery-quarter:before{content:"\f243"}.fa-radio:before{content:"\f8d7"}.fa-baby-carriage:before,.fa-carriage-baby:before{content:"\f77d"}.fa-traffic-light:before{content:"\f637"}.fa-thermometer:before{content:"\f491"}.fa-vr-cardboard:before{content:"\f729"}.fa-hand-middle-finger:before{content:"\f806"}.fa-percent:before,.fa-percentage:before{content:"\25"}.fa-truck-moving:before{content:"\f4df"}.fa-glass-water-droplet:before{content:"\e4f5"}.fa-display:before{content:"\e163"}.fa-face-smile:before,.fa-smile:before{content:"\f118"}.fa-thumb-tack:before,.fa-thumbtack:before{content:"\f08d"}.fa-trophy:before{content:"\f091"}.fa-person-praying:before,.fa-pray:before{content:"\f683"}.fa-hammer:before{content:"\f6e3"}.fa-hand-peace:before{content:"\f25b"}.fa-rotate:before,.fa-sync-alt:before{content:"\f2f1"}.fa-spinner:before{content:"\f110"}.fa-robot:before{content:"\f544"}.fa-peace:before{content:"\f67c"}.fa-cogs:before,.fa-gears:before{content:"\f085"}.fa-warehouse:before{content:"\f494"}.fa-arrow-up-right-dots:before{content:"\e4b7"}.fa-splotch:before{content:"\f5bc"}.fa-face-grin-hearts:before,.fa-grin-hearts:before{content:"\f584"}.fa-dice-four:before{content:"\f524"}.fa-sim-card:before{content:"\f7c4"}.fa-transgender-alt:before,.fa-transgender:before{content:"\f225"}.fa-mercury:before{content:"\f223"}.fa-arrow-turn-down:before,.fa-level-down:before{content:"\f149"}.fa-person-falling-burst:before{content:"\e547"}.fa-award:before{content:"\f559"}.fa-ticket-alt:before,.fa-ticket-simple:before{content:"\f3ff"}.fa-building:before{content:"\f1ad"}.fa-angle-double-left:before,.fa-angles-left:before{content:"\f100"}.fa-qrcode:before{content:"\f029"}.fa-clock-rotate-left:before,.fa-history:before{content:"\f1da"}.fa-face-grin-beam-sweat:before,.fa-grin-beam-sweat:before{content:"\f583"}.fa-arrow-right-from-file:before,.fa-file-export:before{content:"\f56e"}.fa-shield-blank:before,.fa-shield:before{content:"\f132"}.fa-arrow-up-short-wide:before,.fa-sort-amount-up-alt:before{content:"\f885"}.fa-house-medical:before{content:"\e3b2"}.fa-golf-ball-tee:before,.fa-golf-ball:before{content:"\f450"}.fa-chevron-circle-left:before,.fa-circle-chevron-left:before{content:"\f137"}.fa-house-chimney-window:before{content:"\e00d"}.fa-pen-nib:before{content:"\f5ad"}.fa-tent-arrow-turn-left:before{content:"\e580"}.fa-tents:before{content:"\e582"}.fa-magic:before,.fa-wand-magic:before{content:"\f0d0"}.fa-dog:before{content:"\f6d3"}.fa-carrot:before{content:"\f787"}.fa-moon:before{content:"\f186"}.fa-wine-glass-alt:before,.fa-wine-glass-empty:before{content:"\f5ce"}.fa-cheese:before{content:"\f7ef"}.fa-yin-yang:before{content:"\f6ad"}.fa-music:before{content:"\f001"}.fa-code-commit:before{content:"\f386"}.fa-temperature-low:before{content:"\f76b"}.fa-biking:before,.fa-person-biking:before{content:"\f84a"}.fa-broom:before{content:"\f51a"}.fa-shield-heart:before{content:"\e574"}.fa-gopuram:before{content:"\f664"}.fa-earth-oceania:before,.fa-globe-oceania:before{content:"\e47b"}.fa-square-xmark:before,.fa-times-square:before,.fa-xmark-square:before{content:"\f2d3"}.fa-hashtag:before{content:"\23"}.fa-expand-alt:before,.fa-up-right-and-down-left-from-center:before{content:"\f424"}.fa-oil-can:before{content:"\f613"}.fa-t:before{content:"\54"}.fa-hippo:before{content:"\f6ed"}.fa-chart-column:before{content:"\e0e3"}.fa-infinity:before{content:"\f534"}.fa-vial-circle-check:before{content:"\e596"}.fa-person-arrow-down-to-line:before{content:"\e538"}.fa-voicemail:before{content:"\f897"}.fa-fan:before{content:"\f863"}.fa-person-walking-luggage:before{content:"\e554"}.fa-arrows-alt-v:before,.fa-up-down:before{content:"\f338"}.fa-cloud-moon-rain:before{content:"\f73c"}.fa-calendar:before{content:"\f133"}.fa-trailer:before{content:"\e041"}.fa-bahai:before,.fa-haykal:before{content:"\f666"}.fa-sd-card:before{content:"\f7c2"}.fa-dragon:before{content:"\f6d5"}.fa-shoe-prints:before{content:"\f54b"}.fa-circle-plus:before,.fa-plus-circle:before{content:"\f055"}.fa-face-grin-tongue-wink:before,.fa-grin-tongue-wink:before{content:"\f58b"}.fa-hand-holding:before{content:"\f4bd"}.fa-plug-circle-exclamation:before{content:"\e55d"}.fa-chain-broken:before,.fa-chain-slash:before,.fa-link-slash:before,.fa-unlink:before{content:"\f127"}.fa-clone:before{content:"\f24d"}.fa-person-walking-arrow-loop-left:before{content:"\e551"}.fa-arrow-up-z-a:before,.fa-sort-alpha-up-alt:before{content:"\f882"}.fa-fire-alt:before,.fa-fire-flame-curved:before{content:"\f7e4"}.fa-tornado:before{content:"\f76f"}.fa-file-circle-plus:before{content:"\e494"}.fa-book-quran:before,.fa-quran:before{content:"\f687"}.fa-anchor:before{content:"\f13d"}.fa-border-all:before{content:"\f84c"}.fa-angry:before,.fa-face-angry:before{content:"\f556"}.fa-cookie-bite:before{content:"\f564"}.fa-arrow-trend-down:before{content:"\e097"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-draw-polygon:before{content:"\f5ee"}.fa-balance-scale:before,.fa-scale-balanced:before{content:"\f24e"}.fa-gauge-simple-high:before,.fa-tachometer-fast:before,.fa-tachometer:before{content:"\f62a"}.fa-shower:before{content:"\f2cc"}.fa-desktop-alt:before,.fa-desktop:before{content:"\f390"}.fa-m:before{content:"\4d"}.fa-table-list:before,.fa-th-list:before{content:"\f00b"}.fa-comment-sms:before,.fa-sms:before{content:"\f7cd"}.fa-book:before{content:"\f02d"}.fa-user-plus:before{content:"\f234"}.fa-check:before{content:"\f00c"}.fa-battery-4:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-house-circle-check:before{content:"\e509"}.fa-angle-left:before{content:"\f104"}.fa-diagram-successor:before{content:"\e47a"}.fa-truck-arrow-right:before{content:"\e58b"}.fa-arrows-split-up-and-left:before{content:"\e4bc"}.fa-fist-raised:before,.fa-hand-fist:before{content:"\f6de"}.fa-cloud-moon:before{content:"\f6c3"}.fa-briefcase:before{content:"\f0b1"}.fa-person-falling:before{content:"\e546"}.fa-image-portrait:before,.fa-portrait:before{content:"\f3e0"}.fa-user-tag:before{content:"\f507"}.fa-rug:before{content:"\e569"}.fa-earth-europe:before,.fa-globe-europe:before{content:"\f7a2"}.fa-cart-flatbed-suitcase:before,.fa-luggage-cart:before{content:"\f59d"}.fa-rectangle-times:before,.fa-rectangle-xmark:before,.fa-times-rectangle:before,.fa-window-close:before{content:"\f410"}.fa-baht-sign:before{content:"\e0ac"}.fa-book-open:before{content:"\f518"}.fa-book-journal-whills:before,.fa-journal-whills:before{content:"\f66a"}.fa-handcuffs:before{content:"\e4f8"}.fa-exclamation-triangle:before,.fa-triangle-exclamation:before,.fa-warning:before{content:"\f071"}.fa-database:before{content:"\f1c0"}.fa-arrow-turn-right:before,.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-bottle-droplet:before{content:"\e4c4"}.fa-mask-face:before{content:"\e1d7"}.fa-hill-rockslide:before{content:"\e508"}.fa-exchange-alt:before,.fa-right-left:before{content:"\f362"}.fa-paper-plane:before{content:"\f1d8"}.fa-road-circle-exclamation:before{content:"\e565"}.fa-dungeon:before{content:"\f6d9"}.fa-align-right:before{content:"\f038"}.fa-money-bill-1-wave:before,.fa-money-bill-wave-alt:before{content:"\f53b"}.fa-life-ring:before{content:"\f1cd"}.fa-hands:before,.fa-sign-language:before,.fa-signing:before{content:"\f2a7"}.fa-calendar-day:before{content:"\f783"}.fa-ladder-water:before,.fa-swimming-pool:before,.fa-water-ladder:before{content:"\f5c5"}.fa-arrows-up-down:before,.fa-arrows-v:before{content:"\f07d"}.fa-face-grimace:before,.fa-grimace:before{content:"\f57f"}.fa-wheelchair-alt:before,.fa-wheelchair-move:before{content:"\e2ce"}.fa-level-down-alt:before,.fa-turn-down:before{content:"\f3be"}.fa-person-walking-arrow-right:before{content:"\e552"}.fa-envelope-square:before,.fa-square-envelope:before{content:"\f199"}.fa-dice:before{content:"\f522"}.fa-bowling-ball:before{content:"\f436"}.fa-brain:before{content:"\f5dc"}.fa-band-aid:before,.fa-bandage:before{content:"\f462"}.fa-calendar-minus:before{content:"\f272"}.fa-circle-xmark:before,.fa-times-circle:before,.fa-xmark-circle:before{content:"\f057"}.fa-gifts:before{content:"\f79c"}.fa-hotel:before{content:"\f594"}.fa-earth-asia:before,.fa-globe-asia:before{content:"\f57e"}.fa-id-card-alt:before,.fa-id-card-clip:before{content:"\f47f"}.fa-magnifying-glass-plus:before,.fa-search-plus:before{content:"\f00e"}.fa-thumbs-up:before{content:"\f164"}.fa-user-clock:before{content:"\f4fd"}.fa-allergies:before,.fa-hand-dots:before{content:"\f461"}.fa-file-invoice:before{content:"\f570"}.fa-window-minimize:before{content:"\f2d1"}.fa-coffee:before,.fa-mug-saucer:before{content:"\f0f4"}.fa-brush:before{content:"\f55d"}.fa-mask:before{content:"\f6fa"}.fa-magnifying-glass-minus:before,.fa-search-minus:before{content:"\f010"}.fa-ruler-vertical:before{content:"\f548"}.fa-user-alt:before,.fa-user-large:before{content:"\f406"}.fa-train-tram:before{content:"\e5b4"}.fa-user-nurse:before{content:"\f82f"}.fa-syringe:before{content:"\f48e"}.fa-cloud-sun:before{content:"\f6c4"}.fa-stopwatch-20:before{content:"\e06f"}.fa-square-full:before{content:"\f45c"}.fa-magnet:before{content:"\f076"}.fa-jar:before{content:"\e516"}.fa-note-sticky:before,.fa-sticky-note:before{content:"\f249"}.fa-bug-slash:before{content:"\e490"}.fa-arrow-up-from-water-pump:before{content:"\e4b6"}.fa-bone:before{content:"\f5d7"}.fa-user-injured:before{content:"\f728"}.fa-face-sad-tear:before,.fa-sad-tear:before{content:"\f5b4"}.fa-plane:before{content:"\f072"}.fa-tent-arrows-down:before{content:"\e581"}.fa-exclamation:before{content:"\21"}.fa-arrows-spin:before{content:"\e4bb"}.fa-print:before{content:"\f02f"}.fa-try:before,.fa-turkish-lira-sign:before,.fa-turkish-lira:before{content:"\e2bb"}.fa-dollar-sign:before,.fa-dollar:before,.fa-usd:before{content:"\24"}.fa-x:before{content:"\58"}.fa-magnifying-glass-dollar:before,.fa-search-dollar:before{content:"\f688"}.fa-users-cog:before,.fa-users-gear:before{content:"\f509"}.fa-person-military-pointing:before{content:"\e54a"}.fa-bank:before,.fa-building-columns:before,.fa-institution:before,.fa-museum:before,.fa-university:before{content:"\f19c"}.fa-umbrella:before{content:"\f0e9"}.fa-trowel:before{content:"\e589"}.fa-d:before{content:"\44"}.fa-stapler:before{content:"\e5af"}.fa-masks-theater:before,.fa-theater-masks:before{content:"\f630"}.fa-kip-sign:before{content:"\e1c4"}.fa-hand-point-left:before{content:"\f0a5"}.fa-handshake-alt:before,.fa-handshake-simple:before{content:"\f4c6"}.fa-fighter-jet:before,.fa-jet-fighter:before{content:"\f0fb"}.fa-share-alt-square:before,.fa-square-share-nodes:before{content:"\f1e1"}.fa-barcode:before{content:"\f02a"}.fa-plus-minus:before{content:"\e43c"}.fa-video-camera:before,.fa-video:before{content:"\f03d"}.fa-graduation-cap:before,.fa-mortar-board:before{content:"\f19d"}.fa-hand-holding-medical:before{content:"\e05c"}.fa-person-circle-check:before{content:"\e53e"}.fa-level-up-alt:before,.fa-turn-up:before{content:"\f3bf"}
.fa-sr-only,.fa-sr-only-focusable:not(:focus),.sr-only,.sr-only-focusable:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host,:root{--fa-style-family-brands:"Font Awesome 6 Brands";--fa-font-brands:normal 400 1em/1 "Font Awesome 6 Brands"}@font-face{font-family:"Font Awesome 6 Brands";font-style:normal;font-weight:400;font-display:block;src:url(../assets/vendor/fontawesome/webfonts/fa-brands-400.woff2) format("woff2"),url(../assets/vendor/fontawesome/webfonts/fa-brands-400.ttf) format("truetype")}.fa-brands,.fab{font-weight:400}.fa-monero:before{content:"\f3d0"}.fa-hooli:before{content:"\f427"}.fa-yelp:before{content:"\f1e9"}.fa-cc-visa:before{content:"\f1f0"}.fa-lastfm:before{content:"\f202"}.fa-shopware:before{content:"\f5b5"}.fa-creative-commons-nc:before{content:"\f4e8"}.fa-aws:before{content:"\f375"}.fa-redhat:before{content:"\f7bc"}.fa-yoast:before{content:"\f2b1"}.fa-cloudflare:before{content:"\e07d"}.fa-ups:before{content:"\f7e0"}.fa-wpexplorer:before{content:"\f2de"}.fa-dyalog:before{content:"\f399"}.fa-bity:before{content:"\f37a"}.fa-stackpath:before{content:"\f842"}.fa-buysellads:before{content:"\f20d"}.fa-first-order:before{content:"\f2b0"}.fa-modx:before{content:"\f285"}.fa-guilded:before{content:"\e07e"}.fa-vnv:before{content:"\f40b"}.fa-js-square:before,.fa-square-js:before{content:"\f3b9"}.fa-microsoft:before{content:"\f3ca"}.fa-qq:before{content:"\f1d6"}.fa-orcid:before{content:"\f8d2"}.fa-java:before{content:"\f4e4"}.fa-invision:before{content:"\f7b0"}.fa-creative-commons-pd-alt:before{content:"\f4ed"}.fa-centercode:before{content:"\f380"}.fa-glide-g:before{content:"\f2a6"}.fa-drupal:before{content:"\f1a9"}.fa-hire-a-helper:before{content:"\f3b0"}.fa-creative-commons-by:before{content:"\f4e7"}.fa-unity:before{content:"\e049"}.fa-whmcs:before{content:"\f40d"}.fa-rocketchat:before{content:"\f3e8"}.fa-vk:before{content:"\f189"}.fa-untappd:before{content:"\f405"}.fa-mailchimp:before{content:"\f59e"}.fa-css3-alt:before{content:"\f38b"}.fa-reddit-square:before,.fa-square-reddit:before{content:"\f1a2"}.fa-vimeo-v:before{content:"\f27d"}.fa-contao:before{content:"\f26d"}.fa-square-font-awesome:before{content:"\e5ad"}.fa-deskpro:before{content:"\f38f"}.fa-sistrix:before{content:"\f3ee"}.fa-instagram-square:before,.fa-square-instagram:before{content:"\e055"}.fa-battle-net:before{content:"\f835"}.fa-the-red-yeti:before{content:"\f69d"}.fa-hacker-news-square:before,.fa-square-hacker-news:before{content:"\f3af"}.fa-edge:before{content:"\f282"}.fa-napster:before{content:"\f3d2"}.fa-snapchat-square:before,.fa-square-snapchat:before{content:"\f2ad"}.fa-google-plus-g:before{content:"\f0d5"}.fa-artstation:before{content:"\f77a"}.fa-markdown:before{content:"\f60f"}.fa-sourcetree:before{content:"\f7d3"}.fa-google-plus:before{content:"\f2b3"}.fa-diaspora:before{content:"\f791"}.fa-foursquare:before{content:"\f180"}.fa-stack-overflow:before{content:"\f16c"}.fa-github-alt:before{content:"\f113"}.fa-phoenix-squadron:before{content:"\f511"}.fa-pagelines:before{content:"\f18c"}.fa-algolia:before{content:"\f36c"}.fa-red-river:before{content:"\f3e3"}.fa-creative-commons-sa:before{content:"\f4ef"}.fa-safari:before{content:"\f267"}.fa-google:before{content:"\f1a0"}.fa-font-awesome-alt:before,.fa-square-font-awesome-stroke:before{content:"\f35c"}.fa-atlassian:before{content:"\f77b"}.fa-linkedin-in:before{content:"\f0e1"}.fa-digital-ocean:before{content:"\f391"}.fa-nimblr:before{content:"\f5a8"}.fa-chromecast:before{content:"\f838"}.fa-evernote:before{content:"\f839"}.fa-hacker-news:before{content:"\f1d4"}.fa-creative-commons-sampling:before{content:"\f4f0"}.fa-adversal:before{content:"\f36a"}.fa-creative-commons:before{content:"\f25e"}.fa-watchman-monitoring:before{content:"\e087"}.fa-fonticons:before{content:"\f280"}.fa-weixin:before{content:"\f1d7"}.fa-shirtsinbulk:before{content:"\f214"}.fa-codepen:before{content:"\f1cb"}.fa-git-alt:before{content:"\f841"}.fa-lyft:before{content:"\f3c3"}.fa-rev:before{content:"\f5b2"}.fa-windows:before{content:"\f17a"}.fa-wizards-of-the-coast:before{content:"\f730"}.fa-square-viadeo:before,.fa-viadeo-square:before{content:"\f2aa"}.fa-meetup:before{content:"\f2e0"}.fa-centos:before{content:"\f789"}.fa-adn:before{content:"\f170"}.fa-cloudsmith:before{content:"\f384"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-dribbble-square:before,.fa-square-dribbble:before{content:"\f397"}.fa-codiepie:before{content:"\f284"}.fa-node:before{content:"\f419"}.fa-mix:before{content:"\f3cb"}.fa-steam:before{content:"\f1b6"}.fa-cc-apple-pay:before{content:"\f416"}.fa-scribd:before{content:"\f28a"}.fa-openid:before{content:"\f19b"}.fa-instalod:before{content:"\e081"}.fa-expeditedssl:before{content:"\f23e"}.fa-sellcast:before{content:"\f2da"}.fa-square-twitter:before,.fa-twitter-square:before{content:"\f081"}.fa-r-project:before{content:"\f4f7"}.fa-delicious:before{content:"\f1a5"}.fa-freebsd:before{content:"\f3a4"}.fa-vuejs:before{content:"\f41f"}.fa-accusoft:before{content:"\f369"}.fa-ioxhost:before{content:"\f208"}.fa-fonticons-fi:before{content:"\f3a2"}.fa-app-store:before{content:"\f36f"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-itunes-note:before{content:"\f3b5"}.fa-golang:before{content:"\e40f"}.fa-kickstarter:before{content:"\f3bb"}.fa-grav:before{content:"\f2d6"}.fa-weibo:before{content:"\f18a"}.fa-uncharted:before{content:"\e084"}.fa-firstdraft:before{content:"\f3a1"}.fa-square-youtube:before,.fa-youtube-square:before{content:"\f431"}.fa-wikipedia-w:before{content:"\f266"}.fa-rendact:before,.fa-wpressr:before{content:"\f3e4"}.fa-angellist:before{content:"\f209"}.fa-galactic-republic:before{content:"\f50c"}.fa-nfc-directional:before{content:"\e530"}.fa-skype:before{content:"\f17e"}.fa-joget:before{content:"\f3b7"}.fa-fedora:before{content:"\f798"}.fa-stripe-s:before{content:"\f42a"}.fa-meta:before{content:"\e49b"}.fa-laravel:before{content:"\f3bd"}.fa-hotjar:before{content:"\f3b1"}.fa-bluetooth-b:before{content:"\f294"}.fa-sticker-mule:before{content:"\f3f7"}.fa-creative-commons-zero:before{content:"\f4f3"}.fa-hips:before{content:"\f452"}.fa-behance:before{content:"\f1b4"}.fa-reddit:before{content:"\f1a1"}.fa-discord:before{content:"\f392"}.fa-chrome:before{content:"\f268"}.fa-app-store-ios:before{content:"\f370"}.fa-cc-discover:before{content:"\f1f2"}.fa-wpbeginner:before{content:"\f297"}.fa-confluence:before{content:"\f78d"}.fa-mdb:before{content:"\f8ca"}.fa-dochub:before{content:"\f394"}.fa-accessible-icon:before{content:"\f368"}.fa-ebay:before{content:"\f4f4"}.fa-amazon:before{content:"\f270"}.fa-unsplash:before{content:"\e07c"}.fa-yarn:before{content:"\f7e3"}.fa-square-steam:before,.fa-steam-square:before{content:"\f1b7"}.fa-500px:before{content:"\f26e"}.fa-square-vimeo:before,.fa-vimeo-square:before{content:"\f194"}.fa-asymmetrik:before{content:"\f372"}.fa-font-awesome-flag:before,.fa-font-awesome-logo-full:before,.fa-font-awesome:before{content:"\f2b4"}.fa-gratipay:before{content:"\f184"}.fa-apple:before{content:"\f179"}.fa-hive:before{content:"\e07f"}.fa-gitkraken:before{content:"\f3a6"}.fa-keybase:before{content:"\f4f5"}.fa-apple-pay:before{content:"\f415"}.fa-padlet:before{content:"\e4a0"}.fa-amazon-pay:before{content:"\f42c"}.fa-github-square:before,.fa-square-github:before{content:"\f092"}.fa-stumbleupon:before{content:"\f1a4"}.fa-fedex:before{content:"\f797"}.fa-phoenix-framework:before{content:"\f3dc"}.fa-shopify:before{content:"\e057"}.fa-neos:before{content:"\f612"}.fa-hackerrank:before{content:"\f5f7"}.fa-researchgate:before{content:"\f4f8"}.fa-swift:before{content:"\f8e1"}.fa-angular:before{content:"\f420"}.fa-speakap:before{content:"\f3f3"}.fa-angrycreative:before{content:"\f36e"}.fa-y-combinator:before{content:"\f23b"}.fa-empire:before{content:"\f1d1"}.fa-envira:before{content:"\f299"}.fa-gitlab-square:before,.fa-square-gitlab:before{content:"\e5ae"}.fa-studiovinari:before{content:"\f3f8"}.fa-pied-piper:before{content:"\f2ae"}.fa-wordpress:before{content:"\f19a"}.fa-product-hunt:before{content:"\f288"}.fa-firefox:before{content:"\f269"}.fa-linode:before{content:"\f2b8"}.fa-goodreads:before{content:"\f3a8"}.fa-odnoklassniki-square:before,.fa-square-odnoklassniki:before{content:"\f264"}.fa-jsfiddle:before{content:"\f1cc"}.fa-sith:before{content:"\f512"}.fa-themeisle:before{content:"\f2b2"}.fa-page4:before{content:"\f3d7"}.fa-hashnode:before{content:"\e499"}.fa-react:before{content:"\f41b"}.fa-cc-paypal:before{content:"\f1f4"}.fa-squarespace:before{content:"\f5be"}.fa-cc-stripe:before{content:"\f1f5"}.fa-creative-commons-share:before{content:"\f4f2"}.fa-bitcoin:before{content:"\f379"}.fa-keycdn:before{content:"\f3ba"}.fa-opera:before{content:"\f26a"}.fa-itch-io:before{content:"\f83a"}.fa-umbraco:before{content:"\f8e8"}.fa-galactic-senate:before{content:"\f50d"}.fa-ubuntu:before{content:"\f7df"}.fa-draft2digital:before{content:"\f396"}.fa-stripe:before{content:"\f429"}.fa-houzz:before{content:"\f27c"}.fa-gg:before{content:"\f260"}.fa-dhl:before{content:"\f790"}.fa-pinterest-square:before,.fa-square-pinterest:before{content:"\f0d3"}.fa-xing:before{content:"\f168"}.fa-blackberry:before{content:"\f37b"}.fa-creative-commons-pd:before{content:"\f4ec"}.fa-playstation:before{content:"\f3df"}.fa-quinscape:before{content:"\f459"}.fa-less:before{content:"\f41d"}.fa-blogger-b:before{content:"\f37d"}.fa-opencart:before{content:"\f23d"}.fa-vine:before{content:"\f1ca"}.fa-paypal:before{content:"\f1ed"}.fa-gitlab:before{content:"\f296"}.fa-typo3:before{content:"\f42b"}.fa-reddit-alien:before{content:"\f281"}.fa-yahoo:before{content:"\f19e"}.fa-dailymotion:before{content:"\e052"}.fa-affiliatetheme:before{content:"\f36b"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-bootstrap:before{content:"\f836"}.fa-odnoklassniki:before{content:"\f263"}.fa-nfc-symbol:before{content:"\e531"}.fa-ethereum:before{content:"\f42e"}.fa-speaker-deck:before{content:"\f83c"}.fa-creative-commons-nc-eu:before{content:"\f4e9"}.fa-patreon:before{content:"\f3d9"}.fa-avianex:before{content:"\f374"}.fa-ello:before{content:"\f5f1"}.fa-gofore:before{content:"\f3a7"}.fa-bimobject:before{content:"\f378"}.fa-facebook-f:before{content:"\f39e"}.fa-google-plus-square:before,.fa-square-google-plus:before{content:"\f0d4"}.fa-mandalorian:before{content:"\f50f"}.fa-first-order-alt:before{content:"\f50a"}.fa-osi:before{content:"\f41a"}.fa-google-wallet:before{content:"\f1ee"}.fa-d-and-d-beyond:before{content:"\f6ca"}.fa-periscope:before{content:"\f3da"}.fa-fulcrum:before{content:"\f50b"}.fa-cloudscale:before{content:"\f383"}.fa-forumbee:before{content:"\f211"}.fa-mizuni:before{content:"\f3cc"}.fa-schlix:before{content:"\f3ea"}.fa-square-xing:before,.fa-xing-square:before{content:"\f169"}.fa-bandcamp:before{content:"\f2d5"}.fa-wpforms:before{content:"\f298"}.fa-cloudversify:before{content:"\f385"}.fa-usps:before{content:"\f7e1"}.fa-megaport:before{content:"\f5a3"}.fa-magento:before{content:"\f3c4"}.fa-spotify:before{content:"\f1bc"}.fa-optin-monster:before{content:"\f23c"}.fa-fly:before{content:"\f417"}.fa-aviato:before{content:"\f421"}.fa-itunes:before{content:"\f3b4"}.fa-cuttlefish:before{content:"\f38c"}.fa-blogger:before{content:"\f37c"}.fa-flickr:before{content:"\f16e"}.fa-viber:before{content:"\f409"}.fa-soundcloud:before{content:"\f1be"}.fa-digg:before{content:"\f1a6"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-symfony:before{content:"\f83d"}.fa-maxcdn:before{content:"\f136"}.fa-etsy:before{content:"\f2d7"}.fa-facebook-messenger:before{content:"\f39f"}.fa-audible:before{content:"\f373"}.fa-think-peaks:before{content:"\f731"}.fa-bilibili:before{content:"\e3d9"}.fa-erlang:before{content:"\f39d"}.fa-cotton-bureau:before{content:"\f89e"}.fa-dashcube:before{content:"\f210"}.fa-42-group:before,.fa-innosoft:before{content:"\e080"}.fa-stack-exchange:before{content:"\f18d"}.fa-elementor:before{content:"\f430"}.fa-pied-piper-square:before,.fa-square-pied-piper:before{content:"\e01e"}.fa-creative-commons-nd:before{content:"\f4eb"}.fa-palfed:before{content:"\f3d8"}.fa-superpowers:before{content:"\f2dd"}.fa-resolving:before{content:"\f3e7"}.fa-xbox:before{content:"\f412"}.fa-searchengin:before{content:"\f3eb"}.fa-tiktok:before{content:"\e07b"}.fa-facebook-square:before,.fa-square-facebook:before{content:"\f082"}.fa-renren:before{content:"\f18b"}.fa-linux:before{content:"\f17c"}.fa-glide:before{content:"\f2a5"}.fa-linkedin:before{content:"\f08c"}.fa-hubspot:before{content:"\f3b2"}.fa-deploydog:before{content:"\f38e"}.fa-twitch:before{content:"\f1e8"}.fa-ravelry:before{content:"\f2d9"}.fa-mixer:before{content:"\e056"}.fa-lastfm-square:before,.fa-square-lastfm:before{content:"\f203"}.fa-vimeo:before{content:"\f40a"}.fa-mendeley:before{content:"\f7b3"}.fa-uniregistry:before{content:"\f404"}.fa-figma:before{content:"\f799"}.fa-creative-commons-remix:before{content:"\f4ee"}.fa-cc-amazon-pay:before{content:"\f42d"}.fa-dropbox:before{content:"\f16b"}.fa-instagram:before{content:"\f16d"}.fa-cmplid:before{content:"\e360"}.fa-facebook:before{content:"\f09a"}.fa-gripfire:before{content:"\f3ac"}.fa-jedi-order:before{content:"\f50e"}.fa-uikit:before{content:"\f403"}.fa-fort-awesome-alt:before{content:"\f3a3"}.fa-phabricator:before{content:"\f3db"}.fa-ussunnah:before{content:"\f407"}.fa-earlybirds:before{content:"\f39a"}.fa-trade-federation:before{content:"\f513"}.fa-autoprefixer:before{content:"\f41c"}.fa-whatsapp:before{content:"\f232"}.fa-slideshare:before{content:"\f1e7"}.fa-google-play:before{content:"\f3ab"}.fa-viadeo:before{content:"\f2a9"}.fa-line:before{content:"\f3c0"}.fa-google-drive:before{content:"\f3aa"}.fa-servicestack:before{content:"\f3ec"}.fa-simplybuilt:before{content:"\f215"}.fa-bitbucket:before{content:"\f171"}.fa-imdb:before{content:"\f2d8"}.fa-deezer:before{content:"\e077"}.fa-raspberry-pi:before{content:"\f7bb"}.fa-jira:before{content:"\f7b1"}.fa-docker:before{content:"\f395"}.fa-screenpal:before{content:"\e570"}.fa-bluetooth:before{content:"\f293"}.fa-gitter:before{content:"\f426"}.fa-d-and-d:before{content:"\f38d"}.fa-microblog:before{content:"\e01a"}.fa-cc-diners-club:before{content:"\f24c"}.fa-gg-circle:before{content:"\f261"}.fa-pied-piper-hat:before{content:"\f4e5"}.fa-kickstarter-k:before{content:"\f3bc"}.fa-yandex:before{content:"\f413"}.fa-readme:before{content:"\f4d5"}.fa-html5:before{content:"\f13b"}.fa-sellsy:before{content:"\f213"}.fa-sass:before{content:"\f41e"}.fa-wirsindhandwerk:before,.fa-wsh:before{content:"\e2d0"}.fa-buromobelexperte:before{content:"\f37f"}.fa-salesforce:before{content:"\f83b"}.fa-octopus-deploy:before{content:"\e082"}.fa-medapps:before{content:"\f3c6"}.fa-ns8:before{content:"\f3d5"}.fa-pinterest-p:before{content:"\f231"}.fa-apper:before{content:"\f371"}.fa-fort-awesome:before{content:"\f286"}.fa-waze:before{content:"\f83f"}.fa-cc-jcb:before{content:"\f24b"}.fa-snapchat-ghost:before,.fa-snapchat:before{content:"\f2ab"}.fa-fantasy-flight-games:before{content:"\f6dc"}.fa-rust:before{content:"\e07a"}.fa-wix:before{content:"\f5cf"}.fa-behance-square:before,.fa-square-behance:before{content:"\f1b5"}.fa-supple:before{content:"\f3f9"}.fa-rebel:before{content:"\f1d0"}.fa-css3:before{content:"\f13c"}.fa-staylinked:before{content:"\f3f5"}.fa-kaggle:before{content:"\f5fa"}.fa-space-awesome:before{content:"\e5ac"}.fa-deviantart:before{content:"\f1bd"}.fa-cpanel:before{content:"\f388"}.fa-goodreads-g:before{content:"\f3a9"}.fa-git-square:before,.fa-square-git:before{content:"\f1d2"}.fa-square-tumblr:before,.fa-tumblr-square:before{content:"\f174"}.fa-trello:before{content:"\f181"}.fa-creative-commons-nc-jp:before{content:"\f4ea"}.fa-get-pocket:before{content:"\f265"}.fa-perbyte:before{content:"\e083"}.fa-grunt:before{content:"\f3ad"}.fa-weebly:before{content:"\f5cc"}.fa-connectdevelop:before{content:"\f20e"}.fa-leanpub:before{content:"\f212"}.fa-black-tie:before{content:"\f27e"}.fa-themeco:before{content:"\f5c6"}.fa-python:before{content:"\f3e2"}.fa-android:before{content:"\f17b"}.fa-bots:before{content:"\e340"}.fa-free-code-camp:before{content:"\f2c5"}.fa-hornbill:before{content:"\f592"}.fa-js:before{content:"\f3b8"}.fa-ideal:before{content:"\e013"}.fa-git:before{content:"\f1d3"}.fa-dev:before{content:"\f6cc"}.fa-sketch:before{content:"\f7c6"}.fa-yandex-international:before{content:"\f414"}.fa-cc-amex:before{content:"\f1f3"}.fa-uber:before{content:"\f402"}.fa-github:before{content:"\f09b"}.fa-php:before{content:"\f457"}.fa-alipay:before{content:"\f642"}.fa-youtube:before{content:"\f167"}.fa-skyatlas:before{content:"\f216"}.fa-firefox-browser:before{content:"\e007"}.fa-replyd:before{content:"\f3e6"}.fa-suse:before{content:"\f7d6"}.fa-jenkins:before{content:"\f3b6"}.fa-twitter:before{content:"\f099"}.fa-rockrms:before{content:"\f3e9"}.fa-pinterest:before{content:"\f0d2"}.fa-buffer:before{content:"\f837"}.fa-npm:before{content:"\f3d4"}.fa-yammer:before{content:"\f840"}.fa-btc:before{content:"\f15a"}.fa-dribbble:before{content:"\f17d"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-internet-explorer:before{content:"\f26b"}.fa-stubber:before{content:"\e5c7"}.fa-telegram-plane:before,.fa-telegram:before{content:"\f2c6"}.fa-old-republic:before{content:"\f510"}.fa-odysee:before{content:"\e5c6"}.fa-square-whatsapp:before,.fa-whatsapp-square:before{content:"\f40c"}.fa-node-js:before{content:"\f3d3"}.fa-edge-legacy:before{content:"\e078"}.fa-slack-hash:before,.fa-slack:before{content:"\f198"}.fa-medrt:before{content:"\f3c8"}.fa-usb:before{content:"\f287"}.fa-tumblr:before{content:"\f173"}.fa-vaadin:before{content:"\f408"}.fa-quora:before{content:"\f2c4"}.fa-reacteurope:before{content:"\f75d"}.fa-medium-m:before,.fa-medium:before{content:"\f23a"}.fa-amilia:before{content:"\f36d"}.fa-mixcloud:before{content:"\f289"}.fa-flipboard:before{content:"\f44d"}.fa-viacoin:before{content:"\f237"}.fa-critical-role:before{content:"\f6c9"}.fa-sitrox:before{content:"\e44a"}.fa-discourse:before{content:"\f393"}.fa-joomla:before{content:"\f1aa"}.fa-mastodon:before{content:"\f4f6"}.fa-airbnb:before{content:"\f834"}.fa-wolf-pack-battalion:before{content:"\f514"}.fa-buy-n-large:before{content:"\f8a6"}.fa-gulp:before{content:"\f3ae"}.fa-creative-commons-sampling-plus:before{content:"\f4f1"}.fa-strava:before{content:"\f428"}.fa-ember:before{content:"\f423"}.fa-canadian-maple-leaf:before{content:"\f785"}.fa-teamspeak:before{content:"\f4f9"}.fa-pushed:before{content:"\f3e1"}.fa-wordpress-simple:before{content:"\f411"}.fa-nutritionix:before{content:"\f3d6"}.fa-wodu:before{content:"\e088"}.fa-google-pay:before{content:"\e079"}.fa-intercom:before{content:"\f7af"}.fa-zhihu:before{content:"\f63f"}.fa-korvue:before{content:"\f42f"}.fa-pix:before{content:"\e43a"}.fa-steam-symbol:before{content:"\f3f6"}:host,:root{--fa-font-regular:normal 400 1em/1 "Font Awesome 6 Free"}@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:400;font-display:block;src:url(../assets/vendor/fontawesome/webfonts/fa-regular-400.woff2) format("woff2"),url(../assets/vendor/fontawesome/webfonts/fa-regular-400.ttf) format("truetype")}.fa-regular,.far{font-weight:400}:host,:root{--fa-style-family-classic:"Font Awesome 6 Free";--fa-font-solid:normal 900 1em/1 "Font Awesome 6 Free"}@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:900;font-display:block;src:url(../assets/vendor/fontawesome/webfonts/fa-solid-900.woff2) format("woff2"),url(../assets/vendor/fontawesome/webfonts/fa-solid-900.ttf) format("truetype")}.fa-solid,.fas{font-weight:900}@font-face{font-family:"Font Awesome 5 Brands";font-display:block;font-weight:400;src:url(../assets/vendor/fontawesome/webfonts/fa-brands-400.woff2) format("woff2"),url(../assets/vendor/fontawesome/webfonts/fa-brands-400.ttf) format("truetype")}@font-face{font-family:"Font Awesome 5 Free";font-display:block;font-weight:900;src:url(../assets/vendor/fontawesome/webfonts/fa-solid-900.woff2) format("woff2"),url(../assets/vendor/fontawesome/webfonts/fa-solid-900.ttf) format("truetype")}@font-face{font-family:"Font Awesome 5 Free";font-display:block;font-weight:400;src:url(../assets/vendor/fontawesome/webfonts/fa-regular-400.woff2) format("woff2"),url(../assets/vendor/fontawesome/webfonts/fa-regular-400.ttf) format("truetype")}@font-face{font-family:"FontAwesome";font-display:block;src:url(../assets/vendor/fontawesome/webfonts/fa-solid-900.woff2) format("woff2"),url(../assets/vendor/fontawesome/webfonts/fa-solid-900.ttf) format("truetype")}@font-face{font-family:"FontAwesome";font-display:block;src:url(../assets/vendor/fontawesome/webfonts/fa-brands-400.woff2) format("woff2"),url(../assets/vendor/fontawesome/webfonts/fa-brands-400.ttf) format("truetype")}@font-face{font-family:"FontAwesome";font-display:block;src:url(../assets/vendor/fontawesome/webfonts/fa-regular-400.woff2) format("woff2"),url(../assets/vendor/fontawesome/webfonts/fa-regular-400.ttf) format("truetype");unicode-range:u+f003,u+f006,u+f014,u+f016-f017,u+f01a-f01b,u+f01d,u+f022,u+f03e,u+f044,u+f046,u+f05c-f05d,u+f06e,u+f070,u+f087-f088,u+f08a,u+f094,u+f096-f097,u+f09d,u+f0a0,u+f0a2,u+f0a4-f0a7,u+f0c5,u+f0c7,u+f0e5-f0e6,u+f0eb,u+f0f6-f0f8,u+f10c,u+f114-f115,u+f118-f11a,u+f11c-f11d,u+f133,u+f147,u+f14e,u+f150-f152,u+f185-f186,u+f18e,u+f190-f192,u+f196,u+f1c1-f1c9,u+f1d9,u+f1db,u+f1e3,u+f1ea,u+f1f7,u+f1f9,u+f20a,u+f247-f248,u+f24a,u+f24d,u+f255-f25b,u+f25d,u+f271-f274,u+f278,u+f27b,u+f28c,u+f28e,u+f29c,u+f2b5,u+f2b7,u+f2ba,u+f2bc,u+f2be,u+f2c0-f2c1,u+f2c3,u+f2d0,u+f2d2,u+f2d4,u+f2dc}@font-face{font-family:"FontAwesome";font-display:block;src:url(../assets/vendor/fontawesome/webfonts/fa-v4compatibility.woff2) format("woff2"),url(../assets/vendor/fontawesome/webfonts/fa-v4compatibility.ttf) format("truetype");unicode-range:u+f041,u+f047,u+f065-f066,u+f07d-f07e,u+f080,u+f08b,u+f08e,u+f090,u+f09a,u+f0ac,u+f0ae,u+f0b2,u+f0d0,u+f0d6,u+f0e4,u+f0ec,u+f10a-f10b,u+f123,u+f13e,u+f148-f149,u+f14c,u+f156,u+f15e,u+f160-f161,u+f163,u+f175-f178,u+f195,u+f1f8,u+f219,u+f27a}
/* v3.8.27 — split panels, focus mode, teacher controls. */
#view-classes .class-details-grid { grid-template-columns:minmax(0,var(--class-list-width,39%)) 12px minmax(0,1fr)!important; gap:8px!important; }
/* Fine visible line, with a wider transparent pointer target. */
#class-splitter { position:relative; cursor:col-resize; touch-action:none; background:transparent; min-height:180px; align-self:stretch; }
#class-splitter::before { content:""; position:absolute; top:0; bottom:0; left:50%; width:1px; background:var(--border,#cbd5e1); pointer-events:none; }
#class-splitter:hover::before, #class-splitter:focus-visible::before { background:var(--primary,#2563eb); }
#class-splitter:focus-visible { outline:1px dotted var(--primary,#2563eb); outline-offset:1px; }
#class-edt-block .edt-grid { grid-template-columns:minmax(36px,60px) repeat(5,minmax(0,1fr))!important; }
#class-edt-block .edt-cell { min-width:0; overflow-wrap:anywhere; }
@media(max-width:900px) { #view-classes .class-details-grid { grid-template-columns:minmax(0,1fr)!important; } #class-splitter { display:none; } }
#plan-export-area .teacher-desk-controls { left:auto; right:0; top:0; transform:none; }
.plan-tools-grid { display:flex!important; flex-wrap:wrap; gap:8px; }
.plan-tools-grid > button { flex:1 1 130px; grid-column:auto!important; }
.plan-exit-focus { display:none; }
body.plan-fullscreen .plan-exit-focus { display:inline-flex; align-self:flex-end; margin-bottom:8px; }
body.plan-fullscreen .plan-sidebar, body.plan-fullscreen .app-nav, body.plan-fullscreen .app-bottom-nav { display:none!important; }
body.plan-fullscreen #view-plan.active { position:relative!important; inset:auto!important; z-index:auto!important; background:transparent!important; }
body.plan-fullscreen .plan-layout { display:grid!important; grid-template-columns:minmax(0,1fr)!important; height:auto!important; }
body.plan-fullscreen .plan-main { height:auto!important; overflow:visible!important; }
body.plan-fullscreen .plan-toolbar { position:static!important; display:flex!important; }
body.plan-fullscreen .canvas-wrapper { min-height:0!important; }
body.plan-fullscreen .app-footer { display:block!important; }

#plan-classroom .draggable-table { padding:5.5px!important; gap:6px!important; min-width:92px!important; height:auto!important; box-sizing:border-box; }
