﻿/************ Début CSS PERSONNALISÉ ************/

/* ========================================
   IMPORTS - MODULES CSS
   Organisation modulaire pour meilleure maintenance
   ======================================== */

/* Fondations responsive (jetons, zones sûres) : en premier */
@import "css/responsive.css";

/* Animations globales */
@import "css/animations.css";

/* Bannières (hero, info, page, footer) */
@import "css/banners.css";

/* Cartes (grilles, service-cards, layouts) */
@import "css/cards.css";

/* Classes utilitaires (conteneurs, textes, icônes) */
@import "css/utilities.css";

/* Cartes de documents (processus, procédures) */
@import "css/doc-cards.css";

/* Tableaux de gestion affichables en cartes (.table-cards-on) */
@import "css/table-cards.css";

/* Saisie des questionnaires (vues « Une à la fois » / « Liste compacte ») */
@import "css/questionnaire-saisie.css";

/* Forfaits en cartes (téléphone et tablette) */
@import "css/plans-mobile.css";

/* Barre de statut */
@import "StatusBar.css";

/* NOTE: Bootstrap est charge une seule fois depuis App.razor
   (wwwroot/lib/bootstrap, restaure par npm). Ne pas le reimporter ici. */

/* Polices externes */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;500;700&family=Orbitron:wght@400;600;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Handjet:wght,ELSH@100..900,2&display=swap');


:root {
    --font-body: "Noto Sans", "Lato", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: "Orbitron", "Lato", "Segoe UI", Arial, sans-serif;
    --font-monospace: "Courier New", Courier, monospace;
    --font-logo: "Orbitron", "Lato", "Segoe UI", Arial, sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
}


/*****************************************************/
/* COOL GRADIENT
/*****************************************************/
/* 
   linear-gradient(to right, #061161, #780206);
   linear-gradient(to right, #00c996, #003d4d);
   linear-gradient(to right, #96e6a1, #d4fc79);
   linear-gradient(to right, #64965e, #81ff8a);
   linear-gradient(to right, #3300fc, #95008a, #eb0000);
   linear-gradient(to right, #3300fc, #95008a, #eb0000);
   linear-gradient(to right, #29eac4, #4284db);
   linear-gradient(to right, #5cdb95, #05386b);
   linear-gradient(to right, #fdcf58, #ff0000);
   background: linear-gradient(to right, #000000, #152331);
   background: linear-gradient(to right, #4a00e0, #8e2de2);
 
*/

/* ========================================
   SYSTÈME DE THÈMES
  ======================================== */
/* 1) Palette stable (ne change pas selon le thème) */
:root {
    --white: #fff !important;
    --black: #000 !important;
    --red: #BD1E24;
    --orange: #E97600;
    --orange-light: #FF9D00;
    --orange-highlight: #FF6700;
    --green: #007256;
    --green-medium: #4E9F2E;
    --green-light: #3AD900;
    --yellow: #FAD000;
    --yellow-light: #FAEFA5;
    --blue-light: #0D6EFD;
    --blue: #223A6C;
    /* gris constants */
    --gray01: #212529;
    --gray02: #343A40;
    --gray03: #495057;
    --gray04: #6C757D;
    --gray05: #ADB5BD;
    --gray06: #CED4DA;
    --gray07: #DEE2E6;
    --gray08: #E9ECEF;
    --gray09: #F8F9FA;
    /* Palette de bleus */
    --blue01: #0D1628;
    --blue02: #152443;
    --blue03: #1E335E;
    --blue04: #223A6C;
    --blue05: #264179;
    --blue06: #2B4987;
    --blue07: #2F5094;
    --blue08: #42609E;
    --blue09: #5570A7;
    --blue10: #6880B1;
    --blue11: #7B90BB;
    --blue12: #8EA0C5;
    --blue13: #A0AFCE;
    --blue14: #B3BFD8;
    --blue15: #C6CFE2;
    --blue16: #D9DFEC;
    --blue17: #ECEFF5;
    /* Palette de violets */
    --purple01: #121122;
    --purple02: #1E1E3F;
    --purple03: #28284E;
    --purple04: #3F0082;
    --purple05: #622E99;
    --purple06: #6E35AE;
    --purple07: #744DA9;
    --purple08: #855DAF;
    --purple09: #9674BB;
    --purple10: #B9A2D2;
    --purple11: #DCD1E8;
    --purple12: #EEE8F4;
    --purple13: #8E3DFE;
    --purple14: #B665FF;
    /* Couleurs des processus */
    --INC: #BD1E24;
    --PBM: #E97600;
    --CHG: #007256;
    --REL: #0067A7;
    --EVT: #B8B14F;
    --REQ: #DDB200;
    --AVL: #4514D9;
    --SEC: #964F8E;
    --ASSET: #7A00B1;
    --CONFIG: #8800FF;
    --CON: #B20044;
    --DOC: #00BA75;
    --KBM: #008554;
    --SLM: #06B6FF;

    /********************************/
    /* COULEUR POUR BPMN.IO         */
    /********************************/
    /* Couleurs de marque */
    --opus-primary: #0078D4;
    --opus-primary-dark: #005A9E;
    --opus-secondary: #2B2B2B;
    /* ITIL */
    --incident: var(--INC);
    --request: var(--REQ);
    --change: var(--CHG);
    --problem: var(--PBM);
    --cmdb: var(--CONFIG);
    --knowledge: var(--KBM);
    /* BPMN */
    --start-fill: #E8F5E9;
    --start-stroke: #107C10;
    --end-fill: #FFEBEE;
    --end-stroke: #D13438;
    --task-fill: #F5F9FD;
    --task-stroke: #0078D4;
    --user-task-fill: #E3F2FD;
    --user-task-stroke: #005A9E;
    --service-task-fill: #EDE7F6;
    --service-task-stroke: #744DA9;
    --gateway-fill: #FFF4E5;
    --gateway-stroke: #FF8C00;
    --subprocess-fill: #F8F8F8;
    --subprocess-stroke: #605E5C;
    --annotation-fill: #FFFDE7;
    --annotation-stroke: #F9A825;
}


/* ========================================
   SYSTÈME DE THÈMES - LIGHT MODE
   2) Tokens dépendants du thème 
  ========================================*/

[data-bs-theme="light"], .theme-light {
    --text-primary: #212529;
    --text-secondary: #6C757D;
    --shadow: rgba(0, 0, 0, 0.15);
    --shadow-hover: rgba(0, 0, 0, 0.3);
    --shadow-sm: rgba(0, 0, 0, 0.075);
    --shadow-lg: rgba(0, 0, 0, 0.175);
    --gray01-dl: #212529;
    --gray02-dl: #343A40;
    --gray03-dl: #495057;
    --gray04-dl: #6C757D;
    --gray05-dl: #ADB5BD;
    --gray06-dl: #CED4DA;
    --gray07-dl: #DEE2E6;
    --gray08-dl: #E9ECEF;
    --gray09-dl: #F8F9FA;
    --primary-color: var(--blue04);
    --primary-color-alt: var(--blue07);
    --accent-color: var(--orange-highlight);
    /* ========================================
     Couleurs sémantiques - LIGHT
     ======================================== */
    --primary-color: var(--blue04);
    --primary-color-alt: var(--blue07);
    --secondary-color: var(--green-light);
    --success-color: var(--green);
    --danger-color: var(--red);
    --warning-color: var(--orange);
    --info-color: var(--blue-light);
    --accent-color: var(--orange-highlight);
    --website-title-color: var(--blue15);
    --info-title-color: var(--accent-color);
    --card-title-color: var(--primary-color);
    /* ========================================
     Not inverted - LIGHT
     ======================================== */
    --white-color: var(--white);
    --black-color: var(--black);
    --light-color: var(--gray07);
    --dark-color: var(--gray01);
    /* ========================================
     Backgrounds - LIGHT
     ======================================== */
    --background-body: var(--white);
    --background-color: var(--gray06);
    --background-primary: var(--primary-color);
    --background-primary-alt: var(--primary-color-alt);
    --background-secondary: var(--secondary-color);
    --background-green: var(--green);
    --background-orange: var(--orange);
    --background-light-grey: var(--gray07-dl);
    /* ========================================
     Surfaces & Cards - LIGHT
     ======================================== */
    --surface-color: var(--gray08-dl);
    --surface-0: var(--gray01-dl);
    --surface-1: var(--gray02-dl);
    --surface-2: var(--gray03-dl);
    --card-bg: var(--gray09-dl);
    --card-border: var(--orange);
    /* ========================================
     Borders - LIGHT
     ======================================== */
    --border-color: var(--gray07-dl);
    --border-color-subtle: var(--gray08-dl);
    --border-color-strong: var(--gray05-dl);
    /* ========================================
     Composants spécifiques - LIGHT
     ======================================== */
    --sidebar-bg: var(--background-color);
    --sidebar-border: var(--border-color);
    --topbar-bg: var(--blue04);
    --topbar-color: var(--white);
    --navbar-bg: var(--blue04);
    --navbar-color: var(--white);
    /* ========================================
     Formulaires - LIGHT
     ======================================== */
    --input-bg: var(--gray08-dl);
    --input-border: var(--blue-light);
    --input-text: var(--gray01-dl);
    --input-placeholder: var(--gray04-dl);
    --input-focus-border: var(--blue-light);
    --input-focus-shadow: rgba(13, 110, 253, 0.25);
    /* ========================================
      List - LIGHT
      ======================================== */
    --list-bg: var(--gray08-dl);
    --list-border: var(--blue-light);
    --list-text: var(--gray01-dl);
    --list-column_name: var(--gray01-dl);
    --list-placeholder: var(--gray04-dl);
    --list-focus-border: var(--blue-light);
    --list-focus-shadow: rgba(13, 110, 253, 0.25);
    /* ========================================
     Boutons - LIGHT
     ======================================== */
    
    /* ========================================
     Tables - LIGHT
     ======================================== */
    --table-bg: transparent;
    --table-striped-bg: rgba(0, 0, 0, 0.05);
    --table-hover-bg: rgba(0, 0, 0, 0.075);
    --table-border-color: var(--border-color);
    /* ========================================
     Modales - LIGHT
     ======================================== */
    --modal-bg: var(--gray09-dl);
    --modal-field-bg: var(--gray06-dl);
    --modal-field-text: var(--gray01-dl);
    --modal-border: var(--orange);
    --modal-header-bg: var(--blue04);
    --modal-backdrop: rgba(0, 0, 0, 0.75);
    /* ========================================
       Overide Bootstrap - LIGHT
     ======================================== */
    --bs-primary-text-emphasis: #052c65 !important;
    --bs-secondary-text-emphasis: #2b2f32 !important;
    --bs-success-text-emphasis: #0a3622 !important;
    --bs-info-text-emphasis: #055160 !important;
    --bs-warning-text-emphasis: #664d03 !important;
    --bs-danger-text-emphasis: #58151c !important;
    --bs-light-text-emphasis: #495057 !important;
    --bs-dark-text-emphasis: #495057 !important;
    --bs-primary-bg-subtle: #cfe2ff !important;
    --bs-secondary-bg-subtle: #e2e3e5 !important;
    --bs-success-bg-subtle: #d1e7dd !important;
    --bs-info-bg-subtle: #cff4fc !important;
    --bs-warning-bg-subtle: #fff3cd !important;
    --bs-danger-bg-subtle: #f8d7da !important;
    --bs-light-bg-subtle: #fcfcfd !important;
    --bs-dark-bg-subtle: #ced4da !important;
    --bs-primary-border-subtle: #9ec5fe !important;
    --bs-secondary-border-subtle: #c4c8cb !important;
    --bs-success-border-subtle: #a3cfbb !important;
    --bs-info-border-subtle: #9eeaf9 !important;
    --bs-warning-border-subtle: #ffe69c !important;
    --bs-danger-border-subtle: #f1aeb5 !important;
    --bs-light-border-subtle: #e9ecef !important;
    --bs-dark-border-subtle: #adb5bd !important;
}

/* ========================================
   SYSTÈME DE THÈMES - DARK MODE
   2) Tokens dépendants du thème 
  ========================================*/
