body {
    margin: 0;
    padding: 0;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 500;
    background-image: linear-gradient(
        to bottom,
        rgba(228, 228, 228, 0.5),
        rgba(228, 228, 228, 0.5)
    ),
    url("../imgs/backgroundw.png");
}


.py-4{
    display: flex;
    justify-content: center;
}

.form-becip{
    min-width: 25rem;
}

input.large-btn{
    margin: auto;
    display: flex;
    padding: 0.3rem 5rem !important;
}

.flex{
    display: flex;
    justify-content: space-between;

}

.btn-mask{
    text-align: left;
}

.container-page {
    background-color: #fff;
    padding: 1.25rem 1.25rem;
    border-radius: 0.625rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    /*Sinon il est éééénooooorme*/
    min-width: 60rem;
}
.container-profile {
    background-color: #fff;
    padding: 1.25rem 1.25rem;
    border-radius: 0.625rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    margin: 3.125rem;
    max-width: 37.5rem;
    min-width: 25rem;
}
.min-width{
    min-width: 37.5rem;
}

.masks{
    padding-left: 1rem;
    border-left: #606060 0.15rem solid;
}
.mask{
    display: flex;
    gap: 1rem;
}
/*.project{*/
/*    min-width: 90rem;*/
/*}*/

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.information {
    margin-top: 0.625rem;
    color: #0c9155;
}


.field-container {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.field-container span, .field-container input {
    flex: 1;

}
.field-container input {
    font-size: 1rem;
    font-family: Poppins, sans-serif;
    padding: 0;
    border: none;
    border-bottom: #ccc 2px solid;
}
.field-container input:focus {
    outline: none;
}
.field-container button {
    margin-right: 10px;
    border: none;
    cursor: pointer;
}


.logout{
    display: flex;
    margin: 0;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    gap: 2rem;
}

.logout input{
    width: 20rem;
    background-color: #be1212;
    transition: 0.4s ease;
    margin: 0;
    height: 3rem;
    margin: auto;
}
.logout input:hover{
    background-color: #eb0f0f;
}

.form-custom{
    margin: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    background-color: #cdcdcd;
    border-radius: 0.3rem;
    padding: 2rem;
}

input[type="text"]{
    outline-color: #0c9155 !important;
}

input[type="submit"]{
    border: none;
    color: #fff;
    border-radius: 0.3rem;
    background-color: #0c9155;
    padding: 0.4rem 2rem;
    margin: auto;
    transition: ease 0.3s;
}

input[type="submit"]:hover {
    background-color: #10b068;
    outline: 0.15rem solid #0c9155 ;
}
select{
    padding: 0.3rem;
    outline: none;
    border: none;
    border-radius: 0.3rem;
}
select:focus{
    outline: 0.15rem solid #0c9155;
}
input{
    padding: 0.3rem;
    outline: none;
    border: none;
    border-radius: 0.3rem;
}
input:focus{
    outline: 0.15rem solid #0c9155;
}
#add-project-year{
    width: 3rem;
}
#add-project-number{
    width: 4rem;
}
a {
    color: #0c9155;
    text-decoration: none;
    cursor: pointer;
}

input[type="checkbox"] {
    accent-color: #0c9155;
    outline: none;
    transform: scale(1.5);
}
input[type="checkbox"]:disabled{
    cursor: not-allowed;
}
.delete-icon{
    color: #eb0f0f;
    transition: ease 0.3s;
}
.delete-icon:hover{
    color: #be1212;
}

input[type="search"]{
    outline-color: #0c9155 !important;
    /*didntWork*/
}

button{
    border: none;
    color: #fff;
    border-radius: 0.3rem;
    background-color: #0c9155;
    padding: 0.4rem 2rem;
    transition: ease 0.3s;
}

button:hover {
    background-color: #10b068;
}


.project-action{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    width: 100%;
    gap: 1rem;
}

.action{
    width: auto;
}

.items-container button {
    margin: inherit;
}

.items-container a{
    border: none;
    color: #fff;
    border-radius: 0.3rem;
    background-color: #0c9155;
    padding: 0.4rem 2rem;
    transition: ease 0.3s;
    text-align: left;
}
.items-container a:hover {
    background-color: #10b068;
}

h2{
    margin-top: 2rem;
    text-align: center;
}

.button-container{
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}

.forgot-btn{
    padding-top: 1rem;
    display: flex;
    justify-content: center;
}


/*Download PopUP*/

.download-overlay {
    display: none; /* Masqué par défaut */
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.overlay-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    text-align: center;
}

.overlay-content h2 {
    color: #0c9155;
    margin-bottom: 10px;
}

.overlay-content p {
    margin-bottom: 20px;
}

/* Loader style */
.loader {
    margin: 10px auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0c9155;
    border-radius: 50%;
    width: 40px; height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

/* Bouton Fermer Overlay */
.close-overlay-btn {
    background-color: #c0392b;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.close-overlay-btn:hover {
    background-color: #e74c3c;
}


/* Loader pour masquer uniquement la section en cours */
.section-loader {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.95); /* Fond semi-transparent blanc */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.3s ease-in-out;
}

/* Empêcher les interactions pendant le chargement */
.container-page, .container-profile {
    position: relative; /* Important pour que le loader se place correctement */
}

/* Loader circulaire */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0c9155;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #0c9155;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

/* Masquer le loader une fois chargé */
.section-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.fetch-loader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.fetch-loader .loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0c9155;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.fetch-loader .loading-text {
    color: #0c9155;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

.fetch-loader.d-none {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

