/* ============================================================
   tarification.css — page Tarifs : gammes, usage, modifications
   ============================================================ */

.hero-carte {
    min-height: 40vh;
    padding-bottom: 0;
}

/* ---------- bandeau offre de lancement ---------- */
.launch-banner {
    background-color: var(--text-color-dark);
    color: #FFF;
    padding: 18px var(--page-padding);

    .container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 22px;
        flex-wrap: wrap;
    }

    .badge-launch {
        background-color: var(--color-gold);
        color: var(--text-color-dark);
        padding: 5px 12px;
        border-radius: 999px;
        font-size: 11px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        font-variation-settings: 'wdth' 90, 'wght' 550;
        white-space: nowrap;
    }

    p {
        font-size: 15px;
        font-variation-settings: 'wdth' 100, 'wght' 300;

        strong {
            font-variation-settings: 'wdth' 100, 'wght' 500;
            color: var(--color-gold);
        }
    }

    .btn-bar {
        padding: 9px 22px;
    }
}

/* ---------- en-têtes de section ---------- */
.pricing-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 50px;
}

.small-title {
    color: var(--color-red);
    font-size: 13px;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
    font-variation-settings: 'wdth' 100, 'wght' 350;
}

.pricing-title {
    font-size: 2.2vw;
    font-variation-settings: 'wdth' 80, 'wght' 300;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.pricing-intro {
    color: var(--color-muted);
    font-size: clamp(15px, 1.1vw, 18px);
    max-width: 620px;
    font-variation-settings: 'wdth' 100, 'wght' 300;
}

/* ============================================
   GAMMES
   ============================================ */
.pricing-section {
    padding: min(90px, 7vw) var(--page-padding);
    background-color: var(--color-grey);
}

.pricing-grid.two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: stretch;
    max-width: 960px;
    margin: 0 auto 40px;
}

.pricing-card {
    background-color: #FFF;
    padding: 46px 40px;
    display: flex;
    flex-direction: column;
    border-top: 4px solid transparent;
    transition: translate 600ms var(--ease-out-expo), box-shadow 600ms var(--ease-out-expo);

    &:hover {
        translate: 0 -6px;
        box-shadow: 0 24px 50px -24px rgba(50, 40, 29, 0.3);
    }

    &.pro {
        border-top-color: var(--color-gold);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    }

    .badge-gamme {
        display: inline-block;
        width: fit-content;
        padding: 4px 10px;
        border-radius: 999px;
        font-size: 11px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        font-variation-settings: 'wdth' 90, 'wght' 500;
        background-color: #F0E6E6;
        color: var(--color-red);
        margin-bottom: 18px;

        &.classique {
            background-color: #EDEAE3;
            color: var(--text-color-dark);
        }
    }

    h3 {
        font-size: 26px;
        font-variation-settings: 'wdth' 110, 'wght' 450;
        margin-bottom: 8px;
    }

    .desc {
        font-size: 14px;
        color: var(--color-muted);
        margin-bottom: 26px;
        min-height: 40px;
        line-height: 1.5;
    }

    .price-lines {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 28px;
        padding-bottom: 24px;
        border-bottom: 1px dashed var(--color-border-header);
    }

    .price-line {
        display: flex;
        align-items: center;
        gap: 18px;
    }

    .price-wrapper {
        display: flex;
        align-items: baseline;
        min-width: 150px;

        .amount {
            font-size: 44px;
            font-variation-settings: 'wdth' 100, 'wght' 300;
            line-height: 1;
        }

        .currency {
            font-size: 22px;
            margin-left: 4px;
        }

        .period {
            color: var(--color-muted);
            margin-left: 6px;
            font-size: 14px;
        }
    }

    .price-for {
        font-size: 14px;
        line-height: 1.35;
        font-variation-settings: 'wdth' 100, 'wght' 450;

        span {
            color: var(--color-muted);
            font-variation-settings: 'wdth' 100, 'wght' 300;
        }
    }

    .features {
        flex-grow: 1;
        margin-bottom: 34px;

        li {
            font-size: 14px;
            margin-bottom: 12px;
            position: relative;
            padding-left: 22px;
            color: rgba(50, 40, 29, 0.8);

            &::before {
                content: '+';
                position: absolute;
                left: 0;
                color: var(--color-gold);
                font-weight: bold;
            }
        }
    }
}

/* tableau récapitulatif */
.grid-recap {
    max-width: 960px;
    margin: 0 auto;
    background-color: #FFF;
    padding: 10px 30px 22px;
    overflow-x: auto;

    table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;

        th,
        td {
            padding: 16px 12px;
            text-align: left;
            border-bottom: 1px solid var(--color-border-header);
            vertical-align: top;
        }

        thead th {
            font-size: 11px;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--color-muted);
            font-variation-settings: 'wdth' 90, 'wght' 450;
        }

        tbody th {
            font-variation-settings: 'wdth' 100, 'wght' 500;
            white-space: nowrap;
        }

        tbody tr:last-child td,
        tbody tr:last-child th {
            border-bottom: none;
        }

        strong {
            font-size: 20px;
            font-variation-settings: 'wdth' 100, 'wght' 400;
        }

        .usage {
            display: block;
            color: var(--color-red);
            font-size: 12px;
            margin-top: 4px;
        }
    }

    .table-note {
        font-size: 12px;
        color: var(--color-muted);
        margin-top: 12px;
    }
}

