/* =========================================================================
   /prices — Page tarifs refondue (fusion /prices + /prices/detail)
   Mobile-first, pas de tableau qui scroll horizontalement, SEO-friendly.
   ========================================================================= */

/* Accessibility helper */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Hero ---------- */
.prices-hero {
    padding: calc(var(--nav-height, 80px) + 1.5rem) 1.25rem 3rem;
    text-align: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
}
.prices-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 900;
    color: var(--text-dark);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}
.prices-hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- Plans (3 cards) ---------- */
.prices-plans {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.25rem 1rem;
}
.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 900px) {
    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
        align-items: stretch;
    }
}
.plan-card {
    position: relative;
    background: #fff;
    border: 2px solid var(--border, #e5e7eb);
    border-radius: 20px;
    padding: 1.75rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.plan-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary, #0A6DFF);
    box-shadow: 0 12px 32px rgba(10, 109, 255, 0.12);
}
.plan-card--featured {
    border-color: var(--primary, #0A6DFF);
    box-shadow: 0 14px 36px rgba(10, 109, 255, 0.18);
}
@media (min-width: 900px) {
    .plan-card--featured { transform: translateY(-6px); }
    .plan-card--featured:hover { transform: translateY(-10px); }
}
.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary, #0A6DFF), var(--primary-light, #3b82f6));
    color: #fff;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.plan-header { text-align: left; }
.plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark, #0f172a);
    margin: 0 0 0.35rem;
}
.plan-desc {
    font-size: 0.95rem;
    color: var(--text-medium, #475569);
    margin: 0 0 1rem;
}
.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.plan-amount {
    font-size: clamp(2.5rem, 7vw, 3.25rem);
    font-weight: 900;
    color: var(--text-dark, #0f172a);
    line-height: 1;
}
.plan-currency {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-medium, #475569);
}
.plan-period {
    font-size: 0.9rem;
    color: var(--text-light, #64748b);
    margin-left: 0.35rem;
}

/* Quotas grid : 2x2 compact, très lisible */
.plan-quotas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1rem;
    list-style: none;
    padding: 1rem 0 0;
    margin: 0;
    border-top: 1px solid var(--border, #e5e7eb);
}
.plan-quotas li {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.plan-quotas .q-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark, #0f172a);
    line-height: 1;
}
.plan-quotas .q-label {
    font-size: 0.8rem;
    color: var(--text-light, #64748b);
    line-height: 1.2;
}

.plan-support {
    font-size: 0.95rem;
    color: var(--text-medium, #475569);
    margin: 0;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border, #e5e7eb);
}

.plan-cta {
    display: block;
    margin-top: auto;
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
    border: 2px solid var(--primary, #0A6DFF);
}
.plan-cta--primary {
    background: linear-gradient(135deg, var(--primary, #0A6DFF), var(--primary-light, #3b82f6));
    color: #fff;
    box-shadow: 0 6px 16px rgba(10, 109, 255, 0.25);
}
.plan-cta--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(10, 109, 255, 0.35);
    color: #fff;
}
.plan-cta--outline {
    background: transparent;
    color: var(--primary, #0A6DFF);
}
.plan-cta--outline:hover {
    background: var(--primary, #0A6DFF);
    color: #fff;
}
.plan-cta--large {
    padding: 1.05rem 2rem;
    font-size: 1.1rem;
    display: inline-block;
    min-width: 260px;
}

.plans-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light, #64748b);
    margin: 2rem auto 0;
    max-width: 700px;
    line-height: 1.6;
}
.plans-note a {
    color: var(--primary, #0A6DFF);
    text-decoration: none;
    font-weight: 600;
}
.plans-note a:hover { text-decoration: underline; }

.plans-note--retention {
    background: rgba(10, 109, 255, 0.06);
    border: 1px solid rgba(10, 109, 255, 0.18);
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    margin-top: 1rem;
    max-width: 820px;
    text-align: left;
    color: var(--text-medium, #475569);
}
.plans-note--retention strong {
    color: var(--text-dark, #1a202c);
}

/* ---------- Section "Tout est inclus" ---------- */
.prices-included {
    background: #f8fafc;
    padding: 4rem 1.25rem;
    margin-top: 2rem;
}
.included-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.prices-included h2 {
    font-size: clamp(1.65rem, 3.5vw, 2.15rem);
    font-weight: 800;
    color: var(--text-dark, #0f172a);
    text-align: center;
    margin: 0 0 0.75rem;
}
.included-subtitle {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.5rem;
    color: var(--text-medium, #475569);
    font-size: 1.02rem;
    line-height: 1.65;
}
.included-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
@media (min-width: 600px) { .included-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (min-width: 960px) { .included-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px){ .included-grid { grid-template-columns: repeat(4, 1fr); } }
.included-grid li {
    background: #fff;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--border, #e5e7eb);
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.included-grid li:hover { border-color: var(--primary, #0A6DFF); transform: translateY(-2px); }
.included-grid .i-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}
.included-grid li strong {
    display: block;
    font-size: 0.98rem;
    color: var(--text-dark, #0f172a);
    margin-bottom: 0.15rem;
}
.included-grid li span {
    font-size: 0.83rem;
    color: var(--text-light, #64748b);
    line-height: 1.4;
}
.included-note {
    max-width: 760px;
    margin: 2rem auto 0;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-medium, #475569);
    line-height: 1.65;
}

/* ---------- Tableau différences (responsive stacked sur mobile) ---------- */
.prices-diffs {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.25rem 2rem;
}
.prices-diffs h2 {
    font-size: clamp(1.65rem, 3.5vw, 2.15rem);
    font-weight: 800;
    color: var(--text-dark, #0f172a);
    text-align: center;
    margin: 0 0 0.5rem;
}
.diffs-subtitle {
    text-align: center;
    color: var(--text-medium, #475569);
    margin: 0 0 2rem;
}
.diffs-table-wrap {
    overflow: visible;
}
.diffs-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.diffs-table thead th {
    background: #f1f5f9;
    padding: 1rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark, #0f172a);
    text-align: center;
    border-bottom: 2px solid var(--border, #e5e7eb);
}
.diffs-table thead th.diffs-featured {
    background: linear-gradient(135deg, rgba(10, 109, 255, 0.08), rgba(59, 130, 246, 0.12));
    color: var(--primary, #0A6DFF);
}
.diffs-price {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light, #64748b);
    margin-top: 0.15rem;
}
.diffs-table tbody th {
    text-align: left;
    padding: 0.9rem 0.85rem;
    font-weight: 600;
    color: var(--text-dark, #0f172a);
    font-size: 0.92rem;
    background: #fafbfc;
    border-bottom: 1px solid var(--border, #e5e7eb);
}
.diffs-table tbody td {
    padding: 0.9rem 0.75rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-medium, #475569);
    border-bottom: 1px solid var(--border, #e5e7eb);
}
.diffs-table tbody td.diffs-featured {
    background: rgba(10, 109, 255, 0.03);
    font-weight: 600;
    color: var(--text-dark, #0f172a);
}
.diffs-table tbody tr:last-child th,
.diffs-table tbody tr:last-child td { border-bottom: 0; }

/* Mobile : tableau → cartes stacked par ligne (pas de scroll horizontal) */
@media (max-width: 720px) {
    .diffs-table,
    .diffs-table thead,
    .diffs-table tbody,
    .diffs-table tr,
    .diffs-table th,
    .diffs-table td {
        display: block;
        width: 100%;
    }
    .diffs-table thead { display: none; }
    .diffs-table { background: transparent; box-shadow: none; }
    .diffs-table tbody tr {
        background: #fff;
        border: 1px solid var(--border, #e5e7eb);
        border-radius: 12px;
        margin-bottom: 1rem;
        padding: 0.5rem 0.25rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    }
    .diffs-table tbody th {
        background: transparent;
        font-size: 1rem;
        padding: 0.9rem 1rem 0.5rem;
        border-bottom: 1px dashed var(--border, #e5e7eb);
    }
    .diffs-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.65rem 1rem;
        text-align: right;
        border-bottom: 1px solid #f1f5f9;
    }
    .diffs-table tbody td::before {
        content: attr(data-label);
        color: var(--text-light, #64748b);
        font-weight: 600;
        font-size: 0.88rem;
        margin-right: 1rem;
    }
    .diffs-table tbody td.diffs-featured {
        background: rgba(10, 109, 255, 0.05);
    }
    .diffs-table tbody td.diffs-featured::before {
        color: var(--primary, #0A6DFF);
    }
    .diffs-table tbody tr td:last-child { border-bottom: 0; }
}

/* ---------- FAQ ---------- */
.prices-faq {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 1.25rem;
}
.prices-faq h2 {
    font-size: clamp(1.65rem, 3.5vw, 2.15rem);
    font-weight: 800;
    color: var(--text-dark, #0f172a);
    text-align: center;
    margin: 0 0 2rem;
}
.prices-faq details {
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.15s ease;
}
.prices-faq details[open] {
    border-color: var(--primary, #0A6DFF);
    box-shadow: 0 4px 14px rgba(10, 109, 255, 0.08);
}
.prices-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark, #0f172a);
    list-style: none;
    position: relative;
    padding-right: 1.75rem;
    font-size: 1rem;
}
.prices-faq summary::-webkit-details-marker { display: none; }
.prices-faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--primary, #0A6DFF);
    transition: transform 0.2s ease;
    line-height: 1;
}
.prices-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.prices-faq details p {
    margin: 0.75rem 0 0;
    color: var(--text-medium, #475569);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ---------- Trust section ---------- */
.prices-trust {
    background: #f8fafc;
    padding: 3rem 1.25rem;
}
.trust-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 600px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-card {
    background: #fff;
    padding: 1.5rem 1.35rem;
    border-radius: 12px;
    border: 1px solid var(--border, #e5e7eb);
}
.trust-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark, #0f172a);
    margin: 0 0 0.5rem;
}
.trust-card p {
    color: var(--text-medium, #475569);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

/* ---------- CTA final ---------- */
.prices-cta {
    text-align: center;
    padding: 4rem 1.25rem 5rem;
    max-width: 800px;
    margin: 0 auto;
}
.prices-cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--text-dark, #0f172a);
    margin: 0 0 0.75rem;
}
.prices-cta p {
    color: var(--text-medium, #475569);
    margin: 0 0 1.75rem;
    font-size: 1.05rem;
}
