.hero {
    height: 90vh;
    background-image: url('../img/panier.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    font-family: 'Oskon', sans-serif;
    text-align: center;
}

h1 {
    font-size: 4.5rem;
    font-style: italic;
    position: relative;
    bottom: 150px;
}

.hero p {
    font-size: 1.5rem;
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%);
}

@keyframes popInOut {

    0%,
    50% {
        opacity: 1;
        transform: scale(1) rotate(var(--rot));
    }

    50.01%,
    100% {
        opacity: 0;
        transform: scale(0) rotate(var(--rot));
    }
}

.items-panier {
    position: relative;
    width: 100%;
    height: 100%;
}

.items-panier img {
    opacity: 0;
    position: absolute;
    animation: popInOut 10s step-end infinite;
    animation-delay: calc((var(--position) - 1) * 0.5s);
}

.items-panier img:nth-child(1) {
    top: 50%;
    left: 20%;
    width: 80px;
    --rot: -15deg;
}

.items-panier img:nth-child(2) {
    top: 38%;
    left: 35%;
    width: 200px;
}

.items-panier img:nth-child(3) {
    top: 30%;
    left: 55%;
    width: 110px;
    --rot: 25deg;
}

.items-panier img:nth-child(4) {
    top: 40%;
    left: 10%;
    --rot: 45deg;
    width: 100px;
}

.items-panier img:nth-child(5) {
    top: 50%;
    left: 40%;
    width: 90px;
    --rot: 30deg;
}

.items-panier img:nth-child(6) {
    top: 45%;
    left: 20%;
    width: 60px;
    --rot: 70deg;
}

.items-panier img:nth-child(7) {
    top: 37%;
    left: 35%;
    width: 70px;
}

.items-panier img:nth-child(8) {
    top: 37%;
    left: 25%;
    width: 80px;
    --rot: 45deg;
}

.space {
    width: 90%;
    margin: 150px auto;
    min-height: 50vh;
    text-align: center;
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-family: var(--titre);
}

.space:last-of-type{
    margin: 0;
    min-height: 10vh;
}

.moi {
    font-size: 1.5rem;
    line-height: 1.7;
    align-self: start;
    min-height: 90vh;
    padding: 20px;
}

.moi a {
    text-decoration: none;
    color: var(--accent);
    border: 2px solid;
    border-radius: 20px;
    padding: 0px 10px;
    transition: all 0.2s ease;

    display: block;
    width: fit-content;
    margin: 30px auto;
}

.moi a:hover,
.realisation>a:hover {
    background-color: var(--accent);
    color: #fff;
}

.moi h2{
    text-align: center;
}

.imgs {
    position: relative;
    width: fit-content;
    margin: auto;
}

.competences {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background-color: var(--accent);
}

.competences h2 {
    font-size: 2rem;
    color: var(--bg);
}

.moi * {
    margin-bottom: 20px;
}

#img-perso {
    width: 300px;
    margin: 35px auto;
    display: block;
}

.cards-container {
    position: relative;
    padding-top: 50px;
    width: 100%;
    height: 80vh;
}

.comp {
    position: absolute;

    width: 100%;
    max-width: 330px;
    margin: 0 auto 50px auto;
    border-radius: 10px;
    padding: 20px;
    font-size: 1.3rem;
    background-color: var(--bg);
    border: 3px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

    min-height: 420px;
}

.comp:nth-of-type(even) {
    transform: rotate(-0.02turn);
}

.comp h3 {
    font-size: 1.9rem;
    text-align: center;
    text-transform: uppercase;
}

.comp ul {
    list-style: url('../img/star15.png');
}

.comp li {
    margin: 15px 25px;
    border-bottom: 1px solid;
    text-transform: uppercase;
    font-weight: bold;
}

.comp:first-of-type p {
    font-size: 1rem;
    margin-top: 10px;
}

.comp:last-of-type p {
    font-size: 1.2rem;
    margin-top: 15px;
}

.realisation {
    margin-top: 200px;
}

.text-projet h2 {
    font-size: 2rem;
}

.text-projet {
    padding: 20px;
    text-align: center;
}

.realisation>a {
    text-decoration: none;
    display: block;
    color: var(--accent);
    border: 2px solid;
    border-radius: 30px;
    padding: 5px 10px;
    margin: 20px 25px 20px auto;
    width: fit-content;
}

