/* ============================= */
/* RESET GLOBAL */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #1F2937;
    
}


.recherche input {
    width: 100px;
    border-color: grey;
    background-color: white;
    color: red;
    font-size: medium;

}

/* ============================= */
/* LOADER BARRE */
/* ============================= */
.bar-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #f3f3f3;
    z-index: 9999;
    overflow: hidden;
    display: none;
}

.bar-loader div {
    width: 0;
    height: 100%;
    background: #3498db;
    animation: load 2s infinite;
}

@keyframes load {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 0; }
}

/* ============================= */
/* LOADER SPINNER */
/* ============================= */
.spinner-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 8px solid #ddd7d7;
    border-top: 8px solid #44a0dd;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    z-index: 9999;
    display: none;
}

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

/* ============================= */
/* LOGIN PAGE */
/* ============================= */
.login-page { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    min-height: 100vh; 
    text-align: center;
}

body.login-page {
    background-color: #1F2937;
}

.login-box {
    width: 600px;
    max-width: 90%;
    margin: 0 auto;
}

.company-logo, 
.log-logo {
    height: auto;
    margin-bottom: 15px;
}

.login-card {
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 12px;
    width: 330px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    text-align: center;
}

.login-card input,
.login-card button {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

.login-card button {
    background-color: #3366ff;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
}

.login-card button:hover {
    background-color: #244acc;
}

.forgot {
    font-size: 12px;
    margin-top: 10px;
}

/* ============================= */
/* FOOTER */
/* ============================= */
.footer-text {
    color: white;
    margin-top: 40px;
    font-size: 14px;
}

.footer-text .copyright {
    font-size: 12px;
}

/* ============================= */
/* DASHBOARD LAYOUT */
/* ============================= */

/* Layout principal */
.layout {
    display: flex;
    height: 100vh;
}

/* Zone principale (droite) */
.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
}

/* Header */
.header {
    height: 70px;
    background: white;
    padding: 0 25px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Partie droite du header */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logout-btn {
    padding: 6px 12px;
    background: #ef4444;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.2s ease;
}

.logout-btn:hover {
    background: #dc2626;
}

/* Contenu principal */
.content {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .main-area {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .login-box {
        width: 90%;
        padding: 20px;
    }

    .login-card {
        width: 100%;
    }
}

.menu-link {
    background: none;
    border: none;
    color: inherit;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    text-align: left;
    width: 100%;
}

.menu-link:hover {
    text-decoration: underline;
}