[data-bs-theme="dark"], .theme-dark {
    --text-primary: #DEE2E6;
    --text-secondary: #ADB5BD;
    --shadow: rgba(0, 0, 0, 0.15);
    --shadow-hover: rgba(0, 0, 0, 0.3);
    --shadow-sm: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.6);
    --gray09-dl: #212529;
    --gray08-dl: #343A40;
    --gray07-dl: #495057;
    --gray06-dl: #6C757D;
    --gray05-dl: #ADB5BD;
    --gray04-dl: #CED4DA;
    --gray03-dl: #DEE2E6;
    --gray02-dl: #E9ECEF;
    --gray01-dl: #F8F9FA;
    /* ========================================
      Couleurs sémantiques - DARK
      ======================================== */
    --primary-color: var(--blue10);
    --primary-color-alt: var(--blue08);
    --secondary-color: var(--green-medium);
    --success-color: var(--green-light);
    --danger-color: var(--red);
    --warning-color: var(--orange-light);
    --info-color: var(--blue-light);
    --accent-color: var(--orange-highlight);
    --website-title-color: var(--blue15);
    --info-title-color: var(--accent-color);
    --card-title-color: var(--primary-color);
    /* ========================================
      Backgrounds - DARK
      ======================================== */
    --background-body: var(--black);
    --background-color: var(--blue02);
    --background-primary: var(--primary-color);
    --background-primary-alt: var(--primary-color-alt);
    --background-secondary: var(--secondary-color);
    --background-green: var(--green);
    --background-orange: var(--orange);
    --background-light-grey: var(--gray07-dl);
    /* ========================================
      Surfaces & Cards - DARK
      ======================================== */
    --surface-color: var(--gray09-dl);
    --surface-0: var(--gray01-dl);
    --surface-1: var(--gray02-dl);
    --surface-2: var(--gray03-dl);
    --card-bg: var(--gray09-dl);
    --card-border: var(--gray03-dl);
    --card-title-color: var(--orange);
    /* ========================================
      Borders - DARK
      ======================================== */
    --border-color: var(--gray07-dl);
    --border-color-subtle: var(--gray08-dl);
    --border-color-strong: var(--gray05-dl);
    /* ========================================
      Composants spécifiques - DARK
      ======================================== */
    --sidebar-bg: var(--background-color);
    --sidebar-border: var(--border-color);
    --topbar-bg: var(--blue04);
    --topbar-color: var(--white);
    --navbar-bg: var(--blue04);
    --navbar-color: var(--white);
    /* ========================================
      Formulaires - DARK
      ======================================== */
    --input-bg: var(--gray08-dl);
    --input-border: var(--blue-light);
    --input-text: var(--gray01-dl);
    --input-placeholder: var(--gray04-dl);
    --input-focus-border: var(--blue-light);
    --input-focus-shadow: rgba(13, 110, 253, 0.25);
    /* ========================================
      List - DARK
      ======================================== */
    --list-bg: var(--gray08-dl);
    --list-border: var(--blue-light);
    --list-text: var(--gray01-dl);
    --list-column_name: var(--gray01-dl);
    --list-placeholder: var(--gray04-dl);
    --list-focus-border: var(--blue-light);
    --list-focus-shadow: rgba(13, 110, 253, 0.25);
    /* ========================================
      Boutons - DARK
      ======================================== */
 
    /* ========================================
      Tables - DARK
      ======================================== */
    --table-bg: transparent;
    --table-striped-bg: rgba(255, 255, 255, 0.05);
    --table-hover-bg: rgba(255, 255, 255, 0.075);
    --table-border-color: var(--border-color);
    /* ========================================
      Modals - DARK
      ======================================== */
    --modal-bg: var(--card-bg);
    --modal-field-bg: var(--gray06-dl);
    --modal-field-text: var(--gray01-dl);
    --modal-border: var(--border-color);
    --modal-header-bg: var(--gray08-dl);
    --modal-backdrop: rgba(0, 0, 0, 0.75);
    /* ========================================
       Overide Bootstrap - DARK
    ======================================== */

    --bs-primary-text-emphasis: var(--blue-light) !important;
    --bs-secondary-text-emphasis: #a7acb1 !important;
    --bs-success-text-emphasis: var(--green-light) !important;
    --bs-info-text-emphasis: var(--blue-light) !important;
    --bs-warning-text-emphasis: var(--yellow) !important;
    --bs-danger-text-emphasis: #BD1E24 !important;
    --bs-light-text-emphasis: #f8f9fa !important;
    --bs-dark-text-emphasis: #dee2e6 !important;
    --bs-primary-bg-subtle: var(--blue02) !important;
    --bs-secondary-bg-subtle: #161719 !important;
    --bs-success-bg-subtle: #005943 !important;
    --bs-info-bg-subtle: var(--blue03) !important;
    --bs-warning-bg-subtle: #AB8900 !important;
    --bs-danger-bg-subtle: #91171C !important;
    --bs-light-bg-subtle: #343a40 !important;
    --bs-dark-bg-subtle: #1a1d20 !important;
    --bs-primary-border-subtle: #084298 !important;
    --bs-secondary-border-subtle: #41464b !important;
    --bs-success-border-subtle: #0f5132 !important;
    --bs-info-border-subtle: #006DA4 !important;
    --bs-warning-border-subtle: #DDB200 !important;
    --bs-danger-border-subtle: #BD1E24 !important;
}

/* ========================================
   PRIMARY ELEMENTS
  ========================================*/
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-top: 0 !important;
    margin-bottom: .5rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    
}

.h1, h1 {
    font-size: calc(1.375rem + 1.5vw) !important;
    font-family: var(--font-heading) !important;
    color: var(--yellow) 
}

@media (min-width:1200px) {
    .h1, h1 {
        font-size: 2.5rem !important;
        font-family: var(--font-heading) !important;
        color: var(--yellow) 
    }
}

.h2, h2 {
    font-size: calc(1.325rem + .9vw) !important;
    font-family: var(--font-heading) !important;
    color: var(--info-title-color) 
}

@media (min-width:1200px) {
    .h2, h2 {
        font-size: 2rem !important;
        font-family: var(--font-heading) !important;
        color: var(--info-title-color) 
    }
}

.h3, h3 {
    font-size: calc(1.3rem + .6vw) !important;
    font-family: var(--font-heading) !important;
    color: var(--info-title-color) 
}

@media (min-width:1200px) {
    .h3, h3 {
        font-size: 1.75rem !important;
        font-family: var(--font-heading) !important;
        color: var(--info-title-color)
    }
}

.h4, h4 {
    font-size: calc(1.275rem + .3vw) !important;
    color: var(--text-accent)
}

@media (min-width:1200px) {
    .h4, h4 {
        font-size: 1.5rem !important;
        color: var(--text-accent)
    }
}

.h5, h5 {
    font-size: 1.25rem !important;
    color: var(--text-primary) 
}

.h6, h6 {
    font-size: 1rem !important;
    color: var(--text-primary) 
}

p {
    margin-top: 0 !important;
    margin-bottom: 1rem !important
}





.text-primary
{
    color: var(--text-primary) !important;
}

.text-secondary
{
    color: var(--green-light) !important;
}

.text-success .text-green
{
    color: var(--green) !important;
}

.text-warning .text-yellow
{
    color: var(--yellow) !important;
}

.text-danger .text-red
{
    color: var(--red) !important;
}

.text-light
{
    color: var(--gray05-dl) !important;
}

.text-dark .text-black
{
    color: var(--black) !important;
}

.text-blue {
    color: var(--blue) !important;
           }

.text-white
{
    color: var(--white) !important;
}

.bg-primary {
    background-color: var(--modal-bg) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.bg-danger {
    background-color: var(--danger-color) !important;
}

.bg-warning {
    background-color: var(--warning-color) !important;
}

.bg-success {
    background-color: var(--success-color) !important;
}

.bg-info {
    background-color: var(--info-color) !important;
}
.bg-orange {
    background-color: var(--orange) !important;
}


html, body
{
    font-family: var(--bs-font-sans-serif);
}

html
{
    transition: background-color 0.3s ease, color 0.3s ease;
}

html[data-bs-theme="dark"]
{
    background-color: #212529;
    color-scheme: dark;
}

.theme-light,
.theme-dark
{
    background-color: var(--background-color);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-light .card,
.theme-dark .card
{
    background-color: var(--surface-color);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Style global pour tous les form-control */

.form-control:focus,
.form-select:focus {
    background-color: var(--input-bg);
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 0.25rem var(--input-focus-shadow);
    color: var(--gray04-dl) !important;
    opacity: 1;
}

.form-control:disabled,
.form-select:disabled
{
    background-color: var(--background-color);
    opacity: 0.6;
}

.form-control,
.form-select,
.form-control-plaintext {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--black-dl) !important;
}

.form-control::placeholder {
    color: var(--gray04-dl) !important;
    opacity: 1;
}

/* Libelles flottants : le nom du champ s affiche a l interieur puis
   remonte lors de la saisie (meme comportement que la page de connexion). */

/* Dans un champ flottant, le placeholder ne doit jamais s afficher sous le
   libelle (superposition). Il n apparait que lorsque le champ a le focus. */

.form-floating > .form-control::placeholder {
    color: transparent !important;
    opacity: 0 !important;
}

.form-floating > .form-control:focus::placeholder {
    color: var(--gray04-dl) !important;
    opacity: 1 !important;
}

.form-floating > label {
    color: var(--gray04-dl) !important;
    opacity: 1;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: var(--gray04-dl) !important;
    opacity: 0.75;
}

/* ========================================
   NOTE: Les sections suivantes ont été déplacées vers css/utilities.css:
   - Conteneurs (.hero-container, .banner-container, etc.)
   - Titres (.heading-1 à .heading-7)
   - Textes (.txt01 à .txtnormal)
   - Icônes (.icon-container, .back-home-icon)
   - Bordures (hr.dashed, hr.dotted, etc.)
   ======================================== */

/* ========================================
   NOTE: Les sections suivantes ont été déplacées vers les modules CSS:
   - Animations → css/animations.css
   - Bannières → css/banners.css
   - Cartes → css/cards.css
   ======================================== */

/**********************************************************
    FORMATTING CLASS
**********************************************************/


.pad1rem .p05r {
    padding: 0.5rem;
}


.pad15rem .p15r
{
    padding: 1.5rem;
}

.pad1rem .p2r {
    padding: 2rem;
              }


.pad15rem .p25r {
    padding: 2.5rem;
                }

/* ========================================
  Couleurs cards
  ======================================== */

.card {
    border: 1px solid var(--card-border);
    background: var(--card-border);
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
    padding: 1rem;
}

.card-body {
    padding: 1rem;
}

.card-text {
}

.card-title {
    color: var(--card-title-color);
}

.card-border {
    color: var(--gray07-dl)
}


/*************************************************
    BUTTON
**************************************************/


.btn
{
    --bs-btn-padding-x: 0.75rem;
    --bs-btn-padding-y: 0.375rem;
    --bs-btn-font-family: var(--bs-font-sans-serif);
    --bs-btn-font-size: 1rem;
    --bs-btn-font-weight: 400;
    --bs-btn-line-height: 1.5;
    --bs-btn-border-width: var(--bs-border-width);
    --bs-btn-border-radius: var(--bs-border-radius);
    --bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
    --bs-btn-disabled-opacity: 0.65;
    --bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), 0.5%);
    -moz-user-select: none;
    -webkit-user-select: none;
    background-color: var(--bs-btn-bg);
    border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
    border-radius: var(--bs-btn-border-radius);
    color: var(--bs-btn-color);
    cursor: pointer;
    display: inline-block;
    font-family: var(--bs-btn-font-family);
    font-size: var(--bs-btn-font-size);
    font-weight: var(--bs-btn-font-weight);
    line-height: var(--bs-btn-line-height);
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
    text-align: center;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    user-select: none;
    vertical-align: middle;
}

@media (prefers-reduced-motion: reduce)
{
    .btn
    {
        transition: none
    }
}

.btn:hover
{
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
    color: var(--bs-btn-hover-color);
}

.btn-check + .btn:hover
{
    background-color: var(--bs-btn-bg);
    border-color: var(--bs-btn-border-color);
    color: var(--bs-btn-color);
}

.btn:focus-visible
{
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
    box-shadow: var(--bs-btn-focus-box-shadow);
    color: var(--bs-btn-hover-color);
    outline: 0;
}

.btn-check:focus-visible + .btn
{
    border-color: var(--bs-btn-hover-border-color);
    box-shadow: var(--bs-btn-focus-box-shadow);
    outline: 0;
}

.btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active
{
    background-color: var(--bs-btn-active-bg);
    border-color: var(--bs-btn-active-border-color);
    color: var(--bs-btn-active-color);
}

.btn-check:checked + .btn:focus-visible, .btn.active:focus-visible, .btn.show:focus-visible, .btn:first-child:active:focus-visible, :not(.btn-check) + .btn:active:focus-visible
{
    box-shadow: var(--bs-btn-focus-box-shadow)
}

