/* ---- PRICING TOGGLE ---- */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    gap: 1rem;
}

.toggle-label {
    font-weight: 600;
    color: #161B33;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-switch label {
    position: absolute;
    cursor: pointer;
    background: #ffeaea;
    border-radius: 16px;
    width: 100%;
    height: 100%;
    transition: background 0.2s;
}
.toggle-switch label:after {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: transform 0.2s;
}
.toggle-switch input:checked + label {
    background: #ffd5d5;
}
.toggle-switch input:checked + label:after {
    transform: translateX(22px);
}

.discount {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.95em;
    margin-left: 2px;
}

/* ---- PRICING CARDS ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: #fff;
    border: 3px solid #ffeaea;
    border-radius: 1.5rem;
    box-shadow: 0 2px 16px 0 rgba(208,0,43,0.06);
    padding: 2.4rem 2rem 1.5rem 2rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border 0.2s, box-shadow 0.2s;
}

.pricing-card:hover, .pricing-card.popular {
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 24px 0 rgba(208,0,43,0.12);
}

.pricing-header h3 {
    font-size: 1.35rem;
    margin-bottom: 0.2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.02em;
}
.pricing-header .price {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.3em;
}
.pricing-header .amount {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--primary-color);
    display: inline-block;
}
.pricing-header .period {
    font-size: 1.1rem;
    color: #404866;
    margin-left: 2px;
}
.pricing-header .description {
    font-size: 1rem;
    color: #444;
    margin-top: 0.6rem;
    margin-bottom: 0.2rem;
}

.pricing-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    font-size: 0.95em;
    font-weight: 700;
    padding: 0.3em 1.2em;
    border-radius: 1em;
    box-shadow: 0 1px 7px rgba(208,0,43,0.09);
    z-index: 3;
    letter-spacing: 0.03em;
}

.pricing-features {
    margin: 2rem 0 1.4rem 0;
    text-align: left;
}
.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pricing-features li {
    position: relative;
    margin-bottom: 0.7rem;
    padding-left: 1.5em;
    color: #404866;
    font-size: 1rem;
}
.pricing-features li:before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.pricing-footer .btn-full {
    width: 100%;
    margin-bottom: 0.5em;
    padding: 0.85em 0;
    font-size: 1.1em;
}
.pricing-footer .trial {
    font-size: 0.96em;
    color: #6E7299;
    margin-top: 0.2em;
}

@media (max-width: 1150px) {
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 800px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .pricing-card {
        padding: 1.7rem 1rem 1rem 1rem;
    }
}

/* ---- PRICING TOGGLE Hide/show annual/monthly price ---- */
.amount.annual { display: none; }
#billing-toggle:checked ~ .pricing-grid .pricing-card .price .monthly { display: none; }
#billing-toggle:checked ~ .pricing-grid .pricing-card .price .annual { display: inline-block; }
#billing-toggle:not(:checked) ~ .pricing-grid .pricing-card .price .monthly { display: inline-block; }
#billing-toggle:not(:checked) ~ .pricing-grid .pricing-card .price .annual { display: none; }
/* Si tu utilises JS pour le toggle, cette partie peut varier */

/* ---- COMPARISON TABLE ---- */
.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: 1.2rem;
    box-shadow: 0 2px 16px 0 rgba(208,0,43,0.05);
}

.comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: #fff;
    border-radius: 1.2rem;
    overflow: hidden;
}
.comparison-table thead tr {
    background: #ffeaea;
}
.comparison-table th, .comparison-table td {
    padding: 1rem 1.1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 1.05rem;
}
.comparison-table th {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.01em;
}
.comparison-table td.feature-name {
    text-align: left;
    font-weight: 500;
    color: #161B33;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Check et Cross */
.comparison-table .check {
    color: #00C48C;
    font-size: 1.3em;
    font-weight: bold;
}
.comparison-table .cross {
    color: var(--primary-color);
    font-size: 1.3em;
    font-weight: bold;
}

/* Subtitle section */
.section-subtitle {
    color: #404866;
    font-size: 1.15rem;
    margin-bottom: 1.4rem;
    text-align: center;
}

/* Amélioration scroll mobile */
.comparison-table-wrapper::-webkit-scrollbar {
    height: 7px;
    background: #ffeaea;
    border-radius: 10px;
}
.comparison-table-wrapper::-webkit-scrollbar-thumb {
    background: #ffd5d5;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 700px) {
    .comparison-table th, .comparison-table td {
        padding: 0.65rem 0.5rem;
        font-size: 0.97rem;
    }
    .comparison-table {
        min-width: 420px;
    }
}