.text-projet {
    height: 20vh;
    padding-bottom: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.projets {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 50px;
    margin: auto;
    width: fit-content;
}

.capsule {
    display: flex;
    align-items: center;
    justify-content: center;
}

.capsule a {
    color: #000;
    text-decoration: none;
}

.capsule video {
    max-width: 300px;
    width: 100%;
    border-radius: 10px;
}

.contact-section {
    padding: 80px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-section .container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1;
}

.contact-intro {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px;
    color: #333;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--accent);
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.contact-card h3 {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--bg);
}

.contact-grid a:hover {
    text-decoration: underline;
}

.contact-card a {
    display: inline-block;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    word-break: break-all;
}


.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-card a {
    background: #000;
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    margin-top: 10px;
}

.contact-card.cta a{
    cursor: url('../img/cursor/contact.png'), pointer;
}

@media (min-width: 540px) {
    .items-panier img:nth-child(1) {
        width: 90px;
    }

    .items-panier img:nth-child(2) {
        width: 250px;
    }

    .items-panier img:nth-child(3) {
        width: 130px;
    }

    .items-panier img:nth-child(5) {
        width: 110px;
    }

    .items-panier img:nth-child(6) {
        width: 70px;
    }

    .items-panier img:nth-child(7) {
        top: 37%;
        left: 35%;
        width: 100px;
    }
}

@media (min-width:768px) {
    h1 {
        font-size: 8rem;
    }

    .hero p {
        font-size: 2rem;
        top: 10%;
    }

    .items-panier img:nth-child(1) {
        width: 120px;
    }

    .items-panier img:nth-child(2) {
        top: 28%;
        width: 400px;
    }

    .items-panier img:nth-child(3),
    .items-panier img:nth-child(4) {
        width: 200px;
    }

    .items-panier img:nth-child(5) {
        width: 180px;
    }

    .items-panier img:nth-child(6) {
        width: 100px;
    }

    .items-panier img:nth-child(7),
    .items-panier img:nth-child(8) {
        width: 150px;
    }

    .comp {
        height: 600px;
        max-width: 390px;
        font-size: 2rem;
    }

    .comp:last-of-type p {
        margin-top: 70px;
        font-size: 1.5rem;
    }

    .comp ul {
        margin-top: 70px;
    }

    .text-projet h2{
        font-size: 3rem;
        margin-bottom: 50px;
    }
    .text-projet {
        font-size: 1.2rem;
        line-height: 1.5;
        text-align: start;
        margin-bottom: 50px;
    }

    .projets {
        padding: 10px;
    }

    .capsule video {
        max-width: 700px;
        width: 100%;
    }

    .contact-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "email social"
            "cv cv";
    }

    .contact-card:nth-child(1) {
        grid-area: email;
    }

    .contact-card:nth-child(2) {
        grid-area: social;
    }

    .contact-card:nth-child(3) {
        grid-area: cv;
    }

    .contact-card:hover {
        transform: translateY(-5px);
    }
}

@media (min-width:1024px) {
    h1 {
        font-size: 11rem;
    }

    .items-panier img:nth-child(1) {
        width: 150px;
    }

    .items-panier img:nth-child(2) {
        width: 500px;
    }

    .items-panier img:nth-child(3) {
        width: 250px;
    }

    .items-panier img:nth-child(5) {
        width: 220px;
    }

    .items-panier img:nth-child(6) {
        width: 130px;
    }

    .items-panier img:nth-child(7) {
        width: 180px;
    }

    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas: "email social cv";
    }
}

@media (min-width:1024px) and (min-height:600px) {
    .hero {
        background-size: 60%;
    }

    .items-panier img:nth-child(1) {
        top: 45%;
        left: 30%;
        width: 120px;
    }

    .items-panier img:nth-child(2) {
        top: 28%;
        left: 45%;
        width: 270px;
    }

    .items-panier img:nth-child(3) {
        top: 20%;
        left: 55%;
        width: 180px;
    }

    .items-panier img:nth-child(4) {
        top: 40%;
        left: 30%;
        width: 120px;
    }

    .items-panier img:nth-child(5) {
        top: 50%;
        left: 50%;
        width: 130px;
    }

    .items-panier img:nth-child(6) {
        top: 45%;
        left: 40%;
        width: 100px;
    }

    .items-panier img:nth-child(7) {
        top: 30%;
        left: 40%;
        width: 100px;
    }

    .items-panier img:nth-child(8) {
        left: 35%;
        width: 100px;
    }

    .comp {
        height: 400px;
        max-width: 300px;
        font-size: 1.3rem;
    }

    .comp ul {
        margin-top: 10px;
    }

    .comp:last-of-type p {
        margin-top: 30px;
        font-size: 1.1rem;
    }

    
}

@media (min-width:1200px) {
    .hero {
        background-size: 70%;
    }

    .items-panier img:nth-child(1) {
        width: 180px;
        left: 30%;
    }

    .items-panier img:nth-child(2) {
        width: 400px;
        top: 25%;
    }

    .items-panier img:nth-child(3) {
        width: 220px;
    }

    .items-panier img:nth-child(4) {
        left: 25%;
    }

    .items-panier img:nth-child(5) {
        width: 200px;
    }

    .items-panier img:nth-child(6) {
        width: 150px;
    }

    .items-panier img:nth-child(7) {
        width: 220px;
        top: 15%;
    }

    .capsule video {
        max-width: 1000px;
        width: 100%;
    }

    .about {
        display: flex;
    }

    .about>div {
        flex: 1;
    }

    .comp {
        height: 490px;
        max-width: 390px;
        font-size: 1.5rem;
    }

    .comp:last-of-type p {
        margin-top: 70px;
        font-size: 1.3rem;
    }

    .moi {
        font-size: 1.2rem;
    }

    #img-perso {
        width: 200px;
        margin: 35px auto;
        display: block;
    }

    .space{
        font-size: 3rem;
    }

}

@media (min-width: 1600px) {
    .items-panier img:nth-child(1) {
        left: 30%;
        width: 210px;
    }

    .items-panier img:nth-child(2) {
        width: 600px;
        left: 45%;
    }

    .items-panier img:nth-child(3) {
        width: 300px;
    }

    .items-panier img:nth-child(4) {
        left: 30%;
        width: 200px;
    }

    .items-panier img:nth-child(5),.items-panier img:nth-child(8) {
        width: 250px;
    }

    .items-panier img:nth-child(6) {
        left: 25%;
    }

    .capsule video {
        max-width: 1200px;
        width: 100%;
    }

    .moi{
        font-size: 1.5rem;
    }
}