*{
    box-sizing: border-box;
}
:root{
    --color1:#D89584;
    --color2:#F4F4F4;
}

body{
    margin:0;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}
/* Commun*/

    section{
        overflow:auto;
        padding-left: 40px;
        padding-right: 40px;
        padding-bottom: 30px;
        padding-top:120px;
    }
    .texte-align-center{
        text-align: center;
    }
    .float-right{
        float: right;
    }
    .texte-avec-ligne-verticale{
        border-left: 3px solid var(--color1);
        padding-left: 8px;
        height: 50px;
        display: inline-block;
    }
    .texte-avec-ligne-verticale p{
        margin-top: 0;
    }
    .barre-verticale{
        height: 50px;
        width: 4px;
        background-color: var(--color1);
        margin-right: 8px;
    }
    h2{
        font-size: 34px;
        margin-top: 0px;
    }
    .separateur{
        background-color: #979797;
        height:1px;
        width: 150px;
        position:relative;
        left:50%;
        margin-left:-75px ;
    }
    .grid-container{
        display: grid;

    }
    .grid-item{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    img.col-contenue{
        width: 100%;
    }

    .display-mobile{
        display: none;
    }

/*cover*/
    header{
        background: url(images/index/cover_overlay.png) no-repeat center/100% 100%, url(images/index/cover.jpeg) no-repeat center/cover;
        height: 290px;
    }

    /* Menu */
        nav{
            position: fixed;
            top: 12px; 
            left: 32px; 
            z-index: 10;
            
        }
        nav button,
        .menu-content,
        .menu-content a,
        nav button.scrolled,
        nav button.active  {
            transition: all 0.3s ease;
        }
        #menu_button{
            width: 100vw;
            height: 60px;
            position: fixed;
            left: 0;
            top: 0;
            padding: 15px 32px;
            background-color: #00000000;
            border: none;
            font-size: 20px;
            text-align: left;
            color: var(--color1);
            display: inline-block;

        }
        #menu_button.scrolled {
            background-color: #00000070;
        }
        #menu_button.active {
            background-color: #00000090;
        }

        #menu_button:hover{
            border: none;
            color: white;
        }
        nav i{
            margin-left: 10px;
        }
        .menu-content {
            display: none;
            position: fixed;
            min-width: 160px;
            width: 100%;
            left: 0;
            top: 60px;
            padding-top: 0;
            background-color: #00000070 ;
        }

        .menu-content button{
            color: var(--color1);
            text-decoration: none;
            display: block;
            text-align: left;
            padding: 13px 32px;
            width: 100%;
            border: none;
            background-color: #00000000;
            font-size: 17px;
        }
        .menu-content.active {
            display: block;
        }
        .menu-content button:hover {
            color: white;
        }

    /* Selecteur de langue */

        .language-selector {
            position: fixed;
            top: 12px; 
            right: 32px; 
            display: flex;
            gap: 10px;
            align-items: center;
            justify-content: center;
            margin: 0px;
            z-index: 11;
        }

        .flag {
            width: 60px;
            height: 35px;
            cursor: pointer;
            border: 2px solid transparent;
            transition: border 0.3s ease;
        }

        .flag.active {
            border-color: #007bff; /* Bleu pour indiquer la sélection */
            border-radius: 5px;
        }


    img.image_profile{
        height: 120px;
        position: relative;
        left: 50%;
        margin-left: -60px;
        margin-top: 30px;   
    }
    h1{
        color: white;
        font-size: 42px;
        margin-top: 10px;
        margin-bottom: 0;
    }

    #description{
        color: lightgray;
        margin-bottom: 0;
        margin-top: 0px;
        font-size: 17px;
    }



.grey_part1{
    background-color: var(--color2);
    padding-top:0;
}
.grey_part1 p{
    font-size: 22px;
    color: #656565;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;

}

.grey_part2, .grey_part3{
    background: url(images/triangle1white.svg)no-repeat center top/100%;
    background-color: var(--color2);
    
}

.white_part1, .white_part2{
    background: url(images/triangle1gray.svg)no-repeat center top -1px/100%;
    background-color: white;
}

/*About*/

    .about-container{
        grid-template-columns: .5fr 1fr;
        gap: 40px;

        justify-items: center;
    }
    #about p {
        margin: 0;
    }
    #about p + p {
        margin-top: 1em;
    }
    section#about p, section#about a{
        font-size: 18px;
    }


