/*
 * CSS Principal
 * Version modernisée
 * 
 * @description Styles pour toutes les pages de l'application Prestataires
 * @version 2.0
 * @author 
 * @date 2025
 * 
 * Organisation du fichier :
 * - Import des fichiers de configuration
 * - Remise à zéro des styles navigateur
 * - En-tête et navigation principale
 * - Composants et formulaires
 * - Adaptations pour mobiles et tablettes
 */

/* Import des fichiers de configuration des couleurs et messages */
@import url(messages.css);
@import 'vars.css';
/* jma */
@import 'fap83.css';
@import url('font-awesome.min.css');

/* Remise à zéro pour tous les navigateurs */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font: 100% var(--stack);
    color: var(--color-primary-01);
    background-color: #f8f8f8;
    line-height: 1.5;
    width: 100%;
    min-height: 100vh;
}

/* En-tête principal qui reste visible en haut de page */
/* div#cadre_header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 70px;
    background-color: var(--color-primary-02);
    border-bottom: 1px solid var(--color-shades-03);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
} */

div#cadre_header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100%;
    height: 70px !important; /* On fige la hauteur pour éviter les décalages */
    background-color: var(--color-primary-02);
    border-bottom: 1px solid var(--color-shades-03);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
}

#contenu_header {
    width: 100%;
    height: 100%;
    padding: 0 30px;
    display: flex;
    align-items: center;
}

/* Zone du logo départemental */
.logo-FAC,
.logo-HEB_MDPH,
.logo-GPE,
[class^="logo-"] {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    background: url(../image/logoCG83.jpg) no-repeat left center;
    background-size: contain;
    padding-left: 240px;
}

/* Titre de l'application */
.titre {
    font-family: var(--stack-l);
    font-size: 18px;
    color: var(--color-primary-03);
    margin: 0;
    line-height: 1.2;
    flex-grow: 1;
}

.banniere_milieu {
    flex-grow: 1;
    text-align: center;
    font-family: var(--stack-l);
    font-size: 18px;
    color: var(--color-primary-03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banniere_fin {
    width: 50px;
    flex-shrink: 0;
}

[class^="logo-"]:has(.banniere_deb) {
    display: flex;
    align-items: center;
    background-image: none;
    padding-left: 0;
    gap: 20px;
}

/* Zone utilisateur dans l'en-tête */
#header {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: auto;
    background: none;
}

#header table {
    border: none;
    background: none;
    box-shadow: none;
    margin: 0;
    height: 100%;
    width: auto;
}

#header table tr {
    height: 100%;
    display: flex;
    align-items: center;
}

#header table td {
    border: none;
    background: none;
    padding: 0;
    vertical-align: middle;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Informations de l'utilisateur connecté */
#userNom {
    font-weight: normal !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
}

#userNom tr {
    border : none;
}

#userNom table {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
}

#userNom tr {
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    height: 100% !important;
}

#userNom td {
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    vertical-align: middle !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

/* Nom de l'établissement */
#userNom td:first-child {
    color: #000000 !important;
    font-family: var(--stack) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    padding: 8px 16px !important;
    border-radius: 4px 0 0 4px !important;
    border-right: 1px solid black !important;
    text-align: right !important;
    white-space: nowrap !important;
    min-height: 45px !important;
    justify-content: flex-end !important;
}

/* Boutons d'aide et déconnexion */
#userNom td:last-child {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    margin-left: 0 !important;
    padding: 8px 16px !important;
    border-radius: 0 4px 4px 0 !important;
    min-height: 45px !important;
}

#userNom a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px !important;
    margin: 0 2px !important;
    border-radius: 3px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    width: 28px !important;
    height: 28px !important;
}

#userNom a[href*="logout"] {
    background-color: #009688 !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
}

#userNom a[href*="aide"] {
    background-color:#009688 !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
}

#userNom img {
    border: 0 !important;
    vertical-align: middle !important;
    display: block !important;
    width: 16px !important;
    height: 16px !important;
}

/* Adaptations pour tablettes */
@media (max-width: 768px) {
    #header {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
    
    #userNom {
        font-size: 11px !important;
        gap: 1px !important;
    }
    
    #userNom table {
        gap: 1px !important;
    }
    
    #userNom tr {
        gap: 1px !important;
    }
    
    #userNom td:first-child {
        font-size: 11px !important;
        padding: 6px 12px !important;
        min-height: 40px !important;
        color: #000000 !important;
    }
    
    #userNom td:last-child {
        padding: 6px 12px !important;
        min-height: 40px !important;
    }
    
    #userNom td:last-child::before {
        font-size: 11px !important;
        margin-right: 6px !important;
        color: #000000 !important;
    }
    
    #userNom a {
        width: 24px !important;
        height: 24px !important;
        padding: 3px !important;
    }
    
    #userNom img {
        width: 14px !important;
        height: 14px !important;
        filter: brightness(0) !important;
    }
}

/* Adaptations pour mobiles */
@media (max-width: 480px) {
    #header {
        width: 100%;
        justify-content: center;
    }
    
    #userNom {
        font-size: 10px !important;
    }
    
    #userNom td:first-child {
        font-size: 10px !important;
        padding: 5px 8px !important;
        min-height: 36px !important;
        text-align: center !important;
        justify-content: center !important;
        color: #000000 !important;
    }
    
    #userNom td:last-child {
        padding: 5px 8px !important;
        min-height: 36px !important;
    }
    
    #userNom td:last-child::before {
        content: "• ";
        font-size: 10px !important;
        margin-right: 4px !important;
        color: #000000 !important;
    }
    
    #userNom a {
        width: 22px !important;
        height: 22px !important;
        padding: 2px !important;
        margin: 0 1px !important;
    }
    
    #userNom img {
        width: 12px !important;
        height: 12px !important;
        filter: brightness(0) !important;
    }
}

/* div#menu {
    position: sticky;
    top: 70px;
    z-index: 999;
} */

div#menu { 
    position: sticky !important; 
    top: 70px !important; /* Force le menu à se coller sous le header (70px) */
    z-index: 999 !important; 
}

/* Zone principale de contenu */
#content {
    background-color: var(--color-primary-02);
    margin: 0;
    min-height: calc(100vh - 200px);
    width: 100%;
}

#contenu_content {
    width: 100%;
    padding: 30px;
}

main {
    display: grid;
    gap: 1.25rem;
    padding: 30px;
    width: 100%;
}

.main-content {
    display: grid;
    gap: 1.25rem;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-left: 10px solid var(--color-shades-01);
    border-bottom: 1px solid var(--color-shades-01);
    padding: 0 0 0.35rem 0.5rem;
}

.main-title {
    font-family: var(--stack-l);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

/* Titres des pages */
#contenu_content h1 {
    font-family: var(--stack-l);
    font-size: 24px;
    font-weight: 300;
    color: var(--color-primary-01);
    margin: 0 0 30px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-primary-03);
    width: 100%;
}
/* jma */
#contenu_content h1 {
    margin: 0;
}

h2 {
    font-family: var(--stack-b);
    font-size: 18px;
    font-weight: 500;
    color: var(--color-primary-01);
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-shades-03);
    width: 100%;
}