.btn-check:checked:focus-visible + .btn
{
    box-shadow: var(--bs-btn-focus-box-shadow)
}

.btn.disabled, .btn:disabled, fieldset:disabled .btn
{
    background-color: var(--bs-btn-disabled-bg);
    border-color: var(--bs-btn-disabled-border-color);
    color: var(--bs-btn-disabled-color);
    pointer-events: none;
}

/********************************************************/

/* BUTTON REGULAR                                       */

/********************************************************/

.btn-primary
{
    --bs-btn-color: #fff !important;
    --bs-btn-bg: #0D6EFD !important;
    --bs-btn-border-color: #0D6EFD !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #024EBD !important;
    --bs-btn-hover-border-color: #024EBD !important;
    --bs-btn-focus-shadow-rgb: 49,  132,  253 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #0D6EFD !important;
    --bs-btn-active-border-color: #0D6EFD !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #DEE2E6 !important;
    --bs-btn-disabled-bg: #6C757D !important;
    --bs-btn-disabled-border-color: #6C757D !important;
}

/* Mode lecture pour QuestionnaireInteraction */

.read-only-mode .read-only-wrapper
{
    position: relative;
}

.read-only-mode .read-only-wrapper::after
{
    background: rgba(255, 255, 255, 0.02);
    content: "";
    inset: 0;
    position: absolute;
}




.btn-secondary {
    --bs-btn-color: black !important;
    --bs-btn-bg: var(--green-light) !important;
    --bs-btn-border-color: var(--green-light) !important;
    --bs-btn-hover-color: black !important;
    --bs-btn-hover-bg: var(--green-medium) !important;
    --bs-btn-hover-border-color: var(--green-medium) !important;
    --bs-btn-focus-shadow-rgb: 130,  138,  145 !important;
    --bs-btn-active-color: black !important;
    --bs-btn-active-bg: var(--green-light) !important;
    --bs-btn-active-border-color: var(--green-light) !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: black !important;
    --bs-btn-disabled-bg: #6C757D !important;
    --bs-btn-disabled-border-color: #6C757D !important;
}

.btn-accent
{
    --bs-btn-color: #fff !important;
    --bs-btn-bg: var(--orange) !important;
    --bs-btn-border-color: var(--orange-highlight) !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: var(--orange-highlight) !important;
    --bs-btn-hover-border-color: var(--orange-highlight) !important;
    --bs-btn-focus-shadow-rgb: 130,  138,  145 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: var(--orange) !important;
    --bs-btn-active-border-color: var(--orange) !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #DEE2E6 !important;
    --bs-btn-disabled-bg: #6C757D !important;
    --bs-btn-disabled-border-color: #6C757D !important;
}

.btn-success
{
    --bs-btn-color: #fff !important;
    --bs-btn-bg: #007256 !important;
    --bs-btn-border-color: #007256 !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #003F30 !important;
    --bs-btn-hover-border-color: #003F30 !important;
    --bs-btn-focus-shadow-rgb: 60,  153,  110 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #146c43 !important;
    --bs-btn-active-border-color: #13653f !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #DEE2E6 !important;
    --bs-btn-disabled-bg: #6C757D !important;
    --bs-btn-disabled-border-color: #6C757D !important;
}

.btn-info
{
    --bs-btn-color: #fff !important;
    --bs-btn-bg: var(--blue04) !important;
    --bs-btn-border-color: var(--blue04) !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: var(--blue01) !important;
    --bs-btn-hover-border-color: var(--blue09) !important;
    --bs-btn-focus-shadow-rgb: 49,  132,  253 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: var(--blue04) !important;
    --bs-btn-active-border-color: var(--blue04) !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #DEE2E6 !important;
    --bs-btn-disabled-bg: #6C757D !important;
    --bs-btn-disabled-border-color: #6C757D !important;
}

.btn-warning
{
    --bs-btn-color: #000 !important;
    --bs-btn-bg: #F6C700 !important;
    --bs-btn-border-color: #F6C700 !important;
    --bs-btn-hover-color: #000 !important;
    --bs-btn-hover-bg: #AB8900 !important;
    --bs-btn-hover-border-color: #AB8900 !important;
    --bs-btn-focus-shadow-rgb: 217,  164,  6 !important;
    --bs-btn-active-color: #000 !important;
    --bs-btn-active-bg: #F6C700 !important;
    --bs-btn-active-border-color: #F6C700 !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #DEE2E6 !important;
    --bs-btn-disabled-bg: #6C757D !important;
    --bs-btn-disabled-border-color: #6C757D !important;
}

.btn-danger
{
    --bs-btn-color: #fff !important;
    --bs-btn-bg: #BD1E24 !important;
    --bs-btn-border-color: #BD1E24 !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #7B1418 !important;
    --bs-btn-hover-border-color: #7B1418 !important;
    --bs-btn-focus-shadow-rgb: 225,  83,  97 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #BD1E24 !important;
    --bs-btn-active-border-color: #BD1E24 !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #DEE2E6 !important;
    --bs-btn-disabled-bg: #6C757D !important;
    --bs-btn-disabled-border-color: #6C757D !important;
}

.btn-light
{
    --bs-btn-color: #000 !important;
    --bs-btn-bg: #f8f9fa !important;
    --bs-btn-border-color: #f8f9fa !important;
    --bs-btn-hover-color: #000 !important;
    --bs-btn-hover-bg: #d3d4d5 !important;
    --bs-btn-hover-border-color: #c6c7c8 !important;
    --bs-btn-focus-shadow-rgb: 211,  212,  213 !important;
    --bs-btn-active-color: #000 !important;
    --bs-btn-active-bg: #c6c7c8 !important;
    --bs-btn-active-border-color: #babbbc !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #DEE2E6 !important;
    --bs-btn-disabled-bg: #6C757D !important;
    --bs-btn-disabled-border-color: #6C757D !important;
}

.btn-dark
{
    --bs-btn-color: #fff !important;
    --bs-btn-bg: #212529 !important;
    --bs-btn-border-color: #212529 !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #424649 !important;
    --bs-btn-hover-border-color: #373b3e !important;
    --bs-btn-focus-shadow-rgb: 66,  70,  73 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #4d5154 !important;
    --bs-btn-active-border-color: #373b3e !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #DEE2E6 !important;
    --bs-btn-disabled-bg: #6C757D !important;
    --bs-btn-disabled-border-color: #6C757D !important;
}


.btn-gray
{
    --bs-btn-color: #fff !important;
    --bs-btn-bg: #6C757D !important;
    --bs-btn-border-color: #6C757D !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #424649 !important;
    --bs-btn-hover-border-color: #373b3e !important;
    --bs-btn-focus-shadow-rgb: 66,  70,  73 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #6C757D !important;
    --bs-btn-active-border-color: #6C757D !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #DEE2E6 !important;
    --bs-btn-disabled-bg: #ADB5BD !important;
    --bs-btn-disabled-border-color: #ADB5BD !important;
}


/********************************************************/

/* BUTTUN OUTLINE                                       */

/*********************************************************/

.btn-outline-primary
{
    --bs-btn-color: #0d6efd !important;
    --bs-btn-border-color: #0d6efd !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #0d6efd !important;
    --bs-btn-hover-border-color: #0d6efd !important;
    --bs-btn-focus-shadow-rgb: 13, 110, 253 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #0d6efd !important;
    --bs-btn-active-border-color: #0d6efd !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #0d6efd !important;
    --bs-btn-disabled-bg: transparent !important;
    --bs-btn-disabled-border-color: #696969 !important;
    --bs-gradient: none !important;
}

.btn-outline-secondary {
    --bs-btn-color: var(--green-medium) !important;
    --bs-btn-border-color: var(--green-medium) !important;
    --bs-btn-hover-color: #000 !important;
    --bs-btn-hover-bg: var(--green-medium) !important;
    --bs-btn-hover-border-color: var(--green-medium) !important;
    --bs-btn-focus-shadow-rgb: 25,  135,  84 !important;
    --bs-btn-active-color: #000 !important;
    --bs-btn-active-bg: var(--green-medium) !important;
    --bs-btn-active-border-color: var(--green-medium) !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: var(--green-medium) !important;
    --bs-btn-disabled-bg: transparent !important;
    --bs-btn-disabled-border-color: var(--green-medium) !important;
    --bs-gradient: none !important;
}

.btn-outline-success
{
    --bs-btn-color: #198754 !important;
    --bs-btn-border-color: #198754 !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #198754 !important;
    --bs-btn-hover-border-color: #198754 !important;
    --bs-btn-focus-shadow-rgb: 25, 135, 84 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #198754 !important;
    --bs-btn-active-border-color: #198754 !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #198754 !important;
    --bs-btn-disabled-bg: transparent !important;
    --bs-btn-disabled-border-color: #198754 !important;
    --bs-gradient: none !important;
}

.btn-outline-info
{
    --bs-btn-color: var(--blu01) !important;
    --bs-btn-border-color: var(--blu01) !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: var(--blu01) !important;
    --bs-btn-hover-border-color: var(--blu01) !important;
    --bs-btn-focus-shadow-rgb: 10,  125,  148 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: var(--blu01) !important;
    --bs-btn-active-border-color: var(--blu01) !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: var(--blu01) !important;
    --bs-btn-disabled-bg: transparent !important;
    --bs-btn-disabled-border-color: var(--blu01) !important;
    --bs-gradient: none !important;
}

.btn-outline-warning
{
    --bs-btn-color: #ffc107 !important;
    --bs-btn-border-color: #ffc107 !important;
    --bs-btn-hover-color: #000 !important;
    --bs-btn-hover-bg: #ffc107 !important;
    --bs-btn-hover-border-color: #ffc107 !important;
    --bs-btn-focus-shadow-rgb: 255, 193, 7 !important;
    --bs-btn-active-color: #000 !important;
    --bs-btn-active-bg: #ffc107 !important;
    --bs-btn-active-border-color: #ffc107 !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #ffc107 !important;
    --bs-btn-disabled-bg: transparent !important;
    --bs-btn-disabled-border-color: #ffc107 !important;
    --bs-gradient: none !important;
}

.btn-outline-danger
{
    --bs-btn-color: #dc3545 !important;
    --bs-btn-border-color: #dc3545 !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #dc3545 !important;
    --bs-btn-hover-border-color: #dc3545 !important;
    --bs-btn-focus-shadow-rgb: 220, 53, 69 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #dc3545 !important;
    --bs-btn-active-border-color: #dc3545 !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #dc3545 !important;
    --bs-btn-disabled-bg: transparent !important;
    --bs-btn-disabled-border-color: #dc3545 !important;
    --bs-gradient: none !important;
}

.btn-outline-light
{
    --bs-btn-color: #f8f9fa !important;
    --bs-btn-border-color: #f8f9fa !important;
    --bs-btn-hover-color: #000 !important;
    --bs-btn-hover-bg: #f8f9fa !important;
    --bs-btn-hover-border-color: #f8f9fa !important;
    --bs-btn-focus-shadow-rgb: 248, 249, 250 !important;
    --bs-btn-active-color: #000 !important;
    --bs-btn-active-bg: #f8f9fa !important;
    --bs-btn-active-border-color: #f8f9fa !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #f8f9fa !important;
    --bs-btn-disabled-bg: transparent !important;
    --bs-btn-disabled-border-color: #f8f9fa !important;
    --bs-gradient: none !important;
}

.btn-outline-dark
{
    --bs-btn-color: #212529 !important;
    --bs-btn-border-color: #212529 !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #212529 !important;
    --bs-btn-hover-border-color: #212529 !important;
    --bs-btn-focus-shadow-rgb: 33, 37, 41 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #212529 !important;
    --bs-btn-active-border-color: #212529 !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #212529 !important;
    --bs-btn-disabled-bg: transparent !important;
    --bs-btn-disabled-border-color: #212529 !important;
    --bs-gradient: none !important;
}

.btn-outline-accent
{
    --bs-btn-color: var(--orange) !important;
    --bs-btn-border-color: var(--orange) !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: var(--orange) !important;
    --bs-btn-hover-border-color: var(--orange) !important;
    --bs-btn-focus-shadow-rgb: 108,   117,   125 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: var(--orange) !important;
    --bs-btn-active-border-color: var(--orange) !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #DEE2E6 !important;
    --bs-btn-disabled-bg: #6C757D !important;
    --bs-btn-disabled-border-color: #6C757D !important;
}