/* Knowledge */
    .knowledge-container{
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 40px 20px;
}
/* Portfolio */
    .grid-container_portfolio{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        justify-items: center;
    }

    .grid-item-portfolio{
        min-height: 100px;
        width: 70%;
    }

    .grid-item-portfolio img {
        width: 27em;
        height: 21em;
    }

    .grid-container_portfolio > *:nth-child(odd):last-child {
        grid-column: span 2;
        justify-self: center;
        width: 35%;
    }
    .grid-item-portfolio:hover img{
        transition: transform 0.3s ease, filter 0.3s ease;
        transform: scale(1.09);
        filter: brightness(0.3);
    
        
    }
    .grid-item-portfolio a{
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
    }
    .grid-item-portfolio figcaption{
        margin-top: 15px;
        text-align: center;
    }
    .description_project_hover{
        position: absolute;
        color: var(--color2);
        font-size: 22px;
        margin: 0;
        margin-top: -40px;
        padding-left: 50px;
        padding-right: 50px;
        align-items: center;
        justify-items: center;
        z-index: 9;
        display: none;
        transition: display 0.3s ease;
    }
    .grid-item-portfolio:hover .description_project_hover{

        display: block;
    }


/* Main Services Section 
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .service {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .service:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }
  
  .service h2 {
    color: #0078d4;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .service p {
    font-size: 1rem;
    margin: 0;
  }
  */


/* Frame */
    footer{
        text-align: left;
        margin: 10px 50px 30px 50px;
        padding: 40px 50px;
        box-shadow: 0 0 8px 8px rgba(0, 0, 0, 0.1);

    }

    footer img{
        height: 110px;
    }

    footer .texte-avec-ligne-verticale p{
        font-size: 16px;
    }
        
    #frame_title{
        font-size: 30px;
        margin-top: 30px;
        margin-bottom: 15px;

    }

/* Responsive design for keep the img.col-contenue with a good size*/
@media only screen and (max-width: 1144px)
{
    section{
        padding-left: 20px;
        padding-right: 20px;
        padding-top:50px;
        margin-bottom: 0px;
    }
    img.col-contenue{
        width: 80%;
    }

    .col-contenue{
        width: 70%;

    }
    .knowledge-container{
        transform: scale(.8);
        gap: 60px;
    }

    progress{
        width: 90%;
    }
    .grid-item {
        margin-inline-start: 0;
        margin-inline-end: 0;
    }

    .about-container{
        grid-template-columns: 1fr;
        grid-template-rows: 1fr .4fr;
        gap: 20px;
    }

    section#about p, section#about a{
        font-size: 16px;

    }.grid-container_portfolio{
        gap: 0px;


    }
    .grid-item-portfolio img {
        width: 18em;
        height: 12em;
    }
    .description_project_hover{
        font-size: 16px;
        position: absolute;
        margin-top: -50px;
        padding-left: 20px;
        padding-right: 20px;

}

}

/* Responsive design: MOBILE */

@media only screen and (max-width: 768px)
{
    /*commun*/
    body{
        line-height: 1.2;
    }
        .display-desktop{
            display: none;
        }

        .display-mobile{
            display: block;
        }
        section{
            padding-left: 20px;
            padding-right: 20px;
            padding-top:50px;
            margin-bottom: 0px;
        }
        h2{
            font-size: 28px;
            margin-bottom: 10px;
        }

    /*cover*/    
        header{
            height: 258px;
        } 
        #menu_button{
            padding: 6px 16px;
            font-size: 14px;
        }
        .menu-content button{
            font-size: 12px;
            margin-top: -2px;
            margin-bottom: 2px;
        }
        img.image_profile{
            height: 110px;
            margin-top: 30px;   
        }

        .flag {
            width: 40px;
            height: 23px;
        }
    
        #description{
            margin-top: 2px;
            font-size: 13px;
        }

        h1{
            font-size: 38px;
            margin-top: -6px;
        }
        p{
            font-size: 14px;
        }
        section#about p, section#about a{
            font-size: 14px;
        }
        .grey_part1 p{
            font-size: 14px;
        }

    /*About*/

        img.col-contenue{
            width: 100%;
        }
    
        .col-contenue{
            width: 90%;
    
        }

        .about-container{
            grid-template-columns: 1fr;
            grid-template-rows: 1fr .2fr;

        }
        .float-right{
            float: none;
            text-align: center;
        }

    /*Knowledge*/
        .knowledge-container{
            grid-template-columns: repeat(2, 1fr);
            transform: scale(.6);
            margin-top: -90px;
            margin-bottom: -90px;
        }

    /*Portfolio*/
        .grid-container_portfolio {
            grid-template-columns: 1fr;
            width: 100%;
            gap: 0px;
        }
        .grid-container_portfolio img{
        width: 100%;
        min-width: 275px;
        height: 100%;
        min-height: 200px;
        filter: brightness(0.3);
        }

        .grid-container_portfolio > *:nth-child(odd):last-child{
            width: 70%;
        }
        .grid-item-portfolio{
            grid-column: span 2;
            justify-self: center;
            width: 70%;
            margin-top: 20px;
        }
        .description_project_hover{
            font-size: 14px;
            padding-left: 0;
            padding-right: 0;
            width:80% ;
            display: block;
            z-index: 11;
        }

    /*Frame*/
        footer{
            margin: 0px 0px;
            padding: 0px 0px;
            box-shadow: none;
        }

        footer img{
            height: 80px;
        }
        #frame_title{
            font-size: 22px;
        }

}
