
/* =========================
   1. REGLAGES GENERAUX
   ========================= */

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

/* Couleur de fond de toute la page */
html {
    background-color: #080b12;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #080b12;
    color: #f1f5f9;
    line-height: 1.7;
    min-height: 100vh;
}

/* =========================
   2. EN-TETE ET NAVIGATION
   ========================= */

header {
    background-color: #0b1220;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 7%;
    border-bottom: 1px solid #243044;
}

.logo {
    color: #38bdf8;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
}

.logo span {
    color: #a3e635;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

nav a {
    color: #f1f5f9;
    text-decoration: none;
}

nav a:hover,
nav a.actif {
    color: #a3e635;
}

/* =========================
   3. CONTENU PRINCIPAL
   ========================= */

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 45px 5%;
}

h2 {
    color: #38bdf8;
    margin-bottom: 20px;
}

.introduction {
    background-color: #111827;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid #243044;
    border-radius: 10px;
}

.sous-titre {
    color: #a3e635;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.introduction h1 {
    color: #f1f5f9;
    font-size: 36px;
    margin-bottom: 15px;
}

.introduction h1 span {
    color: #38bdf8;
}

.introduction p:last-child {
    color: #cbd5e1;
}

/* =========================
   4. ETAPES DU PARCOURS
   ========================= */

.parcours {
    margin-bottom: 40px;
}

.etape {
    background-color: #111827;
    border: 1px solid #243044;
    border-left: 4px solid #38bdf8;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 22px;
}

.numero {
    color: #a3e635;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

.etape h3 {
    color: #38bdf8;
    margin-bottom: 10px;
}

.etablissement {
    color: #a3e635;
    margin-bottom: 15px;
}

.etape p {
    margin-bottom: 12px;
}

.etape p:last-child {
    margin-bottom: 0;
}

/* =========================
   5. TABLEAU
   ========================= */

.objectifs {
    margin-bottom: 40px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #111827;
}

th,
td {
    border: 1px solid #334155;
    padding: 14px;
    text-align: left;
}

th {
    background-color: #123047;
    color: #38bdf8;
}

td {
    color: #f1f5f9;
}

tbody tr:hover {
    background-color: #1e293b;
}

/* =========================
   6. LISTE DES OBJECTIFS
   ========================= */

.matieres {
    background-color: #111827;
    padding: 25px;
    border: 1px solid #243044;
    border-radius: 10px;
    margin-bottom: 35px;
}

.matieres p {
    color: #cbd5e1;
    margin-bottom: 15px;
}

.matieres ul {
    padding-left: 25px;
}

.matieres li {
    margin-bottom: 10px;
}

.matieres li::marker {
    color: #a3e635;
}

/* =========================
   7. PIED DE PAGE
   ========================= */

footer {
    background-color: #0b1220;
    text-align: center;
    padding: 25px;
    border-top: 1px solid #243044;
    color: #aab7c8;
}

/* =========================
   8. ADAPTATION TELEPHONE
   ========================= */

@media screen and (max-width: 700px) {

    header {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        justify-content: center;
        gap: 12px;
    }

    main {
        padding: 25px 15px;
    }

    .introduction h1 {
        font-size: 28px;
    }

    .introduction,
    .etape,
    .matieres {
        padding: 20px;
    }

    th,
    td {
        padding: 10px;
    }
}