/* Styles de base pour tous les champs de formulaire */
input,
select,
textarea {
    padding: 12px 15px;
    font-size: 14px;
    font-family: var(--stack);
    color: var(--color-primary-01);
    background-color: var(--color-primary-02);
    border: 1px solid var(--color-shades-03);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

/* Effet visuel quand on clique dans un champ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary-05);
    box-shadow: 0 0 0 2px rgba(0, 150, 136, 0.2);
}

select.infoChamp {
    background-color: #d0e4ef !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-family: var(--stack) !important;
    color: var(--color-primary-01) !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 1px 3px rgba(0, 114, 174, 0.1) !important;
}
/* jma */
select.infoChamp {
    background-color: var(--bg-color-gray) !important;
}

select.infoChamp:focus {
    outline: none !important;
    border-color: var(--color-primary-05) !important;
    box-shadow: 
        0 0 0 3px rgba(0, 150, 136, 0.2) !important;
    background-color: #d0e4ef !important;
}
/* jma */
select.infoChamp:focus {
    background-color: var(--bg-color-gray-02) !important;
}

select.infoChamp::placeholder {
    color: rgba(51, 51, 51, 0.6) !important;
    font-style: italic !important;
}

/* Listes déroulantes avec flèche personnalisée */
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

select[name='typeAide'] {
 width: 50%;
}

.search-section {
    display: grid;
    gap: 0.5rem;
}

/* Barre de recherche principale */
.searchbar-wrapper {
    background-color: var(--color-primary-02);
    padding: 30px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    border-top: 5px solid var(--color-shades-01);
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    border-radius: 8px;
}

.searchbar-wrapper form {
    display: grid;
    gap: 20px;
    width: 100%;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #d0e4ef;
    border: 1px solid rgba(0, 114, 174, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    gap: 1rem;
    width: 100%;
    box-shadow: inset 0 1px 3px rgba(0, 114, 174, 0.1);
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.75rem;
    background-color: transparent;
    border: none;
    font-size: 14px;
    color: var(--color-primary-01);
}

.search-box input:focus {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.search-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--color-shades-01);
}

.search-label::before {
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23505050'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3e%3c/svg%3e");
    width: 16px;
    height: 16px;
    display: inline-block;
}

/* Organisation des champs en grille */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--stack-b);
    font-weight: 500;
    font-size: 13px;
    color: var(--color-primary-01);
    margin-bottom: 5px;
}

/* Page de connexion et changement de mot de passe */
 #loginTable {
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    padding: 40px 30px;
    background-color: var(--color-primary-02);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: slideInUp 0.4s ease-out;
}
/* jma */
 #loginTable {
    margin: 0;
}

#loginTable center {
    display: block;
    text-align: left;
    width: 100%;
}

#loginTable form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.loginTable {
    width: 100% !important;
    margin-left: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    background: none;
    box-shadow: none;
}

.loginTable td {
    padding: 20px 0;
    vertical-align: top;
    border: none;
    background: none;
}
/* jma */
.loginTable td {
    padding: 5px 0 0;
}
/* jma */
.loginTable td br {
    display: none;
}

.loginTable tr:first-child td {
    padding-top: 0;
}

.loginTable tr:last-child td {
    padding-bottom: 0;
}

.loginTable td[colspan="2"] {
    padding: 20px 0;
}

/* Encadré d'information sur la sécurité */
#polSec {
    width: 100%;
    margin-bottom: 30px;
    padding: 18px 25px;
    background: #f0f0f0;
    border-radius: 8px;
    border-left: 5px solid #009688;
    border-collapse: separate;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* jma */
#polSec {
    border-left: 5px solid var(--btn-primary-color-02);
}

#polSec .loginLabel {
    font-family: var(--stack-b);
    font-weight: 600;
    color: #009688;
    margin-bottom: 8px;
    font-size: 14px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* jma */
#polSec .loginLabel {
    color: var(--btn-primary-color-02);
}

#polSec td {
    padding: 0;
    font-size: 13px;
    color: var(--color-primary-01);
    line-height: 1.5;
    font-weight: 400;
}

/* Étiquettes des champs de formulaire */
.loginLabel {
    font-family: var(--stack-b);
    font-weight: 600;
    font-size: 14px;
    color: #505050;
    display: block;
    /*margin-bottom: 8px;*/
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.loginLabel[style*="width"] {
    width: auto !important;
}

/* Étoile rouge pour les champs obligatoires */
.loginLabel[for="oldPassword"]::after,
.loginLabel[for="password"]::after,
.loginLabel[for="password2"]::after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
}

.loginForm {
    width: 100%;
    position: relative;
    display: block;
}

/* Affichage du nom d'utilisateur en lecture seule */
.loginForm:not(.password) {
    font-family: var(--stack);
    font-weight: 500;
    color: #000000;
    font-size: 15px;
    background: #f0f0f0;
    padding: 15px 20px;
    border-radius: 6px;
    display: block;
    width: 100%;
    max-width: 400px;
    line-height: 1.4;
    position: relative;
    transition: all 0.3s ease;
    margin-bottom:20px;
}
/* jma */
.loginForm:not(.password) {
    max-width: 440px;
}

/* Champs de saisie des mots de passe */
.loginTable input[type="password"],
.loginTable input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 15px 35px 15px 20px;
    font-size: 14px;
    font-family: var(--stack);
    color: #000000;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
/* jma */
.loginTable input[type="password"],
.loginTable input[type="text"] {
    max-width: 440px;
}

.loginTable input[type="password"]:focus,
.loginTable input[type="text"]:focus {
    outline: none;
    border-color: #009688;
    background: var(--color-primary-02);
    box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.1);
}
/* jma */
.loginTable input[type="password"]:focus,
.loginTable input[type="text"]:focus {
    border-color: var(--btn-primary-color);
    background: var(--color-primary-02);
    box-shadow: 0 0 0 3px rgba(214, 49, 137, 0.1);
}
/* jma */
.loginTable input {
    background-color: var(--bg-color-gray);
}

.loginTable input.error {
    border-color: #e74c3c;
    background: #ffebee;
}

.loginTable input.success {
    border-color: #009688;
    background: rgba(0, 150, 136, 0.05);
}

.loginForm.password {
    position: relative;
    display: block;
    width: 100%;
}

.password {
    position: relative;
    margin-bottom: 20px;
}

/* Messages d'erreur */
#erreur {
    display: block;
    padding: 12px 15px;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    font-size: 13px;
    font-family: var(--stack);
    margin-top: 15px;
    border-left: 4px solid #e74c3c;
    line-height: 1.4;
}

#erreur:empty {
    display: none;
}

#loginTable table:last-child {
    width: 100%;
    margin-top: 30px;
    border-collapse: separate;
    background: none;
    box-shadow: none;
}

/* Adaptations pour tablettes */
@media (max-width: 768px) {
    #loginTable {
        max-width: 95%;
        padding: 30px 20px;
        margin: 30px auto;
    }

    .loginTable td {
        display: block;
        width: 100%;
        padding: 15px 0;
    }

    #polSec {
        padding: 15px 20px;
        margin-bottom: 25px;
    }

    #polSec .loginLabel {
        font-size: 13px;
    }

    #polSec td {
        font-size: 12px;
    }

    .loginLabel {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .loginForm:not(.password) {
        max-width: 100%;
        font-size: 14px;
        padding: 12px 15px;
        text-align: center;
    }

    .loginTable input[type="password"],
    .loginTable input[type="text"] {
        max-width: 100%;
        padding: 12px 30px 12px 15px;
    }
}

/* Adaptations pour mobiles */
@media (max-width: 480px) {
    #loginTable {
        max-width: 100%;
        padding: 25px 15px;
        margin: 20px auto;
    }

    .loginTable td {
        padding: 12px 0;
    }

    #polSec {
        padding: 12px 15px;
        margin-bottom: 20px;
    }

    #polSec .loginLabel {
        font-size: 12px;
        text-align: center;
    }

    #polSec td {
        font-size: 11px;
        text-align: center;
    }

    .loginLabel {
        font-size: 12px;
        text-align: center;
        margin-bottom: 6px;
    }

    .loginForm:not(.password) {
        font-size: 13px;
        padding: 12px 15px;
        text-align: center;
    }

    .loginTable input[type="password"],
    .loginTable input[type="text"] {
        font-size: 16px;
        padding: 12px 30px 12px 15px;
    }
}

/* Animation d'apparition fluide */
@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes focusGlow {
    0% { 
        box-shadow: 0 0 0 0 rgba(0, 150, 136, 0.4); 
    }
    100% { 
        box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.1); 
    }
}

/* Tableau des informations de l'établissement */
#infoPrestataire {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 20px auto !important;
    border: none !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: var(--color-primary-01) !important;
    font-weight: normal !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

#infoPrestataire > tbody > tr {
    display: flex !important;
    width: 100% !important;
    min-height: 120px !important;
}

#infoPrestataire > tbody > tr > td {
    width: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    vertical-align: top !important;
    display: flex !important;
    flex-direction: column !important;
}

#infoPrestataire > tbody > tr > td:first-child {
    background: #f0f0f0 !important;
    color: black !important;
    position: relative !important;
}

