@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

*{
    margin: 0;
    padding: 0;
}

body{
    font-family: "Inter", serif;
}

.slider{
    /*width: 800%;*/
    /*min-height: 80vh;*/
    aspect-ratio: 16/9;
    /*background-color: black;*/
    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: rgb(255, 255, 255);
    font-size: 5rem;
}

h2{
    font-size: 2rem;
    margin-bottom: 100px;
}

p{
    font-size: 1.5rem;
    line-height: 1.5em;
}

.slider-content p{
    color: white;
    font-size: 2rem;
    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(../img/developpeur.jpg);
    background-size: cover;
    background-position-y: 60%;
    color: white;
}

.w40{
    width: 40%;
}

.w60{
    width: 60%;
}

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

.w25{
    width: 25%;
}

.w32{
    width: 32%;
}

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

.gap20{
    gap: 20px
}

.wrap{
    flex-wrap: wrap;
}

.skill{
    background: rgb(255, 255, 255);
    border-radius: 15px;
    padding: 40px;
    box-sizing: border-box;
}

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

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

.realisation{
    height: auto;
    aspect-ratio: 1/1;
    position: relative;
}

.realisation h3{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    /*width: max-content;*/
}

.realisation a{
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
}

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

.realisation:hover img{
    filter: brightness(70%);
}

.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.5rem;
}

.contact{
    border:2px dashed white;
    border-radius: 15px;
    padding: 25px;
    width: 30%;
    box-sizing: border-box;
}

button {
    all: unset; 
}

.value a {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(225deg, #1b2735 0%, #4a5568 50%, #7a8592 100%);
    cursor: pointer;
    transition: background 1s linear, transform 0.3s ease-out;
}

.value a:hover {
    background: linear-gradient(315deg, #1b2735 0%, #4a5568 50%, #a0aec0 100%);
    transform: translateY(-2px);
    box-shadow: 0px 2px 5px rgba(255, 255, 255, 0.2);
}

.aligncenter{
    align-items: center;
}

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

.header-logo{
    display: block;
}

.header-logo img{
    width: 25%;
}

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

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

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

.header-menu li:last-child a{
    background-color: rgb(0, 0, 0);
    color: white;
}

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

.btn-telecharger {
    margin-top: 50px;
    display: inline-block;
    padding: 10px 20px;
    background-color: #000;  /* Couleur de fond */
    color: #fff;              /* Couleur du texte */
    text-decoration: none;     /* Pas de soulignement */
    border-radius: 5px;      /* Coins arrondis */
    transition: background-color 0.3s;
}

.btn-telecharger:hover {
    background-color: #555;   /* Couleur au survol */
}

section {
    scroll-margin-top: 278px; /* Ajuste selon la hauteur de ton menu */
}

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

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

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

    .header-menu-mobile{
        display: block;
        position: absolute;
        left: 5%;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
        font-size: 1.8rem;
        color: rgb(0, 0, 0);
        z-index: 991; 
    }

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

    .active{
        display: flex;
    }

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

    .slider-content{
        width: 90%;
    }

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

    h1{
        font-size: 2rem;
    }

    p{
        font-size: 1rem;
    }

    .wm47{
        width: 47%;
    }

    .toColumn{
        flex-direction: column;
    }

    .mCenter{
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .wm100{
        width: 100% !important;
    }

    .section{
        padding: 50px 0;
    }

    .boxed{
        max-width: 90%;
    }

    .mgap20{
        gap: 20px;
    }

    .contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        padding: 15px; 
        border: 2px dashed white; 
        border-radius: 10px;
    }

    .contact .value a {
        display: inline-block;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        text-align: center;
        padding: 8px 12px;
        background-color: #2c2c2c; 
        color: white;
        border-radius: 5px;
        font-size: 0.9rem; 
    }

    .flex {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}