@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300 &display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;

}

h3 {
    margin: 0;
}

header {
    height: 150px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 0 0;
    background: linear-gradient(302deg, rgb(24, 24, 24) 0%, rgba(0, 0, 0, 1) 38%);
    color: white;
    overflow: hidden;
    border-bottom: 2px solid;
    border-image-slice: 1;
    border-width: 3px;
    border-image-source: radial-gradient(circle at 54% 52%, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

.logo {
    width: min(50vw, 130px);
    padding: 30px;
}

.showcase {
    width: min(600px, 50vw);
    overflow: hidden;
    height: min(100px, 20vh + 20px);
    position: absolute;
    left: 32.5%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.showcase video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.title {
    overflow: hidden;
    font-size: clamp(1rem, 9vw, 7rem);
    font-weight: 700;
    margin: 0;
    padding-bottom: 0;
    color: #fff;
    background: #000;
    mix-blend-mode: multiply;
}

.Ctcanchor {
    color: white;
    text-decoration: none;
    font-size: 3rem;
    margin-right: 50px;

}

.achievement {
    /* gestion du parallax */
    background-attachment: fixed;
    background-size: cover;
    overflow: hidden;
    color: white;
    background-image: url('./src/images/v627-aew-41-technologybackground.jpg');

}

.achievement2 {
    /* gestion du parallax */
    background-attachment: fixed;
    background-size: cover;
    overflow: hidden;
    color: white;
    background-image: url('./src/images/sl_031420_28950_04.jpg');

}

.wordpress {
    background-image: url('./src/images/wordpress.jpg');
    background-size: cover;
}

.react {
    background-image: url('./src/images/code.jpg');
    background-size: cover;
}

.mobile {
    background-image: url('./src/images/monitor.jpg');
    background-size: cover;
}

.realisations {
    margin: 0;
    padding: 60px 60px 20px 20px;
    text-align: end;
    font-size: max(5vw, 2em, 2.5rem);
    text-shadow: -4px -4px 15px black;

}

.cards {
    padding: 50px;
    height: 100%;
    /* grid */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    grid-auto-rows: 300px;
}

.card {
    margin: 0;
    background-color: black;
    border-radius: 8px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.9);
    transform-style: preserve-3d;
    transform: perspective(1000px);

}

.chatdcoiff {
    background-image: url('./src/images/chatdcoiff.png');
    background-size: cover;

}

.alexandra-diguet {
    background-image: url('./src/images/alexandra-diguet.fr.png');
    background-size: cover;
}

.paysage {
    background-image: url('./src/images/woods.jpg');
    background-size: cover;
}

.cardname {
    position: absolute;
    text-align: center;
    padding-top: 20px;
    border-radius: 0 50px 50px 0;
    background-color: white;
    box-shadow: 2px 2px 10px black;
    height: 50px;
    width: 250px;
    color: #000;
    left: -10px;
    top: 20px;
}

.rgb::after {
    content: "";
    background: linear-gradient(45deg, #000000 0%, #505050 25%, #ffffff 50%, #838383 75%, #000000 100%) repeat 0 0 / 300% 100%;
    position: absolute;
    inset: -3px;
    border-radius: 16px;
    filter: blur(8px);
    transform: translateZ(-1px);
    /*or z-index */
    animation: rgb 6s linear infinite;
}

.Starinfo {
    padding: 50px;
    height: 100%;
    background: linear-gradient(302deg, rgba(53, 53, 53, 1) 0%, rgba(0, 0, 0, 1) 38%);
    color: white;
}

.info-title {
    margin: 0;
    padding: 60px 60px 20px 20px;
    text-align: start;
    font-size: max(5vw, 2em, 2.5rem);
}

.info-txt1 {
    font-size: max(1vw, 1.5em, 1.5rem);
    text-align: start;
    margin-right: 40%;
    margin-bottom: 80px;
}

.info-txt2 {
    font-size: max(1vw, 1.5em, 1.5rem);
    text-align: end;
    margin-left: 40%;
    margin-top: 80px;
}

#about {
    color: white;
    background: linear-gradient(302deg, rgba(53, 53, 53, 1) 0%, rgba(0, 0, 0, 1) 38%);
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    align-items: center;
}

/* -------------------------------------Button hover animation- NTP idea CODEPEN------------------------------------------------------------------ */

.wrapper-contact {
    margin: 80px auto;
    text-align: center;
    display: flex;
    flex-direction: row;
}

.reseau {
    padding: 0.6em 2em;
    margin: 15px 15px 15px 15px;
    border: none;
    outline: none;
    list-style-type: none;
    text-decoration: none;
    text-transform: uppercase;
    color: rgb(255, 255, 255);
    background: #111;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    transition: all 0.5s ease-in-out;
}

.reseau:hover {
    scale: 1.1;
}

.reseau:before {
    content: "";
    background: linear-gradient(45deg,
            #FEFEFE,
            #BFBFBF,
            #868686,
            #5D5D5D,
            #868686,
            #BFBFBF,
            #FEFEFE);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowingbn5 20s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 10px;

}

.reseau:active {
    transition: all 0.3s ease-in-out;
    scale: 0.8;
}

.reseau:active:after {
    background: transparent;
}

.reseau:hover:before {
    opacity: 1;

}

.reseau:after {
    z-index: -1;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #191919;
    left: 0;
    top: 0;
    border-radius: 10px;

}

/* ------------------------------------------------------------------------------------------------------- */

.js-tilt-glare {
    border-radius: 18px;
}

@keyframes glowingbn5 {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }

    /* flex-direction: column;
    align-items: center; */
}

@keyframes rgb {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@media(max-width: 1350px) {
    .showcase {
        display: none;
    }

    .cards {
        /* grid */
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 50px;
    }

    .wrapper-contact {
        margin: 40px auto;
        flex-direction: column;
    }
}

@media(max-width: 1000px) {

    .cards {
        /* grid */
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 70px;
    }
}