#infoPrestataire > tbody > tr > td:last-child {
    background: var(--color-primary-02) !important;
    color: var(--color-primary-01) !important;
    border-left: 3px solid #009688 !important;
}

#infoPrestataire table {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: none !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 0 !important;
    padding: 25px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

#infoPrestataire table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    height: 100% !important;
    justify-content: center !important;
}

#infoPrestataire table tr {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
}

#infoPrestataire table td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    line-height: 1.5 !important;
}

#infoPrestataire td:first-child table tr:first-child td {
    font-family: var(--stack-b) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: black !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

#infoPrestataire td:first-child table tr:last-child td {
    font-family: var(--stack) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    opacity: 0.95 !important;
}

#infoPrestataire td:last-child table tr td:first-child {
    font-family: var(--stack-b) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #009688 !important;
    margin-bottom: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

#infoPrestataire td:last-child table tr td:last-child {
    font-family: var(--stack) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--color-primary-01) !important;
    background: rgba(0, 150, 136, 0.05) !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    margin-top: 4px !important;
}

#infoPrestataire td:first-child::before {
    content: "";
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23009688' stroke-width='2'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'%3E%3C/path%3E%3Cpolyline points='9,22 9,12 15,12 15,22'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

#infoPrestataire .adr br {
    line-height: 1.6 !important;
}

/* Adaptations pour tablettes */
@media (max-width: 768px) {
    #infoPrestataire {
        width: 95% !important;
        margin: 15px auto !important;
        border-radius: 8px !important;
    }

    #infoPrestataire > tbody > tr {
        flex-direction: column !important;
        min-height: auto !important;
    }

    #infoPrestataire > tbody > tr > td {
        width: 100% !important;
    }

    #infoPrestataire > tbody > tr > td:last-child {
        border-left: none !important;
        border-top: 3px solid #009688 !important;
    }

    #infoPrestataire table {
        padding: 20px !important;
    }

    #infoPrestataire td:first-child table tr:first-child td {
        font-size: 15px !important;
        text-align: center !important;
    }

    #infoPrestataire td:first-child table tr:last-child td {
        font-size: 12px !important;
        text-align: center !important;
    }

    #infoPrestataire td:first-child::before {
        top: 15px;
        right: 15px;
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    #infoPrestataire {
        width: 100% !important;
        margin: 10px auto !important;
        border-radius: 6px !important;
    }

    #infoPrestataire table {
        padding: 15px !important;
    }

    #infoPrestataire table tbody {
        gap: 10px !important;
    }

    #infoPrestataire td:first-child table tr:first-child td {
        font-size: 14px !important;
    }

    #infoPrestataire td:first-child table tr:last-child td {
        font-size: 11px !important;
    }

    #infoPrestataire td:last-child table tr td:first-child {
        font-size: 12px !important;
    }

    #infoPrestataire td:last-child table tr td:last-child {
        font-size: 13px !important;
        padding: 6px 8px !important;
    }

    #infoPrestataire td:first-child::before {
        top: 12px;
        right: 12px;
        width: 18px;
        height: 18px;
    }
}

#loginTable table:last-child {
    width: 100%;
    /* margin-top: 45px; */
    border-collapse: separate;
    background: none;
    box-shadow: none;
}
/* jma */
#loginTable table:last-child {
    margin-top: 20px;
    padding-top: 10px;
}

#loginTable table:last-child tr {
    display: flex;
    justify-content: center;
    /*gap: 20px;*/
    flex-wrap: wrap;
}

#loginTable table:last-child td {
    padding: 0;
    display: flex;
    border: none;
    background: none;
}

/* Boutons de validation, annulation et retour */
#loginTable .bouton {
    min-width: 140px;
    height: 45px;
    padding: 0 30px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--stack);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}
/* jma */
#loginTable .bouton, .connexionTable .bouton,
#persoTable .bouton, /* page Mon compte > personnel */
form[name="profilForm"] .bouton,  /* page administration > gestion des profils */
form[name="messageUgstForm"] .bouton,  /* page administration > envoi de messages */
form[name="critereMessageForm"] .bouton  /* page administration > archiver des messages */
{
    margin: 0 10px;
    border-radius: var(--radius);
    min-width: 125px;
    height: 45px;
}

/* jma  - page administration > gestion des profils */
form[name="profilForm"] input[onclick*="Deplacer"] /* page administration > gestion des profils */
{
    background: white !important;
    border: 1px solid var(--btn-primary-color-02) !important;
    color: var(--btn-primary-color-02) !important;
}
/* jma  - page administration > gestion des profils */
form[name="profilForm"] input[onclick*="Deplacer"]:hover /* page administration > gestion des profils */
{
    background: var(--btn-primary-color-02) !important;
    color: white !important;
}

/* input.bouton {
    color: var(--color-primary-02) !important;
    background: linear-gradient(135deg, var(--color-primary-05) 0%, var(--color-secondary-05) 100%) !important;
} */

/* 1. État normal : Fond transparent, contour et texte verts */
input.bouton {
    background: transparent !important;
    color: #27ae60 !important;
    border: 2px solid #27ae60 !important;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.1) !important;
    transition: all 0.3s ease !important; /* Pour une animation fluide */
}
/* jma */
/*#loginTable */ 
input[type="submit"].bouton,
input[value="Rechercher"].bouton,
input[name="exporter"].bouton,
#prest_facturesbuttons input[name="valider"].bouton  /* détail facture */
{
    background-color: var(--btn-primary-color-02) !important;
    color: white !important;
    border: 1px solid var(--btn-primary-color-02) !important;
    /* border-radius: 4px; */
}
/* jma */
#prest_facturesbuttons input[name="visualiserFacture"].bouton  /* détail facture */
{

    color: var(--btn-primary-color-02) !important;
    border: 1px solid var(--btn-primary-color-02) !important;
    /* border-radius: 4px; */
}
/* jma */
/*#loginTable*/ 
input[value="Retour"].bouton,
input[value="Effacer Filtre"].bouton, input[value="Effacer filtres"].bouton, input[name="effacerFiltre"].bouton, /* parfois le name n'est pas renseigné */
#prest_facturesbuttons input[name="cloturerFacture"].bouton,  /* détail facture */
.ui-dialog-buttonset button
{
    color: var(--btn-secondary-color-blue) !important;
    border: 1px solid var(--btn-secondary-color-blue) !important;
    border-radius: var(--radius);
}
.ui-dialog-buttonset button.ui-button.ui-state-default {
    background: white !important;
    border-radius: var(--radius);
    border: 1px solid var(--btn-secondary-color-blue) !important;
    color: var(--btn-secondary-color-blue) !important;
    font-size: 14px !important;
}
.ui-dialog-buttonset button.ui-button.ui-state-default:last-child {
    background: var(--btn-primary-color-02) !important;
    border-radius: var(--radius);
    color: white !important;
    border: 1px solid var(--btn-primary-color-02) !important;
    font-size: 14px !important;
}
.ui-dialog {
    z-index: 999 !important;
}

/* 2. État au survol : Fond vert, texte blanc, légère élévation */
input.bouton:hover {
    background: #27ae60 !important;
    color: #ffffff !important;
    border-color: #27ae60 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3) !important;
}
/* jma */
/*#loginTable*/ 
input[type="submit"].bouton:hover,
input.bouton:hover {
    background-color: #fff !important;
    color: var(--btn-primary-color-02) !important;
    box-shadow: 0 4px 15px rgba(0, 98, 204, 0.3) !important;
}
/* jma */
/*#loginTable*/ 
input[value="Retour"].bouton:hover,
input[name="effacerFiltre"].bouton:hover {
    background: var(--btn-secondary-color-blue) !important;
    color: var(--btn-primary-color-white) !important;
    border-color: var(--btn-secondary-color-blue) !important;
}


#loginTable input[value="Valider"].bouton {
    color: var(--color-primary-02);
    background: linear-gradient(135deg, var(--color-primary-05) 0%, var(--color-secondary-05) 100%);
}

#loginTable input[value="Valider"].bouton:hover {
    background: linear-gradient(135deg, var(--color-secondary-05) 0%, var(--color-primary-05) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 150, 136, 0.3);
}

