/************ Début CSS PERSONNALISÉ ************/

/* ========================================
   IMPORTS - MODULES CSS
   Organisation modulaire pour meilleure maintenance
   ======================================== */

/* 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";

/* Option 1: import all Web Awesome styles */
@import "@awesome.me/webawesome/dist/styles/webawesome.css";

/* Barre de statut */
@import "StatusBar.css";

/* Icônes Bootstrap */
@import "bootstrap-icons.min.css";

/* 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 - DARK MODE
   Fichier créé pour l'Étape 1 du plan Dark Mode
   ======================================== */
/* 1) Palette stable (ne change pas selon le thème) */
:root {
    --white: #fff;
    --black: #000;
    --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;
}

/* 2) Tokens dépendants du thème */
[data-bs-theme="light"], .theme-light {
    --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;
    
    --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);
    
    --surface-0: #FFFFFF;
    --surface-1: #F8F9FA;
    --surface-2: var(--neutral-100);
    
    --border-color: var(--neutral-200);
    --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: #ffffff;
    --background-color: #ffffff;
    --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);
    
    /* ========================================
     Surfaces & Cards - LIGHT
     ======================================== */
    --surface-color: #ffffff;
    --card-bg: var(--gray07);
    --card-border: var(--gray07);
    
    /* ========================================
     Borders - LIGHT
     ======================================== */
    --border-color: #dee2e6;
    --border-color-subtle: #e9ecef;
    --border-color-strong: #ced4da;
    
    /* ========================================
     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);
    --input-border: var(--blue10);
    --input-text: var(--gray01);
    --input-placeholder: var(--gray04);
    --input-focus-border: var(--blue04);
    --input-focus-shadow: rgba(13, 110, 253, 0.25);
    
    /* ========================================
     Boutons - LIGHT
     ======================================== */
    --btn-primary-bg: var(--blue04);
    --btn-primary-color: var(--white);
    --btn-secondary-bg: var(--gray06);
    --btn-secondary-color: var(--text-primary);
    
    /* ========================================
     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: #ffffff;
    --modal-border: var(--border-color);
    --modal-header-bg: var(--gray08);
    --modal-backdrop: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="dark"], .theme-dark {
    --text-primary: #DEE2E6;
    --text-secondary: #ADB5BD;
    
    --shadow: rgba(0, 0, 0, 0.5);
    --shadow-hover: rgba(0, 0, 0, 0.7);
    --shadow-sm: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.6);
    
    --surface-0: #0d1117;
    --surface-1: #161b22;
    --surface-2: #1f2630;
    
    --border-color: #2b3440;
    
    --primary-color: var(--blue10);
    --primary-color-alt: var(--blue08);
    --accent-color: var(--orange-highlight);
    
    --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(--blue14);
    --accent-color: var(--orange-highlight);
    --website-title-color: var(--blue15);
    --info-title-color: var(--accent-color);
    --card-title-color: var(--primary-color);
    
    /* ========================================
      Inverted for dark - DARK
      ======================================== */
    --white-color: var(--black);
    --black-color: var(--white);
    --light-color: var(--gray01);
    --dark-color: var(--gray07);
    
    /* ========================================
      Backgrounds - DARK
      ======================================== */
    --background-body: #0d1117;
    --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(--gray01);
    
    /* ========================================
      Surfaces & Cards - DARK
      ======================================== */
    --surface-color: #1c2128;
    --card-bg: #21262d;
    --card-border: var(--gray03);
    
    /* ========================================
      Borders - DARK
      ======================================== */
    --border-color: #30363d;
    --border-color-subtle: #21262d;
    --border-color-strong: #495057;
    
    /* ========================================
      Composants spécifiques - DARK
      ======================================== */
    --sidebar-bg: var(--background-color);
    --sidebar-border: var(--border-color);
    --topbar-bg: var(--gray02);
    --topbar-color: var(--text-primary);
    --navbar-bg: var(--gray02);
    --navbar-color: var(--text-primary);
    
    /* ========================================
      Formulaires - DARK
      ======================================== */
    --input-bg: var(--gray05-dl);
    --input-border: var(--blue-light);
    --input-text: var(--white-color);
    --input-placeholder: #adb5bd;
    --input-focus-border: var(--blue10);
    --input-focus-shadow: rgba(110, 168, 254, 0.25);
    
    /* ========================================
      Boutons - DARK
      ======================================== */
    --btn-primary-bg: var(--blue10);
    --btn-primary-color: var(--white);
    --btn-secondary-bg: var(--gray04);
    --btn-secondary-color: var(--text-primary);
    
    /* ========================================
      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);
    
    /* ========================================
      Modales - DARK
      ======================================== */
    --modal-bg: var(--card-bg);
    --modal-border: var(--border-color);
    --modal-header-bg: var(--gray02);
    --modal-backdrop: rgba(0, 0, 0, 0.75);
}

