/* 
 * Styles principaux pour l'application Restaurant Manager
 */

/* 
 * Variables CSS globales
 */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
}

/* 
 * Styles généraux
 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: #f4f4f4;
}

.section-title {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-800);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 50px;
    background-color: var(--primary-color);
}

/* 
 * Navigation et header
 */
.navbar-brand .logo {
    height: 40px;
}

.nav-link {
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-item {
    margin-right: 0.5rem;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    top: -5px !important;
    right: -10px !important;
    font-size: 0.7rem;
}

/* 
 * Panier latéral
 */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.cart-overlay.show {
    display: block;
}

.cart-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-300);
}

.cart-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--gray-700);
    font-size: 0.9rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.cart-item-quantity button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--gray-300);
    background-color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-item-quantity input {
    width: 40px;
    height: 28px;
    text-align: center;
    border: 1px solid var(--gray-300);
    border-left: none;
    border-right: none;
}

.cart-item-remove {
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1.25rem;
    align-self: flex-start;
}

.cart-footer {
    padding: 1rem;
    border-top: 1px solid var(--gray-300);
}

.cart-promo {
    margin-bottom: 1rem;
}

.cart-promo p {
    margin-bottom: 0.5rem;
    color: var(--success-color);
    font-weight: 500;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.empty-cart-message {
    text-align: center;
    color: var(--gray-600);
    padding: 2rem 0;
}

/* 
 * Carrousel d'images
 */
.carousel-item {
    height: 400px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 1rem;
}

/* 
 * Catégories et plats du menu
 */
.category-nav {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
}

.category-nav::-webkit-scrollbar {
    height: 5px;
}

.category-nav::-webkit-scrollbar-track {
    background: var(--gray-200);
}

.category-nav::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 10px;
}

.category-nav .nav-link {
    margin-right: 0.5rem;
}

.menu-category {
    padding-top: 1rem;
}

.category-title {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-300);
}

.menu-item-card {
    position: relative;
    transition: transform 0.2s;
}

.menu-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.menu-item-image {
    height: 180px;
    object-fit: cover;
}

.category-badge {
    margin-bottom: 0.5rem;
}