#loginTable input[value="Valider"].bouton:focus {
    outline: 3px solid rgba(0, 150, 136, 0.3);
    outline-offset: 2px;
}

#loginTable input[value="Annuler"].bouton {
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
}

#loginTable input[value="Annuler"].bouton:hover {
    background: #e74c3c;
    color: var(--color-primary-02);
    border-color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

#loginTable input[value="Annuler"].bouton:focus {
    outline: 3px solid rgba(231, 76, 60, 0.3);
    outline-offset: 2px;
}

#loginTable input[value="Retour"].bouton {
    color: var(--color-primary-01);
    background-color: var(--color-shades-04);
    border: 1px solid var(--color-shades-03);
}

#loginTable input[value="Retour"].bouton:hover {
    background-color: var(--color-shades-02);
    color: var(--color-primary-02);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#loginTable input[value="Retour"].bouton:focus {
    outline: 3px solid rgba(112, 112, 112, 0.3);
    outline-offset: 2px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes focusGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 150, 136, 0.4);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.2);
    }
}

@media (max-width: 900px) {
    #loginTable {
        margin: 20px auto;
        padding: 40px 30px;
        max-width: 95%;
    }
    
    .loginTable input[type="password"],
    .loginTable input[type="text"] {
        min-width: 300px;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    #loginTable {
        margin: 20px auto;
        padding: 30px 20px;
        max-width: 95%;
    }
    
    .loginTable td {
        display: block;
        width: 100%;
        padding: 8px 0;
    }
    
    .loginLabel {
        min-width: auto;
        margin-bottom: 5px;
        font-size: 14px;
    }
    
    .loginTable input[type="password"],
    .loginTable input[type="text"] {
        min-width: 100%;
        max-width: 100%;
        padding: 12px 30px 12px 12px;
    }
    
    .loginForm.password {
        width: 100%;
    }
    
    #loginTable table:last-child tr {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    #loginTable .bouton {
        width: 100%;
        max-width: 250px;
    }
    
    #loginTable table:first-child {
        padding: 20px 20px 20px 45px;
        margin-bottom: 25px;
    }
    
    #loginTable table:first-child::before {
        left: 15px;
        width: 20px;
        height: 20px;
    }
    
    #loginTable table:first-child .loginLabel {
        font-size: 15px;
    }
    
    .loginForm:not(.password) {
        font-size: 14px;
        padding: 10px 15px 10px 35px;
        min-width: 180px;
        letter-spacing: 0.5px;
    }
    
    .loginForm:not(.password)::before {
        width: 16px;
        height: 16px;
        left: 12px;
    }
}

@media (max-width: 480px) {
    #loginTable {
        padding: 25px 15px;
        margin: 15px auto;
        border-radius: 8px;
    }
    
    .loginLabel {
        font-size: 13px;
    }
    
    .loginTable input[type="password"],
    .loginTable input[type="text"] {
        font-size: 16px;
        padding: 12px 30px 12px 12px;
        min-width: 100%;
    }
    
    #loginTable .bouton {
        min-width: 120px;
        height: 42px;
        font-size: 13px;
    }
    
    #loginTable table:first-child {
        padding: 15px 15px 15px 40px;
        margin-bottom: 20px;
    }
    
    #loginTable table:first-child .loginLabel {
        font-size: 14px;
    }
    
    #loginTable table:first-child td {
        font-size: 13px;
    }
    
    .loginForm:not(.password) {
        font-size: 13px;
        padding: 8px 12px 8px 30px;
        min-width: 150px;
        letter-spacing: 0.3px;
        text-transform: none;
    }
    
    .loginForm:not(.password)::before {
        width: 14px;
        height: 14px;
        left: 10px;
    }
}

#loginTable[style*="width"] {
    /* jma width: 100% !important; */
    max-width: 800px !important;
}

.loginTable[style*="margin-left"] {
    margin-left: 0 !important;
}

#loginTable table {
    border-collapse: separate;
    border-spacing: 0;
    background: none;
    box-shadow: none;
    margin: 0;
}

#loginTable *:focus-visible {
    outline: 2px solid var(--color-primary-05);
    outline-offset: 2px;
}
/* jma */
#loginTable *:focus-visible {
    outline: none;
}

#loginTable table:first-child.modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8fcff 100%);
    border: 2px solid rgba(0, 114, 174, 0.15);
    border-radius: 16px;
    box-shadow: 
        0 8px 25px rgba(0, 114, 174, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#loginTable table:first-child.modern::before {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230072AE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Ccircle cx='12' cy='16' r='1'%3E%3C/circle%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
}

.loginForm:not(.password).subtle {
    background: var(--color-shades-05);
    border: 1px solid var(--color-shades-03);
    color: var(--color-shades-01);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 15px 8px 35px;
    letter-spacing: 0.3px;
    text-transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.loginForm:not(.password).subtle::before {
    width: 16px;
    height: 16px;
    left: 12px;
    opacity: 0.7;
}

/* Configuration des variables pour les boutons */
:root {
    --btn-form-width: 140px;
    --btn-form-height: 45px;
    --btn-form-gap: 15px;
    --btn-form-padding: 20px 0;
    --btn-primary-color: var(--color-primary-05);
    --btn-primary-hover: var(--color-secondary-05);
    --btn-danger-color: #e74c3c;
    --btn-danger-hover: #c0392b;
    /* jma */
    --datatable-row-even2: #f6f6f6;
    --btn-primary-color-02: #009688;
    --btn-primary-color-black: #000;
    --btn-primary-color-white: #fff;
    --btn-secondary-color-blue: #0073AE;
    --bg-color-gray: #F6F6F6;
    --bg-color-gray-02: #DDDDDD;
    --bg-color-dark: #505050;

}

/* Conteneurs de boutons alignés au centre */
#prest_facturesbuttons,
.prest_facturesbuttons,
.button-group,
.buttons-container,
div[align="center"]:has(input.bouton):not([class*="fg-"]):not([class*="dataTables_"]) {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px auto;
    padding: var(--btn-form-padding);
}
/* jma */
#prest_facturesbuttons {
    margin: 0 auto;
}

#prest_facturesbuttons table,
.prest_facturesbuttons table,
.button-group table,
.buttons-container table {
    border: none;
    background: none;
    box-shadow: none;
    border-collapse: separate;
    border-spacing: var(--btn-form-gap) 0;
    margin: 0 auto;
    width: auto;
}
/* jma */
#prest_facturesbuttons table,
.prest_facturesbuttons table {
    padding : 2px 0;
}

#prest_facturesbuttons td,
.prest_facturesbuttons td,
.button-group td,
.buttons-container td {
    border: none;
    padding: 0;
    background: none;
    vertical-align: middle;
}

#prest_facturesbuttons .bouton,
.prest_facturesbuttons .bouton,
.button-group .bouton,
.buttons-container .bouton,
div[align="center"]:not([class*="fg-"]):not([class*="dataTables_"]) .bouton {
    min-width: var(--btn-form-width);
    height: var(--btn-form-height);
    padding: 0 20px;
    margin: 0;
    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    font-family: var(--stack);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    
    color: var(--color-primary-02);
    background: linear-gradient(135deg, var(--btn-primary-color) 0%, var(--btn-primary-hover) 100%);
    border: none;
    
    cursor: pointer;
    transition: all 0.3s ease;
}


#prest_facturesbuttons .bouton:hover,
.prest_facturesbuttons .bouton:hover,
.button-group .bouton:hover,
.buttons-container .bouton:hover,
div[align="center"]:not([class*="fg-"]):not([class*="dataTables_"]) .bouton:hover {
    background: linear-gradient(135deg, var(--btn-primary-hover) 0%, var(--btn-primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 150, 136, 0.3);
}

input[value="Annuler"].bouton:not(.fg-button) {
    background: transparent !important;
    color: var(--btn-danger-color) !important;
    border: 2px solid var(--btn-danger-color) !important;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1) !important;
}
/* jma */
/*#loginTable*/ 
input[value="Annuler"].bouton, 
input[value="Annuler"].bouton:not(.fg-button),
#prest_facturesbuttons input[name="quitter"].bouton  /* détail facture */ {
   border: 1px solid var(--btn-primary-color-black) !important;
   color: var(--btn-primary-color-black) !important;
   border-radius: var(--radius);
}

