/*─────────────────────────────────────*/
/* Grille tarifaire                    */
/*─────────────────────────────────────*/

:root {
    --tarifs-ink: #00213D;
    --tarifs-ink-soft: rgba(0, 33, 61, 0.62);
    --tarifs-line: rgba(0, 33, 61, 0.08);
    --tarifs-surface: #fbfcfe;
    --tarifs-gold: #ffd500;
    --tarifs-brand: #285da8;
}

/*─────────────────────────────────────*/
/* Intro + sommaire (sticky)           */
/*─────────────────────────────────────*/
.tarifs-intro {
    padding: 38px 0 0;
}

.tarifs-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 22px;
}

.tarifs-meta__badge {
    background: var(--tarifs-brand);
    border-radius: 999px;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 7px 15px;
    text-transform: uppercase;
}

.tarifs-meta__date {
    color: var(--tarifs-ink);
    font-size: 0.95rem;
    font-weight: 800;
}

.tarifs-meta__currency {
    color: var(--tarifs-ink-soft);
    font-size: 0.92rem;
    font-weight: 600;
}

.tarifs-nav {
    position: sticky;
    top: 76px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 -6px;
    padding: 14px 6px;
    border-top: 1px solid var(--tarifs-line);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tarifs-nav a {
    border: 1px solid var(--tarifs-line);
    border-radius: 999px;
    color: var(--tarifs-ink);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 8px 16px;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.tarifs-nav a:hover {
    background: var(--tarifs-brand);
    border-color: var(--tarifs-brand);
    color: #fff;
}

/*─────────────────────────────────────*/
/* Sections                            */
/*─────────────────────────────────────*/
.tarifs-section {
    padding: 54px 0;
    scroll-margin-top: 130px;
}

.tarifs-section--alt {
    background: var(--tarifs-surface);
    border-top: 1px solid var(--tarifs-line);
    border-bottom: 1px solid var(--tarifs-line);
}

/*─────────────────────────────────────*/
/* Légende des zones                   */
/*─────────────────────────────────────*/
.tarifs-zones {
    margin-bottom: 30px;
}

.tarifs-zones__title {
    color: var(--tarifs-ink);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.tarifs-zones__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tarifs-zones__list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--tarifs-line);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--tarifs-ink-soft);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

.tarifs-zones__list li strong {
    color: var(--tarifs-ink);
}

.tarifs-zones__tag {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 8px;
    background: rgba(0, 33, 61, 0.06);
    color: var(--tarifs-ink);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/*─────────────────────────────────────*/
/* Cartes de tableaux                  */
/*─────────────────────────────────────*/
.tarifs-table-wrap {
    background: #fff;
    border: 1px solid var(--tarifs-line);
    border-radius: 18px;
    box-shadow: 0 24px 50px -38px rgba(0, 33, 61, 0.55);
    margin-bottom: 26px;
    padding: 26px 26px 18px;
}

.tarifs-table-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--tarifs-ink);
    font-size: 1.12rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.tarifs-table-title::before {
    content: "";
    width: 4px;
    height: 1.1em;
    border-radius: 4px;
    background: var(--tarifs-gold);
}

.tarifs-table-lead {
    color: var(--tarifs-ink-soft);
    font-size: 0.92rem;
    font-weight: 600;
    margin: -8px 0 18px 14px;
}

/* Wrapper avec ombres de défilement aux bords */
.tarifs-table-scroll {
    overflow-x: auto;
    margin: 0 -4px;
    padding: 0 4px 4px;
    background:
        linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left center / 28px 100% no-repeat,
        linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right center / 28px 100% no-repeat,
        radial-gradient(farthest-side at 0 50%, rgba(0, 33, 61, 0.14), transparent) left center / 14px 100% no-repeat,
        radial-gradient(farthest-side at 100% 50%, rgba(0, 33, 61, 0.14), transparent) right center / 14px 100% no-repeat;
    background-attachment: local, local, scroll, scroll;
    scrollbar-width: thin;
}

.tarifs-table-scroll::-webkit-scrollbar {
    height: 8px;
}

.tarifs-table-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 33, 61, 0.22);
    border-radius: 999px;
}

.tarifs-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: 100%;
}

.tarifs-table th,
.tarifs-table td {
    padding: 13px 18px;
    text-align: right;
    white-space: nowrap;
    border-bottom: 1px solid var(--tarifs-line);
}

.tarifs-table thead th {
    position: sticky;
    top: 0;
    background: var(--tarifs-brand);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: right;
}

/* Première colonne (poids / libellé) ancrée à gauche */
.tarifs-table th:first-child,
.tarifs-table td:first-child,
.tarifs-table thead th:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 1;
}

.tarifs-table tbody th[scope="row"] {
    background: #fff;
    color: var(--tarifs-ink);
    font-weight: 800;
}

.tarifs-table thead th:first-child {
    z-index: 2;
}

.tarifs-table thead th:first-child {
    border-top-left-radius: 12px;
}

.tarifs-table thead th:last-child {
    border-top-right-radius: 12px;
}