/* ============================================
   USAGE
   ============================================ */
.usage-section {
    padding: min(90px, 7vw) var(--page-padding);
    background-color: #FFF;
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 960px;
    margin: 0 auto 40px;
}

.usage-card {
    background-color: var(--color-grey);
    padding: 40px 36px;

    .usage-price {
        font-size: clamp(40px, 3.6vw, 56px);
        font-variation-settings: 'wdth' 100, 'wght' 300;
        line-height: 1;
        color: var(--color-red);
        margin-bottom: 6px;
    }

    h3 {
        font-size: 18px;
        font-variation-settings: 'wdth' 100, 'wght' 450;
        margin-bottom: 18px;
    }

    .usage-def {
        font-size: 14px;
        line-height: 1.6;
        color: var(--color-muted);
        margin-bottom: 22px;

        strong {
            color: var(--text-color-dark);
            font-variation-settings: 'wdth' 100, 'wght' 500;
        }
    }
}

.check-list.small,
.cross-list.small {
    margin-bottom: 14px;

    li {
        position: relative;
        padding-left: 26px;
        margin-bottom: 8px;
        font-size: 13px;
        color: rgba(50, 40, 29, 0.8);
    }
}

/* Coches et croix (fonds SVG) */
.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 15px;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2332281D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: cover;
}

.cross-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 15px;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23781E24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-size: cover;
}

/* simulateur */
.simulator {
    max-width: 960px;
    margin: 0 auto;
    background-color: var(--text-color-dark);
    color: #FFF;
    padding: 44px 40px;

    .sim-head {
        margin-bottom: 30px;

        h3 {
            font-size: 22px;
            font-variation-settings: 'wdth' 110, 'wght' 400;
            margin-bottom: 4px;
        }

        p {
            color: rgba(255, 255, 255, 0.65);
            font-size: 14px;
        }
    }

    .sim-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .sim-block {
        h4 {
            font-size: 12px;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--color-gold);
            margin-bottom: 18px;
        }

        label {
            display: flex;
            justify-content: space-between;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 8px;

            output {
                color: #FFF;
                font-variation-settings: 'wdth' 100, 'wght' 500;
            }
        }

        input[type="range"] {
            width: 100%;
            margin: 0 0 22px;
            accent-color: var(--color-gold);
            cursor: pointer;
        }

        .sim-result {
            display: flex;
            align-items: baseline;
            gap: 12px;
            flex-wrap: wrap;
            padding-top: 14px;
            border-top: 1px solid rgba(255, 255, 255, 0.15);

            .sim-amount {
                font-size: clamp(32px, 3vw, 44px);
                font-variation-settings: 'wdth' 100, 'wght' 300;
                line-height: 1;
                transition: opacity 200ms;

                &.flip {
                    animation: price-flip 400ms var(--ease-out-expo) both;
                }
            }

            .sim-label {
                font-size: 13px;
                color: rgba(255, 255, 255, 0.65);
            }
        }

        .sim-note {
            margin-top: 10px;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.65);

            strong {
                color: #FFF;
                font-variation-settings: 'wdth' 100, 'wght' 500;
            }
        }
    }
}

@keyframes price-flip {
    0% {
        opacity: 0;
        translate: 0 -8px;
    }

    100% {
        opacity: 1;
        translate: 0 0;
    }
}

/* ============================================
   MODIFICATIONS
   ============================================ */
.modifs-section {
    padding: min(90px, 7vw) var(--page-padding);
    background-color: var(--color-grey);
}

.modifs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto 30px;
}

