/*
Theme Name: Vito
Description: A custom WordPress theme for Vito
*/

/*
    Source post-css styles are located in resources/css/
    The compiled bundle is saved to `/dist/`.
    
    DEVELOPMENT.md file contains instructions how to get the compilation
    process up & running.

    If you need to make a quick fix, feel free to add CSS
    below this comment -- it's loaded after the compiled bundle. 
*/

/* ------------------------------------------------------------ *\
    Page tarifs
\* ------------------------------------------------------------ */

.table-scroll {
    margin: 32px 0 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pricing-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-family: 'Public Sans', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: #000;
}

.pricing-table th,
.pricing-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #E2EEED;
    text-align: center;
    vertical-align: middle;
}

.pricing-table thead th {
    background: #0C6E68;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    vertical-align: bottom;
}

.pricing-table thead th small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    opacity: .9;
}

.pricing-table tbody tr:nth-child(even) {
    background: #F4F8F8;
}

.pricing-table tbody tr:hover {
    background: #E2EEED;
}

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

.pricing-table th:first-child,
.pricing-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.pricing-table td:nth-child(n+2) {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pricing-table thead th:first-child,
.pricing-table tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
}

.pricing-table thead th:first-child {
    z-index: 2;
    background: #0C6E68;
}

.pricing-table tbody td:first-child {
    background: #fff;
}

.pricing-table tbody tr:nth-child(even) td:first-child {
    background: #F4F8F8;
}

.pricing-table tbody tr:hover td:first-child {
    background: #E2EEED;
}

.pricing-version {
    margin-top: 16px;
    color: #828282;
    font-family: 'Public Sans', sans-serif;
    font-size: 13px;
}

@media (max-width: 740px) {
    .pricing-table {
        min-width: 820px;
        font-size: 14px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 12px 10px;
    }

    .pricing-table thead th {
        font-size: 13px;
    }
}
/* ------------------------------------------------------------ *\
    Page politique de conservation des données
\* ------------------------------------------------------------ */

.section-standard .section__body p.policy-version {
    margin: 0 0 24px;
    color: #828282;
    font-size: 13px;
    font-weight: 400;
}

.section-standard .section__body p.policy-version:last-child {
    margin-top: 40px;
    margin-bottom: 0;
}

.section-standard .section__body p.policy-lead {
    max-width: 960px;
    margin-bottom: 32px;
    color: #0C6E68;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}

.policy-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 48px;
}

.policy-toc a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #0C6E68;
    border-radius: 999px;
    color: #0C6E68;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.policy-toc a:hover,
.policy-toc a:focus {
    background: #0C6E68;
    color: #fff;
}

.section-standard .section__body .policy-classes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0 0 32px;
    padding-left: 0;
    list-style: none;
}

.section-standard .section__body .policy-classes li {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-left: 4px solid #0C6E68;
    background: #F4F8F8;
    font-size: 16px;
}

.policy-classes__num {
    display: flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0C6E68;
    color: #fff;
    font-weight: 700;
}

.section-standard .section__body .policy-classes strong {
    display: block;
    margin-bottom: 4px;
    color: #000;
    font-size: 18px;
}

.section-standard .section__body .policy-classes p {
    margin: 0;
    color: #333;
    font-size: 16px;
    line-height: 1.45;
}

.policy-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0 0 24px;
    color: #333;
    font-size: 14px;
}

.policy-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border-radius: 3px;
    vertical-align: -2px;
}

.policy-dot--law {
    background: #0C6E68;
}

.policy-dot--vito {
    background: #9BC1BE;
}

.retention-chart {
    margin: 0 0 40px;
}

.retention-chart__axis {
    position: relative;
    height: 22px;
    margin: 0 112px 8px 320px;
    color: #666;
    font-size: 12px;
}

.retention-chart__axis span {
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
}

.retention-chart__axis span:nth-child(1) {
    left: 0;
    transform: none;
}

.retention-chart__axis span:nth-child(2) {
    left: 20%;
}

.retention-chart__axis span:nth-child(3) {
    left: 50%;
}

.retention-chart__axis span:nth-child(4) {
    left: 100%;
    transform: translateX(-100%);
}

.retention-chart__row {
    display: grid;
    grid-template-columns: 300px 1fr 92px;
    gap: 20px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #E2EEED;
}

.retention-chart__label strong {
    display: block;
    font-size: 15px;
    line-height: 1.3;
}

.retention-chart__label small {
    display: block;
    margin-top: 2px;
    color: #666;
    font-size: 12px;
    line-height: 1.35;
}

.retention-chart__track {
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #F0F4F4;
}

.retention-chart__bar {
    display: block;
    height: 100%;
    min-width: 6px;
    border-radius: 999px;
}

.retention-chart__bar--vito {
    background: #9BC1BE;
}

.retention-chart__bar--law {
    background: #0C6E68;
}

.retention-chart__value {
    color: #0C6E68;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.policy-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    color: #000;
    font-family: 'Public Sans', sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

.policy-table th {
    padding: 12px 14px;
    background: #0C6E68;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
    vertical-align: bottom;
}

.policy-table td {
    padding: 14px;
    border-bottom: 1px solid #E2EEED;
    vertical-align: top;
}

.policy-table tbody tr:nth-child(even) {
    background: #F4F8F8;
}

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

.policy-table td:first-child {
    font-weight: 600;
}

.policy-table--definitions td:nth-child(1) {
    width: 32%;
}

.policy-table--definitions td:nth-child(2) {
    width: 14%;
    color: #0C6E68;
    font-weight: 700;
    white-space: nowrap;
}

.policy-table--providers td:nth-child(1) {
    width: 24%;
}

.policy-table--providers td:nth-child(2) {
    width: 28%;
}

.policy-table--providers a {
    color: #0C6E68;
    word-break: break-word;
}

@media (max-width: 900px) {
    .retention-chart__row {
        grid-template-columns: 1fr 80px;
        gap: 8px 12px;
    }

    .retention-chart__label {
        grid-column: 1 / -1;
    }

    .retention-chart__axis {
        margin: 0 92px 8px 0;
    }
}

@media (max-width: 740px) {
    .section-standard .section__body .policy-classes {
        grid-template-columns: 1fr;
    }

    .section-standard .section__body p.policy-lead {
        font-size: 22px;
    }

    .policy-toc {
        margin-bottom: 32px;
    }
}

.section-standard .section__body h2[id] {
    scroll-margin-top: 110px;
}

.policy-page .section__head h1 {
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .policy-page .section__head h1 {
        margin-bottom: 40px;
        font-size: 44px;
        line-height: 1.1;
    }
}

@media (max-width: 480px) {
    .policy-page .section__head h1 {
        font-size: 34px;
    }
}

.section-intro .section__content .section__action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 40px;
}

@media (max-width: 740px) {
    .section-intro .section__content .section__action {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}
