@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');

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
.preloader {
    background-color: #b1b6ff;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Le carré animé */
  .loader {
    width: 40px;
    height: 40px;
    background-color: #4e0de4;
    animation: rotate 1s linear infinite;
    border-radius: 5px;
  }

  @keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  /* Une fois chargé, on cache le preloader */
  body.loaded .preloader {
    display: none;
  }
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #b1b6ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
header .logo {
    height: 80px; /* Ajustez la hauteur selon vos besoins */
    width: auto; /* Maintient les proportions */
    margin-right: 250px; /* Espace entre le logo et les autres éléments */
}


.navigation a{
    color: #4a56fa;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding-left: 30px;
}
.navigation a:hover {
    color: hsl(118, 76%, 52%);
}
section {
    padding: 100px 20px;
}
.main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url(image/liberweb.png) no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.main h1 {
    color: #e1e1eb;
    font-size: 1.4em;
    font-weight: 500;
} 
.main h1 span {
    display: inline-block;
    margin: 10px;
    color: #a6a6dd;  
    font-size: 3em;
    font-weight: 600;   
}
.main h2{
    color: #f5f5f8;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 10px;
    margin-bottom: 30px;
}
.btn {
    background-color: #4a56fa;
    color: #fff;
    padding: 10px 20px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.7s ease;
    display: inline-block;
    letter-spacing: 1px;
    margin-top: 20px;
    margin-bottom: 40px;
    
}
.btn:hover {
    background-color: #11d84d;
    transform: scale(1.1);
}

.social-media a {
    color: #f1f1f3;
    font-size: 24px;
    padding-right:30px;
    transition: color 0.3s ease;
}
.title {
    display: flex;
    justify-content: center;
    color: #4a56fa;
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 30px;
}
.content {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
}
.card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(1, 1, 1, 0.15);
    padding: 20px;
    margin: 20px;
    width: 21.25em;
    text-align: center;
    transition: transform 0.7s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(1, 1, 1, 0.2);
}
.icon {
    color: #4a56fa;
    font-size: 8em;
    text-align: center;
    width: 100%;
    height: 200px;
    border-radius: 15px;
    margin-bottom: 20px;
}
.info {
    text-align: center;
}
.info h3{
    color: #4a56fa;
    font-size: 1.5em;
    font-weight: 700;
    margin: 10px;
}
.PROJECTS {
    background-color: #000000;
}
.PROJECTS .content {
    margin-top:30px;
}
.project-card {
    background-color: #f8f5f5;
    border: 1px solid #e1e1eb;
    min-height: 14em;
    width: 23em;
    overflow: hidden;
    border-radius:10px;
    margin: 20px;
    transition: 0.7s ease;
    color: #ee129a;
}
.project-card:hover {
    transform: scale(1.1);
}
.project-card:hover .project-image{
    opacity: 0.9;
}
.project-image img{
    width: 100%;
}
.project-info {
    padding: 1em;
}
.project-category {
    font-size: 0.8em;
    color: #01020c;
}
.project-title {
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    font-weight: 800;
    margin-top: 10px;
}
.more-detail {
    text-decoration: none;
    color: #4a56fa;
}
.more-detail:hover {
    color: #11d84d;
}
.contact .icon{
    font-size: 4.5em;
}
.contact .info h3{
    color: #000000;
}
.contact .info p{
    color: #000000;
    font-size: 1.5em;
 
}
.footer {
    background-color: #000000;
    color: #fff;
    padding: 2em;
    display: flex;
    justify-content: space-between;
}

/* Responsive pour header, navigation, sections, cartes et footer */

@media (max-width: 1200px) {
    section {
        padding: 80px 20px;
    }
    header {
        padding: 10px 40px;
    }
}

@media (max-width: 900px) {
    .main {
        flex-direction: column;
        padding: 0 10px;
        min-height: 60vh;
    }
    .content {
        flex-direction: column;
        align-items: center;
    }
    .card, .project-card {
        width: 90vw;
        min-width: 220px;
        max-width: 500px;
    }
    header {
        flex-direction: column;
        height: auto;
        padding: 10px 10px;
    }
    header .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .navigation {
        padding: 10px 0;
    }
}

/* --- Amélioration responsive mobile --- */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 8px 2vw;
    }
    header .logo {
        margin-right: 0;
        margin-bottom: 8px;
        height: 50px;
    }
    .navigation {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
    .navigation a {
        display: block;
        padding: 8px 0;
        font-size: 1em;
    }
    .main {
        flex-direction: column;
        align-items: center;
        padding: 0 2vw;
        min-height: 60vh;
        background-position: center top;
    }
    .main h1 {
        font-size: 1.1em;
        text-align: center;
    }
    .main h1 span {
        font-size: 1.3em;
    }
    .main h2 {
        font-size: 1em;
        text-align: center;
    }
    .btn {
        font-size: 1em;
        padding: 8px 12px;
        width: 100%;
        box-sizing: border-box;
    }
    .title {
        font-size: 1.1em;
        text-align: center;
    }
    .content {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
    .card, .project-card {
        width: 96vw;
        min-width: 140px;
        max-width: 99vw;
        margin: 10px 0;
        padding: 10px 2vw;
    }
    .icon {
        font-size: 4em;
        height: 100px;
    }
    section {
        padding: 40px 2vw;
    }
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1em 2vw;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .social-media a {
        font-size: 1.5em;
        padding-right: 10px;
    }
}

body {
    overflow-x: hidden;
}
