/* public/css/welcome.css */

/* Variables CSS */
:root {
    --primary-color: #8B4513;  /* Saddle Brown - couleur principale du logo */
    --secondary-color: #D2691E; /* Chocolate - couleur secondaire */
    --accent-color: #DAA520;   /* Goldenrod - accent doré */
    --text-dark: #2c2c2c;
    --text-light: #6c757d;
    --bg-light: #fafafa;
    --bg-cream: #f8f6f0;
    --shadow: 0 4px 20px rgba(139, 69, 19, 0.1);
    --shadow-hover: 0 8px 30px rgba(139, 69, 19, 0.2);
    --border-radius: 12px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fonts */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

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

.navbar.scrolled {
    background: rgba(44, 44, 44, 0.98) !important;
    box-shadow: var(--shadow);
    padding: 0.8rem 0;
}

.navbar-logo {
    height: 45px;
    width: auto;
    border-radius: 8px;
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-color) !important;
}

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

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

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

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

.dropdown-menu {
    background: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.dropdown-item {
    color: white !important;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--accent-color);
    color: var(--text-dark) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #DAA520 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.7) 0%, rgba(139, 69, 19, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
}

.hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

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

.hero-image img {
    border-radius: var(--border-radius);
    max-width: 100%;
    box-shadow: var(--shadow-hover);
}

.hero-badge {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(218, 165, 32, 0.95);
    color: var(--text-dark);
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.hero-badge i {
    margin-right: 0.5rem;
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-top: 4px solid var(--accent-color);
    cursor: pointer;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.service-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 69, 19, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 1.8rem;
}

.product-info h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.product-description {
    color: var(--text-light);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Contact Section */
.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
    min-width: 20px;
}

.contact-item strong {
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

.contact-item p {
    margin: 0;
    color: var(--text-light);
}

.opening-hours .hour-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #eee;
}

.opening-hours .hour-item:last-child {
    border-bottom: none;
}

.social-links {
    margin-top: 2rem;
}

.social-links h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    margin-right: 0.8rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.4);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: white;
    color: var(--text-dark);
}

/* Track Order Form */
.input-group .form-control {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    border: 1px solid var(--text-light);
    padding: 0.75rem 1.2rem;
    font-size: 1rem;
}

.input-group .btn-primary {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0;
}

.footer-logo {
    height: 50px;
    width: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.footer h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--accent-color);
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer .social-links .social-link {
    background: rgba(255, 255, 255, 0.2);
}

.footer .social-links .social-link:hover {
    background: var(--accent-color);
    color: var(--text-dark);
}

/* Alerts */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
}

.alert-success {
    background: var(--accent-color);
    color: var(--text-dark);
}

.alert-danger {
    background: #dc3545;
    color: white;
}

.alert .btn-close {
    color: inherit;
    opacity: 0.8;
    transition: var(--transition);
}

.alert .btn-close:hover {
    opacity: 1;
}

/* Bouton de défilement vers le haut */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    text-decoration: none;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Auth Form Styles - Améliorés */
.auth-form {
    max-width: 100%;
    margin: 0 auto;
}

.auth-form .form-label {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.auth-form .form-control {
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 0.875rem 1.125rem;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.auth-form .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(218, 165, 32, 0.25);
    outline: none;
    background-color: #fff;
}

.auth-form .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.auth-form .invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.auth-form .form-check-input {
    border: 2px solid var(--text-light);
    background-color: #fff;
    transition: var(--transition);
    width: 1.125em;
    height: 1.125em;
    margin-top: 0.125em;
}

.auth-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-form .form-check-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(218, 165, 32, 0.25);
}

.auth-form .form-check-label {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.auth-form .btn-modern {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.auth-form .btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4);
}

.auth-form .btn-modern:active {
    transform: translateY(0);
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Auth Page Header avec Logo */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border: 3px solid var(--accent-color);
}

.auth-header .section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-header .section-subtitle {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Container pour les pages d'authentification */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-light) 100%);
    padding: 2rem 0;
}

.auth-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    padding: 3rem;
    border-top: 4px solid var(--accent-color);
    max-width: 500px;
    margin: 0 auto;
}

/* Spacing pour les champs de formulaire */
.auth-form .mb-3 {
    margin-bottom: 1.5rem !important;
}

.auth-form .mb-4 {
    margin-bottom: 2rem !important;
}

/* Style pour les messages d'erreur */
.auth-form .alert {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    border: none;
}

.auth-form .alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

.auth-form .alert-success {
    background: rgba(218, 165, 32, 0.1);
    color: var(--primary-color);
    border-left: 4px solid var(--accent-color);
}

.footer-links {
    list-style: none;
}

/* Responsive Adjustments for Auth Form */
@media (max-width: 576px) {
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .auth-header .section-title {
        font-size: 1.75rem;
    }

    .auth-logo {
        width: 60px;
        height: 60px;
    }

    .auth-form .form-label {
        font-size: 0.9rem;
    }

    .auth-form .form-control {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .auth-form .btn-modern {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .auth-form .form-check-label {
        font-size: 0.85rem;
    }

    .auth-link {
        font-size: 0.9rem;
    }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .navbar-nav {
        background: var(--primary-color);
        padding: 1rem;
        border-radius: var(--border-radius);
    }

    .navbar-nav .nav-link {
        color: white !important;
        margin: 0.5rem 0;
    }

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

    .hero-image-wrapper .hero-badge {
        right: 90px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-section {
        min-height: 60vh;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-image img {
        height: 180px;
    }

    .footer {
        text-align: center;
    }

    .footer .col-md-4 {
        margin-bottom: 2rem;
    }

    .auth-container {
        padding: 1rem 0;
    }

    .hero-image-wrapper .hero-badge {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-buttons .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }

    .service-card, .contact-card {
        padding: 1.5rem;
    }

    .product-info {
        padding: 1.2rem;
    }

    .product-price {
        font-size: 1.2rem;
    }
}