/* =============================================
   ARTICLE.CSS - Chaudière condensation
   ACFL Chauffage - 2026
   Niche: Maison / Travaux / Énergie
   ============================================= */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

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

/* ---------- ARTICLE HERO ---------- */
.article-hero {
    background-color: #1d4ed8;
    padding: 60px 20px 50px;
}

.article-hero__inner {
    max-width: 860px;
    margin: 0 auto;
}

.article-meta-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
}

.article-date,
.article-read-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
}

.article-hero__title {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

.article-hero__subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.88);
    line-height: 1.65;
    margin: 0 0 28px;
    max-width: 720px;
}

.article-hero__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    object-fit: cover;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.author-disclaimer {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

/* ---------- DISCLAIMER BANNER ---------- */
.disclaimer-banner {
    background-color: #fff7ed;
    border-left: 4px solid #9a3412;
    padding: 14px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 860px;
    margin: 0 auto 0;
}

.disclaimer-banner svg {
    flex-shrink: 0;
    color: #9a3412;
    margin-top: 2px;
}

.disclaimer-banner p {
    margin: 0;
    font-size: 13px;
    color: #7c2d12;
    line-height: 1.5;
}

/* ---------- ARTICLE LAYOUT ---------- */
.article-layout {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.article-content {
    width: 100%;
}

/* ---------- ARTICLE SECTIONS ---------- */
.article-section {
    padding: 48px 0;
    border-bottom: 1px solid #e5e7eb;
}

.article-section:last-child {
    border-bottom: none;
}

/* ---------- SECTION TITLES ---------- */
.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 800;
    color: #111827;
    margin: 0 0 28px;
    line-height: 1.25;
}

.section-title__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    background-color: #1d4ed8;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 8px;
    letter-spacing: 0.02em;
}

/* ---------- ARTICLE LEAD ---------- */
.article-lead {
    font-size: 18px;
    line-height: 1.75;
    color: #1f2937;
    font-weight: 500;
    margin-bottom: 20px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 18px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 32px 0 16px;
}

/* ---------- INTRO HIGHLIGHT BOX ---------- */
.intro-section {
    padding-top: 40px;
}

.intro-highlight-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.intro-highlight-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.intro-highlight-content strong {
    display: block;
    font-size: 15px;
    color: #1d4ed8;
    font-weight: 700;
    margin-bottom: 6px;
}

.intro-highlight-content p {
    margin: 0;
    font-size: 14px;
    color: #1e40af;
    line-height: 1.6;
}

/* ---------- ARTICLE IMAGE ---------- */
.article-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 0 28px;
    object-fit: cover;
}

/* ---------- FEATURE GRID ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.feature-card {
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.feature-card--blue {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
}

.feature-card--orange {
    background-color: #fff7ed;
    border: 1px solid #fed7aa;
}

.feature-card--neutral {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
}

.feature-card__icon {
    margin-bottom: 4px;
}

.feature-card strong {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.feature-card p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ---------- COST BREAKDOWN TABLE ---------- */
.cost-breakdown-table {
    background-color: #f9fafb;
    border-radius: 10px;
    padding: 24px;
    margin: 28px 0;
    border: 1px solid #e5e7eb;
}

.table-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.table-responsive-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th {
    background-color: #1d4ed8;
    color: #ffffff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

th:first-child { border-radius: 6px 0 0 0; }
th:last-child { border-radius: 0 6px 0 0; }

td {
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    vertical-align: top;
}

tr:hover td {
    background-color: #f0f9ff;
}

.cost-value {
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
}

.table-total td {
    background-color: #f3f4f6;
    border-top: 2px solid #d1d5db;
}

.table-aid td {
    background-color: #f0fdf4;
    color: #374151;
}

.aid-value {
    color: #15803d !important;
}

.table-final td {
    background-color: #eff6ff;
    border-top: 2px solid #1d4ed8;
}

.final-value {
    color: #1d4ed8 !important;
    font-size: 16px !important;
}

/* ---------- TIP BOX ---------- */
.tip-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: #eff6ff;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    border-left: 3px solid #1d4ed8;
}

