body {
    font-family: "Montserrat", "Roboto", sans-serif;
    background: linear-gradient(to right,
            #CDD9BA 0%,
            #CDD9BA 40%,
            #F2F2F0 40%,
            #F2F2F0 100%);
    color: #434b56;
    
}
@media screen and (max-width:1024px){
    body {
        font-family: "Montserrat", "Roboto", sans-serif;
        background: 
        #F2F2F0;
        width: 100%;
        margin: 0;
    }
}
    

/* Header */
header {
    position: fixed;
    top:0;
    width: 100%;
    background-color: #F2F2F0;
    z-index: 5;
    height: 100px;

}

header .content {
    display: flex;
    align-items: center;
    padding: 1.9rem;
}

header .logo {
    flex: 1;
}

.logo img {
    width: 170px;
    margin-top: -10px;
}


header nav ul {
    display: flex;
}

nav li {
    padding-left: 3.5rem;
    font-weight: 300;
}

nav li:hover {
    opacity: 0.5;
    transition: all 0.4s ease;
}

nav a {
    vertical-align: bottom;
    line-height: 1.6;
    font-size: 1rem;
    color: #4a4a4a;
}
header .mobile {
    display: none;
}
.content .menu-button{
    width: 30px;
    display: none;
}

@media screen and (max-width: 940px){ /* Iphone screen size */
  .desktop {
    position: fixed;        /* fixe sur tout l’écran */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;           /* couvre tout l’écran, même sur mobile */
    background-color: rgba(191, 183, 183, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: -100%;
    transition: all 0.5s ease;
    z-index: 999;           /* au-dessus de tout */
}
    .desktop.mobile-menu{
        margin-left: 0;
    }
    header .content .desktop ul{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
        width: 100%;
        list-style: none;
    }
    header .content .desktop ul li{
        width: 100%;
        text-align: center;
        margin: 15px 0; /* espace régulier entre les liens */
    }
    header .content .desktop ul li a{
        font-size: 1.5rem;
        display: block;
        width: 100%;
        text-align: center;
        color: #4a4a4a;
        text-decoration: none;
    }
    header .content{
        padding: 0;
    }
    header .content .logo h1{
        font-size: 1.2rem;
        padding-top: 1.9rem;
        padding-left: 1.9rem;
    }
    header .content .logo p{
        font-size: 0.7rem;
        padding-left: 1.9rem;
    }
    .content .menu-button{
        top: 0;
        right: 0;
        position: absolute;
        display: flex;
        padding: 1.9rem;
    }
}

@media screen and (min-width: 940px) and (max-width:1040px){ /* Ipad Pro responsive*/
    .desktop{
        position: absolute;
        background-color: rgba(191, 183, 183, 0.369);
        backdrop-filter: blur(15px);
        width: 100%;
        min-height: 100vh;
        display: flex;
        top:0;
        left: 0;
        justify-content: center;
        align-items: center;
        margin-left: -100%;
        transition: all 0.5s ease;
    }
    .desktop.mobile-menu{
        margin-left: 0;
        
    }
    header .content .desktop ul{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    header .content .desktop ul li{
        margin: 25px 0;
    }
    header .content .desktop ul li a{
        font-size: 2rem;
    }
    header .content{
        padding: 0;
    }
    header .content .logo h1{
        font-size: 1.2rem;
        padding-top: 1.9rem;
        padding-left: 1.9rem;
    }
    header .content .logo p{
        font-size: 0.7rem;
        padding-left: 1.9rem;
    }
    .content .menu-button{
        top: 0;
        right: 0;
        position: absolute;
        display: flex;
        padding: 1.9rem;
    }

}

.exp { 
    margin-top: 20%;
    margin-bottom: 20%;
}
.exp h1{
    text-align: left;
    margin-left: 10%;
    margin-bottom: 2%;
    font-size: 2rem;
}
.exp p{
    text-align: left;
    margin-left: 10%;
}
.exp ul{
    text-align: left;
    margin-left: 10%;
}
.exp li{
    margin-top: 20px;
    list-style: none;
}

@media screen and (max-width: 940px){ /* Iphone screen size */
    .exp { 
    margin-top: 40%;
}
    }
#third-section {
    margin-top: 5%;
    width: 100%;
    display: flex; /* inline-flex pas nécessaire ici */
    flex-direction: row;
    justify-content: center; /* centre horizontalement les box */
    align-items: center; /* centre verticalement si les hauteurs varient */
    gap: 30px; /* espace entre les deux box */
}

.content-box {
    padding: 0 3rem 2rem 3rem;
    border: solid 1px #F28080;
    background-color: #F28080;
    width: 400px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center; /* centre aussi le texte */
    border-radius: 10px; /* optionnel : rend plus doux */
}

.content-box h1 {
    font-size: 2rem;
    display: flex;
    justify-content: center;
}

.content-box li {
    margin-top: 15px;
    list-style: none;
}

.appli {
    text-align: right;
    margin-top: 100px;
    margin-bottom: 10%;
    margin-right: 15%;
}
.appli h1{
    font-size: 1.8rem;
    width: 100%;
    margin-top: 10px;
}

.appli li {
    margin-top: 20px;
    list-style: none;
}

.appli p {
    margin-top: 10px;
}
.appli img{
 width: 80px;
 height: auto;
 margin-left: 10px;
}
.title-appli{
    display: flex;
    justify-content: center;
}
.link-title{
    text-decoration: underline;
}
.link-title:hover{
    text-decoration: none;
}
@media only screen and (max-width: 940px){
    #third-section{
    display: flex;
    flex-direction: column; /* aligne les cadres l’un sous l’autre */
    justify-content: center; /* centre verticalement */
    align-items: center; /* centre horizontalement */
    gap: 10px; /* espace entre les deux cadres */
    margin-top: 100px;
    width: 100%;
}

.content-box { 
    margin: 10px auto;
    height: 250px;
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center; /* centre aussi le texte dans chaque cadre */
    flex-direction: column;
    text-align: center;
}
.appli{
    text-align: left;
    margin-top: 100px;
    margin-left: 10%;
}
.appli h1{
    font-size: 1.3rem;
    width: 100%;
    margin-top: 15px;
}
.title-appli{
    margin-bottom: 10%;
}

}
@media only screen and (min-width: 940px) and (max-width: 1040px){
    #third-section{
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .content-box{ 
        margin: 6px auto;
    }
}


@media only screen and (max-width: 940px){
    #contact-section{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin: 0 auto;
    }
    #contact-section h1{
        margin-bottom: 40px;
    }
}
@media only screen and (min-width: 940px) and (max-width: 1040px){
    #contact-section{
        height:50vh;
    }
    footer p{
        position: relative;
        display: flex;
        bottom: 0;
    }
}
html {
    scroll-behavior: smooth;
}
:target::before {
    content: "";
    display: block;
    height: 100px; /* Hauteur de ton header */
    margin-top: -100px;
}
:target {
    scroll-margin-top: 100px; /* adapte à la hauteur de ton header */
}