.message {
  padding: 10px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: #fff;
  font-weight: bold;
  min-width: 200px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  opacity: 0.9;
  transition: opacity 0.5s ease-out;
}

.message-success {
  background-color: #4CAF50; /* vert */
}

.message-error {
  background-color: #F44336; /* rouge */
}


.menu-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #333;
    padding: 0 15px;
}

/* Bloc gauche = année + menu collés */
.menu-left {
    display: flex;
    align-items: center;
    gap: 15px; /* espace entre année et menu */
}


/* Logo + année */
.menu-brand {
    display: flex;
    align-items: center; /* ✅ aligne verticalement */
    gap: 8px;
}

/* Image */
.menu-logo {
    height: 32px;   /* ajuste selon ton besoin */
    width: auto;
}


/* Année */
.menu-annee {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}
.menu-annee a{
	color: #fff;
    text-decoration: none;
}

/* Partie droite */
.menu-right {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Bouton logout */
.btn-logout {
    background-color: #7ea6c0;
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background-color: #5d8ca6;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    background: #333;
    font-family: Arial, sans-serif;
}

.menu > li {
    position: relative;
}

.menu li a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}

.menu li a:hover {
    background: #555;
}

/* Sous-menus */
.menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #444;
    padding: 0;
    margin: 0;
    z-index: 1000;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease-in-out;
}

.menu li:hover > ul {
    display: block;
}

/* Sous-sous-menus */
.menu li ul li ul {
    top: 0;
    left: 100%;
}

/* Liens sous-menu */
.menu li ul li a {
    padding: 8px 15px;
}

.menu li ul li a:hover {
    background: #666;
}

/* Flèche pour les sous-menus */
.arrow {
    float: right;
    margin-left: 5px;
    font-size: 0.8em;
}

/* Animation fadeIn */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .menu {
        flex-direction: column;
    }
    .menu li ul, .menu li ul li ul {
        position: relative;
        left: 0;
        top: 0;
    }
    .arrow {
        float: none;
        margin-left: 5px;
    }
}


body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.table-controls {
    display: flex;
    justify-content: center;   /* centre horizontalement */
    align-items: center;
    gap: 10px;                 /* espace entre select et bouton */
    margin-bottom: 15px;       /* espace avec le tableau */
	margin-top: 15px;
}
.modern-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.modern-table th {
    background: #2c3e50;
    color: white;
    padding: 10px;
    text-align: left;
}

.modern-table td {
    padding: 4px 10px !important;
    border-bottom: 1px solid #ddd;
}

.modern-table tr:hover {
    background: #f1f1f1;
}

.modern-table tfoot {
    background: #ecf0f1;
    font-weight: bold;
}


.modern-table tbody tr.odd {
    background-color: var(--gris-clair) !important;
}

.modern-table tbody tr.even {
    background-color: var(--gris-fonce) !important;
}

.modern-table tbody tr td:first-child {
    /*background-color: #A8CEAA !important;*/
	/*background-color: #7ea6c0 !important;*/
    font-weight: bold;
}
/* Lignes impaires : bleu-gris doux */
.modern-tableOLD tbody tr.odd td:first-child {
    background-color: #91b3c0 !important; /* bleu-gris doux */
	font-weight: bold;
}

/* Lignes paires : bleu-gris encore plus clair */
.modern-tableOLD tbody tr.even td:first-child {
    background-color: #aac4cf !important; /* bleu-gris clair */
	font-weight: bold;
}
.modern-table tbody tr td:first-child a {
    color: #2c3e50;          
    text-decoration: none;   /* enlever soulignement */
    font-weight: bold;
    transition: color 0.3s;  /* effet survol */
}

.modern-table tbody tr td:first-child a:hover {
    color: #7ea6c0;          
    text-decoration: underline; /* optionnel pour accentuer le hover */
}
.modern-table tbody tr:hover {
    background-color: #dfe6e9 !important;
}
.centrer {
    text-align: center !important;
  }
.alignerdroite {
    text-align: right !important;
  }
.separator {
    border-left: 2px solid #000; /* Trait noir vertical */
    padding-left: 8px;           /* espace avant le texte */
}

div.dt-buttons {
    display: flex !important;       /* utiliser flexbox */
    justify-content: center !important; /* centrer horizontalement */
    margin-top: 10px;               /* petit espace au-dessus */
	width: 100%;
}

