body{
    margin:0;
    font-family: Helvetica, sans-serif;
    background-color: #3b3b4e;
    color: #fefefe;
}


/* Navigation */

nav{
    position:sticky;
    top:0;
    z-index:1000;
    padding:15px 40px;
    background-color:#3b3b4e;
    display:flex;
    align-items:center;
    box-shadow:0 2px 10px rgba(0,0,0,0.3);
}

.nav-logo {
    display: flex;
    align-items: center; 
    gap: 10px; 
}

.nav-center{
    display:flex;
    justify-content:center;
    flex:1;
    gap:40px;
}

nav a{
    transition: transform 0.2s ease, color 0.2s ease;
    text-decoration:none;
    font-weight:bold;
    color:#858585;
}

nav a:hover{
    transform: scale(1.1);
    color:#ffffff;
}

.lang-switch{
    display:flex;
    justify-content:flex-end;
    width:80px;
}

.lang-switch img{
    transition: transform 0.2s ease;
}

.lang-switch img:hover{
    transform: scale(1.2);
}


main{
    max-width:1500px;
    margin:auto;
    padding:60px 30px;
    text-align:center;
}

h1{
    font-size:45px;
    margin-bottom: 5px;
}

h2{
    font-size:32px;
    margin-bottom:25px;
}
h2::after{
    content:"";
    display:block;
    width:120px;
    height:3px;
    background:#ffb347;
    margin:10px auto 0;
    border-radius:2px;
}

h3{
    font-size:22px;
}

h4{
    font-size:28px;
    font-weight: lighter;
}
h5{
    font-size:18px;
    font-weight: lighter;
}


section{
    margin-bottom:60px;
}

.context-card{
    max-width:850px;
    margin:auto;
    padding:35px;
    background:#4a4a60;
    border-radius:16px;
    box-shadow:0 15px 35px rgba(0,0,0,0.35);
    text-align:left;
}

.context-card p{
    line-height:1.7;
    font-size:19px;
    margin-bottom:18px;
    color:#e6e6e6;
}

.highlight{
    font-weight:bold;
    color:#ffffff;
}

.project-intro{
    font-size:18px;
    text-align:center;
    margin-top:10px;
}

#context{
    margin-bottom:80px;
}

strong{
    color:#ffb347;
}

.feature-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:40px;
  margin-top:40px;
}



.grid-item.image img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:12px;
  box-shadow:0 10px 20px rgba(0,0,0,0.4);
}

.grid-item.text {
  display: flex;
  flex-direction: column;
  /*justify-content: center;  texte centré verticalement */
  background:#4a4a60;
  border-radius:12px;
  padding:15px;
  box-shadow:0 10px 25px rgba(0,0,0,0.3);
}

.grid-item.text p{
  font-size:18px;
  line-height:1.7;
  color:#e6e6e6;
  margin-bottom:12px;
}

.carousel-section{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:20px;
    margin:100px 0;
    font-size:18px;
}

.carousel-track-wrapper{
    overflow:hidden;
    width:min(900px, 90vw);
}

.carousel-track{
    display:flex;
    gap:30px;
    transition: transform 0.6s cubic-bezier(.25,.8,.25,1);
    will-change: transform;
}

.carousel-card{
    width: 280px;
    height: 440px;

    background:#57576b;
    border-radius:18px;

    display:flex;
    flex-direction:column;

    flex-shrink:0;
    overflow:hidden;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-card img{
    width:100%;
    height:160px;
    object-fit:cover;
}

.carousel-card h3{
    padding:15px;
    margin:0;
}

.carousel-card p{
    padding:0 15px 20px 15px;
    color:#ccc;
    font-size:16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
    text-align: justify;
    flex-grow:1;
}

.carousel-arrow{
    background:#2c2c30;
    border:none;
    color:white;
    font-size:28px;
    width:50px;
    height:50px;
    border-radius:50%;
    cursor:pointer;
    transition:.2s;
}

.carousel-arrow:hover{
    background:#444;
}

.team-grid{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:30px;
    margin:auto;
}

.team-row{
    display:flex;
    justify-content:center;
    gap:30px;
    width:100%;
    flex-wrap: wrap;
}

.team-card{
    width:175px;
    flex-shrink:0;
    border:1px solid #eee;
    padding:15px;
    border-radius:12px;
    text-align:center;
    transition:0.25s ease;
    text-decoration: none;
    color: inherit;
}

.team-card:hover{
    transform:translateY(-5px);
}

.team-name{
    font-weight:bold;
    font-size:18px;
}


/* Footer */

footer{
    padding:30px;
    box-shadow:0 2px 10px rgba(0,0,0,0.3);
    text-align:center;
}

.footer-logos{
    display:flex;
    justify-content:center;
    align-items:center;
}

footer img{
    height:60px;
    margin:0 15px;
}

.logo-cat{
    height:100px;
}

/* Smooth scroll */

html{
    scroll-behavior:smooth;
}
main, nav, footer{
    position: relative;
    z-index: 1;
}
/* Décorations */
.page-decor{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    pointer-events:none;
    z-index:0;
}

.decor{
    position:absolute;
    opacity:0.9;
    z-index:-1;
}

/* côté gauche */

.d1{
    left:60px;
    top:300px;
    height:512px;
    width:clamp(100px, 20vw, 350px);
}

.d3{
    left:0px;
    top:2100px;
    height:1024px;
    width:768px;
    width: clamp(100px, 25vw, 768px);
}

/* côté droit */

.d4{
    right:0px;
    top:20px;
    height:1024px;
    width:650px;
}

.d6{
    right:20px;
    top:2300px;
    height:280px;
    width:280px;
    width:clamp(100px, 15vw, 280px);

}

@media (max-width: 1200px){
    .d6{
        display: none;
    }
}

@media (max-width: 900px){

    nav{
        flex-direction: column;
        gap:15px;
        padding:15px 20px;
    }

    .nav-center{
        flex-wrap: wrap;
        gap:20px;
    }

    .lang-switch{
        justify-content:center;
        width:auto;
    }

    main{
        padding:50px 20px;
    }

    .feature-grid{
        grid-template-columns:1fr;
        gap:30px;
    }

    .carousel-track-wrapper{
        width:95vw;
    }

    .team-row{
        flex-wrap:wrap;
    }
    .decor{
        display: none;
    }
}


@media (max-width: 700px){

    h1{
        font-size:24px;
    }

    h2{
        font-size:26px;
    }

    h3{
        font-size:20px;
    }

    .context-card{
        padding:25px;
    }

    .carousel-card{
        width:220px;
        height:auto;
    }

    .carousel-card img{
        height:140px;
    }
}


@media (max-width: 500px){

    nav{
        padding:12px 15px;
    }

    .nav-center{
        gap:15px;
    }

    main{
        padding:40px 15px;
    }

    .context-card p{
        font-size:15px;
    }

    .carousel-section{
        gap:10px;
    }

    .carousel-arrow{
        width:40px;
        height:40px;
        font-size:22px;
    }

    footer img{
        height:45px;
        margin:0 10px;
    }

}