.btn-link
{
    --bs-btn-font-weight: 400 !important;
    --bs-btn-color: var(--bs-link-color) !important;
    --bs-btn-bg: transparent !important;
    --bs-btn-border-color: transparent !important;
    --bs-btn-hover-color: var(--bs-link-hover-color) !important;
    --bs-btn-hover-border-color: transparent !important;
    --bs-btn-active-color: var(--bs-link-hover-color) !important;
    --bs-btn-active-border-color: transparent !important;
    --bs-btn-disabled-color: #6c757d !important;
    --bs-btn-disabled-border-color: transparent !important;
    --bs-btn-box-shadow: 0 0 0 #000 !important;
    --bs-btn-focus-shadow-rgb: 49, 132, 253 !important;
    text-decoration: underline !important;
}



.btn-link:focus-visible
{
    color: var(--bs-btn-color)
}

.btn-link:hover
{
    color: var(--bs-btn-hover-color)
}

.btn-group-lg > .btn, .btn-lg
{
    --bs-btn-padding-y: 0.5rem;
    --bs-btn-padding-x: 1rem;
    --bs-btn-font-size: 1.25rem;
    --bs-btn-border-radius: var(--bs-border-radius-lg);
}

.btn-group-sm > .btn, .btn-sm
{
    --bs-btn-padding-y: 0.25rem;
    --bs-btn-padding-x: 0.5rem;
    --bs-btn-font-size: 0.875rem;
    --bs-btn-border-radius: var(--bs-border-radius-sm);
}

/* Spécifique pour les listes de questionnaires */

.questionnaire-list
{
    overflow-x: auto;
    overflow-y: visible;
}

.questionnaire-list thead
{
    position: sticky;
    top: 0;
    z-index: 100;
}

.questionnaire-list thead th
{
    background-color: inherit;
    position: relative;
}

.questionnaire-list thead.table-light th
{
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}


/***************************************************************
    TABLE
***************************************************************/

.table-primary {
    --bs-table-color: #000 !important;
    --bs-table-bg: #cfe2ff !important;
    --bs-table-border-color: #a6b5cc !important;
    --bs-table-striped-bg: #c5d7f2 !important;
    --bs-table-striped-color: #000 !important;
    --bs-table-active-bg: #bacbe6 !important;
    --bs-table-active-color: #000 !important;
    --bs-table-hover-bg: #bfd1ec !important;
    --bs-table-hover-color: #000 !important;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color)
}

.table-secondary {
    --bs-table-color: #000 !important;
    --bs-table-bg: #e2e3e5 !important;
    --bs-table-border-color: #b5b6b7 !important;
    --bs-table-striped-bg: #d7d8da !important;
    --bs-table-striped-color: #000 !important;
    --bs-table-active-bg: #cbccce !important;
    --bs-table-active-color: #000 !important;
    --bs-table-hover-bg: #d1d2d4 !important;
    --bs-table-hover-color: #000 !important;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color)
}

.table-secondary-dark {
    --bs-table-color: #fff !important;
    --bs-table-bg: #212529 !important;
    --bs-table-border-color: #4d5154 !important;
    --bs-table-striped-bg: #2c3034 !important;
    --bs-table-striped-color: #fff !important;
    --bs-table-active-bg: #373b3e !important;
    --bs-table-active-color: #fff !important;
    --bs-table-hover-bg: #323539 !important;
    --bs-table-hover-color: #fff !important;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color)
}

.table-success {
    --bs-table-color: #000 !important;
    --bs-table-bg: #d1e7dd !important;
    --bs-table-border-color: #a7b9b1 !important;
    --bs-table-striped-bg: #c7dbd2 !important;
    --bs-table-striped-color: #000 !important;
    --bs-table-active-bg: #bcd0c7 !important;
    --bs-table-active-color: #000 !important;
    --bs-table-hover-bg: #c1d6cc !important;
    --bs-table-hover-color: #000 !important;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color)
}

.table-info {
    --bs-table-color: #000 !important;
    --bs-table-bg: #cff4fc !important;
    --bs-table-border-color: #a6c3ca !important;
    --bs-table-striped-bg: #c5e8ef !important;
    --bs-table-striped-color: #000 !important;
    --bs-table-active-bg: #badce3 !important;
    --bs-table-active-color: #000 !important;
    --bs-table-hover-bg: #bfe2e9 !important;
    --bs-table-hover-color: #000 !important;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color)
}

.table-warning {
    --bs-table-color: #000 !important;
    --bs-table-bg: #fff3cd !important;
    --bs-table-border-color: #ccc2a4 !important;
    --bs-table-striped-bg: #f2e7c3 !important;
    --bs-table-striped-color: #000 !important;
    --bs-table-active-bg: #e6dbb9 !important;
    --bs-table-active-color: #000 !important;
    --bs-table-hover-bg: #ece1be !important;
    --bs-table-hover-color: #000 !important;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color)
}

.table-danger {
    --bs-table-color: #000 !important;
    --bs-table-bg: #f8d7da !important;
    --bs-table-border-color: #c6acae !important;
    --bs-table-striped-bg: #eccccf !important;
    --bs-table-striped-color: #000 !important;
    --bs-table-active-bg: #dfc2c4 !important;
    --bs-table-active-color: #000 !important;
    --bs-table-hover-bg: #e5c7ca !important;
    --bs-table-hover-color: #000 !important;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color)
}

.table-light {
    --bs-table-color: #000 !important;
    --bs-table-bg: #f8f9fa !important;
    --bs-table-border-color: #c6c7c8 !important;
    --bs-table-striped-bg: #ecedee !important;
    --bs-table-striped-color: #000 !important;
    --bs-table-active-bg: #dfe0e1 !important;
    --bs-table-active-color: #000 !important;
    --bs-table-hover-bg: #e5e6e7 !important;
    --bs-table-hover-color: #000 !important;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color)
}

.table-dark {
    --bs-table-color: #fff !important;
    --bs-table-bg: #212529 !important;
    --bs-table-border-color: #4d5154 !important;
    --bs-table-striped-bg: #2c3034 !important;
    --bs-table-striped-color: #fff !important;
    --bs-table-active-bg: #373b3e !important;
    --bs-table-active-color: #fff !important;
    --bs-table-hover-bg: #323539 !important;
    --bs-table-hover-color: #fff !important;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color)
}


/***************************************************/
/* Spécifique pour les questions du questionnaire */
/***************************************************/

.questions-questionnaire-list
{
    overflow-y: visible;
}

.questions-questionnaire-list .groupe-header
{
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 99;
}

.global-search-overlay
{
    align-items: flex-start;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 2rem 1rem;
    position: fixed;
    z-index: 1050;
}

.global-search-panel
{
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    width: 80%;
}

.global-search-header
{
    background-color: var(--blue16);
    border-bottom: 1px solid var(--gray06);
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
}

.global-search-results
{
    overflow-y: auto;
    padding: 1.5rem;
}

/* ✅ NOUVEAU: Header pour les Sujets (niveau supérieur) */

.questions-questionnaire-list .sujet-header
{
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
    font-size: 1rem;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 100;
}

.questions-questionnaire-list .sujet-header:hover
{
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
}

/******************************/

/* TABS                       */

/******************************/

.nav-tabs .nav-link
{
    border: none;
    color: #6c757d;
    display: flex;
    height: 50px;
    position: relative;
    transition: color 0.3s ease;
}

/* ✅ Barre colorée au DESSUS de l'onglet (au lieu du bas) */

.nav-tabs .nav-link::after
{
    background-color: transparent;
    content: '';
    transition: background-color 0.3s ease;
}

.nav-tabs .nav-link:hover::after
{
    border-color: #dee2e6 #dee2e6 #0d6efd;
    color: #0d6efd;
}

.nav-tabs .nav-link.active
{
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #0d6efd;
    color: #0d6efd;
}

.nav-tabs .nav-link.active::after
{
    background-color: #0d6efd;
}

/*.nav-tabs .nav-link {
    color: #6c757d;
    border: 1px solid transparent;
    border-bottom: 2px solid transparent;
}

    .nav-tabs .nav-link:hover {
        border-color: #dee2e6 #dee2e6 #0d6efd;
        color: #0d6efd;
    }

    .nav-tabs .nav-link.active {
        color: #0d6efd;
        background-color: #fff;
        border-color: #dee2e6 #dee2e6 #0d6efd;
    }*/

.badge
{
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    vertical-align: middle;
}

.procedure-meta
{
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
}

/* ================================================================ */

/* STYLES POUR LES BANNIERES HERO - PROCESSUS ET PROCEDURES        */

/* ================================================================ */

.processus-hero-banner,
.procedure-hero-banner
{
    overflow: hidden;
    position: relative;
}

.processus-hero-content,
.procedure-hero-content
{
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    position: relative;
    z-index: 2;
}

/* Éléments décoration de la bannière */

.hero-decorative-shape
{
    border-radius: 50%;
    position: absolute;
    z-index: 1;
}

.hero-decorative-shape:first-of-type
{
    background: rgba(255, 255, 255, 0.1);
    height: 300px;
    right: -50px;
    top: -50px;
    width: 300px;
}

.hero-decorative-shape:last-of-type
{
    background: rgba(255, 255, 255, 0.05);
    bottom: -30px;
    height: 200px;
    left: 10%;
    width: 200px;
}

/* Section gauche de la bannière */

.processus-hero-left,
.procedure-hero-left
{
    color: white;
    flex: 1;
    position: relative;
    z-index: 3;
}

.processus-hero-left h1,
.procedure-hero-left h1
{
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 0;
    word-break: break-word;
}

.processus-hero-left p,
.procedure-hero-left p
{
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
}

/* Badge de code du document dans la bannière */

.processus-hero-left .doc-code-badge,
.procedure-hero-left .doc-code-badge
{
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    color: white;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
}

.hero-left .doc-code-badge i
{
    margin-right: 0.5rem;
}

/* Section droite de la bannière */

.processus-hero-right,
.procedure-hero-right
{
    flex: 0 0 auto;
    margin-left: 2rem;
    position: relative;
    z-index: 3;
}

.processus-hero-right > div,
.procedure-hero-right > div
{
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    display: flex;
    height: 100px;
    justify-content: center;
    overflow: hidden;
    width: 100px;
}