div.filtre{
	text-align: right; /*filtre des tableaux*/
	height: 45px;
}



/* Styles modernes pour inputs, selects et boutons avec la classe boutonBleu */
.boutonBleu {
    font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 5px 14px;
    border: 2px solid #7ea6c0;          /* bleu-gris harmonieux */
    border-radius: 6px;                  /* coins arrondis */
    background-color: #e6f0f5;           /* fond bleu-gris clair */
    color: #2c3e50;                      /* texte bleu foncé */
    transition: all 0.25s ease;          /* transitions douces */
    outline: none;
    /*width: 100%;*/                          /* largeur complète */
    box-sizing: border-box;
    cursor: pointer;
}
.boutonBleuInactif {
	font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 5px 14px;
    border: 2px solid #7ea6c0;          /* bleu-gris harmonieux */
    border-radius: 6px;                  /* coins arrondis */
    background-color: #e6f0f5;           /* fond bleu-gris clair */
    color: #2c3e50;                      /* texte bleu foncé */
    transition: all 0.25s ease;          /* transitions douces */
    outline: none;
    /*width: 100%;*/                          /* largeur complète */
    box-sizing: border-box;
	opacity: 0.5;
	cursor: not-allowed;
}
/* Hover : léger effet de profondeur et changement de couleur */
.boutonBleu:hover {
    border-color: #5d8ca6;
    background-color: #d0e4eb;           /* légèrement plus foncé */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateY(-1px);          /* mini “lift” */
}

/* Focus : halo et fond blanc */
.boutonBleu:focus {
    border-color: #81b29a;
    background-color: #ffffff;
    box-shadow: 0 0 6px rgba(126,166,192,0.5);
}

/* Active / clic : léger appui */
.boutonBleu:active {
    transform: translateY(0);             /* reset lift */
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Placeholder pour les inputs texte */
.boutonBleu::placeholder {
    color: #95a5a6;
}

/* Selects : flèche personnalisée */
.boutonBleu.select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 3l6 6 6-6z' fill='%237ea6c0'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 12px;
    padding-right: 30px;
}

/* Responsive : agrandir sur mobile */
@media (max-width: 768px) {
    .boutonBleu {
        font-size: 16px;
        padding: 12px 16px;
    }
}

a {
    color: #2c3e50;             /* texte normal bleu foncé */
    text-decoration: none;       /* optionnel : enlever le soulignement */
    transition: color 0.3s ease;
}

a:hover {
    color: #7ea6c0;             /* survol : bleu-gris harmonieux */
    text-decoration: underline;  /* optionnel pour accentuer le hover */
}

a:active {
    color: #81b29a;             /* clic : vert-gris léger */
}

.bloc-formulaire {
    max-width: 1200px;
    margin: auto;
}

.ligne {
    margin: 10px 0;
}

.centre {
    text-align: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
}

.textarea-full {
    width: 100%;
}

textarea.boutonBleu {
    resize: vertical;
}

.bloc-formulaire {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.rubrique {
    list-style: none;
    margin: 0;
    padding: 7px;
    display: flex;
    background: #d0e4eb;
	border-radius: 5px;
    font-family: Arial, sans-serif;
	font-weight: bold;
}
.inputjour{
	text-align: right;
	width: 85px;
}
.inputannee{
	text-align: right;
	width: 65px;
}
.inputconvention{
	text-align: right;
	width: 110px;
}
.inputmontant{
	text-align: right;
	width: 110px;
}
/*import excel*/
.box { border:1px solid #ccc; padding:20px; border-radius:8px; max-width:700px; }
.progress { height:25px; background:#eee; border-radius:5px; overflow:hidden; margin-top:10px; }
.bar { height:100%; width:0%; background:#4CAF50; color:#fff; text-align:center; line-height:25px; }
/*Fenetre modale*/
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.hidden {
    display: none;
}

.modal-content {
    width: 600px;
    height: 500px;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.modal-header {
    height: 40px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    font-weight: bold;
}

.close-btn {
    background: #e74c3c;
    color: white;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
}

.modal-iframe {
    width: 100%;
    height: calc(100% - 40px);
    border: none;
}

.date-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.icon-calendar {
    cursor: pointer;
    font-size: 16px;
}