.tarifs-table tbody tr:last-child th,
.tarifs-table tbody tr:last-child td {
    border-bottom: 0;
}

.tarifs-table tbody tr:nth-child(even) th[scope="row"],
.tarifs-table tbody tr:nth-child(even) td {
    background: rgba(0, 33, 61, 0.025);
}

.tarifs-table tbody tr:hover th[scope="row"],
.tarifs-table tbody tr:hover td {
    background: rgba(255, 213, 0, 0.14);
}

.tarifs-table tbody td {
    color: var(--tarifs-ink);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.tarifs-table--compact th,
.tarifs-table--compact td {
    font-size: 0.9rem;
    padding: 11px 15px;
}

.tarifs-table-footnote {
    color: var(--tarifs-ink-soft);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 16px 0 0;
    padding-left: 14px;
    border-left: 3px solid var(--tarifs-gold);
}

/* Tableau "définition" sans en-tête (abonnements, services) */
.tarifs-table--list th,
.tarifs-table--list td {
    border-bottom: 1px solid var(--tarifs-line);
}

.tarifs-table--list tbody td {
    width: 1%;
    white-space: nowrap;
    color: var(--tarifs-ink);
    font-weight: 800;
}

.tarifs-table--list tbody th[scope="row"] {
    white-space: normal;
    font-weight: 600;
    color: var(--tarifs-ink-soft);
}

/*─────────────────────────────────────*/
/* Notes                               */
/*─────────────────────────────────────*/
.tarifs-notes {
    background: #fffae6;
    border: 1px solid rgba(170, 113, 0, 0.2);
    border-radius: 16px;
    margin-top: 6px;
    padding: 22px 26px;
}

.tarifs-notes__title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6f4b00;
    font-size: 0.98rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.tarifs-notes ul {
    color: #6f4b00;
    margin: 0;
    padding-left: 20px;
}

.tarifs-notes li {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.6;
}

/*─────────────────────────────────────*/
/* CTA                                 */
/*─────────────────────────────────────*/
.tarifs-cta {
    padding: 12px 0 76px;
}

.tarifs-cta__card {
    background: radial-gradient(120% 140% at 0% 0%, #053582 0%, var(--tarifs-ink) 58%);
    border-radius: 24px;
    color: #fff;
    padding: 52px 40px;
    text-align: center;
}

.tarifs-cta__card h2 {
    color: #fff !important;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin-bottom: 12px;
}

.tarifs-cta__card p {
    color: rgba(255, 255, 255, 0.82);
    margin: 0 auto 26px;
    max-width: 620px;
}

.tarifs-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.tarifs-cta__actions .btn-outline-dark {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.tarifs-cta__actions .btn-outline-dark:hover {
    background: #fff;
    color: var(--tarifs-ink);
}

/*─────────────────────────────────────*/
/* Responsive : tableaux en cartes     */
/* (plus de scroll horizontal sur mobile) */
/*─────────────────────────────────────*/
@media (max-width: 767.98px) {
    .tarifs-table-scroll {
        overflow-x: visible;
        background: none;
        margin: 0;
        padding: 0;
    }

    /* On transforme chaque tableau "responsif" en pile de cartes */
    .tarifs-table--responsive,
    .tarifs-table--responsive thead,
    .tarifs-table--responsive tbody,
    .tarifs-table--responsive tr,
    .tarifs-table--responsive th,
    .tarifs-table--responsive td {
        display: block;
        text-align: left;
        white-space: normal;
    }

    .tarifs-table--responsive thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .tarifs-table--responsive tr {
        border: 1px solid var(--tarifs-line);
        border-radius: 14px;
        margin-bottom: 14px;
        overflow: hidden;
    }

    .tarifs-table--responsive tbody tr:nth-child(even) th[scope="row"],
    .tarifs-table--responsive tbody tr:nth-child(even) td {
        background: transparent;
    }

    .tarifs-table--responsive tbody th[scope="row"] {
        position: static;
        background: rgba(0, 33, 61, 0.05);
        color: var(--tarifs-ink);
        font-size: 0.96rem;
        padding: 12px 16px;
        border-bottom: 1px solid var(--tarifs-line);
    }

    .tarifs-table--responsive tbody td {
        position: static;
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 16px;
        padding: 10px 16px;
        border-bottom: 1px solid var(--tarifs-line);
    }

    .tarifs-table--responsive tbody tr td:last-child {
        border-bottom: 0;
    }

    .tarifs-table--responsive tbody td::before {
        content: attr(data-label);
        color: var(--tarifs-ink-soft);
        font-size: 0.85rem;
        font-weight: 700;
        text-align: left;
    }

    .tarifs-table--responsive tbody tr:hover td {
        background: transparent;
    }
}

@media (max-width: 575px) {
    .tarifs-section {
        padding: 40px 0;
    }

    .tarifs-table-wrap {
        padding: 20px 16px 12px;
        border-radius: 16px;
    }

    .tarifs-cta__card {
        padding: 38px 22px;
    }

    .tarifs-nav {
        top: 64px;
    }
}
