/* Style général */

header table,
header tr,
header td {
    border: none;
    border-collapse: collapse;
}

body {
    margin: 0;
    font-family: Garamond, Arial, Helvetica, sans-serif;
    background-color: #001C69;
    color: #222;
    line-height: 1.6;
}

/* En-tête */

header {
    background-color: #001C69;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

header h1 {
    margin: 0;
    font-size: 3em;
}

.subtitle {
    margin-top: 10px;
    font-size: 1.1em;
}

/* Professeurs */

.prof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.prof-card {
    background: #ffffff;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.img_prof {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 12px auto;
}

.cours {
    width: 100%;
}

.plus {
    font-size: 1.2em;
}

/* Navigation */

nav {
    background-image: radial-gradient(ellipse farthest-corner, #001C69 60%, #ffffff 95%);
    text-align: center;
    padding: 10px 0;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* Contenu principal */

main {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
    background-color: #001C69;
}
main h2 {
    font-size: 2em;
}
section {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 6px;
}

section h2 {
    margin-top: 0;
    color: #1e2a38;
}

/* Tableau */
#methode .methode-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#methode .m-row {
    background: white;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    flex-wrap: wrap;
}

#methode .m-row p {
    margin: 0;
    line-height: 1.2;
}
/* =========================
   STYLE DU TABLEAU DES COURS
   ========================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95em;
}

table th,
table td {
    padding: 10px 12px;
    text-align: center;
}

table th {
    background-color: #001C69;
    color: #ffffff;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #f2f4f7;
}

table tr:nth-child(odd) {
    background-color: #ffffff;
}

table tr:hover {
    background-color: #dde6f2;
}

table td:first-child {
    font-weight: bold;
    text-align: left;
}

/* Responsive */

@media (max-width: 700px) {

    table,
    table thead,
    table tbody,
    table th,
    table td,
    table tr {
        display: block;
    }

    table th {
        display: none;
    }

    table tr {
        margin-bottom: 15px;
        border: 1px solid #c5cbd3;
        border-radius: 6px;
        overflow: hidden;
    }

    table td {
        text-align: left;
        padding: 10px;
        border-bottom: 1px solid #e1e5ea;
    }
}

/* Footer */

footer {
    text-align: center;
    padding: 20px;
    background-color: #001C69;
    font-size: 0.9em;
}

.blanc {
    color: #FFFFFF;
}
