/* Homepage CSS - Styles spécifiques à la page d'accueil */

/* Hero Section - Extension de la classe hero-base */
.hero-section {
    /* Utilise hero-base + spécificités homepage */
    margin-top: -70px; /* Compense la hauteur de la nav fixe */
    padding-top: 150px;
}

.hero-section::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.hero-title {
    font-size: 3.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-logo img {
    width: 50%;
    max-width: 500px;
    height: auto;
}

/* Stats Section - spécifications homepage */

/* Features Section - Utilise les classes communes feature-card et icon-circle */

/* Recipes Preview */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.view-all-btn {
    background: #b8956d;
    color: white;
    transition: background 0.3s ease;
}

.view-all-btn:hover {
    background: #a68659;
    text-decoration: none;
    color: white;
}

/* Grille recettes spécifique */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* Cards recettes - extension de card-base */
.recipe-preview-card {
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    padding: 0; /* Override card-base padding pour les images */
}

.recipe-preview-card:hover {
    text-decoration: none;
    color: inherit;
}

.recipe-preview-image {
    width: 100%;
    height: 180px;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.recipe-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 2.5rem;
}

.recipe-preview-info {
    padding: 20px;
}

.recipe-preview-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.recipe-preview-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.nutriscore-badge {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Testimonial Section */
.testimonial-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    padding: 50px 40px;
}

.testimonial-quote-mark {
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 120px;
    color: #b8956d;
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 40px;
    align-items: start;
}

.testimonial-avatar {
    flex-shrink: 0;
    text-align: center;
    position: relative;
}

.testimonial-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #b8956d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.testimonial-badge {
    margin-top: 15px;
    background: linear-gradient(135deg, #b8956d, #8b7355);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.testimonial-text {
    flex: 1;
}

.testimonial-text blockquote {
    margin: 0 0 30px;
    padding: 0;
    border: none;
}

.testimonial-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.testimonial-highlight {
    background: linear-gradient(135deg, var(--primary-gold-lighter) 0%, white 100%);
    padding: 20px;
    border-left: 4px solid var(--primary-gold-light);
    border-radius: 8px;
    margin-top: 20px;
}

.testimonial-highlight strong {
    color: var(--accent-dark);
}

.testimonial-author {
    border-top: 2px solid #e9ecef;
    padding-top: 20px;
}

.author-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.author-role {
    color: #b8956d;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.author-socials {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8956d;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.2rem;
}

.social-link:hover {
    background: #b8956d;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(184, 149, 109, 0.3);
}

/* Responsive spécifique homepage */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .testimonial-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .testimonial-avatar img {
        width: 120px;
        height: 120px;
    }

    .testimonial-text {
        text-align: left;
    }

    .author-socials {
        justify-content: center;
    }
}