/* ========================================
   THÈME SOMBRE (Dark Mode)
   ======================================== */

.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;
}


html, body
{
    font-family: var(--bs-font-sans-serif);
}

.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,
.form-select
{
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--input-text) !important;
}

.form-control::placeholder,
.form-select::placeholder
{
    color: var(--input-placeholder);
    opacity: 0.7;
}

.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(--input-text);
}

.form-control:disabled,
.form-select:disabled
{
    background-color: var(--background-color);
    opacity: 0.6;
}

/* ========================================
   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;
                }


/*************************************************
    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: #3AD900 !important;
    --bs-btn-border-color: #3AD900 !important;
    --bs-btn-hover-color: black !important;
    --bs-btn-hover-bg: #258D00 !important;
    --bs-btn-hover-border-color: #258D00 !important;
    --bs-btn-focus-shadow-rgb: 130,  138,  145 !important;
    --bs-btn-active-color: black !important;
    --bs-btn-active-bg: #3AD900 !important;
    --bs-btn-active-border-color: #3AD900 !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-highlight) !important;
    --bs-btn-border-color: var(--orange-highlight) !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: 130,  138,  145 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: var(--orange-highlight) !important;
    --bs-btn-active-border-color: var(--orange-highlight) !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: #6c757d !important;
    --bs-btn-border-color: #6c757d !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #6c757d !important;
    --bs-btn-hover-border-color: #6c757d !important;
    --bs-btn-focus-shadow-rgb: 108, 117, 125 !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: #6c757d !important;
    --bs-btn-disabled-bg: transparent !important;
    --bs-btn-disabled-border-color: #696969 !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: #0dcaf0 !important;
    --bs-btn-border-color: #0dcaf0 !important;
    --bs-btn-hover-color: #000 !important;
    --bs-btn-hover-bg: #0dcaf0 !important;
    --bs-btn-hover-border-color: #0dcaf0 !important;
    --bs-btn-focus-shadow-rgb: 13, 202, 240 !important;
    --bs-btn-active-color: #000 !important;
    --bs-btn-active-bg: #0dcaf0 !important;
    --bs-btn-active-border-color: #0dcaf0 !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #0dcaf0 !important;
    --bs-btn-disabled-bg: transparent !important;
    --bs-btn-disabled-border-color: #0dcaf0 !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: #E97600 !important;
    --bs-btn-border-color: #E97600 !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #E97600 !important;
    --bs-btn-hover-border-color: #E97600 !important;
    --bs-btn-focus-shadow-rgb: 108,  117,  125 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #E97600 !important;
    --bs-btn-active-border-color: #E97600 !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);
}

/* 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
{
    margin-bottom: 2rem;
    min-height: 250px;
    overflow: hidden;
    position: relative;
}

.processus-hero-content,
.procedure-hero-content
{
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 250px;
    padding: 3rem 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: 200px;
    justify-content: center;
    overflow: hidden;
    width: 200px;
}

.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
{
    background-color: transparent;
    border-bottom: 2px solid #dee2e6;
    margin: 0;
    padding: 4rem;
}

.processus-nav-tabs .nav-link,
.procedure-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
{
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.processus-nav-tabs .nav-link.active,
.procedure-nav-tabs .nav-link.active
{
    background-color: transparent;
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.processus-nav-tabs .nav-link i,
.procedure-nav-tabs .nav-link i
{
    margin-right: 0.5rem;
}

/* Badge dans les onglets */

