﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}
/*Page d'authentification*/
body {
    background-color: #f5f5f5;
    font-family: 'Segoe UI', sans-serif;
}

.login-box {
    max-width: 420px;
    margin: 60px auto;
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

    .login-box h2,h4 {
        font-weight: bold;
        color: black; /* Rouge Total */
        text-align: center;
    }

  

.btn-total {
    background-color: #e30613;
    border: none;
    color: white;
}

    .btn-total:hover {
        background-color: #b20410;
    }

.logo {
    display: block;
    margin: 0 auto 15px auto;
    max-height: 60px;
}



/*Bouton flottant pour acceder au tableau de board*/
.btn-floating-dashboard {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #f44336; /* Rouge clair style Total */
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

    .btn-floating-dashboard:hover {
        background-color: #d32f2f; /* un peu plus foncé au survol */
        text-decoration: none;
    }

/*Layout Employé*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1050;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* ombrage accentué */
}

.navbar-brand-logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    padding: 0;
    margin: 0;
    display: block;
}

.navbar-title {
    font-weight: 600;
    font-size: 1.4rem;
    color: #000; /* noir */
    text-decoration: none; /* pas de surlignement */
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

    .navbar-title:hover {
        background-color: #f0f0f0;
    }

#datetime {
    font-size: 1rem;
    color: #000; /* noir */
    font-weight: 500;
}

.dropdown .btn-outline-light {
    color: #000 !important;
    border-color: #ced4da;
    background-color: #f8f9fa;
}

    .dropdown .btn-outline-light:hover {
        background-color: #e2e6ea;
    }

/* Dropdown menu du profil */
.dropdown-menu {
    opacity: 0;
    transform: translateY(15px); /* effet doux vers le bas */
    transition: opacity 0.3s ease, transform 0.3s ease;
    visibility: hidden;
    display: block;
    pointer-events: none;
    left: 0;
    right: auto;
    min-width: 220px;
}

    .dropdown:hover .dropdown-menu,
    .dropdown-menu.show {
        opacity: 1;
        transform: translateY(0px);
        visibility: visible;
        pointer-events: auto;
        left: 0; /* aligné à gauche du parent */
        right: auto;
    }




    .dropdown-menu li a {
        transition: background-color 0.3s, color 0.3s;
    }

        .dropdown-menu li a:hover {
            background-color: #f8f9fa;
            color: #0d6efd;
        }

.main {
    margin-top: 40px; /* espace sous la navbar Admin*/
}
.mainEmployee {
    margin-top: 60px; /* espace sous la navbar Employee*/
}

.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0px;
    min-width: 800px;
    padding: 1rem;
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    z-index: 1060;
}

.dropdown:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 1060;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

    .mega-grid a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        border-radius: 6px;
        background-color: #f8f9fa;
        text-align: center;
        color: #212529;
        font-weight: 500;
        text-decoration: none;
        transition: background-color 0.2s ease;
    }

        .mega-grid a:hover {
            background-color: #e2e6ea;
            color: #0d6efd;
        }

    .mega-grid i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        color: #0d6efd;
    }


@media (max-width: 991.98px) {
    .navbar-title{
    font-size: 0; /* Cache le texte */
    }

    .navbar-title::before {
        content: "📋";
        font-size: 1.5rem;
        color: #000;
    }

    .mega-dropdown {
        min-width: 100vw;
        left: 0 !important;
        right: 0 !important;
        border-radius: 0;
    }

    .mega-grid {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

        .mega-grid a {
            flex-direction: row;
            justify-content: flex-start;
            gap: 0.5rem;
            padding: 0.75rem 1rem;
            font-size: 1rem;
        }

        .mega-grid i {
            font-size: 1.2rem;
            margin: 0;
        }

    .dropdown .btn-outline-light {
        font-size: 0;
        transform: translateY(0px);
    }

        .dropdown .btn-outline-light::before {
            content: "👤";
            font-size: 1.5rem;
            color: #000;
        }

    #datetime {
        display: none;
    }
}
.disabled-link {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}


/*Page Index Employee*/
.hover-zoom:hover {
    transform: scale(1.03);
    transition: transform 0.3s ease-in-out;
}

/* Bouton de retour*/
.btn-floating-return {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 22px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 999;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out;
}

    .btn-floating-return:hover {
        background-color: #0b5ed7;
        text-decoration: none;
    }

.animate-icon {
    animation: pulse 1.5s infinite;
}

-webkit-keyframes pulse {
    0%
{
    transform: scale(1);
}

50% {
    transform: scale(1.1);
}

100% {
    transform: scale(1);
}

}

keyframes pulse {
    0%

{
    transform: scale(1);
}

50% {
    transform: scale(1.1);
}

100% {
    transform: scale(1);
}
}

/*Card Pointage historique*/
.card-header.bg-dark {
    background: linear-gradient(to right, #343a40, #212529);
}

.bg-info.text-dark {
    background-color: #d1ecf1 !important;
    color: #0c5460 !important;
}
