.hero {
    position: relative;
    overflow: hidden;
}

.hero-split {
    display: flex;
    min-height: 80vh;
}

.hero-image {
    flex: 1;
    min-height: 500px;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 56px;
    background-color: var(--color-brand);
    color: #fff;
}

.hero-content h1,
.hero-content .hero-subtitle,
.hero-content .hero-desc {
    color: #fff;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1.6;
}

.hero-desc {
    font-size: 1rem;
    margin-bottom: 32px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.section-intro {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.thematiques {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.thematiques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.thematique-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px 24px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.thematique-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.thematique-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(124, 45, 18, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.thematique-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-brand);
}

.thematique-content h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.thematique-content p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.articles {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

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

.article-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

.article-card-body {
    padding: 20px 24px 24px;
}

.article-card-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-card-title {
    font-size: 1.1875rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-card-title a {
    color: var(--color-brand);
}

.article-card-title a:hover {
    text-decoration: underline;
    color: var(--color-brand);
}

.article-card-excerpt {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.inspirations {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
}

.slider-track {
    display: flex;
    gap: 24px;
}

.slider-slide {
    flex: 0 0 calc(100% - 48px);
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
}

.slider-slide img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.slide-caption {
    padding: 16px 20px;
    background: var(--bg-light);
}

.slide-caption h3 {
    font-size: 1.0625rem;
    margin-bottom: 4px;
}

.slide-caption p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.timeline-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.timeline {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 56px;
    padding-bottom: 36px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-brand);
    font-size: 1.125rem;
    transition: background-color 0.2s, border-color 0.2s;
    z-index: 2;
}

.timeline-item:hover .timeline-marker,
.timeline-item:focus-within .timeline-marker {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: #fff;
}

.timeline-content h3 {
    font-size: 1.125rem;
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.calculator-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.calculator {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: start;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.calc-field label {
    display: block;
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.6;
}

.calc-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 1rem;
    cursor: pointer;
}

.calc-field select:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 1px;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-brand);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-brand);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.calc-range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.calc-range-header label {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text-dark);
    margin-bottom: 0;
}

.calc-range-value {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--color-brand);
}

.calc-radios {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.calc-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 400;
    transition: border-color 0.2s, background-color 0.2s;
    flex: 1;
    min-width: 0;
    justify-content: center;
}

.calc-radio:has(input:checked) {
    border-color: var(--color-brand);
    background-color: rgba(124, 45, 18, 0.05);
}

.calc-radio input {
    margin: 0;
    cursor: pointer;
    accent-color: var(--color-brand);
}

.calc-radio span {
    line-height: 1.6;
}

.calc-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 400;
    transition: border-color 0.2s, background-color 0.2s;
}

.calc-checkbox:has(input:checked) {
    border-color: var(--color-brand);
    background-color: rgba(124, 45, 18, 0.05);
}

.calc-checkbox input {
    margin: 0;
    cursor: pointer;
    accent-color: var(--color-brand);
}

.calc-checkbox span {
    line-height: 1.6;
}

.calc-submit {
    align-self: flex-start;
    padding: 14px 36px;
    font-size: 1rem;
}

.calc-result {
    background-color: var(--color-brand);
    color: #fff;
    border-radius: 8px;
    padding: 40px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 300px;
    position: sticky;
    top: 24px;
}

.calc-result-inner {
    width: 100%;
}

.calc-result-label {
    font-size: 0.9375rem;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
    line-height: 1.6;
}

.calc-result-amount {
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.6;
}

.calc-result-note {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
    line-height: 1.6;
}

.calc-result-icon {
    margin-bottom: 16px;
}

.calc-result-icon svg {
    width: 48px;
    height: 48px;
    color: rgba(255,255,255,0.3);
}

.newsletter-section {
    padding: 64px 0;
    background-color: var(--color-brand);
    color: #fff;
}

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

.newsletter h2,
.newsletter p {
    color: #fff;
}

.newsletter h2 {
    margin-bottom: 12px;
}

.newsletter > p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 28px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto 16px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1rem;
    min-width: 0;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.55);
}

.newsletter-form input[type="email"]:focus-visible {
    outline: 2px solid var(--color-cta);
    outline-offset: 1px;
}

.newsletter-form .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.newsletter-note {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
    line-height: 1.6;
}

@media (min-width: 769px) {
    .slider-slide {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 1024px) {
    .calculator {
        grid-template-columns: 1fr;
    }

    .calc-result {
        position: static;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .hero-split {
        flex-direction: column;
        min-height: auto;
    }

    .hero-image {
        min-height: 280px;
        flex: none;
    }

    .hero-content {
        padding: 40px 24px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.0625rem;
    }

    .thematiques {
        padding: 48px 0;
    }

    .thematiques-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .articles {
        padding: 48px 0;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .article-card-image {
        height: 200px;
    }

    .inspirations {
        padding: 48px 0;
    }

    .slider {
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .slider-slide {
        flex: 0 0 calc(100% - 32px);
    }

    .slider-slide img {
        height: 240px;
    }

    .timeline-section {
        padding: 48px 0;
    }

    .timeline {
        padding-left: 32px;
    }

    .timeline::before {
        left: 17px;
    }

    .timeline-item {
        padding-left: 48px;
    }

    .timeline-marker {
        width: 36px;
        height: 36px;
        font-size: 0.9375rem;
    }

    .calculator-section {
        padding: 48px 0;
    }

    .calc-radios {
        flex-direction: column;
    }

    .calc-submit {
        width: 100%;
    }

    .newsletter-section {
        padding: 48px 0;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .section-intro {
        font-size: 1rem;
        margin-bottom: 28px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 32px 16px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-desc {
        font-size: 0.9375rem;
    }

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

    .hero-actions .btn {
        width: 100%;
    }

    .calc-result-amount {
        font-size: 1.75rem;
    }
}