/* Home Page Styles - Touchepasamonartisan.fr */
/* Design Timeline et créatif pour niche Artisanat */

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 80vh;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.025em;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

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

.hero-image {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Dashboard Mini */
.dashboard-mini {
    padding: 3rem 0;
}

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

.dashboard-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-4px);
}

.dashboard-icon {
    margin-bottom: 1rem;
}

.dashboard-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.dashboard-label {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Timeline Section */
.timeline-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    top: 0;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 50%;
    padding-right: 3rem;
}

.timeline-item--right {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 3rem;
}

.timeline-dot {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 4px solid;
    top: 0;
    right: -12px;
    z-index: 2;
}

.timeline-item--right .timeline-dot {
    right: auto;
    left: -12px;
}

.timeline-content {
    padding: 2rem;
    border-radius: 0.75rem;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.timeline-icon {
    margin-bottom: 1rem;
}

.timeline-content h3 {
    margin-bottom: 0.75rem;
}

.timeline-meta {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Calculators Section */
.calculators-section {
    padding: 5rem 0;
}

.calculators-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.calculator-card {
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.calculator-card h3 {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.calculator-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.calc-btn {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 0.5rem;
}

.calc-btn:hover {
    opacity: 0.9;
}

.calc-result {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
}

.result-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.result-amount {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Articles Section */
.articles-section {
    padding: 5rem 0;
}

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

.article-card {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.article-image {
    height: 200px;
    overflow: hidden;
    background-color: #f3f4f6;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.article-content {
    padding: 1.5rem;
}

.article-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.article-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.article-content h3 a:hover {
    text-decoration: none;
    color: #a16207;
}

.article-content p {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

/* Categories Section */
.categories-section {
    padding: 5rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.category-card {
    padding: 2rem 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.category-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.category-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.category-card p {
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

/* Newsletter */
.newsletter-section {
    padding: 4rem 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.newsletter-form .form-group {
    flex: 1;
    margin: 0;
    min-width: 200px;
}

.newsletter-form input {
    margin: 0;
}

.btn-submit {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.btn-submit:hover {
    opacity: 0.9;
}

/* Disclaimer */
.disclaimer-section {
    padding: 3rem 0;
}

.disclaimer-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    border-radius: 0.5rem;
}

.disclaimer-box h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
}

.disclaimer-box p {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 2rem 1rem;
    }
    
    .hero-image {
        min-height: 300px;
        order: -1;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-line {
        left: 1rem;
    }
    
    .timeline-item,
    .timeline-item--right {
        width: 100%;
        margin-left: 0;
        padding-left: 3rem;
        padding-right: 0;
    }
    
    .timeline-dot,
    .timeline-item--right .timeline-dot {
        left: 0;
        right: auto;
    }
    
    .calculators-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .form-group {
        width: 100%;
    }
    
    .category-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
}