.modif-card {
    background-color: #FFF;
    padding: 34px 30px;
    border-top: 3px solid var(--color-border-header);
    transition: translate 600ms var(--ease-out-expo), box-shadow 600ms var(--ease-out-expo);

    &:hover {
        translate: 0 -6px;
        box-shadow: 0 24px 50px -24px rgba(50, 40, 29, 0.3);
    }

    &.highlight {
        border-top-color: var(--color-red);
    }

    .modif-price {
        font-size: 38px;
        font-variation-settings: 'wdth' 100, 'wght' 300;
        line-height: 1;
        margin-bottom: 10px;

        small {
            font-size: 13px;
            color: var(--color-muted);
            font-variation-settings: 'wdth' 100, 'wght' 300;
        }
    }

    h3 {
        font-size: 17px;
        font-variation-settings: 'wdth' 100, 'wght' 500;
        margin-bottom: 10px;
    }

    p {
        font-size: 14px;
        line-height: 1.55;
        color: var(--color-muted);

        strong {
            color: var(--text-color-dark);
        }
    }
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.list-card {
    background-color: #fff;
    padding: 40px;

    h3 {
        font-size: 18px;
        margin-bottom: 22px;
        font-variation-settings: 'wdth' 100, 'wght' 450;
    }

    ul li {
        position: relative;
        padding-left: 30px;
        margin-bottom: 13px;
        font-size: 14px;
        color: rgba(50, 40, 29, 0.8);
        line-height: 1.4;
    }

    .list-note {
        margin-top: 18px;
        padding-top: 14px;
        border-top: 1px dashed var(--color-border-header);
        font-size: 13px;
        color: var(--color-muted);
        line-height: 1.5;
    }
}

.modifs-note {
    max-width: 960px;
    margin: 26px auto 0;
    font-size: 14px;
    color: var(--color-muted);
    text-align: center;
    line-height: 1.55;
}

/* ============================================
   TOUJOURS COMPRIS
   ============================================ */
.inclusions-section {
    padding: min(90px, 7vw) var(--page-padding);
    background-color: #FFF;

    .pricing-header {
        margin-bottom: 40px;
    }
}

.always-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;

    li {
        background-color: var(--color-grey);
        padding: 24px 26px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        border-left: 3px solid var(--color-gold);

        strong {
            font-size: 15px;
            font-variation-settings: 'wdth' 100, 'wght' 500;
        }

        span {
            font-size: 13px;
            color: var(--color-muted);
            line-height: 1.45;
        }
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .pricing-section,
    .usage-section,
    .modifs-section,
    .inclusions-section {
        padding-inline: 40px;
    }

    .launch-banner {
        padding-inline: 40px;
    }

    .pricing-title {
        font-size: 3vw;
    }

    .pricing-card {
        padding: 36px 28px;
    }

    .modifs-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media (max-width: 900px) {
    .pricing-section,
    .usage-section,
    .modifs-section,
    .inclusions-section {
        padding: 50px 20px;
    }

    .launch-banner {
        padding: 18px 20px;

        .container {
            flex-direction: column;
            text-align: center;
            gap: 12px;
        }
    }

    .pricing-title {
        font-size: 5vw;
    }

    .pricing-grid.two,
    .usage-grid,
    .grid-2-cols {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .simulator {
        padding: 30px 22px;

        .sim-grid {
            grid-template-columns: 1fr;
            gap: 30px;
        }
    }

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

    .grid-recap {
        padding: 6px 14px 16px;

        table th,
        table td {
            padding: 12px 8px;
            font-size: 13px;
        }
    }
}

@media (max-width: 600px) {
    .pricing-title {
        font-size: 22px;
    }

    .pricing-card .price-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .pricing-card .price-wrapper .amount {
        font-size: 38px;
    }

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

    .list-card {
        padding: 28px 20px;
    }

    .usage-card {
        padding: 30px 22px;
    }
}

/* ---------- règle des 10 clients ---------- */
.rule-block {
    max-width: 960px;
    margin: 0 auto 30px;
    background-color: var(--color-grey);
    border-left: 3px solid var(--color-red);
    padding: 36px 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;

    .eyebrow {
        display: block;
        margin-bottom: 10px;
    }

    h3 {
        font-size: 22px;
        font-variation-settings: 'wdth' 110, 'wght' 450;
        margin-bottom: 12px;
    }

    p {
        font-size: 14px;
        line-height: 1.6;
        color: var(--color-muted);

        strong {
            color: var(--text-color-dark);
            font-variation-settings: 'wdth' 100, 'wght' 500;
        }
    }

    .rule-note {
        margin-top: 12px;
        font-size: 13px;
    }

    .rule-steps {
        display: flex;
        flex-direction: column;
        gap: 10px;

        li {
            display: flex;
            align-items: center;
            gap: 14px;
            background-color: #FFF;
            padding: 14px 16px;
            font-size: 13px;
            line-height: 1.4;
            color: var(--color-muted);

            strong {
                color: var(--text-color-dark);
                font-variation-settings: 'wdth' 100, 'wght' 500;
            }

            .step-n {
                flex-shrink: 0;
                width: 28px;
                height: 28px;
                border-radius: 50%;
                border: 1px solid var(--color-red);
                color: var(--color-red);
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 13px;
            }
        }
    }
}

.simulator .sim-block .sim-warn {
    margin-top: 10px;
    padding: 10px 12px;
    background-color: rgba(193, 157, 103, 0.18);
    border-left: 2px solid var(--color-gold);
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    animation: rise-in 500ms var(--ease-out-expo) both;

    &[hidden] {
        display: none;
    }

    a {
        color: var(--color-gold);
    }
}

.grid-recap .table-note a {
    color: var(--color-red);
}

@media (max-width: 900px) {
    .rule-block {
        grid-template-columns: 1fr;
        padding: 28px 22px;
        gap: 24px;
    }
}
