/*
Theme Name: Cuisine Togolaise
Theme URI: https://cuisine.tg
Author: Expert WP Developer
Author URI: https://cuisine.tg
Description: Thème premium dark pour le site Cuisine Togolaise, compatible Elementor.
Version: 1.2.0
Text Domain: cuisine-togolaise
*/

:root {
    --color-primary: #1A4D2E; /* Vert profond */
    --color-secondary: #FF9F29; /* Jaune doré */
    
    /* Dark Theme (Default) */
    --color-bg: #050505;
    --color-surface: #121212;
    --color-text: #F5F5F5;
    --color-text-muted: #A3A3A3;
    --color-border: rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

[data-theme="light"] {
    --color-bg: #FAFAFA;
    --color-surface: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-muted: #666666;
    --color-border: rgba(0, 0, 0, 0.08);
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 400;
    transition: color 0.4s ease;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}

/* Parallax Utility */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Header */
.site-header {
    background-color: rgba(var(--color-bg-rgb, 5, 5, 5), 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.site-header.is-scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

[data-theme="light"] .site-header {
    background-color: rgba(250, 250, 250, 0.85);
}

[data-theme="light"] .site-header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.site-logo .header-logo-img {
    height: 80px;
    width: auto;
    transition: height 0.4s ease;
    display: block;
}

.site-header.is-scrolled .site-logo .header-logo-img {
    height: 60px;
}

@media (max-width: 768px) {
    .site-logo .header-logo-img, .site-header.is-scrolled .site-logo .header-logo-img {
        height: 50px;
    }
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 40px;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-navigation a {
    color: var(--color-text);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.main-navigation a:hover {
    color: var(--color-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-cta-btn {
    background-color: var(--color-secondary);
    color: #000;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 2px solid var(--color-secondary);
}

.header-cta-btn:hover {
    background-color: transparent;
    color: var(--color-secondary);
}

.site-main {
    padding-top: 120px; /* Spacer for fixed header */
}

@media (max-width: 992px) {
    .main-navigation ul {
        display: none;
    }
    .header-cta-btn {
        display: none;
    }
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

/* Footer */
.site-footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 80px 0 40px;
    margin-top: 80px;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* Recipe Cards */
.recipe-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.recipe-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-secondary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.recipe-thumbnail img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.recipe-content {
    padding: 24px;
}

.recipe-title {
    font-size: 1.5rem;
    margin: 0 0 12px;
    color: var(--color-text);
}

.recipe-title a {
    color: inherit;
}

.recipe-meta {
    display: flex;
    gap: 15px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Swiper Carousel Overrides */
.swiper-button-next, .swiper-button-prev {
    color: var(--color-secondary) !important;
}
.swiper-pagination-bullet-active {
    background: var(--color-secondary) !important;
}

/* Comments Section */
.comments-area {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.comments-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--color-text);
    text-align: center;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.comment-list .comment {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
}

.comment-list .comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-list .children {
    list-style: none;
    padding-left: 40px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .comment-list .children {
        padding-left: 20px;
    }
}

.comment-body {
    position: relative;
    padding-left: 80px;
}

.comment-author .avatar {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 50%;
    border: 2px solid var(--color-secondary);
}

.comment-meta {
    margin-bottom: 10px;
}

.comment-author {
    margin-bottom: 5px;
}

.comment-author b.fn {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-text);
    font-weight: 600;
}

.comment-author .says {
    display: none;
}

.comment-metadata a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.comment-content {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 15px;
}

.reply a {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-bg);
    background-color: var(--color-secondary);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.reply a:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.comment-reply-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-text);
    font-family: var(--font-heading);
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text);
    font-weight: 500;
}

.comment-form-cookies-consent label {
    display: inline;
    margin-bottom: 0;
    font-weight: 400;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.comment-form .comment-notes,
.comment-form .logged-in-as {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.comment-form .submit {
    background-color: var(--color-secondary);
    color: #000;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.comment-form .submit:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin: 0;
}

@media (max-width: 768px) {
    .comments-area {
        padding: 20px;
        margin: 40px auto;
    }
    
    .comment-body {
        padding-left: 60px;
    }
    
    .comment-author .avatar {
        width: 45px;
        height: 45px;
    }
}
