/*********************/
/*** Tableau prix ****/
/*********************/

/* Styles pour le tableau de tarifs - La Bergerie */

.tarifs-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.table-tarifs {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Ajouts pour le mobile */
    table-layout: fixed;
    /* Force le respect des largeurs */
    word-wrap: break-word;
    /* Coupe les mots si nécessaire */
}

/* En-tête principal */
.table-tarifs th {
    background-color: #e2e2d9;
    /* Brun/Taupe pour le rappel nature */
    color: white;
    padding: 15px;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
}

.table-tarifs th.price-col {
    text-align: right;
    font-weight: bold;
    color: #2c3e50;
}

.price-col {
    text-align: right;
    font-weight: bold;
    color: #2c3e50;
}

/* Lignes de catégories (Chambres, Dortoirs, etc.) */
.category-header {
    background-color: #e2e2d9 !important;
    font-weight: bold;
    color: #5d4a41;
    text-align: left;
    padding: 10px;
    font-variant: small-caps;
}

/* Style des cellules */
.table-tarifs td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

/* Notes de bas de page */
.footer-note {
    margin-top: 15px;
    font-size: 0.85em;
    font-style: italic;
    color: #7f8c8d;
    text-align: center;
}

/* 1. Définition des colonnes sur tous les écrans */
.table-tarifs {
    table-layout: fixed;
    /* Force le respect des largeurs définies ci-dessous */
    width: 100%;
}

/* La première colonne (le texte) prend 75% et DOIT revenir à la ligne */
.table-tarifs td:first-child,
.table-tarifs th:first-child {
    width: 75%;
    white-space: normal;
    /* Force le texte à revenir à la ligne si l'espace manque */
    word-break: break-word;
    /* Aide à couper les groupes de mots complexes */
}

/* La colonne des prix prend 25% et reste sur une ligne */
.price-col {
    width: 25%;
    text-align: right;
    /* Garde le prix "50.- / pers." soudé */
    vertical-align: middle;
    /* Aligne le prix au centre si le texte à gauche fait 2 lignes */
}

/* 2. Réduction du padding et de la police pour le mode mobile */
@media screen and (max-width: 480px) {

    .table-tarifs td,
    .table-tarifs th {
        padding: 8px 10px !important;
        /* Réduction de l'espace interne (initialement 12px 15px) */
        font-size: 0.85em;
        /* Réduction légère du texte pour gagner de la place */
    }

    .tarifs-container h2 {
        font-size: 1.2em;
        /* Ajustement du titre pour les petits écrans */
    }
}

/*********************************/
/*** Tableau Allergies (Nouveau) */
/*********************************/

/* Conteneur principal */
.allergy-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    max-width: 1000px;
    margin: 40px auto;
}

/* En-tête de la section */
.allergy-header {
    text-align: center;
    margin-bottom: 30px;
}

.allergy-intro {
    font-style: italic;
    font-size: 1.1em;
    color: #5d4a41;
    max-width: 800px;
    margin: 0 auto;
}

/* Boîte contenant la liste des allergènes */
.allergy-list-box {
    background-color: #f9f7f6;
    border: 1px solid #e2e2d9;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 35px;
}

.allergy-list-box h3 {
    text-align: center;
    color: #5d4a41;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 1em;
    letter-spacing: 1px;
}

/* Liste sur 2 colonnes */
.allergy-list {
    column-count: 2;
    column-gap: 40px;
    color: #5d4a41;
    padding-left: 20px;
    margin: 0;
    line-height: 1.6;
}

/* --- Le Tableau --- */

/* Wrapper pour permettre le scroll sur mobile */
.allergy-table-responsive {
    width: 100%;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.allergy-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    /* Force l'apparition d'une barre de défilement sur petit écran */
}

/* En-têtes du tableau */
.allergy-table th {
    background-color: #e2e2d9;
    color: #4a3c34;
    padding: 12px 10px;
    text-align: center;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #c8c8bd;
}

/* Cellules du tableau */
.allergy-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
    vertical-align: middle;
}

/* Style spécifique pour la 1ère colonne (Noms des plats) */
.allergy-table th.col-dish,
.allergy-table td.col-dish {
    text-align: left;
    padding-left: 15px;
}

.allergy-table td.col-dish {
    font-weight: bold;
    color: #5d4a41;
    width: 30%;
    /* Garde une bonne largeur pour le nom du plat */
}

/* Les croix (X) */
.allergy-mark {
    color: #b5a397;
    font-weight: 900;
    font-size: 1.2em;
}

/* --- Adaptations Mobile --- */
@media screen and (max-width: 768px) {

    /* La liste passe sur 1 seule colonne */
    .allergy-list {
        column-count: 1;
    }

    .allergy-wrapper h2 {
        font-size: 1.5em;
    }
}