.tip-box__icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.tip-box__content strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 4px;
}

.tip-box__content p {
    margin: 0;
    font-size: 14px;
    color: #1e3a8a;
    line-height: 1.55;
}

/* ---------- TIMELINE SLIDER ---------- */
.timeline-slider {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin: 24px 0;
}

.timeline-nav {
    display: flex;
    background-color: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.timeline-btn {
    flex: 1;
    padding: 14px 8px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.timeline-btn:hover {
    color: #1d4ed8;
}

.timeline-btn.active {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
    background-color: #ffffff;
}

.timeline-btn:focus {
    outline: 2px solid #1d4ed8;
    outline-offset: -2px;
}

.timeline-content {
    padding: 28px 24px;
    background-color: #ffffff;
}

.timeline-panel {
    display: block;
}

.timeline-panel[hidden] {
    display: none;
}

.timeline-panel__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.timeline-season-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background-color: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-period-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.timeline-period-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #1d4ed8;
    background-color: #eff6ff;
    padding: 3px 8px;
    border-radius: 20px;
}

.timeline-panel p {
    font-size: 15px;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 16px;
}

.timeline-facts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-facts li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.timeline-facts li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---------- STATS GRID ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 28px 0;
}

.stat-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
    min-width: 0;
    overflow: hidden;
}

.stat-card--highlight {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.stat-card--highlight .stat-value,
.stat-card--highlight .stat-label,
.stat-card--highlight .stat-sub {
    color: #ffffff;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: #1d4ed8;
    line-height: 1.1;
    margin-bottom: 6px;
}

.stat-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.stat-sub {
    display: block;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
}

/* ---------- ARTICLE QUOTE ---------- */
.article-quote {
    background-color: #fff7ed;
    border-left: 5px solid #9a3412;
    border-radius: 0 10px 10px 0;
    padding: 24px 28px;
    margin: 32px 0;
    position: relative;
}

.quote-mark {
    display: block;
    margin-bottom: 10px;
}

.quote-text {
    font-size: 18px;
    font-style: italic;
    color: #7c2d12;
    line-height: 1.7;
    margin: 0 0 12px;
    font-weight: 500;
}

.quote-author {
    font-size: 13px;
    color: #9a3412;
    font-style: normal;
    font-weight: 600;
}

/* ---------- COMPARISON TABLE ---------- */
.comparison-table th {
    background-color: #1e3a8a;
    font-size: 13px;
}

.comparison-table .positive {
    color: #15803d;
    font-weight: 700;
}

.comparison-table .neutral {
    color: #92400e;
    font-weight: 600;
}

.table-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    margin-top: 10px;
    font-style: italic;
}

/* ---------- CALCULATOR WIDGET ---------- */
.calculator-widget {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin: 24px 0;
}

.calculator-header {
    background-color: #1d4ed8;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.calculator-body {
    padding: 24px;
}

.calc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.calc-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calc-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.calc-input {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #111827;
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    width: 100%;
    max-width: 100%;
}

.calc-input:focus {
    outline: 2px solid #1d4ed8;
    outline-offset: 1px;
    border-color: #1d4ed8;
}

.calc-help {
    font-size: 11px;
    color: #9ca3af;
}

.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #1d4ed8;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    grid-column: 1 / -1;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: background-color 0.2s;
}

.calc-btn:hover {
    background-color: #1e40af;
}

.calc-btn:focus {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}

.calc-results {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
}

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

.calc-result-item {
    text-align: center;
    padding: 14px;
    background-color: #f9fafb;
    border-radius: 8px;
    min-width: 0;
    overflow: hidden;
}

.calc-result-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.calc-result-value {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: #1d4ed8;
}

.calc-disclaimer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
    margin: 0;
}

/* ---------- PROS CONS ---------- */
.pros-cons-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

.pros-block,
.cons-block {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.pros-cons-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
}

