/* public/css/pages/home.css - Styles spécifiques à la page d'accueil */

/* ===== SECTION HERO ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -120px;
    padding-bottom: 120px;
    padding-top: 120px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 50%, var(--accent-green) 100%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 85, 48, 0.1);
    z-index: -1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 0;
}

.hero-text {
    color: var(--white);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.text-highlight {
    color: var(--light-green);
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-green);
    border-radius: 2px;
    animation: slideIn 0.8s ease-out 0.5s both;
}

.hero-description {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-relaxed);
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

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

.hero-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--light-green);
    line-height: 1;
}

.hero-stats .stat-label {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    margin-top: 0.25rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    text-align: center;
}

.hero-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 2rem;
    box-shadow: var(--shadow-xl);
    transform: rotate(-2deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-img:hover {
    transform: rotate(0deg) scale(1.02);
}

.floating-card {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-green);
    font-weight: var(--font-weight-semibold);
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    color: var(--accent-green);
}

.scroll-indicator {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--white);
    border-radius: 2px;
    opacity: 0.7;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -3px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 8px solid var(--white);
}

/* ===== SECTION RECHERCHE RAPIDE ===== */
.quick-search-section {
    padding: 3rem 0;
    background: var(--light-gray);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.quick-search-card {
    background: var(--white);
    border-radius: 2rem;
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    border: 1px solid var(--gray-200);
    max-width: 1000px;
    margin: 0 auto;
}

.search-title {
    text-align: center;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--gray-800);
    margin-bottom: 2rem;
}

.search-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr auto;
    gap: 1.5rem;
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.btn-search {
    height: 52px;
    padding: 0 2rem;
    border-radius: var(--border-radius-lg);
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
}

.btn-search span {
    margin-left: 0.5rem;
}

/* ===== SECTION CARACTÉRISTIQUES ===== */
.features-section {
    padding: 5rem 0;
    background: var(--white);
}

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

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius-2xl);
    background: var(--white);
    border: 2px solid var(--gray-100);
    transition: all var(--transition-base);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--gray-600);
    line-height: var(--line-height-relaxed);
    margin: 0;
}

/* ===== TITRES DE SECTION ===== */
.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    color: var(--gray-800);
    margin-bottom: 1rem;
    line-height: var(--line-height-tight);
}

.section-header .section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-footer {
    margin-top: 3rem;
}

/* ===== SECTION PRODUITS ===== */
.products-section {
    padding: 5rem 0;
    background: var(--light-gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-green);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

.product-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 3rem;
}

.product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-card:hover .product-actions {
    opacity: 1;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: scale(1.1);
}

.product-content {
    padding: 1.5rem;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.product-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--gray-800);
    margin: 0;
    line-height: var(--line-height-tight);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    font-size: var(--font-size-sm);
    color: var(--gray-300);
}

.stars i.active {
    color: var(--warning);
}

.rating-count {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.product-description {
    color: var(--gray-600);
    line-height: var(--line-height-relaxed);
    margin-bottom: 1.5rem;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
}

.detail-item i {
    color: var(--primary-green);
    width: 16px;
}

.detail-item .price {
    font-weight: var(--font-weight-bold);
    color: var(--primary-green);
    font-size: var(--font-size-base);
}

/* ===== SECTION DEMANDES ===== */
.requests-section {
    padding: 5rem 0;
    background: var(--white);
}

.requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.request-card {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--border-radius-2xl);
    padding: 1.5rem;
    transition: all var(--transition-base);
}

.request-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-green);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: var(--font-size-sm);
}

.request-category,
.request-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
}

.request-category i {
    color: var(--accent-green);
}

.request-date i {
    color: var(--gray-400);
}

.request-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
}

.request-title a {
    color: var(--gray-800);
    text-decoration: none;
    transition: color var(--transition-base);
}

.request-title a:hover {
    color: var(--primary-green);
}

.request-description {
    color: var(--gray-600);
    line-height: var(--line-height-relaxed);
    margin-bottom: 1.5rem;
}

.request-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.request-details .detail-item {
    font-size: var(--font-size-sm);
}

.request-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.request-responses {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
    font-size: var(--font-size-sm);
}

.request-responses i {
    color: var(--info);
}

/* ===== SECTION TÉMOIGNAGES ===== */
.testimonials-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--white);
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-2xl);
    padding: 2rem;
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    font-style: italic;
    margin: 0;
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 4rem;
    color: var(--light-green);
    position: absolute;
    top: -1rem;
    left: -1rem;
    line-height: 1;
    opacity: 0.5;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--light-green);
}

.author-info h4 {
    font-weight: var(--font-weight-semibold);
    margin: 0;
    color: var(--white);
}

.author-info span {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    color: var(--light-green);
}

/* ===== SECTION CTA ===== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.cta-content {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.cta-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: var(--light-green);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.5rem;
    line-height: var(--line-height-tight);
}

.cta-description {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-relaxed);
    opacity: 0.95;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-section {
        min-height: 80vh;
        margin-top: -100px;
        padding-top: 100px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .search-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .btn-search {
        width: 100%;
    }
    
    .features-grid,
    .products-grid,
    .requests-grid,
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        margin-top: -80px;
        padding-top: 80px;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .hero-stats .stat-number {
        font-size: 1.5rem;
    }
    
    .quick-search-card {
        padding: 1.5rem;
        border-radius: var(--border-radius-2xl);
    }
    
    .search-title {
        font-size: var(--font-size-xl);
    }
    
    .products-grid,
    .requests-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-card,
    .request-card {
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: var(--font-size-lg);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .quick-search-card {
        margin: 0 1rem;
        padding: 1.25rem;
    }
}