@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body{
    font-family: "Poppins", sans-serif;
}

.slider{
    width: 100%;
    height: 80vh;
    aspect-ratio: 16/9;
    background-image: linear-gradient(#000066, #000);
    position: relative;
}

.slider-background{
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
}

.slider-content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

h1{
    color: #FFF;
    font-size: 5rem;
}

.titre{
    font-size: 3rem;
    margin-bottom: 100px;
}

p{
    font-size: 1.3rem;
    line-height: 2rem;
}

.slider-content p{
    color: #FFF;
    font-size: 1.3rem;
    font-weight: 300;
}

.section{
    padding: 100px 0;
}

.boxed{
    max-width: 1280px;
    margin-inline: auto;
}

.flex{
    display: flex;
}

.dark{
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url(https://loicedric.fr/assets/img/slider2.jpg);
    background-size: cover;
    background-position: 50%;
    color: #FFF;
}

.w40{
    width: 40%;
}

.w40 img{
    width: clamp(250px, 35vw, 380px);
    height: clamp(250px, 35vw, 380px);
    clip-path: circle(49.7% at center center);
}

.w60{
    width: 60%;
}

.text-center{
    text-align: center;
}

.w20{
    width: 20%;
}

.w32{
    width: 32%;
}

.w100{
    width: 100%;
}

.space-between{
    justify-content: space-between;
}

.gap20{
    padding: 20px;
    gap: 20px;
}

.wrap{
    flex-wrap: wrap;
}

.skill{
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    padding: border-box;
}

.skill img{
    width: 100px;
    height: 100px;
    aspect-ratio: 1/1;
    object-fit: contain;
}

.skill h3{
    color: #000;
    margin-top: 10px;
}

.xp{
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    padding: border-box;
    color: #000;
}

.xp h3{
    color: #000;
    margin-top: 10px;
}

.projet{
    height: auto;
    aspect-ratio: 1/1;
    position: relative;
    cursor: pointer;
}

.projet h3{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    width: fit-content;
    opacity: 0;
    transition: .4s ease;
    color: #fff;
    text-decoration: none;
}

.projet img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(40%);
    transition: .4s ease;
}

.projet:hover img{
    filter: brightness(60%);
}

.projet:hover h3{
    opacity: 1;
}

.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    text-align: center;
    position: relative;
}