.pros-cons-header--pros {
    background-color: #15803d;
    color: #ffffff;
}

.pros-cons-header--cons {
    background-color: #b91c1c;
    color: #ffffff;
}

.pros-cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-cons-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.pros-cons-list li:last-child {
    border-bottom: none;
}

.pros-cons-item__icon {
    flex-shrink: 0;
    margin-top: 3px;
}

.pros-cons-list strong {
    display: block;
    font-size: 14px;
    color: #111827;
    font-weight: 700;
    margin-bottom: 4px;
}

.pros-cons-list p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* ---------- MAINTENANCE CHECKLIST ---------- */
.maintenance-checklist {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin: 24px 0;
}

.checklist-header {
    background-color: #1d4ed8;
    color: #ffffff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
}

.checklist-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.checklist-item:last-of-type {
    border-bottom: none;
}

.checklist-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.checklist-item--pro .checklist-badge {
    background-color: #1d4ed8;
    color: #ffffff;
}

.checklist-item--diy .checklist-badge {
    background-color: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.checklist-badge--diy {
    background-color: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.checklist-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.checklist-item p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.checklist-cost {
    background-color: #f9fafb;
    padding: 14px 20px;
    font-size: 14px;
    color: #374151;
    margin: 0;
    border-top: 1px solid #e5e7eb;
}

/* ---------- RETROSPECTIVE GRID ---------- */
.retrospective-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.retro-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    gap: 14px;
    min-width: 0;
    overflow: hidden;
}

.retro-card__number {
    font-size: 28px;
    font-weight: 900;
    color: #e5e7eb;
    line-height: 1;
    flex-shrink: 0;
    width: 36px;
}

.retro-card__content strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 6px;
}

.retro-card__content p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.55;
}

/* ---------- FAQ ---------- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin: 24px 0;
}

.faq-item {
    border-bottom: 1px solid #f3f4f6;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    background-color: #f9fafb;
    line-height: 1.4;
}

.faq-question svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.faq-answer {
    padding: 16px 20px 16px 52px;
    background-color: #ffffff;
}

.faq-answer p {
    font-size: 14px;
    color: #374151;
    line-height: 1.7;
    margin: 0;
}

/* ---------- VERDICT SECTION ---------- */
.verdict-section {
    border-bottom: none;
}

.verdict-box {
    background-color: #1d4ed8;
    border-radius: 14px;
    overflow: hidden;
}

.verdict-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

