/* ==========================================================================
   Page Fiche Restaurant - Styles
   ========================================================================== */

/* Services du restaurant */
.services-restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: background 0.2s;
}

.service-item:hover {
    background: rgba(255,255,255,0.15);
}

.service-item i {
    color: #ffab40;
    font-size: 1.3rem;
}

.service-item span {
    font-size: 0.9rem;
}

/* Badge type de cuisine */
.badge-cuisine {
    display: inline-block;
    background: linear-gradient(135deg, #e65100, #ff6d00);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 10px;
}

/* Galerie photo restaurant */
#idbandeau_images_restaurant {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

#idbandeau_images_restaurant img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Photo principale */
.atf-photo-main {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.atf-photo-main img {
    width: 100%;
    height: auto;
    object-fit: cover;
    cursor: pointer;
}

.atf-more-photos {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.atf-more-photos:hover {
    background: rgba(0,0,0,0.85);
    transform: scale(1.05);
}

.atf-more-photos i {
    font-size: 1.1rem;
}

/* Modal galerie */
.atf-gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    transition: background 0.5s ease;
}

.atf-gallery-modal.show {
    display: flex;
    flex-direction: column;
}

.atf-gallery-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10002;
}

.atf-gallery-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
    z-index: 10001;
}

.atf-gallery-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    padding: 8px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    width: fit-content;
    transition: all 0.3s;
}

.atf-gallery-controls.active {
    background: rgba(230, 81, 0, 0.6);
}

.atf-gallery-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.atf-gallery-controls input[type="checkbox"] {
    display: none;
}

.atf-gallery-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
}

.atf-gallery-slides {
    width: 100%;
    max-width: 1200px;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.atf-gallery-slide {
    display: none;
    width: 100%;
    text-align: center;
}

.atf-gallery-slide.active {
    display: block;
}

.atf-gallery-slide img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.atf-gallery-prev,
.atf-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10001;
}

.atf-gallery-prev {
    left: 15px;
}

.atf-gallery-next {
    right: 15px;
}

.atf-gallery-prev:hover,
.atf-gallery-next:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.1);
}

.atf-gallery-prev i,
.atf-gallery-next i {
    font-size: 2rem;
}

/* Image sans photo */
.image-container-ssphoto {
    position: relative;
    width: 100%;
}

.ssphoto {
    width: 100%;
    height: auto;
}

.overlay-ssphoto {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.4);
}

.centered-text-ssphoto {
    text-align: center;
    color: white;
    font-size: 1.2rem;
    padding: 20px;
}

.centered-text-ssphoto img {
    margin-top: 15px;
    max-width: 100px;
}

.bottom-right-text-ssphoto {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .services-restaurant-grid {
        grid-template-columns: 1fr;
    }

    .atf-gallery-prev,
    .atf-gallery-next {
        width: 40px;
        height: 40px;
    }

    .atf-gallery-prev i,
    .atf-gallery-next i {
        font-size: 1.5rem;
    }

    .atf-gallery-content {
        padding: 60px 15px;
    }
}

@media (max-width: 480px) {
    .badge-cuisine {
        display: block;
        margin-left: 0;
        margin-top: 8px;
        width: fit-content;
    }
}