input[value="Annuler"].bouton:not(.fg-button):hover {
    background: var(--btn-danger-color) !important;
    color: var(--color-primary-02) !important;
    border-color: var(--btn-danger-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3) !important;
}
/* jma */
/*#loginTable*/ 
input[value="Annuler"].bouton:hover,
input[value="Annuler"].bouton:not(.fg-button):hover {
    background: var(--bg-color-dark) !important;
    color: var(--btn-primary-color-white) !important;
    border-color: var(--bg-color-dark) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}


#prest_facturesbuttons .bouton:focus,
.prest_facturesbuttons .bouton:focus,
.button-group .bouton:focus,
.buttons-container .bouton:focus {
    outline: 3px solid rgba(0, 150, 136, 0.3);
    outline-offset: 2px;
}

input[value="Annuler"].bouton:focus {
    outline: 3px solid rgba(231, 76, 60, 0.3);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    :root {
        --btn-form-width: 120px;
        --btn-form-height: 40px;
        --btn-form-gap: 10px;
        --btn-form-padding: 15px 10px;
    }
    
    #prest_facturesbuttons .bouton,
    .prest_facturesbuttons .bouton,
    .button-group .bouton,
    .buttons-container .bouton {
        font-size: 13px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    #prest_facturesbuttons table,
    .prest_facturesbuttons table,
    .button-group table,
    .buttons-container table {
        display: block;
        width: 100%;
        border-spacing: 0;
    }
    
    #prest_facturesbuttons tr,
    .prest_facturesbuttons tr,
    .button-group tr,
    .buttons-container tr {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    #prest_facturesbuttons td,
    .prest_facturesbuttons td,
    .button-group td,
    .buttons-container td {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    #prest_facturesbuttons .bouton,
    .prest_facturesbuttons .bouton,
    .button-group .bouton,
    .buttons-container .bouton {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        min-width: auto;
    }
}

/* Tableaux de données avec design moderne */
table {
    border-collapse: collapse;
    background-color: var(--color-primary-02);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 3px 26px rgba(0, 0, 0, 0.10);
}
/* jma */
table + table[align="center"] {
    box-shadow: 0 25px 26px rgba(0, 0, 0, 0.10) !important;
}

#tableRecherche {
    width: 100% !important;
}

th,
th.ligneDossier,
.headerDossier {
    background-color: var(--color-shades-01);
    color: var(--color-primary-02);
    padding: 15px 12px;
    font-family: var(--stack-b);
    font-weight: 500;
    font-size: 13px;
    text-align: left;
    border-bottom: 1px solid var(--color-shades-03);
}

td,
td.ligneDossier {
    color: var(--color-primary-01);
    font-family: var(--stack);
    font-size: 13px;
    vertical-align: top;
    transition: all 0.3s ease;
    padding: 18px;
}
/* jma - page Mon compte > Personnel */
#persoTable table:not(.persoTable) td { 
    padding: 18px 0;
}
/* jma - page Mon compte > Personnel */
#persoTable table.persoTable td:not([class^="perso"]) {
    padding: 10px 0;
}

tr:last-child td {
    border-bottom: none;
}

td a {
    color: var(--color-primary-03);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

td a:hover {
    text-decoration: underline;
}

/* Grilles de cartes pour l'affichage des résultats */
.cards-wrapper {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    width: 100%;
}

.card-result {
    display: grid;
    gap: 1.25rem;
    background-color: var(--color-primary-02);
    padding: 20px;
    box-shadow: 0 3px 26px rgba(0, 0, 0, 0.10);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.card-result:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.chips {
    display: flex;
    gap: 0.25rem;
    border-radius: 1.25rem;
    padding: 0.3rem 1rem;
    font-family: var(--stack-b);
    font-size: 0.875rem;
    width: fit-content;
    cursor: pointer;
}

.chips.integre {
    color: var(--color-primary-02);
    text-transform: uppercase;
    background-color: var(--color-primary-05);
}

/* Navigation entre les pages */
.pagination {
    background-color: var(--color-primary-03);
    padding: 15px 30px;
    border-radius: var(--radius);
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: calc(100% - 60px);
}

.pagination a,
.pagination span {
    color: var(--color-primary-02);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    font-size: 14px;
    font-family: var(--stack);
}

.pagination a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pagination .current {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

/* Pied de page */
#footer,
footer {
    background-color: var(--color-shades-01);
    color: var(--color-primary-02);
    padding: 1.25rem 30px;
    text-align: center;
    width: 100%;
}
/* jma */
#footer, footer {
    padding: .5rem 30px;
}

#contenu_footer {
    width: 100%;
    text-align: center;
    font-size: 12px;
    font-family: var(--stack);
}

footer a,
#contenu_footer a {
    color: var(--color-primary-02);
    text-decoration: none;
    text-transform: uppercase;
    font-family: var(--stack-b);
    font-size: 0.875rem;
    margin: 0 15px;
    transition: all 0.3s ease;
}
/* jma */
footer a,
#contenu_footer a {
    text-transform: none;
}

footer a:hover,
#contenu_footer a:hover {
    text-decoration: underline;
}

footer ul {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

footer li {
    list-style-type: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

footer li::before {
    content: "";
    width: 4px;
    height: 4px;
    background-color: var(--color-primary-02);
    border-radius: 50%;
}

footer li:first-child::before {
    content: none;
}

/* Adaptations pour différentes tailles d'écran */
@media (max-width: 768px) {
    #contenu_header {
        padding: 0 20px;
    }

    [class^="logo-"] {
        background-size: contain;
        padding-left: 130px;
    }

    .titre {
        font-size: 16px;
    }

    .banniere_deb {
        width: 120px;
        height: 42px;
    }

    .banniere_milieu {
        font-size: 16px;
    }

    #contenu_content,
    main {
        padding: 20px;
    }

    .cards-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .loginTable input[type="password"],
    .loginTable input[type="text"] {
        width: 100%;
        min-width: 250px;
    }
}

@media (max-width: 576px) {
    div#cadre_header {
        height: auto;
        min-height: 70px;
    }

    #contenu_header {
        padding: 15px;
        height: auto;
        min-height: 70px;
    }

    [class^="logo-"] {
        flex-direction: column;
        gap: 10px;
        padding-left: 0;
        background-image: none;
        text-align: center;
    }

    .titre {
        font-size: 14px;
        text-align: center;
    }

    .banniere_deb {
        width: 100px;
        height: 36px;
        align-self: center;
    }

    [class^="logo-"]:has(.banniere_deb) {
        flex-direction: column;
        text-align: center;
    }

    .banniere_milieu {
        font-size: 14px;
    }

    #contenu_content,
    main {
        padding: 15px;
    }

    .searchbar-wrapper {
        padding: 20px;
    }
}

@media (min-width: 834px) {
    main,
    #contenu_content {
        padding: 50px;
    }

    .cards-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1440px) {
    .cards-wrapper {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.no-stretch {
    background-size: contain;
    object-fit: contain;
}

#loginLabel {
    float: none;
    font-size: 12px;
}

/* Page de modification du profil utilisateur */
 #persoTable {
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    padding: 0;
    background: none;
    position: relative;
    animation: slideInUp 0.4s ease-out;
}

#persoTable fieldset {
    width: 100%;
    padding: 40px 30px;
    background: var(--color-primary-02);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 0;
}
/* jma */
#persoTable fieldset {
    border: none;
}

#persoTable legend {
    display: block;
    font-family: var(--stack-b);
    font-weight: 600;
    color: #505050;
    font-size: 20px;
    text-align: left;
    width: 100%;
    margin-bottom: 25px;
    padding: 18px 25px;
    background: #f0f0f0;
    border-top: 5px solid #505050;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
}

.persoTable {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    background: none;
    box-shadow: none;
    margin-bottom: 0;
}

.persoTable td {
    padding: 20px 0;
    vertical-align: top;
    border: none;
    background: none;
}
/* jma */
.persoTable td {
    padding: 0;
}

#persoTable table:last-child {
    box-shadow: none !important;
}

.persoTable tr:last-child td {
    padding-bottom: 0;
}

