*,
*::after,
*::before {
    box-sizing: border-box;
}

:root {
    --pink: #D571D3;
    --gostpink: #d571d31c;
    --gostblue: #03001fa8;
    --night: #010014;
    --blue: #4C6DFF;
}

html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    background-color: var(--night);
    color: white;
    font-family: "Poppins", serif;
}



/* ======================================================= Typographie ======================================================= */


h1,
h2,
h3 {
    font-family: "Audiowide", serif;
    color: var(--pink);
}


h1 {
    font-size: 3rem;

}

h2 {
    font-size: 2rem;

}

h3 {
    font-size: 1.5rem;
}


main a {
    display: block;
}


/* ======================================================= Générales ======================================================= */



a {
    color: var(--blue);
    text-decoration: none;
}





ul {
    padding: 0;
}

li {
    list-style: none;
}

section {
    margin: 25vh 0;
}

/* ======================================================= Bouton style ======================================================= */

.button-style,
button {
    font-family: "Audiowide", serif;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 10px;
    padding: 10px;
    min-width: 44px;
    max-width: 95vw;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 7px var(--pink);
    transition: ease 0.5s;
    z-index: 2;
    margin: 2vh 5px;
}

.small-button {
    font-size: 1.1rem;
    border-radius: 10px;
}

.centerElem {
    display: block;
    margin-left: auto;
    margin-right: auto;
}


.button-style:hover,
.small-button:hover,
button:hover {
    text-align: center;
    color: var(--night);
    fill: var(--night);
    background-color: var(--pink);
    transition: ease 0.5s;
    transform: scale(1.15);
}


/* ======================================================= Header ======================================================= */


.composant-header {
    width: 100%;
    position: relative;
    padding: 0 20px;
}

.retourAccueil img {
    margin-top: 10px;
    height: 70px;
}

.composant-header nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.composant-header ul {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: auto;
    max-width: 700px;
    gap: 2vw;
    padding: 20px;
    border-radius: 15px;
    font-size: 1.3rem;
}

.composant-header a {
    text-decoration: none;
    margin-right: auto;
}


/* Responsive */
@media (max-width: 450px) {
    .composant-header a {
        font-size: 1rem;
    }

    .composant-header ul{
        margin: 0;
    }

    .composant-header {
        padding: 0;
    }
}

/* ======================================================= Introduction ======================================================= */

h1{
    text-align: center;
}

.apropos {
    margin: 10vh auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7vw;
    flex-wrap: wrap-reverse;
}

.apropos div {
    display: flex;
    flex-direction: column;
    width: 60vw;
    min-width: 320px;
    max-width: 600px;
}

.apropos img {
    width: 70vw;
    max-width: 450px;
}

.apropos h2 {
    margin: 0;
}

.apropos h3 {
    margin: 0 3vw;
    font-size: 1.4rem;
}

.apropos ul {
    display: flex;
    justify-content: space-around;
    align-items: center;

}

/* ======================================================= Compétences ======================================================= */

.container-competences {
    margin: 10vh 0;
    display: flex;
    justify-content: center;
    gap: 15vw;
    flex-wrap: wrap;
}


.competences h2 {
    grid-area: 1 / 1 / 2 / 5;
    text-align: center;
    margin: 5vh auto;
}

.competences p {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--pink);
    margin: 0;
}


@media(max-width:600px) {

    .container-comp {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 5vw;
        margin: 0 10vw;
    }


}


/* ======================================================= Projets ======================================================= */

.projet {
    position: relative;
}

.projet h2 {
    text-align: center;
}

.projet-div {
    background-color: var(--gostblue);
    border: var(--pink) 1px solid;
    box-shadow: 0 2px 7px var(--pink);
    border-radius: 10px;
    min-width: 270px;
    width: 23vw;
    padding: 1.2vw;
    transition: ease 0.5s;
    cursor: pointer;
}

.projet-div:hover {
    background-color: var(--gostpink);
    transform: scale(1.05);
    transition: ease 0.5s;
}


.projet-div img {
    width: 100%;
    border-radius: 10px;
    border: var(--pink) 1px solid;
}

.projet-div button  {
    margin: 10px 5px;
    color: var(--blue);
    background-color: transparent;
    border: none;
    box-shadow: none;
    color: var(--pink);
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0;
}

.projet-div button:hover{
    transform: none;
}

.container-projet {
    display: flex;
    gap: 10vh;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 10vh 2vw;
}

.list1-projet,
.list2-projet {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    gap: 3vh;
}

/* ======================================================= Pop-Up Projet ======================================================= */

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--gostblue);
    z-index: 2;
}

.boxe-popup {
    position: relative;
    width: 80vw;
    height: auto;
    max-height: 100vh;
    margin: 10vh auto;
    background-color: var(--night);
    border: var(--pink) 2px solid;
    border-radius: 10px;
}

.content-popup h2 {
    text-align: center;
}

.popup-bandeau {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2vw;
    margin: 0 2vw;
}