.processus-hero-right img,
.procedure-hero-right img
{
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Boutons d'action de la bannière */

.processus-hero-actions,
.procedure-hero-actions
{
    display: flex;
    gap: 0.5rem;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 4;
}

.processus-hero-actions button,
.procedure-hero-actions button
{
    white-space: nowrap;
}

/* Responsive: masquer l'image sur mobile */

@media (max-width: 768px)
{
    .processus-hero-right,
    .procedure-hero-right
    {
        display: none !important;
    }

    .processus-hero-content,
    .procedure-hero-content
    {
        align-items: flex-start;
        flex-direction: column;
        padding: 2rem 1.5rem;
    }

    .processus-hero-left h1,
    .procedure-hero-left h1
    {
        font-size: 1.5rem;
    }

    .processus-hero-actions,
    .procedure-hero-actions
    {
        justify-content: flex-start;
        margin-top: 1rem;
        position: static;
        width: 100%;
    }

    .processus-hero-actions button,
    .procedure-hero-actions button
    {
        flex: 1;
        min-width: 120px;
    }
}

/* ================================================================ */

/* STYLES POUR LES ONGLETS - PROCESSUS ET PROCEDURES               */

/* ================================================================ */

.processus-nav-tabs,
.procedure-nav-tabs,
.billet-nav-tabs
{
    margin: 0;    
}

.processus-nav-tabs .nav-link,
.procedure-nav-tabs .nav-link,
.billet-nav-tabs .nav-link
{
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.processus-nav-tabs .nav-link:hover,
.procedure-nav-tabs .nav-link:hover,
.billet-nav-tabs .nav-link:hover
{
    border-bottom-color: var(--green-light);
    color: var(--green-light);
}

.processus-nav-tabs .nav-link.active,
.procedure-nav-tabs .nav-link.active,
.billet-nav-tabs .nav-link.active
{
    background-color: transparent;
    border-bottom-color: var(--yellow);
    color: var(--yellow);
}

.processus-nav-tabs .nav-link i,
.procedure-nav-tabs .nav-link i,
.billet-nav-tabs .nav-link i
{
    margin-right: 0.5rem;
}

/* Badge dans les onglets */

.processus-nav-tabs .badge,
.procedure-nav-tabs .badge,
.billet-nav-tabs .badge
{
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    vertical-align: middle;
}

/* ================================================================ */

/* STYLES POUR LE CONTENU - PROCESSUS ET PROCEDURES                */

/* ================================================================ */

/* Note: .processus-tab-content, .procedure-tab-content et @keyframes fadeIn sont dans css/animations.css */

.processus-tab-content,
.procedure-tab-content
{
    padding: 0 4rem 4rem 4rem;
}

.processus-content-wrapper,
.procedure-content-wrapper
{
    max-width: 100%;
    padding: 0;
    width: 100%;
}


/* ================================================================ */
/* STYLE POUR LES ELEMENTS BPMN.IO                                  */
/* ================================================================ */

.bpmn-diagram-editor {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.bpmn-diagram-editor.bpmn-diagram-editor-fluid {
    height: 100%;
}

.bpmn-diagram-editor.bpmn-diagram-editor-fullscreen {
    position: fixed;
    inset: 0 0 calc(4rem + var(--safe-bottom, 0px)) 0; /* réserve la place de la barre de statut */
    overflow: hidden;
    z-index: 2055;
    background: var(--bs-body-bg, #ffffff);
    padding: 0.75rem;
}

.bpmn-diagram-toolbar {
    background-color: transparent !important;
    flex: 0 0 auto;
}

.bpmn-diagram-container {
    width: 100%;
    max-height: 95%;
    flex: 1 1 auto;
}

/* Mode visualisation : aucune poignee ni outil d'edition */
.bpmn-readonly .djs-palette,
.bpmn-readonly .djs-context-pad,
.bpmn-readonly .djs-resizer,
.bpmn-readonly .djs-bendpoint,
.bpmn-readonly .djs-segment-dragger {
    display: none !important;
}

.djs-container {
    background-color: #FAFAFA !important;
}

.djs-label {
    font-family: 'Segoe UI' !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    fill: #323130 !important;
}

/* Texte libre : texte seul, sans fond ni crochet, comme les libelles des connecteurs */
.opus-text-annotation > .djs-visual rect,
.opus-text-annotation > .djs-visual path {
    fill: none !important;
    stroke: none !important;
}

/* Pools et couloirs : transparents par defaut (une couleur choisie reste appliquee en inline) */
.opus-pool > .djs-visual > rect {
    fill: transparent !important;
}

.bpmn-sketchy .djs-label {
    font-family: 'Segoe Print', 'Comic Sans MS', 'Bradley Hand', cursive !important;
    font-weight: 400 !important;
}

.djs-outline {
    stroke-width: 2px !important;
}

.opus-start > .djs-visual circle {
    fill: #C5E7C7 !important;
    stroke: #107C10 !important;
    stroke-width: 2px !important;
}

.opus-end > .djs-visual circle {
    fill: #EB6362 !important;
    stroke: #000000 !important;
    stroke-width: 5px !important;
}

.opus-intermediate-event > .djs-visual circle {
    fill: #F79258 !important;
    stroke: #000000 !important;
}

.opus-task > .djs-visual rect {
    fill: #F5F9FD !important;
    stroke: #61AAD8 !important;
    stroke-width: 5px !important;
}

.opus-user-task > .djs-visual rect {
    fill: #F5F9FD !important;
    stroke: #005A9E !important;
    stroke-width: 5px !important;
}

.opus-service-task > .djs-visual rect {
    fill: #F5F9FD !important;
    stroke: #61AAD8 !important;
    stroke-width: 5px !important;
}

.opus-external-task > .djs-visual rect {
    fill: #F5F9FD !important;
    stroke: #61AAD8 !important;
    stroke-width: 10px !important;
}

.djs-palette .entry.opus-text-annotation-icon,
.djs-palette .entry.opus-text-annotation-icon:hover {
    color: #005A9E !important;
}

.opus-script-task > .djs-visual rect {
    fill: #F5F9FD !important;
    stroke: #61AAD8 !important;
    stroke-width: 5px !important;
}

.opus-business-task > .djs-visual rect {
    fill: #F5F9FD !important;
    stroke: #61AAD8 !important;
    stroke-width: 5px !important;
}

.opus-call-activity-task > .djs-visual > rect:first-of-type {
    fill: #E3E3E3 !important;
    stroke: #61AAD8 !important;
    stroke-width: 10px !important;
}

.opus-call-activity-task > .djs-visual > rect:not(:first-of-type) {
    stroke: #61AAD8 !important;
    stroke-width: 1px !important;
}

.opus-call-activity-task > .djs-visual > path {
    stroke: #61AAD8 !important;
}

.opus-gateway > .djs-visual polygon {
    fill: #CCECFF !important;
    stroke: #287082 !important;
    stroke-width: 3px !important;
}

.opus-subprocess > .djs-visual > rect:first-of-type {
    fill: #FEE9D1 !important;
    stroke: #FF8C00 !important;
    stroke-width: 5px !important;
}

.opus-subprocess > .djs-visual > rect:not(:first-of-type) {
    stroke: #FF8C00 !important;
    stroke-width: 1px !important;
}

.opus-subprocess > .djs-visual > path {
    stroke: #FF8C00 !important;
}

.djs-context-pad .entry.connect,
.djs-context-pad .entry.connect:hover {
    color: #0078D4 !important;
}

.djs-context-pad .entry.opus-connection-color-entry,
.djs-context-pad .entry.opus-connection-color-entry:hover {
    color: #744DA9 !important;
}

.djs-context-pad .entry.opus-connection-label-entry,
.djs-context-pad .entry.opus-connection-label-entry:hover {
    color: #005A9E !important;
}

.djs-connection path {
    stroke: #000000 !important;
    stroke-width: 3px !important;
}

.djs-connection.message-flow path {
    stroke: #0078D4 !important;
    stroke-width: 3px !important;
    stroke-dasharray: 8 5 !important;
}

.djs-connection.opus-association path {
    stroke: #dddddd !important;
}

.djs-connection.opus-dotted-connector path {
    stroke-dasharray: 1 7 !important;
    stroke-linecap: round !important;
}

/* SequenceFlow avec libellé Oui / Yes */
.djs-connection.opus-connection-yes path {
	stroke: #00B050 !important;
	stroke-width: 3px !important;
}

/* SequenceFlow avec libellé Non / No */
.djs-connection.opus-connection-no path {
    stroke: #B50000 !important;
    stroke-width: 3px !important;
}

/* SequenceFlow conditionnel */
.djs-connection path[marker-start*="conditional-flow-marker"] {
    stroke: #049bdb !important;
    stroke-width: 3px !important;
}

/* SequenceFlow par défaut (slash) */
.djs-connection path[marker-start*="conditional-default-flow-marker"] {
    stroke: #0078D4 !important;
    stroke-width: 3px !important;
}

/* Icônes dans le menu de remplacement */
.bpmn-icon-conditional-flow,
.bpmn-icon-default-flow {
    color: #0078D4 !important;
}

/* ================================================================ */
/* STYLES BPMN COLOR PICKER (Phase 2)                               */
/* ================================================================ */
.djs-popup.color-picker {
    width: auto;
}

.djs-popup.color-picker .djs-popup-body {
    padding: 6px;
}

.djs-popup.color-picker .djs-popup-search {
    display: none;
}

.djs-popup.color-picker .entry-header {
    padding: 4px 2px 2px;
    font-size: 12px;
    font-weight: 600;
    color: #323130;
}

.djs-popup.color-picker .djs-popup-group {
    display: grid;
    grid-template-columns: repeat(6, 30px);
    gap: 4px;
    padding: 0 0 4px;
}

.djs-popup.color-picker .entry {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.djs-popup.color-picker .entry:hover {
    background-color: rgba(0, 120, 212, 0.1);
    transform: scale(1.08);
}

.djs-popup.color-picker .entry .color-picker-swatch {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.djs-popup.color-picker .entry .djs-popup-label {
    display: none;
}

/* Les entrees de taille de police affichent leur libelle (ex. "14 px") */
.djs-popup.color-picker .djs-popup-group:has(.entry[data-id^="text-size-"]) {
    grid-template-columns: repeat(3, auto);
}

.djs-popup.color-picker .djs-popup-group:has(.entry[data-id^="text-style-"]),
.djs-popup.color-picker .djs-popup-group:has(.entry[data-id^="text-orientation-"]) {
    grid-template-columns: repeat(2, auto);
}

.djs-popup.color-picker .entry[data-id^="text-size-"] .djs-popup-label,
.djs-popup.color-picker .entry[data-id^="text-style-"] .djs-popup-label,
.djs-popup.color-picker .entry[data-id^="text-orientation-"] .djs-popup-label {
    display: inline;
    color: #323130 !important;
    font-size: 12px;
    white-space: nowrap;
}

/* Fil d'Ariane des sous-processus (drilldown) : barre pleine largeur en haut de la zone d'edition */
.bpmn-diagram-container .bjs-breadcrumbs,
.bpmn-diagram-container .djs-palette-shown .bjs-breadcrumbs,
.bpmn-diagram-container .djs-palette-shown.djs-palette-two-column .bjs-breadcrumbs {
    top: 0;
    left: 0;
    right: 0;
    min-height: 48px;
    padding: 10px 16px;
    box-sizing: border-box;
    border-width: 0 0 1px 0;
    border-radius: 0;
    background-color: var(--background-color, #f8f9fa);
    z-index: 10;
}

.bpmn-diagram-container .bjs-breadcrumbs .bjs-crumb {
    max-width: 320px;
}

/* Entete du sous-processus courant, juste au-dessus du diagramme */
.bpmn-diagram-container .opus-subprocess-header {
    display: none;
}

.bpmn-diagram-container .opus-in-subprocess .opus-subprocess-header {
    display: block;
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    padding: 8px 16px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background-color: #FF8C00;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 10;
}

.bpmn-diagram-container .opus-in-subprocess .djs-palette {
    top: 110px;
}

/* bpmn-js-token-simulation : la bascule se fait depuis la barre d'outils Blazor */
.bpmn-diagram-container .bts-toggle-mode {
    display: none;
}

.bpmn-diagram-container.bpmn-simulating {
    filter: none !important;
    cursor: default !important;
}

/* Commentaires de revue (module opusComments, format bpmn-js-embedded-comments) */
.bpmn-diagram-container.bpmn-reviewing {
    filter: none !important;
    cursor: default !important;
}

.bpmn-diagram-container.bpmn-reviewing .djs-shape:not(.djs-frame):hover {
    cursor: pointer;
}

.bpmn-diagram-container.bpmn-simulating .opus-comment-badge,
.bpmn-diagram-container.bpmn-simulating .opus-comments-panel {
    display: none;
}

.opus-comment-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px 2px 5px;
    border: 1px solid #c8c6c4;
    border-radius: 999px;
    background: #ffffff;
    color: #323130;
    font: 600 12px/1.2 'Segoe UI', sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.opus-comment-badge img {
    width: 14px;
    height: 14px;
}

.bpmn-diagram-container.bpmn-simulating .opus-doc-marker {
    display: none;
}

.opus-doc-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid #0b6a8f;
    border-radius: 50%;
    background: #e6f4f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.opus-doc-marker img {
    width: 14px;
    height: 14px;
}

.opus-doc-marker:hover {
    background: #cdeaf4;
    transform: scale(1.08);
}

.opus-doc-marker--draft {
    border-color: #8a6d00;
    background: #fff4cc;
}

.opus-doc-marker--inreview {
    border-color: #b45309;
    background: #ffe0c2;
}

.opus-doc-marker--approved {
    border-color: #1b7a3d;
    background: #d9f2e1;
}

.opus-doc-state {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    border: 1px solid currentColor;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.opus-doc-state--draft {
    color: #8a6d00;
    background: #fff4cc;
}

.opus-doc-state--inreview {
    color: #b45309;
    background: #ffe0c2;
}

.opus-doc-state--approved {
    color: #1b7a3d;
    background: #d9f2e1;
}

.opus-doc-preview {
    position: fixed;
    z-index: 2100;
    max-width: 320px;
    padding: 10px 12px;
    border: 1px solid #c8d1d9;
    border-radius: 8px;
    background: #fff;
    color: #212529;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    font-size: 0.85rem;
    pointer-events: none;
}

.opus-doc-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.opus-doc-preview p {
    margin: 6px 0 0;
    color: #495057;
}

.opus-doc-dialog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 8px 20px;
    border-top: 1px solid #e3e8ec;
    font-size: 0.85rem;
    color: #495057;
}

.opus-doc-marker:focus-visible,
.opus-doc-close:focus-visible {
    outline: 2px solid #0078d4;
    outline-offset: 2px;
}

.opus-doc-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2070;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(32, 31, 30, 0.55);
}

.opus-doc-dialog {
    display: flex;
    flex-direction: column;
    width: min(760px, 100%);
    max-height: min(86vh, 900px);
    border-radius: 8px;
    background: #ffffff;
    color: #323130;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.opus-doc-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid #e1dfdd;
}

.opus-doc-eyebrow {
    display: block;
    font: 600 0.72rem/1.2 'Segoe UI', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0b6a8f;
}

.opus-doc-dialog-title {
    margin: 0.2rem 0 0;
    font-size: 1.25rem;
    line-height: 1.3;
}

.opus-doc-close {
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    padding: 0 0.35rem;
    color: #605e5c;
    cursor: pointer;
}

.opus-doc-dialog-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem 1.25rem;
}

.opus-doc-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #e1dfdd;
}

.opus-doc-content img {
    max-width: 100%;
    height: auto;
}

.opus-doc-content table {
    border-collapse: collapse;
}

.opus-doc-content td,
.opus-doc-content th {
    border: 1px solid #c8c6c4;
    padding: 0.25rem 0.5rem;
}

.opus-doc-entry-list .opus-doc-entry-body {
    max-height: 18rem;
    overflow-y: auto;
}

.opus-doc-entry-list .opus-doc-entry-body--expanded {
    max-height: none;
    overflow-y: visible;
}

.opus-comment-badge:hover {
    background: #f3f2f1;
    border-color: #0078d4;
}

.opus-comment-badge:focus-visible,
.opus-comments-panel button:focus-visible,
.opus-comments-panel textarea:focus-visible {
    outline: 2px solid #0078d4;
    outline-offset: 2px;
}

.opus-comments-panel {
    display: flex;
    flex-direction: column;
    width: 300px;
    max-height: 380px;
    border: 1px solid #c8c6c4;
    border-radius: 8px;
    background: #ffffff;
    color: #323130;
    font: 400 13px/1.4 'Segoe UI', sans-serif;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    cursor: default;
    z-index: 100;
}

.opus-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid #edebe9;
}

.opus-comments-title {
    overflow: hidden;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.opus-comments-close {
    flex: none;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #605e5c;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.opus-comments-close:hover {
    background: #f3f2f1;
}

.opus-comments-list {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 4px 10px;
    overscroll-behavior: contain;
}

.opus-comments-empty {
    margin: 8px 0;
    color: #605e5c;
}

.opus-comment {
    padding: 8px 0;
}

.opus-comment + .opus-comment {
    border-top: 1px solid #edebe9;
}

.opus-comment-meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 2px;
}

.opus-comment-date {
    color: #605e5c;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.opus-comment-delete {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #a4262c;
    font-size: 12px;
    cursor: pointer;
}

.opus-comment-delete:hover {
    text-decoration: underline;
}

.opus-comment-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.opus-comments-form {
    padding: 8px 10px 10px;
    border-top: 1px solid #edebe9;
}

.opus-comments-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    border: 1px solid #c8c6c4;
    border-radius: 4px;
    font: inherit;
    resize: vertical;
}

.opus-comments-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
}