.persoLabel {
    font-family: var(--stack-b);
    font-weight: 600;
    font-size: 14px;
    color: #505050;
    display: block;
    margin-bottom: 8px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.persoLabel[for="email"]::after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
}

.persoForm:not(:has(input[type="text"])) {
    font-family: var(--stack);
    font-weight: 500;
    color: #000000;
    font-size: 15px;
    background: #f0f0f0;
    padding: 15px 20px;
    border-radius: 6px;
    display: block;
    width: 100%;
    max-width: 400px;
    line-height: 1.4;
    position: relative;
    transition: all 0.3s ease;
}
/* jma */
.persoForm:not(:has(input[type="text"])) {
    max-width: 100%;
}

.persoForm:not(:has(input[type="text"])):hover {
    border-color: #009688;
    box-shadow: 0 2px 8px rgba(0, 150, 136, 0.1);
}

.persoTable input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    font-size: 14px;
    font-family: var(--stack);
    color: #000000;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
/* jma */
.persoTable input[type="text"], .persoTable input[type="hidden"] {
    max-width: 500px;
}

.persoTable input[type="text"]:focus {
    outline: none;
    border-color: #009688;
    background: var(--color-primary-02);
    box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.1);
}

.persoTable input.error {
    border-color: #e74c3c;
    background: #ffebee;
}

.persoTable input.success {
    border-color: #009688;
    background: rgba(0, 150, 136, 0.05);
}

.persoForm {
    width: 100%;
    position: relative;
    display: block;
}

.persoTable .help-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

#erreurPerso {
    display: block;
    padding: 12px 15px;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 15px;
    border-left: 4px solid #e74c3c;
    line-height: 1.4;
}

#erreurPerso:empty { 
    display: none; 
}

@media (max-width: 768px) {
    #persoTable {
        max-width: 95%;
        margin: 30px auto;
    }

    #persoTable::before {
        font-size: 18px;
        padding: 15px 20px;
    }

    #persoTable fieldset {
        padding: 30px 20px;
    }

    .persoTable td {
        padding: 15px 0;
    }

    .persoLabel {
        font-size: 13px;
    }

    .persoForm:not(:has(input[type="text"])),
    .persoTable input[type="text"] {
        max-width: 100%;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #persoTable {
        max-width: 100%;
        margin: 20px auto;
    }

    #persoTable::before {
        font-size: 16px;
        padding: 12px 15px;
        text-align: center;
    }

    #persoTable fieldset {
        padding: 25px 15px;
    }

    .persoTable td {
        padding: 12px 0;
    }

    .persoLabel {
        font-size: 12px;
        text-align: center;
        margin-bottom: 6px;
    }

    .persoForm:not(:has(input[type="text"])) {
        font-size: 13px;
        padding: 12px 15px;
        text-align: center;
    }

    .persoTable input[type="text"] {
        font-size: 16px;
        padding: 12px 15px;
    }
}

@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes focusGlow {
    0% { 
        box-shadow: 0 0 0 0 rgba(0, 150, 136, 0.4); 
    }
    100% { 
        box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.1); 
    }
}

#persoTable *:focus-visible {
    outline: 2px solid var(--color-primary-05);
    outline-offset: 2px;
}

/* Correction du chevauchement de l'icône triangle (jQuery UI) */
span.ui-icon.ui-icon-triangle-1-s,
span.ui-icon.ui-icon-triangle-1-e {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 10px !important;
    position: relative !important;
    left: 0 !important;
    top: -2px !important;
}

.ui-accordion-header {
    display: flex !important;
    align-items: center;
} 

/* jma - BEGIN */
/*  page de login - connexion */
.EnteteMenu {
	background-color: white !important;
	color: #d63189 !important;
	text-transform: uppercase;
	font-weight: 600 !important;
}
.persoTable .persoForm:not(:has(input[type="text"])) {
    margin-bottom: 25px;
}

/* On cible la legend à l'intérieur de votre formulaire perso */
form[name="persoForm"] legend {
    /* 1. On nettoie le style "vintage" (fond gris, ombres, bordures) */
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;    
    float: left !important;  /* annule son positionnement "à cheval" */
    width: 100%;
    color:#333333 !important;
    text-transform: uppercase;
    padding: 0 !important; /* Espace entre le texte et le trait */
    margin: 15px 0 30px !important;
    font-size:17px !important;
    font-family: arial, sans-serif !important;
    border-bottom: 2px solid var(--btn-primary-color-02) !important; /* Le souligné (ici le vert de votre bouton Valider) */
}
/* indiquer au parent de bien englober l'élément flottant */
form[name="persoForm"] fieldset {
    padding-top: 0 !important;
}

tr.even td {
    background-color: var(--datatable-row-even2) !important;
}
#oublieMdp {
    margin: 15px 0;
}

#rechercheFactureForm > table tbody {
    display: flex;
    flex-direction: column;
    padding: 20px 40px; 
    gap: 8px; 
}
#rechercheFactureForm > table tr {
    display: grid;
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    align-items: end;
    gap: 5px 30px;
}
#rechercheFactureForm > table tr:first-child {
    display: initial;
}
.CritereRechercheLibelle {
    margin-left: 20px;
}

#rechercheFactureForm > table td[align="right"] {
   text-align: left !important; /* On force l'alignement à gauche au-dessus de l'input */
    font-size: 0.8rem;           /* On l'affiche en petit */
    color: #555;                 /* Optionnel : une couleur un peu plus discrète */
    padding: 0 !important;
}
#rechercheFactureForm > table td[align="left"] {
    padding: 0 !important;
}
#rechercheFactureForm > table tr:first-child td[align="left"] {
    padding-left: 10px !important;
}
#rechercheFactureForm > table tr:first-child td {
    padding: 0;
}

#accordeon_AFFDOS table td {
 vertical-align: middle;
}

#critereMessageForm td {
    vertical-align: middle;
}
#critereMessageForm table {
    box-shadow: none;
}
#accordeon_MESS_UTL table {
    box-shadow: none;
}

input, select, textarea {
    padding: 7px 15px;
}

@media (min-width: 834px) {
    main, #contenu_content {
        padding: 0 30px;
    }
}
#contenu_content table td>br {
    display: none;
}
#contenu_content form[name="profilForm"] table td>br { /* cas particulier sur la page Administration > gestion des profils */
    display: initial;
}
form[name="updateFactureForm"] #prest_facturesbuttons {
    margin: 0 auto;
    padding: 0 0 20px;
}

form[name="updateFactureForm"] br { /* trop de br inutile dans le tableau détail facture */
    line-height: .5em;
}
form#updateFactureForm > div {
    padding: 18px;
}

#contenu_content > div {
    /* overflow: hidden; */
}


tr:has(> td:only-child > br:only-child) {
    display: none;
}

#contenu_content > div > table > tbody > tr > td {
    padding: 18px 0;
}

/* amélioration tableaux trop larges */
.headerBen {
    font-size:10px !important;
}
.justifs-facture a {
    /* display: block; */
    font-size: 100%;
}
table.display td {
    font-size: 12px !important;
}
table.display input, table.display select, table.display textarea {
    font-size: 12px;
}
.display .gradeC textarea {
    width: 200px !important;
}
table.display td {
    padding: 8px 8px !important;
}
table.display select {
    max-width: 140px;
}
.dataTables_wrapper .display td input {
    max-width: 80px;
}
table.display thead th {
    font-size: 10px !important;
    letter-spacing: 0;
}
table.display td {
    font-size: 11px !important;
}
dialog {
    width: 97% !important;
}
#footer {
    clear: both;
}

/* Mise en place des icones FontAwesome  */
/*  On cache l'image à l'intérieur du lien spécifique  */
a[href*="prestataire.select.lignes.factures.do"] img {
    display: none;
}

.dataTables_wrapper {
    margin: 12px 0 0 !important;
}

/* entete tableau */
table.display thead th {
    padding: 6px 12px !important;
}
table.display thead th span.css_right {
    display: inline-block;
    vertical-align: middle;      
    margin-right: 8px;           
}

/* Et on génère l'icône FontAwesome sur le lien <a> parent */
a[href*="prestataire.select.lignes.factures.do"]::before {
    content: "\f15c"; 
    font-family: "FontAwesome"; 
    font-size: 18px;
    color: var(--btn-primary-color-02); 
    cursor: pointer;
    /* Pour s'assurer du bon rendu de l'icône */
    -webkit-font-smoothing: antialiased;
    display: inline-block;
}

