/**
 * Page Cartes - Styles spécifiques
 * @package RoadHouse
 */

/* ===== PAGE LAYOUT ===== */
.page-cartes {
    min-height: 100vh;
    padding: 120px 20px 80px;
}

.page-carte-single {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
}

/* ===== BACK BUTTON ===== */
.page-cartes .back-button,
.page-carte-single .back-button {
    position: fixed;
    top: 30px;
    left: 40px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: var(--color-white);
    background: transparent;
    transition: var(--transition);
    z-index: 1001;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.page-cartes .back-button:hover,
.page-carte-single .back-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.page-cartes .back-button svg,
.page-carte-single .back-button svg {
    width: 24px;
    height: 24px;
}

/* ===== OFFRE BANNER ===== */
.offre-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.offre-icon {
    font-size: 2rem;
}

.offre-text {
    font-size: 1.8rem;
    font-weight: 500;
    font-style: italic;
    color: #ffd700;
    text-align: center;
}

/* ===== CARTES GRID ===== */
.cartes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 80px;
}

/* ===== CARTE CARD ===== */
.carte-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carte-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 0;
}

.carte-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-carte {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: inline-block;
    background: var(--color-white);
    color: var(--color-bg-dark);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-carte:hover {
    background: var(--color-gray-light);
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

/* ===== CARTES FOOTER ===== */
.cartes-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-adresse {
    font-size: 20px;
    color: var(--color-white);
    text-decoration: underline;
    margin-bottom: 10px;
}

.footer-horaires,
.footer-happyhour {
    font-size: 17px;
    color: var(--color-white);
    line-height: 1.6;
    font-weight: 500;
}

/* ===== PAGE CARTE SINGLE ===== */
.carte-single-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.carte-single-image {
    width: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.carte-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .cartes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .page-cartes,
    .page-carte-single {
        padding: 100px 15px 60px;
    }
    
    .page-cartes .back-button,
    .page-carte-single .back-button {
        top: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
    
    .offre-banner {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 40px;
    }
    
    .offre-text {
        font-size: 1.3rem;
    }
    
    .offre-icon {
        font-size: 1.5rem;
    }
    
    .cartes-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        gap: 40px;
    }
    
    .carte-single-container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .cartes-footer {
        display: none;
    }
}

@media (max-width: 480px) {
    .offre-text {
        font-size: 1.1rem;
    }
}
