:root {
    --color-brand: #388e3c;
    --color-cta: #ffa000;
    --color-brand-dark: #2a6b2d;
    --text-muted: #777;
    --border: #ddd;
}

.container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 32px;
}

.intro-section {
    background: #f7f8f4;
    padding: 80px 0;
}
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.intro-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    color: #222;
    margin-bottom: 18px;
    line-height: 1.6;
}
.intro-text p {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 16px;
}
.intro-visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    object-fit: cover;
}

.categories-section {
    background: #388e3c;
    padding: 80px 0;
}
.section-title-dark {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.6;
}
.section-desc-dark {
    color: rgba(255,255,255,0.82);
    text-align: center;
    font-size: 1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.cat-card {
    background: #fff;
    border-radius: 8px;
    padding: 28px 22px;
    text-decoration: none;
    color: #222;
    display: block;
    transition: box-shadow 0.2s, background-color 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.cat-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    background: #f9fff9;
}
.cat-icon {
    color: #388e3c;
    margin-bottom: 14px;
}
.cat-card strong {
    display: block;
    font-size: 0.97rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.6;
}
.cat-card p {
    font-size: 0.86rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.editorial-section {
    padding: 84px 0;
}
.editorial-section--light {
    background: #f7f8f4;
}
.editorial-section--dark {
    background: #1a2e1a;
}
.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.editorial-grid--reverse {
    direction: rtl;
}
.editorial-grid--reverse > * {
    direction: ltr;
}
.editorial-text h2 {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 700;
    color: #222;
    margin-bottom: 18px;
    line-height: 1.6;
}
.editorial-text p {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 14px;
}
.editorial-text--light h2 {
    color: #fff;
}
.editorial-text--light p {
    color: rgba(255,255,255,0.84);
}
.editorial-visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.articles-section {
    background: #fff;
    padding: 84px 0;
}
.articles-section__title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    color: #222;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.6;
}
.articles-section__desc {
    color: #777;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 44px;
    line-height: 1.6;
}
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    box-shadow: 0 6px 22px rgba(0,0,0,0.13);
}
.article-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}
.article-card__img-wrap {
    overflow: hidden;
    flex-shrink: 0;
}
.article-card__img-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    min-height: 200px;
}
.article-card--featured .article-card__img-wrap img {
    min-height: 320px;
}
.article-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.article-card__meta {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.article-card__meta span {
    font-size: 0.78rem;
    color: #777;
    line-height: 1.6;
}
.article-card__meta span:first-child {
    color: #388e3c;
    font-weight: 700;
}
.article-card__body h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 10px;
}
.article-card--featured .article-card__body h3 {
    font-size: 1.2rem;
}
.article-card__body h3 a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}
.article-card__body h3 a:hover {
    color: #388e3c;
}
.article-card__body p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.calculator-section {
    background: #388e3c;
    padding: 80px 0;
    clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
    margin: -20px 0;
}
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.calculator-intro h2 {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.6;
}
.calculator-intro p {
    color: rgba(255,255,255,0.82);
    font-size: 1rem;
    line-height: 1.6;
}
.calculator-form {
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}
.calc-field {
    margin-bottom: 20px;
}
.calc-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.6;
}
.calc-field input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    color: #222;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.calc-field input[type="number"]:focus {
    border-color: #388e3c;
    outline: none;
    background: #fff;
}
.calc-field input[type="range"] {
    width: 100%;
    accent-color: #388e3c;
    margin-top: 4px;
    height: 6px;
    cursor: pointer;
}
.calc-taux-display {
    display: inline-block;
    font-weight: 700;
    color: #388e3c;
    font-size: 0.95rem;
    margin-top: 6px;
}
.btn-calc {
    width: 100%;
    background: #ffa000;
    color: #fff;
    font-weight: 700;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 4px;
}
.btn-calc:hover {
    background: #e69000;
}
.calc-result {
    margin-top: 18px;
    min-height: 60px;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
}
.calc-result strong {
    color: #388e3c;
    font-size: 1.1rem;
}

