/* Impression de n'importe quelle page (navigation masquée). Les documents imprimables de print.php
   ont leur feuille : css/print.css. */
@media print {
    .d-print-none { display: none !important; }
    body { margin: 0; }
    @page { margin: 1cm; }
    nav, header, footer, .navbar, .sidebar, .card-header { display: none !important; }
}

/* Règle générale : tous les boutons du projet doivent être arrondis (comme .btn-rounded) */
.btn { border-radius: 50px !important; }

/* ── Charte commune du back-office (2026-10-19) ──────────────────────────────────────────────
   Couleurs du thème (main.css) en variables, à utiliser au lieu d'une couleur écrite en dur ; classes
   utilitaires qui remplacent les style="" répétés dans les pages. Une nouvelle page utilise ces
   classes plutôt qu'un style en ligne. */
:root {
    --incg-vert: #007F35;         /* couleur INCG : primaire et succès du thème */
    --incg-rouge: #ef2f1a;        /* danger */
    --incg-orange: #ffb933;       /* alerte */
    --incg-bleu: #0d5890;         /* information */
    --incg-gris: #6c757d;         /* texte secondaire, icônes */
    --incg-gris-texte: #858b9a;   /* text-muted du thème */
    --incg-gris-bordure: #e1e5f1; /* bordures */
    --incg-gris-fond: #f5f6fa;    /* fond des pages */
}
.col-min { width: 1%; }                     /* colonne réduite à son contenu (options, cases) */
.pe-none { pointer-events: none; }
.bg-incg { background-color: var(--incg-vert) !important; }
.text-incg { color: var(--incg-vert) !important; }
/* tailles de texte et d'icône (petits libellés, grandes icônes des pages vides et des profils) */
.fs-10 { font-size: 10px !important; }
.fs-11 { font-size: 11px !important; }
.fs-12 { font-size: 12px !important; }
.fs-13 { font-size: 13px !important; }
.fs-14 { font-size: 14px !important; }
.fs-30 { font-size: 30px !important; }
.fs-80 { font-size: 80px !important; }
.fs-3rem { font-size: 3rem !important; }

/* Styles utilitaires généraux */
.cursor-pointer { cursor: pointer; }

/* Utilitaires Bootstrap 5 absents de Bootstrap 4.6 (chargé par le back-office) et utilisés dans
   les pages : espacement entre éléments flex (gap-*), gouttières réduites (row g-*), arrondi,
   opacité, tailles d'icône. Les autres classes Bootstrap 5 (fw-bold, me-*, text-end, badge bg-*...)
   ont été remplacées par leur équivalent Bootstrap 4 (2026-10-19). */
