/* ============================================
   HEADER MINIMALISTE (style ReadTheDocs)
   ============================================ */

.site-header {
    background-color: #2c3e50;
    color: white;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    height: 50px;
}

.home-icon {
    font-size: 1.3em;
    color: #ffffff !important;
    text-decoration: none !important;
    margin-right: 20px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

/* Forcer aussi sur les états visited et active */
.home-icon:link,
.home-icon:visited,
.home-icon:active {
    color: #ffffff !important;
}

.home-icon:hover {
    color: #3498db !important;
    transform: scale(1.1);
}


.page-title {
    font-size: 1.1em;
    font-weight: 500;
    color: #ecf0f1;
}

/* Ajuster le contenu pour ne pas être caché sous le header */
#content {
    margin-top: 70px !important;
}

/* Ajuster aussi la sidebar */
#table-of-contents {
    margin-top: 70px !important;
}

/* ============================================
   AMÉLIORATIONS GÉNÉRALES

   ============================================ */
/* ============================================
   FOOTER
   ============================================ */
footer {
    margin-top: 50px;
    padding: 20px;
    background-color: transparent;
    border-top: 1px solid #dee2e6;
    text-align: center;
    color: #95a5a6; /* Texte plus clair par défaut */
    font-size: 0.85em;
}

footer p {
    margin: 5px 0;
}

footer .author {
    font-weight: 400; /* Moins gras */
    color: #7f8c8d; /* Gris moyen */
}

footer .date,
footer .creator {
    color: #95a5a6; /* Gris clair */
    font-size: 0.9em;
}

footer .license {
    font-size: 0.9em;
    font-style: italic;
    color: #95a5a6;
}

footer a {
    color: #3498db;
    text-decoration: none;
    border: none !important;
}

footer a:hover {
    text-decoration: underline;
    color: #2980b9;
}



/* Amélioration de la lisibilité */
body {
    font-size: 16px;
    line-height: 1.6;
}

/* Style pour les liens HAL et ORCID */
a[href*="hal.science"],
a[href*="orcid.org"] {
    color: #e74c3c;
    font-weight: 500;
}


/* Style pour les projets */
.project-link {
    display: inline-block;
    padding: 5px 15px;
    margin: 5px;
    background-color: #e8f4f8;
    border-left: 4px solid #3498db;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.project-link:hover {
    background-color: #d4e9f2;
    transform: translateX(5px);
}

/* Responsive design pour mobile */
@media (max-width: 768px) {
    .top-menu {
        padding: 10px;
    }
    
    .top-menu a {
        display: block;
        margin: 5px 0;
        padding: 8px;
    }
}

/* Style pour les boîtes d'information */
.info-box {
    background-color: #e8f4f8;
    border-left: 5px solid #3498db;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.warning-box {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

/* Amélioration des tableaux */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

table th {
    background-color: #3498db;
    color: white;
    padding: 12px;
    text-align: left;
}

table td {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}

table tr:hover {
    background-color: #f8f9fa;
}

/* Style pour les badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    background-color: #3498db;
    color: white;
    border-radius: 12px;
    font-size: 0.85em;
    margin: 0 5px;
}

.badge-success {
    background-color: #27ae60;
}

.badge-warning {
    background-color: #f39c12;
}

.badge-danger {
    background-color: #e74c3c;
}

/* Header avec menu - sans centrage */
.site-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 20px;
}

.header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 340px;
}

.page-title {
    font-size: 1.1em;
    font-weight: 500;
    color: #ecf0f1;
    margin-left: 15px; /* Espace après l'icône */
}

.header-nav {
    display: flex;
    gap: 3px;
}

.header-nav a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.85em;
    white-space: nowrap;
}

.header-nav a:hover {
    background-color: #34495e;
    color: #3498db;
}

a:hover {
    text-decoration: underline;
    border: none;
}
/* Supprimer tous les rectangles autour des liens */
a, a:link, a:visited, a:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Pour les icônes dans les liens */
a i, a .fas, a .fab, a .ai {
    border: none !important;
}

/* Couleurs pour différents types de liens */
a[href*="hal.science"] {
    color: #2980b9;
}

a[href*="doi.org"] {
    color: #e74c3c;
}
