.tableau-section {
    padding: 50px 20px;
    background-color: #FFFFFF; 
    border-radius: 14px; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); 
    max-width: 1200px;
    margin: 0 auto;
    font-family: Montserrat, sans-serif; 
    color: #000000; 
}

/* Ribbon / timeline component styles (responsive) */
.ribbon{max-width:1100px;margin:0 auto;padding:40px 20px}
.ribbon__head{margin-bottom:20px}
.ribbon__head .eyebrow{display:inline-block;font-weight:700;color:#FE5716;margin-bottom:8px}
.ribbon__head .title{font-size:28px;margin:6px 0; color:#10367A}
.ribbon__head .subtitle{color:#6b7280;margin:0}

.timeline{display:flex;gap:24px;align-items:flex-start;flex-wrap:wrap}
.timeline .step{display:flex;gap:16px;align-items:flex-start;flex:1 1 48%}
.timeline .badge{flex:0 0 56px;display:flex;align-items:center;justify-content:center}
.timeline .badge__num{background:#f3f6ff;color:#0b1324;font-weight:800;padding:10px 12px;border-radius:50%;display:inline-block}
.timeline .card{background:#fff;padding:16px;border-radius:12px;box-shadow:0 6px 18px rgba(0,0,0,0.06);flex:1}
.timeline .card h3{margin:0 0 8px;font-size:18px; color:#10367A}
.timeline .card p{margin:0;color:#475467}

.cta-wrap{margin-top:20px;text-align:center}
.cta-wrap .btn{display:inline-flex;align-items:center;gap:10px;padding:12px 18px;border-radius:10px;background:#10367A;color:#fff;text-decoration:none}

/* Mobile adjustments: stack steps, compact spacing, CTA full width */
@media (max-width: 768px){
    .ribbon{padding:20px 12px}
    .ribbon__head .title{font-size:20px}
    .timeline{display:block}
    .timeline .step{display:flex;gap:12px;align-items:flex-start;margin-bottom:12px}
    .timeline .badge{flex:0 0 44px;margin-right:8px}
    .timeline .badge__num{padding:8px 10px;font-size:14px}
    .timeline .card{padding:12px;border-radius:10px}
    .timeline .card h3{font-size:16px}
    .timeline .card p{font-size:14px}
    .cta-wrap{margin-top:14px}
    .cta-wrap .btn{width:100%;justify-content:center;padding:12px;border-radius:8px}
}

@media (max-width: 420px){
    .ribbon{padding:16px 10px}
    .ribbon__head .title{font-size:18px}
    .timeline .badge{flex:0 0 40px;margin-right:10px}
    .timeline .card p{font-size:13px}
    .cta-wrap .btn{padding:10px}
}


.tableau-title {
    font-size: 2rem;
    font-weight: bold;
    color: #10367A; 
    margin-bottom: 30px;
    text-align: center;
}


.tableau {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); 
}

.tableau th, .tableau td {
    border: 1px solid #D3D3D3; 
    padding: 15px;
    text-align: center;
    font-size: 1rem;
}

.tableau th {
    background-color: #D3D3D3; 
    font-weight: bold;
    color: #10367A; 
}

.tableau td {
    background-color: #FFFFFF; 
    color: #000000; 
}


.tableau .blue {
    color: #10367A; 
    font-weight: bold;
}

.tableau .yellow {
    color: #FE5716; 
    font-weight: bold;
}

.tableau .purple {
    color: #10367A; 
    font-weight: bold;
}

.tableau .pink {
    color: #FE5716; 
    font-weight: bold;
}


@media screen and (max-width: 768px) {
    .tableau {
        font-size: 0.95rem;
    }

    .tableau th, .tableau td {
        padding: 12px;
    }
}

@media screen and (max-width: 600px) {
    .tableau {
        display: block;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        overflow: visible;
    }

    .tableau thead {
        display: none;
    }

    .tableau tbody,
    .tableau tr {
        display: block;
        width: 100%;
        margin-bottom: 14px;
    }

    .tableau tr {
        background-color: #FFFFFF;
        border: 1px solid #D3D3D3;
        border-radius: 12px;
        padding: 10px 12px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    }

    .tableau td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 6px;
        border: none;
        border-bottom: 1px solid #f0f2f6;
        font-size: 0.95rem;
    }

    .tableau td:last-child {
        border-bottom: none;
    }

    .tableau tr td:nth-child(1)::before { content: "Ménage"; font-weight:700; color:#000000; margin-right:10px; width: 56%; }
    .tableau tr td:nth-child(2)::before { content: "MaPrimeRénov’ Bleu"; font-weight:600; color:#10367A; margin-right:10px; width: 56%; }
    .tableau tr td:nth-child(3)::before { content: "MaPrimeRénov’ Jaune"; font-weight:600; color:#FE5716; margin-right:10px; width: 56%; }
    .tableau tr td:nth-child(4)::before { content: "MaPrimeRénov’ Violet"; font-weight:600; color:#10367A; margin-right:10px; width: 56%; }
    .tableau tr td:nth-child(5)::before { content: "MaPrimeRénov’ Rose"; font-weight:600; color:#FE5716; margin-right:10px; width: 56%; }

    .tableau tr td::before {
        display: inline-block;
        white-space: normal;
        text-align: left;
        font-size: 0.92rem;
        line-height: 1.2;
    }

    .tableau tr td span,
    .tableau tr td {
        color: #000000;
    }

    .tableau-section {
        padding: 28px 14px;
    }

    .tableau-title {
        font-size: 1.4rem;
        margin-bottom: 18px;
    }
}

@media screen and (min-width: 601px) and (max-width: 900px) {
    .tableau {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }
    .tableau table, .tableau thead, .tableau tbody, .tableau th, .tableau td, .tableau tr {
        display: table;
    }
}