.gap-1 { gap: .25rem !important; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.row.g-0 { margin-right: 0; margin-left: 0; }
.row.g-0 > [class*="col"] { padding-right: 0; padding-left: 0; }
.row.g-1 { margin: -.25rem -.125rem 0; }
.row.g-1 > * { padding-right: .125rem; padding-left: .125rem; margin-top: .25rem; }
.row.g-2 { margin: -.5rem -.25rem 0; }
.row.g-2 > * { padding-right: .25rem; padding-left: .25rem; margin-top: .5rem; }
.rounded-3 { border-radius: .5rem !important; }
.opacity-75 { opacity: .75 !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-20 { font-size: 20px !important; }
.clignote {
    animation: blinker 1.5s linear infinite;
}
@keyframes blinker {
    50% { opacity: 0; }
}

.vertical-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.font-size-40 { font-size: 40px; }
.btn-xs { padding: 0.2rem 0.4rem; line-height: 1; }

/* Boutons à couleur dynamique (entité/site) — forcer texte blanc au hover */
.btn-entity, .btn-entity:hover, .btn-entity:focus, .btn-entity:active {
    color: #fff !important;
}

/* Boutons filtre dates (cours.php) : outline gris clair au repos, sombre au hover */
a.filter-link,
a.filter-link.btn-filtre,
a.filter-link.btn-sm {
    border: 1px solid #ced4da !important;
    color: #495057 !important;
    background: transparent !important;
    transition: all 0.2s;
}
a.filter-link:hover,
a.filter-link.active,
a.filter-link:focus {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: none !important;
}
/* Override specifique pour les classes outline-primary sur les filter-links */
a.filter-link.btn-outline-primary,
a.filter-link.btn-outline-secondary,
a.filter-link.btn-outline-success,
a.filter-link.btn-outline-info,
a.filter-link.btn-outline-danger,
a.filter-link.btn-outline-dark {
    color: #495057 !important;
    background: transparent !important;
    border-color: #ced4da !important;
}
a.filter-link.btn-outline-primary:hover,
a.filter-link.btn-outline-secondary:hover,
a.filter-link.btn-outline-success:hover,
a.filter-link.btn-outline-info:hover,
a.filter-link.btn-outline-danger:hover,
a.filter-link.btn-outline-dark:hover,
a.filter-link.btn-outline-primary:focus,
a.filter-link.btn-outline-secondary:focus,
a.filter-link.btn-outline-success:focus,
a.filter-link.btn-outline-info:focus,
a.filter-link.btn-outline-danger:focus,
a.filter-link.btn-outline-dark:focus {
    color: #fff !important;
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Tous les boutons avec background-color inline -> forcer texte lisible au hover */
.btn[style*="background-color"]:hover,
.btn[style*="background-color"]:focus,
.btn[style*="background-color"]:active {
    color: #fff !important;
}

/* Correction survol boutons : lisibilité du texte */
.btn:hover, .btn:focus, .btn:active { text-decoration: none; }

/* Boutons solides : texte blanc au hover/active uniquement (focus géré par Bootstrap) */
.btn-primary:hover, .btn-primary:active   { color: #fff !important; }
.btn-secondary:hover, .btn-secondary:active { color: #fff !important; }
.btn-success:hover, .btn-success:active   { color: #fff !important; }
.btn-info:hover, .btn-info:active         { color: #fff !important; }
.btn-danger:hover, .btn-danger:active     { color: #fff !important; }
.btn-dark:hover, .btn-dark:active         { color: #fff !important; }
.btn-warning:hover, .btn-warning:active   { color: #212529 !important; }
.btn-light:hover, .btn-light:active       { color: #212529 !important; }

/* Boutons outline : hover et active → fond coloré + texte blanc */
.btn-outline-primary:hover,   .btn-outline-primary:active   { color: #fff !important; }
.btn-outline-secondary:hover, .btn-outline-secondary:active { color: #fff !important; }
.btn-outline-success:hover,   .btn-outline-success:active   { color: #fff !important; }
.btn-outline-info:hover,      .btn-outline-info:active      { color: #fff !important; }
.btn-outline-danger:hover,    .btn-outline-danger:active    { color: #fff !important; }
.btn-outline-dark:hover,      .btn-outline-dark:active      { color: #fff !important; }
.btn-outline-warning:hover,   .btn-outline-warning:active   { color: #212529 !important; }
.btn-outline-light:hover,     .btn-outline-light:active     { color: #212529 !important; }

/* Badge « Antérieur » du versement antérieur à l'ERP (2026-11-16, remarque du propriétaire : « pas visible en jaune ») : jaune franc,
   texte foncé ; le jaune du thème (#ffb933 avec du texte blanc) se lit mal. Le bouton suit le style uniforme des boutons contour
   (fin de ce fichier). */
.badge-anterieur { background-color: #ffc107; color: #212529; }

/* Fix : état focus après clic — supprimer le box-shadow résiduel sans toucher au fond */
.btn:focus:not(:hover) { box-shadow: none !important; outline: none; }

/* Styles Messagerie Unifiée */
.message-wrapper { padding:0; margin:0; list-style:none; }
.message-wrapper li { display:flex; align-items:flex-start; margin-bottom:15px; }
.message-wrapper li.in { flex-direction:row; }
.message-wrapper li.out { flex-direction:row-reverse; }
.message-wrapper li.out .message { text-align: right; }
.message-wrapper .avatar { width:42px; height:42px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.message { max-width:70%; display:flex; flex-direction:column; }
.message .infos { font-size:12px; margin:0 8px 4px 8px; color:var(--incg-gris); }
.message .name { font-weight:600; color:#212529; }
.message .body { margin:0 8px; padding:10px 14px; border-radius:16px; background:#f1f1f1; line-height:1.4; word-break:break-word; text-align: left; }
li.out .message .body { background:var(--primary-color); color:#fff; }

/* Styles Filtres cours (provenance : cours.php) */
.filter-container { background:#f8f9fa; border-radius:6px; padding:8px 12px; margin-bottom:12px; }
.filter-row { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.filter-row label { font-size:10px; font-weight:600; color:var(--incg-gris); margin:0; white-space:nowrap; }
.filter-block { display:flex; flex-direction:row; align-items:center; gap:4px; }
.btn-filtre { padding:2px 10px; border-radius:20px !important; }
.sel-filtre { padding:2px 6px !important; height:auto !important; min-height:26px; }
.barre-info { font-size:12px; background:#e9ecef; border-radius:4px; padding:4px 10px; margin-bottom:8px; display:flex; justify-content:space-between; }

/* Styles Facture Proforma */
.proforma-header { margin-bottom: 30px; }
.proforma-title { font-size: 28px; font-weight: bold; color: #333; margin-bottom: 20px; text-align: center; }
.client-box { border: 1px solid #ddd; padding: 15px; border-radius: 5px; background: #fefefe; }
.table-proforma { width: 100%; border-collapse: collapse; margin-top: 20px; }
.table-proforma th { background: #333; color: #fff; padding: 10px; text-align: left; }
.table-proforma td { padding: 10px; border-bottom: 1px solid #eee; }
.total-row { font-weight: bold; font-size: 18px; background: #f9f9f9; }

@media print {
    .proforma-container { padding: 0; }
    .client-box { border: 1px solid #000; }
    .table-proforma th { background: #000 !important; color: #fff !important; -webkit-print-color-adjust: exact; }
    .total-row { background: #eee !important; -webkit-print-color-adjust: exact; }
}

.doc-fin { --doc-accent: #1d4f91; --doc-accent-tint: rgba(29, 79, 145, 0.08); font-family: 'Source Sans 3', 'Segoe UI', sans-serif; font-size: 14px; line-height: 1.45; color: #1c1f24; font-variant-numeric: tabular-nums; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc-fin > * + * { margin-top: 20px; }
.doc-fin-barre { height: 8px; background: var(--doc-accent); }
.doc-fin-entete { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.doc-fin-titre { font-size: 32px; font-weight: 700; color: var(--doc-accent); letter-spacing: 0.02em; line-height: 1.15; }
.doc-fin-numero { font-size: 15px; color: #3d434c; }
.doc-fin-numero strong { color: #1c1f24; }
.doc-fin-infos { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.doc-fin-info { display: flex; flex-direction: column; min-width: 96px; padding: 8px 12px; border-radius: 6px; background: var(--doc-accent-tint); }
.doc-fin-info span { font-size: 12px; color: #3d434c; }
.doc-fin-info-large { max-width: 240px; }
.doc-fin-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.doc-fin-partie { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 8px; background: #f5f6f8; }
.doc-fin-partie-label { margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--doc-accent); }
.doc-fin-forme { font-size: 13px; font-weight: 700; }
.doc-fin-nom { font-size: 17px; font-weight: 700; }
.doc-fin-fiscal { font-size: 13px; color: #3d434c; }
.doc-fin-fiscal-premier { margin-top: 6px; }
.doc-fin .doc-fin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc-fin .doc-fin-table th { padding: 9px 10px; background: var(--doc-accent); color: #fff; font-weight: 600; text-align: left; border: 0; }
.doc-fin .doc-fin-table td { padding: 10px; border: 0; border-bottom: 1px solid #d5d9df; vertical-align: top; }
.doc-fin .doc-fin-table tbody tr:nth-child(even) td { background: #fafbfc; }
.doc-fin .doc-fin-table .num { text-align: right; white-space: nowrap; }
.doc-fin-col-qte { width: 70px; }
.doc-fin-col-pu { width: 120px; }
.doc-fin-col-montant { width: 140px; }
.doc-fin-desc { font-size: 12px; color: #4a515b; }
.doc-fin-totaux { width: 330px; margin-left: auto; }
.doc-fin-ligne { display: flex; justify-content: space-between; padding: 4px 10px; }
.doc-fin-ligne-sep { border-top: 1px solid #d5d9df; }
.doc-fin-total { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding: 12px 14px; border-radius: 8px; background: var(--doc-accent); color: #fff; font-weight: 700; }
.doc-fin-total span:first-child { font-size: 15px; }
.doc-fin-total span:last-child { font-size: 22px; }
.doc-fin-lettres { padding: 10px 14px; border-radius: 6px; background: var(--doc-accent-tint); }
.doc-fin-remarque { font-size: 13px; }
.doc-fin-pied { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-top: 12px; }
.doc-fin-conditions { display: flex; flex-direction: column; gap: 4px; max-width: 380px; font-size: 13px; }
.doc-fin-conditions strong { color: var(--doc-accent); }
.doc-fin-signature { flex-shrink: 0; width: 230px; height: 120px; box-sizing: border-box; padding: 8px 10px; border: 1px solid #9aa1ab; border-radius: 8px; font-size: 12px; color: #3d434c; text-align: center; }

@media screen {
    .doc-fin { padding: 24px 1.5cm 32px; }
}

@media print {
    .doc-fin { padding: 0; }
    .doc-fin .doc-fin-table thead { display: table-header-group; }
    .doc-fin .doc-fin-table tr, .doc-fin-totaux, .doc-fin-pied, .doc-fin-parties { page-break-inside: avoid; }
}

.todo-item { 
    display: flex; 
    align-items: flex-start; 
    padding: 12px 0; 
    border-bottom: 1px solid #f0f0f0; 
    gap: 12px;
}
.todo-item:last-child { 
    border-bottom: none; 
}
.todo-color-indicator {
    width: 4px;
    height: 40px;
    border-radius: 2px;
    flex-shrink: 0;
    margin-top: 2px;
}
.todo-content { 
    flex: 1; 
    min-width: 0;
}
.todo-text { 
    display: block; 
    word-break: break-word; 
    font-size: .9em;
    line-height: 1.4;
    color: #333;
    margin-bottom: 4px;
}
.todo-date { 
    color: var(--incg-gris); 
    font-size: .75em;
    display: block;
}
.todo-items { 
    list-style: none; 
    padding: 0; 
    margin: 0 0 15px 0; 
    max-height: 250px; 
    overflow-y: auto;
}
.todo-items::-webkit-scrollbar { width: 4px; }
.todo-items::-webkit-scrollbar-track { background: #f1f1f1; }
.todo-items::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 2px; }
.delete-todo { 
    flex-shrink: 0; 
    padding: 4px 8px;
    border: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.delete-todo:hover { opacity: 1; }
.color-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.color-btn { 
    width: 18px; 
    height: 18px; 
    border: 2px solid #ddd; 
    border-radius: 50%; 
    cursor: pointer; 
    transition: all 0.2s; 
}
.color-btn.active { 
    border-color: #495057; 
    transform: scale(1.15); 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.color-btn:hover { transform: scale(1.1); border-color: #adb5bd; }
.notification-item {
    cursor: pointer;
    transition: all .2s;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #ffffff;
    font-weight: 600;
    color: #333;
}
.notification-item:last-child { border-bottom: none; }
.notification-item:hover { background: #f0f0f0; }
.notification-item.seen {
    opacity: 0.8;
    background-color: #f8f9fa;
    color: var(--incg-gris);
    font-weight: normal;
}
.notification-content { display: flex; flex-direction: column; gap: 4px; }
.notification-text { font-size: .9em; line-height: 1.4; color: inherit; }
.notification-date { font-size: .75em; color: inherit; }
.notifications-dropdown-list { max-height: 300px; overflow-y: auto; }
.all-notifications-list .notification-item { border-bottom: 1px solid #e9ecef; margin: 0; }
.all-notifications-list .notification-item:last-child { border-bottom: none; }
.all-notifications-list { list-style: none; padding: 0; margin: 0; }
#notificationModal { z-index: 1060; }
#allNotificationsModal { z-index: 1050; }

/* Documents imprimés (print.php) */
.header-official { text-align: center; font-weight: bold; margin-bottom: 16px; font-size: 12px; }
.header-official h4 { margin-top: 10px; }
.releve-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.releve-table th, .releve-table td { border: 1px solid #333; padding: 4px 6px; }
.releve-table th { background: #f2f2f2; }
.bg-light-gray { background-color: #f5f5f5; }
.footer-info { font-size: 11px; margin-top: 12px; }

/* PV Délibération — compressé pour tenir sur une seule page à l'impression (comme
   .table-emargement-print) : police et espacement réduits, en-têtes de colonnes resserrés. */
.table-pv-sm { font-size: 9px; }
.table-pv-sm th, .table-pv-sm td { padding: 2px 3px !important; line-height: 1.15; }
.table-pv-sm small { font-size: 8px; }

/* Tableau absences comité pédagogique */
.table-absences-comite { font-size: 11px; }
.table-absences-comite th { white-space: nowrap; }

/* Timeline verticale des étapes de cursus (cursus_detail.php) — habillage visuel uniquement,
   ajouté autour de la structure/carte existante (voir archive/cursus_detail_avant_style_deadline.php
   pour l'ancien affichage en cartes simples). */
.cursus-timeline { position: relative; padding-left: 34px; max-width: 100%; }
.cursus-timeline::before {
    content: ''; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: #dee2e6;
}
.cursus-timeline > .timeline-item { position: relative; max-width: 100%; }
.cursus-timeline > .timeline-item .timeline-marker {
    position: absolute; left: -28px; top: 18px;
    width: 16px; height: 16px; border-radius: 50%;
    border: 3px solid #fff; box-shadow: 0 0 0 2px #dee2e6;
    z-index: 2;
}
/* .etape-row/.parent-etape-container sont des .row Bootstrap (margin left/right négatif par
   défaut, pensé pour compenser le padding d'un .container parent) : imbriqués ici dans le padding
   de .cursus-timeline/.cursus-subtimeline sans .container autour, ce négatif faisait déborder les
   sous-étapes à droite de la carte. mx-0 (ajouté au balisage) neutralise la marge ; max-width
   ci-dessus sert de filet de sécurité supplémentaire (pas d'overflow-x:hidden ici : ça couperait
   les menus déroulants — documents, changement de statut — qui débordent du conteneur). */
.cursus-subtimeline { position: relative; padding-left: 22px; margin-top: 4px; max-width: 100%; }
.cursus-subtimeline::before {
    content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: #e9ecef;
}
.cursus-subtimeline > .timeline-item { position: relative; max-width: 100%; }
.cursus-subtimeline > .timeline-item .timeline-marker {
    left: -19px; top: 14px; width: 12px; height: 12px; box-shadow: 0 0 0 2px #e9ecef;
}
.timeline-item-sm .plan-title { font-size: 1.1rem; }

/* Feuille d'émargement */
.table-emargement-print { font-size: 9px; }
.table-emargement-print th, .table-emargement-print td { padding: 2px !important; }
.table-emargement-print .col-num { min-width: 20px; }
.table-emargement-print .col-nom { min-width: 120px; }
.table-emargement-print .col-seance { min-width: 34px; font-size: 8px; }
/* Compact (2026-10-07) : une feuille par enseignant, chacune sur une page A4 paysage avec l'en-tête
   officiel. Le tableau peut se couper entre deux lignes (en-tête de colonnes répété) au lieu de
   sauter entier à la page suivante en laissant une page presque vide. */
.table-emargement-print { margin-bottom: 4px; }
.table-emargement-print tbody tr { height: 19px; }
.emarg-box { display: inline-block; width: 90%; height: 12px; border: 1px solid #999; border-radius: 3px; vertical-align: middle; }
/* En-tête officiel de l'entité (configuré par entité) réduit sur les feuilles d'émargement. */
.emarg-entete { margin-bottom: 4px; }
.emarg-entete img { width: auto !important; height: 40px !important; margin-bottom: 2px !important; }
.emarg-entete div { font-size: 9px !important; line-height: 1.1 !important; }
.emargement-infos { margin-bottom: 6px; }
.emargement-infos td { font-size: 10px; vertical-align: top; padding: 2px 6px !important; }
@media print {
    .table-emargement-print thead { display: table-header-group; }
    .table-emargement-print tr { page-break-inside: avoid; }
}

/* Espacement signature documents imprimés */
.sign-space { height: 60px; }
.sign-space-lg { height: 100px; }

/* Modal Examens/Notes (cursus_detail_examens_notes) */
.exam-modal-section { margin-bottom: 16px; }
.exam-modal-section h6 { border-bottom: 2px solid #e5e7eb; padding-bottom: 6px; margin-bottom: 10px; color: #374151; }
.stat-badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11px; }
.bg-success-light { background-color: #d1fae5; color: #065f46; }
.bg-warning-light { background-color: #fef3c7; color: #92400e; }
.bg-danger-light { background-color: #fee2e2; color: #991b1b; }
.bg-info-light { background-color: #dbeafe; color: #1e40af; }

/* CKEditor 4 — suppression alerte version */
.cke_notifications_area { display: none !important; }

/* Badges palier relances */
.palier-badge { display:inline-block; padding:2px 10px; border-radius:99px; font-size:11px; font-weight:600; }
.palier-rappel_amical { background:#dbeafe; color:#1d4ed8; }
.palier-1ere_relance { background:#fef3c7; color:#92400e; }
.palier-2eme_relance { background:#ffedd5; color:#c2410c; }
.palier-mise_en_demeure { background:#fee2e2; color:#991b1b; }

/* Sélection entité (entite_select.php) */
.entity-card { cursor: pointer; transition: transform 0.2s; border: none; border-top: 5px solid transparent; text-align: center; padding: 20px; }
.entity-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.entity-logo { max-width: 100%; height: auto; max-height: 80px; margin-bottom: 15px; }
.logout-link { position: fixed; top: 20px; right: 20px; z-index: 1000; }

/* Finance cursus & audit & statistiques */
.stat-card { text-align: center; padding: 15px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: default; }
.stat-card:not(.card) { border-radius: 12px; border: none; }  /* sur une .card, le cadre du thème est gardé */
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.stat-card .number { font-size: 28px; font-weight: 700; }
.stat-card .label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--incg-gris); }
.stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: .75rem; opacity: .85; text-transform: uppercase; letter-spacing: .5px; }
.stat-icon { width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.progress-thin { height: 6px; }
.kpi-badge { font-size: 0.75rem; }
.trend-up { color: var(--incg-vert); }
.trend-down { color: var(--incg-rouge); }
.metric-comparison { font-size: 0.8rem; opacity: 0.8; }
.chart-container { position: relative; height: 300px; }
.insight-card { border-left: 4px solid var(--primary-color); background: #f8f9fa; padding: 15px; margin-bottom: 15px; border-radius: 0 8px 8px 0; }
.avatar-sm { width: 32px; height: 32px; }
.border-left-primary { border-left: 4px solid var(--primary-color) !important; }
.border-left-success { border-left: 4px solid var(--incg-vert) !important; }
.border-left-info { border-left: 4px solid var(--incg-bleu) !important; }
.border-left-warning { border-left: 4px solid var(--incg-orange) !important; }
.border-left-danger { border-left: 4px solid var(--incg-rouge) !important; }
.gender-male { color: var(--primary-color); }
.gender-female { color: #e83e8c; }
.table-student tr { cursor: pointer; transition: background .1s; }
.table-student tr:hover { background: #f1f5f9; }
.drilldown-modal .modal-body { max-height: 70vh; overflow-y: auto; }
.attribution-bar { display: flex; gap: 2px; margin-top: 6px; }
.attribution-bar .seg { height: 8px; border-radius: 4px; flex: 1; min-width: 2px; }
.attr-ech-couverte { background: var(--incg-vert); }
.attr-ech-retard { background: var(--incg-rouge); }
.attr-ech-avenir { background: var(--incg-gris); }

/* Audit log */
.audit-log { font-family: 'Courier New', monospace; font-size: 12px; }
.audit-log .old { color: var(--incg-rouge); }
.audit-log .new { color: var(--incg-vert); }

/* Finance étudiant */
.vertical-center { display: flex; justify-content: center; align-items: center; flex-direction: column; }
.row.gutters > [class*="col-"] > .card:only-child { height: 100%; }
/* Cartes jamais collées (signalement du 2026-11-05 : « les cards sont collées, c'est récurrent dans plusieurs pages, règle ça
   et ne l'oublie pas » ; seminaires_details?id=157). Le thème met 1rem sous chaque carte (main.css, .card). Une carte seule
   dans sa colonne (rangée .gutters) ou marquée h-100 prenait toute la hauteur de la colonne (height 100 %) : sa marge passait
   sous la rangée suivante, qui la touchait. Elle remplit maintenant la colonne en gardant sa marge (colonne en flex). La règle
   du dessus reste pour un navigateur sans :has(). */
@supports selector(:has(*)) {
	.row.gutters > :is(.col, [class*="col-"]):has(> .card:only-child),
	.row > :is(.col, [class*="col-"]):has(> .card.h-100:only-child) {
		display: flex;
		flex-direction: column;
	}
	.row.gutters > :is(.col, [class*="col-"]) > .card:only-child,
	.row > :is(.col, [class*="col-"]) > .card.h-100:only-child {
		height: auto !important;
		flex: 1 0 auto;
	}
}

/* Messagerie */
.active-user { background:#e9ecef !important; border-left:4px solid var(--primary-color); border-radius:6px; }

/* Cours manage — formulaire compact */
.compact-form .row { margin-bottom: 0.5rem; }
.compact-form .form-label { font-size: 0.85rem; margin-bottom: 0.2rem; }
.compact-form .form-control, .compact-form .select2-container { font-size: 0.85rem; height: calc(1.5em + 0.5rem + 2px); }
.compact-form .btn-sm { padding: 0.2rem 0.5rem; font-size: 0.75rem; }
.creneau-item { padding: 0.3rem; border-bottom: 1px solid #eee; }
.jour-bloc { padding: 0.5rem; margin-bottom: 0.5rem; background: #f8f9fa; border-radius: 0.25rem; }

/* Calendrier FullCalendar */
.fc .fc-timegrid-slot { height: 40px !important; }
.fc .fc-timegrid-slot-label { font-size: 11px; }
.fc .fc-event { font-size: 12px; padding: 1px 3px; }
.fc .fc-daygrid-event { border-radius:6px; padding:2px 4px; }
.fc .fc-daygrid-event .fc-event-title-container { display:flex; align-items:center; gap:6px; }
.fc .fc-daygrid-event .fc-event-title { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.avatar { border-radius: 4px; }
.btn-group-vertical .btn { margin-bottom: 2px; font-size: 0.8rem; padding: 0.3rem 0.6rem; }
.attr-solde { background: var(--incg-orange); }
.jsutify-between { display: flex; justify-content: space-between; }

/* Badges état finance_documents */
.badge-etat { display:inline-block; padding:2px 8px; border-radius:99px; font-size:11px; font-weight:600; }
.badge-etat.brouillon { background:#f1f5f9; color:#475569; }
.badge-etat.envoye { background:#dbeafe; color:#1d4ed8; }
.badge-etat.accepte, .badge-etat.payee { background:#d1fae5; color:#065f46; }
.badge-etat.refuse, .badge-etat.annulee { background:#fee2e2; color:#991b1b; }
.badge-etat.converti { background:#fef3c7; color:#92400e; }
.badge-etat.emise { background:#dbeafe; color:#1d4ed8; }
.badge-etat.partiellement_payee { background:#fef3c7; color:#92400e; }
.badge-etat.en_retard { background:#fee2e2; color:#991b1b; }

/* Diffusion message cursus */
.recipient-list { max-height: 200px; overflow-y: auto; border: 1px solid #ddd; padding: 10px; border-radius: 5px; background-color: #f9f9f9; }

/* Domaines compétences */
.domain-title { font-weight: 600; color: #2d3748; font-size: 1rem; margin: 0; }
.module-badge { display: inline-block; padding: 0.2rem 0.6rem; background: #e0f0fd; color: #0d5890; border-radius: 4px; font-size: 0.8rem; margin: 0.1rem; font-weight: 500; border: 1px solid #c5e2f7; }
.prof-link { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.6rem; background: #f1f5f9; color: #4a5568; border-radius: 4px; font-size: 0.8rem; margin: 0.1rem; transition: all 0.2s; border: 1px solid #e2e8f0; }
.prof-link:hover { background: var(--incg-vert); color: #fff; border-color: var(--incg-vert); }
.btn-add-domain { padding: 0.6rem 1.5rem; font-weight: 600; }

/* Fiche étudiant */
table.info { width: 100%; border-collapse: collapse; margin-top: 10px; }
table.info td { padding: 8px 12px; border: 1px solid #ccc; vertical-align: top; }
table.info td.label { background-color: #f0f0f0; }

/* Formations — Timeline (noms préfixés "formation-" pour éviter le conflit avec .timeline de main.css, qui force color:#fff) */
.formation-timeline { position: relative; padding: 10px 0; color: #333; }
.formation-timeline::before { content: ''; position: absolute; top: 0; left: 18px; height: 100%; width: 4px; background: #e9ecef; border-radius: 2px; }
.formation-timeline-item { position: relative; margin-bottom: 20px; padding-left: 45px; }
.formation-timeline-item:last-child { margin-bottom: 0; }
.formation-timeline-icon { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--incg-bleu); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; border: 4px solid #f8f9fa; z-index: 1; }
.formation-timeline-content { background: #f8f9fa; border-radius: 8px; padding: 15px; color: #333; }

/* Messagerie contact */
.contact-name { font-weight: 600; color: #212529; text-decoration: none; }
.contact-role { font-size: 12px; color: var(--incg-gris); }
.contact-snippet { font-size: 13px; color: #495057; }
.contact-time { font-size: 12px; color: var(--incg-gris); }
.left-scroll { height: calc(100vh - 200px); overflow: auto; }
.chat-area { height: calc(100vh - 260px); overflow-y: auto; background: #f5f7fa; padding: 18px; }
.list-group-item.clickable { cursor: pointer; }
.profile-link { color: inherit; }

/* Utilitaire */
.font-size-40 { font-size: 40px; }

/* Planning — FullCalendar custom events */
.fc-event { border: none !important; background-color: transparent !important; }
.fc-custom-content { padding: 4px; height: 100%; display: flex; flex-direction: column; font-size: 0.9em; border-radius: 4px; border-left: 4px solid; }
.fc-custom-time { font-weight: bold; font-size: 0.8em; margin-bottom: 2px; }
.fc-custom-title { flex-grow: 1; line-height: 1.2; overflow: hidden; }
.fc-custom-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 3px; gap: 3px; }
.fc-custom-status { display: flex; align-items: center; gap: 3px; font-size: 0.7em; }
.fc-custom-status-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.fc-custom-type { padding: 2px 5px; border-radius: 3px; font-size: 0.8em; font-weight: bold; white-space: nowrap; }
.fc-daygrid-event .fc-custom-content { padding: 2px; font-size: 0.7em; }
.fc-daygrid-event .fc-custom-time { display: none; }
.fc-daygrid-event .fc-custom-title { font-size: 0.65em; margin-bottom: 1px; }
.fc-daygrid-event .fc-custom-footer { margin-top: 1px; }
.fc-daygrid-event .fc-custom-status { font-size: 0.6em; }
.fc-daygrid-event .fc-custom-type { font-size: 0.75em; max-width: none; padding: 0 2px; }

/* Prof tarif */
.tarif-card { transition: all 0.2s; }
.tarif-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

/* Stat formation */
.formation-card { transition: all 0.3s ease; }
.formation-card:not(.card) { border-left: 4px solid var(--primary-color); }  /* sur une .card, le cadre du thème est gardé */
.formation-card:hover { border-left-color: #0056b3; background-color: #f8f9fa; }
.module-item { border-left: 3px solid var(--incg-vert); padding-left: 10px; margin-bottom: 8px; }
.domaine-item { border-left: 3px solid var(--incg-orange); padding-left: 10px; margin-bottom: 8px; }
.relation-badge { margin-right: 5px; }
.hierarchy-connector { position: relative; padding-left: 20px; }
.hierarchy-connector:before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background-color: #dee2e6; }

/* Stat prof — performance */
.performance-excellent { color: var(--incg-vert); }
.performance-good { color: var(--incg-bleu); }
.performance-average { color: var(--incg-orange); }
.performance-poor { color: var(--incg-rouge); }

/* User privilege */
.category-tabs { border-right: 1px solid #dee2e6; min-height: 500px; }
.category-tab { padding: 12px 15px; border: none; background: none; text-align: left; width: 100%; border-bottom: 1px solid #f8f9fa; transition: all 0.3s ease; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.category-tab:hover { background-color: #f8f9fa; }
.category-tab.active { background-color: #e3f2fd; border-right: 3px solid var(--primary-color); font-weight: 600; }
.pages-container { min-height: 500px; max-height: 600px; overflow-y: auto; }
.page-checkbox { transform: scale(1.2); }
.access-info { font-size: 0.8rem; color: var(--incg-gris); font-style: italic; }

/* User profil */
.profil-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.profil-card:hover { transform: translateY(-3px); box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.profil-header { border-bottom: 2px solid rgba(255,255,255,0.2); padding: 15px 20px; }
.pages-list { max-height: 80px; overflow-y: auto; font-size: 12px; background: #f8f9fa; border-radius: 4px; padding: 8px; margin-top: 8px; }
.page-tag { display: inline-block; background: var(--primary-color); color: white; padding: 2px 8px; border-radius: 12px; font-size: 11px; margin: 2px; }
.action-btn { border-radius: 20px; padding: 6px 12px; margin: 2px; }
.stats-badge { background: rgba(255,255,255,0.2); color: white; border-radius: 15px; padding: 4px 10px; font-size: 11px; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--incg-gris); }
.empty-state i { font-size: 48px; margin-bottom: 15px; opacity: 0.5; }
.perm-page-item { border: 1px solid #e9ecef; border-radius: 5px; margin-bottom: 10px; padding: 12px; transition: all 0.3s ease; cursor: pointer; }
.perm-page-item:hover { background-color: #f8f9fa; border-color: var(--primary-color); }
.perm-page-item.selected { background-color: #e7f3ff; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(0,123,255,0.25); }
.page-header { font-weight: 600; margin-bottom: 4px; color: #495057; font-size: 14px; }
.page-url { font-size: 12px; color: var(--incg-gris); }
.rights-section { max-height: 400px; overflow-y: auto; border: 1px solid #e9ecef; border-radius: 5px; padding: 15px; }

/* ── Page Login ─────────────────────────────────────────────── */
body.login-bg {
    background: #DDDDDD url("../img/login-bg.jpg") no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}
body.login-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(10, 40, 20, 0.55);
    z-index: 0;
}
.login-page-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}
/* Barre des logos entités */
.login-entities-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    justify-content: center;
}
.login-entity-card {
    background: rgba(255,255,255,0.97);
    border-radius: 14px;
    padding: 18px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 130px;
    max-width: 170px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    border-top: 3px solid var(--incg-vert);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.login-entity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.login-entity-card img {
    max-height: 64px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.login-entity-name {
    font-size: 10px;
    font-weight: 700;
    color: #2e5a3a;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.3;
}
/* Séparateur entre logos */
.login-entities-bar .login-entity-sep {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.4);
    font-size: 22px;
    font-weight: 100;
    align-self: center;
}
/* Formulaire login */
.login-form-wrap {
    width: 100%;
    max-width: 420px;
}
.login-form-wrap .login-container {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.login-form-title {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 22px;
}
/* Logos des entités en haut de l'encadré de connexion (2026-11-10 ; ajoutés par includes/head.php, login.php inchangé) */
.login-logos-entites {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: -14px 0 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.login-logos-entites img {
    display: block;
    min-width: 0;
    max-width: calc(50% - 12px);
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* --- user_profil_pages.php (déplacé depuis <style> inline, scopé à .page-manager) --- */
.page-manager .category-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    background: white;
}
.page-manager .category-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.page-manager .category-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 15px;
    border-radius: 8px 8px 0 0;
    font-size: 0.9rem;
}
.page-manager .perm-page-item {
    padding: 8px 10px;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    cursor: move;
}
.page-manager .perm-page-item:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}
.page-manager .perm-page-item:last-child {
    border-bottom: none;
}
.page-manager .perm-page-item.dragging {
    opacity: 0.5;
    background-color: #e3f2fd;
}
.page-manager .no-category {
    background-color: #f8f9fa;
    border-left: 4px solid var(--incg-gris);
}
.page-manager .page-actions {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}
.page-manager .page-info {
    flex-grow: 1;
    min-width: 0;
}
.page-manager .page-name {
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.page-manager .page-file {
    font-size: 0.7rem;
    color: var(--incg-gris);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.page-manager .category-dropzone {
    min-height: 40px;
    border: 2px dashed #dee2e6;
    border-radius: 4px;
    margin: 5px;
    transition: all 0.3s ease;
}
.page-manager .category-dropzone.drag-over {
    border-color: var(--primary-color);
    background-color: #e7f3ff;
}
.page-manager .custom-control-label::before,
.page-manager .custom-control-label::after {
    width: 1rem;
    height: 1rem;
}
.page-manager .custom-switch .custom-control-label::before {
    width: 1.75rem;
}
.page-manager .btn-sm {
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
}

/* --- jury.php (déplacé depuis <style> inline, scopé à .jury-comite) --- */
.jury-comite .pv-table { border-collapse: collapse; font-size: 0.78rem; }
.jury-comite .pv-table th, .jury-comite .pv-table td { border: 1px solid #ccc; padding: 4px 6px; vertical-align: middle; text-align: center; }
.jury-comite .pv-table .text-left { text-align: left; }
.jury-comite .pv-table th { background: #f2f6fc; font-weight: 600; }
.jury-comite .pv-table th.ue-header { background: #2e6da4; color: #fff; }
.jury-comite .note-fail   { background: #ffe000 !important; font-weight: 700; }
.jury-comite .note-rachat { background: #fd7e14 !important; color: #fff; font-weight: 700; }
.jury-comite .note-elim   { background: var(--incg-rouge) !important; color: #fff; font-weight: 700; }
.jury-comite .note-report { background: var(--incg-bleu) !important; color: #fff; font-weight: 700; }
.jury-comite .note-rachetable { outline: 2px dashed #fd7e14; outline-offset: -3px; } /* entre 8 et 10 hors UE fondamentale : rachat possible (règlement 2025/26) */
.jury-comite .badge-admis    { background:var(--incg-vert); color:#fff; padding:2px 7px; border-radius:4px; font-size:.75rem; }
.jury-comite .badge-ajourne  { background:var(--incg-orange); color:#212529; padding:2px 7px; border-radius:4px; font-size:.75rem; }
.jury-comite .badge-rachat   { background:#fd7e14; color:#fff; padding:2px 7px; border-radius:4px; font-size:.75rem; }
.jury-comite .badge-elimine  { background:var(--incg-rouge); color:#fff; padding:2px 7px; border-radius:4px; font-size:.75rem; }
.jury-comite .badge-non-note { background:var(--incg-gris); color:#fff; padding:2px 7px; border-radius:4px; font-size:.75rem; }
.jury-comite .pv-wrap { overflow-x: auto; max-height: calc(100vh - 180px); overflow-y: auto; }
.jury-comite .sticky-col { position: sticky; background: #fff; z-index: 2; }
.jury-comite .pv-table thead th { position: sticky; top: 0; z-index: 1; }
.jury-comite .pv-table thead th.sticky-col { z-index: 3; }
@media print {
    .jury-comite .d-print-none { display: none !important; }
    .jury-comite .pv-table { font-size: 7px; }
    .jury-comite .pv-table th, .jury-comite .pv-table td { padding: 2px 3px; }
    .jury-comite .pv-wrap { overflow: visible; max-height: none; }
}

/* --- includes/share.php (déplacé depuis <style> inline) --- */
#share-buttons
{
	padding: 10px 0;
}
#share-buttons img
{
	max-width: 20px;
}

/* Pagination des datatable : bordure double entre boutons adjacents (page-item + page-link
   avaient chacun leur propre bordure/ombre au lieu d'une bordure unique partagée) */
.dataTables_wrapper .pagination .page-item {
	border: none;
	box-shadow: none;
}
.dataTables_wrapper .pagination .page-item .page-link {
	margin-left: -1px;
	box-shadow: none;
}
.dataTables_wrapper .pagination .page-item:first-child .page-link {
	margin-left: 0;
}
.dataTables_wrapper .pagination .page-item .page-link:focus,
.dataTables_wrapper .pagination .page-item .page-link:hover {
	box-shadow: none;
}

/* Retire le margin-bottom des colonnes .gutters (custom.css est charge avant main.css) */
.gutters > .col,
.gutters > [class*=col-] {
	margin-bottom: 0 !important;
}

/* Alertes tres visibles (fond de couleur pleine, pas juste un liseret) : main.css met un fond gris
   pale identique (#F5F6FA) pour tous les types d'alerte, seule l'icone change de couleur - une
   alerte "success" et une alerte "danger" etaient donc visuellement indiscernables. custom.css
   etait charge avant main.css, d'ou les !important restants. Couleurs du theme depuis le 2026-10-20. */
.alert-success {
	background-color: var(--incg-vert);
	border-color: var(--incg-vert);
	color: #ffffff;
}
.alert-danger {
	background-color: var(--incg-rouge) !important;
	border-color: var(--incg-rouge) !important;
	color: #ffffff !important;
}
.alert-warning {
	background-color: var(--incg-orange) !important;
	border-color: var(--incg-orange) !important;
	color: #212529 !important;
}
.alert-info {
	background-color: var(--incg-bleu);
	border-color: var(--incg-bleu);
	color: #ffffff;
}
.alert-success i, .alert-danger i, .alert-info i {
	color: #ffffff;
}
.alert-warning i {
	color: #212529 !important;
}
.alert-success .close, .alert-danger .close, .alert-info .close {
	color: #ffffff !important;
	opacity: 0.85;
}

/* ============ Outil de réinitialisation de la base — reset.php ============ */
#reset-form .reset-step[hidden] { display: none; }
#reset-form .dep-list { font-size: .78rem; line-height: 1.35; }
#reset-form .dep-list div { white-space: nowrap; }
#reset-form td code { font-size: .8rem; }
#reset-form tbody tr:hover { background: #fdf3f3; }
#reset-form .progress { background: #e9ecef; }
#reset-form .ex-col { font-size: .76rem; line-height: 1.4; color: #444; max-width: 340px; }
#reset-form .ex-col div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#reset-form tr.purged { opacity: .45; }
#reset-form tr.purged td { text-decoration: line-through; }
#systemConfirmModal .modal-dialog { max-width: 640px; }
#systemConfirmModal .reset-confirm { text-align: left; font-size: .85rem; }
#systemConfirmModal .reset-confirm .rc-list { max-height: 44vh; overflow: auto; border: 1px solid #eee; border-radius: 6px; }
#systemConfirmModal .rc-item { padding: .4rem .55rem; border-bottom: 1px solid #f1f1f1; }
#systemConfirmModal .rc-item:last-child { border-bottom: 0; }
#systemConfirmModal .rc-ex { font-size: .74rem; color: #666; margin-top: .15rem; }
#systemConfirmModal .rc-ex div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#systemConfirmModal .rc-warn { margin-top: .55rem; color: #8a6d3b; }
#systemConfirmModal .rc-warn ul { margin: .2rem 0 0; padding-left: 1.1rem; }

/* ==========================================================================
   ALOUETTE IA - DESIGN & CHATBOT STYLES
   ========================================================================== */

/* Page icon global protection (évite que l'emoji oiseau prenne une couleur verte ou soit déformé) */
.main-heading .page-icon i:empty,
.alouette-page-icon-badge,
.alouette-bird-emoji,
.alouette-avatar-bird,
.aide-bot-emoji,
.alouette-row-avatar .alouette-bird-icon {
	font-style: normal;
	text-decoration: none;
}

/* Masquer le widget flottant sur la page dédiée plein écran */
body.page-aide-alouette #aide-bot-widget {
	display: none !important;
}

/* ============ Widget flottant Alouette (includes/aide_chatbot_widget.php) ============ */
#aide-bot-widget {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 10500;
	font-size: .9rem;
	font-family: inherit;
}

/* Bouton déclencheur : Fond BLANC lumineux avec ombre douce, oiseau éclatant et badge statut vert */
#aide-bot-toggle {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	border: 1.5px solid #e2e8f0;
	cursor: pointer;
	background: #ffffff;
	color: #1e293b;
	font-size: 27px;
	box-shadow: 0 10px 25px -3px rgba(15, 23, 42, .16), 0 4px 8px -2px rgba(15, 23, 42, .08);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	transition: all .25s cubic-bezier(.34, 1.56, .64, 1);
	outline: none;
}
#aide-bot-toggle:hover {
	transform: translateY(-3px) scale(1.06);
	border-color: #cbd5e1;
	box-shadow: 0 14px 30px -4px rgba(15, 23, 42, .22), 0 6px 12px -2px rgba(15, 23, 42, .1);
}
#aide-bot-toggle:active {
	transform: translateY(-1px) scale(1.02);
}

/* Point vert "En ligne" sur le bouton - un seul mecanisme (le <span> reel du
   HTML) ; l'ancien doublon via #aide-bot-toggle::after dessinait le meme
   point deux fois superposes au meme endroit. */
.aide-bot-status-dot {
	content: "";
	position: absolute;
	bottom: 2px;
	right: 2px;
	width: 14px;
	height: 14px;
	background: #10b981;
	border: 2.5px solid #ffffff;
	border-radius: 50%;
	box-shadow: 0 0 0 2px rgba(16, 185, 129, .2);
}

/* Bouton pour masquer le widget */
#aide-bot-dismiss {
	position: absolute;
	top: -5px;
	right: -5px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 1px solid #e2e8f0;
	background: #ffffff;
	color: #94a3b8;
	font-size: 13px;
	line-height: 1;
	padding: 0;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .15s ease;
}
#aide-bot-dismiss:hover {
	background: #fef2f2;
	color: #ef4444;
	border-color: #fca5a5;
	transform: scale(1.1);
}

/* Animation douce de l'oiseau */
.aide-bot-emoji {
	display: inline-block;
	font-size: 28px;
	line-height: 1;
	animation: aide-bot-wiggle 3.2s ease-in-out infinite;
	transform-origin: 50% 80%;
}
.aide-bot-emoji-static {
	font-size: 18px;
	animation: none;
	line-height: 1;
}
#aide-bot-toggle:hover .aide-bot-emoji {
	animation-duration: 1.2s;
}
@keyframes aide-bot-wiggle {
	0%, 65%, 100% { transform: rotate(0deg) translateY(0); }
	70% { transform: rotate(-12deg) translateY(-2px); }
	75% { transform: rotate(10deg); }
	80% { transform: rotate(-7deg); }
	85% { transform: rotate(5deg); }
	90% { transform: rotate(0deg); }
}

/* Panneau flottant du Chatbot */
#aide-bot-panel {
	position: absolute;
	right: 0;
	bottom: 72px;
	width: 360px;
	max-width: calc(100vw - 32px);
	height: 490px;
	max-height: calc(85vh - 75px);
	background: #ffffff;
	border-radius: 18px;
	box-shadow: 0 20px 45px -10px rgba(15, 23, 42, .22), 0 8px 16px -4px rgba(15, 23, 42, .1);
	border: 1px solid rgba(226, 232, 240, .9);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: aide-bot-panel-in .25s cubic-bezier(.16, 1, .3, 1);
}
#aide-bot-panel[hidden] {
	display: none;
}
@keyframes aide-bot-panel-in {
	from { opacity: 0; transform: translateY(14px) scale(.96); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

/* En-tête du panneau : Fond blanc chic et épuré */
#aide-bot-header {
	background: #ffffff;
	color: #0f172a;
	padding: .85rem 1rem;
	font-weight: 600;
	border-bottom: 1px solid #f1f5f9;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex: 0 0 auto;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}
.aide-bot-header-info {
	display: flex;
	align-items: center;
	gap: 10px;
}
.aide-bot-avatar-badge {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 5px rgba(0, 0, 0, .04);
}
.aide-bot-title {
	font-size: .95rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.2;
	display: flex;
	align-items: center;
	gap: 6px;
}
.aide-bot-badge-ia {
	background: #e0f2fe;
	color: #0369a1;
	font-size: .65rem;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 6px;
	text-transform: uppercase;
	letter-spacing: .5px;
}
.aide-bot-subtitle {
	font-size: .72rem;
	color: #64748b;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 5px;
}
.aide-bot-dot-pulse {
	width: 7px;
	height: 7px;
	background: #10b981;
	border-radius: 50%;
	display: inline-block;
	box-shadow: 0 0 0 2px rgba(16, 185, 129, .25);
}
#aide-bot-close {
	background: transparent;
	border: none;
	color: #94a3b8;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .15s ease;
	padding: 0;
}
#aide-bot-close:hover {
	background: #f1f5f9;
	color: #334155;
}

/* Zone des messages */
#aide-bot-messages {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 1rem .9rem;
	background: #f8fafc;
	display: flex;
	flex-direction: column;
	gap: .65rem;
}
#aide-bot-messages::-webkit-scrollbar {
	width: 5px;
}
#aide-bot-messages::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

/* Bulles de messages */
.aide-bot-msg {
	padding: .65rem .9rem;
	border-radius: 14px;
	max-width: 88%;
	font-size: .86rem;
	line-height: 1.5;
	word-wrap: break-word;
}
.aide-bot-msg-bot {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	color: #1e293b;
	border-bottom-left-radius: 4px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.aide-bot-msg-user {
	background: linear-gradient(135deg, var(--incg-vert) 0%, #006028 100%);
	color: #ffffff;
	margin-left: auto;
	border-bottom-right-radius: 4px;
	box-shadow: 0 3px 8px rgba(0, 127, 53, .22);
}

/* Boutons d'action dans les réponses */
.aide-bot-goto {
	margin-top: .6rem;
}
.aide-bot-goto a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #f0fdf4;
	color: var(--incg-vert);
	border: 1px solid #bbf7d0;
	padding: .35rem .85rem;
	border-radius: 20px;
	font-size: .78rem;
	font-weight: 600;
	text-decoration: none;
	transition: all .2s ease;
}
.aide-bot-goto a:hover {
	background: var(--incg-vert);
	color: #ffffff;
	border-color: var(--incg-vert);
	text-decoration: none;
	transform: translateX(2px);
}

/* Formulaire d'envoi du widget */
#aide-bot-form {
	display: flex;
	align-items: center;
	background: #ffffff;
	border-top: 1px solid #f1f5f9;
	padding: .55rem .75rem;
	flex: 0 0 auto;
	gap: 8px;
}
#aide-bot-input {
	flex: 1 1 auto;
	border: 1.5px solid #e2e8f0;
	border-radius: 24px;
	padding: .55rem .95rem;
	font-size: .85rem;
	outline: none;
	background: #f8fafc;
	color: #1e293b;
	transition: all .2s ease;
}
#aide-bot-input:focus {
	border-color: var(--incg-vert);
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(0, 127, 53, .12);
}
#aide-bot-send {
	border: none;
	background: linear-gradient(135deg, var(--incg-vert) 0%, #006028 100%);
	color: #ffffff;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	flex-shrink: 0;
	transition: all .2s ease;
	box-shadow: 0 2px 6px rgba(0, 127, 53, .25);
	padding: 0;
}
#aide-bot-send:hover {
	transform: scale(1.06);
	background: #005a25;
}

/* Bannière promo plein écran */
#aide-bot-alouette-promo {
	font-size: .75rem;
	color: #64748b;
	text-align: center;
	padding: .45rem .75rem;
	background: #ffffff;
	border-top: 1px solid #f1f5f9;
	flex: 0 0 auto;
}
#aide-bot-alouette-promo a {
	color: var(--incg-vert);
	font-weight: 600;
	text-decoration: none;
}
#aide-bot-alouette-promo a:hover {
	text-decoration: underline;
}

.aide-bot-spin {
	display: inline-block;
	animation: aide-bot-spin 1s linear infinite;
}
@keyframes aide-bot-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}


/* ==========================================================================
   PAGE ALOUETTE PLEIN ÉCRAN (aide_alouette.php)
   ========================================================================== */

/* En-tête de la page aide_alouette */
.alouette-page-header-wrap {
	display: flex;
	align-items: center;
	padding: 5px 0;
}
.alouette-page-icon-badge {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	box-shadow: 0 4px 12px rgba(15, 23, 42, .07);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 14px;
	flex-shrink: 0;
}
.alouette-bird-emoji {
	font-size: 26px;
	line-height: 1;
}
.alouette-status-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: .72rem;
	font-weight: 600;
}
.alouette-dot-pulse {
	width: 6px;
	height: 6px;
	background: #10b981;
	border-radius: 50%;
	display: inline-block;
	box-shadow: 0 0 0 2px rgba(16, 185, 129, .3);
}

/* Carte principale de discussion */
.alouette-chat-container {
	max-width: 1040px;
	margin: 0 auto;
}
.alouette-card {
	background: #ffffff;
	overflow: hidden;
}

/* En-tête interne de la carte de chat */
.alouette-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: .9rem 1.25rem;
	background: #ffffff;
	border-bottom: 1px solid #f1f5f9;
}
.alouette-header-meta {
	display: flex;
	align-items: center;
	gap: 12px;
}
.alouette-avatar-frame {
	position: relative;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}
.alouette-avatar-bird {
	font-size: 22px;
	line-height: 1;
}
.alouette-avatar-status {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 11px;
	height: 11px;
	background: #10b981;
	border: 2px solid #ffffff;
	border-radius: 50%;
}
.alouette-bot-name {
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 8px;
}
.alouette-tag-ia {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
	font-size: .68rem;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 8px;
	letter-spacing: .3px;
}
.alouette-bot-scope {
	font-size: .78rem;
	color: #64748b;
}
.alouette-btn-reset {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	color: #64748b;
	border-radius: 8px;
	padding: .35rem .75rem;
	font-weight: 500;
	transition: all .15s ease;
	cursor: pointer;
}
.alouette-btn-reset:hover {
	background: #f8fafc;
	color: #1e293b;
	border-color: #cbd5e1;
}

/* Corps du chat */
.alouette-card-body {
	padding: 0 !important;
	background: #f8fafc;
	position: relative;
}
#alouette-messages {
	height: calc(100vh - 350px);
	min-height: 480px;
	max-height: 700px;
	overflow-y: auto;
	padding: 1.5rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}
#alouette-messages::-webkit-scrollbar {
	width: 6px;
}
#alouette-messages::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

/* Carte de bienvenue Hero */
.alouette-welcome-hero {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 1.5rem;
	text-align: center;
	max-width: 620px;
	margin: .5rem auto 1rem auto;
	box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}
.alouette-hero-icon {
	font-size: 44px;
	line-height: 1;
	margin-bottom: .6rem;
}
.alouette-welcome-hero h5 {
	font-weight: 700;
	color: #0f172a;
	margin-bottom: .4rem;
}
.alouette-welcome-hero p {
	color: #475569;
	font-size: .9rem;
	line-height: 1.55;
	margin-bottom: .9rem;
}
.alouette-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f1f5f9;
	color: #475569;
	padding: .4rem .9rem;
	border-radius: 20px;
	font-size: .76rem;
	line-height: 1.4;
	text-align: left;
}

/* Rangées de messages */
.alouette-msg-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	max-width: 82%;
	animation: alouette-fade-up .2s ease-out;
}
@keyframes alouette-fade-up {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}
.alouette-row-bot {
	align-self: flex-start;
}
.alouette-row-user {
	align-self: flex-end;
	flex-direction: row-reverse;
}
.alouette-row-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 2px 6px rgba(15, 23, 42, .06);
}
.alouette-row-avatar.bot-avatar {
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	font-size: 20px;
}
.alouette-row-avatar.user-avatar {
	background: #e2e8f0;
	color: #475569;
	font-size: 16px;
}
.alouette-msg-bubble-wrap {
	display: flex;
	flex-direction: column;
}
.alouette-row-user .alouette-msg-bubble-wrap {
	align-items: flex-end;
}
.alouette-msg-sender {
	font-size: .72rem;
	color: #94a3b8;
	margin-bottom: 3px;
	padding: 0 4px;
	font-weight: 500;
}

/* Bulles */
.alouette-msg {
	padding: .8rem 1.1rem;
	border-radius: 16px;
	font-size: .92rem;
	line-height: 1.58;
	word-wrap: break-word;
}
.alouette-msg-bot {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	color: #1e293b;
	border-top-left-radius: 4px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.alouette-msg-user {
	background: linear-gradient(135deg, var(--incg-vert) 0%, #006028 100%);
	color: #ffffff;
	border-top-right-radius: 4px;
	box-shadow: 0 3px 10px rgba(0, 127, 53, .22);
}

/* Indicateur de chargement / Réflexion */
.alouette-loading-indicator {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #64748b;
	font-style: normal;
}
.alouette-typing-dots {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.alouette-typing-dots span {
	width: 6px;
	height: 6px;
	background: var(--incg-vert);
	border-radius: 50%;
	animation: alouette-bounce 1.4s infinite ease-in-out both;
}
.alouette-typing-dots span:nth-child(1) { animation-delay: -.32s; }
.alouette-typing-dots span:nth-child(2) { animation-delay: -.16s; }
@keyframes alouette-bounce {
	0%, 80%, 100% { transform: scale(0); }
	40% { transform: scale(1); }
}
/* Classe posee par le JS (addMsg) sur la ligne "Alouette reflechit" - sans
   regle jusqu'ici, elle ne changeait rien visuellement. */
.alouette-loading-row .alouette-msg-bot {
	opacity: .7;
}

/* Zone des suggestions rapides */
.alouette-suggestions-wrapper {
	background: #ffffff;
	border-top: 1px solid #f1f5f9;
	padding: .65rem 1.25rem;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.alouette-suggestions-title {
	font-size: .78rem;
	font-weight: 600;
	color: #64748b;
	display: flex;
	align-items: center;
	gap: 4px;
}
.alouette-chips-list {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.alouette-quick-chip {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	padding: .35rem .85rem;
	font-size: .78rem;
	font-weight: 500;
	color: #334155;
	cursor: pointer;
	transition: all .15s ease;
	outline: none;
}
.alouette-quick-chip:hover {
	background: #f0fdf4;
	border-color: #86efac;
	color: #166534;
	transform: translateY(-1px);
}

/* Pied de page et barre de saisie */
.alouette-card-footer {
	background: #ffffff;
	border-top: 1px solid #f1f5f9;
	padding: .9rem 1.25rem .75rem 1.25rem;
}
.alouette-input-group {
	display: flex;
	align-items: center;
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-radius: 28px;
	padding: 4px 5px 4px 16px;
	transition: all .2s ease;
}
.alouette-input-group:focus-within {
	border-color: var(--incg-vert);
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(0, 127, 53, .12);
}
.alouette-input-field {
	flex: 1 1 auto;
	border: none;
	background: transparent;
	font-size: .92rem;
	color: #1e293b;
	outline: none;
	padding: .45rem 0;
}
.alouette-send-btn {
	border: none;
	background: linear-gradient(135deg, var(--incg-vert) 0%, #006028 100%);
	color: #ffffff;
	padding: .6rem 1.2rem;
	border-radius: 22px;
	font-size: .88rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	transition: all .18s ease;
	box-shadow: 0 2px 8px rgba(0, 127, 53, .25);
}
.alouette-send-btn:hover {
	background: #005a25;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 127, 53, .35);
}
.alouette-disclaimer-bar {
	text-align: center;
	color: #94a3b8;
	margin-top: .5rem;
	font-size: .74rem;
}

/* Alert inactive */
.alouette-alert-inactive {
	padding: 1.25rem 1.5rem;
	max-width: 800px;
	margin: 1.5rem auto 1rem;
}
.alouette-inactive-icon {
	font-size: 32px;
}

/* Toggle "Montant fixe / Pourcentage" des modaux de remise (entreprise_remise_add.php,
   etudiant_remise_add.php). Remplace le couple btn-outline-primary + classe .active du thème, qui
   affichait un texte délavé sur fond bleu : repos = bouton blanc bord gris, choix actif = vert
   plein du thème, avec une coche. */
/* Unité de la remise d'un devis ou d'une facture : % ou DA (2026-11-10) */
.remise-unite { flex: 0 0 72px; max-width: 72px; }
.remise-type-toggle {
    display: flex;
}
.remise-type-toggle .remise-type-btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .5rem 1rem;
    background: #fff;
    border: 1px solid #ced4da;
    color: #495057;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: none;
    transition: all .15s ease-in-out;
}
.remise-type-toggle .remise-type-btn + .remise-type-btn {
    margin-left: .5rem;
}
.remise-type-toggle .remise-type-btn:hover {
    background: #f5f6fa;
    border-color: #b8c0cc;
    color: #212529;
}
.remise-type-toggle .remise-type-btn > i:first-child {
    margin-right: .45rem;
}
.remise-type-toggle .remise-type-btn .remise-type-check {
    display: none;
    margin-left: .45rem;
}
.remise-type-toggle .remise-type-btn.active,
.remise-type-toggle .remise-type-btn:active {
    background: var(--incg-vert) !important;
    border-color: var(--incg-vert) !important;
    color: #fff !important;
    box-shadow: 0 3px 8px rgba(0, 127, 53, .28);
}
.remise-type-toggle .remise-type-btn.active .remise-type-check {
    display: inline-block;
}


.planif-table td, .planif-table th { padding: 4px; vertical-align: middle; }
.planif-table td.planif-cell { cursor: pointer; height: 28px; font-size: 11px; font-weight: 600; }
.planif-table td.planif-cell:hover { outline: 2px solid #343a40; outline-offset: -2px; }
/* Grille au quart d'heure : lignes compactes, trait marqué à chaque heure pleine */
.planif-table tr.planif-quart td, .planif-table tr.planif-heure td { padding: 0 4px; line-height: 1.1; }
.planif-table tr.planif-quart td.planif-cell, .planif-table tr.planif-heure td.planif-cell { height: 16px; font-size: 10px; }
.planif-table tr.planif-heure td { border-top: 2px solid #adb5bd; }
.planif-samedi { background: #fff1d6; }
.planif-table th.planif-samedi { background: #ffd98a; }
.planif-exclu { background: #e9ecef; color: var(--incg-gris); }
.planif-table td.planif-exclu { cursor: not-allowed; }
.planif-occupe { background: var(--incg-gris); }
.planif-table td.planif-occupe { cursor: not-allowed; }
.planif-partiel { background: repeating-linear-gradient(45deg, #fde68a, #fde68a 5px, #fffbeb 5px, #fffbeb 10px); }
.planif-prof-0 { background: #1d4ed8 !important; color: #fff !important; }
.planif-prof-1 { background: #047857 !important; color: #fff !important; }
.planif-prof-2 { background: #7e22ce !important; color: #fff !important; }
.planif-prof-3 { background: #be185d !important; color: #fff !important; }
.planif-prof-4 { background: #b45309 !important; color: #fff !important; }
.planif-pastille { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: middle; border: 1px solid rgba(0,0,0,0.15); }

/* Programme hebdomadaire d'un groupe (print?type=programme_groupe) : emploi du temps de toute la
   période, compact pour tenir sur une page A4 paysage à remettre aux étudiants. */
.programme-semaine { margin-bottom: 6px; }
.programme-semaine th { font-size: 11px; padding: 4px !important; }
.programme-semaine td { vertical-align: top; padding: 3px !important; font-size: 10px; }
.programme-seance { border: 1px solid #ced4da; border-left: 3px solid #343a40; border-radius: 3px; padding: 2px 4px; margin-bottom: 3px; font-size: 10px; line-height: 1.2; page-break-inside: avoid; }
.programme-seance .small { font-size: 9px; }
/* Séminaires (seminaires.php) : séminaire dont au moins une entreprise n'est pas encore facturée */
.table tr.seminaire-non-facture > td { background-color: #fff1e0 !important; }
.table-hover tr.seminaire-non-facture:hover > td { background-color: #ffe4c4 !important; }
/* Entreprises sous le thème : lisibles mais plus discrètes que le nom du séminaire */
.seminaire-entreprises { font-size: 80%; font-weight: 600; color: #5a6270; }
.legende-non-facture { display: inline-block; width: 14px; height: 10px; background: #fff1e0; border: 1px solid #f5c58e; vertical-align: middle; margin-right: 4px; }
/* Liste des séminaires regroupée par cycle (2026-10-27) : ligne du cycle, et ses séminaires dépliés en retrait */
.table tr.ligne-cycle > td { background-color: #eaf2fc; }
.table-hover tr.ligne-cycle:hover > td { background-color: #dbe9f9; }
.legende-cycle { display: inline-block; width: 14px; height: 10px; background: #eaf2fc; border: 1px solid #9fc0e8; vertical-align: middle; margin-right: 4px; }
.table tr.seminaire-du-cycle > td:first-child { padding-left: 2.75rem; border-left: 3px solid #9fc0e8; }
.btn-cycle-deplier { padding: 0 .35rem; line-height: 1.5; }
/* Montants toujours sur une seule ligne (règle générale du 2026-10-13) : séparateur de milliers
   insécable dans nbform() et « DA » collé au nombre ; filet de sécurité pour les colonnes de montants. */
td.text-right { white-space: nowrap; }
/* Fiche finance étudiant : sous-étape imbriquée sous son étape principale */
.sous-etape-bloc { border-left: 3px solid #ced4da; }
/* Fiche entreprise (entreprise_detail.php, fusion profil + finance du 2026-10-14) */
.fiche-ent-logo { max-height: 110px; }
.fiche-ent-logo-vide { height: 110px; }
.fiche-ent-logo-vide i { font-size: 40px; color: #ccc; }
.fiche-ent-infos th { width: 42%; font-weight: 600; color: #5a6270; font-size: 12px; }
.fiche-ent-infos td { font-size: 13px; }
.fiche-ent-kpi h4 { font-weight: 700; }
.fiche-ent-chiffre { border: 1px solid #e3e6ec; border-radius: 4px; padding: 8px 10px; margin-bottom: 8px; background: #fafbfc; }
.fiche-ent-chiffre small { display: block; color: var(--incg-gris); font-size: 11px; }
.fiche-ent-chiffre b { display: block; font-size: 15px; white-space: nowrap; }
.fiche-ent-progress { height: 6px; }
.badge-etat.valide { background:#d1fae5; color:#065f46; }

/* ── Ex-bloc <style> de includes/head.php (déplacé le 2026-10-19) ────────────────────────────
   custom.css est chargé après les feuilles du thème et des modules (main.css, Chartist, DataTables,
   Flatpickr) : ses règles l'emportent, à l'endroit où était ce bloc. La couleur de l'entité
   (--primary-color) reste définie dans head.php, elle dépend de l'entité active. */
.bg-primary, .btn-primary, .card-header.bg-primary, .profil-header, .btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
.text-primary, .btn-outline-primary {
    color: var(--primary-color) !important;
}
/* Bouton contour « actif » (choix en cours d'un groupe de boutons ; 2026-11-15 : « Toutes » de la fenêtre des notifications en texte
   vert sur fond bleu) : la couleur forcée ci-dessus restait sur le fond bleu de Bootstrap. Fond et bord à la couleur de l'entité,
   texte blanc, comme au survol et comme les filtres de dates (a.filter-link.active). */
.btn-outline-primary.active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.show > .btn-outline-primary.dropdown-toggle {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}
.alert { padding: 10px; }
.error { background-color: #E30512; }
.verify { background-color: #4ACABF; }

/* Pipeline des prospects (ex-<style> de prospect_pipeline.php) */
.pipeline-board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.pipeline-col { flex: 0 0 260px; background: #f5f6fa; border-radius: 8px; display: flex; flex-direction: column; max-height: 75vh; }
.pipeline-col-header { padding: 10px 12px; border-radius: 8px 8px 0 0; color: #fff; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.pipeline-col-body { padding: 8px; overflow-y: auto; flex-grow: 1; min-height: 60px; }
.pipeline-col-body.drag-over { background: #e3f2fd; }
.pipeline-card { background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.15); padding: 8px 10px; margin-bottom: 8px; cursor: grab; font-size: 12.5px; }
.pipeline-card:active { cursor: grabbing; }
.pipeline-card.dragging { opacity: 0.4; }
.pipeline-card .pc-titre { font-weight: 600; }
.pipeline-card .pc-meta { color: #888; }

/* Barres des statistiques par groupe d'entreprises (ex-<style> de stat_groupe_entreprise.php) */
.grp-bar-row { display:flex; align-items:center; margin-bottom:.5rem; }
.grp-bar-label { width:170px; flex:0 0 170px; font-size:.85rem; padding-right:.5rem; text-align:right; }
.grp-bar-track { flex:1; background:#eef0f2; border-radius:4px; height:22px; position:relative; }
.grp-bar-fill { background:#2a9d8f; height:100%; border-radius:4px; min-width:2px; }
.grp-bar-val { font-size:.8rem; margin-left:.5rem; white-space:nowrap; }

/* Étape 5 de la charte (2026-10-19) : tailles fixes et zones défilantes qui étaient en style="" dans
   les pages (!important comme les w-* de Bootstrap : même priorité qu'un style en ligne). */
.w-30px { width: 30px !important; }
.w-80px { width: 80px !important; }
.w-110px { width: 110px !important; }
.w-220px { width: 220px !important; }
.w-30p { width: 30% !important; }
.w-35p { width: 35% !important; }
.avatar-40 { width: 40px !important; height: 40px !important; object-fit: cover !important; }
.avatar-45 { width: 45px !important; height: 45px !important; }
.avatar-60 { width: 60px !important; height: 60px !important; }
.photo-profil { width: 120px !important; height: 120px !important; object-fit: cover !important; }
.gap-6px { gap: 6px !important; }
.defilant-260 { max-height: 260px !important; overflow-y: auto !important; }
.defilant-320 { max-height: 320px !important; overflow-y: auto !important; }
/* ── Statistiques caisses (classes/modals/caisse_stats.php, 2026-10-25) ───────────────────────
   Couleurs des graphes vérifiées pour le daltonisme (vert INCG / orange : écart 8,9) ; le rouge du
   thème est trop proche du vert pour un daltonien, d'où l'orange pour les décaissements. */
:root {
    --stat-encaisse: var(--incg-vert);
    --stat-decaisse: #e67e22;
    --stat-solde: var(--incg-bleu);
    --stat-grille: #eef0f6;
}
.stat-tuile { border: 1px solid var(--incg-gris-bordure); border-radius: 10px; padding: 12px 14px; height: 100%; background: #fff; }
.stat-tuile .stat-libelle { font-size: 12px; color: var(--incg-gris); margin-bottom: 4px; }
.stat-tuile .stat-valeur { font-size: 1.15rem; font-weight: 600; white-space: nowrap; }
.stat-tuile .stat-detail { font-size: 11px; color: var(--incg-gris-texte); margin-top: 2px; }
.stat-graphe { position: relative; height: 260px; }
.stat-cle { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.stat-cle.encaisse, .stat-barre.encaisse { background: var(--stat-encaisse); }
.stat-cle.decaisse, .stat-barre.decaisse { background: var(--stat-decaisse); }
.stat-piste { background: var(--stat-grille); border-radius: 4px; height: 8px; }
.stat-barre { height: 8px; border-radius: 0 4px 4px 0; min-width: 2px; }
.stat-liste td { vertical-align: middle; }
.stat-liste .stat-col-barre { width: 35%; min-width: 80px; }
/* ── Journal des erreurs (journal_erreurs.php, page secrète, 2026-10-25) ─────────────────────── */
.journal-erreurs { background: var(--incg-gris-fond); --primary-color: var(--incg-vert); } /* couleur des boutons hors administration */
.journal-tuile { background: #fff; border: 1px solid var(--incg-gris-bordure); border-radius: 10px; padding: 12px 14px; }
.journal-valeur { font-size: 1.6rem; font-weight: 600; }
.journal-col-erreur { min-width: 280px; max-width: 520px; }
.journal-col-erreur summary { cursor: pointer; word-break: break-word; }
.journal-col-page { max-width: 260px; word-break: break-all; }
.journal-col-etat { min-width: 230px; }
.journal-detail { margin-top: 6px; }
.journal-detail pre { background: #f5f6fa; border: 1px solid var(--incg-gris-bordure); border-radius: 6px; padding: 8px; font-size: 12px; max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin-bottom: 4px; }
/* Étapes pas encore lancées dans la fenêtre d'affectation (cursus_etudiant_affecter, 2026-10-27) : gris neutre,
   pas le « secondaire » du thème qui est rouge ; choix de groupe atténués. */
.etape-non-lancee > .card-header { background-color: var(--incg-gris) !important; }
.etape-non-lancee > .card-body { opacity: .7; }
/* Message de la page précédente (header.php, 2026-11-02) : sous la barre du haut (fixe, 60 px) tant qu'il n'est
   pas placé en tête du contenu de la page ; une fois placé, marge normale. Sur téléphone, la barre n'est pas fixe. */
.alerte-session { margin: 72px 15px 0; position: relative; }
.alerte-session.alerte-session-placee { margin: 0 0 15px; }
@media (max-width: 576px) { .alerte-session { margin-top: 10px; } .alerte-session.alerte-session-placee { margin: 0 0 15px; } }
/* Bulle Alouette : bouton discret « Nouvelle conversation » à côté de la croix, visible seulement quand une
   conversation existe (includes/aide_chatbot_widget.php, 2026-11-04, P38). */
.aide-bot-header-tools { display: flex; align-items: center; gap: 4px; }
#aide-bot-reset {
	background: transparent;
	border: none;
	color: #94a3b8;
	font-size: .7rem;
	font-weight: 500;
	line-height: 1.2;
	padding: 4px 6px;
	border-radius: 6px;
	cursor: pointer;
	white-space: nowrap;
	transition: all .15s ease;
}
#aide-bot-reset:hover { background: #f1f5f9; color: #334155; }
#aide-bot-reset[hidden] { display: none; }

/* ── Boutons contour uniformes et lisibles (demande du propriétaire du 2026-11-16 : « même le style du bouton Ajouter un versement
   n'est pas très visible dans ISCG ; essayer d'uniformiser le style des boutons ») ───────────────────────────────────────────
   Tous les boutons contour (btn-outline-*) ont le même style : fond clair teinté de leur couleur, texte foncé de la même couleur,
   bord de la couleur ; chaque couleur garde son sens. Le contour de l'entité (btn-outline-primary) suit sa couleur : vert d'INCG,
   orange d'ISCG (#e47325, peu lisible en texte sur fond blanc). Survol et état actif inchangés (fond plein, texte blanc). Navigateur
   sans color-mix : couleur de l'entité seule, comme avant. Les liens de filtre (a.filter-link) gardent leur style neutre. */
.btn-outline-primary {
    color: var(--primary-color) !important;
    color: color-mix(in srgb, var(--primary-color) 68%, #000) !important;
    background-color: color-mix(in srgb, var(--primary-color) 9%, #fff);
    border-color: var(--primary-color);   /* avant : bord vert du thème (#007F35) même pour ISCG */
}
.btn-outline-success   { color: #005a26; background-color: #e6f2eb; }
.btn-outline-info      { color: #0b4a79; background-color: #e7eef5; }
.btn-outline-danger    { color: #b3200f; background-color: #fdecea; }
.btn-outline-secondary { color: #b3200f; background-color: #fdecea; }
.btn-outline-warning   { color: #7a5200; background-color: #fff4d6; border-color: #e0a100; }

/* Fenêtre de détail d'une séance plus large (demande du propriétaire du 2026-11-19 : « ce modal de détail cours doit être plus large, partout ») :
   ouverte avec la classe modal-seance par le planning, la liste des cours, les problèmes de cours et le planning d'un groupe. */
@media (min-width: 768px) { .modal-dialog.modal-seance { max-width: 720px; } }

/* Chiffre cliquable vers une liste détaillée (lien_detail, 2026-11-19) : souligné en pointillé, couleur du texte gardée. */
a.lien-detail { color: inherit; text-decoration: underline dotted; cursor: pointer; }
a.lien-detail:hover { color: #0b4a79; text-decoration: underline; }
