@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url("style.css");

body {
    background-image: url(img/fond-projet.png);
}

main {
    min-height: 75vh;
}

.projet {
    margin: 40px 130px;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 40px;

}

.text h1 {
    padding-bottom: 20px;
}

.text h1 span {
    color: var(--violet);
}

.text p {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 30px;
}

.btn {
    position: sticky;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: start;
    gap: 20px;
    padding-bottom: 40px;
    padding: 10px 0;
    z-index: 1;
    background: transparent;
    backdrop-filter: blur(9px);
}


.card-projet button {
    font-weight: 700;
    border-radius: 30px;
    background-size: 100% auto;
    font-size: 1rem;
    padding: 0.6em 1em;
    width: 150px;
    transition: all 300ms;
    text-align: center;
    text-decoration: none;
    background-color: transparent;
    color: var(--violet);
    border: 2px solid var(--violet);
}

.card-projet button:hover {
    background-position: right center;
    background-size: 200% auto;
    -webkit-animation: pulse 2s infinite;
    animation: anim 1.5s infinite;
    border: none;
    color: white;
    background-color: var(--violet);
}


@keyframes anim {
    0% {
        box-shadow: 0 0 0 0 var(--violet);
    }

    70% {
        box-shadow: 0 0 0 10px rgb(218 103 68 / 0%);
    }
}

.cards {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.cards a {
    transition: all 0.5s ease-in-out;
}

.card {
    position: relative;
    width: 350px;
    height: 200px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    ;
}

.card img {
    max-width: 100%;
    border-radius: 10px;
}

.card:hover {
    transform: rotate(0deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #fff;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.card:hover .card__content {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 1;
}

.card__title {
    margin: 0;
    font-size: 24px;
    color: var(--bleu-noir);
    font-weight: 700;
}

.card__description {
    margin: 10px 0 0;
    font-size: 14px;
    color: var(--bleu-noir);
    line-height: 1.4;
    height: 80px;
    overflow-y: auto;
}

.badges {

    display: flex;
    gap: 10px;
}

.badges span {
    color: var(--violet);
    font-weight: 500;
    border: 2px solid var(--violet);
    border-radius: 5px;
    margin-top: 10px;
    padding: 2px 5px;
}

.card:hover img {
    scale: 0;
    transform: rotate(-45deg);
}


footer {
    margin-top: 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    padding-top: 30px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-image: url('img/modal-bg.png');
    background-position: center;
    background-size: cover;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    border-radius: 25px;
    margin-bottom: 50px;
}

.modal-projet {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    margin: auto;
}

.modal-projet h2 {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
}

.modal-projet h2 span {
    color: var(--violet);
}

.modal-projet>p {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.modal-projet p span {
    color: var(--violet);
}

.modal-projet-info {
    margin-top: 30px;
    display: flex;
    gap: 100px;
}

.modal-projet-result {
    width: 400px;
    margin-top: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: start;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.modal-projet-result ul {
    margin-left: 30px;
}

.modal-projet-figure {
    width: 400px;
    font-size: 12px;
    color: var(--bleu-noir);
    font-weight: 600;
    margin-left: 15px;
}

.modal-projet-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.modal-projet-tools div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-projet-tools div p {
    font-weight: 600;
}

.modal-details {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.modal-details-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.modal-projet-step>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.modal-projet-step {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: 350px;
    overflow-y: scroll;
}

.text-boxed {
    padding: 15px 10px;
    font-size: 14px;
    font-weight: 500;
    width: 250px;
    color: var(--bleu-noir);
    text-align: center;
    border: 2px solid var(--bleu-noir);
    border-radius: 5px;
}

.text-violet {
    font-size: 24px;
    font-weight: 600;
    color: var(--violet);
}

#projet-img {
    width: 450px;
    object-fit: cover;
    border-radius: 10px;
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.arrow {
    width: 25px;
    height: 25px;
}

@media screen and (max-width: 1919px) {
    h1 {
        font-size: 3.8rem;
        line-height: 60px;
    }

}



@media screen and (max-width: 1400px) {

    h1 {
        font-size: 3rem;
        line-height: 50px;
    }

    .text p {
        font-size: 1rem;
        line-height: 20px;
    }

    .projet {
        margin: 40px 50px;
    }

    .cards {
        justify-content: center;
    }

    .card {
        width: 300px;
        height: 180px;
    }

    .card-projet button {
        font-size: 12px;
        width: 120px;
    }

    .card__content {
        padding: 10px;
    }

    .modal-content {
        display: flex;
        ;
        width: 85%;
        margin-bottom: 50px;
    }

    .modal-projet-info {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .modal-projet-result {
        width: 80%;
    }

    .modal-projet-figure {
        width: 80%;
    }

    #projet-img {
        width: 100%;
        height: 450px;
        object-fit: cover;
        border-radius: 10px;
    }

    .modal-projet h2 {
        font-size: 2rem;
        font-weight: 800;
    }

    .modal-projet>p {
        font-size: 18px;
        font-weight: 600;
        text-align: center;
    }

    .modal-details {
        width: 80%;
    }
}

.voirPlus {
    margin-top: 30px;
    margin-bottom: 10px;
    border: none;
    color: white;
    background-color: var(--violet);
    font-weight: 500;
    border-radius: 30px;
    background-size: 100% auto;
    font-family: inherit;
    font-size: 1rem;
    padding: 0.6em 1.5em;
    width: 100px;
    transition: all 300ms;
    text-align: center;
    text-decoration: none;
}

.voirPlus:hover {
    background-position: right center;
    background-size: 200% auto;
    -webkit-animation: pulse 2s infinite;
    animation: anim 1.5s infinite;
    background-color: transparent;
    color: var(--violet);
    border: 2px solid var(--violet);
}

.fa-download {
    color: white;
}

.voirPlus:hover .fa-download {
    color: var(--violet);
}

.modal-github {
    margin-top: 30px;
    margin-bottom: 10px;
    border: none;
    color: white;
    background-color: var(--violet);
    font-weight: 500;
    border-radius: 30px;
    background-size: 100% auto;
    font-family: inherit;
    font-size: 1rem;
    padding: 0.6em 1.5em;
    width: 100px;
    transition: all 300ms;
    text-align: center;
    text-decoration: none;
}


.modal-github:hover {
    background-position: right center;
    background-size: 200% auto;
    -webkit-animation: pulse 2s infinite;
    animation: anim 1.5s infinite;
    background-color: transparent;
    color: var(--violet);
    border: 2px solid var(--violet);
}

.modal-action {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.modal-footer {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.modal-footer p {
    color: var(--violet);
    font-size: 1.1rem;
}

@media screen and (max-width: 541px) {
    h1 {
        font-size: 2rem;
        line-height: 35px;
    }

    .text p {
        font-size: 0.9rem;

    }

    #projet-img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        border-radius: 10px;
    }

    .modal-action {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0px;
    }

    .modal-github {
        margin-top: 10px;
    }
}