.verdict-score {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.score-item {
    display: grid;
    grid-template-columns: 180px 1fr 36px;
    align-items: center;
    gap: 14px;
}

.score-label {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.score-bar-wrap {
    background-color: rgba(255,255,255,0.2);
    border-radius: 20px;
    height: 10px;
    overflow: hidden;
}

.score-bar {
    background-color: #ffffff;
    height: 100%;
    border-radius: 20px;
}

.score-value {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    text-align: right;
}

.verdict-conclusion {
    padding: 20px 28px;
    font-size: 15px;
    color: rgba(255,255,255,0.92);
    line-height: 1.7;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 0;
}

.verdict-conclusion strong {
    color: #ffffff;
}

.verdict-disclaimer {
    padding: 14px 28px 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

.verdict-disclaimer strong {
    color: rgba(255,255,255,0.9);
}

/* ---------- GALLERY ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.gallery-thumb {
    position: relative;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: none;
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s;
}

.gallery-thumb:hover img {
    transform: scale(1.04);
}

.gallery-thumb:focus {
    outline: 3px solid #1d4ed8;
    outline-offset: 2px;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(29, 78, 216, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.gallery-thumb:hover .gallery-overlay,
.gallery-thumb:focus .gallery-overlay {
    opacity: 1;
}

/* ---------- GALLERY MODAL ---------- */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-modal[hidden] {
    display: none;
}

.gallery-modal__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.88);
    cursor: pointer;
}

.gallery-modal__content {
    position: relative;
    z-index: 1;
    background-color: #111827;
    border-radius: 12px;
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.gallery-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background-color: rgba(0,0,0,0.6);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: background-color 0.2s;
}

.gallery-modal__close:hover {
    background-color: rgba(0,0,0,0.9);
}

.gallery-modal__close:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.gallery-modal__img-wrap {
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.gallery-modal__img-wrap img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.gallery-modal__nav {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background-color: #1f2937;
}

.gallery-modal__prev,
.gallery-modal__next {
    background: none;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.gallery-modal__prev:hover,
.gallery-modal__next:hover {
    background-color: rgba(255,255,255,0.15);
}

.gallery-modal__prev:focus,
.gallery-modal__next:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.gallery-modal__caption {
    flex: 1;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

/* =============================================
   RESPONSIVE - MOBILE
   ============================================= */

@media (max-width: 768px) {
    .article-hero {
        padding: 40px 16px 36px;
    }

    .article-hero__title {
        font-size: 24px;
    }

    .article-hero__subtitle {
        font-size: 16px;
    }

    .article-meta-top {
        gap: 10px;
    }

    .disclaimer-banner {
        margin: 0 16px;
        flex-direction: column;
        gap: 8px;
    }

    .article-layout {
        padding: 0 16px 60px;
    }

    .article-section {
        padding: 32px 0;
    }

    .section-title {
        font-size: 20px;
        gap: 10px;
    }

    .section-title__number {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 11px;
    }

    /* Feature grid 2 colonnes sur mobile */
    .feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    /* Stats grid : 2 colonnes */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-value {
        font-size: 24px;
    }

    /* Timeline nav */
    .timeline-btn {
        font-size: 12px;
        padding: 12px 6px;
    }

    .timeline-content {
        padding: 20px 16px;
    }

    .timeline-panel__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Pros cons : 1 colonne */
    .pros-cons-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Retrospective grid : 1 colonne */
    .retrospective-grid {
        grid-template-columns: 1fr;
    }

    /* Calc form : 1 colonne */
    .calc-form {
        grid-template-columns: 1fr;
    }

    .calc-result-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* Gallery : 2 colonnes */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Score item */
    .score-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .score-bar-wrap {
        order: 3;
    }

    .score-value {
        text-align: left;
    }

    /* Verdict box */
    .verdict-header {
        padding: 16px 20px;
        font-size: 15px;
    }

    .verdict-score {
        padding: 18px 20px;
    }

    .verdict-conclusion,
    .verdict-disclaimer {
        padding: 14px 20px;
    }

    /* FAQ */
    .faq-answer {
        padding: 14px 16px;
    }

    /* checklist */
    .checklist-item {
        flex-direction: column;
        gap: 8px;
    }

    /* Gallery modal nav */
    .gallery-modal__nav {
        flex-direction: column;
        gap: 10px;
        padding: 12px 16px;
    }

    .gallery-modal__caption {
        order: -1;
    }

    /* Article image */
    .article-image {
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .article-hero {
        padding: 28px 14px 28px;
    }

    .article-hero__title {
        font-size: 21px;
    }

    .article-hero__subtitle {
        font-size: 15px;
    }

    .article-meta-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Feature grid : 1 colonne */
    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* Stats grid : 1 colonne */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-value {
        font-size: 22px;
    }

    /* Gallery : 1 colonne */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .timeline-nav {
        flex-direction: column;
    }

    .timeline-btn {
        border-bottom: none;
        border-right: 3px solid transparent;
        text-align: left;
    }

    .timeline-btn.active {
        border-right-color: #1d4ed8;
        background-color: #eff6ff;
    }

    .faq-question {
        font-size: 14px;
        padding: 14px 16px;
    }

    .section-title {
        font-size: 18px;
    }

    .article-lead {
        font-size: 16px;
    }

    .calc-result-grid {
        grid-template-columns: 1fr;
    }

    .retro-card {
        flex-direction: column;
        gap: 8px;
    }

    .retro-card__number {
        font-size: 20px;
        width: auto;
    }
}