.infos-page {
    margin-top: 100px; /* Augmenté pour laisser de la place au header fixe */
    padding: 40px 0;
    background-color: #F5F5F5;
    color: #333333;
    font-family: 'Roboto', sans-serif;
    position: relative; /* Assure que la page reste dans le flux */
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.infos-page h1 {
    font-size: 34px;
    font-weight: 700;
    color: #1F286BFF;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.infos-page h1::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background-color: #1F286BFF;
    margin: 10px auto 0;
}

.info-section {
    margin-bottom: 30px;
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.info-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1F286BFF;
    margin-bottom: 15px;
    border-left: 4px solid #1F286BFF;
    padding-left: 10px;
}

.info-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1F286BFF;
    margin: 10px 0;
}

.info-section p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 10px;
}

.info-section i {
    color: #1F286BFF;
    margin-right: 10px;
    font-size: 20px;
}

.info-section strong {
    color: #1F286BFF;
}

.info-section a {
    color: #1F286BFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-section a:hover {
    color: #CCCCCC;
}

.info-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}

.info-section ul li {
    position: relative;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.info-section ul li::before {
    content: '•';
    color: #1F286BFF;
    position: absolute;
    left: 0;
    font-size: 18px;
}

/* Grilles */
.food-grid,
.transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.transport-card {
    background-color: #F9F9F9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.transport-card:hover {
    transform: translateY(-3px);
}

/* Flip cards pour food trucks */
.food-card {
    perspective: 1000px;
    height: 250px;
    cursor: pointer;
    transform-style: preserve-3d;
    position: relative;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-inner.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background-color: #F9F9F9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.card-front {
    transform: translateZ(0);
    z-index: 2;
}

.card-back {
    transform: rotateY(180deg) translateZ(0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-inner.flipped .card-back {
    opacity: 1;
}

.food-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 10px;
}

.more-info {
    font-size: 12px;
    color: #1F286BFF;
    font-style: italic;
}

.full-width-img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 15px;
}

.map {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1; /* Assure que la carte reste sous le header */
}

/* Ajustement des contrôles Leaflet */
.leaflet-control-zoom {
    z-index: 2; /* Contrôles au-dessus de la carte mais sous le header */
}

/* Firefox-specific fix */
@-moz-document url-prefix() {
    .card-back {
        visibility: hidden;
    }

    .card-inner.flipped .card-back {
        visibility: visible;
    }

    .card-front {
        visibility: visible;
    }

    .card-inner.flipped .card-front {
        visibility: hidden;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .infos-page {
        padding: 20px 0;
    }

    .infos-page h1 {
        font-size: 28px;
    }

    .info-section h2 {
        font-size: 20px;
    }

    .info-section p,
    .info-section ul li {
        font-size: 14px;
    }

    .food-grid,
    .transport-grid {
        grid-template-columns: 1fr;
    }

    .food-card {
        height: 300px;
    }

    .food-img {
        width: 60px;
        height: 60px;
    }

    /* Modifié pour mobile : l'image passe sous le texte proprement */
    .bar-highlight {
        flex-direction: column !important;
        text-align: center;
        gap: 20px;
    }

    .bar-image-container {
        max-width: 140px !important;
        margin: 0 auto;
    }

    .new-food-grid {
        grid-template-columns: 1fr; /* Une seule colonne propre sur smartphone */
        gap: 15px;
    }

    .card-img-container {
        height: 180px; /* Un peu plus haut sur mobile pour le rendu */
    }
}

@media (max-width: 576px) {
    .infos-page h1 {
        font-size: 24px;
    }

    .info-section {
        padding: 15px;
    }

    .info-section h2 {
        font-size: 18px;
    }
}

/* ==========================================================================
   Nouveau Design des Food Trucks (Grille Fixe à 4)
   ========================================================================== */
.intro-restauration {
    margin-bottom: 20px;
}
.intro-restauration .slogan {
    color: #1F286BFF;
    margin-top: 5px;
}

/* Encadré du Bar réaligné en Flexbox avec l'image */
.bar-highlight {
    background-color: #1f286b0a;
    border: 1px solid #1F286BFF;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex; /* Active l'alignement horizontal côte à côte */
    align-items: center;
    gap: 25px; /* Espace entre le paragraphe et la bouteille */
    overflow: hidden; /* Empêche tout débordement visuel */
}

.bar-text-content {
    flex: 2; /* Donne plus de place au texte explicatif */
}

.bar-image-container {
    flex: 1;
    max-width: 150px !important; /* Force la largeur max du conteneur de l'image */
    width: 150px !important;
    text-align: center;
}

/* CORRECTION DU BUG D'IMAGE GÉANTE */
.bar-image-container img {
    width: 100% !important; /* Force l'image à ne pas dépasser les 150px du conteneur */
    max-width: 100% !important;
    height: auto !important;
    max-height: 220px !important; /* Sécurité sur la hauteur */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Joli effet de relief */
    object-fit: contain !important; /* Conserve les proportions sans étirer */
}

/* Grille principale : s'adapte à 4 colonnes sur grand écran */
.new-food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
    align-items: stretch;
}

/* Style de la carte */
.new-food-card {
    background: #F9F9F9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

/* Conteneur de l'image (format paysage fixe) */
.card-img-container {
    width: 100%;
    height: 150px;
    position: relative;
    background-color: #1F286BFF; /* Fond de secours si l'image saute */
}

/* Style forcé pour l'image */
.card-img-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important; /* Annule le style rond qui cassait Soba */
    display: block;
}

/* Design de secours si l'image est manquante (Soba) */
.fallback-img {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 40px;
    background: linear-gradient(135deg, #1F286BFF, #3b4ba3);
}

/* Contenu textuel sous l'image */
.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    margin: 0 0 5px 0 !important;
    font-size: 18px !important;
    color: #1F286BFF;
}

.food-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.card-body p {
    font-size: 13.5px !important;
    line-height: 1.5;
    color: #555;
    margin: 0;
}
