/* ========================================
   STYLES POUR TABLEAUX - MENU MÉDUSA
   ======================================== */

/* --- Styles généraux des tableaux --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 2rem 0;
    font-size: 0.95rem;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

/* --- En-têtes de tableau --- */
thead th,
table:not(:has(thead)) tr:first-child th,
table:not(:has(thead)) tr:first-child td {
    background: linear-gradient(180deg, #eabb23, #d4af37);
    color: #3e3528;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    padding: 14px 18px;
    text-align: left;
    border-bottom: 3px solid #c9a87c;
    font-family: 'Insolente';
}

/* --- Cellules de données --- */
td {
    padding: 12px 18px;
    border-bottom: 1px solid #f0ece6;
    color: #2c2c2c;
    line-height: 1.5;
    vertical-align: middle;
}

/* --- Dernière ligne sans bordure --- */
tr:last-child td {
    border-bottom: none;
}

/* --- Effet zebra (alternance de couleurs) --- */
tbody tr:nth-child(even) {
    background-color: #faf8f5;
}

tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

/* --- Survol des lignes --- */
tbody tr:hover {
    background-color: #f5ede4;
    transition: background-color 0.2s ease;
}

/* --- Colonne des prix (alignement à droite) --- */
td:last-child,
th:last-child {
    text-align: right;
    white-space: nowrap;
}

/* --- Si le tableau a 3 colonnes (ex: nom | 0,3l | 0,5l) --- */
td:nth-last-child(2):not(:last-child) {
    text-align: center;
}


/* --- Titres de sections dans les tableaux --- */
td:first-child strong,
td:first-child b {
    color: #1a1a2e;
    font-weight: 600;
}

/* --- Sous-titres / descriptions --- */
td br + span,
td br + small {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-top: 2px;
}

/* --- Badges / tags (végétarien, vegan, etc.) --- */
.badge {
    display: inline-block;
    background: #e8ddd0;
    color: #5a4a3a;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: 6px;
}

.badge-vegan {
    background: #d4edda;
    color: #155724;
}

.badge-vegetarian {
    background: #cce5ff;
    color: #004085;
}

.badge-spicy {
    background: #f8d7da;
    color: #721c24;
}

/* --- Version mobile : tableaux scrollables --- */
@media screen and (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    td,
    th {
        padding: 10px 14px;
    }


}

/* --- Version très petite (smartphones) --- */
@media screen and (max-width: 480px) {
    table {
        font-size: 0.75rem;
    }

    td,
    th {
        padding: 8px 10px;
    }

    thead th,
    table:not(:has(thead)) tr:first-child th,
    table:not(:has(thead)) tr:first-child td {
        font-size: 0.65rem;
        padding: 10px 12px;
    }
}

/* --- Option : tableau avec bordure minimaliste --- */
table.minimal {
    box-shadow: none;
    border: 1px solid #e8e2d9;
    border-radius: 8px;
}

table.minimal thead th {
    background: #f5f0ea;
    color: #1a1a2e;
    border-bottom: 2px solid #d4c9bc;
}

table.minimal tbody tr:nth-child(even) {
    background-color: #fcfaf7;
}

/* --- Option : tableau élégant (vintage) --- */
table.elegant {
    font-family: 'Georgia', 'Times New Roman', serif;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

table.elegant thead th {
    background: #2c1810;
    color: #f5e6d3;
    font-family: 'Georgia', serif;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

table.elegant td {
    border-bottom: 1px dashed #dcd5cc;
    padding: 14px 20px;
}

table.elegant tr:last-child td {
    border-bottom: none;
}

table.elegant td:last-child {
    color: #8b5e3c;
    font-weight: 600;
}

/* --- Style pour les titres de catégories dans les tableaux --- */
td.category-title {
    background: #f5f0ea;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    color: #5a4a3a;
    padding: 10px 18px;
}

/* --- Alignement des colonnes spécifiques --- */
td.price-small {
    font-size: 0.85rem;
    color: #5a4a3a;
}

td.price-large {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
}

/* --- Espacement pour les listes dans les cellules --- */
td ul,
td ol {
    margin: 4px 0 4px 18px;
    padding: 0;
}

td li {
    margin-bottom: 2px;
}

/* Conteneur principal */
#TableOfContents {
    padding: 1.5rem;
    max-width: 70%;
    margin:auto
       
}
@media(max-width:700px) {
    #TableOfContents {
        max-width: 100%
    }
}

#TableOfContents > ul {
    list-style: none;
    padding: 0;
 display: flex;
 justify-content:center;
}

#TableOfContents > ul > li {
    margin-bottom: 4px;
    margin-right: 1rem;
}

#TableOfContents > ul > li > a {
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    display: block;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Niveau 2 - décalage de 15px */
#TableOfContents > ul > li > ul {
    list-style: none;
    padding-left: 15px;
    margin: 8px 0;
}

#TableOfContents > ul > li > ul > li > a {
    padding: 6px 12px;
    border-left: 3px solid #d4af37;
    color: #f0f0f0;
    font-size: 0.95em;
    text-decoration: none;
}

/* Niveau 3 - décalage de 30px */
#TableOfContents > ul > li > ul > li > ul {
    list-style: none;
    padding-left: 30px;
    margin: 4px 0;
}

#TableOfContents > ul > li > ul > li > ul{
    display: none;
}
#TableOfContents > ul > li > ul > li:hover > ul{
    display: block;
}
#TableOfContents > ul > li > ul > li > ul > li > a {
    padding: 4px 10px;
    border-left: 2px solid #6c757d;
    color: #ececec;
    font-size: 0.9em;
    text-decoration: none;

}

