/* Palette de couleurs de l'EILCO */
:root {
    --primary-color: #003366; /* Couleur principale */
    --secondary-color: #006699; /* Couleur secondaire */
    --accent-color: #0099cc; /* Couleur d'accentuation */
    --background-color: #f4f4f4; /* Couleur de fond */
    --text-color: #333333; /* Couleur du texte */
}

body {
    background-color: var(--background-color);
    font-family: Arial, sans-serif;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Correction ici */
    min-height: 100vh; /* Remplace height: 100vh */
    width: 100%;
    margin: 0;
}


/* En-tête */
.header {
    background-color: white; /* Fond blanc */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 20px;
    margin: 0 auto;
    position: relative; /* S'assure qu'il est bien placé */
    z-index: 10; /* S'assure qu'il est au-dessus des autres éléments */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ajoute une ombre subtile */
	box-sizing: border-box; /* Assure que le padding ne casse pas la largeur */
}



/* Logos */
.logo-left, .logo-right {
    width: 180px; /* Ajuste la taille des logos */
    height: auto;
}

/* Pour les petits écrans */
@media (max-width: 768px) {
    .header {
        flex-direction: column; /* Place les logos en colonne */
        text-align: center;
    }

    .logo-left, .logo-right {
        width: 100px; /* Réduit la taille des logos sur mobile */
        margin: 5px 0;
    }
}



/* Conteneur du formulaire */
.login-container {
   background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
}

.container {
    max-width: 900px;
    width: 90%;
    margin: 20px auto;
    padding-top: 80px; /* Ajoute un espace pour éviter que le header cache le contenu */
}


.presentation {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
}
.presentation .highlight {
    font-weight: bold;
    color: var(--secondary-color);
}
.presentation a {
    color: var(--accent-color);
    text-decoration: none;
}
.presentation a:hover {
    text-decoration: underline;
}

.presentation h3.warning {
    font-size: 1.3rem;
    color: #d9534f; /* Rouge pour souligner l'importance */
    font-weight: bold;
    margin-top: 20px;
    text-transform: uppercase; /* Optionnel, pour rendre le texte plus percutant */
}

.formations article {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.formations h3 {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.formations ul {
    padding-left: 20px;
}

.formations ul li {
    margin-bottom: 10px;
}

.formations h3.warning {
    font-size: 1.3rem;
    color: #d9534f; /* Rouge pour souligner l'importance */
    font-weight: bold;
    margin-top: 20px;
    text-transform: uppercase; /* Optionnel, pour rendre le texte plus percutant */
}


h1, h2, h3, h4, h5 {
    color: var(--primary-color); /* Même couleur pour tous les titres */
    font-weight: bold; /* Mettre en valeur les titres */
    margin-bottom: 15px;
    text-align: center; /* Centrer les titres pour une meilleure présentation */
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 18px;
}

h5 {
    font-size: 16px;
}


label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: calc(100% - 20px); /* Largeur ajustée pour prendre en compte le padding */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-sizing: border-box; /* Évite les débordements */
    display: block; /* Assure un bon alignement */
    margin-left: auto;
    margin-right: auto;
}

input[type="date"] {
    width: calc(100% - 20px) !important;
    padding: 10px !important;
    margin-bottom: 15px !important;
    border: 1px solid #cccccc !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: white !important;
    color: #333 !important;
    font-size: 16px !important;
}

input[type="button"].btn-submit {
    width: calc(100% - 20px); /* Assure la même largeur que les inputs */
    padding: 10px;
    background-color: var(--primary-color); /* Utilisation de la couleur primaire */
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: block; /* Pour un alignement correct */
    margin-left: auto;
    margin-right: auto;
}

input[type="button"].btn-submit:hover {
    background-color: var(--secondary-color); /* Changement de couleur au survol */
}



/* Personnalisation supplémentaire pour WebKit (Chrome, Safari) */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.5); /* Change la couleur de l'icône du calendrier */
    cursor: pointer;
    opacity: 0.7;
}

/* Ajustement pour Firefox */
input[type="date"]::-moz-placeholder {
    color: #999;
}

input[type="date"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}


button {
    width: calc(100% - 20px); /* Assure la même largeur que les inputs */
    padding: 10px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: block; /* Évite un éventuel désalignement */
    margin-left: auto;
    margin-right: auto;
}


button:hover {
    background-color: var(--secondary-color);
}

.forgot-password {
    text-align: center;
    margin-top: 10px;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.back-to-login {
    text-align: center;
    margin-top: 10px;
}

.back-to-login a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.back-to-login a:hover {
    text-decoration: underline;
}

.footer {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    text-align: center; /* Centre le texte */
    padding: 10px 0;
    /*position: fixed; /* Fixe le footer en bas */
    bottom: 0;
    left: 0;
    box-sizing: border-box; /* Assure que le padding ne casse pas la largeur */
}

.footer p {
    margin: 0; /* Enlève les marges par défaut */
    padding: 0; /* Enlève les paddings par défaut */
}


.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Style pour la section catégorie */
.categorie {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
}

.categorie h2 {
    color: #333;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Bouton Valider 
.btn-submit {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background-color: #0056b3;
}
*/
/* Section login */
.login {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
}

.login h2 {
    color: #333;
}

.login-link {
    color: #007BFF;
    font-weight: bold;
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

.table-etablissements {
    width: 100%;
    max-width: 1200px;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.table-etablissements td, .table-etablissements th {
    border: none; /* Supprime la bordure des cellules */
    padding: 10px;
    text-align: center;
    width: 20%; /* Toutes les colonnes auront la même largeur */
	/*box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); /* Applique un ombrage léger autour des cellules */
}

.table-etablissements th {
    background-color: var(--primary-color);
    color: white;
}

/* Optionnel : Limite la largeur des cellules */
.table-etablissements td, .table-etablissements th {
    max-width: 200px; /* Limite la largeur des cellules si nécessaire */
    overflow: hidden;
    /*text-overflow: ellipsis; /* Affiche des points de suspension si le texte est trop long */
}

.table-input, .table-select {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

/* Style pour les textarea */
.textarea {
    width: 100%; /* Utilise toute la largeur du conteneur */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-sizing: border-box; /* Assure que le padding ne fait pas déborder le textarea */
    font-size: 16px; /* Taille de la police */
    resize: vertical; /* Permet de redimensionner verticalement */
}

/* Style de base pour les inputs de type file */
input[type="file"] {
    display: none; /* Masque le champ de fichier par défaut */
}

/* Masquer l'élément file d'origine */
input[type="file"] {
    display: none; 
}

/* Créer un bouton personnalisé */
.custom-file-upload {
    width: calc(100% - 20px); 
    padding: 10px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.custom-file-upload:hover {
    background-color: var(--secondary-color); 
}


.navbar {
    background-color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container,
.navbar-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo,
.navbar-brand {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-links,
.navbar-menu {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    flex: 1;
}

.nav-links li a,
.navbar-menu li a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #ffcc00;
}

.navbar-menu li a:hover {
    color: white;
}

.logout {
    color: #ff4d4d;
}

.navbar-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #003366;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    border-radius: 6px;
    min-width: 140px;
    transition: background-color 0.3s ease;
}

.navbar-link:hover {
    background-color: var(--secondary-color);
}

.specialite-intro {
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

.specialite-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.btn-specialite {
    background-color: #f0f4ff;
    color: #003366;
    padding: 14px 20px;
    border: 1px solid #c6d4ff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: block;
    text-align: center;
}

.btn-specialite:hover {
    background-color: #d6e4ff;
    transform: translateY(-2px);
    color: #001f4d;
}