.menu-item-description {
    font-size: 0.9rem;
    height: 3.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.price {
    font-weight: 700;
    color: var(--dark-color);
}

.popular-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* 
 * Suivi de commande
 */
.order-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.status-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.status-past .status-icon {
    background-color: var(--success-color);
    color: white;
}

.status-active .status-icon {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
    animation: pulse 2s infinite;
}

.status-future .status-icon {
    background-color: var(--light-color);
    color: var(--secondary-color);
    border: 2px dashed var(--gray-500);
}

.status-connector {
    flex-grow: 1;
    height: 4px;
    margin: 0 10px;
    position: relative;
    top: -30px;
    z-index: 0;
}

.connector-past {
    background-color: var(--success-color);
}

.connector-future {
    background-color: var(--gray-300);
}

.current-status-indicator {
    margin-top: 0.5rem;
}

.order-notification {
    position: fixed;
    top: -100px;
    right: 20px;
    width: 350px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    transition: top 0.5s ease;
}

.order-notification.show {
    top: 20px;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 15px;
}

.notification-icon {
    font-size: 2rem;
    color: var(--success-color);
    margin-right: 15px;
}

.notification-text {
    flex-grow: 1;
}

.notification-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.notification-message {
    margin-bottom: 0;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.order-item-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* 
 * Page de contact
 */
.contact-info {
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-info i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.contact-form {
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 
 * Footer
 */
.main-footer {
    padding-top: 3rem;
    margin-top: 3rem;
}

/* Styles pour l'effet de vague du footer */
.footer-wave-top {
    height: 50px;
    width: 100%;
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%23343a40'/%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='%23343a40'/%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%23343a40'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center top;
    margin-bottom: -2px;
}

/* Style pour le footer sans espacement */
.mt-0 {
    margin-top: 0 !important;
}

/* Style pour le container en pleine largeur */
.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--gray-700);
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

/* 
 * Responsive Adjustments
 */
@media (max-width: 767.98px) {
    .cart-sidebar {
        width: 300px;
    }
    
    .carousel-item {
        height: 300px;
    }
    
    .order-progress {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .status-step {
        flex-direction: row;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .status-icon {
        margin-right: 1rem;
        margin-bottom: 0;
    }
    
    .status-connector {
        width: 4px;
        height: 30px;
        margin: 10px 0;
        position: relative;
        left: 28px;
    }
}

/* Styles pour les animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-in-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Styles pour l'accessibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn:focus, .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Éléments spécifiques */
.cta-section {
    background-color: var(--gray-100);
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* 
 * Nouveau style pour le menu 
 */
.menu-background {
    background-color: #8b2219;
    /* Nous utilisons une couleur de fond moins intense pour que le logo soit visible */
    background: linear-gradient(135deg, #8b2219, #6b1914);
    color: white;
    position: relative;
    padding: 2rem 0;
}

.menu-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.menu-subheading {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.logo-container {
    position: absolute;
    right: 5%;
    top: 0;
    width: 150px;
    height: 150px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10; /* Augmenter le z-index pour s'assurer que le logo est au-dessus */
}

/* Logo généré en CSS */
.restaurant-logo {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #8b2219; /* Ajouter une bordure pour améliorer le contraste */
}

.restaurant-logo::before {
    content: 'LES DÉLICES D\'AMINA';
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 8px;
    font-weight: 800;
    color: #c1372c;
    top: 30px;
    text-transform: uppercase;
}

.restaurant-logo::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid #ff8a00;
    border-radius: 50%;
}

.category-nav-custom {
    margin-bottom: 2rem;
}

.nav-link-custom {
    color: white;
    background-color: rgba(255, 255, 255, 0.3); /* Augmenter l'opacité pour plus de contraste */
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem;
    font-weight: 700; /* Augmenter le poids de la police pour une meilleure lisibilité */
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3); /* Ajouter une ombre pour améliorer la lisibilité */
}

.nav-link-custom:hover, .nav-link-custom.active {
    background-color: #ff8a00;
    color: white;
    box-shadow: 0 0 10px rgba(255, 138, 0, 0.5); /* Ajouter un effet de lueur au survol */
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .menu-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .menu-items-grid {
        grid-template-columns: 1fr;
    }
}

.menu-item-circle-container {
    position: relative;
    text-align: center;
    margin-bottom: 3rem;
}

.menu-item-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.menu-item-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.curved-label {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff8a00;
    color: white;
    border-radius: 25px;
    padding: 7px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.price-tag {
    margin-top: 1rem;
}

.price-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.free-tag {
    display: inline-block;
    background-color: #28a745;
    color: white;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1rem;
}

.cart-add-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ff8a00;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-add-btn:hover {
    background-color: #e67e00;
    transform: scale(1.1);
}

.free-juice-info {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 10px;
    margin: 2rem auto;
    max-width: 80%;
    font-weight: 500;
    font-size: 1.1rem;
}

.more-items-container {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 3rem;
}

.menu-item-card-alt {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.menu-item-card-alt:hover {
    transform: translateY(-5px);
}

.menu-item-image-alt {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-item-details-alt {
    padding: 1.5rem;
}

.menu-item-details-alt h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cart-add-btn-alt {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #ff8a00;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-add-btn-alt:hover {
    background-color: #e67e00;
    transform: scale(1.1);
}

.contact-info-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    margin: 3rem auto;
    max-width: 80%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-item {
    display: flex;
    align-items: center;
    margin: 0 1.5rem;
    color: #8b4513;
    font-weight: 600;
}

.contact-item i {
    margin-right: 0.8rem;
    font-size: 1.2rem;
    color: #c1372c;
}

@media (max-width: 768px) {
    .contact-info-bar {
        flex-direction: column;
        padding: 1rem;
    }
    
    .contact-item {
        margin: 0.5rem 0;
    }
    
    .logo-container {
        position: relative;
        margin: 0 auto 2rem;
        right: auto;
        top: auto;
    }
    
    .menu-heading {
        font-size: 2rem;
    }
    
    .menu-subheading {
        font-size: 2.5rem;
    }
}