.reperes-section {
    background: #fff;
    padding: 84px 0 72px;
}
.reperes-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.6;
}
.reperes-intro {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.6;
}
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.reperes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
    background: #fff;
}
.reperes-table thead tr {
    background: #388e3c;
}
.reperes-table thead th {
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: 14px 18px;
    line-height: 1.6;
    white-space: nowrap;
}
.reperes-table tbody tr {
    border-bottom: 1px solid #e8e8e8;
    transition: background-color 0.15s;
}
.reperes-table tbody tr:hover {
    background: #f7fff7;
}
.reperes-table tbody td {
    padding: 14px 18px;
    color: #333;
    line-height: 1.6;
    vertical-align: top;
}
.reperes-table tbody td:nth-child(2) {
    font-weight: 700;
    color: #388e3c;
    white-space: nowrap;
}
.reperes-comment {
    margin-top: 22px;
    font-size: 0.93rem;
    color: #555;
    line-height: 1.6;
    max-width: 860px;
}

.slider-section {
    background: #f7f8f4;
    padding: 84px 0;
}
.slider-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.6;
}
.slider-intro {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 36px;
    line-height: 1.6;
}
.slider-track-wrapper {
    position: relative;
    overflow: hidden;
}
.slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.35s;
    will-change: transform;
}
.slider-card {
    min-width: calc(33.333% - 16px);
    background: #fff;
    border-radius: 8px;
    padding: 28px 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    flex-shrink: 0;
}
.slider-card__icon {
    margin-bottom: 14px;
}
.slider-card strong {
    display: block;
    font-size: 0.97rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.6;
}
.slider-card p {
    font-size: 0.87rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}
.slider-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}
.slider-prev,
.slider-next {
    background: #388e3c;
    border: none;
    border-radius: 6px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background-color 0.2s;
}
.slider-prev:hover,
.slider-next:hover {
    background: #2a6b2d;
}

.faq-section {
    background: #f7f8f4;
    padding: 84px 0;
}
.faq-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    color: #222;
    margin-bottom: 36px;
    line-height: 1.6;
}
.faq-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    gap: 24px;
}
.faq-item {
    background: #fff;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.faq-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #388e3c;
    margin-bottom: 12px;
    line-height: 1.6;
}
.faq-item p {
    font-size: 0.93rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

.disclaimer-section {
    background: #fff;
    padding: 36px 0 48px;
}
.disclaimer-text {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 1024px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .slider-card {
        min-width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .intro-section,
    .categories-section,
    .editorial-section,
    .articles-section,
    .reperes-section,
    .slider-section,
    .faq-section {
        padding: 52px 0;
    }
    .intro-grid,
    .editorial-grid,
    .editorial-grid--reverse {
        grid-template-columns: 1fr;
        gap: 28px;
        direction: ltr;
    }
    .editorial-grid--reverse > * {
        direction: ltr;
    }
    .article-card--featured {
        grid-column: auto;
        grid-template-columns: 1fr;
    }
    .article-card--featured .article-card__img-wrap img {
        min-height: 220px;
    }
    .calculator-section {
        clip-path: none;
        margin: 0;
    }
    .slider-card {
        min-width: calc(85% - 12px);
    }
    .faq-list {
        grid-template-columns: 1fr;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 480px) {
    .intro-text h2,
    .articles-section__title,
    .reperes-section h2,
    .slider-section h2,
    .faq-section h2,
    .section-title-dark,
    .calculator-intro h2,
    .editorial-text h2 {
        font-size: 1.4rem;
    }
    .calculator-form {
        padding: 22px 18px;
    }
    .faq-item {
        padding: 20px;
    }
    .article-card__body {
        padding: 18px;
    }
    .reperes-table thead th,
    .reperes-table tbody td {
        padding: 10px 12px;
        font-size: 0.84rem;
    }
}