/* =========================
   Hees — Abonnements maintenance
   Responsive propre PC / tablette / mobile
   ========================= */

.container--wide{
    max-width: min(1460px, 95vw);
}

.section-head{
    width: 100%;
    max-width: none;
}

.section-head .page-title,
.section-head .intro-text{
    width: 100%;
    max-width: none;
}

.subscriptions-hero{
    background:
        radial-gradient(900px 420px at 12% -8%, rgba(184,10,36,.12), transparent 65%),
        radial-gradient(900px 420px at 88% -10%, rgba(122,22,42,.10), transparent 68%);
}

/* ---------- Bloc principal ---------- */
.plans-block{
    margin-top: 22px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 26px;
    background: rgba(12,14,19,.58);
    box-shadow: 0 18px 44px rgba(0,0,0,.24);
}

/* ---------- Cartes abonnements ---------- */
.pricing-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.plan{
    --accent-1: rgba(184,10,36,.34);
    --line: rgba(255,255,255,.10);

    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 430px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)),
        linear-gradient(145deg, rgba(24,26,34,.98), rgba(13,15,20,.98));
    box-shadow: 0 14px 32px rgba(0,0,0,.20);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.plan > *{
    position: relative;
    z-index: 1;
}

.plan:hover{
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.16);
    box-shadow: 0 18px 36px rgba(0,0,0,.26);
}

.plan-accent{
    width: 100%;
    height: 3px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.75), rgba(255,255,255,0));
    opacity: .9;
}

