:root {
    --duration: 0.8s;
    --couleur: #3d93c4;
}

html, * {
    box-sizing: border-box;
    font-family: "montserrat", sans-serif;
    font-size: 16px;
    color: black;
    line-height: 1.6;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

.header {
    
    box-shadow: 5px 0px 15px rgba(0, 0, 0, 0.4);
}

.contener {
    width: 95%;
    margin: 0 auto;
}

.topbar {
    text-align: center;
}

.topbar__title {
    padding-top: 25px;
    margin-bottom: 25px;
    font-size: 30px;
}

.topbar__nav {
    padding-bottom: 20px;
}

.topbar__nav a {
    padding: 5px 10px;
    border-radius: 8px;
    transition: color var(--duration), background-color var(--duration);
}

.topbar__nav a:hover {
    background-color: var(--couleur);
    color: #fff;
    border-radius: 8px;
}

.active {
    background-color: var(--couleur);
    color: #fff;
    border-radius: 8px;
}

.cv__title {
    font-size: 30px;
    font-weight: bold;
    padding-left: 10px;
    margin-top: 20px;
}

.cv__text {
    font-size: 16px;
    color: #828282;
    padding: 10px;
    text-align: center;

}

.grafikart {
    font-size: 16px;
    background-color: var(--couleur);
    color: #fff;
    border-radius: 6px;
    padding: 5px;
    transition: all var(--duration);
}

.grafikart:hover {
    border: 1px solid var(--couleur);
    border-radius: 6px;
    background-color: #fff;
    color: #828282;
}


/* Section Card (phase de recherche et de compréhension) */

.card {
    position: relative;
    width: 350px;
    background: #fff;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.4);
    transition: box-shadow var(--duration);
    overflow: hidden;
    border-radius: 25px;
    margin: 15px auto;
}  

.card a {
    color: inherit; 
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

.card:hover {
    box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.6);
}

.card__image {
    height: 235px;
    overflow: hidden;
    background: #000;
    transition: height var(--duration);
}

.card__image__content {
    display: block;
    opacity: 1;
    transform: scale(1);
    transition: opacity var(--duration), transform var(--duration);
    transform: translateX(-80px);
}

.card:hover .card__image img {
    opacity: 0.6;
    transform: scale(1.2);
}

.card:hover .card__image {
    height: 90px;
}

.card__body {
    position: relative;
    padding: 20px;
    height: 185px;
    transition: height var(--duration);
}

.card:hover .card__body {
    height: 330px;
}

.card__body__title {
    margin: 0;
    padding: 0 0 10px 0;
    font-size: 22px;
    color: #000;
    font-weight: bold;
}

.card:hover .card__body__title {
    animation: titleblur var(--duration);
}

.card__body__subtitle {
    color: var(--couleur);
    font-size: 19px;
    padding: 0 0 10px 0;
}

.card:hover .card__body__subtitle {
    animation: subtitleblur var(--duration);
}

.card__body__text {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 35px;
    margin: 0;
    padding: 0;
    color: #666c74;
    font-size: 14px;
    line-height: 20px;
    opacity: 0;
    transition: opacity var(--duration), transform var(--duration);
    transform: translateY(25px);
}

.card:hover .card__body__text {
    opacity: 1;
    transition-delay: 0.1s;
    transform: translateY(0px);
}

@keyframes titleblur {
    0% {
        opacity: 0.6;
        text-shadow: 0px 5px 5px rgba(0, 0, 0, 0.6)

    }
    100% {
        opacity: 1;
        text-shadow: 0px 5px 5px rgba(0, 0, 0, 0)
    }
    
}

@keyframes subtitleblur {
    0% {
        opacity: 0.6;
        text-shadow: 0px 5px 5px rgba(250, 0, 0, 0.6)

    }
    100% {
        opacity: 1;
        text-shadow: 0px 5px 5px rgba(250, 0, 0, 0)
    }
    
}

/* Fin de la section Card */

.footer__title {
    text-align: center;
}

.footer__text, .footer__text a {
    font-size: 16px;
    color: #828282;
    padding: 10px;
    text-align: center;
}

.footer__text a {
    text-decoration: underline;
    transition: color var(--duration);
}

.footer__text a:hover {
    color: var(--couleur);
}

.googlemapphone {
    margin: 0 auto;
}

.googlemap {
    display: none;
}

.footer {
    margin-top: 20px;
    box-shadow: -5px 0px 15px rgba(0, 0, 0, 0.4);
}

.footer em {
    font-size: 10px;
}

.footer em a {
    font-size: 10px;
    background: var(--couleur);
    border-radius: 6px;
    color: #fff;
    padding: 6px 10px;
    text-decoration: none;
    transition: all var(--duration);
}

.footer em a:hover {
        border: 1px solid var(--couleur);
        border-radius: 6px;
        background-color: #fff;
        color: #828282;
}


/* Page ABOUT */

.cadrephoto__photo {
    background: url(https://picsum.photos/500/650.jpg) no-repeat center center / cover;
    width: 260px;
    height: 350px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
}

.presentation {
    text-align: center;
}

.presentation__title {
    font-size: 30px;
}

.presentation__subtitle {
    font-size: 20px;
    color: #828282;
    padding: 5px;
}

/* Page Experiences */

.contener__xp {
    width: 100%;
    margin: 0 auto;
}

.xp__title {
    text-align: center;
    font-size: 36px;
    margin: 20px 0;
}

hr {
    width: 80%;
    margin: 0 auto;
}

.photo__hb{
    background: url(img/hb230x330.png);
    height: 330px;
    width: 230px;
    border-radius: 8px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
    margin: 20px auto;
}

.photo__leclerc {
    background: url(img/leclerc230x330.jpg);
    height: 330px;
    width: 230px;
    border-radius: 8px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
    margin: 20px auto;
}

.photo__cav {
    background: url(img/cav230x330.jpeg);
    height: 330px;
    width: 230px;
    border-radius: 8px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
    margin: 20px auto;
}

.experience__title {
    font-size: 40px;
    line-height: 1;
}

.experience__subtitle {
    font-size: 30px;
    font-weight: normal;
    color: #828282;
    line-height: 1.1;
}

.experience__text {
    font-size: 20px;
    margin-bottom: 20px;
}

.xp__grid {
    display: none;
}

/* Page Formation */


.bg_none_tel {
    
    background: var(--couleur);
    opacity: 0.5;
    height: 250px;
}

.title__formation {
    color: #FFF;
    font-size: 30px;
    text-align: center;
    padding-top: 100px;
}

.card_img_patisserie {
    background: url(img/patisserie350x263.jpg);
    height: 200px;
    width: 350px;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.6);
}

.card_img_boucherie {
    background: url(img/boucherie350x247.jpg);
    height: 200px;
    width: 350px;
}

.card_img_vente {
    background: url(img/vente349x233.jpg);
    height: 200px;
    width: 350px;
}

.title_card_formate {
    text-align: center;
    font-size: 30px;
    padding-top: 10px;
}

.text__formate {
    text-align: center;
}

.card__formate__obtenu {
    text-align: center;
    width: 150px;
    height: 50px;
    border-radius: 8px;
    background-color: var(--couleur);
    margin: 10px auto;
    font-size: 20px;
    padding-top: 10px;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}


/** PAGE COMPETENCE **/

.title__comp {
    font-size: 30px;
    text-align: center;
    background: rgba(61, 147, 196, 0.5);
    padding-top: 15px;
    height: 80px;
}

.subtitle__comp {
    font-size: 20px;
    text-align: center;
    background: rgba(61, 147, 196, 0.2);
    padding-top: 5px;
    padding-bottom: 5px;
    height: auto;
}

.comp__grid {
    display: grid;
    grid-auto-rows: 122px;
    grid-template-columns: 3fr 1fr;
    justify-items: center;
    row-gap: 5px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.comp__grid__sep {
    display: grid;
    grid-auto-rows: 122px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    justify-items: center;
    row-gap: 5px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.comp__list {
    margin-left: 50px;
    margin-top: 20px;
}

.comp__text {
    text-align: center;
    padding-top: 50px;
    width: 100%;
    border-bottom: solid 1px #000;
    border-right: solid 1px #000;
}

.comp__text__last {
    text-align: center;
    padding-top: 50px;
    width: 100%;
    border-bottom: solid 1px #000;
}

.maxwidth {
    width: 100%;
    border-bottom: solid 1px #000;
}

.midmaxwidth {
    display: none;
    width: 100%;
    border-bottom: solid 1px #000;
    border-right: solid 1px #000;
}

.comp__verygood {
    background: url(img/very-good.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 120px;
    width: 150px;
    margin: 0 auto;
}

.comp__good {
    background: url(img/good.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 120px;
    width: 150px; 
    margin: 0 auto;
}

.comp__medium {
    background: url(img/medium.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 120px;
    width: 150px;
    margin: 0 auto;
}

.comp__bad {
    background: url(img/bad.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 120px;
    width: 150px;
    margin: 0 auto;
}

.comp__verybad {
    background: url(img/high-bad.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 120px;
    width: 150px;
    margin: 0 auto;
}


@media only screen and (min-width: 970px) {
    .contener {
        width: 95%;
    }

    .topbar {
        display: flex;
        justify-content: space-between;
    }

    .topbar__nav {
        padding: 0;
        margin: auto 0;
    }

    .topbar__nav a {
        margin-left: 5px;
    }

    .cv__text {
        max-width: 520px;
        text-align: start;
    }

    .boxofcards {
        display: grid;
        grid-template-columns: repeat(2, 1fr) 
    }

    .card {
        width: 450px;
    }

    .card:hover .card__image {
        height: 160px;
    }

    .card:hover .card__body {
        height: 260px;
    }
    
    .card__image__content {
        transform: translateX(0px);
    }

    .xppro {
        transform: translateX(-28px);
    }

    .googlemapphone {
        margin: 0;
    }

    .footer__flex__content {
        padding-top: 70px;
    }

    .footer__flex {
        display: flex;
        justify-content: space-around;
    }

    .flexabout {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
    }

    .presentation {
        text-align: start;
    }

    .presentation__title {
        font-size: 60px;
        margin-top: 20px;
    }

    .presentation__text {
        max-width: 700px;
        font-size: 20px;
        margin-bottom: 40px;
    }

    .presentation__subtitle {
        font-size: 25px;
        padding: 40px;
    }

    .cadrephoto {
        width: 40%;
    }

    .cadrephoto__photo {
        width: 400px;
        height: 550px;
        margin-top: 40px;
    }

    .flexxp {
        display: flex;
        justify-content: space-between;
    }

    .flexxpreverse {
        display: flex;
        flex-direction: row-reverse;
    }

    .experience__text {
        width: 600px;
    }

    .contener__xp {
        width: 90%;
        margin: 0 auto;

    }

    .xp__title {
        margin: 40px 0;
    }

    /* .bg_none_tel {
        display: block;
        background: var(--couleur);
        opacity: 0.5;
        height: 250px;
    } */

    .title__formation {
        color: #FFF;
        font-size: 30px;
        text-align: center;
        padding-top: 100px;
    }

    .hr__formation {
        width: 300px;
    }

    .boxofcards_formate {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: space-around;
        align-items: center
    }

    .card_img_patisserie {
        width: 450px;
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
    }

    .card_img_boucherie {
        width: 450px;
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
    }

    .card_img_vente {
        width: 450px;
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
    }

    .comp__grid {
        grid-template-columns: 1fr 2fr 1fr;
    }

    .midmaxwidth {
        display: block;
    }


}

@media only screen and (min-width: 1150px) {
    .contener {
        width: 85%;
    }
    .boxcard__one {
        margin-left: auto;
        margin-right: 40px;
    }
    
    .boxcard__two {
        margin-right: auto;
        margin-left: 40px;
    }
    
    
    .boxcard__three {
        margin-left: auto;
        margin-right: 40px;
    }
    
    
    .boxcard__four {
        margin-right: auto;
        margin-left: 40px;
    }

    .googlemapphone {
        display: none;
    }

    .googlemap {
        display: block;
        border-radius: 20px;
        margin: 15px 0;
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
    }

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

    .footer__flex__content {
        padding-top: 40px;
    }

    .footer__text, .footer__text a {
        font-size: 16px;
        color: #828282;
        padding: 0px;
        text-align: start;
    }

    .footer__title {
        text-align: start;
    }

    .contener__xp {
        width: auto;
        margin: 0 0 170px 300px;
    }


    .flypaper {
        position: absolute;
        top: 120px;
        left: 20px;
        background: url(img/flypaper.png);
        width: 300px;
        height: 1300px;
    }

}

@media only screen and (min-width: 1300px) {
    .card {
        width: 500px;
    }

    .xppro {
        transform: translateX(0px);
    }

    .cadrephoto__photo {
        width: 500px;
        height: 650px;
        margin-top: 40px;
    }

    .card_img_boucherie{
        width: 500px;
    }

    .card_img_patisserie {
        width: 500px;
    }

    .card_img_vente {
        width: 500px;
    }
}

@media only screen and (min-width: 1400px) {
    .experience {
        padding-top: 25px;
    }

    .photo__hb{
        background: url(img/hb450x180.jpg);
        height: 180px;
        width: 450px;
        border-radius: 8px;
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
        margin: 20px auto;
    }
    
    .photo__leclerc {
        background: url(img/leclerc450x180.jpg);
        height: 180px;
        width: 450px;
        border-radius: 8px;
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
        margin: 20px auto;
    }
    
    .photo__cav {
        background: url(img/cav450x180.jpg);
        height: 180px;
        width: 450px;
        border-radius: 8px;
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
        margin: 20px auto;
    }

    .contener__xp {
        width: auto;
        max-width: 1100px;
        margin: 0 30px 0 auto;
    }

    .xp__grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-row-gap: 40px;
        margin: 90px 0;
    }

    .grid__photo1 {
        background: url(img/photo1_156x156.jpg);
        height: 156px;
        width: 156px;
        border-radius: 8px;
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
        margin: 5px auto;
    }

    .grid__photo2 {
        background: url(img/photo2_156x156.jpeg);
        height: 156px;
        width: 156px;
        border-radius: 8px;
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
        margin: 5px auto;
    }

    .grid__photo3 {
        background: url(img/photo3_156x156.jpeg);
        height: 156px;
        width: 156px;
        border-radius: 8px;
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
        margin: 5px auto;
    }

    .grid__photo4 {
        background: url(img/photo4_156x156.jpeg);
        height: 156px;
        width: 156px;
        border-radius: 8px;
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
        margin: 5px auto;
    }

    .grid__photo5 {
        background: url(img/photo5_156x156.jpeg);
        height: 156px;
        width: 156px;
        border-radius: 8px;
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
        margin: 5px auto;
    }

    .grid__photo6 {
        background: url(img/photo6_156x156.jpeg);
        height: 156px;
        width: 156px;
        border-radius: 8px;
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
        margin: 5px auto;
    }

    .grid__photo7 {
        background: url(img/photo7_156x156.jpeg);
        height: 156px;
        width: 156px;
        border-radius: 8px;
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
        margin: 5px auto;
    }

    .grid__photo8 {
        background: url(img/photo8_156x156.jpeg);
        height: 156px;
        width: 156px;
        border-radius: 8px;
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
        margin: 5px auto;
    }

    .grid__photo9 {
        background: url(img/photo9_156x156.jpeg);
        height: 156px;
        width: 156px;
        border-radius: 8px;
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
        margin: 5px auto;
    }

    .grid__photo10 {
        background: url(img/photo10_156x156.jpeg);
        height: 156px;
        width: 156px;
        border-radius: 8px;
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
        margin: 5px auto;
    }

    .xp__grid div {
        transition: transform var(--duration);
    }

    .xp__grid div:hover {
        transform: scale(1.1);
    }



}

@media only screen and (min-width: 1550px) {
    .contener__xp {
        margin: 0 auto 0 400px;
    }
}



