* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
}

body {
    width: 100%;
    min-height: 100vh;

    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;

    background-image: url("mur de fond.png");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;

    /*
     * Largeur fluide :
     * le navigateur adapte automatiquement les marges
     */
    padding-left: clamp(10px, 10vw, 150px);
    padding-right: clamp(10px, 10vw, 150px);
    padding-top: 20px;
}


/* =========================
   TITRE
   ========================= */

h1 {
    font-size: clamp(24px, 4vw, 36px);

    margin-bottom: clamp(15px, 3vw, 30px);

    color: blue;

    text-decoration: underline;

    text-align: center;
}


/* =========================
   TABLEAU
   ========================= */

table {
    width: 100%;

    border-collapse: collapse;

    margin-bottom: 2em;

    color: black;

    border: 2px solid black;

    /*
     * Permet aux colonnes de s'adapter
     */
    table-layout: auto;
}


/* =========================
   CELLULES
   ========================= */

th,
td {
    border: 2px solid black;

    /*
     * La taille évolue selon l'écran
     */
    padding: clamp(5px, 1.2vw, 10px);

    text-align: center;

    /*
     * Empêche les longs textes de
     * faire dépasser le tableau
     */
    overflow-wrap: anywhere;
    word-break: normal;

    /*
     * Taille de texte fluide
     */
    font-size: clamp(12px, 1.4vw, 16px);
}


th {
    background-color: #f2f2f2;

    font-weight: bold;
}


/* Cellules du tableau */

td {
    background-color: lightblue;
}


/* =========================
   CAPTION
   ========================= */

caption {
    font-size: clamp(18px, 3vw, 24px);

    font-weight: bold;

    margin-bottom: 0.5em;

    text-decoration: underline;
}


/* =========================
   LIGNES
   ========================= */

tr:nth-child(odd) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #e9e9e9;
}


/* =========================
   LIENS
   ========================= */

a {
    color: blue;

    /*
     * Très important pour les petits écrans :
     * un lien très long ne fait pas
     * dépasser le tableau.
     */
    overflow-wrap: anywhere;
}

a:hover {
    color: red;

    text-decoration: none;

    transition: color 0.3s ease;
}


/* =========================
   ACCESSIBILITÉ
   ========================= */

:focus {
    outline: 2px solid #2a9df4;

    outline-offset: 2px;
}


/* =========================
   TABLEAU RESPONSIVE
   ========================= */

/*
 * Le tableau peut être plus large que l'écran,
 * mais c'est le conteneur qui défile horizontalement.
 */

@media (max-width: 700px) {

    body {
        padding-left: 10px;
        padding-right: 10px;
    }

    /*
     * On permet au tableau de conserver
     * une largeur lisible.
     */
    table {
        display: block;

        width: 100%;

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }

    thead,
    tbody {
        width: 100%;
    }

    th,
    td {
        min-width: 100px;

        font-size: 13px;

        padding: 6px;
    }

    caption {
        font-size: 20px;
    }
}