/* Conteneur du tableau pour scroll horizontal */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Style général du tableau */
.conservation-table {
    width: 100%;
    border-collapse: collapse;
}

/* TITRES DE SECTION (ex : Viande crue / cuite) */
.conservation-table thead .section-title {
    background-color: #A3C95A; 
    color: #ffffff;            
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 16px;
    text-transform: uppercase;
    border: 1px solid #6e9b2a;
}

/* EN-TÊTES DES COLONNES */
.conservation-table thead tr:not(:first-child) {
    background-color: #E1E4E5; 
    color: #2E4C47;  
	/* Bleu-vert foncé */
}

.conservation-table th {
    padding: 12px 15px;
    border: 1px solid #eee;
	font-size: 16px;
    text-align: left;
    font-weight: normal;       
    color: #000000;            
    text-transform: uppercase;
}

/* Cellules */
.conservation-table td {
    padding: 12px 15px;
    border: 1px solid #eee;
    text-align: left;
    font-weight: normal;
}

/* Alternance des couleurs */
.conservation-table tbody tr:nth-child(even) {
    background-color: #f5f8f0;
}

/* Hover */
.conservation-table tbody tr:hover {
    background-color: #e2ecf5;
}

/* Groupes (si encore utilisés ailleurs) */
.conservation-table .group-title td {
    background-color: #e6f0d8;
    font-weight: 700;
    text-transform: uppercase;
    color: #4d6d28;
    font-size: 16px;
    padding: 14px;
    border: none;
}

/* Responsive version (mobile) */
@media (max-width: 768px) {
    .conservation-table {
        border: 0;
    }
	
	/* Masquer uniquement les lignes d'en-tête classiques, pas les titres de section */
    .conservation-table thead tr:not(.section-title-row) {
        display: none;
    }

    .conservation-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        background-color: #fff;
    }

    .conservation-table td {
        display: block;
        text-align: right;
        border: none;
        padding-left: 50%;
        position: relative;
        font-size: 14px;
    }

    .conservation-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        top: 12px;
        text-align: left;
        font-weight: 700;
        color: #333;
        text-transform: uppercase;
        font-size: 13px;
    }

    .conservation-table .group-title td {
        display: block;
        padding-left: 15px;
        text-align: left;
        font-weight: 700;
        font-size: 16px;
        border: none;
        background-color: #e6f0d8;
        color: #4d6d28;
        position: relative;
    }
}