/* pour le picto loupe qui ouvre la popup, il n'y a pas de balise <a> on doit donc faire un gros hack CSS
 * 1. On cible le parent TD pour créer un contexte de positionnement */
td:has(> img#imprimer) {
    position: relative;
}

/* 2. On rend l'image transparente mais on la garde clickable */
img#imprimer {
    opacity: 0;         /* L'image est invisible, mais toujours là ! */
    display: block;
    width: 20px;        
    height: 20px;       
    margin: auto;       
    cursor: pointer;   
    position: relative;
    z-index: 10;     
}

/* 3. Enfin, on met génère l'icône Font Awesome DERRIÈRE l'image transparente */
td:has(> img#imprimer)::after, 
a:has( img#imprimer)::after /* suivi des factures */
{
    content: "\f00e";       
    font-family: "FontAwesome";
    font-size: 18px;    
    color: var(--btn-primary-color-02);    
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centrage */
}
a:has( img#imprimer)::after /* suivi des factures */
{
    left: 0;
}
a:has( img#imprimer) { /* suivi des factures */
    position: relative;
}

/* loupe à gauche pour ouverture popup - ici aussi gros hack vu qu'on n'a pas de <a> */
/* 1. On cible le parent TD qui contient cette image spécifique */
td:has(> img[onclick*="prestataire.beneficiaire.visu.do"]) {
    position: relative;
}

/* 2. On rend l'image transparente, mais on la garde au premier plan pour le clic */
img[onclick*="prestataire.beneficiaire.visu.do"] {
    opacity: 0;
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

/* 3. On injecte l'icône FontAwesome en arrière-plan (sur le TD parent) */
td:has(> img[onclick*="prestataire.beneficiaire.visu.do"])::after {
    content: "\f00e";
    font-family: "FontAwesome";
    font-size: 18px;
    color: var(--btn-primary-color-02);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-font-smoothing: antialiased;
}

/* Visa - icon valider ici aussi gros hack vu qu'on n'a pas de <a> */
/* 1. On cible le parent TD qui contient cette image spécifique */
td:has(> img[onclick*="jsPopupConfirm"]) {
    position: relative;
}

/* 2. On rend l'image transparente, mais on la garde au premier plan pour le clic */
img[onclick*="jsPopupConfirm"] {
    opacity: 0;
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

/* 3. On injecte l'icône FontAwesome en arrière-plan (sur le TD parent) */
td:has(> img[onclick*="jsPopupConfirm"])::after {
    content: "\f00c";
    font-family: "FontAwesome";
    font-size: 18px;
    color: var(--btn-primary-color-02);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-font-smoothing: antialiased;
}

/* Visa - icon refus ici aussi gros hack vu qu'on n'a pas de <a> */
/* 1. On cible le parent TD qui contient cette image spécifique */
td:has(> img[onclick*="jsPopupPostClose"]) {
    position: relative;
}

/* 2. On rend l'image transparente, mais on la garde au premier plan pour le clic */
img[onclick*="jsPopupPostClose"] {
    opacity: 0;
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

/* 3. On injecte l'icône FontAwesome en arrière-plan (sur le TD parent) */
td:has(> img[onclick*="jsPopupPostClose"])::after {
    content: "\f05e";
    font-family: "FontAwesome";
    font-size: 18px;
    color: #dc3545;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-font-smoothing: antialiased;
}

/* bouton visualiser */
.glyphicon-eye-open::before {
    font-family: "FontAwesome";
    content: "\f06e"; 
    font-size:18px;
    color: var(--btn-primary-color-02);
}
/* hack pour le texte Visualiser */
a[onclick*="openDetailFichier"] span:nth-of-type(2) {    
    clip-path: inset(0 0 0 49px); /* On masque la partie gauche de l'élément */
    margin-left: -48px; /* On ramène la partie visible vers la gauche, contre l'icône */
    text-decoration: none !important;
    color:var(--color-primary-03) !important;
}
/* bouton Ajouter  */
.glyphicon-plus::before {
    font-family: "FontAwesome";
    content: "\f067"; 
    font-size:18px;
    color: var(--btn-primary-color-02);
}
/* texte Ajouter */
a[onclick*="ajoutFichier"] span:nth-of-type(2) {
    display: none;
}


/* séparateur avec ligne bleue avant le tableau */
tr:has(>td.TDSeparation) {
    display: none;
}


/* tableau vide par défaut (sans résultat, on le masque) */
table#tableRecherche > tbody > tr {
    height: auto !important;  /* Écrase l'attribut HTML height="5" du tableau parfois présent */
}
table#tableRecherche > tbody > tr > td:not(:has(*)) {
    display: none !important;
}

/* liens de pagination sur les tableaux */
.pagelinks a {
    font-size: 13px;
    font-weight: bolder;
}

/* 
  On cible le <tr> qui suit IMMÉDIATEMENT le <tr>  
  contenant la classe .EnteteTdNomPage 
*/
tr:has(.EnteteTdNomPage) + tr {
    display: none;
}

/* footer tableau */
.fg-toolbar > div {
    padding: 0;
    margin-top:0;
}
/*.fg-toolbar > #element_paginate {
    display: none !important;
}*/


/* Suivi des factures - tableau de suivi détaillé en position fixe pour l'avoir toujours à l'écran */
table#tableRecherche table[rules="all"] {
    position: fixed;
    top: 160px;
    right: 40px;  
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 999; 
    min-width: 300px;
    background: black;
    /* transform: translate(0, -50%); */
}
table#tableRecherche table[rules="all"] td {
    padding: 10px;
}
/* END Suivi des factures */

/* Page connexion -> choix de la connexion */
table.connexionTable tr:last-child td {
    text-align: center;
    vertical-align: baseline;
}
.connexionTable input {
    border-radius: 0;
}

/* TITRE DES PAGES EN HAUT A GAUCHE */
/* On supprime le fond gris et la bordure du conteneur */
td.EnteteTdNomPage {
    background-color: transparent !important;
    border: none !important; 
    padding: 8px 0 15px 15px !important;
}
/* titre avec bordure */
span.EnteteNomPage {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid var(--btn-primary-color-02);
    padding-bottom: 4px;
}
/* On supprime les ombres et les fonds blancs sur le tableau parent */
#contenu_content > table:has(.EnteteTdNomPage) {
    /* background: transparent !important; */
    /* background-color: transparent !important; */
    /* box-shadow: none !important; */
    /* border: none !important; */
}

#contenu_content:has(> center > #loginTable) {
    padding-top: 40px;
}

/* END TITRE DES PAGES */

/* Page Administration > Gestion des profils */
h2 {
    color: #333333 !important;
    background: none !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid var(--btn-primary-color-02);
    width: fit-content !important;
    padding: 0;
    margin: -48px 10px 0; /* margin négative pour remonter sur le TR > TD vide au dessus */
}
table#tableRecherche > tbody > tr > td:not(:has(*)) {
    display: none !important;
}

#accordeon_AFFDOS {
    margin: 20px;
}

form[name="profilForm"] > table {
    box-shadow: none;

}

/* page Administration > Archiver des messages */
form[name="archiveMessageForm"] {
    padding: 30px;
}
fieldset:has(form#critereMessageForm) {
    margin: 0 30px;
}
/* hack CSS pour remplacer l'image par un picto */
/* pour le picto lunette qui ouvre la popup, il n'y a pas de balise <a> on doit donc faire un gros hack CSS
 * 1. On cible le parent TD pour créer un contexte de positionnement */
td.messageAccueil:has(> img) {
    position: relative;
}

/* 2. On rend l'image transparente mais on la garde cliquable */
td.messageAccueil img {
    opacity: 0;         /* L'image est invisible, mais toujours là ! */
    display: block;
    width: 20px;        
    height: 20px;       
    margin: auto;       
    cursor: pointer;   
    position: relative;
    z-index: 10;     
}