.popup-bandeau p{
    margin: 0;
}

.popup-bandeau .tag-container,
.popup-bandeau .dev-lang-container {
    display: flex;
    gap: 2vw;
}

.tag {
    border-radius: 5px;
    border: var(--pink) 1px solid;
    padding: 5px 10px;
}

.dev-lang{
    border-radius: 5px;
    border: var(--blue) 1px solid;
    padding: 5px 10px;
}

.detail {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3vw;
    flex-wrap: wrap;
    margin: 3vh 3vw;
}

.detail p {
    width: 50%;
    max-width: 800px;
}

.detail img {
    width: 40%;
    border-radius: 10px;
    border: var(--pink) 1px solid;
}

.content-popup a {
    min-width: 140px;
    width: 10vw;
    margin: 5vh auto;
}

.fermer {
    position: absolute;
    right: 10px;
    top: 0px;
    font-weight: bold;
    z-index: 3;
}
/* ------------------------------- Popup Responsive ---------------------------------- */

@media (max-width: 1090px) {
    .popup-bandeau {
        gap: 1vw;
        margin: 0 1vw;
    }

    .detail p {
        width: 60%;
    }

    .detail img {
        width: 30%;
    }
}

@media (max-width: 1040px) {
    .popup-bandeau {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;

    }

    .popup-bandeau .tag-container {
        display: flex;
        flex-wrap: wrap;
        gap: 5px; 
        width: 100%;
        justify-content: center;
    }

    .popup-bandeau .dev-lang-container {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 850px) {
    .boxe-popup {
        margin: 1vh auto;
        width: 95vw;
        font-size: 0.8rem;
    }

    .content-popup h2 {
        font-size: 1.3rem;
    }

    .detail p {
        font-size: 1rem;
        width: 80%;
    }

    .detail img{
        width: 45%;
    }

    .fermer {
        font-size: 1.2rem;
        height: 44px;
    }
}

@media (max-width: 550px) {

    .detail p {
        font-size: 0.85rem;
        width: 100%;
    }

    .detail img{
        width: 60%;
    }
}




/* ======================================================= Opquast + A11y ======================================================= */

.opquast {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3vw;
    flex-wrap: wrap;
}

.opquast div {
    min-width: 250px;
    width: 30vw;
}

.opquast img {
    width: 25vw;
}

@media (max-width: 950px) {
    .opquast {
        flex-direction: column;
    }

    .opquast div {
        min-width: 250px;
        width: 70vw;
    }

    .opquast img {
        width: 40vw;
    }
}

@media (max-width: 650px) {
    .opquast img {
        min-width: 250px;
        width: 60vw;
    }
}

/* ======================================================= Témoignages ======================================================= */


.temoignages h2 {
    text-align: center;
}

.container-temoignages {
    margin: 10vh 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5vh;
}

.temoignage-div {
    min-width: 270px;
    width: 40vw;
    box-shadow: 0 2px 7px var(--pink);
    padding: 2vw;
    border-radius: 15px;
    transition: ease 0.5s;
}

.temoignage-div:hover {
    transition: ease 0.5s;
    transform: scale(1.03);
}

.container-temoignages h3 {
    font-size: 1.5rem;
}


.bandeau {
    display: flex;
    align-items: center;
    gap: 2vw;
}

.temoignage-div img {
    width: 50px;
    border-radius: 90px;
}


/* ======================================================= Contact ======================================================= */

.contact-section {
    background-color: var(--gostpink);
    padding: 60px 20px;
    color: white;
    text-align: center;
}

.contact-section h2 {
    font-family: 'Audiowide', sans-serif;
    font-size: 2.5rem;
    color: var(--pink);
    margin-bottom: 20px;
}

.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1rem;
    margin: 10px 0;
}

.contact-info a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--pink);
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    font-size: 1.1rem;
    margin: 10px;
    color: var(--blue);
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--pink);
}

.social-links i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* ======================================================= Footer ======================================================= */


footer {
    margin: 20vh 0 5vh 0;
    text-align: center;
    /* font-size: 0.7rem; */
    color: white;
}

footer ul {
    display: flex;
    justify-content: center;
    gap: 5vw;
}

/* ======================================================= A11y ======================================================= */

.skip-link {
    color: var(--pink);
    padding: 0.625em 0.9375em;
    text-decoration: none;
    margin-left: 320px;
    margin-top: 35px;
    font-size: 1.1rem;
}

.skip-link:not(:focus):not(:active) {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(100%);
    clip-path: inset(100%);
    height: 1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.skip-link:focus {
    left: 0;
    position: absolute;
    top: 0;
    z-index: 999;
}

:focus {
    outline: 2px solid var(--pink); 
    outline-offset: 4px; 
    box-shadow: 0 0 5px var(--gostpink), 0 0 10px var(--pink); 
}

button:focus, 
a:focus {
    background-color: var(--gostblue);
    color: var(--pink);
}

:focus:not(:focus-visible) {
    outline: none;
}
