/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
}

/* ===== HEADER ===== */
.header {
    background-color: #fff;
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d5a27;
}

.logo-img {
    height: 100px;
    width: auto;
}

/* ===== NAVIGATION ===== */
.nav-list {
    display: flex;
    gap: 30px;
}

.nav-item > a {
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-item > a:hover {
    color: #2d5a27;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 150px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 0.85rem;
    transition: background 0.3s ease;
}

.dropdown-menu li a:hover {
    background: #f5f5f5;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    font-size: 1rem;
    color: #333;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #2d5a27;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 80px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
    max-width: 600px;
}

.hero-image {
    flex: 0 0 400px;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ===== CATEGORIES SECTION ===== */
.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 60px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 450px;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.category-overlay h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.category-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== RECENT RECIPES ===== */
.recent-recipes {
    padding: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #2d5a27;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.recipe-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

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

.recipe-content {
    padding: 25px;
}

.recipe-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #333;
}

.recipe-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.recipe-meta {
    font-size: 0.8rem;
    color: #999;
}

/* ===== DESSERTS SECTION ===== */
.desserts-section {
    padding: 0 80px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.dessert-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 350px;
}

.dessert-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* ===== ABOUT SECTION ===== */
.about-section {
    background: #f9f9f9;
    padding: 80px;
    text-align: center;
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2d5a27;
}

.about-section > p {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #555;
}

/* ===== NEWSLETTER ===== */
.newsletter {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
    font-family: 'Lato', sans-serif;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #2d5a27;
}

.newsletter-form button {
    padding: 15px 30px;
    background: #2d5a27;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #1e3d1a;
}

/* ===== ARTICLES SECTION ===== */
.articles-section {
    padding: 80px;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.article-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.article-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.article-card.large {
    grid-row: span 2;
}

.article-card.large img {
    height: 100%;
}

.article-card h3 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #fff;
    font-size: 1.2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.view-more {
    grid-column: span 2;
    text-align: center;
    padding: 15px;
    color: #2d5a27;
    font-weight: 600;
    transition: color 0.3s ease;
}

.view-more:hover {
    color: #1e3d1a;
}

/* ===== FOOTER ===== */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 50px 80px;
    text-align: center;
}

.footer-logo span {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.footer-links {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    font-size: 0.85rem;
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    font-size: 0.8rem;
    color: #666;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        padding: 40px;
    }
    
    .hero-image {
        flex: none;
        width: 100%;
    }
    
    .categories {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    
    .recipes-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-section {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    
    .article-card.large {
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .nav, .social-icons {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header {
        padding: 15px 20px;
    }
    
    .recent-recipes, .about-section, .footer {
        padding: 40px 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .view-more {
        grid-column: auto;
    }
}

/* ===== PAGE CONTENT ===== */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    min-height: 60vh;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2d5a27;
    margin-bottom: 50px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .page-content {
        padding: 40px 20px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
}

/* ===== RECIPES LIST (GRID) ===== */
.recipes-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.recipe-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

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

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

.recipe-item h3 {
    padding: 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    background: #fff;
}

@media (max-width: 1024px) {
    .recipes-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .recipes-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .recipes-list {
        grid-template-columns: 1fr;
    }
}

/* ===== ABOUT PAGE ===== */
.about-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.about-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: #666;
    font-weight: 400;
    margin-bottom: 50px;
    font-style: italic;
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.about-content.reverse {
    flex-direction: row-reverse;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.9;
}

.about-image {
    flex: 0 0 400px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.about-signature {
    text-align: center;
    margin: 60px 0;
    font-style: italic;
    color: #555;
}

.signature-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #2d5a27;
    margin-top: 10px;
}

/* ===== CONTACT FORM ===== */
.contact-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 0;
}

.contact-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #2d5a27;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2d5a27;
}

.contact-form button {
    padding: 15px 30px;
    background: #2d5a27;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #1e3d1a;
}

@media (max-width: 768px) {
    .about-content,
    .about-content.reverse {
        flex-direction: column;
    }
    
    .about-image {
        flex: none;
        width: 100%;
    }
    
    .about-page {
        padding: 40px 20px;
    }
}

/* ===== LEGAL PAGES ===== */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
}

.legal-content {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.legal-content h2 {
    font-size: 1.4rem;
    color: #2d5a27;
    margin-top: 40px;
    margin-bottom: 15px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: #555;
    line-height: 1.9;
    margin-bottom: 15px;
}

.legal-content a {
    color: #2d5a27;
    text-decoration: underline;
}

.legal-content a:hover {
    color: #1e3d1a;
}

.legal-content ul {
    margin: 15px 0;
    padding-left: 25px;
    list-style: disc;
}

.legal-content li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 40px 20px;
    }
    
    .legal-content {
        padding: 25px;
    }
}

/* ===== MOBILE MENU ===== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100%;
        background: #fff;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        display: block;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-item > a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        background: #f9f9f9;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1000;
    }
}

/* ===== RECIPE PAGE ===== */
.recipe-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
}

.recipe-article {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.recipe-header {
    padding: 40px 40px 20px;
    text-align: center;
}

.recipe-category {
    display: inline-block;
    background: #2d5a27;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.recipe-article h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.recipe-meta-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #888;
    font-size: 0.9rem;
}

.recipe-meta-info i {
    margin-right: 5px;
}

.recipe-hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.recipe-intro {
    padding: 40px;
}

.recipe-tagline {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

.recipe-intro p {
    color: #666;
    line-height: 1.9;
}

/* Info Cards */
.recipe-info-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 40px 40px;
}

.info-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    min-width: 100px;
}

.info-card i {
    font-size: 1.5rem;
    color: #2d5a27;
    display: block;
    margin-bottom: 10px;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.info-value {
    font-weight: 700;
    color: #333;
}

/* Recipe Details */
.recipe-details {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    padding: 40px;
    background: #f9f9f9;
}

.recipe-ingredients h2,
.recipe-ingredients h3,
.recipe-steps h2 {
    font-size: 1.3rem;
    color: #2d5a27;
    margin-bottom: 20px;
}

.recipe-ingredients h2 i,
.recipe-ingredients h3 i,
.recipe-steps h2 i {
    margin-right: 10px;
}

.recipe-ingredients h3 {
    margin-top: 30px;
}

.recipe-ingredients ul {
    list-style: none;
}

.recipe-ingredients li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.recipe-steps ol {
    padding-left: 20px;
}

.recipe-steps li {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}

/* Tips & Accompaniments */
.recipe-tips,
.recipe-accompaniments {
    padding: 30px 40px;
}

.recipe-tips h3,
.recipe-accompaniments h3 {
    font-size: 1.2rem;
    color: #2d5a27;
    margin-bottom: 15px;
}

.recipe-tips h3 i,
.recipe-accompaniments h3 i {
    margin-right: 10px;
}

.recipe-tips p {
    color: #666;
    line-height: 1.8;
}

.recipe-accompaniments ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.recipe-accompaniments li {
    background: #2d5a27;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.bon-appetit {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #2d5a27;
    padding: 40px;
    font-style: italic;
}

@media (max-width: 768px) {
    .recipe-page {
        padding: 20px;
    }
    
    .recipe-header {
        padding: 30px 20px 15px;
    }
    
    .recipe-article h1 {
        font-size: 1.8rem;
    }
    
    .recipe-hero-image img {
        height: 250px;
    }
    
    .recipe-intro,
    .recipe-tips,
    .recipe-accompaniments {
        padding: 25px 20px;
    }
    
    .recipe-info-cards {
        padding: 0 20px 30px;
    }
    
    .recipe-details {
        grid-template-columns: 1fr;
        padding: 25px 20px;
    }
    
    .recipe-accompaniments ul {
        flex-wrap: wrap;
    }
}

/* ===== RECIPE TIPS LIST & WINES ===== */
.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #555;
    line-height: 1.8;
}

.tips-list li:last-child {
    border-bottom: none;
}

.recipe-wines {
    padding: 30px 40px;
    background: #f9f9f9;
}

.recipe-wines h3 {
    font-size: 1.2rem;
    color: #2d5a27;
    margin-bottom: 15px;
}

.recipe-wines h3 i {
    margin-right: 10px;
}

@media (max-width: 768px) {
    .recipe-wines {
        padding: 25px 20px;
    }
}

/* ===== ARTICLE CARD LINK FIX ===== */
.article-card.large a {
    display: block;
    height: 100%;
}

.article-card.large a img {
    height: 100%;
}

.article-card a {
    display: block;
}

/* ===== BLOG ARTICLE STYLES ===== */
.blog-article .recipe-intro {
    margin-bottom: 40px;
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-section {
    margin-bottom: 40px;
}

.blog-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #2d5a27;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-section h2 i {
    font-size: 1.3rem;
}

.blog-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #333;
    margin: 25px 0 15px 0;
}

.blog-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
    text-align: justify;
}

.blog-section ul {
    margin: 20px 0;
    padding-left: 25px;
}

.blog-section ul li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 10px;
    position: relative;
}

.blog-section ul li::marker {
    color: #2d5a27;
}

.blog-conclusion {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #2d5a27;
}

.blog-conclusion h2 {
    margin-top: 0;
}

.blog-conclusion p:last-child {
    margin-bottom: 0;
}

/* Article card link styles (index.html) */
.articles-section .article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.articles-section .article-card a:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .blog-section h2 {
        font-size: 1.4rem;
    }
    
    .blog-section p,
    .blog-section ul li {
        font-size: 1rem;
    }
    
    .blog-conclusion {
        padding: 20px;
    }
}

/* Messages de formulaire */
.success-message {
    background: #48bb78;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.error-message {
    background: #f56565;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Messages newsletter */
.newsletter-success {
    background: #48bb78;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

.newsletter-error {
    background: #f56565;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.newsletter-form.loading {
    opacity: 0.6;
    pointer-events: none;
}


