/* Fichier: styles.css */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --dark-gray: #7f8c8d;
    --link-color: #3498db;
    --link-hover-color: #2980b9;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.blog-post {
    max-width: 900px;
    width: 100%;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.post-header {
    margin-bottom: 40px;
}

.post-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.2;
}

.post-meta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.post-meta {
    font-size: 0.9rem;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.linkedin-icon,.social-share {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s;
}

.linkedin-icon:hover {
    color: #0e76a8; /* LinkedIn's official color */
}

.fa-solid,.fa-regular,.fab {
    color: var(--dark-gray);
}

.hero-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 20px;
}

.post-content h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.post-content h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content strong {
    color: var(--primary-color);
}

.list-container {
    margin-bottom: 20px;
}

.list-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.list-item::before {
    content: "\2022";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
}

.citation {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.7em;
    vertical-align: super;
}

.citation:hover {
    text-decoration: underline;
}

.references {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 2px solid var(--light-gray);
}

.references h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    border-bottom: none;
}

.reference-item {
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* NOUVELLE RÈGLE CSS POUR LES TABLEAUX */
.table-responsive {
    overflow-x: auto; /* Permet le défilement horizontal */
    margin-bottom: 20px;
}

table {
    width: 100%;
    min-width: 600px; /* Assurez-vous que le tableau soit suffisamment large pour déclencher le défilement si nécessaire */
    border-collapse: collapse;
}

caption {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

th, td {
    border: 1px solid var(--light-gray);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

thead th {
    background-color: var(--light-gray);
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

.blog-post {
        padding: 20px;
    }

.post-title {
        font-size: 2rem;
    }

.post-content h2 {
        font-size: 1.6rem;
    }

.post-content h3 {
        font-size: 1.2rem;
    }

.post-meta-container {
        flex-direction: column;
        align-items: flex-start;
    }

.post-meta {
        font-size: 0.8rem;
    }

.references {
        font-size: 0.8rem;
    }
}
