/* Base Styles */
body {
    margin: 0;

    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
    background-color: #fff;
    font-family: Montserrat !important;
    color: #646363 !important;
}
.hidden {
    display: none;
}
.toggle-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.toggle-buttons button {
    margin: 0 10px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.toggle-buttons .active {
    background-color: #436A7E;
    color: white;
}
.toggle-buttons button:not(.active) {
    background-color: #f9f9f9;
    color: #555;
    border: 1px solid #ccc;
}
.toggle-buttons button:not(.active):hover {
    background-color: #e6e6e6;
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: nowrap; 
    margin: 0; 
}

.row-navbar {
    display: flex;
    justify-content: space-between; /* Distribue les éléments sur toute la ligne */
    align-items: center; /* Centre verticalement les éléments */
    flex-wrap: nowrap;
    margin: 0;
}

.container {
    display: flex;
    margin-top: 70px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Navbar Styles */
.navbar-agri {
    background-color: #436A7E;
    top: 0;
    height: 75px;
    width: 100%;
    z-index: 200;
    display: flex;
    align-items: center;
    padding: 0 15px;
}


.burger-menu {
    display: none; 
}
/* Bloc d'images au centre */
.nav-center-images {
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
    justify-content: center;
}

/* Images positionnées pour se chevaucher */
.nav-img {
    position: absolute;
    transition: transform 0.3s ease-in-out;
}

/* Image gauche (DOIT être au-dessus des autres) */
.nav-img-left {
    z-index: 4;
    right: 50%;
}

/* Image centrale (un peu en arrière) */
.nav-img-center {
    z-index: 4;
    margin-top: 70px;
    width: 160px;
}

/* Image droite (la plus en arrière) */
.nav-img-right {
    z-index: 2;
    left: 40px;
    width: 120px;
}

/* Sidebar Styles */
.sidebar {
    width: 22%;
    overflow-y: auto; 
    padding: 10px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #dee2e6;
}

.sidebar-btn {
    width: 100%;
    height: 50px;
    border: 1px solid #ced4da;
    background-color: white;
    list-style-type: none;
    margin-bottom: 10px;
    padding-top: 5px;
    padding-left: 10px;
    text-align: left;
}

.sidebar-btn.selection {
    background-color: #00A0CB; 
    color: #000;
    font-weight: bold;
    border-left: 3px solid #000;
}

.sidebar-btn:hover {
    background-color: #008CBA;
    color: #000;
}

.sidebar-btn .icon {
    margin-right: 10px;
    width: 30px;
    height: 30px;
    text-align: left;
}

/* Main Content Styles */
.main-content {
    width: 1000px; /* Le contenu principal prend le reste */
    max-width: 1000px;
    /*height: calc(110vh - 300px);*/
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ced4da; /* Bordure noire */
    margin-left: 0; /* Espacement entre les boutons et le contenu */
}

.content-panel {
    display: none;
    font-size: 14px;
    color: #212529;
}
.accueil-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accueil-texte {
    font-size: 40px;
    margin-left: -20px;
    font-weight: bold;
    color: #646363;
    max-width: 50%;
}

.accueil-texte .highlight {
    color: #00A0CB;
}

.accueil-image {
    position: relative;
    max-width: 50%;
}

.accueil-image img {
    width: 100%;
    border-radius: 10px;
    z-index: 2;
    position: relative;
}

.ombre {
    position: absolute;
    left: -20px;
    top: 52%;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
    background-color: #9BDADA;
    border-radius: 15px;
    z-index: 1;
}

.content-panel:first-child {
    display: block;
}

.icon {
    width: 30px;
    height: 30px;
    margin-right: 15px;
    vertical-align: middle;
}

.btn-site-style {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background-color: #00A0CB;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    color: #000010;
}

.btn-site-style:hover {
    background-color: #9BDADA;
    transform: scale(1.05);
}

.btn-site-style:active {
    background-color: #9BDADA;
    transform: scale(0.98);
}

.yellow-line {
    height: 1rem;
    width: 100%;
    background-color: #436A7E;
    display: inline-block;
    vertical-align: middle;
}

.text-center {
    text-align: center !important;
}

.main-title {
    display: inline-block;
    position: absolute;
    background-color: white;
    padding-right: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.form-row .form-group {
    width: 48%; /* Permet de placer deux champs côte à côte */
}

.form-group label {
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
    color: #212529;
}

.form-control {
    width: 100%;
    padding: 8px 10px;
    font-size: 16px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #f8f9fa;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #00A0CB;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(65, 179, 255, 0.25);
}

/* Styles pour les tables compactes */
.compact-table {
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    border-collapse: collapse; 
    width: 30%;
}

.compact-table th {
    font-weight: bold;
    padding: 8px;
}

.compact-table td {
    padding: 5px;
    border: 1px solid #ced4da;
    text-align: left;
}

.compact-table input[type="text"] {
    width: 100%;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    box-sizing: border-box;
}

.compact-table input[type="checkbox"] {
    display: block;
    margin: auto;
}


fieldset {
    margin-top: 15px;
}

legend {
    font-size: 18px;
    font-weight: bold;
}
/* Table Styles */
.table_user {
    width: 100%;
    border-collapse: collapse;
    margin: 15px auto;
    font-size: 14px;
    text-align: left;
    background-color: #fff;
    border: 1px solid #ced4da;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table_user th {
    background-color: #00A0CB;
    color: #000;
    font-weight: bold;
    padding: 8px 12px;
    text-align: center;
    border: 1px solid #ced4da;
}

.table_user td {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    text-align: center;
    color: #646363;
    font-family: MontSerrat, sans-serif;
}

.table_user tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table_user tr:hover {
    background-color: #9BDADA;
    transition: background-color 0.3s;
}

.td_img {
    padding: 0;
}

.td_img img {
    cursor: pointer;
    margin: 5px auto;
    display: block;
    transition: transform 0.2s ease;
}

.td_img img:hover {
    transform: scale(1.2);
}
.reception_img {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

.reception-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.reception-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

.reception-item label {
    margin-bottom: 5px;
}

.reception-item input[type="number"] {
    width: 100%;
    max-width: 100px;
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-style {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table-style th,
.table-style td {
    border: 1px solid #ced4da;
    padding: 8px;
}

/* Responsive Table */
@media screen and (max-width: 768px) {
    .table_user {
        font-size: 12px;
    }

    .table_user th,
    .table_user td {
        padding: 6px 8px;
    }

    .td_img img {
        width: 18px;
        height: 18px;
    }
    .compact-table {
        width: 100%; 
        margin-bottom: 20px; 
    }

    .compact-table th, .compact-table td {
        font-size: 12px; 
        text-align: center; 
    }

    .compact-table td input {
        width: 80%;
    }

    .compact-table {
        margin-left: auto;
        margin-right: auto;
    }
    div[style*="display: flex"] {
        display: block !important; 
    }
    .reception-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .reception-item {
        flex-direction: row;
        align-items: center;
    }

    .reception-item label {
        margin-bottom: 0;
        margin-right: 10px;
    }

    label {
        margin-bottom: 5px;
    }

    .input-number {
        width: 100%;
    }
    .table-style {
        display: block;
        width: 100%;
    }

    .table-style thead,
    .table-style tbody,
    .table-style tr {
        display: block;
        width: 100%;
    }

    .table-style th,
    .table-style td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
    }

    .table-style th {
        background-color: #f8f9fa;
        font-weight: bold;
        text-align: center;
    }

    .table-style td {
        border: none;
        border-bottom: 1px solid #ced4da;
        padding-left: 8px;
    }

    .table-style td::before {
        content: attr(data-label);
        font-weight: bold;
        display: inline-block;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
    }
    .sidebar-btn {
        width: 390px;
        height: 50px;
        border: 1px solid #ced4da;
        background-color: white;
        list-style-type: none;
        margin-bottom: 10px;
        padding-top: 5px;
        padding-left: 10px;
        text-align: left;
    }
    .accueil-texte {
        max-width: 100%;
    }
    .login-wrapper {
        padding: 15px;
    }

    h1 {
        font-size: 20px;
    }

    .login-form .form-control {
        font-size: 14px;
    }
}

.add-btn {
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
}

.non-btn {
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    background-color: #af574c;
    color: white;
    border: none;
    border-radius: 5px;
}

.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close_supp {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
}

.ou-separator hr {
    border: 0;
    border-top: 1px solid #ddd;
}
/* page connexion */
.body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8f9fa;
    margin: 0;
}

.login-wrapper {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #212529;
}

.login-form .form-group {
    margin-bottom: 15px;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #212529;
}

.login-form .form-control {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #f8f9fa;
    box-sizing: border-box;
}
.bandeau_logo a {
    width: 20%;
    height: auto;  /* Conserve les proportions */
    object-fit: contain;  /* Évite toute déformation */
    margin-right: 15px;
}
.bandeau_logo a img {
    width: 90%;
}
.logo_okzo {
    width: 10% !important;
}
.login-form .form-control:focus {
    border-color: #00A0CB;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(65, 179, 255, 0.25);
}

.login-form .form-options {
    text-align: right;
    margin-bottom: 15px;
}

.login-form .forgot-password {
    font-size: 14px;
    color: #646363;
    text-decoration: none;
    transition: color 0.3s;
}

.login-form .forgot-password:hover {
    color: #212529;
    text-decoration: underline;
}

.btn-site-style {
    display: block;
    text-align: center;
    margin-top: 10px;
}

.upload-form label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.upload-form input[type="file"] {
    display: block;
    margin-bottom: 15px;
}

.upload-form button {
    width: 100%;
    padding: 10px;
    background-color: #00A0CB;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upload-form button:hover {
    background-color: #9BDADA;
}
.body_connexion {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url('../img/accueil_connexion.png') no-repeat center center fixed;
    background-size: cover;
}
.body_connexion::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(50, 80, 95, 0) 0%, rgba(50, 80, 95, 0.1) 100%);
    pointer-events: none; 
}
.h1_connexion {
    text-align: center;
    font-weight: bold;
    color: white;
    font-size: 84px;
}
.left-container {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.right-container {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bandeau_logo {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.error-message {
    color: rgb(170, 0, 0);
    margin-bottom: 10px;
}
.valide_message {
    color: rgb(0, 170, 0);
    margin-bottom: 10px;
}
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.validation-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.validation-header .icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    cursor: pointer;
}

#nonValidCount {
    font-weight: bold;
    color: red;
}
.btn-reset {
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.btn-reset:hover {
    background-color: #e0e0e0;
}
.login-box {
    position: relative; /* Nécessaire pour le pseudo-élément */
    padding: 40px;
    border-radius: 40px;
    width: 100%;
    max-width: 400px;
    overflow: hidden; /* Évite que le pseudo-élément dépasse les bords arrondis */
}

.login-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.15); /* Blanc avec opacité */
    border-radius: 10px; /* S'assure qu'il suit la forme du conteneur */
    pointer-events: none; /* Évite que ça bloque les interactions */
}


.login-title {
    text-align: center;
    margin-bottom: 30px;
    color: white;
    font-size: 36px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 16px;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus {
    border-color: #00A0CB;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(65, 179, 255, 0.25);
}
.input-group-nom-prenom {
    display: flex;
    gap: 20px; /* Espacement entre les groupes */
    margin-bottom: 20px;
}

.input-group-nom-prenom .field {
    display: flex;
    flex-direction: column; /* Aligne le label au-dessus de l'input */
}

.input-group-nom-prenom label {
    font-size: 16px;
    font-weight: bold;
    color: white;
    margin-bottom: 5px; /* Ajoute un petit espace entre le label et l'input */
}

.input-group-nom-prenom input {
    width: 100%; 
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group-nom-prenom input:focus {
    border-color: #00A0CB;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 160, 203, 0.5);
}
.btn-login {
    width: 100%;
    padding: 12px;
    background-color: #00A0CB;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
}

.btn-login:hover {
    background-color: #9BDADA;
}
.forgot-password-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: white;
    font-size: 14px;
    text-decoration: none;
}
.forgot-password-link:hover {
    text-decoration: underline;
}

.register-link {
    text-align: center;
    margin-top: 20px;
}

.register-link a {
    color: #007BFF;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

.logo{
    width: 10%;
}  
.iframe {
    width: 900px;
    height: 1300px;
}
.img_restitution {
    position: absolute;
    margin-left: 15%;
    margin-top: -90px;
    width: 200px;
}
.modal-secu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-secu img {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.3s ease-in-out;
}

/* Responsive page de connexion */
@media (max-width: 768px) {
    .body_connexion::after {
        display: none;
    }
    .nav-center-images {
        display: none;
    }
    .login-box {
        padding: 20px;
    }
    .iframe {
        width: 300px;
        height: 1350px;
    }
    .login-title {
        font-size: 32px;
    }

    .login-form .input-group input {
        font-size: 14px;
    }

    .btn-login {
        font-size: 16px;
    }
    .navbar-agri {
        justify-content: space-between;
        padding: 0 10px;
        height: 55px;
    }

    .burger-menu {
        display: flex;
        align-items: center;
        cursor: pointer;
        color: black;
    }

    .sidebar {
        position: fixed;
        top: 55px; /* En dessous de la navbar */
        left: 0;
        width: 100%;
        height: calc(100vh - 55px);
        background-color: white;
        z-index: 300;
        display: none; /* Masqué par défaut */
        flex-direction: column;
        overflow-y: auto;
    }

    .sidebar.open {
        display: flex; /* Affiche le menu quand actif */
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }
    .logo {
        width: 30%;
    }
    .form-row {
        display: flex;
        flex-direction: column;
    }

    .form-group {
        width: 100% !important;
        margin-bottom: 10px;
    }

    .accueil-image {
        display: none;
    }
    .img_restitution {
        position: absolute;
        margin-left: 5%;
        margin-top: -10%;
        width: 100px;
    }
    .modal-secu img {
        max-width: 100%;
        max-height: 100%;
    }
     .body_connexion {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 20px 0;
    }

    .left-container, .right-container {
        width: 90%;
        text-align: center;
    }

    .left-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .bandeau_logo {
        display: none; /* Cache les images de redirection */
    }
    .h1_connexion {
        font-size: 34px;
    }
    .login-container {
        align-items: baseline;
        height: 100vh; 
    }
}

@media (max-width: 480px) {
    .nav-center-images {
        display: none;
    }
    .login-box {
        width: 90%;
    }
    .login-container {
        align-items: baseline;
        height: 100vh; 
    }
}
/* From Uiverse.io by AbanoubMagdy1 */ 
.switch {
    --circle-dim: 1.4em;
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 3.5em;
    height: 2em;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f5aeae;
    transition: .4s;
    border-radius: 30px;
  }
  
  .slider-card {
    position: absolute;
    content: "";
    height: var(--circle-dim);
    width: var(--circle-dim);
    border-radius: 20px;
    left: 0.3em;
    bottom: 0.3em;
    transition: .4s;
    pointer-events: none;
  }
  
  .slider-card-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    perspective: 1000px;
    border-radius: 50%;
    transition: .4s transform;
  }
  
  .slider-card-front {
    background-color: #DC3535;
  }
  
  .slider-card-back {
    background-color: #379237;
    transform: rotateY(180deg);
  }
  
  input:checked ~ .slider-card .slider-card-back {
    transform: rotateY(0);
  }
  
  input:checked ~ .slider-card .slider-card-front {
    transform: rotateY(-180deg);
  }
  
  input:checked ~ .slider-card {
    transform: translateX(1.5em);
  }
  
  input:checked ~ .slider {
    background-color: #9ed99c;
  }
  /* Style de la barre de recherche */
.search-bar {
    width: 50%;
    max-width: 200px; /* Ajuste la largeur selon tes besoins */
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 25px;
    outline: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
}

/* Effet au focus */
.search-bar:focus {
    border-color: #00A0CB;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(65, 179, 255, 0.25);
}

/* Ajout d'une icône dans la barre (optionnel) */
.search-container {
    position: relative;
    display: inline-block;
}

.search-container .search-bar {
    padding-left: 40px; /* Décale le texte pour laisser de la place à l’icône */
}

.search-container .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

/* Effet au survol */
.search-bar:hover {
    border-color: #00A0CB;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(65, 179, 255, 0.25);
}