/* Palette de couleurs africaines */
:root {
    --primary-terracotta: #D2691E;
    --primary-orange: #FF8C00;
    --primary-ochre: #CD853F;
    --primary-green: #2F5233;
    --primary-gold: #FFD700;
    --cream-background: #F5F2EC;
    --text-dark: #2C2416;
    --text-light: #6B5B4D;
    --white: #FFFFFF;
    --shadow-light: rgba(45, 35, 28, 0.1);
    --shadow-medium: rgba(45, 35, 28, 0.15);
    --shadow-heavy: rgba(45, 35, 28, 0.2);
    --radius: 12px;
    --radius-large: 20px;
}

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

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

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-terracotta);
}

.logo span {
    position: relative;
}

.logo span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-terracotta);
    border-radius: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-terracotta);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.language-selector {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background-color: transparent;
    border: 2px solid var(--primary-terracotta);
    color: var(--primary-terracotta);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background-color: var(--primary-terracotta);
    color: var(--white);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg,
        rgba(210, 105, 30, 0.1) 0%,
        rgba(255, 140, 0, 0.1) 50%,
        rgba(45, 82, 51, 0.1) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-terracotta);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.search-bar {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.search-bar input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 1rem;
    background-color: var(--white);
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-terracotta);
    box-shadow: 0 5px 20px var(--shadow-medium);
}

.search-bar button {
    background-color: var(--primary-terracotta);
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: -10px;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    background-color: var(--primary-orange);
    transform: translateY(-2px);
}

/* Recipe Grid */
.featured-recipes {
    padding: 5rem 0;
}

.featured-recipes h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-terracotta);
    margin-bottom: 3rem;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.recipe-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

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

.recipe-info {
    padding: 1.5rem;
}

.recipe-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary-terracotta);
    margin-bottom: 0.5rem;
}

.recipe-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.recipe-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Categories */
.categories {
    background-color: rgba(45, 82, 51, 0.05);
    padding: 5rem 0;
}

.categories h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-terracotta);
    margin-bottom: 3rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.category-item {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.category-item i {
    font-size: 2.5rem;
    color: var(--primary-terracotta);
    margin-bottom: 1rem;
}

.category-item h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
}

/* Countries */
.countries {
    padding: 5rem 0;
}

.countries h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-terracotta);
    margin-bottom: 3rem;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.country-item {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.country-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.country-flag {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.country-item h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.country-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* About Section */
.about {
    padding: 5rem 0;
}

.about h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-terracotta);
    margin-bottom: 3rem;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-gold);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    color: var(--primary-green);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-gold);
    color: var(--primary-green);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .search-bar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .search-bar input,
    .search-bar button {
        width: 100%;
    }

    .recipe-grid {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .country-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

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

/* Loading Animation */
.loading {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.loading::after {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-terracotta);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}