/**
 * Homepage CSS - Sections homepage uniquement
 * Chargé UNIQUEMENT sur la page d'accueil
 *
 * @package Construires_Theme_DTAH
 * @since 2.0.0
 */

/* Hero Section */
.hero-home {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('/wp-content/uploads/2025/maison_contemporaine_premium_20250820_223509_4K.png') center/cover no-repeat;
    color: white;
    padding: 6rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff22" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,117.3C1248,117,1344,139,1392,149.3L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.hero-home h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-btn-primary {
    background: white;
    color: var(--primary);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.3);
}

.hero-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hero-btn-secondary:hover {
    background: white;
    color: var(--primary);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.trust-badge {
    text-align: center;
}

.trust-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

.trust-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--bg-light);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    color: var(--text-secondary);
}

/* Sections communes */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-title a {
    color: var(--text-primary);
    text-decoration: none;
}

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

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background: white;
}

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

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    min-width: 0;
    width: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    width: 100%;
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
    overflow: hidden;
    background: var(--bg-light);
    flex-shrink: 0 !important;
    position: relative !important;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.blog-content {
    padding: 1.5rem;
    background: white !important;
    position: relative !important;
    z-index: 1;
    flex: 1 !important;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.blog-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.blog-cta {
    text-align: center;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.faq-item {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    font-weight: 600;
    background: var(--bg-light);
    transition: all 0.3s;
}

.faq-question h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.faq-item.active .faq-question h3 {
    color: white;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-cta {
    text-align: center;
    margin-top: 2rem;
}

/* CTA Final */
.cta-final {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-final h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-final p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Popular Pages Section */
.popular-pages {
    background: #f8f9fa;
    padding: 60px 0;
    border-top: 1px solid #e9ecef;
}

.popular-pages .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.popular-pages h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.popular-pages .section-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 40px;
}

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

.popular-column h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.popular-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-column li {
    margin-bottom: 12px;
}

.popular-column a {
    color: #495057;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: start;
    gap: 8px;
    transition: color 0.3s;
}

.popular-column a:hover {
    color: #667eea;
}

.popular-column a span:first-child {
    color: #667eea;
    flex-shrink: 0;
}

/* Procedures Section */
.procedures-section {
    padding: 60px 0;
    background: white;
}

.procedures-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.procedure-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s;
}

.procedure-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.procedure-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.procedure-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.procedure-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.procedure-card ul li {
    padding: 0.5rem 0;
}

/* Why Section */
.why-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

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

.why-card {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.why-card:hover {
    transform: translateY(-5px);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.why-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.why-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Bloc SEO Enrichi */
.seo-content-block {
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 3rem;
}

.seo-content-block h3 {
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.75rem;
}

.seo-content-block p {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.seo-content-block p:last-child {
    margin-bottom: 0;
}

/* Responsive Homepage */
@media (max-width: 768px) {
    .hero-home h1 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid,
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .procedures-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .services-grid,
    .stats-grid,
    .why-grid,
    .blog-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-cta {
        flex-direction: column;
    }

    .hero-buttons {
        flex-direction: column;
    }

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