/* Variables CSS */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Styles généraux */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), 
                url('https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?w=1920') center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-buttons {
    margin-top: 2rem;
}

/* Section Titles */
.section-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

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

/* Cuisine Cards */
.cuisine-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #e9ecef;
}

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

.cuisine-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cuisine-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cuisine-card p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Recipe Cards */
.recipe-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid #e9ecef;
    height: 100%;
}

.recipe-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

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

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

.recipe-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.recipe-info {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.recipe-tags {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

/* Recipe Details */
.recipe-detail-header {
    background: var(--light-color);
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.recipe-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.recipe-image-container img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.recipe-stats {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-item h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-item p {
    margin: 0;
    color: var(--secondary-color);
}

.ingredient-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f1f1;
}

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

.instructions-list {
    counter-reset: instruction-counter;
}

.instruction-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f1f1f1;
    counter-increment: instruction-counter;
    position: relative;
    padding-left: 3rem;
}

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

.instruction-item::before {
    content: counter(instruction-counter);
    position: absolute;
    left: 0;
    top: 1rem;
    background: var(--primary-color);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Star Rating */
.stars {
    display: flex;
    gap: 0.25rem;
    margin: 0.5rem 0;
}

.star-rating {
    color: #ddd;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.star-rating:hover,
.star-rating.filled {
    color: #ffd700;
}

.star-rating:hover ~ .star-rating {
    color: #ddd;
}

/* Contact Page */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-details h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-details p {
    margin: 0;
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

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

.social-icon:hover {
    background: var(--dark-color);
    color: white;
    transform: translateY(-2px);
}

.social-icon.animated {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* About Page */
.feature-box {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.value-item {
    text-align: center;
    padding: 1rem;
}

.value-item h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-member {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.tech-item {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* List View for Recipes */
.list-view .recipe-card {
    display: flex;
    flex-direction: row;
    height: auto;
}

.list-view .recipe-image {
    width: 200px;
    flex-shrink: 0;
}

.list-view .recipe-image img {
    height: 100%;
    min-height: 150px;
}

.list-view .card-body {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .recipe-title {
        font-size: 2rem;
    }
    
    .list-view .recipe-card {
        flex-direction: column;
    }
    
    .list-view .recipe-image {
        width: 100%;
    }
    
    .cuisine-card {
        padding: 1.5rem;
    }
    
    .cuisine-icon {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .recipe-stats .row > div {
        margin-bottom: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .recipe-actions {
        display: none !important;
    }
    
    .recipe-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .hero-section {
        min-height: auto;
        background: none;
        color: black;
    }
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

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

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

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

/* Styles globaux pour les tableaux */
.table thead[style*="background-color: #9b59b6"] th {
    color: white !important;
    font-weight: 600;
    border: 1px solid #9b59b6 !important;
    border-bottom: 2px solid #9b59b6 !important;
}

.table thead[style*="background-color: #9b59b6"] th i {
    color: white !important;
}

.table thead[style*="background-color: #9b59b6"] th:hover {
    background-color: #8e44ad !important;
}

/* Bordures pour les cellules du corps du tableau */
.table tbody td {
    border: 1px solid #9b59b6 !important;
}

/* Bordures pour les tableaux avec header violet */
.table thead[style*="background-color: #9b59b6"] + tbody td {
    border: 1px solid #9b59b6 !important;
}

/* Style pour les tableaux dans les instructions */
.instructions-text table th {
    background-color: #9b59b6 !important;
    color: white !important;
    font-weight: 600;
    border: 1px solid #9b59b6 !important;
}

.instructions-text table th i {
    color: white !important;
}

.instructions-text table td {
    border: 1px solid #9b59b6 !important;
}




