/*
===========================================
    ALLO COUSCOUS - STYLE CSS
    Restaurant Marocain - Ngaparou, Sénégal
===========================================
*/

/* ========== VARIABLES CSS ========== */
:root {
    /* Couleurs principales */
    --primary: #A64B2A;           /* Terracotta */
    --primary-dark: #8B3D22;
    --primary-light: #C75D35;
    --accent-gold: #C5A059;       /* Or */
    --accent-gold-light: #D4B56A;
    --deep-green: #2D3E35;
    
    /* Couleurs de fond */
    --bg-light: #FAF9F6;
    --bg-dark: #121212;
    --bg-cream: #FDF8F3;
    --bg-section: #F5F0EB;
    
    /* Couleurs de texte */
    --text-dark: #2D2D2D;
    --text-light: #6B6B6B;
    --text-white: #FFFFFF;
    
    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.2);
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50px;
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== NAVIGATION ========== */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    transition: var(--transition-base);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

.navbar-brand img {
    height: 60px;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 10px 18px !important;
    margin: 0 2px;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
    background: rgba(166, 75, 42, 0.08);
}

.navbar-nav .nav-link.active {
    color: var(--text-white) !important;
    background: var(--primary);
}

.navbar-toggler {
    border: none;
    padding: 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23A64B2A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Bouton Commander dans navbar */
.btn-nav-commander {
    background: var(--primary) !important;
    color: var(--text-white) !important;
    padding: 12px 24px !important;
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.btn-nav-commander:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========== HERO SECTION ========== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(166, 75, 42, 0.2);
    border: 1px solid rgba(197, 160, 89, 0.4);
    border-radius: var(--radius-full);
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.hero-section h1 {
    font-size: 3.5rem;
    color: var(--text-white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section h1 span {
    color: var(--accent-gold);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== BOUTONS ========== */
.btn-primary-custom {
    background: var(--primary);
    color: var(--text-white);
    padding: 16px 36px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary-custom {
    background: rgba(255,255,255,0.1);
    color: var(--text-white);
    padding: 16px 36px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

.btn-secondary-custom:hover {
    background: rgba(255,255,255,0.2);
    color: var(--text-white);
    border-color: rgba(255,255,255,0.5);
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--text-dark);
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    border: none;
    transition: var(--transition-base);
}

.btn-gold:hover {
    background: var(--accent-gold-light);
    transform: translateY(-2px);
}

.btn-commander {
    background: var(--primary);
    color: var(--text-white);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    transition: var(--transition-base);
}

.btn-commander:hover {
    background: var(--primary-dark);
    color: var(--text-white);
    transform: scale(1.05);
}

/* ========== SECTIONS ========== */
.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin-top: 15px;
    border-radius: 2px;
}

.section-title.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* ========== PAGE HEADER ========== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
}

.page-header h1 {
    color: var(--text-white);
    font-size: 3rem;
    margin-bottom: 15px;
    position: relative;
}

.page-header p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    position: relative;
}

/* ========== SERVICES SECTION ========== */
.services-section {
    padding: 100px 0;
    background: var(--bg-section);
}

.service-card {
    background: var(--text-white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(166, 75, 42, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.service-icon.gold {
    background: rgba(197, 160, 89, 0.1);
}

.service-icon.gold i {
    color: var(--accent-gold);
}

.service-icon.green {
    background: rgba(45, 62, 53, 0.1);
}

.service-icon.green i {
    color: var(--deep-green);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========== ABOUT SECTION ========== */
.about-section {
    padding: 100px 0;
    background: var(--text-white);
    overflow: hidden;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: var(--text-white);
    padding: 25px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.about-badge .number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.about-badge .text {
    font-size: 0.85rem;
    opacity: 0.9;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1rem;
}

.about-list li i {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

/* ========== MENU / CARTE SECTION ========== */
.carte-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.menu-category {
    margin-bottom: 60px;
}

.menu-category h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-item {
    background: var(--text-white);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.menu-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.menu-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.menu-item-content {
    flex: 1;
}

.menu-item-content h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.menu-item-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.menu-item-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.menu-item.featured-item {
    border: 2px solid var(--accent-gold);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-gold);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ========== PLATS CARDS ========== */
.plat-card {
    background: var(--text-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    height: 100%;
}

.plat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.plat-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.plat-card-body {
    padding: 25px;
}

.plat-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.plat-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.plat-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.plat-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ========== RESERVATION SECTION ========== */
.reservation-section {
    padding: 100px 0;
    background: var(--deep-green);
    color: var(--text-white);
}

.reservation-wrapper {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 60px;
    border: 1px solid rgba(255,255,255,0.1);
}

.reservation-info h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.reservation-info p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item-icon.gold {
    background: var(--accent-gold);
}

.contact-item-icon i {
    font-size: 1.2rem;
    color: var(--text-white);
}

.contact-item-text span {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item-text p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
}

/* ========== FORMULAIRES ========== */
.form-control, .form-select {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    border: 1px solid #e0e0e0;
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(166, 75, 42, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-card {
    background: var(--text-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

/* ========== GALERIE ========== */
.galerie-section {
    padding: 80px 0;
}

.galerie-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 30px;
    cursor: pointer;
}

.galerie-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.galerie-item:hover img {
    transform: scale(1.1);
}

.galerie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition-base);
}

.galerie-item:hover .galerie-overlay {
    opacity: 1;
}

.galerie-overlay h4 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin: 0;
}

/* ========== FOOTER ========== */
.footer {
    background: #1a1a1a;
    color: rgba(255,255,255,0.7);
    padding: 80px 0 30px;
}

.footer h5 {
    color: var(--text-white);
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.footer p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer a {
    color: rgba(255,255,255,0.7);
    display: block;
    padding: 8px 0;
    transition: var(--transition-base);
}

.footer a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: var(--transition-base);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    padding: 0;
}

.social-links a i {
    font-size: 1.1rem;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    margin-top: 50px;
    text-align: center;
    font-size: 0.9rem;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: var(--text-white);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128c7e;
    color: var(--text-white);
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ========== ANIMATIONS ========== */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.cta-section h2 {
    color: var(--text-white);
    margin-bottom: 20px;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* ========== LIVRAISON INFO ========== */
.livraison-info {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8934d 100%);
    color: var(--text-dark);
    padding: 20px 30px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
}

.livraison-info i {
    font-size: 2rem;
}

.livraison-info span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .navbar-collapse {
        background: var(--text-white);
        padding: 20px;
        border-radius: var(--radius-md);
        margin-top: 15px;
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-nav .nav-link {
        padding: 12px 15px !important;
    }
    
    .page-header {
        padding: 140px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .reservation-wrapper {
        padding: 30px;
    }
    
    .menu-item {
        flex-direction: column;
        text-align: center;
    }
    
    .menu-item img {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .about-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
        display: inline-block;
    }
    
    .footer {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

/* ========== ACCORDION FAQ ========== */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    font-weight: 600;
    padding: 20px 25px;
    background: var(--text-white);
}

.accordion-button:not(.collapsed) {
    background: var(--primary);
    color: var(--text-white);
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    padding: 20px 25px;
    background: var(--bg-cream);
}

/* ========== HORAIRES ========== */
.horaires-card {
    background: var(--text-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.horaires-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.horaires-item:last-child {
    border-bottom: none;
}

.horaires-item.ferme {
    color: var(--primary);
    font-weight: 600;
}

/* ========== UTILITIES ========== */
.text-primary {
    color: var(--primary) !important;
}

.text-gold {
    color: var(--accent-gold) !important;
}

.bg-cream {
    background: var(--bg-cream) !important;
}

.bg-section {
    background: var(--bg-section) !important;
}

.mt-section {
    margin-top: 100px;
}

.mb-section {
    margin-bottom: 100px;
}

.py-section {
    padding-top: 100px;
    padding-bottom: 100px;
}
