/**
 * Styles CSS pour Le Yellowjack - Site Vitrine
 * Style Western Moderne et Responsive
 * 
 * @author Développeur Web Professionnel
 * @version 1.0
 */

/* Variables CSS */
:root {
    --primary-color: #8B4513; /* Brun western */
    --secondary-color: #DAA520; /* Or/Jaune */
    --accent-color: #CD853F; /* Beige sable */
    --dark-color: #2F1B14; /* Brun foncé */
    --light-color: #F5DEB3; /* Beige clair */
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Typographie */
.western-font {
    font-family: 'Rye', cursive;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.1rem;
    font-weight: 300;
}

/* Navigation */
.navbar {
    background: rgba(47, 27, 20, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(47, 27, 20, 0.98) !important;
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-family: 'Rye', cursive;
    font-size: 1.8rem;
    color: var(--secondary-color) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar-nav .nav-link {
    color: var(--light-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, 
        rgba(47, 27, 20, 0.8), 
        rgba(139, 69, 19, 0.6)
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="wood" patternUnits="userSpaceOnUse" width="100" height="100"><rect width="100" height="100" fill="%23654321"/><path d="M0,50 Q25,40 50,50 T100,50" stroke="%23543311" stroke-width="2" fill="none"/><path d="M0,25 Q25,15 50,25 T100,25" stroke="%23765432" stroke-width="1" fill="none"/><path d="M0,75 Q25,65 50,75 T100,75" stroke="%23765432" stroke-width="1" fill="none"/></pattern></defs><rect width="1000" height="1000" fill="url(%23wood)"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: var(--text-light);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-image {
    position: relative;
    text-align: center;
    animation: fadeInRight 1s ease-out 0.8s both;
}

.western-badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--secondary-color), #FFD700);
    color: var(--dark-color);
    padding: 2rem;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(218, 165, 32, 0.3);
    animation: pulse 2s infinite;
}

.western-badge i {
    margin: 0 0.5rem;
}

/* Boutons */
.btn {
    border-radius: var(--border-radius);
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-warning {
    background: linear-gradient(45deg, var(--secondary-color), #FFD700);
    color: var(--dark-color);
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4);
    color: var(--dark-color);
}

.btn-outline-warning {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline-warning:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid var(--light-color);
    color: var(--light-color);
}

.btn-outline-light:hover {
    background: var(--light-color);
    color: var(--dark-color);
    transform: translateY(-2px);
}

/* Cards et sections */
.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Menu */
.menu-category {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: 100%;
    border-left: 4px solid var(--secondary-color);
}

.menu-category h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.menu-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

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

.menu-item:hover {
    background: rgba(218, 165, 32, 0.1);
    padding-left: 1rem;
    border-radius: 4px;
}

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

.item-price {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Équipe */
.team-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

.team-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Contact */
.contact-info {
    text-align: center;
    padding: 1.5rem;
}

.contact-info i {
    color: var(--secondary-color);
}

.contact-info h4 {
    color: var(--primary-color);
    margin: 1rem 0;
}

/* Footer */
footer {
    background: var(--dark-color) !important;
    border-top: 3px solid var(--secondary-color);
}

footer h5 {
    color: var(--secondary-color);
    font-family: 'Rye', cursive;
}

footer a {
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--light-color) !important;
}

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .feature-card,
    .menu-category,
    .team-card {
        margin-bottom: 2rem;
    }
    
    .western-badge {
        padding: 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .menu-category,
    .feature-card,
    .team-card {
        padding: 1.5rem;
    }
}

/* Utilitaires */
.text-warning {
    color: var(--secondary-color) !important;
}

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

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

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Effets de survol globaux */
.card, .menu-category, .feature-card, .team-card {
    cursor: pointer;
}

/* Amélioration de l'accessibilité */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Optimisations pour l'impression */
@media print {
    .navbar,
    .hero-section,
    footer {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .menu-category,
    .feature-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}