/* Réinitialisation des marges et paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body et fond de page */
body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #333;
}
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* En-tête avec texte et logo de l'INSD */
header {
    position: relative;
    width: 100%;
    height: 180px;  /* Hauteur ajustée de la bannière */
    background-color: #007bff; /* Fond bleu pour la bannière */
    text-align: center;
    color: white;
    padding-top: 10px;
}

.banner-text {
    font-size: 1.8rem;
    font-weight: bold
}

.banner-logo {
    margin-top: 0px;
}

.banner-logo img {
    width: 120px;  /* Taille du logo */
    height: auto;
    object-fit: contain;
border: 5px solid  #007bff; /* Couleur et épaisseur du contour */
  border-radius: 10px; /* Arrondir les coins du contour */
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ajoutez une ombre pour un effet de profondeur */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation pour hover */
}

/* Section présentation */
.presentation {
    padding: 20px;
    text-align: center;
}

.presentation h2 {
    color: #007bff;  /* Bleu */
}

/* Formulaire de connexion */
.login {
    background-color: #f4f4f4;
    padding: 20px;
    max-width: 400px;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login h2 {
    color: #007bff;  /* Bleu */
    margin-bottom: 20px;
}

.login label {
    display: block;
    margin-bottom: 5px;
    color: #007bff;  /* Bleu */
}

.login input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;  /* Bleu */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login button:hover {
    background-color: #0056b3;  /* Bleu plus foncé au survol */
}

.error {
    color: #f7830f;
    margin-top: 5px;
margin-bottom: 5px;

}

/* Section partenaires */
.partners-section {
    text-align: center;
    padding: 20px;  /* Réduction de l'espace */
    background-color: #f4f4f4;
}

.partners-section h2 {
    color: #007bff;  /* Bleu */
    margin-bottom: 20px;
}

.partners .partners-logo {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.partners .partners-logo img {
    width: 80px;  /* Réduction de la taille des logos */
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease-in-out;
}

.partners .partners-logo img:hover {
    transform: scale(1.3);  /* Effet de zoom au survol */
}

/* Footer */
footer {
    background-color: #007bff;  /* Couleur de fond bleu du footer, identique à la bannière */
    color: white;
    padding: 10px;
    text-align: center;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer .footer-links ul {
    list-style: none;
    padding: 0;
}

footer .footer-links ul li {
    display: inline;
    margin-right: 10px;
}

footer .footer-links ul li a {
    color: white;
}

footer .legal-notice {
    margin-top: 10px;
}

/* Section du formulaire */
section.register {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

section.register h2 {
    text-align: center;
    color: #0056a3;
    margin-bottom: 20px;
}

section.register label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

section.register input[type="text"],
section.register input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

section.register button {
    width: 100%;
    padding: 12px;
    background-color: #0056a3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

section.register button:hover {
    background-color: #004080;
}

/* Messages d'erreur et de succès */
section.register .error {
    color: #d93025;
    background-color: #ffe8e6;
    border: 1px solid #d93025;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: center;
}

section.register .success {
    color: #0f9d58;
    background-color: #e6ffed;
    border: 1px solid #0f9d58;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: center;
}


/* Liste des dossiers */
.directory {
    list-style: none;
    padding: 10px;
    margin: 0 auto;
    width: auto;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.directory li {
    list-style: none;
    padding-left: 50px;
    margin: 5px 0;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    transition: background-color 0.3s;
}

.directory li:hover {
    background-color: #f0f8ff;
}

.directory li .folder-icon {
    margin-right: 10px;
   /* color: #007bff; */
    font-size: 1.2rem;
}

.directory li .pdf-icon {
    margin-right: 10px;
    color: #d93025;
    font-size: 1.2rem;
}


/* Barre de recherche*/

.search-bar {
    margin: 10px;
    text-align: right;
}

.search-bar input {
    padding: 8px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-bar button {
    padding: 8px 12px;
    border: none;
    background-color: #f7830f;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.search-bar button:hover {
    background-color: #e3720f;
}



/* Barre de menu */
.menu-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #004d91; /* Couleur principale */
    padding: 10px 20px;
    color: #ffffff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.menu-left a,
.menu-right a {
    color: #ffffff;
    text-decoration: none;
    margin-right: 15px;
    font-weight: bold;
    position: relative;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.menu-left a:hover,
.menu-right a:hover {
    background-color: #005fa3; /* Couleur au survol */
    text-decoration: none; /* Supprime le soulignement au survol */
}

/* Menu actif */
.menu-left a.active,
.menu-right a.active {
    background-color:#f0f8ff; /* Couleur pour l'élément actif */
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

.menu-left a.active::after,
.menu-right a.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background-color: #ffffff; /* Soulignement pour indiquer l'actif */
    border-radius: 3px;
}

/* Conteneur droit */
.menu-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
/* Heure actuelle et temps de session */
#current-time,
* Heure actuelle et temps de session */
#current-time,
#session-timer {
    background-color: #0066cc;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

#current-time:hover,
#session-timer:hover {
    transform: scale(1.1); /* Effet de zoom au survol */
}

#session-timer {
    background-color: #e67e22;
}
/* Responsive */
@media (max-width: 768px) {
    .menu-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-right {
        margin-top: 10px;
        gap: 10px;
    }
}



.dashboard {
    padding: 20px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 20px auto;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.grid-item {
    background: linear-gradient(135deg, #f7830f, #ffcc70);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.grid-item h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
}

.grid-item p {
    font-size: 1.2em;
    margin: 0;
}

/* Hover Effects */
.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.grid-item:hover h3, 
.grid-item:hover p {
    color: #ffffff;
}

/* Links inside grid items */
.grid-item a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.grid-item a:hover {
    color: #f4f4f4;
}

/* Responsive Text */
@media (max-width: 768px) {
    .grid-item h3 {
        font-size: 1.2em;
    }

    .grid-item p {
        font-size: 1em;
    }
}
