*{
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    margin : 0;
}
body{    
    background-color: #2b4658;
    color : white;
    min-height: 97vh;
    overflow: hidden;
}

a{
    color: white;
    text-decoration: none;
}

header{
    background-color: #1e3442;
    min-height: 5vh;
    display: flex;
    border-radius: 10px;
    margin: 10px;
    padding: 10px; 
    justify-content: space-between;
    box-shadow: 0px 6px 6px rgb(0 0 0 / 0.1);
}

button{
    background-color: #F4DC57;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    color : black;
    font-weight: bold;
    min-height: 35px;
}

button:hover{
    background-color: #e9c524;
}

nav{
    display: flex;
    flex-direction: column;
    margin: 5px
}

#corps{
    justify-content: center;
    display: flex;
    margin: 20px;
    min-height: 85vh;
}

.modal {
    width: 300px;
    margin: 0 auto;
    text-align: left;
    padding: 20px;
    box-shadow: 0px 6px 6px rgb(0 0 0 / 0.1);
    border-radius: 10px;
    background-color: #2b4658;
    position: fixed;
    top: 50%; /* <--- manquant */
    left: 50%; /* <--- manquant */
    transform: translate(-50%, -50%);
    z-index: 9999;
    overlay: true;
  
  }
  
  .modal-btn{
    display: flex;
    justify-content: center;
    column-gap: 5px;
  }

#menu{
    background-color: #1e3442;
    border-radius: 10px;
    margin: 10px;
    padding: 15px;
    min-width: 17%;
    box-shadow: 0px 6px 6px rgb(0 0 0 / 0.1);
}

#tableau-bord, .tabl-brd-module{

    background-color: white;
    border-radius: 10px;
    margin: 10px;
    padding: 10px;
    color : black;
    box-shadow: 0px 6px 6px rgb(0 0 0 / 0.1);
    width: 96%;
    
}

.tableau-bord-scroll{
    overflow-y: scroll;
}

#module{
    display: flex;
    flex-wrap: wrap;
}

.module-tbd{
    background-color: #f3f4f6;
    border-radius: 10px;
    margin: 10px;
    padding: 15px;
    min-width: 250px;
    min-height: 100px;
    box-shadow: 0px 6px 6px rgb(0 0 0 / 0.1);
    
}

.nav-btn-index{
    margin-top: 15px;
    font-size: medium;
    padding: 5px;
    min-height: 35px;
    justify-content: space-between;
}

#profil{
    min-width: 80px;
    font-size: medium;
    height: 40px;
}

.search{
    min-height: 30px;
    border-radius: 5px;
    outline: none;
    border: 1px solid rgb(199, 198, 198);
}


.alertes-notif{
    color: white;
    border-radius: 10px;
    margin-top: 5px;
    padding: 5px;
    cursor: pointer;
    display: block;
    
}

.statut-attente-inscrit{    
    animation: blinkred-back 1.5s infinite ease-in-out;
}

.statut-attente-validation{    
    background-color: orange;
}

.statut-intervention{    
    background-color: #c6c700;
}

.statut-terminee{    
    background-color: #16A34A;
}

.statut-non-realisee{    
    background-color: #666666;
}

.body {
    width: 79%;
}

/*couleur alerte*/


.progress{
    background-color: orange;
}
.news {
    animation: blinkred-back 1.5s infinite ease-in-out;
  }
  @keyframes blinkred-back { 
    0% { background-color: RED; }
    50% { background-color: rgb(255, 165, 165); }
    100% { background-color: RED; }
    
  }

.control-notif{
    background-color: red;
}

.Compétence{
    font-size: smaller;
    color: white;
    width: fit-content;
    display: flex;
    border-radius: 10px;
    padding: 5px;
    margin: 10px;
}

input, select, textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
input:focus {
    border-color: #2B4658;
    outline: none;
}


input[type=file]::file-selector-button {
    margin-right: 8px;
    border: none;
    background: #e9c524;
    padding: 8px 12px;
    color : black;
    font-weight: bold;
    cursor: pointer;
  }


.btn-search {
    border: none;
    padding: 10px 15px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    margin-left: -10px;
}


.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}



.search-noresult{
    top: 50%;
    left: 50%;
    position: absolute;
}


/*----------RESPONSIVE-------------*/
  @media (max-width: 600px) {
    #corps{
        display: block;
        margin: 0;

    }

    #tableau-bord, .tabl-brd-module{
        width: 112%;
        margin-bottom: 10px;
    }

    body{
        overflow: scroll;
    }

    #menu {
        padding: 10px;
        max-width: 100%;
    }

    #nav-index {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 5px;
        scrollbar-width: none; /* Firefox */
    }

    #nav-index::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    .nav-btn-index {
        flex: 0 0 auto; /* empêche les boutons de rétrécir */
        font-size: 0.95rem;
        padding: 10px 14px;
    }
}

.flash-container {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none; /* empêche le blocage de clics dessous */
}

.flash {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 10px auto;
    width: 20%;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    animation: fadeInOut 3s ease-in-out forwards;
}



/* Couleurs adaptées au thème */
.flash-success {
    background-color: #16A34A;
    color: white;
}

.flash-error {
    background-color: #ff3b30;
    color: white;
}

.flash-warning {
    background-color: #F4DC57;
    color: black;
}

.flash-info {
    background-color: #1e3442;
    color: white;
}

@keyframes fadeInOut {
    0% { opacity: 0}
    10% { opacity: 1}
    85% { opacity: 1}
    100% { opacity: 0}
}

#profile-button{
    display: flex;
}

#Profile-action-head{
    position: fixed;
    top: 5.8%;
    right: 0;
    z-index: 9999;
    flex-direction: column;

    background-color: #1e3442;
    min-height: 5vh;
    display: flex;
    flex-direction: column;
    row-gap: 5px;
    border-radius: 10px;
    margin: 10px;
    padding: 10px; 
    justify-content: space-between;
    box-shadow: 0px 6px 6px rgb(0 0 0 / 0.1);

}


i.fa-chevron-up, i.fa-chevron-down {
  transition: transform 0.3s ease;
}

.rotate {
  transform: rotate(180deg);
}

/* Style pagination patrouille */

nav.pagination {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1.5rem 0;
    font-family: system-ui, sans-serif;
    flex-direction: row;
}

/* Items */
nav.pagination .pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px; /* arrondis */
  font-weight: 600;
  font-size: 0.95rem;
  background: #f5f9fc;
  color: #0b4a6f; /* ton bleu */
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  box-shadow: 0 1px 0 rgba(11,74,111,0.06);
}

/* Survol */
nav.pagination .pagination__item:hover {
  background: #e9f3fb;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(11,74,111,0.08);
}

/* Page courante */
nav.pagination .pagination__item--current-page {
  background: #0b4a6f;
  color: #fff;
  cursor: default;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(11,74,111,0.2);
}

/* Liens précédent / suivant */
nav.pagination .pagination__item--previous-page,
nav.pagination .pagination__item--next-page {
  font-size: 0.85rem;
  min-width: 60px;
}

/* Désactivé */
nav.pagination .pagination__item--disabled {
  background: #f5f5f5;
  color: #999;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
  transform: none;
}

/* Responsive */
@media (max-width: 480px) {
  nav.pagination .pagination__item {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 0.85rem;
    border-radius: 8px;
  }
}


.tox-statusbar__branding, .tox-promotion{
    display: none;
}