/* A propos */
.a-propos-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 81px 0 96px;
    background: var(--gradient-beige);
    background-repeat: no-repeat;
    background-size: 100% 605px;

    li a,
    p a{
      text-decoration: underline !important;
    }
  
    li.link-externe a::after,
    p.link-externe a::after {
      content: url('/wp-content/uploads/2025/12/external-link-small.svg');
      display: inline-block;
      margin-left: 0.35em;
      width: 1em;
      height: 1em;
      vertical-align: middle;
      margin-bottom: 5px;
    }

    h3 {
        margin-top: 33px !important;
        margin-bottom: 18px !important;
    }

    *:not(h1) {
        max-width: 920px;
        width: 100%;
        margin-bottom: 12px;
        text-align: left;
    }

    .wp-block-separator {
        height: 0.5px;
        margin: 60px 0 !important;
        background-color: #000000;
    }

    .a-propos-nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 14px;
        width: auto !important;
        max-width: none !important;
        margin: 40px 0 60px !important;
        padding: 0;

        .a-propos-nav-item {
            display: flex !important;
            flex: 0 0 auto !important;
            align-items: center;
            width: auto !important;
            margin: 0 !important;

            a {
                width: auto !important;
                padding: 0;
                font-size: 18px;
                font-weight: 700;
                line-height: 24px;
                color: #000000;
                text-decoration: none;
                background-color: transparent;
                border: none;

                &:hover {
                    color: #888888;
                    cursor: pointer;
                }
            }

            &:not(:last-child)::after {
                content: '';
                display: block;
                flex: none;
                width: 1px;
                height: 16px;
                margin-left: 14px;
                background-color: #000000;
                transform: translateY(-7px);
            }
        }
    }
}

.wp-block-table {
    display: flex;
    flex-direction: column;
    max-width: 920px;
    width: 100%;
    margin: 20px 0;
    background: #ffffff;
    table-layout: auto;

    *,
    th,
    td {
        box-sizing: border-box;
        word-break: break-word;
    }

    table {
        width: 100%;
        border: 1px solid #000000 !important;
    }

    thead {
        border: 1px solid #000000 !important;

        th {
            padding: 10px 20px;
            background: #343434;
            color: #ffffff;
            vertical-align: middle;

            &:first-child {
                width: 32.39%;
                border-right: 1px solid #ffffff !important;
            }

            &:last-child {
                width: 67.61%;
            }
        }
    }

    tbody {
        tr {
            td {
                background: #ffffff;
                vertical-align: top;

                &:first-child {
                    width: 32.39%;
                    border-right: 1px solid #000000 !important;
                }

                &:last-child {
                    width: 67.61%;
                }
            }
        }
    }

    th,
    td {
        padding: 20px;
        border: 0;
        text-align: left;
        color: #000000;
    }
}

figure.wp-block-table {
    figcaption {
        order: -1;
        margin: 20px 0;
        font-size: 18px !important;
        font-weight: 600;
        line-height: 1.2 !important;
    }
}

/* Media queries */
@media (max-width: 1210px) {
    .a-propos-container {
        padding: 40px 20px 60px;
    }
    .a-propos-nav {
        justify-content: center;
    }
}

@media (max-width: 744px) {
    .a-propos-container {
        padding: 40px 20px 51px;
        background-size: 100% 400px;

        .wp-block-separator {
            margin: 36px 0 !important;
        }

        .a-propos-nav {
            gap: 10px !important;
            margin-bottom: 36px !important;
            justify-content: center;

            .a-propos-nav-item {
                a {
                    font-size: 16px !important;
                }

                &:not(:last-child)::after {
                    width: 1px;
                    height: 16px;
                    margin-left: 10px !important;
                    transform: translateY(-7px);
                }

                &.hide-separator::after {
                    display: none !important;
                }
            }
        }
    }

    .wp-block-table {
        margin: 16px 0;
        font-size: 14px !important;

        thead th,
        tbody tr td {
            padding: 10px;

            &:first-child {
                width: 50%;
            }

            &:last-child {
                width: 50%;
            }
        }

        ul {
            padding-left: 20px !important;
        }
    }

    figure.wp-block-table {
        figcaption {
            font-size: 14px !important;
        }
    }
}