.plan-head{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.plan-tier{
    margin: 0 0 6px;
    color: rgba(255,255,255,.58);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.plan-name{
    margin: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.plan-badge{
    flex: 0 0 auto;
    padding: 7px 11px;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.88);
    font-size: 12px;
    font-weight: 700;
}

.plan-badge--featured{
    background: rgba(255,255,255,.12);
    color: #fff;
}

.plan-price-row{
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin: 18px 0 12px;
}

.plan-price{
    color: #fff;
    font-size: 58px;
    line-height: .95;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.plan-period{
    color: rgba(255,255,255,.78);
    font-size: 14px;
    font-weight: 600;
}

.plan-intro{
    margin: 0;
    color: rgba(255,255,255,.82);
    line-height: 1.55;
}

.plan-meta{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.plan-meta span{
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.82);
    font-size: 12px;
    font-weight: 700;
}

.plan-bullets{
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.plan-bullets li{
    position: relative;
    padding-left: 18px;
    color: rgba(255,255,255,.94);
    line-height: 1.5;
}

.plan-bullets li::before{
    content: "";
    position: absolute;
    top: .62em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #fff;
    opacity: .95;
    box-shadow: 0 0 0 5px rgba(255,255,255,.08);
}

.plan-footer{
    margin-top: auto;
    padding-top: 20px;
}

.btn--wide{
    width: 100%;
}

.plan .btn{
    min-height: 52px;
    border-radius: 16px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.plan .btn:disabled{
    opacity: .72;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.plan--starter{
    --accent-1: rgba(126,42,58,.35);
}

.plan--pro{
    --accent-1: rgba(184,10,36,.42);
    border-color: rgba(255,255,255,.16);
    box-shadow: 0 18px 40px rgba(88,10,26,.22);
}

.plan--premium{
    --accent-1: rgba(143,42,88,.30);
}

.plan--featured{
    transform: translateY(-8px);
}

/* ---------- Tableau comparatif ---------- */
.comparison{
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    background: rgba(9,11,16,.62);
}

.comparison-head{
    padding: 16px 16px 8px;
}

.comparison-wrap{
    padding: 0 16px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.comparison-table{
    width: 100%;
    min-width: 960px;
    border-collapse: collapse;
    table-layout: fixed;
}

.comparison-table thead th{
    padding: 12px 10px;
    background: rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.comparison-table thead th:first-child{
    width: 54%;
    text-align: left;
}

.comparison-table thead th:nth-child(2),
.comparison-table thead th:nth-child(3),
.comparison-table thead th:nth-child(4){
    width: 15.33%;
}

.comparison-table tbody td{
    padding: 11px 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 14px;
    text-align: center;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.comparison-table tbody td:first-child{
    color: var(--text);
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    opacity: .92;
}

.comparison-table tbody tr:hover td{
    background: rgba(255,255,255,.025);
}

/* ---------- États ---------- */
.state{
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    vertical-align: middle;
    flex: 0 0 auto;
}

.state--yes::before{
    content: "";
    width: 9px;
    height: 5px;
    border-left: 2.5px solid #22c55e;
    border-bottom: 2.5px solid #22c55e;
    transform: rotate(-45deg) translateY(-1px);
}

.state--no::before,
.state--no::after{
    content: "";
    position: absolute;
    width: 12px;
    height: 2.5px;
    border-radius: 2px;
    background: #ef4444;
}

.state--no::before{ transform: rotate(45deg); }
.state--no::after{ transform: rotate(-45deg); }

/* ---------- Note ---------- */
.billing-note{
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    background: rgba(17,17,26,.50);
}

.billing-note__line{
    height: 2px;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--red) 0%, transparent),
        color-mix(in srgb, var(--red) 90%, transparent),
        color-mix(in srgb, var(--red) 0%, transparent)
    );
}

.billing-note__content{
    padding: 16px;
}

/* ---------- Pourquoi c’est indispensable + FAQ ---------- */
.split{
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 18px;
    align-items: start;
    margin-top: 18px;
}

.list{
    display: grid;
    gap: 12px;
    margin: 18px 0 22px;
    padding: 0;
    list-style: none;
}

.list li{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    background: rgba(255,255,255,.03);
    transition: border-color .2s ease, transform .2s ease;
}

.list li:hover{
    transform: translateY(-2px);
    border-color: rgba(184,10,36,.45);
}

.stitch-mini{
    flex: 0 0 auto;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: rgba(184,10,36,.9);
    box-shadow: 0 0 0 7px rgba(184,10,36,.10);
}

.inline-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.faq{
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: calc(var(--radius) + 6px);
    background: rgba(17,17,26,.55);
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.faq::before{
    content: "";
    position: absolute;
    inset: -55%;
    background:
        radial-gradient(60% 50% at 30% 40%, rgba(225,29,72,.22), transparent 60%),
        radial-gradient(60% 50% at 70% 60%, rgba(225,6,44,.12), transparent 62%);
    filter: blur(20px);
    transform: rotate(-10deg);
    opacity: .42;
    pointer-events: none;
}

.panel-line{
    position: relative;
    z-index: 1;
    height: 2px;
    opacity: .9;
    background: linear-gradient(90deg, rgba(184,10,36,0), rgba(184,10,36,.9), rgba(184,10,36,0));
}

.panel-content{
    position: relative;
    z-index: 1;
    padding: 16px;
}

.faq-item{
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,.08);
}

.faq-item:first-of-type{
    border-top: 0;
}

.faq-item summary{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    cursor: pointer;
    color: var(--text);
    font-weight: 800;
    list-style: none;
}

.faq-item summary::-webkit-details-marker{
    display: none;
}

.faq-item summary::after{
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(242,242,246,.75);
    border-bottom: 2px solid rgba(242,242,246,.75);
    opacity: .75;
    transform: rotate(45deg);
    transition: transform .2s ease, opacity .2s ease;
}

.faq-item[open] summary::after{
    opacity: 1;
    transform: rotate(-135deg);
}

.faq-item p{
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

/* ---------- Desktop intermédiaire ---------- */
@media (max-width: 1200px){
    .pricing-grid{
        gap: 16px;
    }

    .plan-price{
        font-size: 52px;
    }

    .comparison-table{
        min-width: 900px;
    }

    .comparison-table thead th:first-child{
        width: 52%;
    }

    .comparison-table thead th:nth-child(2),
    .comparison-table thead th:nth-child(3),
    .comparison-table thead th:nth-child(4){
        width: 16%;
    }
}

/* ---------- Tablette paysage ---------- */
@media (max-width: 1024px){
    .pricing-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plan--featured{
        transform: none;
    }

    .plan--featured:hover{
        transform: translateY(-4px);
    }

    .split{
        grid-template-columns: 1fr;
    }

    .comparison-table{
        min-width: 860px;
    }

    .comparison-table thead th{
        padding: 11px 8px;
        font-size: 12px;
    }

    .comparison-table tbody td{
        padding: 10px 8px;
        font-size: 13px;
    }
}

/* ---------- Tablette portrait ---------- */
@media (max-width: 860px){
    .plans-block{
        padding: 14px;
    }

    .pricing-grid{
        grid-template-columns: 1fr;
    }

    .plan{
        min-height: auto;
        padding: 18px;
    }

    .plan-head{
        flex-direction: column;
        align-items: flex-start;
    }

    .plan-badge{
        max-width: 100%;
        white-space: normal;
    }

    .plan-name{
        font-size: 24px;
    }

    .plan-price{
        font-size: 44px;
    }

    .comparison{
        overflow: visible;
    }

    .comparison-head{
        padding: 14px 14px 8px;
    }

    .comparison-wrap{
        padding: 0 14px 12px;
        overflow: visible;
    }

    .comparison-table{
        display: block;
        width: 100%;
        min-width: 0;
        table-layout: auto;
    }

    .comparison-table thead{
        display: none;
    }

    .comparison-table tbody{
        display: grid;
        gap: 12px;
    }

    .comparison-table tbody tr{
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px;
        border: 1px solid rgba(255,255,255,.10);
        border-radius: 18px;
        background: rgba(255,255,255,.03);
    }

    .comparison-table tbody td{
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        padding: 0;
        border: 0;
        font-size: 13px;
        text-align: left;
    }

    .comparison-table tbody td:first-child{
        grid-column: 1 / -1;
        margin-bottom: 4px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255,255,255,.08);
        font-size: 14px;
        line-height: 1.45;
    }

    .comparison-table tbody td::before{
        content: attr(data-label);
        color: rgba(255,255,255,.62);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .comparison-table tbody td:first-child::before{
        display: none;
    }

    .comparison-table tbody td > .state{
        justify-self: end;
    }

    .comparison-table tbody td:nth-child(1){
        grid-column: 1 / -1;
    }

    .billing-note__content,
    .panel-content{
        padding: 14px;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 560px){
    .container--wide{
        max-width: min(1460px, 94vw);
    }

    .plans-block{
        padding: 12px;
    }

    .plan{
        padding: 16px;
        border-radius: 20px;
    }

    .plan-price{
        font-size: 38px;
    }

    .plan-period{
        font-size: 13px;
    }

    .plan-meta span{
        padding: 7px 10px;
        font-size: 11px;
    }

    .comparison-head{
        padding: 12px 12px 8px;
    }

    .comparison-wrap{
        padding: 0 10px 10px;
    }

    .comparison-table tbody tr{
        padding: 12px;
        border-radius: 16px;
    }

    .comparison-table tbody td{
        gap: 10px;
        font-size: 12px;
    }

    .comparison-table tbody td:first-child{
        font-size: 13px;
    }

    .inline-actions{
        flex-direction: column;
    }

    .inline-actions .btn{
        width: 100%;
    }
}
