/* Base et reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

img, video, iframe, svg, canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hero Section - Fond sombre */
.article-hero {
    background-color: #194d2f;
    color: #ffffff;
    padding: 60px 20px 40px;
    position: relative;
    overflow: hidden;
}

.article-hero__container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.article-hero__category {
    display: inline-block;
    background-color: #80cbc4;
    color: #194d2f;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.article-hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #ffffff;
}

.article-hero__intro {
    font-size: 1.2rem;
    color: #e0f2f1;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.article-hero__meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 0.9rem;
    color: #b2dfdb;
}

.article-hero__image {
    max-width: 900px;
    margin: 40px auto 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.article-hero__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Disclaimer */
.article-disclaimer {
    background-color: #fff8e1;
    border-left: 4px solid #80cbc4;
    padding: 20px;
    margin: 40px auto;
    max-width: 800px;
    border-radius: 0 8px 8px 0;
}

.disclaimer-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.disclaimer-icon {
    flex-shrink: 0;
    color: #194d2f;
    margin-top: 2px;
}

.article-disclaimer p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Layout Article */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.article-wrapper {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Typographie */
.article-lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 32px;
    font-weight: 400;
}

.content-section {
    margin-bottom: 48px;
}

.content-section h2 {
    font-size: 1.8rem;
    color: #194d2f;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 16px;
}

/* Highlight Box */
.highlight-box {
    background-color: #e0f2f1;
    border-left: 4px solid #80cbc4;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box--turquoise {
    background-color: #e0f2f1;
}

.highlight-box strong {
    color: #194d2f;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* Section avec image */
.content-section--with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.image-content img {
    border-radius: 8px;
    width: 100%;
    height: auto;
}

/* Tableaux */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    font-size: 0.95rem;
}

.data-table thead {
    background-color: #194d2f;
    color: #ffffff;
}

.data-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.data-table tbody tr:hover {
    background-color: #f5f5f5;
}

.data-table .positive {
    color: #194d2f;
    font-weight: 700;
}

.table-caption {
    font-size: 0.9rem;
    color: #8d8d8d;
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}

/* Calculateur ROI */
.roi-calculator {
    background-color: #f5f5f5;
    border-radius: 12px;
    padding: 32px;
    margin: 32px 0;
}

.calculator-form {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #194d2f;
    margin-bottom: 8px;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    max-width: 100%;
}

.form-group input:focus {
    outline: none;
    border-color: #80cbc4;
}

.btn-calculate {
    background-color: #194d2f;
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    width: 100%;
    font-family: inherit;
}

.btn-calculate:hover {
    background-color: #0d3d22;
    transform: translateY(-2px);
}

.btn-calculate:active {
    transform: translateY(0);
}

.calculator-results {
    background-color: #194d2f;
    color: #ffffff;
    padding: 32px;
    border-radius: 8px;
    margin-top: 24px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 16px;
}

.result-item {
    text-align: center;
}

.result-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #80cbc4;
    margin-bottom: 4px;
}

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

.result-note {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
    font-style: italic;
}

/* Cartes erreurs */
.error-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.error-card {
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.error-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.error-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.error-card h3 {
    font-size: 1.1rem;
    color: #194d2f;
    margin: 0 0 12px 0;
}

.error-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Checklist */
.checklist-container {
    background-color: #fafafa;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.check-item {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
}

.check-item:hover {
    border-color: #80cbc4;
    background-color: #e0f2f1;
}

.check-item:last-child {
    margin-bottom: 0;
}

.check-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.check-box {
    width: 24px;
    height: 24px;
    border: 2px solid #8d8d8d;
    border-radius: 6px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.check-box svg {
    display: none;
    color: #ffffff;
}

.check-input:checked ~ .check-box {
    background-color: #194d2f;
    border-color: #194d2f;
}

.check-input:checked ~ .check-box svg {
    display: block;
}

.check-label {
    font-size: 1rem;
    color: #444;
    line-height: 1.4;
}

.check-input:checked ~ .check-label {
    color: #194d2f;
    font-weight: 500;
}

/* Conclusion et Quote */
.conclusion-section {
    background-color: #e0f2f1;
    padding: 40px;
    border-radius: 12px;
    margin-top: 48px;
}

.article-quote {
    background-color: #194d2f;
    color: #ffffff;
    padding: 32px 40px;
    border-radius: 12px;
    margin: 32px 0;
    position: relative;
}

.article-quote::before {
    content: '"';
    font-size: 4rem;
    color: #80cbc4;
    position: absolute;
    top: 8px;
    left: 20px;
    line-height: 1;
    opacity: 0.5;
}

.article-quote p {
    font-size: 1.3rem;
    font-style: italic;
    margin: 0 0 16px 0;
    color: #ffffff;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.article-quote cite {
    font-size: 0.95rem;
    opacity: 0.8;
    font-style: normal;
    color: #b2dfdb;
}

/* Navigation Article */
.article-navigation {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e0e0e0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.nav-link {
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    background-color: #fafafa;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    flex: 1;
}

.nav-link:hover {
    background-color: #e0f2f1;
    transform: translateX(4px);
}

.nav-link:first-child:hover {
    transform: translateX(-4px);
}

.nav-direction {
    font-size: 0.85rem;
    color: #8d8d8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #194d2f;
}

.nav-link--highlight {
    background-color: #194d2f;
    text-align: right;
}

.nav-link--highlight .nav-direction {
    color: #80cbc4;
}

.nav-link--highlight .nav-title {
    color: #ffffff;
}

.nav-link--highlight:hover {
    background-color: #0d3d22;
}

/* Responsive */
@media (max-width: 768px) {
    .article-hero__title {
        font-size: 1.8rem;
    }
    
    .article-hero__intro {
        font-size: 1.05rem;
    }
    
    .article-wrapper {
        padding: 24px;
    }
    
    .article-lead {
        font-size: 1.1rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section--with-image {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .error-cards {
        grid-template-columns: 1fr;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-link--highlight {
        text-align: left;
    }
    
    .data-table {
        font-size: 0.85rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px;
    }
    
    .conclusion-section {
        padding: 24px;
    }
    
    .article-quote {
        padding: 24px;
    }
    
    .article-quote p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .article-hero {
        padding: 40px 16px 32px;
    }
    
    .article-content {
        padding: 0 16px 40px;
    }
    
    .article-wrapper {
        padding: 20px;
    }
    
    .roi-calculator {
        padding: 20px;
    }
    
    .calculator-results {
        padding: 20px;
    }
    
    .check-item {
        padding: 12px;
    }
    
    .highlight-box {
        padding: 16px;
    }
}