/* ***********************************************************************************************************|
                                                 PAGE RÉALISATIONS                                              |
   Même mise en page que la page Actualités : fiches projet + barre latérale de filtres + pagination.        |
   Couleurs du site : --primary-color (orange #fd6f02), --second-color (bleu #022659).                         |
   Bannière, CTA : interne.css         Responsive : responsive-realisations.css                                  |
**************************************************************************************************************/


/* ***********************************************************************************************************|
                                                   utilitaires                                                |
**************************************************************************************************************/
.texte-masque {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bi-titre .title-color1 {
    color: var(--primary-color);
}


/* ***********************************************************************************************************|
                                                   corps de page                                              |
**************************************************************************************************************/
.wrapper-realisations {
    position: relative;
    padding: 60px 0 130px;
    overflow: hidden;
}

.wrapper-realisations .container {
    position: relative;
    z-index: 1;
    padding: 0 15px;
}


/* ***********************************************************************************************************|
                                                   formes décoratives                                         |
**************************************************************************************************************/
.shape-form {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.shape-form.shape-1 {
    border: 1px solid #e5e5e5;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    top: -133px;
    left: -133px;
}

.shape-form.shape-2 {
    border: 1px solid #e5e5e5;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    right: -133px;
    bottom: -133px;
}

.shape-form.shape-3 {
    left: 50%;
    top: 51%;
    animation: spin 15s normal infinite linear;
}

.shape-form.shape-4 {
    right: 2px;
    top: 33%;
    animation: float-bob-y 2s normal infinite linear;
}

.shape-form.shape-5 {
    right: 0;
    bottom: 0;
    animation: float-bob-x 2s normal infinite linear;
}

.actualites-shape-1,
.actualites-shape-2 {
    position: absolute;
    width: auto;
    z-index: 0;
    pointer-events: none;
}

.actualites-shape-2 {
    right: 0;
    top: -170px;
}

.actualites-shape-1 {
    bottom: -46px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float-bob-y {
    0% {
        transform: translateY(-20px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(-20px);
    }
}

@keyframes float-bob-x {
    0% {
        transform: translateX(-30px);
    }
    50% {
        transform: translateX(-10px);
    }
    100% {
        transform: translateX(-30px);
    }
}

/* « Réduire les animations » activé : les formes restent immobiles */
@media (prefers-reduced-motion: reduce) {

    .shape-form {
        animation: none !important;
    }

    .realisation-card,
    .realisation-card:hover {
        transition: none;
        transform: none;
    }

}


/* ***********************************************************************************************************|
                                                   mise en page                                               |
**************************************************************************************************************/
.wrap-realisations {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 44px;
}

.item-realisation-box {
    position: relative;
    width: calc(100% - 384px);
}

.sidebar-realisations {
    position: sticky;
    top: 20px;
    width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}


/* ***********************************************************************************************************|
                                                   filtre en cours                                            |
**************************************************************************************************************/
.etat-filtre {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    margin-bottom: 24px;
    padding: 14px 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 0 15px #0000001a;
    font-size: 15px;
    color: var(--texte-doux);
}

.etat-filtre strong {
    color: var(--second-color);
}

.lien-effacer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

.lien-effacer:hover {
    color: var(--second-color);
}


/* ***********************************************************************************************************|
                                                   fiches projet                                            |
**************************************************************************************************************/
.wrap-item-realisation-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.item-realisation-card {
    position: relative;
    display: flex;
    width: calc(50% - 10px);
}

.realisation-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    transition: .3s;
    box-shadow: 0 0 15px #0000001a;
}

.realisation-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 18px 36px rgba(253, 111, 2, .14);
    transform: translateY(-4px);
}

.rc-img {
    background: linear-gradient(135deg, #eef1f6, #dde3ec);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.rc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.realisation-card:hover .rc-img img {
    transform: scale(1.04);
}

.rc-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    background: var(--primary-color);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 6px 12px;
    border-radius: 20px;
}

.rc-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 22px 24px;
}

.rc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 12.5px;
    color: var(--texte-doux);
    margin-bottom: 10px;
}

.rc-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.rc-meta i {
    color: var(--primary-color);
}

.rc-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--second-color);
    line-height: 1.35;
    margin-bottom: 10px;
}

.rc-title a {
    color: inherit;
}

/* Toute la carte est cliquable : le lien du titre la recouvre */
.rc-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}

.realisation-card:hover .rc-title {
    color: var(--primary-color);
}

.rc-excerpt {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--texte-doux);
    margin-bottom: 14px;
}

.rc-more {
    margin-top: auto;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rc-more i {
    transition: transform .3s;
}

.realisation-card:hover .rc-more i {
    transform: translateX(4px);
}

/* ---------- aucun résultat ---------- */
.aucun-projet {
    padding: 40px;
    border: 2px dashed #e1e5ec;
    border-radius: 16px;
    background: #fff;
}

.aucun-projet h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--second-color);
    margin-bottom: 10px;
}

.aucun-projet p {
    font-size: 15.5px;
    color: var(--texte-doux);
    margin-bottom: 22px;
}

.aucun-projet .primary-btn {
    display: inline-flex;
}


/* ***********************************************************************************************************|
                                                   barre latérale                                             |
**************************************************************************************************************/
.widget {
    padding: 28px 26px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 0 15px #0000001a;
}

