/* ==========================================================
   Scolaria — espace école (inscription, connexion, tableau de bord)
   Complète scolaria-auth.css et scolaria-admin.css (mêmes variables)
   ========================================================== */

:root {
    --sa-encre: #17324d;
    --sa-encre-clair: #24496e;
    --sa-ambre: #e9a21b;
    --sa-ambre-clair: #fdf1d8;
    --sa-ligne: #e8e1d1;
    --sa-bordure: #d6d1c6;
    --sa-muted: #6b7280;
    --sa-danger: #b42318;
    --sa-succes: #1f7a4d;
}

/* ---------- Inscription : carte plus large, sections numérotées ---------- */
.sa-auth-card--large {
    max-width: 640px;
}

.ec-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 16px;
    padding-top: 6px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--sa-encre);
}

.ec-section + .form-group,
.ec-section + .form-row {
    margin-top: 0;
}

.sa-form .ec-section:not(:first-child) {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px dashed var(--sa-ligne);
}

.ec-section span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-size: .8rem;
    background: var(--sa-encre);
    color: #fff;
}

.sa-aside-slug {
    font-style: normal;
    color: var(--sa-ambre);
}

/* ---------- Champ « adresse web » : scolaria.bi/[slug] ---------- */
.ec-slug,
.ec-tel {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--sa-bordure);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}

.ec-slug:focus-within,
.ec-tel:focus-within {
    border-color: var(--sa-encre-clair);
    box-shadow: 0 0 0 3px rgba(233, 162, 27, .28);
}

.ec-slug.is-invalid,
.ec-tel.is-invalid {
    border-color: var(--sa-danger);
}

.ec-slug-prefixe,
.ec-tel-indicatif {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f7f4ee;
    border-right: 1px solid var(--sa-ligne);
    color: var(--sa-muted);
    font-size: .88rem;
    font-weight: 600;
    white-space: nowrap;
}

.sa-form .ec-slug .form-control,
.sa-form .ec-tel .form-control {
    border: 0;
    border-radius: 0;
    padding-left: 12px;
    box-shadow: none;
    min-width: 0;
}

.sa-form .ec-slug .form-control:focus,
.sa-form .ec-tel .form-control:focus {
    box-shadow: none;
}

.ec-slug-etat {
    min-height: 20px;
    margin-top: 6px;
    font-size: .84rem;
}

.ec-slug-etat.attente { color: var(--sa-muted); }
.ec-slug-etat.ok      { color: var(--sa-succes); font-weight: 600; }
.ec-slug-etat.ko      { color: var(--sa-danger); }

.ec-suggestion {
    border: 0;
    padding: 1px 8px;
    margin-left: 2px;
    border-radius: 6px;
    background: var(--sa-ambre-clair);
    color: #7a4f02;
    font-weight: 700;
    font-size: .82rem;
    cursor: pointer;
}

.ec-suggestion:hover {
    background: #fbe3b0;
}

/* ---------- Tableau de bord école ---------- */
.ec-nav-ecole {
    font-weight: 700;
    color: var(--sa-encre);
    padding: 0 .5rem;
}

.ec-devise {
    font-size: .9rem;
    font-weight: 600;
    color: var(--sa-muted);
}

.ec-essai {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #eef4fb;
    border: 1px solid #c7d9ee;
    color: var(--sa-encre);
    font-size: .92rem;
}

