/* ===========================================
   ECOS - Styles pour les pages de guides
   =========================================== */

/* ===========================================
   Article principal
   =========================================== */
.guide-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.guide-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.guide-category {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.guide-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.guide-intro {
    font-size: 1.2rem;
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* ===========================================
   Contenu
   =========================================== */
.guide-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.guide-content section {
    margin-bottom: 3rem;
}

.guide-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.guide-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 1.5rem 0 0.75rem;
}

.guide-content p {
    margin-bottom: 1rem;
}

.guide-content ul, .guide-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.guide-content li {
    margin-bottom: 0.5rem;
}

/* ===========================================
   Points cles
   =========================================== */
.key-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.key-point {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.key-icon {
    font-size: 2rem;
    line-height: 1;
}

.key-point strong {
    display: block;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.key-point p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* ===========================================
   Tableaux
   =========================================== */
.comparison-table,
.bareme-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td,
.bareme-table th,
.bareme-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.comparison-table th,
.bareme-table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-800);
}

.comparison-table tr:hover,
.bareme-table tr:hover {
    background: var(--gray-50);
}

.bareme-table.small {
    max-width: 400px;
}

.bareme-table.small td:last-child {
    text-align: right;
    font-weight: 600;
}

/* Cellules inclus/exclus */
.included {
    color: #18753c;
    font-weight: 500;
}

.excluded {
    color: #dc2626;
    font-weight: 500;
}

/* ===========================================
   Gagnants/Perdants
   =========================================== */
.winner-loser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.winner, .loser {
    padding: 1.5rem;
    border-radius: 12px;
}

.winner {
    background: #dcfce7;
    border: 1px solid #86efac;
}

.winner h3 {
    color: #166534;
    margin-top: 0;
}

.loser {
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.loser h3 {
    color: #991b1b;
    margin-top: 0;
}

.winner ul, .loser ul {
    margin: 0;
}

/* ===========================================
   Strategies
   =========================================== */
.strategy-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.strategy-card h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.strategy-card .example,
.example {
    background: var(--primary-light);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.warning-small {
    background: #fef3c7;
    color: #92400e;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

/* ===========================================
   Info et Warning boxes
   =========================================== */
.info-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.info-box strong {
    color: var(--primary);
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.warning-box h3 {
    color: #92400e;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.warning-box p {
    margin: 0;
    color: #78350f;
    font-size: 0.95rem;
}

/* ===========================================
   Exonerations
   =========================================== */
.exoneration-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.exoneration-item {
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.exoneration-item.highlight {
    background: #dcfce7;
    border-color: #86efac;
}

.exoneration-item h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.exoneration-item p {
    margin: 0;
}

.exoneration-item ul {
    margin: 0.5rem 0 0;
}

/* ===========================================
   Timeline
   =========================================== */
.timeline {
    position: relative;
    height: 80px;
    margin: 2rem 0;
    background: linear-gradient(to right, #fee2e2, #fef3c7, #dcfce7);
    border-radius: 8px;
}

.timeline-point {
    position: absolute;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    text-align: center;
}

.timeline-point .year {
    display: block;
    font-weight: 700;
    color: var(--gray-900);
    font-size: 0.9rem;
}

.timeline-point .label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

/* ===========================================
   CTA Box
   =========================================== */
.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin-top: 3rem;
}

.cta-box h3 {
    color: var(--white);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.cta-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

.cta-box .btn {
    background: var(--white);
    color: var(--primary);
}

.cta-box .btn:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

/* ===========================================
   Responsive
   =========================================== */
@media (max-width: 768px) {
    .guide-article {
        padding: 1rem;
    }

    .guide-header h1 {
        font-size: 1.75rem;
    }

    .guide-intro {
        font-size: 1rem;
    }

    .key-points {
        grid-template-columns: 1fr;
    }

    .winner-loser {
        grid-template-columns: 1fr;
    }

    .comparison-table,
    .bareme-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td,
    .bareme-table th,
    .bareme-table td {
        padding: 0.5rem;
    }

    .timeline {
        display: none;
    }
}
