html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Styles pour le header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #313a42;
    color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    box-sizing: border-box;
}

.header_logo img {
    width: 100px;
    height: auto;
    transition: width 0.3s ease;
}

.header_menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.header_menu a {
    color: black;
    font-size: 14px;
    border-radius: 5px;
    padding: 10px 15px;
    background-color: #ddd;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header_menu a:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.container-logo {
    text-align: left;
    width: 150px;
}

/* Styles pour le menu déroulant */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-content {
    position: absolute;
    background-color: #ffffff !important;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
}

.user-menu-content a {
    color: black;
    padding: 15px 52px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff !important; 
    transition: background-color 0.2s ease;
    text-align: left;
    margin-right: 0;
    white-space: nowrap;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.user-menu-content a:hover {
    background-color: #f5f5f5;
}

.user-menu:hover .user-menu-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.welcome {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.arrow {
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s ease;
    font-size: 10px;
    line-height: 1;
}

#user-name {
    position: relative;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

#user-name::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: bottom right;
}

#user-name:hover {
    color: white;
}

#user-name:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.user-menu:hover .arrow {
    transform: rotate(180deg);
}

.toast {
    visibility: hidden;
    position: fixed;
    top: 30px;
    right: 30px;
    background-color: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 6px;
    z-index: 999999;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.toast.success {
    background-color: #4CAF50;
}

.toast.error {
    background-color: #f44336;
}

.toast.warning {
    background-color: #ff9800;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}

/* Media queries pour les tablettes */
@media screen and (max-width: 768px) {
    .header {
        padding: 10px;
    }
    
    .header_logo img {
        width: 80px;
    }
    
    .header_menu {
        gap: 10px;
    }
    
    .header_menu a {
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* Media queries pour mobile */
@media screen and (max-width: 480px) {
    .header {
        flex-direction: column;
        padding: 8px;
        align-items: center;
    }

    .header_logo {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 15px;
    }

    .header_logo img {
        width: 60px;
        margin: 0;
        display: block;
    }

    .header_menu {
        width: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        padding: 0;
        flex-wrap: nowrap;
    }

    .header_menu a {
        font-size: 13px;
        padding: 8px 15px;
        background-color: #f1d78d;
        color: black;
        border-radius: 4px;
        text-align: center;
        white-space: nowrap;
        flex: 0 0 auto;
    }
}

/* Media query pour très petits écrans */
@media screen and (max-width: 360px) {
    .header_menu {
        flex-direction: column;
        align-items: stretch;
        padding: 0 15px;
    }

    .header_menu a {
        width: 100%;
        font-size: 12px;
        flex: none;
    }
}

/* Media queries pour tablettes et petits écrans */
@media screen and (max-width: 1200px) {
    .g_container {
        max-width: 900px;
        width: 100%;
        padding: 20px;
        border-radius: 8px;
        margin: 120px auto 0 auto;
        animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .header_menu a {
        background-color : #ffffff00;
        color: white;
    }

    .container-index {
        background-color: #ffffff;
        padding: 20px;
        border-radius: 5px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .container-index a {
        color: #004494;
        text-decoration: underline;
        transition: color 0.2s ease;
    }

    .container-index a:hover {
        color: #002d5f;
    }

    .container-index a:focus {
        outline: 2px solid #053463;
        outline-offset: 2px;
    }

    h1 {
        font-size: 18px;
        text-align: center;
    }

    p {
        font-size: 14px;
    }
}

/* Styles pour les icônes */
.vision-icon .fas,
.copy-icon .fas,
.delete-button .fas,
button .fas {
    font-size: 1.2em;
    transition: all 0.3s ease;
}

/* Couleurs par défaut des icônes */
.vision-icon .fas {
    color: #4a90e2;
}

.copy-icon .fas {
    color: #45b7af;
}

.delete-button .fas {
    color: #e74c3c;
}

.fa-edit {
    color: #2ecc71;
}

/* Effets de survol */
.vision-icon:hover .fas {
    color: #2171c7;
    transform: scale(1.1);
}

.copy-icon:hover .fas {
    color: #318f88;
    transform: scale(1.1);
}

.delete-button:hover .fas {
    color: #c0392b;
    transform: scale(1.1);
}

button:hover .fa-edit {
    color: #27ae60;
    transform: scale(1.1);
}

/* Style des boutons */
.vision-icon,
.copy-icon,
.delete-button,
button {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin: 0 2px;
}

/* Effets de survol des boutons */
.vision-icon:hover {
    background-color: transparent;
    box-shadow: none;
}

.copy-icon:hover {
    background-color: transparent;
    box-shadow: none;
}

.delete-button:hover {
    background-color: transparent;
    box-shadow: none;
}

button:hover {
    background-color: transparent;
    box-shadow: none;
}

/* Styles pour les icônes du menu */
.header_menu .menu-item i {
    font-size: 14px;
    margin-right: 6px;
    transition: transform 0.2s ease;
}

.header_menu .menu-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.header_menu .menu-item:hover i {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Palette de couleurs vives et distinctes */
.header_menu .fa-keyboard {
    color: #07972e; /* Vert néon */
}

.header_menu .fa-download {
    color: #008cff; /* Bleu électrique */
}

.header_menu .fa-calendar-alt {
    color: #d96600; /* orange */
}

.header_menu .fa-list {
  color: #d90047; /* rose */
}

.header_menu .fa-plus {
    color: #01a244;
}


.header_menu .fa-file-import {
    color: #ff6b6b; /* Rouge corail */
}

.header_menu .fa-tasks {
    color: #ff7800; /* Jaune soleil */
}

.header_menu .fa-chart-bar {
    color: #ff61d8; /* Rose vif */
}

.header_menu .fa-search {
    color: #4facfe; /* Bleu ciel brillant */
}

.header_menu .fa-key {
    color: #c875ff; /* Violet lumineux */
}

/* Effet de brillance au survol */
.header_menu .menu-item:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.header_menu .fa-arrow-down {
    color: #000; /* Violet lumineux */
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.header_menu .fa-arrow-down:hover {
    transform: rotate(180deg);
}

/* Ajustement pour les éléments avec fond jaune */
.header_menu .menu-item[style*="background: #ffbf0c"] i {
    color: #333333;
    text-shadow: none;
}