/* ============================================
   Article Styles - Les Copains d'Abord
   Niche: Culture Tourisme Cuisine / Maison
   ============================================ */

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

html, body {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: #292524;
    background-color: #fffbf5;
}

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

a {
    color: #713f12;
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover {
    color: #92400e;
}

a:focus-visible {
    outline: 2px solid #e11d48;
    outline-offset: 2px;
    border-radius: 2px;
}

/* --- ARTICLE HERO --- */
.article-hero {
    background-color: #713f12;
    padding: 80px 24px 70px;
    text-align: center;
}

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

.article-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #fde68a;
    color: #713f12;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.article-hero__badge svg {
    flex-shrink: 0;
}

.article-hero__title {
    color: #ffffff;
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.article-hero__subtitle {
    color: #fde68a;
    font-size: clamp(16px, 2.5vw, 20px);
    line-height: 1.5;
    max-width: 640px;
    margin: 0 auto 28px;
}

.article-hero__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.article-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-hero__meta svg {
    opacity: 0.7;
    flex-shrink: 0;
}

/* --- ARTICLE BODY --- */
.article-content {
    padding: 0 24px;
}

.article-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 50px 0 60px;
}

.intro-paragraph {
    font-size: 19px;
    line-height: 1.8;
    color: #44403c;
    margin-bottom: 16px;
}

.article-body p {
    margin-bottom: 18px;
}

/* --- ARTICLE SECTIONS --- */
.article-section {
    margin-top: 52px;
}

.article-section h2 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    color: #713f12;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: -0.3px;
    padding-bottom: 12px;
    border-bottom: 3px solid #fde68a;
}

.article-section h3 {
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 700;
    color: #44403c;
    margin-top: 32px;
    margin-bottom: 14px;
    line-height: 1.35;
}

.article-section h4 {
    font-size: 17px;
    font-weight: 700;
    color: #713f12;
    margin-bottom: 8px;
}

.article-body ul, .article-body ol {
    margin-bottom: 18px;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-body strong {
    font-weight: 700;
    color: #292524;
}

/* --- THEME CARDS (GRID) --- */
.theme-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 28px 0 32px;
}

.theme-card {
    background-color: #ffffff;
    border: 2px solid #fde68a;
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(113, 63, 18, 0.12);
}

.theme-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: #fde68a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.theme-card h4 {
    margin-bottom: 8px;
    font-size: 17px;
}

.theme-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #57534e;
    margin-bottom: 0;
}

/* --- PULLQUOTE --- */
.pullquote {
    background-color: #fef9c3;
    border-left: 4px solid #fde68a;
    border-radius: 0 8px 8px 0;
    padding: 24px 28px;
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pullquote--alt {
    background-color: #fff1f2;
    border-left-color: #e11d48;
}

.pullquote blockquote {
    font-size: 17px;
    font-style: italic;
    line-height: 1.7;
    color: #44403c;
    margin: 0;
}

.pullquote svg {
    flex-shrink: 0;
    opacity: 0.8;
}

/* --- CALLOUT --- */
.callout {
    background-color: #fef9c3;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 28px 0;
    font-size: 15px;
    line-height: 1.65;
    color: #713f12;
}

.callout--disclaimer {
    background-color: #fff1f2;
    border-color: #e11d48;
    color: #881337;
}

.callout--disclaimer p {
    margin: 0;
    font-size: 14px;
}

.callout strong {
    color: #92400e;
}

.callout--disclaimer strong {
    color: #9f1239;
}

/* --- TABLES --- */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
    border-radius: 10px;
    border: 1px solid #f5f0e8;
}

.comparison-table,
.timeline-table,
.calculator__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.comparison-table th,
.timeline-table th,
.calculator__table th {
    background-color: #713f12;
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    padding: 12px 14px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.comparison-table td,
.timeline-table td,
.calculator__table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f5f0e8;
    vertical-align: top;
}

.comparison-table tbody tr:nth-child(even),
.timeline-table tbody tr:nth-child(even),
.calculator__table tbody tr:nth-child(even) {
    background-color: #fefce8;
}

.comparison-table tbody tr:hover,
.timeline-table tbody tr:hover,
.calculator__table tbody tr:hover {
    background-color: #fde68a;
    transition: background-color 0.15s ease;
}

.comparison-table td strong,
.timeline-table td strong {
    color: #713f12;
}

/* --- CALCULATOR --- */
.calculator {
    background-color: #ffffff;
    border: 2px solid #fde68a;
    border-radius: 14px;
    overflow: hidden;
    margin: 28px 0;
}

.calculator__header {
    background-color: #713f12;
    color: #ffffff;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calculator__header svg {
    flex-shrink: 0;
}

.calculator__body {
    padding: 20px;
}

.calculator__input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.calculator__input-group label {
    font-weight: 600;
    font-size: 15px;
    color: #292524;
    white-space: nowrap;
}

.calculator__input-group input[type="number"] {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #e7e5e4;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    text-align: center;
    transition: border-color 0.15s ease;
}

