/* Custom Styles pour Les Recettes de Grand-Mère - Thème Chaleureux */

:root {
    --primary-color: #ffc107; /* Warning/Orange */
    --secondary-color: #28a745; /* Success/Vert */
    --accent-color: #dc3545; /* Danger/Rouge */
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.25)),
                linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)),
                url('https://images.unsplash.com/photo-1556911220-bff31c812dba?w=1920') center/cover;
    display: flex;
    align-items: center;
    padding-top: 56px;
}

/* Page Headers */
.page-header {
    margin-top: 56px;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

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

/* Cards */
.card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.3);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-warning {
    color: #000;
}

.btn-warning:hover {
    color: #000;
    background-color: #ffb300;
}

/* Quote Section */
.bi-quote {
    opacity: 0.2;
}

/* List Group */
.list-group-item {
    transition: all 0.3s ease;
    border-left-width: 4px !important;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* Formulaire */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.input-group-text {
    background-color: #fff9e6;
    border-color: var(--primary-color);
    color: #856404;
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: #fff9e6;
    color: #856404;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
    display: inline-block;
}

footer .bi:hover {
    color: var(--primary-color) !important;
    transform: scale(1.2);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

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

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

.card {
    animation: fadeIn 0.6s ease-out;
}

/* Social Icons */
.bi-facebook:hover,
.bi-instagram:hover,
.bi-pinterest:hover,
.bi-whatsapp:hover {
    animation: pulse 0.5s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .card-img-top {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffb300, #218838);
}
