
/* ========================================
   PAGE PROJET
======================================== */

.project-page {
    width: 100%;
    margin: 0 auto;
}

.project-page .project-page__article {
    width: 100%;
    margin: 0;
}

/* ========================================
   EN-TÊTE
======================================== */

.project-page .project-page__article .project-page__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;


    width: 100%;
    margin: 0;
    box-sizing: border-box;

    text-align: center;
}

/* ========================================
   TITRE DU PROJET
======================================== */

.project-page .project-page__article .project-page__title {
    display: block;
    width: 100%;

    margin-top: 128px;
    margin-bottom:18px;
    padding: 0;

    font-family: inherit;
    font-size: 64px;
    line-height: 1.1;
    font-weight: 700;

    color: #03062E;
    text-align: center;
}

.project-page .project-page__title .project-page__quote {
    font: inherit;
    font-weight: inherit;
    color: inherit;
}

/* ========================================
   BADGE CLIENT / PROJET PERSONNEL
======================================== */

.project-page .project-page__article .project-page__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    min-height: 26px;

    margin-bottom: 128px;
    padding: 0 10px;
    box-sizing: border-box;

    background: #FFDAB2;
    border: none;
    border-radius: 5px;

    color: #000000;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 26px;

    text-align: center;
}

/* ========================================
   CATÉGORIES ET FILTRES
======================================== */

.project-page .project-page__categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;

    width: auto;
    margin: 20px 32px 0;
    padding: 0;

    list-style: none;
    box-sizing: border-box;
}

/* Filtres de l'archive affichés sur la page projet */

.project-page .project-page__categories .projects-archive__category {
    flex-shrink: 0;
}

/* Catégorie du projet sélectionnée */

.project-page .project-page__categories
.projects-archive__category.is-active {
    background-color: #FFDAB2;
    border-color: #F28C28;
    color: #000000;
}

/* Style alternatif si le modèle utilise project-page__category */

.project-page .project-page__category {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 12px;

    border: 1px solid #E9A15D;
    border-radius: 5px;

    font-family: inherit;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 400;
}

/* ========================================
   IMAGE PRINCIPALE
======================================== */

.project-page .project-page__featured-image {
    width: 100%;
    margin: 0 0 32px;
}

.project-page .project-page__featured-image-element {
    display: block;
    width: 100%;
    height: auto;
}

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

.project-page .project-page__content {
    width: 100%;
}

.project-page .project-page__content > * {
    max-width: 100%;
}

/* ========================================
   BOUTON AUTRE PROJET
======================================== */

.project-page .project-page__footer {
    display: flex;
    justify-content: center;

    width: 100%;
    margin-top: 128px;
    padding: 0 0 48px;

    box-sizing: border-box;
}

.project-page .project-page__footer .project-page__other-project {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 14px 20px;

    background: #FFFFFF;
    border: 1px dashed #F28C28;
    border-radius: 7px;

    color: inherit;
    font-family: inherit;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.project-page .project-page__footer .project-page__other-project:hover {
    background: #FFF7EF;
    border-color: #E87512;
}

.project-page .project-page__footer .project-page__other-project:focus-visible {
    outline: 2px solid #F28C28;
    outline-offset: 4px;
}

.project-page .project-page__other-project-arrow {
    display: block;
    width: 18px;
    height: 18px;

    object-fit: contain;
    flex-shrink: 0;
}

/* ========================================
   RESPONSIVE : TABLETTES
======================================== */

@media (max-width: 768px) {
    .project-page .project-page__article .project-page__header {
        gap: 128px;
        padding: 32px 16px;
    }

    .project-page .project-page__article .project-page__title {
        font-size: 42px;
    }

    .project-page .project-page__categories {
        gap: 6px;
        margin: 16px 32px 0;
    }

    .project-page .project-page__category {
        font-size: 12px;
    }

    .project-page .project-page__footer {
        margin-top: 64px;
        padding-bottom: 32px;
    }
}

/* ========================================
   RESPONSIVE : MOBILES
======================================== */

@media (max-width: 480px) {
    .project-page .project-page__article .project-page__header {
        gap: 64px;
    }

    .project-page .project-page__article .project-page__title {
        font-size: 34px;
    }

    .project-page .project-page__article .project-page__badge {
        font-size: 13px;
    }

    .project-page .project-page__categories {
        margin: 16px 32px 0;
    }

    .project-page .project-page__footer .project-page__other-project {
        gap: 16px;
        padding: 12px 16px;
    }
}
