:root {
    --metal-card-height: 460px;
    --metal-card-width: 300px;

    /* Variables d'ajustement pour que la card soit responsive */
    --metal-card-shadow-position: 2px;
    --metal-card-to-top-first-box-height: 68px;
    --metal-card-to-top-middle-box-height: 86px;
    --metal-card-to-bottom-first-box-height: 200px;
    /* --metal-card-vertical-adjuster: calc(var(--metal-card-height) - calc(var(--metal-card-to-top-first-box-height) + var(--metal-card-to-top-middle-box-height)) - 200px); */
    --metal-card-vertical-adjuster: 46px;
}

.metal-card-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: pink;
    height: var(--metal-card-height);
    width: var(--metal-card-width);
    position: relative;

    .decoration {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        pointer-events: none;

        img {
            position: absolute;
            width: 100%;
            height: 100%;
        }

        .simple-shadow {
            top: var(--metal-card-shadow-position);
            left: var(--metal-card-shadow-position);
        }

        .top,
        .vertical-adjuster-img-area,
        .middle,
        .vertical-adjuster-content-area,
        .bottom {
            display: flex;
            justify-content: space-between;
            width: 100%;
            position: absolute;
            z-index: 1;
        }

        .top {
            height: var(--metal-card-to-top-first-box-height);
            top: 0;

            .left,
            .right {
                position: relative;
                height: 100%;
                width: 68px;
            }

            .horizontal-adjuster {

                img {
                    height: 4px;
                    width: calc(var(--metal-card-width) - calc(68px * 2));
                    left: calc(calc(var(--metal-card-width) / 2) - calc(calc(var(--metal-card-width) - calc(68px * 2)) / 2));
                }

                .shadow {
                    top: var(--metal-card-shadow-position);
                    left: calc(calc(calc(var(--metal-card-width) / 2) - calc(calc(var(--metal-card-width) - calc(68px * 2)) / 2)) + var(--metal-card-shadow-position));
                }
            }
        }

        .vertical-adjuster-img-area {
            height: var(--metal-card-vertical-adjuster);
            top: var(--metal-card-to-top-first-box-height);

            div {
                height: 100%;
                position: relative;
            }

            .gold,
            .shadow {
                position: absolute;
                display: block;
                width: 4.5px;
                height: 48px;
            }

            .gold {
                top: -1px;
            }

            .shadow {
                top: 1px;
            }

            .left {
                position: relative;

                .gold {
                    left: 0px;
                    background: linear-gradient(to right,
                            rgba(97, 66, 53, 0) 0%,
                            rgba(97, 66, 53) 13%,
                            #9e6e17 25%,
                            #efd892 60%,
                            #9e6e17 75%,
                            #614236 97%,
                            rgba(97, 66, 53, 0) 100%);
                }

                .shadow {
                    left: var(--metal-card-shadow-position);
                    top: 1px;
                    background: linear-gradient(to left,
                            rgba(0, 0, 0, 0.6),
                            rgba(0, 0, 0, 0.6) 86%,
                            rgba(0, 0, 0, 0) 100%);
                }
            }

            .right {
                position: relative;

                .gold {
                    right: 0px;
                    background: linear-gradient(to right,
                            rgba(97, 66, 53) 0%,
                            #9e6e17 25%,
                            #efd892 60%,
                            #9e6e17 75%,
                            #614236 100%);
                }

                .shadow {
                    right: calc(-1 * var(--metal-card-shadow-position));
                    top: 1px;
                    background: linear-gradient(to left,
                            rgba(0, 0, 0, 0.6),
                            rgba(0, 0, 0, 0.6) 86%,
                            rgba(0, 0, 0, 0) 100%);
                }
            }
        }

        .middle {
            height: var(--metal-card-to-top-middle-box-height);
            top: 114px;

            .left,
            .right {
                position: relative;
                height: 100%;
                width: 76px;
            }

            .horizontal-adjuster {

                img {
                    width: calc(var(--metal-card-width) - calc(68px * 2));
                    left: calc(calc(var(--metal-card-width) / 2) - calc(calc(var(--metal-card-width) - calc(68px * 2)) / 2));
                }

                .shadow {
                    top: var(--metal-card-shadow-position);
                    left: calc(calc(calc(var(--metal-card-width) / 2) - calc(calc(var(--metal-card-width) - calc(68px * 2)) / 2)) + var(--metal-card-shadow-position));
                }
            }
        }

        .vertical-adjuster-content-area {
            height: 60px;
            bottom: var(--metal-card-to-bottom-first-box-height);
            /* bottom: 0px; */

            div {
                height: 100%;
                position: relative;
            }

            .gold,
            .shadow {
                position: absolute;
                display: block;
                width: 4.5px;
                height: calc(100% + 2px);
            }

            .gold {
                top: 0px;
            }

            .shadow {
                top: 1px;
            }

            .left {
                position: relative;

                .gold {
                    left: 0px;
                    background: linear-gradient(to right,
                            rgba(97, 66, 53, 0) 0%,
                            rgba(97, 66, 53) 13%,
                            #9e6e17 25%,
                            #efd892 60%,
                            #9e6e17 75%,
                            #614236 97%,
                            rgba(97, 66, 53, 0) 100%);
                }

                .shadow {
                    left: var(--metal-card-shadow-position);
                    top: 1px;
                    background: linear-gradient(to left,
                            rgba(0, 0, 0, 0.6),
                            rgba(0, 0, 0, 0.6) 86%,
                            rgba(0, 0, 0, 0) 100%);
                }
            }

            .right {
                position: relative;

                .gold {
                    right: 0px;
                    background: linear-gradient(to right,
                            rgba(97, 66, 53) 0%,
                            #9e6e17 25%,
                            #efd892 60%,
                            #9e6e17 75%,
                            #614236 100%);
                }

                .shadow {
                    right: calc(-1 * var(--metal-card-shadow-position));
                    top: 1px;
                    background: linear-gradient(to left,
                            rgba(0, 0, 0, 0.6),
                            rgba(0, 0, 0, 0.6) 86%,
                            rgba(0, 0, 0, 0) 100%);
                }
            }
        }

        .bottom {
            height: var(--metal-card-to-bottom-first-box-height);
            bottom: 0;

            .left,
            .horizontal-adjuster,
            .right {
                position: relative;
                height: 100%;
            }

            .left {
                width: 44px;
            }

            .right {
                width: 253px;
            }

            .horizontal-adjuster {
                width: 4px;

                img {
                    width: 5px;
                    left: 0px;
                }

                .shadow {
                    top: var(--metal-card-shadow-position);
                    left: 2px;
                }
            }
        }
    }

    .content {
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
        height: 100%;
        text-align: center;

        .banner-img {
            height: 200px;
            border-top-left-radius: 41px;
            padding-left: 2px;
        }

        .text-content {
            margin-top: -44px;
            z-index: 1;
            padding: 0 10px;

            h4 {
                padding: 7px 0;
                margin-bottom: 16px;
            }

            .resume {
                text-align: start;
                background: blue;
                height: 100px;
                overflow-Y: scroll;
            }

            .tag {
                display: flex;
                justify-content: space-around;
                align-items: center;
                height: 48px;
                flex-wrap: wrap;
                padding: 0 20px;
                font-size: 1rem;
                font-style: italic;
                background: orange;

                p {
                    background-image: linear-gradient(var(--gold3) 0%, var(--gold1) 15%, var(--gold2) 40%, var(--gold3) 50%, var(--gold1)65%);
                    color: transparent;
                    background-clip: text;
                }
            }
        }

        .bottom-content {
            position: absolute;
            bottom: 0px;
            right: 0px;
            background: blue;
            width: 100%;
            height: 110px;

            a {
                color: black;
                text-decoration: none;
                position: absolute;
            }

            .external-link {
                position: relative;
                background: yellow;
                width: 100%;
                height: 28px;

                a {
                    background: red;
                }

                .left-button {
                    right: 160px;
                    padding: 5px 17px;
                }

                .right-button {
                    right: 58px;
                    padding: 5px 19px;
                }
            }

            .internal-link {
                display: flex;
                align-items: center;
                position: relative;
                background: rgb(19, 201, 19);
                width: 100%;
                height: 38px;

                a {
                    right: 93px;
                    padding: 5px 18px;
                    background: red;
                }
            }

            .project-type {
                display: flex;
                align-items: center;
                position: relative;
                background: rgb(128, 8, 22);
                width: 100%;
                height: 25px;

                p {
                    position: absolute;
                    left: 48px;
                }
            }

            .screen-type {
                position: relative;

                img {
                    position: absolute;
                    width: 44px;
                    right: 12px;
                    bottom: -5px;
                    border-radius: 50%;
                    z-index: 3;
                }
            }
        }

    }
}


.img-text-card {
    -webkit-box-shadow: 3px 3px 10px 0px var(--silver2), inset 3px 3px 5px -2px var(--silver3);
    box-shadow: 3px 3px 10px 0px var(--silver2), inset 3px 3px 5px -2px var(--silver3);
    background: #fcfcfc42;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 16px;
    justify-content: center;
    width: 90px;
    height: 80px;

    img {
        width: 40px;
    }

    p {
        margin-top: 4px;
        color: white;
        font-style: italic;
        font-size: 0.8rem;
    }
}


/* 📱 Mobile large (481px et plus) */
@media (min-width: 481px) {}

/* 📲 Tablettes (768px et plus) */
@media (min-width: 768px) {}

/* 💻 Ordinateurs portables (1025px et plus) */
@media (min-width: 1025px) {

    .img-text-card {
        width: 120px;
        height: 80px;
    }

}

/* 🖥 Grands écrans (1367px et plus) */
@media (min-width: 1367px) {
    .img-text-card {
        width: 130px;
        height: 90px;

        p {
            font-size: 1rem;
        }
    }
}

/* 🖥📺 Ultra-large (1920px et plus) — optionnel */
@media (min-width: 1920px) {

    .img-text-card {
        width: 140px;
        height: 100px;

        img {
            width: 50px;
        }

        p {
            margin-top: 8px;
        }
    }
}