:root {
    --th-color: rgb(103, 196, 103);
    --font-family: 'Ubuntu', 'Segoe UI', Arial, sans-serif;
    --primary-color: #8cc640;
    ;
}


/**
 * @author Christophe Jeudi - christophe.jeudi@adivalis.com
 * @version Juin 2024
 */

.w50 {
    min-width: 50px;
    max-width: 50px;
}

.w150 {
    min-width: 150px;
    max-width: 150px;
}

.w200 {
    min-width: 200px;
    max-width: 200px;
}

.center {
    text-align: center !important;
}


.section-connexion {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 50px;
    font-family: "Saira Condensed", sans-serif;
    opacity: 0;
    animation: entree 5s forwards;
}

@keyframes entree {
    from {
        opacity: 0;

    }

    to {
        opacity: 1;
    }
}

.section-connexion img {
    margin: auto;
}

.section-connexion h1 {
    margin: 20px auto;
    text-align: center;
    font-size: 45px;
    color: #8cc63f;
}

.connexion {
    margin: auto;
}

.inputs {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    width: 150px;
}

.inputs label {
    position: absolute;
    top: -12px;
    left: 5px;
    background-color: white;
}

.inputs input {
    border: 1px solid #8cc63f;
    border-radius: 5px;
    height: 40px;
    text-align: center;
    font-size: 15px;
}

.btn {
    border: 1px solid #8cc63f;
    border-radius: 5px;
    height: 40px;
    text-align: center;
    font-size: 15px;
    background-color: white;
    padding: 5px 10px;
    margin: auto;
    transition: 1s;
}

.btn:hover {
    color: #d7db2d;
    background-color: #8cc63f;
}

.button {
    --b: 3px;
    /* border thickness */
    --s: 0.15em;
    /* size of the corner */
    --c: #8cc63f;

    padding: calc(0.05em + var(--s)) calc(0.3em + var(--s));
    color: var(--c);
    --_p: var(--s);
    background: conic-gradient(from 90deg at var(--b) var(--b),
            #0000 90deg,
            var(--c) 0) var(--_p) var(--_p) / calc(100% - var(--b) - 2 * var(--_p)) calc(100% - var(--b) - 2 * var(--_p));
    transition: 0.3s linear, color 0s, background-color 0s;
    outline: var(--b) solid #0000;
    outline-offset: 0.2em;
}

.button:hover,
.button:focus-visible {
    --_p: 0px;
    outline-color: var(--c);
    outline-offset: 0.05em;
}

.button:active {
    background: var(--c);
    color: #fff;
}


.button {
    font-weight: bold;
    font-size: 24px;
    cursor: pointer;
    border: none;
    margin: 0.1em;
}

.section-connexion span {
    margin: 30px auto;
    width: 50%;
    text-align: center;

}

.tables {
    justify-content: center;
    display: flex;
    flex-direction: column;
    margin: auto;
}

.table {
    margin: auto;
}

.table th {
    color: white;
    background-color: #8cc640;
    padding: 0 5px;
    border-radius: 3px;
    font-size: 19px;
}

.table tr:nth-child(odd):hover,
.table tr:nth-child(even):hover {
    background-color: #ecee95;
}

.table tr:nth-child(odd) {
    background-color: #f2f2f2;
}

.table td {
    padding: 0 5px;
    border-radius: 3px;
    font-size: 19px;
    text-transform: uppercase;
}

.table .div-rech-table input {
    border: none;
    margin: 0;
    border-radius: 3px;
    text-align: center;
}

.form-serie {
    display: flex;
    flex-direction: row !important;
    width: 528px;
    margin-bottom: 50px;
}

.erreur {
    background-color: #f8d7da;
    border: 1px solid #f1aeb5;
    color: #6b2b31;
    text-align: center;
    margin: 30px auto 0 auto;
}

.div-liste-varietale {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
    padding: 20px 50px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.div-liste-varietale h2 {
    text-align: center;

}

.liste-varietale-modal {
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
}

.liste-varietale-modal table {
    background: #fff;
    border-collapse: collapse;
    max-height: 80vh;
    /* hauteur max pour scroll */
    overflow-y: auto;
    display: block;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.liste-varietale-modal th,
.liste-varietale-modal td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: center;
}

.liste-varietale-modal th {
    background-color: #f2f2f2;
}

.admin {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 270px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.admin .fa-users,
.admin .fa-map-marker,
.admin .fa-calendar-check-o {
    font-size: 25px !important;
    color: white;
    margin: 0 10px
}

.informations-creation-mle p {
    font-size: 17px;
}

.table-liste-varietale {
    margin: 0 auto;
    /* centre le tableau */
    border-collapse: collapse;
    /* pour un rendu propre des bordures */
    text-align: center;
    /* centre le texte des cellules */
    width: 80%;
    /* optionnel : largeur du tableau */
}

/* Style pour les cellules */
.table-liste-varietale th,
.table-liste-varietale td {
    padding: 8px 12px;
    /* un peu d'espace dans les cellules */
    border: 1px solid #ccc;
    /* bordure simple */
}

/* Style optionnel pour le header */
.table-liste-varietale th {
    background-color: #f2f2f2;
}

.message-success {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    background-color: #8cc640;
    color: white;
    height: 40px;
    margin: auto;
    width: 50%;
    font-weight: bold;
    font-size: 17px;
}

.message-alert {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    background-color: #e67f60;
    color: white;
    height: 40px;
    margin: auto;
    width: 50%;
    font-weight: bold;
    font-size: 17px;
}

.campagne {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 180px;
    color: white;
    font-size: 17px;
    font-weight: bold;
}

.fa-info-circle {
    font-size: 15px !important;
}

.section-individus .fa-list-ul {
    cursor: pointer;
    font-size: 20px !important;
    margin-left: 10px;
    color: green;
}

.excel-export-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.excel-export-loader.show {
    display: flex;
}

.excel-loader-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.excel-loader-box {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.excel-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #28a745;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.excel-loader-box p {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== UNIVERSAL LOADER ===== */
.universal-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(50, 50, 50, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.universal-loader.show {
    display: flex;
}

.universal-loader-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.universal-loader-box {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.universal-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #114073;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.universal-loader-message {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

/* ===== MESSAGE ALERTE CRUD ===== */
.alert-message-crud {
    display: flex;
    align-items: center;
    position: fixed;
    top: 70px;
    right: -400px; /* hors écran à droite */
    background-color: #def2d6;
    color: #587053;
    padding: 15px 20px;
    border-bottom: 2px solid #587053;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-family: Arial, sans-serif;
    font-size: 16px;
    z-index: 1000;
    transition: right 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.alert-message-crud.error {
    background-color: #FF5C5C;
}

.alert-message-crud .icon {
    margin-right: 10px;
    font-size: 18px;
}

/* Classe pour faire glisser vers l'écran */
.alert-show {
    right: 20px; /* position finale */
    opacity: 1;
}