.popup-titre {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.popup-images {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.popup-images img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.popup-content p {
    margin: 30px 0;
    font-size: 1.2rem;
    line-height: 1.6;
}

.github-link {
    position: absolute;
    bottom: 20px;
    left: 20px;
    text-decoration: none;
    color: #000;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.github-link:hover {
    color: #555;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #333;
    text-decoration: none;
}


.icon{
    display: block;
    font-size: 40px !important;
}

.label{
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    margin: 10px 0;
    font-size: 1.5rem;
}

.value{
    display: block;
    font-size: 1.2rem;
}

.contact{
    border: 2px dashed #000;
    border-radius: 15px;
    padding: 15px;
    box-sizing: border-box;
}

.contact a{
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #000;
}


.contact-form {
    margin-top: 40px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group {
    width: 50%;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button[type="submit"] {
    padding: 10px 20px;
    font-size: 1.2rem;
    color: #fff;
    background-color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #333;
}

.box-timeline {
    width: 100%;
    height: 1270px;;
    position: relative;
    padding: 80px 0 250px 0;
    margin-bottom: 100px;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.ligne {
    height: 1306px;
    width: 8px;
    margin: 0 auto;
    background: #1f2022;
}

.rond {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #1f2022;
    position: absolute;
    border: 1px solid #000;
    left: 50%;
    transform: translate(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
}

.rond img{
    width: 50px;
}

.r1{top: 80px;}
.r2{top: 386px;}
.r3{top: 692px;}
.r4{top: 1000px;}
.r5{top: 1306px;}
.r6{top: 1612px;}

.box {
    color: #333;
    width: 400px;
    min-height: 200px;
    padding: 20px;
    border-radius: 3px;
    height: auto;
    background: #f1f1f1;
    box-shadow: 0 10px 15px rgba(0,0,0,0.5);
    position: absolute;
    left: 50%;
    transform: translate(-50%);
  box-sizing: border-box;
}

.b1 {
    top: 80px;
    left: calc(50% - 270px);
}
.b2 {
    top: 386px;
    left: calc(50% + 270px);
}
.b3 {
    top: 692px;
    left: calc(50% - 270px);
}
.b4 {
    top: 1000px;
    left: calc(50% + 270px);
}
.b5 {
    top: 1306px;
    left: calc(50% - 270px);
}
.b6 {
    top: 1612px;
    left: calc(50% + 270px);
}

.box p {
    line-height: 20px;
    font-size: 18px;
    margin: 10px 0 20px 0;
}
.btn {
    display: block;
    background: #1f2022;
    padding: 10px;
    width: 120px;
    text-align: center;
    color: #f1f1f1;
    text-decoration: none;
    border-radius: 3px;
    margin-top: 10px;
}

@media(max-width: 810px) {

    .ligne {
        display: none;
    }
    .rond {
        display: none;
    }
    .box {
        left: calc(50%);
        width: 100%;
    }
    .box-timeline{
        height: 950px;
    }

}

.aligncenter{
    align-items: center;
}

header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 999;
    padding-block: 10px;
    box-shadow: 1px 1px 25px rgba(0, 0, 0, 0.7);
}

.header-logo{
    display: block;
}

.header-logo img{
    width: 60px;
}

.header-menu{
    display: flex;
    align-items: center;
    list-style: none;
}

.header-menu li a{
    text-decoration: none;
    color: #000;
    padding: 10px;
    display: block;
    box-sizing: border-box;
    transition: .2s ease;
}

.header-menu li a:hover{
    background-color: #f2f2f2;
}

.header-menu li:last-child a{
    background-color: #1f2022;
    color: #fff;
}

.header-menu-mobile{
    display: none;
}

@media(max-width: 810px){
    header{
        height: 60px !important;
    }

    .header-menu-mobile{
        display: block;
        border: 0px;
        background-color: #fff;
        position: absolute;
        left: 5%;
        top: 50%;
        transform: translateY(-50%);
        z-index: 991;
    }

    .header-logo{
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 991;
    }

    .header-menu{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        display: none;
    }

    .active{
        display: flex;
    }

    .header-menu li:last-child a{
        margin-top: 10px;
    }

    .titre{
        font-size: 1.75rem;
        margin-bottom: 30px;
    }

    .slider{
        height: 70vh;
    }

    .slider-content{
        width: 90%;
    }

    .slider-content p{
        margin-top: 20px;
        font-size: 1.5rem;
        text-wrap: balance;
    }

    h1{
        font-size: 2.5rem;
    }

    p{
        font-size: 1rem;
        text-wrap: balance;
    }

    .toColumn{
        flex-direction: column;
    }

    .mCenter{
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .wm85{
        width: 85% !important;
    }

    .section{
        padding: 50px 0;
    }

    .boxed{
        max-width: 90%;
    }

    .wm100{
        width: 100%;
    }

    .wm46{
        width: 46%;
    }

    .mgap20{
        gap: 20px;
    }
}

#footer {
    background: #1f2022;
    padding: 30px 0;
    color: #fff;
    font-size: 14px;
}

#footer .copyright {
    text-align: center;
}

.confirmation-background {
    background-color: white;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}
.confirmation-container {
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}
.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.check-container {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #e3f8e5;
    display: flex;
    justify-content: center;
    align-items: center;
}
.check-circle {
    position: absolute;
    width: 80%;
    height: 80%;
    clip-path: circle(50% at 50% 50%);
    background-color: #e3f8e5;
    z-index: -1;
}
#result-container {
    text-align: center;
    margin-top: 20px;
}
#result-message {
    font-size: 26px;
    font-weight: bold;
}
.check-icon {
    font-size: 48px;
    color: #22c933;
}

.button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}
.button:hover {
    background-color: #333;
}
