/* =================================
   MODALE PORTFOLIO
================================= */
.btn-t{
    text-decoration: none;
}
.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;

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

    padding: 25px;
}

.portfolio-modal.open {
    display: flex;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,.82);
    backdrop-filter: blur(8px);
}


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

.portfolio-modal-content {

    position: relative;
    z-index: 2;

    width: min(1200px, 100%);
    height: min(90vh, 760px);

    background: #fff;

    border-radius: 16px;
    overflow: hidden;

    display: grid;

    grid-template-columns: 1.6fr .8fr;
    grid-template-rows: 1fr 100px;

    box-shadow: 0 30px 100px rgba(0,0,0,.4);

    animation: portfolioModalIn .25s ease;
}

@keyframes portfolioModalIn {

    from {
        opacity: 0;
        transform: scale(.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* =================================
   BOUTON FERMER
================================= */

.portfolio-close {

    position: absolute;
    z-index: 10;

    top: 16px;
    right: 16px;

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 50%;

    background: var(--teal);
    color: #fff;

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

    cursor: pointer;

    font-size: 18px;

    transition: .2s;
}

.portfolio-close:hover {
    background: var(--teal-dk);
    transform: rotate(90deg);
}


/* =================================
   GRANDE IMAGE
================================= */

.portfolio-main {

    position: relative;

    background: #fff;

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

    overflow: hidden;
}

.portfolio-main img {

    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    transition: opacity .2s ease;
}


/* =================================
   FLÈCHES
================================= */

.portfolio-arrow {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: var(--teal-lt);

    color: white;

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

    cursor: pointer;

    font-size: 20px;

    transition: .2s;
}

.portfolio-arrow:hover {
    background: var(--teal);
}

.portfolio-prev {
    left: 18px;
}

.portfolio-next {
    right: 18px;
}


/* =================================
   INFORMATIONS
================================= */

.portfolio-details {

    background: var(--teal-lt);

    padding: 40px 30px;

    overflow-y: auto;
}

.portfolio-tag {

    display: inline-block;

    background: var(--teal);
    color: white;

    padding: 4px 11px;

    border-radius: 20px;

    font-size: 9px;
    font-weight: 500;

    letter-spacing: .7px;

    margin-bottom: 12px;
}

.portfolio-details h2 {

    font-size: 25px;
    line-height: 1.25;

    font-weight: 500;

    color: var(--blk);

    margin-bottom: 14px;
}

.portfolio-details > p {

    font-size: 12px;

    color: var(--t2);

    line-height: 1.8;

    margin-bottom: 25px;
}

.portfolio-details h4 {

    font-size: 12px;

    color: var(--blk);

    font-weight: 500;

    margin-bottom: 10px;
}

.portfolio-details ul {

    list-style: none;

    display: flex;
    flex-direction: column;

    gap: 8px;

    margin-bottom: 25px;
}

.portfolio-details li {

    font-size: 11px;

    color: var(--t2);

    display: flex;

    align-items: flex-start;

    gap: 7px;
}

.portfolio-details li::before {

    content: "✓";

    color: var(--teal);

    font-weight: 600;
}

.portfolio-contact {

    display: block;

    width: 100%;

    text-align: center;

    padding: 11px;
}


/* =================================
   MINIATURES
================================= */

.portfolio-thumbnails {

    grid-column: 1 / 2;

    background: #fafafa;

    border-top: 1px solid var(--bdr);

    padding: 12px 18px;

    display: flex;

    align-items: center;

    gap: 10px;

    overflow-x: auto;
}

.portfolio-thumbnail {

    width: 76px;
    height: 70px;

    flex: 0 0 auto;

    border-radius: 8px;

    overflow: hidden;

    border: 2px solid transparent;

    cursor: pointer;

    background: #fff;

    transition: .2s;
}

.portfolio-thumbnail img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.portfolio-thumbnail:hover {

    border-color: var(--teal);
}

.portfolio-thumbnail.active {

    border-color: var(--teal);

    box-shadow: 0 0 0 2px rgba(27,138,122,.15);
}


/* =================================
   RESPONSIVE
================================= */

@media (max-width: 800px) {

    .portfolio-modal {
        padding: 10px;
    }

    .portfolio-modal-content {

        width: 100%;
        height: 95vh;

        grid-template-columns: 1fr;
        grid-template-rows: 45% 1fr 85px;
    }

    .portfolio-main {
        grid-row: 1;
    }

    .portfolio-details {
        grid-row: 2;

        padding: 24px 20px;
    }

    .portfolio-thumbnails {

        grid-column: 1;

        grid-row: 3;

        padding: 8px 12px;
    }

    .portfolio-details h2 {
        font-size: 21px;
    }

    .portfolio-main img {
        object-fit: contain;
    }

    .portfolio-arrow {
        width: 36px;
        height: 36px;
    }
}


.port-thumb {
    height: 180px;

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

    overflow: hidden;

    background: var(--gray);
}

.port-thumb img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform .3s ease;
}

.port-card:hover .port-thumb img {
    transform: scale(1.04);
}

.port-card {
    transition:
        opacity .2s ease,
        transform .2s ease,
        border-color .2s ease;
}
.filt {
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .15s ease;
}

.filt:hover {
    transform: translateY(-1px);
}
.portfolio-arrow i, .portfolio-close i{ font-size:22px; line-height:1; display:block; }
.portfolio-arrow:hover, .portfolio-close:hover{ background:var(--teal,#007070)!important; color:#fff; }
.port-card{ cursor:pointer; transition: transform .25s ease, box-shadow .25s ease; }
.port-card:hover{ transform:translateY(-4px); box-shadow:0 12px 28px rgba(0,112,112,.18); }
