
/* =========================
🌍 GLOBAL
========================= */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    margin: 0;
    padding: 0;
    text-align: center;
}

h1 {
    margin-top: 20px;
}

/* =========================
📦 INDEX (cartes catégories)
========================= */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
}

.card {
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 15px;
    padding: 20px;
    margin: 10px;
    width: 180px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.card h2 {
    margin: 0;
    font-size: 1.4em;
}

.card p {
    font-size: 0.9em;
    color: #666;
}

/* =========================
📊 TABLEAU
========================= */
.table-container {
    width: 95%;
    margin: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    color: black;
    border-radius: 10px;
    overflow: hidden;
}

/* Cellules adaptatives */
th, td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    white-space: normal;
    word-break: break-word;
}

/* En-têtes */
th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* =========================
🔥 NOM OPTIMISÉ
========================= */


/* =========================
🔙 BOUTON
========================= */
.btn {
    display: inline-block;
    margin: 15px;
    padding: 10px 15px;
    background: #ff9800;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

.btn:hover {
    background: #e68900;
}

/* =========================
📱 MOBILE
========================= */
@media screen and (max-width: 600px) {

    .table-container {
        width: 100%;
        padding: 5px;
    }

    table {
        width: 100%;
    }

    th, td {
        font-size: 13px;
        padding: 6px;
    }

    /* NOM encore plus compact */
    td:nth-of-type(1) {
        max-width: 80px;
    }

    /* Colonnes compactes */
    td:nth-of-type(2),
    td:nth-of-type(3),
    td:nth-of-type(4) {
        max-width: 80px;
    }

    h1 {
        font-size: 1.4em;
    }

    .card {
        width: 80%;
    }
}

/* =========================
✨ LISIBILITÉ
========================= */
tr:nth-child(even) {
    background-color: #f9f9f9;
}
