/* ==========================================================
   Comparison Table Widget — Styles
   ========================================================== */

.ct-widget {
    font-family: inherit;
    box-sizing: border-box;
}

.ct-widget *,
.ct-widget *::before,
.ct-widget *::after {
    box-sizing: border-box;
}

/* ----------------------------------------------------------
   TABLE
   ---------------------------------------------------------- */
.ct-table {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

/* ----------------------------------------------------------
   HEADER
   ---------------------------------------------------------- */
.ct-header-row {
    display: grid;
    grid-template-columns: 1fr repeat(3, 1fr);
}

.ct-header-cell {
    padding: 16px 20px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: #2D6A5E;
}

.ct-header-cell:first-child {
    background: transparent;
    border-bottom: 1px solid #e5e5e5;
}

.ct-header-cell:nth-child(2) { background: #A8D5C6; color: #1A3D35; }
.ct-header-cell:nth-child(3) { background: #2D6A5E; color: #fff; }
.ct-header-cell:nth-child(4) { background: #1A3D35; color: #fff; }

/* ----------------------------------------------------------
   FEATURE ROW
   ---------------------------------------------------------- */
.ct-feature-row {
    display: grid;
    grid-template-columns: 1fr repeat(3, 1fr);
    border-top: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background .15s;
}

.ct-feature-row:hover {
    background: #faf9f5;
}

.ct-feature-name {
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1A3D35;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ct-feature-value {
    padding: 14px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1A3D35;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    border-left: 1px solid #f0f0f0;
}

.ct-feature-value.ct-excluded {
    color: #bbb;
}

.ct-feature-value .ct-check {
    color: #3d8a7f;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.ct-chevron {
    margin-left: auto;
    color: #bbb;
    flex-shrink: 0;
    transition: transform .2s;
    font-size: 0.75rem;
}

.ct-feature-name .ct-chevron {
    margin-left: 4px;
}

/* ----------------------------------------------------------
   DROPDOWN
   ---------------------------------------------------------- */
.ct-dropdown {
    display: none;
    grid-column: 1 / -1;
    border-top: 1px solid #f0f0f0;
    background: #faf9f5;
    padding: 16px 20px;
    font-size: 0.88rem;
    color: #3D5E56;
    line-height: 1.6;
}

.ct-dropdown.open {
    display: block;
}

.ct-dropdown p { margin: 0 0 8px; }
.ct-dropdown p:last-child { margin-bottom: 0; }
.ct-dropdown ul { margin: 8px 0; padding-left: 0; list-style: none; }
.ct-dropdown ul li { padding: 3px 0 3px 20px; position: relative; }
.ct-dropdown ul li::before { content: '✓'; position: absolute; left: 0; color: #3d8a7f; font-weight: 700; }
.ct-dropdown strong { color: #1A3D35; }

/* Row ouverte */
.ct-feature-row.open {
    background: #faf9f5;
}

.ct-feature-row.open .ct-chevron {
    transform: rotate(180deg);
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 768px) {
    .ct-header-row,
    .ct-feature-row {
        grid-template-columns: 1.2fr repeat(3, 1fr);
    }

    .ct-feature-name,
    .ct-feature-value {
        padding: 12px 8px;
        font-size: 0.8rem;
    }

    .ct-header-cell {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
}