.opus-comments-hint {
    color: #605e5c;
    flex: 1;
    font-size: 11px;
}

/* Annuler : ferme le panneau (pas de fermeture au clic à côté) */
.opus-comments-cancel {
    flex: none;
    padding: 4px 12px;
    border: 1px solid #8a8886;
    border-radius: 4px;
    background: transparent;
    color: #323130;
    font-weight: 600;
    cursor: pointer;
}

.opus-comments-cancel:hover {
    background: #f3f2f1;
}

.opus-comments-submit {
    flex: none;
    padding: 4px 12px;
    border: 0;
    border-radius: 4px;
    background: #0078d4;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.opus-comments-submit:hover {
    background: #106ebe;
}

@media (prefers-reduced-motion: reduce) {
    .opus-comment-badge {
        transition: none;
    }
}


/* ================================================================ */

/* STYLES POUR LES MÉTADONNÉES - CARTOUCHE D'IDENTIFICATION         */

/* ================================================================ */

.processus-metadata,
.procedure-metadata
{
    /* background: linear-gradient(135deg, #f5f7fa 100%, #c3cfe2 0%); */
    border-left: 4px solid var(--primary-color);
    border-radius: 0.75rem;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.metadata-item
{
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.metadata-item:last-child
{
    margin-bottom: 0;
}

.metadata-label
{
    color: #495057;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.metadata-label i
{
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.metadata-value
{
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive metadata */

@media (max-width: 768px)
{
    .processus-metadata,
    .procedure-metadata
    {
        padding: 1rem;
    }

    .metadata-label
    {
        font-size: 0.75rem;
    }

    .metadata-value
    {
        font-size: 0.9rem;
    }
}


/* ================================================================ */

/* STYLES POUR LE CORPS DE TEXTE - CONTENU                         */

/* ================================================================ */

.processus-body,
.procedure-body
{
    color: #495057;
    font-size: 1rem;
    line-height: 1.8;
}

.processus-body p,
.procedure-body p
{
    margin-bottom: 1rem;
}

.processus-body h2,
.procedure-body h2,
.processus-body h3,
.procedure-body h3,
.processus-body h4,
.procedure-body h4
{
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

/* ================================================================ */

/* STYLES POUR LES CONTENEURS DE DETAILS                           */

/* ================================================================ */

/* Note: .processus-detail-container, .procedure-detail-container et @keyframes slideDown sont dans css/animations.css */

.badge
{
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    vertical-align: middle;
}



.processus-row
{
    font-size: 16pt;
    transition: background-color 0.2s ease;
}

.processus-row:hover
{
    background-color: rgba(13, 110, 253, 0.05);
}

.fw-500
{
    font-weight: 500;
}

.table-responsive
{
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Note: .icon-container et .fw-500 sont maintenant dans css/utilities.css */

/****************************************************************/





.valid.modified:not([type=checkbox])
{
    outline: 1px solid #26b050;
}

.invalid
{
    outline: 1px solid #e50000;
}

.validation-message
{
    color: #e50000;
}

.blazor-error-boundary
{
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE8CiAgPGNpcmcgY2xpcD0icGF0aCgiY2xpcDAiKSB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MSAtNTEpIj48cGF0aCBkPSJNNDYyLjk1NiAxODEuNjQ3QzQ2Mi85NTYgMjQyLjM4MiA0NjMuMjAxIMKwMzYyLjMwMSA1MTUuMzY2IDQ2NC41NzUgPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    color: white;
    padding: 1rem 1rem 1rem 3.7rem;
}

.blazor-error-boundary::after
{
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input
{
    border-color: #929292;
}

.form-check-input
{
    border-color: var(--input-border);
    background-color: var(--input-bg);
}

.form-check-input:checked
{
    background-color: var(--blue-light);
    border-color: var(--blue-light);
}

/* Animations de transition de th?me */

*
{
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Dashed border */

hr.dashed
{
    border-top: 3px dashed var(--secondary-color);
}

/* Dotted border */

hr.dotted
{
    border-top: 3px dotted var(--secondary-color);
}

/* Solid border */

hr.solid
{
    border-top: 3px solid var(--secondary-color);
}

/* Rounded border */

hr.rounded
{
    border-radius: 5px;
    border-top: 8px solid var(--border-color);
}

/* Styles pour le bouton des utilisateurs d'organisation */

.btn-outline-info:hover
{
    background-color: var(--blue04);
    border-color: var(--blue04);
}

.btn-outline-info:focus
{
    box-shadow: 0 0 0 0.25rem rgba(13, 202, 240, 0.25);
}

/* Styles pour la page de gestion des options */

/* Note: .text-truncate est maintenant dans css/utilities.css */

/* Les badges à fond coloré conservent un texte blanc dans les deux thèmes :
   --white-color est inversé en mode sombre, ce qui rendait le texte noir illisible. */
.badge.bg-primary
{
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

.badge.bg-accent
{
    background-color: var(--accent-color) !important;
    color: var(--white) !important;
}

.badge.bg-secondary
{
    background-color: var(--secondary-color) !important;
    color: var(--white) !important;
}

.badge.bg-danger
{
    background-color: var(--danger-color) !important;
    color: var(--white) !important;
}

.badge.bg-success
{
    background-color: var(--green-medium) !important;
    color: var(--white) !important;
}

.badge.bg-info
{
    background-color: var(--blue04) !important;
    color: var(--white) !important;
}

.badge.bg-warning
{
    background-color: var(--orange-light) !important;
    color: var(--white) !important;
}

.badge.bg-orange
{
    background-color: var(--orange) !important;
    color: var(--white) !important;
}

.badge.bg-light
{
    background-color: var(--gray-07) !important;
    color: var(--white) !important;
}

/* ============================================= */

/* BADGES DE PLANS - COULEURS PERSONNALISÉES    */

/* ============================================= */

.badge-plan-gratuit
{
    background-color: #0067A7 !important;
    color: var(--white-color) !important;
    font-weight: 600;
}

.badge-plan-standard
{
    background-color: #007256 !important;
    color: var(--white-color) !important;
    font-weight: 600;
}

.badge-plan-premium
{
    background-color: #DDB200 !important;
    color: var(--white-color) !important;
    font-weight: 600;
}

.badge-plan-entreprise
{
    background-color: #9752FE !important;
    color: var(--white-color) !important;
    font-weight: 600;
}

.badge-plan-default
{
    background-color: var(--gray04) !important;
    color: var(--white-color) !important;
    font-weight: 600;
}

.badge-inactive {
    background-color: #656B67 !important;
    color: var(--white-color) !important;
    font-weight: 600;
}

/* Animation pour les modals responsive */

.modal-content-responsive
{
    display: flex;
    flex-direction: column;
    max-height: 95vh;
}

.modal-body-scrollable
{
    flex-grow: 1;
    overflow-y: auto;
}

/* Styles pour les alertes de coût */

.alert-info h6.alert-heading
{
    color: var(--blue04);
    margin-bottom: 0.5rem;
}

/* Styles pour les options dans le modal de détails des plans */

.option-card
{
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.option-card:hover
{
    border-color: var(--blue04);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.option-card .card-body
{
    padding: 0.75rem;
}

.option-card .card-title
{
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.option-card .card-text
{
    font-size: 0.8rem;
    line-height: 1.3;
}

.option-card .text-sm
{
    font-size: 0.75rem !important;
}

/* Badge pour les options expirées */

.option-expired
{
    border-left: 3px solid var(--orange-light) !important;
}

.option-active
{
    border-left: 3px solid var(--green-medium) !important;
}

.option-inactive
{
    border-left: 3px solid var(--secondary-color) !important;
    opacity: 0.7;
}

/* Styles pour l'affichage du plan en lecture seule dans les modals */

.plan-info-readonly
{
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem; 
    margin-bottom: 1rem;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.plan-info-readonly:hover
{
    border-color: var(--blue04);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.plan-badge-primary
{
    background-color: var(--blue04) !important;
    color: var(--white-color) !important;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
}

.plan-description-text
{
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-style: italic;
    margin-bottom: 0;
}

.plan-readonly-label
{
    color: var(--text-primary);
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-readonly-content
{
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.plan-readonly-warning
{
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-style: italic;
    margin-top: 0.25rem;
}

/* Amélioration des badges de statut dans les plans */

.plan-status-badge
{
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
}

/* Styles pour les sections d'information dans les modals */

.modal-section-header 
{
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.modal-info-card
{
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
}

.modal-info-card h6
{
    color: var(--blue04);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Responsive design pour les modals avec informations de plan */

@media (max-width: 768px)
{
    .plan-readonly-content
    {
        align-items: flex-start;
        flex-direction: column;
    }

    .plan-info-readonly
    {
        padding: 0.5rem;
    }
}

/* Ticket modals - extended layout */
.ticket-details-modal .modal-dialog,
.ticket-edit-modal .modal-dialog
{
    max-width: min(1700px, 96vw);
    width: 96vw;
}

.ticket-details-modal .modal-content,
.ticket-edit-modal .modal-content
{
    max-height: 95vh;
}

.ticket-details-modal .modal-body,
.ticket-edit-modal .modal-body
{
    overflow-y: auto;
}

/************ FIN LANDING PAGE CSS ************/

/* Note: .back-home-icon est maintenant dans css/utilities.css */

/* ============================================= */

/* STYLES POUR LE MODAL DE CHARGEMENT           */

/* ============================================= */

/* Note: @keyframes fadeIn et @keyframes spin sont maintenant dans css/animations.css */

.modal.d-block .modal-content
{
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal.d-block .spinner-border
{
    animation: spin 1s linear infinite;
}

.modal.d-block .modal-body { background: linear-gradient(135deg, var(--gray08-dl) 0%, var(--gray07-dl) 100%);
}

/* ========================================================================
   USER PROFILE SIDEBAR - Sliding Pane
   ======================================================================== */

/* Sidebar principal */

.user-profile-sidebar
{
    background: linear-gradient(0deg, rgba(13, 22, 40, 1) 0%, rgba(21, 36, 67, 1) 63%, rgba(30, 51, 94, 1) 86%, rgba(34, 58, 108, 1) 100%);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    color: white;
    height: calc(100vh - var(--header-h));
    overflow: hidden;
    position: fixed;
    /* Fermé : seule la barre compacte dépasse, hors de l'encoche */
    right: calc(var(--sidebar-compact-w) - var(--sidebar-w) + var(--safe-right));
    top: var(--header-h);
    transition: right 0.5s ease-in-out;
    width: var(--sidebar-w);
    will-change: right;
    z-index: 1040;
}

/* État ouvert */

.user-profile-sidebar.open
{
    right: 0;
}

/* État épinglé */

.user-profile-sidebar.pinned
{
    position: fixed;
    right: 0;
}

/* Header du sidebar */

.sidebar-header {
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    z-index: 40;
    color: white;
}


.user-profile-sidebar:not(.open) .sidebar-header
{
    padding: 0 0.75rem;
}

.user-profile-sidebar:not(.open) .sidebar-header h5
{
    margin-bottom: 0 !important;
}

/* Header en état épinglé */

.sidebar-header.sidebar-pinned-state
{
    background: rgba(255, 103, 0, 0.15);
    border-bottom: 2px solid var(--accent-color, #ff6700);
}

/* Bouton d'épinglage : grand écran uniquement (même seuil que js/layout-responsive.js).
   Pas de d-none/d-xl-* : MudBlazor redéfinit ces classes avec d'autres breakpoints. */

.sidebar-pin-btn
{
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: white;
    display: none;
    height: 36px;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    width: 36px;
}

@media (min-width: 1200px)
{
    .sidebar-pin-btn
    {
        display: inline-flex;
    }
}

.sidebar-pin-btn:hover
{
    background: rgba(255, 255, 255, 0.16);
}

.sidebar-pin-btn:focus-visible
{
    outline: 2px solid var(--accent-color, #ff6700);
    outline-offset: 2px;
}

.sidebar-pin-btn.active
{
    background: var(--accent-color, #ff6700);
    border-color: var(--accent-color, #ff6700);
}

.sidebar-pin-btn.active i
{
    transform: rotate(45deg);
}

/* Barre d'icônes compacte : posée absolument à gauche, toujours 60px */

.sidebar-compact-strip
{
    bottom: var(--safe-bottom);
    left: 0;
    opacity: 1;
    overflow: hidden;
    pointer-events: auto;
    position: absolute;
    top: 0;
    /* À la fermeture : opacity et visibility retardés de 0.5s (après fin du glissement) */
    transition: opacity 0.15s ease 0.5s, visibility 0s linear 0.5s;
    visibility: visible;
    width: 60px;
    z-index: 2;
}

/* À l'ouverture : fade-out rapide (0.15s), puis masquage */

.user-profile-sidebar.open .sidebar-compact-strip
{
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease 0s, visibility 0s linear 0.15s;
    visibility: hidden;
}

.sidebar-icons-compact
{
    box-sizing: border-box;
    height: 100%;
    overflow-y: hidden;
    padding: 0.25rem 0.5rem 1rem 0.5rem;
}

/* Panneau étendu : caché par défaut, visible uniquement quand le sidebar est ouvert */

.sidebar-expanded-panel
{
    bottom: var(--safe-bottom);
    display: flex;
    flex-direction: column;
    left: 0;
    overflow: hidden;
    position: absolute;
    right: var(--safe-right);
    top: 0;
    transition: none;
    visibility: hidden;
    z-index: 1;
}

/* Afficher instantanément le panneau étendu à l'ouverture */

.user-profile-sidebar.open .sidebar-expanded-panel
{
    transition: none;
    visibility: visible;
}

/* Badge épinglé */

/* Note: @keyframes badgeFadeIn est maintenant dans css/animations.css */

.badge-pinned
{
    align-items: center;
    animation: badgeFadeIn 0.3s ease-in-out;
    background: var(--accent-color, #ff6700);
    border-radius: 12px;
    color: white;
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
}

.badge-pinned i
{
    font-size: 0.6rem;
}

/* Contenu du sidebar */

.sidebar-content
{
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Carte d'information utilisateur */

.user-info-card
{
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.5s ease-in-out;
}

.user-avatar
{
    flex-shrink: 0;
}

.info-item
{
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
}

.info-item:last-child
{
    border-bottom: none;
}

.info-item small
{
    display: block;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.info-item .fw-semibold
{
    font-size: 0.95rem;
}

/* Menu items */

.sidebar-menu
{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-menu-item
{
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    text-align: left;
    text-decoration: none;
    transition: all 0.5s ease-in-out;
    width: 100%;
}

.sidebar-menu-item:hover
{
    background: var(--accent-color, #ff6700);
    color: white;
    transform: translateX(-3px);
}

.sidebar-menu-item.text-danger
{
    background: rgba(220, 53, 69, 0.2);
    color: white;
}

.sidebar-menu-item.text-danger:hover
{
    background: rgba(220, 53, 69, 0.4);
    color: white;
}

/* Section pour la langue */

.sidebar-section
{
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
}

.sidebar-section small
{
    opacity: 0.9;
}

/* Adapter le LanguageSelector au style du sidebar */

.sidebar-section .language-selector .btn
{
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.sidebar-section .language-selector .btn:hover
{
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.sidebar-section .dropdown-menu
{
    backdrop-filter: blur(10px);
    background: rgba(37, 54, 107, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-section .dropdown-item
{
    color: white;
    transition: all 0.2s ease;
}

.sidebar-section .dropdown-item:hover
{
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.sidebar-section .dropdown-item.active
{
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.sidebar-section .dropdown-item.active i.fa-check
{
    color: var(--accent-color, #ff6700);
}

/* Icône épinglée */

/* Note: @keyframes pinPulse est maintenant dans css/animations.css */

.pinned-icon
{
    animation: pinPulse 0.5s ease-in-out;
    color: var(--accent-color, #ff6700) !important;
    transform: rotate(45deg);
}

/* Animation pour le bouton du push pin */

.btn .fa-thumbtack
{
    transition: all 0.3s ease;
}

.btn:hover .fa-thumbtack
{
    transform: scale(1.1);
}

/* Overlay */

/* Note: @keyframes fadeIn est maintenant dans css/animations.css */

.sidebar-overlay
{
    animation: fadeIn 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1039;
}

/* Bouton toggle sidebar dans MainLayout */

.sidebar-toggle-btn
{
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.sidebar-toggle-btn:hover
{
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.sidebar-toggle-btn .user-name
{
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-toggle-btn .avatar-icon
{
    font-size: 1.5rem;
}

.sidebar-toggle-btn .hamburger-icon
{
    font-size: 1.2rem;
}

/* Responsive */

@media (max-width: 767.98px)
{
    .user-profile-sidebar
    {
        right: -100%;
        width: 100%;
    }

    .user-profile-sidebar.open
    {
        right: 0;
    }

    /* Plein écran : le panneau évite aussi l'encoche à gauche (paysage) */
    .sidebar-expanded-panel
    {
        left: var(--safe-left);
    }

    /* Masquer la barre compacte sur mobile (pas de barre visible hors-écran) */

    .sidebar-compact-strip
    {
        display: none;
    }

    .sidebar-toggle-btn .user-name
    {
        display: none;
    }
}

/* Scrollbar personnalisée pour le sidebar */

.user-profile-sidebar::-webkit-scrollbar,
.sidebar-content::-webkit-scrollbar
{
    width: 18px;
}

.user-profile-sidebar::-webkit-scrollbar-track,
.sidebar-content::-webkit-scrollbar-track
{
    background: rgba(255, 255, 255, 0.1);
}

.user-profile-sidebar::-webkit-scrollbar-thumb,
.sidebar-content::-webkit-scrollbar-thumb
{
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.user-profile-sidebar::-webkit-scrollbar-thumb:hover,
.sidebar-content::-webkit-scrollbar-thumb:hover
{
    background: rgba(255, 255, 255, 0.5);
}

/* ============================================= */

/* STYLES POUR LA SECTION DE COMMENTAIRES      */

/* ============================================= */

.blog-comments-section
{
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.comments-header
{
    margin-bottom: 1.5rem;
}

.comments-header h4
{
    color: #212529;
    font-weight: 600;
    margin: 0;
}

.add-comment-form
{
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
}

.add-comment-form .form-label
{
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary)
}

.add-comment-form textarea
{
    min-height: 100px;
    resize: vertical;
}

.comments-list
{
    max-height: 1000px;
}

.alert
{
    border-left: 4px solid;
}

.alert-info
{
    border-left-color: #0c5460;
}

.alert-secondary
{
    border-left-color: #6c757d;
}

.alert-success
{
    border-left-color: #155724;
}

.alert-danger
{
    border-left-color: #721c24;
}


/***********************************************************************************************************************/
/* STYLE POUR LA SÉLECTION D'ABONNEMENTS */
/***********************************************************************************************************************/
.subscription-container {
    /*background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    flex-direction: column;*/
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    width: 100% !important;
}

/* En-tête */

.subscription-header {
    background: linear-gradient(135deg, #546CAD 0%, #25366B 25%, #2C2C36 75%, #25366B 100%);
    flex-shrink: 0;
    padding: 3rem 2rem;
    text-align: center;
}
    
/* Contenu principal */

.subscription-content {
    align-items: center;
    display: flex;
    flex: 1;
    justify-content: center;
    padding: 3rem 2rem;
    background: #25366B
}

/* État de chargement et vide */

.loading-state,
.empty-state {
    color: var(--gray-07);
    text-align: center;
}

/* Toggle mensuel / annuel */

.subscription-toggle-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    width: 100%;
}

.subscription-toggle-row.single-toggle {
    justify-content: flex-end;
}

.subscription-type-toggle-container {
    align-items: center;
    display: flex;
    justify-content: flex-start;
}

.pricing-toggle-container {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0;
    
}

.pricing-toggle {
    /*background: rgba(255, 255, 255, 0.12);*/
    background: var(--gray07);
    border-radius: 2rem;
    display: inline-flex;
    padding: 4px;
}

.pricing-toggle-btn {
    background: transparent;
    border: none;
    border-radius: 2rem;
    color: var(--black);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 2rem;
    transition: all 0.25s ease;
}

    .pricing-toggle-btn.active {
        background: var(--green-light);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
        color: var(--black);
    }

    .pricing-toggle-btn:hover:not(.active) {
        background: rgba(255, 255, 255, 0.18);
    }

/* Ligne total annuel dans le header des plans */

.annual-total-row {
    margin-bottom: 0.25rem;
    min-height: 24px;
    text-align: center;
}

.annual-total {
    color: var(--green-light);
    font-size: 1.2rem;
    font-weight: 700;
}

/* Tableau de comparaison moderne */

.plans-comparison-wrapper {
    background: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
    max-width: 1400px;
    /* Défilement plutôt que coupure : le tableau (≥ 800px) dépasse dès que le menu ou la barre d'icônes réduit la zone */
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
}

.plans-comparison-table {
    border-collapse: collapse;
    font-family: inherit;
    width: 100%;
}

/* En-têtes du tableau */

.plans-header-row {
    background: linear-gradient(135deg, #8E2DE2 10%, #4A00E0 100%);
    color: var(--white-color);
}

    .plans-header-row th {
        border: none;
        font-weight: 600;
        padding: 0.5rem 0.5rem;
        text-align: left;
    }

.feature-column {
    background: var(--gray08);
    color: var(--gray02);
    font-weight: 700;
    width: 20%;
}

.plan-column {
    background: linear-gradient(135deg, #8E2DE2 10%, #4A00E0 100%);
    transition: all 0.3s ease;
    width: 20%;
}

    .plan-column.active-plan {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    }

    .plan-column.active-premium-plan {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
        box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3), 0 0 20px rgba(220, 53, 69, 0.4);
    }

.plan-header {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0.5rem;
    min-height: 280px;
}

/* Lignes du header - structure verticale sur 5 lignes */
.plan-header-row {
    width: 100%;
    text-align: center;
    margin-bottom: 0.75rem;
}

/* ================================================================
   Couleurs de maturité — partagées entre tous les composants
   OpusMaturis (MaturityGroupTable, MaturityBarChart, MaturityTableWithBar…)
   ================================================================ */
.bg-eval-blue   { background-color: #0067A7 !important; color: #fff !important; }
.bg-eval-green  { background-color: #007256 !important; color: #fff !important; }
.bg-eval-yellow { background-color: #F6C700 !important; color: #000 !important; }
.bg-eval-orange { background-color: #E97600 !important; color: #fff !important; }
.bg-eval-danger { background-color: #BD1E24 !important; color: #fff !important; }

/* Ligne 1: Badges d'abonnement */
.badge-row {
    min-height: 60px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.active-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.active-badges .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.badge-sub-active {
    background-color: #ffc107 !important;
    color: #212529 !important;
    font-weight: 600;
}

.badge-sub-user {
    background-color: #0d6efd !important;
    color: white !important;
}

.badge-sub-org {
    background-color: #198754 !important;
    color: white !important;
}

.badge-placeholder {
    min-height: 60px;
}

/* Ligne 2: Nom du plan */
.name-row {
    margin-bottom: 0.5rem;
}

.plan-name {
    color: var(--yellow);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

/* Ligne 3: Icône */
.icon-row {
    margin-bottom: 0.5rem;
}

.plan-icon {
    color: var(--white);
}

.plan-icon i {
    font-size: 3rem;
}

/* Premium highlight - icône jaune */
.active-premium-plan .plan-icon,
.plan-column.active-premium-plan .plan-icon {
    color: #ffc107;
}

/* Ligne 4: Prix */
.price-row {
    margin-bottom: 0.5rem;
}

.price-amount {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.active-premium-plan .price-amount,
.plan-column.active-premium-plan .price-amount {
    color: #ffc107;
}

/* Ligne 5: Période */
.period-row {
    margin-bottom: 0;
}

.price-period {
    color: var(--gray07);
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 500;
}

/* Responsive adjustments pour le header des plans */
@media (max-width: 992px) {
    .plan-header {
        min-height: 240px;
        padding: 0.75rem 0.5rem;
    }

    .plan-name {
        font-size: 1.25rem;
    }

    .plans-header-row th,
    .feature-row td,
    .action-row td,
    .description-row td {
        padding: 1rem 0.75rem;
    }

    .btn-select-plan {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 768px) {
    .plan-header {
        min-height: 200px;
        padding: 0.5rem 0.25rem;
    }

    .plan-name {
        font-size: 1.1rem;
    }

    .plan-icon i {
        font-size: 2rem;
    }

    .price-amount {
        font-size: 1.5rem;
    }

    .price-period {
        font-size: 0.8rem;
    }

    .badge-row {
        min-height: 50px;
    }

    .badge-placeholder {
        min-height: 50px;
    }
}

/* Lignes du tableau */

.description-row td,
.feature-row td,
.action-row td {
    border-bottom: 1px var(--gray07);
    padding: 0.5rem 1rem;
    vertical-align: middle;
}

/* Le nom des fonctionnalites reste noir sur fond gris clair, quel que soit le
   theme (le theme sombre applique sinon --bs-table-color aux cellules). */

.feature-label {
    background: var(--gray07) !important;
    border-right: 1px solid var(--gray07);
    color: var(--black) !important;
    font-weight: 600;
    width: 20%;
}

.feature-name {
    color: var(--black) !important;
    display: block;
    font-size: 0.95rem;
}

.cell-content {
    align-items: center;
    color: var(--black);
    display: flex;
    font-size: 1.2rem;
    justify-content: center;
    min-height: 30px;
    text-align: center;
    font-weight: 900;
}

/* Alternance de couleurs */

.feature-row.even { background: var(--gray07) !important;
}

.feature-row.odd { background: var(--gray07) !important;
}

    .feature-row.even td.active-plan,
    .feature-row.odd td.active-plan {
        background: rgba(40, 167, 69, 0.05);
    }

    .feature-row.even td.active-premium-plan,
    .feature-row.odd td.active-premium-plan {
        background: rgba(220, 53, 69, 0.08);
    }

.feature-row.even td.cell-has-value {
    background-color: var(--blue14);
}
    .feature-row.odd td.cell-has-value {
        background-color: var(--blue15);
    }

.description-row {
    background: var(--gray08);
}

    .description-row td.feature-label {
        background: var(--gray09);
    }

    .description-row td.active-plan {
        background: rgba(40, 167, 69, 0.08);
    }

    .description-row td.active-premium-plan {
        background: rgba(220, 53, 69, 0.08);
    }

/* Ligne d'action */

.action-row {
    background: var(--gray08);
}

    .action-row td {
        border-bottom: none;
        padding: 0.6rem 1rem;
    }

        .action-row td.feature-label {
            background: var(--gray09)
        }

        .action-row td.active-plan {
            background: rgba(40, 167, 69, 0.08);
        }

        .action-row td.active-premium-plan {
            background: rgba(220, 53, 69, 0.08);
        }

/* Bouton de sélection */

.btn-select-plan {
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.5rem;
    justify-content: center;
    min-height: 36px;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
}

    /* Bouton Inscrivez-vous (variante verte) */

    .btn-select-plan.btn-register {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
        font-weight: 700;
    }

        .btn-select-plan.btn-register:hover {
            background: linear-gradient(135deg, #218838 0%, #1aa87e 100%);
            box-shadow: 0 6px 16px rgba(40, 167, 69, 0.5);
            transform: translateY(-2px);
        }

    .btn-select-plan:hover:not(:disabled) {
        background: linear-gradient(135deg, #5568d3 0%, #6a3f91 100%);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        transform: translateY(-2px);
    }

    .btn-select-plan:active:not(:disabled) {
        transform: translateY(0);
    }

    .btn-select-plan:disabled {
        cursor: not-allowed;
        opacity: 0.6;
    }

.action-row td.active-plan .btn-select-plan {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

    .action-row td.active-plan .btn-select-plan:hover:not(:disabled) {
        background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    }

.action-row td.active-premium-plan .btn-select-plan {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    font-weight: 700;
}

    .action-row td.active-premium-plan .btn-select-plan:hover:not(:disabled) {
        background: linear-gradient(135deg, #bb2d3b 0%, #a02438 100%);
        box-shadow: 0 6px 16px rgba(220, 53, 69, 0.5), 0 0 20px rgba(220, 53, 69, 0.3);
    }

.btn-text {
    font-size: inherit;
}

/* Conteneur des badges d'abonnement */

.subscription-badges-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    left: 12px;
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 10;
}

/* Badge d'abonnement actif */

.active-subscription-badge {
    align-items: center;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 700;
    gap: 0.375rem;
    letter-spacing: 0.3px;
    padding: 0.5rem 0.875rem;
    width: fit-content;
}

/* Badge utilisateur - Bleu */

.badge-utilisateur {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
}

/* Badge organisation - Vert */

.badge-organisation {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

@media (max-width: 1024px) {
    .plans-comparison-table {
        font-size: 0.9rem;
    }

    .plan-name {
        font-size: 1.1rem;
    }

    .plans-header-row th,
    .feature-row td,
    .action-row td,
    .description-row td {
        padding: 1rem 0.75rem;
    }

    .btn-select-plan {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 768px) {
    .subscription-toggle-row {
        align-items: stretch;
        flex-direction: column;
        gap: 0.75rem;
    }

    .subscription-type-toggle-container,
    .pricing-toggle-container {
        justify-content: center;
    }

    .subscription-header {
        padding: 2rem 1rem;
    }

        .subscription-header h1 {
            font-size: 1.75rem;
        }

    .subscription-content {
        overflow-x: auto;
        padding: 1.5rem 1rem;
    }

    .plans-comparison-wrapper {
        -webkit-overflow-scrolling: touch;
        display: block;
        overflow-x: auto;
    }

    .plans-comparison-table {
        font-size: 0.85rem;
        min-width: 800px;
    }

    .feature-column,
    .plan-column {
        min-width: 150px;
        width: auto;
    }

    .plan-name {
        font-size: 1rem;
    }

    .plans-header-row th,
    .feature-row td,
    .action-row td,
    .description-row td {
        padding: 0.4rem 0.5rem;
    }

    .btn-select-plan {
        font-size: 0.75rem;
        min-height: 32px;
        padding: 0.4rem 0.5rem;
    }

    .cell-content {
        min-height: 30px;
    }
}

/* Petits téléphones : moins de marges empilées autour du comparatif (3 × 16px de chaque côté) */
@media (max-width: 575.98px) {
    .subscription-content {
        padding: 1rem 0;
    }

    .subscription-content .list-container {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ================================================================
   ÉVALUATIONS - Ligne assignée à l'utilisateur courant
   ================================================================ */
tr.eval-assigned-to-me,
tr.eval-assigned-to-me > td {
    background-color: #d0e8f8 !important;
}

tr.eval-assigned-to-me:hover,
tr.eval-assigned-to-me:hover > td {
    background-color: #b8d9f2 !important;
}

tr.eval-my-client,
tr.eval-my-client > td {
    background-color: #fde8cc !important;
}

tr.eval-my-client:hover,
tr.eval-my-client:hover > td {
    background-color: #fbd5a8 !important;
}

/* ================================================================
   LOGIN - Overlay de connexion en cours
   ================================================================ */
.login-spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.login-spinner-card {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem 3rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    min-width: 220px;
}



/*************************************************************************
    Style pour les graphiques a bar des evaluations de maturite
*************************************************************************/
.mtb-bar-track {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    height: 25px;
    overflow: hidden;
    position: relative;
    width: 100%;
               }

.mtb-bar-fill {
    border-radius: 5px;
    bottom: 0;
    left: 0;
    opacity: .9;
    position: absolute;
    top: 0;
    transition: width .8s ease-in-out;
              }

.mtb-bar-fill.bg-eval-blue {
    background: linear-gradient(135deg, #0067A7, #004d7a) !important;
                           }

.mtb-bar-fill.bg-eval-green {
    background: linear-gradient(135deg, #007256, #005544) !important;
                            }

.mtb-bar-fill.bg-eval-yellow {
    background: linear-gradient(135deg, #F6C700, #d4a800) !important;
                             }

.mtb-bar-fill.bg-eval-orange {
    background: linear-gradient(135deg, #E97600, #c75f00) !important;
                             }

.mtb-bar-fill.bg-eval-danger {
    background: linear-gradient(135deg, #BD1E24, #9a171c) !important;
                             }

.eval-bar-chart {
    display: flex;
    flex-direction: column;
    gap: .75rem;
                }

.eval-bar-row {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: .75rem;
              }

.eval-bar-label {
    flex-shrink: 0;
    font-size: .9rem;
    font-weight: 500;
    text-align: left;
    width: 35%;
                }

.eval-bar-track {
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    display: flex;
    flex: 1;
    height: 40px;
    min-width: 200px;
    overflow: hidden;
    padding: 0;
    position: relative;
                }

.eval-bar-fill {
    border-radius: 5px;
    bottom: 0;
    left: 0;
    min-width: 8px;
    opacity: .9;
    position: absolute;
    top: 0;
    transition: width .8s ease-in-out;
               }

.eval-bar-value {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: .9rem;
    font-weight: 700;
    padding: 4px 8px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
                }

.eval-bar-fill.bg-eval-blue {
    background: linear-gradient(135deg, #0067A7, #004d7a) !important;
                            }

.eval-bar-fill.bg-eval-green {
    background: linear-gradient(135deg, #007256, #005544) !important;
                             }

.eval-bar-fill.bg-eval-yellow {
    background: linear-gradient(135deg, #F6C700, #d4a800) !important;
                              }

.eval-bar-fill.bg-eval-orange {
    background: linear-gradient(135deg, #E97600, #c75f00) !important;
                              }

.eval-bar-fill.bg-eval-danger {
    background: linear-gradient(135deg, #BD1E24, #9a171c) !important;
                              }

/* ===================================================================
   IMPRESSION PDF — règles globales
   (le CSS scoped des composants ne peut pas cibler le layout)
   =================================================================== */
@media print {
    /* Forcer la reproduction des couleurs et arrière-plans pour tous les éléments */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Masquer le header et la sidebar de navigation */
    header,
    .top-row,
    .user-profile-sidebar,
    .sidebar-compact-strip,
    .sidebar-icons-compact,
    .form-container > .no-print {
        display: none !important;
    }

    /* Supprimer les marges liées au layout sidebar épinglée */
    body,
    .form-container {
        margin: 0 !important;
       
    }
}