.widget h3 {
    position: relative;
    margin-bottom: 22px;
    padding-bottom: 12px;
    font-size: 19px;
    font-weight: 800;
    color: var(--second-color);
}

.widget h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: var(--primary-color);
}

/* ---------- recherche ---------- */
.search-box {
    display: flex;
    align-items: center;
    height: 52px;
    border: 1px solid #e5e5e5;
    border-radius: 30px;
    background: #f7f8fa;
    overflow: hidden;
    transition: border-color .3s;
}

.search-box:focus-within {
    border-color: var(--primary-color);
}

.search-box input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 18px;
    font-size: 14.5px;
    color: var(--texte);
}

.search-box input::placeholder {
    color: #8a93a3;
}

.search-box button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-right: 3px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background-color .3s;
}

.search-box button:hover {
    background: var(--second-color);
}

/* ---------- catégories ---------- */
.cat-list li:not(:last-child) {
    border-bottom: 1px dashed #e5e5e5;
}

.cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--second-color);
}

.cat-list a:hover,
.cat-list a.active {
    color: var(--primary-color);
}

.cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 26px;
    padding: 0 8px;
    border-radius: 20px;
    background: #f1f3f7;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--texte-doux);
    transition: .3s;
}

.cat-list a:hover .cat-count,
.cat-list a.active .cat-count {
    background: var(--primary-color);
    color: #fff;
}

/* ---------- articles récents ---------- */
.rn-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
}

.rn-item:not(:last-child) {
    border-bottom: 1px dashed #e5e5e5;
}

.rn-item:nth-child(2) {
    padding-top: 0;
}

.rn-thumb {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #eef1f6;
    overflow: hidden;
}

.rn-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.rn-item:hover .rn-thumb img {
    transform: scale(1.08);
}

.rn-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--second-color);
    margin-bottom: 4px;
    transition: color .3s;
}

.rn-item:hover .rn-title {
    color: var(--primary-color);
}

.rn-date {
    font-size: 12.5px;
    color: var(--texte-doux);
}

/* ---------- contact ---------- */
.widget-contact {
    border: 0;
    background:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 30px 30px,
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 30px 30px,
        var(--second-color);
    color: #fff;
}

.widget-contact h3 {
    color: #fff;
}

.widget-contact p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .78);
    margin-bottom: 20px;
}

.widget-contact .primary-btn {
    display: inline-flex;
    font-size: 14px;
}

.widget-tel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    margin-left: 10px;
    font-weight: 700;
    color: #fff;
}

.widget-tel i {
    color: var(--primary-color);
}

.widget-tel:hover {
    color: var(--primary-color);
}


/* ***********************************************************************************************************|
                                                   compléments des fiches projet                              |
**************************************************************************************************************/
/* Bouton « photos » : ouvre l'album du projet dans la visionneuse */
.rc-photos {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 0;
    border-radius: 20px;
    background: rgba(1, 26, 63, .85);
    font-family: var(--primary-font);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: background-color .3s;
}

.rc-photos:hover {
    background: var(--primary-color);
}

.rc-photos:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.rc-client {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--second-color);
}

.rc-statut {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.rc-statut::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.rc-statut--livre {
    background: rgba(2, 38, 89, .08);
    color: var(--second-color);
}

.rc-statut--livre::before {
    background: var(--second-color);
}

.rc-statut--en-cours {
    background: #e7f4ec;
    color: #1e6b3a;
}

.rc-statut--en-cours::before {
    background: #2e9e57;
}

.rc-fondateurs {
    padding: 3px 10px;
    border: 1px dashed var(--primary-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--orange-fonce);
}

.rc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.rc-tags li {
    padding: 4px 10px;
    border-radius: 20px;
    background: #f1f3f7;
    font-size: 12px;
    font-weight: 600;
    color: var(--texte-doux);
}


/* ***********************************************************************************************************|
                                                   filtres statut et année                                    |
**************************************************************************************************************/
.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-list + .chip-list {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e5e5e5;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid #e1e5ec;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--second-color);
    transition: all .3s;
}

.chip span {
    font-size: 12px;
    color: var(--texte-doux);
}

.chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.chip.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.chip.active span {
    color: rgba(255, 255, 255, .85);
}


/* ***********************************************************************************************************|
                                                   widget galerie                                             |
**************************************************************************************************************/
.widget-galerie p {
    margin-bottom: 16px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--texte-doux);
}

.galerie-liens {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.galerie-liens a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e1e5ec;
    border-radius: 12px;
    font-family: var(--primary-font);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--second-color);
    transition: all .3s;
}

.galerie-liens a i {
    color: var(--primary-color);
}

.galerie-liens a:hover {
    border-color: var(--primary-color);
    background: rgba(253, 111, 2, .06);
}


/* ***********************************************************************************************************|
                                                   clients                                                    |
**************************************************************************************************************/
.rea-clients-titre {
    margin-bottom: 30px;
    text-align: center;
    font-family: var(--primary-font);
    font-size: 18px;
    font-weight: 800;
    color: var(--second-color);
}

.rea-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px 36px;
}

.rea-logos li {
    display: grid;
    place-items: center;
    width: 130px;
    height: 70px;
}

.rea-logos img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .7;
    transition: filter .3s, opacity .3s;
}

.rea-logos li:hover img {
    filter: none;
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {

    .rea-logos img,
    .chip,
    .rc-photos {
        transition: none;
    }

}
