/* ========================================
   PAGE ACTES ADMINISTRATIFS
   STYLE INSTITUTIONNEL
   ======================================== */

.acts-page {
    --acts-green-dark: #173f3f;
    --acts-green: #256764;
    --acts-green-light: #eaf2f0;
    --acts-orange: #e14924;
    --acts-orange-dark: #c23827;
    --acts-white: #ffffff;
    --acts-grey: #5f6564;
    --acts-border: #dce3e1;
    --acts-light: #f8faf9;

    color: #171715;
    background: var(--acts-white);
}

.acts-container {
    width: min(90%, 1280px);
    margin-inline: auto;
}


/* ========================================
   HERO
   ======================================== */

.acts-hero {
    position: relative;

    padding: 100px 0;

    overflow: hidden;

    color: var(--acts-white);

    background:
        linear-gradient(
            120deg,
            #0f3433,
            var(--acts-green-dark)
        );

    border-bottom: 8px solid var(--acts-orange);
}

.acts-hero::after {
    content: "";

    position: absolute;

    top: -180px;
    right: -100px;

    width: 500px;
    height: 500px;

    border: 1px solid rgb(255 255 255 / 8%);
    border-radius: 50%;
}

.acts-eyebrow {
    position: relative;
    z-index: 2;

    margin: 0 0 12px;

    color: var(--acts-orange);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.acts-hero h1 {
    position: relative;
    z-index: 2;

    max-width: 1000px;

    margin: 0;

    color: var(--acts-white);

    font-size: clamp(48px, 8vw, 92px);
    line-height: 0.95;

    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.acts-hero__description {
    position: relative;
    z-index: 2;

    max-width: 700px;

    margin: 26px 0 0;

    color: rgb(255 255 255 / 80%);

    font-size: 18px;
    line-height: 1.7;
}


/* ========================================
   CONTENU
   ======================================== */

.acts-content {
    padding: 70px 0 90px;

    background: #ffffff;
}


/* ========================================
   CATÉGORIES
   ======================================== */

.acts-category + .acts-category {
    margin-top: 65px;
}

.acts-category__header {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 22px;
    padding-bottom: 16px;

    border-bottom: 2px solid var(--acts-green-dark);
}

.acts-category__number {
    flex: 0 0 auto;

    color: var(--acts-orange);

    font-size: 12px;
    font-weight: 800;
}

.acts-category__header h2 {
    margin: 0;

    color: var(--acts-green-dark);

    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;

    letter-spacing: -0.02em;
}


/* ========================================
   LISTE DES DOCUMENTS
   ======================================== */

.acts-list {
    display: grid;
    gap: 0;

    overflow: hidden;

    background: var(--acts-white);

    border: 1px solid var(--acts-border);
    border-radius: 4px;
}

.act-item {
    display: block;

    margin: 0;
    padding: 0;

    background: var(--acts-white);

    border-bottom: 1px solid var(--acts-border);
}

.act-item:last-child {
    border-bottom: 0;
}


/* ========================================
   FICHIER WORDPRESS
   ======================================== */

.act-item__download {
    width: 100%;
}

.act-item__download .wp-block-file {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 25px;

    width: 100%;

    margin: 0;
    padding: 18px 20px;

    background: #ffffff;

    transition:
        background 180ms ease;
}

.act-item:nth-child(even)
.act-item__download .wp-block-file {
    background: var(--acts-light);
}

.act-item__download .wp-block-file:hover {
    background: #f2f6f4;
}


/* ========================================
   SUPPRIMER L'APERÇU PDF
   ======================================== */

.act-item__download object,
.act-item__download iframe,
.act-item__download embed,
.act-item__download .wp-block-file__embed {
    display: none !important;
}


/* ========================================
   NOM DU DOCUMENT
   ======================================== */

.act-item__download .wp-block-file > a:not(.wp-block-file__button) {
    color: var(--acts-green-dark);

    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;

    text-decoration: none;

    word-break: break-word;

    transition: color 180ms ease;
}

.act-item__download
.wp-block-file
> a:not(.wp-block-file__button):hover {
    color: var(--acts-green);

    text-decoration: underline;
}


/* ========================================
   BOUTON TÉLÉCHARGER
   ======================================== */

.act-item__download .wp-block-file__button {
    display: inline-flex;

    min-width: 130px;
    min-height: 40px;

    align-items: center;
    justify-content: center;

    padding: 9px 14px;

    color: #ffffff !important;

    background: var(--acts-green-dark) !important;

    border: 0;
    border-radius: 3px;

    font-size: 11px;
    font-weight: 800;

    text-decoration: none !important;
    text-transform: uppercase;

    white-space: nowrap;

    transition:
        background 180ms ease,
        transform 180ms ease;
}

.act-item__download .wp-block-file__button:hover {
    color: #ffffff !important;

    background: var(--acts-green) !important;

    transform: translateY(-1px);
}


/* ========================================
   MESSAGE SI AUCUN DOCUMENT
   ======================================== */

.acts-empty {
    margin: 0;

    padding: 18px 20px;

    color: var(--acts-grey);

    background: var(--acts-light);

    border-left: 3px solid var(--acts-border);

    font-size: 14px;
    line-height: 1.6;
}


/* ========================================
   TABLETTE
   ======================================== */

@media (max-width: 950px) {

    .acts-hero {
        padding: 85px 0;
    }

    .acts-category + .acts-category {
        margin-top: 55px;
    }

    .acts-category__header h2 {
        font-size: clamp(24px, 4vw, 32px);
    }
}


/* ========================================
   TÉLÉPHONE
   ======================================== */

@media (max-width: 700px) {

    .acts-container {
        width: 91%;
    }


    /* HERO */

    .acts-hero {
        padding: 65px 0;
    }

    .acts-hero h1 {
        font-size: clamp(36px, 11vw, 52px);

        line-height: 1;

        overflow-wrap: normal;
        word-break: normal;
    }

    .acts-hero__description {
        font-size: 16px;
    }


    /* CONTENU */

    .acts-content {
        padding: 50px 0 65px;
    }


    /* CATÉGORIES */

    .acts-category + .acts-category {
        margin-top: 50px;
    }

    .acts-category__header {
        align-items: flex-start;

        gap: 12px;

        margin-bottom: 18px;
        padding-bottom: 13px;
    }

    .acts-category__number {
        padding-top: 4px;

        font-size: 11px;
    }

    .acts-category__header h2 {
        font-size: 24px;
        line-height: 1.15;
    }


    /* DOCUMENTS */

    .act-item__download .wp-block-file {
        grid-template-columns: 1fr;

        gap: 14px;

        padding: 16px;
    }

    .act-item__download
    .wp-block-file
    > a:not(.wp-block-file__button) {
        font-size: 14px;
    }

    .act-item__download .wp-block-file__button {
        width: 100%;

        min-width: 0;
    }
}