/* --- Reset simple --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    padding: 0;
    margin: 0;
}

/* --- En-tête --- */
header {
    background: linear-gradient(135deg, #3b5998, #6d84b4);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* --- Citation --- */
.citation {
    background: #f0f0f0;
    padding: 1.5rem;
    text-align: center;
    font-style: italic;
    border-left: 5px solid #3b5998;
    margin: 2rem auto;
    max-width: 700px;
}

.citation cite {
    display: block;
    margin-top: 0.5rem;
    font-weight: bold;
    color: #555;
}

/* --- Corps principal --- */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

main p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* --- Cartes pour les trois pages --- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.card h2 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.card a {
    color: #3b5998;
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

.illu {
	display: block;
	margin: 2rem auto;
	max-width: 100%;
	height: auto;
}

/* --- Sections générales --- */
main section {
    margin: 3rem auto;
    max-width: 1000px;
    padding: 0 1rem;
}

main section h2 {
    font-size: 1.6rem;
    color: #3b5998;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3b5998;
    padding-bottom: 0.5rem;
}

/* --- Articles pour les 9 dynamiques --- */
article {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

article:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

article h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #2d4373;
}

article p {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
}

/* Texte secondaire (sources, correspondances) */
p.researchers {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* --- Liste des superviseurs --- */
.superviseurs-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.superviseurs-list li {
    background: #f8f8f8;
    border-left: 4px solid #3b5998;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
    color: #333;
    transition: background 0.2s ease;
}

.superviseurs-list li:hover {
    background: #eef3fb;
}

/* --- Styles de supervision détaillés --- */
.supervision-styles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.style-box {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border-left: 5px solid #3b5998;
    transition: transform 0.2s ease, background 0.2s ease;
}

.style-box:hover {
    background: #eef3fb;
    transform: translateY(-3px);
}

.style-box h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2d4373;
}

/* --- Liste des étapes méthodologiques --- */
.method-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.method-list li {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: #f9f9f9;
    border-left: 4px solid #3b5998;
    border-radius: 6px;
    line-height: 1.5;
    transition: background 0.2s ease;
}

.method-list li:hover {
    background: #eef3fb;
}

.method-list a {
    color: #3b5998;
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.method-list a:hover {
    color: #2d4373;
}

/* --- Encarts pour dissonances --- */
.conflict-box {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: #fdfdfd;
    border-left: 4px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.conflict-box p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #333;
}

.conflict-box .creator {
    color: green;
    font-weight: bold;
}

.conflict-box .destructor {
    color: crimson;
    font-weight: bold;
}

/* --- Tableaux comparatifs --- */
.table-container {
    overflow-x: auto;
    margin-top: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

table thead {
    background: #3b5998;
    color: white;
}

table thead th {
    padding: 0.8rem;
    text-align: center;
    font-weight: bold;
}

table tbody td, 
table tbody th {
    padding: 0.6rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

/* Effet au survol */
table tbody tr:hover {
    background: #eef3fb;
}

/* Styles pour les emojis */
td {
    font-size: 1.2rem;
}

/* Mise en couleur automatique */
/* Version fiable avec classes */
td.ok { color: green; font-weight: bold; }
td.bad { color: crimson; font-weight: bold; }
td.warn { color: darkorange; font-weight: bold; }

/* --- Section liens supplémentaires --- */
.links-section {
    text-align: center;
    margin: 3rem 0;
}

.links-section h2 {
    font-size: 1.4rem;
    color: #3b5998;
    margin-bottom: 1rem;
}

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

.links-section li {
    display: inline-block;
    margin: 0 1rem;
}

.links-section a {
    color: #3b5998;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.links-section a:hover {
    color: #2d4373;
    text-decoration: underline;
}

/* --- Pied de page --- */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}
