/* Style de base */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #222;
}

header {
    background-color: #004080;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.1em;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

main {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

h1, h2, h3 {
    color: #004080;
}

p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
}

/* Boutons */
.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    background-color: #ffcc00;
    color: #222;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.2s;
}

.button:hover {
    background-color: #ff9900;
    transform: scale(1.05);
}

/* Table améliorée */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #a8c6ff;
    color: white;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: inherit;
    color: inherit;
    cursor: default;
}

.colonne-gauche {
    background-color: #f7eded;
    font-weight: bold;
}

a {
    text-decoration: none;
    color: #004080;
    font-weight: 500;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
    color: #ff9900;
}

/* Responsive Design Amélioré pour Smartphone */
@media screen and (max-width: 768px) {
    table {
        border: 0;
    }

    table caption {
        font-size: 1.3em;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 10px;
        display: block;
        border-bottom: 2px solid #ddd;
    }

    td {
        display: flex;
        justify-content: space-between;
        text-align: left;
        padding: 10px;
        position: relative;
    }

    td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #004080;
    }

    tr td:first-child {
        background-color: #f0f0f0;
    }
}

/* Images responsive */
img.responsive {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

/* Vidéos responsive */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 10px auto;
}

.video-responsive iframe,
.video-responsive object,
.video-responsive embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ----------------------------------- */
/* Améliorations pour la page Sommaire */
/* ----------------------------------- */

h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
    text-align: center;
}

h2 {
    font-size: 1.5em;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    border-bottom: 2px solid #004080;
    padding-bottom: 5px;
}

h3 {
    font-size: 1.2em;
    margin-top: 1em;
    margin-bottom: 0.5em;
    background-color: #e8f0ff;
    padding: 8px 12px;
    border-left: 4px solid #004080;
    border-radius: 4px;
}

ul {
    margin-left: 20px;
    margin-bottom: 1em;
    padding-left: 20px;
    list-style: none;
}

ul > li {
    margin: 6px 0;
    position: relative;
    padding-left: 20px;
}

ul > li::before {
    content: "➤";
    position: absolute;
    left: 0;
    color: #004080;
}

p {
    margin-bottom: 1.5em;
    line-height: 1.7;
    font-size: 1.1em;
}