.processus-nav-tabs .badge,
.procedure-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%;
}

/* ================================================================ */

/* STYLES POUR LES MÉTADONNÉES - CARTOUCHE D'IDENTIFICATION         */

/* ================================================================ */

.processus-metadata,
.procedure-metadata
{
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    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 */

.badge.bg-primary
{
    background-color: var(--primary-color) !important;
    color: var(--white-color) !important;
}

.badge.bg-accent
{
    background-color: var(--accent-color) !important;
    color: var(--white-color) !important;
}

.badge.bg-secondary
{
    background-color: var(--secondary-color) !important;
    color: var(--white-color) !important;
}

.badge.bg-danger
{
    background-color: var(--danger-color) !important;
    color: var(--white-color) !important;
}

.badge.bg-success
{
    background-color: var(--green-medium) !important;
    color: var(--white-color) !important;
}

.badge.bg-info
{
    background-color: var(--blue04) !important;
    color: var(--white-color) !important;
}

.badge.bg-warning
{
    background-color: var(--orange-light) !important;
    color: var(--white-color) !important;
}

.badge.bg-orange
{
    background-color: var(--orange) !important;
    color: var(--white-color) !important;
}

.badge.bg-light
{
    background-color: var(--gray-07) !important;
    color: var(--white-color) !important;
}

/* ============================================= */

/* BADGES DE PLANS - COULEURS PERSONNALISÉES    */

/* ============================================= */

.badge-plan-gratuit
{
    background-color: #3B1678 !important;
    color: var(--white-color) !important;
    font-weight: 600;
}

.badge-plan-standard
{
    background-color: #541FAB !important;
    color: var(--white-color) !important;
    font-weight: 600;
}

.badge-plan-premium
{
    background-color: #6C27DE !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;
}

/* 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
{
    border-bottom: 2px solid var(--border-color);
    color: var(--blue04);
    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, #f5f7fa 0%, #c3cfe2 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 - 3.5rem);
    overflow: hidden;
    position: fixed;
    right: -390px;
    top: 3.5rem;
    transition: right 0.5s ease-in-out;
    width: 450px;
    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);
}

.page-content-with-sidebar
{
    margin-right: 130px;
}

/* Barre d'icônes compacte : posée absolument à gauche, toujours 60px */

.sidebar-compact-strip
{
    bottom: 0;
    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: 0;
    display: flex;
    flex-direction: column;
    left: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    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;
}

/* Compression du contenu principal quand le sidebar est épinglé */

body.sidebar-pinned .page
{
    margin-right: 350px;
    transition: margin-right 0.3s ease-in-out;
}

/* 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: 768px)
{
    .user-profile-sidebar
    {
        right: -100%;
        width: 100%;
    }

    .user-profile-sidebar.open
    {
        right: 0;
    }

    /* Masquer la barre compacte sur mobile (pas de barre visible hors-écran) */

    .sidebar-compact-strip
    {
        display: none;
    }

    .sidebar-toggle-btn .user-name
    {
        display: none;
    }

    body.sidebar-pinned .page
    {
        margin-right: 0;
    }
}

/* 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: calc(100vw - 70px) !important;
    width: 100%;
}

/* 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-color);
    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;
    overflow: 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;
}

.feature-label {
    background: var(--gray07);
    border-right: 1px solid var(--gray07);
    color: var(--color-black);
    font-weight: 600;
    width: 20%;
}

.feature-name {
    color: var(--color-black);
    display: block;
    font-size: 0.95rem;
}

.cell-content {
    align-items: center;
    color: var(--gray02);
    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);
}

.feature-row.odd {
    background: var(--gray07);
}

    .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;
    }
}

/* ================================================================
   É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;
        padding: 0 !important;
    }
}