.calculator__input-group input[type="number"]:focus {
    border-color: #713f12;
    outline: none;
    box-shadow: 0 0 0 3px rgba(113, 63, 18, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn:hover {
    opacity: 0.88;
}

.btn:active {
    transform: scale(0.97);
}

.btn--accent {
    background-color: #e11d48;
    color: #ffffff;
}

.calculator__note {
    font-size: 13px;
    color: #a8a29e;
    margin-bottom: 12px;
}

.calculator__table .result {
    font-weight: 700;
    color: #713f12;
}

/* --- CHECKLIST --- */
.checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.checklist__group {
    background-color: #ffffff;
    border: 1px solid #f5f0e8;
    border-radius: 12px;
    padding: 20px;
}

.checklist__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: #713f12;
    margin-bottom: 12px;
}

.checklist__title svg {
    flex-shrink: 0;
}

.checklist__group ul {
    list-style: none;
    padding: 0;
}

.checklist__group li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 15px;
    color: #57534e;
}

.checklist__group li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: #fde68a;
    border-radius: 50%;
}

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

.pillar {
    background-color: #fff1f2;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.pillar:hover {
    transform: translateY(-2px);
}

.pillar__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border: 2px solid #e11d48;
}

.pillar h4 {
    font-size: 15px;
    font-weight: 700;
    color: #9f1239;
    margin-bottom: 8px;
}

.pillar p {
    font-size: 14px;
    line-height: 1.6;
    color: #57534e;
    margin: 0;
}

/* --- TIMELINE --- */
.timeline {
    position: relative;
    padding-left: 36px;
    margin: 28px 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #fde68a;
}

.timeline__item {
    position: relative;
    margin-bottom: 28px;
}

.timeline__item:last-child {
    margin-bottom: 0;
}

.timeline__marker {
    position: absolute;
    left: -36px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #fde68a;
    border: 3px solid #713f12;
}

.timeline__marker--active {
    background-color: #e11d48;
    border-color: #e11d48;
}

.timeline__content strong {
    display: block;
    font-size: 16px;
    color: #713f12;
    margin-bottom: 4px;
}

.timeline__content p {
    font-size: 15px;
    color: #57534e;
    margin: 0;
    line-height: 1.65;
}

/* --- TIPS GRID --- */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 28px 0;
}

.tip-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #f5f0e8;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(113, 63, 18, 0.1);
}

.tip-card__number {
    font-size: 36px;
    font-weight: 900;
    color: #fde68a;
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.tip-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #292524;
    margin-bottom: 10px;
    line-height: 1.35;
    margin-top: 0;
}

.tip-card p {
    font-size: 15px;
    line-height: 1.65;
    color: #57534e;
    margin: 0;
}

/* --- FAQ --- */
.article-faq {
    background-color: #fefce8;
    border-radius: 14px;
    padding: 32px;
    margin-top: 52px;
}

.article-faq h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 24px;
}

.faq-item {
    border-bottom: 1px solid #fde68a;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

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

.faq-item h3 {
    font-size: 17px;
    font-weight: 700;
    color: #713f12;
    margin-bottom: 10px;
    margin-top: 0;
}

.faq-item p {
    font-size: 15px;
    line-height: 1.7;
    color: #57534e;
    margin: 0;
}

/* --- RESPONSIVE: TABLET (max-width: 768px) --- */
@media (max-width: 768px) {
    .article-hero {
        padding: 60px 20px 50px;
    }

    .article-hero__meta {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .article-content {
        padding: 0 16px;
    }

    .article-body {
        padding: 36px 0 48px;
    }

    .intro-paragraph {
        font-size: 17px;
    }

    .article-section h2 {
        font-size: 22px;
    }

    .article-section h3 {
        font-size: 18px;
    }

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

    .pullquote {
        padding: 18px 20px;
        margin: 24px 0;
    }

    .pullquote blockquote {
        font-size: 16px;
    }

    .table-wrapper {
        margin: 20px 0;
    }

    .comparison-table th,
    .timeline-table th,
    .calculator__table th {
        font-size: 11px;
        padding: 10px 10px;
    }

    .comparison-table td,
    .timeline-table td,
    .calculator__table td {
        padding: 10px 10px;
        font-size: 13px;
    }

    .calculator__input-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .calculator__input-group input[type="number"] {
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .checklist {
        grid-template-columns: 1fr;
    }

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

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

    .timeline {
        padding-left: 30px;
    }

    .timeline__marker {
        left: -30px;
        width: 20px;
        height: 20px;
    }

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

    .article-faq {
        padding: 24px 20px;
    }
}

/* --- RESPONSIVE: SMALL MOBILE (max-width: 480px) --- */
@media (max-width: 480px) {
    .article-hero {
        padding: 48px 16px 40px;
    }

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

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

    .article-content {
        padding: 0 12px;
    }

    .article-body {
        padding: 28px 0 40px;
    }

    .article-section {
        margin-top: 40px;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .tip-card {
        padding: 18px;
    }

    .tip-card__number {
        font-size: 28px;
    }

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

    .theme-card {
        padding: 18px;
    }

    .calculator__body {
        padding: 16px;
    }

    .article-faq {
        padding: 20px 16px;
    }
}