/* 3. Enfin, on met génère l'icône Font Awesome DERRIÈRE l'image transparente */
td.messageAccueil:has(> img)::after {
    content: "\f00e";       
    font-family: "FontAwesome";
    font-size: 18px;    
    color: var(--btn-primary-color-02);    
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centrage */
}

/**** Administration > Archiver des messages : on ne peut pas appliquer le principe du after ici
    * car on a le texte JJ/MM/YYYY qui est dnas le même élément
    * on va modifier le background via un SVG directement
*****/
img#dateMinMessageCal, img#dateMaxMessageCal {
    /* On définit la taille de la nouvelle icône */
    box-sizing: border-box !important;
    width: 16px !important;
    height: 16px !important;
    padding-left: 16px !important;  /* on ajoute un padding égal à la largeur pour pousser le JPG d'origine hors de la vue */ 
    /* On place notre icône FontAwesome en fond */
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="%23009688" d="M400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48zM0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm320-196c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM192 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM64 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40z"/></svg>') no-repeat center !important;
    background-size: contain !important;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 5px;
    margin-right: 5px;
}

/* Page d'accueil */
/* On cible le conteneur principal */
td:has(> #message) {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espace généreux entre les blocs */
    padding: 15px !important;
}

/* On remonte le titre Bienvenue tout en haut */
td:has(> #message) > h1:last-of-type {
    order: -2;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    border: none !important; /* On supprime l'ancienne ligne rose si elle vient d'ici */
    padding: 10px 20px;
    background-color: #f8f9fa;
}
#message h1.ui-accordion-header {
    display: none !important;
}

/* On remonte le texte de bienvenue juste en dessous du titre */
.message_accueil {
    order: -1;
}

.message_accueil {
    background-color: #f8f9fa; /* Gris très doux */
    /* border-left: 5px solid #d81b60; Accent rose de votre charte */
    /* border-radius: 4px; */
    padding: 0 15px 15px 15px;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.05); */
    /* font-size: 1.05rem; */
    /* line-height: 1.6; */
    color: #495057;
    margin-top: -20px;
}

.message_accueil p {
    margin: 2px;
}

.message_accueil p:last-child {
    margin-bottom: 0;
}

/* Nettoyage du conteneur parent jQuery UI */
.message_content {
    background: transparent !important;
    border: none !important;
    padding: 10px 0 !important;
    display: flex !important;
    flex-direction: column;
    gap: 20px; /* Espace entre chaque carte de message */
}

/* Design de la carte message */
.message_content > div {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: relative; /* Pour pouvoir positionner la date en haut à droite */
}

/* -> en JS on ajoute la notion de message récent par rapport à la date du message et si moins de X jours on le mets en avant par l'ajout d'une classe */
.message_content > div.message-recent {
    background-color: #f8f9fa; 
    border-left: 5px solid #d81b60; /* Accent rose de la charte */
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    /* font-size: 1.05rem; */
    color: #495057;
}

/* On cache les vieux séparateurs */
.message_content .ligne {
    display: none !important;
}

/* --- Typographie interne de la carte --- */

/* L'objet (le Titre) */
.objet_message {
    font-weight: 700;
    font-size: 1.15rem;
    color: #009688; /* Le vert canard vu sur les boutons précédents */
    margin: 5px 0 15px 0;
}

/* L'auteur */
.signature_message {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* La date (Flottante en haut à droite) */
.date_message {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.85rem;
    color: var(--btn-primary-color-02);
    font-style: italic;
    margin: 0;
}

/* Le Sauvetage de la balise <pre> */
.message_content pre {
    font-family: inherit !important; /* On annule la police "machine à écrire" */
    font-size: .9rem !important;
    color: #212529 !important;
    /*white-space: pre-wrap !important; 
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;*/
    /* line-height: 1em; */
}

/* override du select2.min.css */
body .select2-container--default .select2-results > .select2-results__options {
    max-height: 400px;
}

#content { /* pour que le footer soit bien calé en bas de page, notamment sur la page connexion */
    min-height: calc(100vh - 123px);
}

/* tableau flottant - suivi des factures */
/* Le macaron de fermeture */
.btn-fermer-popup {
    /* Positionnement fixé, calqué sur le tableau */
    position: fixed !important;
    top: 148px !important;   /* Légèrement plus haut que les 160px du tableau */
    right: 28px !important;  /* Légèrement plus à droite que les 40px du tableau */
    z-index: 1000 !important; /* Doit être au-dessus du tableau (qui est à 999) */
    
    /* Apparence (Rond magenta avec texte blanc) */
    width: 24px;
    height: 24px;
    background-color: #d81b60; /* Votre couleur magenta */
    color: #ffffff;
    border-radius: 50%;
    
    /* Centrage parfait de la croix ✖ */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-family: Arial, sans-serif;
    
    /* Ombres et interactions */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

/* Petit retour visuel au survol (UX) */
.btn-fermer-popup:hover {
    background-color: #b0154e; /* Assombrit légèrement la couleur */
    transform: scale(1.15); /* Grossit très légèrement au passage de la souris */
}

/*#contenu_content > div > table {
    box-shadow: 0 50px 26px rgba(0, 0, 0, 0.10);
}
#contenu_content > div > table tr:has(.EnteteTdNomPage){
    box-shadow: 0 3px 26px rgba(0, 0, 0, 0.10);
}*/

/* 2eme édition - 20261019 */
/* Marges sur les paragraphes de la page 2FA */
form[name="verificationCodeForm"],
td:has(form[name="verificationCodeForm"]) > p,
td:has(form[name="verificationCodeForm"]) img[alt="QR Code OTP"] {
    margin: 12px 20px !important;
    line-height: 1.5;
}
form[name="verificationCodeForm"] input[type="submit"] {
    background: var(--btn-primary-color-02) !important;
    color: white !important;
    border: 1px solid var(--btn-primary-color-02) !important;
}
form[name="verificationCodeForm"] input[type="submit"]:hover {
    background: white !important;
    color: var(--btn-primary-color-02) !important;
}


/* correction régression sur le picto des messages standards */
div.message {
    align-items: center;
}
div.message::before {
    width: 22px;
    height: 22px;
}
div.message::after {
    left: 28px;
    top: 21px;
}

/* historique des factures - modale - picto loupe - hack css comme on n'a pas de <a> */
/* 1. On cible le parent TD qui contient cette image spécifique */
td:has(> img[onclick*="prestataire.print.facture.individuelle.pdf.do"]) {
    position: relative;
}

/* 2. On rend l'image transparente, mais on la garde au premier plan pour le clic */
img[onclick*="prestataire.print.facture.individuelle.pdf.do"] {
    opacity: 0;
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

/* 3. On injecte l'icône FontAwesome en arrière-plan (sur le TD parent) */
td:has(> img[onclick*="prestataire.print.facture.individuelle.pdf.do"])::after {
    content: "\f00e";
    font-family: "FontAwesome";
    font-size: 18px;
    color: var(--btn-primary-color-02);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-font-smoothing: antialiased;
}

/* historique des factures - modale : pagination */
.pagebanner, .pagelinks {
    font-size: 13px;
}
.pagelinks a {
    color: var(--color-primary-03);
    text-decoration: none;
}
.pagelinks a:hover {
    text-decoration: underline;
}

/* historique des factures : bouton en bas de modale */
input[value="Imprimer"].bouton {
    background: var(--btn-primary-color-02) !important;
    color: white !important;
    border: 1px solid var(--btn-primary-color-02) !important;
}
input[value="Quitter"].bouton {
    background: white !important;
    color: var(--btn-secondary-color-blue) !important;
    border: 1px solid var(--btn-secondary-color-blue) !important;
}
input[value="Imprimer"].bouton:hover {
    background: white !important;
    color: var(--btn-primary-color-02) !important;
}
input[value="Quitter"].bouton:hover {
    background: var(--btn-secondary-color-blue) !important;
    color: var(--btn-primary-color-white) !important;
}

/**/

/* Le macaron de fermeture */
#dialog-close {
    right: 0 !important; 
    width: 24px;
    height: 24px;
    background-color: #d81b60; 
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background-color 0.2s;
}

/* Petit retour visuel au survol (UX) */
#dialog-close:hover {
    background-color: #b0154e;
}
/* jma - END */


.ligne-dgfip{
	background-color: #C5E2F9;
}