.ec-essai-proche { background: var(--sa-ambre-clair); border-color: #f2d28c; color: #7a4f02; }
.ec-essai-fini   { background: #fef3f2; border-color: #fecdca; color: #912018; }

.ec-etapes {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ec-etapes li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px dashed var(--sa-ligne);
}

.ec-etapes li:last-child {
    border-bottom: 0;
}

.ec-etapes strong {
    display: block;
    color: var(--sa-encre);
}

.ec-etapes span:not(.ec-etape-num) {
    font-size: .86rem;
    color: var(--sa-muted);
}

.ec-etape-num {
    flex: 0 0 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .85rem;
    font-weight: 700;
    background: #f1ede4;
    color: var(--sa-muted);
}

.ec-etapes li.fait .ec-etape-num {
    background: #e6f5ec;
    color: var(--sa-succes);
}

@media (max-width: 480px) {
    .ec-slug-prefixe { padding: 0 8px; font-size: .78rem; }
}

/* ==========================================================
   Paramétrage scolaire
   ========================================================== */

/* Boutons de l'espace école (les pages avec menu ne chargent pas scolaria-auth.css) */
.sa-btn-primary,
.ec-btn {
    background: var(--sa-encre);
    border: 1px solid var(--sa-encre);
    color: #fff;
    font-weight: 700;
    border-radius: 9px;
}
.sa-btn-primary:hover, .ec-btn:hover { background: #0f2438; border-color: #0f2438; color: #fff; }
.sa-btn-primary:focus, .ec-btn:focus { color: #fff; box-shadow: 0 0 0 3px rgba(233, 162, 27, .35); }

.ec-btn-leger {
    background: #fff;
    border: 1px solid var(--sa-bordure);
    color: var(--sa-encre);
    border-radius: 8px;
    font-weight: 600;
}
.ec-btn-leger:hover { background: #f3f0ea; color: var(--sa-encre); }

.ec-btn-danger {
    background: #fff;
    border: 1px solid #f3c2bd;
    color: var(--sa-danger);
    border-radius: 8px;
}
.ec-btn-danger:hover { background: #fef3f2; color: #912018; }

/* En-tête et onglets */
.ec-entete-page { margin-bottom: 18px; }
.ec-entete-texte { margin: 4px 0 0; color: var(--sa-muted); }
.sa-page-titre { font-family: 'Fraunces', Georgia, serif; color: var(--sa-encre); font-weight: 600; font-size: 1.6rem; margin: 0; }

.ec-onglets {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--sa-ligne);
}
.ec-onglets a {
    padding: 10px 16px;
    margin-bottom: -1px;
    border-bottom: 3px solid transparent;
    color: var(--sa-muted);
    font-weight: 600;
    text-decoration: none;
}
.ec-onglets a:hover { color: var(--sa-encre); }
.ec-onglets a.actif { color: var(--sa-encre); border-bottom-color: var(--sa-ambre); }

/* Assistant : étapes */
.ec-stepper {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    gap: 8px;
}
.ec-stepper li {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--sa-ligne);
    border-radius: 12px;
    color: var(--sa-muted);
    font-weight: 600;
}
.ec-stepper li.actuelle { border-color: var(--sa-ambre); color: var(--sa-encre); box-shadow: 0 0 0 3px rgba(233, 162, 27, .15); }
.ec-stepper li.fait { color: #1f7a4d; }
.ec-stepper-num {
    width: 28px; height: 28px; flex: 0 0 28px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: #f1ede4; font-size: .85rem;
}
.ec-stepper li.actuelle .ec-stepper-num { background: var(--sa-encre); color: #fff; }
.ec-stepper li.fait .ec-stepper-num { background: #e6f5ec; color: #1f7a4d; }

.ec-carte-etape .card-body { padding: 28px; }
.ec-titre-etape { font-family: 'Fraunces', Georgia, serif; font-size: 1.35rem; color: var(--sa-encre); margin: 0 0 6px; }
.ec-actions-etape { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--sa-ligne); text-align: right; }

/* Cartes de choix (radio / case à cocher) */
.ec-choix-cartes, .ec-cycles-modele { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ec-choix { position: relative; display: block; margin: 0; cursor: pointer; font-weight: 400; }
.ec-choix input { position: absolute; top: 16px; left: 16px; }
.ec-choix-contenu {
    display: block;
    height: 100%;
    padding: 14px 16px 14px 44px;
    border: 1px solid var(--sa-bordure);
    border-radius: 12px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.ec-choix-contenu strong { display: block; color: var(--sa-encre); }
.ec-choix-contenu > span { display: block; font-size: .85rem; color: var(--sa-muted); }
.ec-choix input:checked + .ec-choix-contenu { border-color: var(--sa-ambre); background: #fffaf0; box-shadow: 0 0 0 3px rgba(233, 162, 27, .15); }
.ec-choix input:focus-visible + .ec-choix-contenu { box-shadow: 0 0 0 3px rgba(36, 73, 110, .3); }
.ec-niveaux-apercu { margin-top: 8px; display: flex !important; flex-wrap: wrap; gap: 4px; }
.ec-niveaux-apercu em { font-style: normal; font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: #f1ede4; color: #5b5346; }

/* Assistant étape 3 : grille des niveaux */
.ec-grille-niveaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.ec-grille-cycle { grid-column: 1 / -1; margin-top: 10px; font-weight: 700; color: var(--sa-encre); border-bottom: 1px dashed var(--sa-ligne); padding-bottom: 4px; }
.ec-ligne-niveau { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; font-weight: 400; padding: 6px 0; }
.ec-ligne-niveau input { width: 80px; text-align: center; }

/* Structure */
.ec-cycle-nom { font-family: 'Fraunces', Georgia, serif; font-size: 1.15rem; font-weight: 600; color: var(--sa-encre); }
.ec-abrege { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #f1ede4; font-weight: 700; font-size: .8rem; color: #5b5346; }
.ec-form-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.ec-form-inline .form-control { width: auto; flex: 1 1 160px; }
.ec-form-inline .ec-court { flex: 0 0 90px; }
.ec-details { position: relative; }
.ec-details > summary { list-style: none; }
.ec-details > summary::-webkit-details-marker { display: none; }
.ec-details[open] > form {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
    min-width: 340px; padding: 10px;
    background: #fff; border: 1px solid var(--sa-ligne); border-radius: 10px;
    box-shadow: 0 12px 28px -12px rgba(23, 50, 77, .35);
}
.ec-ligne-ajout td { background: #fcfbf8; }
.ec-sections { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #fcfbf8; border-top: 1px solid var(--sa-ligne); }
.ec-sections-titre { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sa-muted); margin-right: 4px; }
.ec-puce { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--sa-ambre-clair); color: #7a4f02; font-weight: 600; font-size: .85rem; }
.ec-puce-petite { padding: 2px 10px; font-size: .78rem; }
.ec-puce-x { border: 0; background: transparent; color: #9a6304; font-size: 1rem; line-height: 1; padding: 0 6px; cursor: pointer; border-radius: 50%; }
.ec-puce-x:hover { background: #fbe3b0; }

/* Classes et années */
.ec-barre { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.ec-barre .form-control { min-width: 240px; }
.ec-compteur { font-weight: 700; color: var(--sa-encre); }
.ec-collant { position: sticky; top: 16px; }
.ec-periodes { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.ec-periode { padding: 10px 12px; border: 1px solid var(--sa-ligne); border-radius: 10px; background: #fcfbf8; }
.ec-periode strong { display: block; color: var(--sa-encre); }
.ec-periode span { font-size: .82rem; color: var(--sa-muted); }

/* Tableau de bord : étape « à faire » */
.ec-etapes li.actuelle .ec-etape-num { background: var(--sa-ambre); color: #0f2438; }
.ec-etape-lien { display: inline-block; margin-top: 6px; font-weight: 700; font-size: .88rem; color: var(--sa-encre-clair); }

@media (max-width: 767.98px) {
    .ec-stepper { flex-direction: column; }
    .ec-details[open] > form { position: static; min-width: 0; margin-top: 6px; }
    .ec-collant { position: static; }
    .ec-form-inline { flex-wrap: wrap; }
    .ec-form-inline .form-control { min-width: 0; flex-basis: 100%; }
    .ec-form-inline .ec-court { flex: 1 1 80px; }
    .ec-details[open] { flex-basis: 100%; }
    .ec-details[open] > form.ec-form-classe { position: fixed; left: 12px; right: 12px; bottom: 12px; top: auto; z-index: 1050; margin: 0; min-width: 0; padding: 14px; box-shadow: 0 -8px 30px rgba(23, 50, 77, .35); }
}

/* ==========================================================
   Élèves
   ========================================================== */
.ec-actions-entete { display: flex; gap: 8px; flex-wrap: wrap; }
.ec-retour { display: inline-block; margin-bottom: 6px; font-size: .88rem; font-weight: 600; color: var(--sa-muted); }
.ec-retour:hover { color: var(--sa-encre); text-decoration: none; }
.ec-num-section {
    display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 6px;
    border-radius: 50%; background: var(--sa-encre); color: #fff; font-size: .78rem; font-weight: 700;
}
.ec-majuscules { text-transform: uppercase; }
.ec-majuscules::placeholder { text-transform: none; }

/* Effectifs par classe */
.ec-effectifs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.ec-effectif {
    flex: 0 0 auto; display: flex; flex-direction: column; min-width: 78px; padding: 8px 12px;
    background: #fff; border: 1px solid var(--sa-ligne); border-radius: 10px; color: var(--sa-muted);
    font-size: .8rem; font-weight: 600; text-decoration: none;
}
.ec-effectif strong { font-size: 1.15rem; color: var(--sa-encre); }
.ec-effectif strong em { font-style: normal; font-size: .75rem; color: var(--sa-muted); font-weight: 600; }
.ec-effectif:hover { border-color: var(--sa-bordure); text-decoration: none; color: var(--sa-encre); }
.ec-effectif.actif { border-color: var(--sa-ambre); background: #fffaf0; box-shadow: 0 0 0 3px rgba(233, 162, 27, .15); }

/* Recherche */
.ec-recherche { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.ec-recherche-champ { position: relative; flex: 1 1 280px; }
.ec-recherche-champ i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9aa3af; }
.ec-recherche-champ .form-control { padding-left: 36px; border-radius: 9px; }
.ec-filtre-case { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--sa-encre); cursor: pointer; }

/* Tableau des élèves */
.ec-table-eleves tbody tr { cursor: pointer; }
.ec-table-eleves tbody tr:hover { background: #fffaf0; }
.ec-matricule {
    display: inline-block; padding: 2px 8px; border-radius: 6px; background: #eef4fb; color: var(--sa-encre);
    font-family: Consolas, Monaco, monospace; font-size: .82rem; font-weight: 700; letter-spacing: .02em;
}
.ec-nom-eleve { font-weight: 700; color: var(--sa-encre); }
.ec-sexe { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 6px; border-radius: 50%; font-size: .68rem; font-weight: 700; vertical-align: middle; }
.ec-sexe-f { background: #fbeaf0; color: #993556; }
.ec-sexe-m { background: #e6f1fb; color: #185fa5; }
.ec-pagination { display: flex; align-items: center; gap: 6px; background: #fcfbf8; }

/* Formulaire : parents */
.ec-tuteur { padding: 14px 16px 10px; margin-bottom: 12px; border: 1px solid var(--sa-ligne); border-radius: 12px; background: #fcfbf8; }
.ec-tuteur-erreur { border-color: #fecdca; background: #fef8f7; }
.ec-tuteur-titre { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: var(--sa-encre); }
.ec-radio-principal { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .85rem; font-weight: 600; color: #7a4f02; cursor: pointer; }
.ec-tuteur .form-group { margin-bottom: 10px; }
.ec-segment { display: inline-flex; border: 1px solid var(--sa-bordure); border-radius: 9px; overflow: hidden; }
.ec-segment label { margin: 0; cursor: pointer; }
.ec-segment input { position: absolute; opacity: 0; pointer-events: none; }
.ec-segment span { display: block; padding: 7px 18px; font-weight: 600; color: var(--sa-muted); }
.ec-segment input:checked + span { background: var(--sa-encre); color: #fff; }
.ec-segment input:focus-visible + span { box-shadow: inset 0 0 0 2px var(--sa-ambre); }

/* Fiche élève */
.ec-fiche-entete .card-body { gap: 18px; }
.ec-avatar-eleve { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; font-weight: 700; }
.ec-sexe-fond-f { background: #fbeaf0; color: #993556; }
.ec-sexe-fond-m { background: #e6f1fb; color: #185fa5; }
.ec-fiche-infos { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; color: var(--sa-muted); font-size: .92rem; }
.ec-parent { display: flex; align-items: flex-start; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #f1ece2; }
.ec-parent-identite { flex: 1; }
.ec-parent-identite strong { color: var(--sa-encre); margin-right: 6px; }
.ec-parent-actions { display: flex; gap: 4px; }
.ec-ajout-parent { padding: 14px 20px; }
.ec-ajout-parent summary { cursor: pointer; font-weight: 700; color: var(--sa-encre-clair); }
.ec-parcours { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--sa-ligne); }
.ec-parcours li { position: relative; padding: 0 0 16px 18px; }
.ec-parcours li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--sa-bordure); }
.ec-parcours li.actuel::before { background: var(--sa-ambre); border-color: var(--sa-ambre); }
.ec-parcours strong { display: block; color: var(--sa-encre); }
.ec-parcours span { display: block; }
.ec-documents { list-style: none; margin: 0 0 16px; padding: 0; }
.ec-documents li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--sa-ligne); }
.ec-doc-icone { font-size: 1.5rem; color: #b42318; width: 28px; text-align: center; }
.ec-upload { padding: 12px; border: 1px dashed var(--sa-bordure); border-radius: 10px; background: #fcfbf8; margin-bottom: 6px; }
.ec-upload .form-control-file { flex: 1 1 220px; }

/* Import */
.ec-depot { display: flex; align-items: center; gap: 12px; padding: 18px; border: 2px dashed var(--sa-bordure); border-radius: 12px; background: #fcfbf8; }
.ec-depot i { font-size: 2rem; color: #1f7a4d; }
.ec-import-bilan { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.ec-import-chiffre { padding: 10px 16px; border-radius: 12px; border: 1px solid var(--sa-ligne); background: #fff; }
.ec-import-chiffre strong { font-size: 1.4rem; margin-right: 6px; }
.ec-import-chiffre.ok strong { color: #1f7a4d; }
.ec-import-chiffre.ko strong { color: var(--sa-danger); }
.ec-ligne-ko { background: #fef8f7; }
.ec-erreurs-ligne { color: #912018; font-size: .85rem; font-weight: 600; }

/* ===== Sections post-fondamental (abréviations, tableau niveau × section) ===== */
.ec-puce-abrege { font-style: normal; font-weight: 700; font-size: .72rem; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.7); color: var(--sa-encre); }
th .ec-puce-abrege { background: var(--sa-ambre-clair); color: #7a4f02; margin-left: 4px; }
.ec-details-puce { display: inline-block; }
.ec-details-puce[open] > form { left: 0; right: auto; }

.ec-bloc-sections { border: 1px dashed var(--sa-ligne); border-radius: 12px; padding: 12px 16px; margin-bottom: 22px; background: #fcfbf8; }
.ec-bloc-sections > summary { cursor: pointer; font-weight: 600; color: var(--sa-encre); }
.ec-bloc-sections > summary .text-muted { font-weight: 400; font-size: .85rem; margin-left: 6px; }
.ec-ligne-sections { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--sa-ligne); }
.ec-ligne-sections-cycle { min-width: 140px; color: var(--sa-encre); }
.ec-ligne-sections-actuelles { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ec-ligne-sections .form-control { flex: 1 1 200px; width: auto; }

.ec-tableau-cycle { margin-bottom: 18px; }
.ec-tableau-cycle .ec-grille-cycle { margin-top: 0; margin-bottom: 6px; }
.ec-tableau-classes th { font-size: .8rem; font-weight: 600; color: var(--sa-muted); border-top: 0; white-space: nowrap; }
.ec-tableau-classes td { vertical-align: middle; }
.ec-nb { width: 70px; margin: 0 auto; text-align: center; }
.ec-nb:not([value="0"]) { border-color: var(--sa-ambre); background: #fffaf0; font-weight: 700; }

.ec-serie > summary { cursor: pointer; list-style: none; font-weight: 600; }
.ec-serie > summary::-webkit-details-marker { display: none; }
.ec-form-classe label { display: block; text-align: left; }
.ec-details[open] > form.ec-form-classe { min-width: 260px; }
.ec-filtre-section { width: auto; flex: 0 0 auto; max-width: 220px; }

/* ==========================================================
   Matières : catalogue et programmes
   ========================================================== */
.ec-cat-groupe { margin-bottom: 14px; }
.ec-cat-groupe-titre { display: flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--sa-muted); border-bottom: 1px dashed var(--sa-ligne); padding-bottom: 4px; margin-bottom: 4px; }
.ec-cat-ligne { display: flex; align-items: center; gap: 2px; padding: 5px 0; font-size: .9rem; border-bottom: 1px solid #f1ede4; }
.ec-cat-ligne:last-child { border-bottom: 0; }
.ec-cat-ligne.inactive > span:first-child { color: #9aa3af; }
.ec-cat-ajout { border-top: 1px solid var(--sa-ligne); padding-top: 10px; margin-top: 10px; }
.ec-cat-ajout > summary { cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--sa-encre); }

.ec-outils-programme { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.ec-classes-concernees { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ec-table-programme td { vertical-align: middle; }
.ec-col-ordre { width: 70px; }
.ec-ordre { width: 58px; text-align: center; }
.ec-max { width: 78px; margin: 0 auto; text-align: center; font-weight: 600; }
.ec-groupe-ligne td { background: #fcfbf8; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sa-muted); padding-top: 8px !important; padding-bottom: 8px !important; }
.ec-ligne-matiere.retiree td { opacity: .45; text-decoration: line-through; }
.ec-retirer { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--sa-ligne); color: #9aa3af; cursor: pointer; }
.ec-retirer input { position: absolute; opacity: 0; pointer-events: none; }
.ec-retirer:has(input:checked) { background: #fdecec; border-color: #e8a5a5; color: #b42318; }
.ec-total-programme td { font-weight: 700; color: var(--sa-encre); background: var(--sa-ambre-clair); border-top: 2px solid var(--sa-ambre); }
/* Une zone défilante dans une carte (flex) ne doit pas s'élargir à la taille du tableau */
.card > .card-body.table-responsive, .card > .table-responsive { min-width: 0; }