/* Version 02/2022*/

/* Règles générales*/
html, body {
    margin : 0;
    padding : 0;
    font-family : 'Roboto', 'Arial', sans-serif;
    font-weight: 400;
    color : #3b3b3b;
    background : #ffffff center center no-repeat;
    background-size : cover;
    background-attachment: fixed; 
}
img {
    max-width : 100%;
    height : auto;
    display : block;
}

/* Header : logo + navigation */
header {
    position: sticky;
    top: 0;
    margin : 0;
    width : auto;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    background: rgb(146,255,192);
    background: linear-gradient(135deg, rgba(146,255,192,1) 25%, rgba(92,167,124,1) 75%, rgba(80,144,107,1) 100%);
    background-attachment: fixed; 
    -webkit-box-shadow: 0px 0px 9px 0px rgba(0,0,0,0.5); 
    box-shadow: 0px 0px 9px 0px rgba(0,0,0,0.5);
    z-index : 100;
}
/* Liens du header*/
header a{
    font-size : 18px;
    padding : 16px;
    text-decoration : none;
    color : #ffffff;
    -webkit-transition : all .3s ease;
    -moz-transition : all .3s ease;
    -ms-transition : all .3s ease;
    -o-transition : all .3s ease;
    transition : all .3s ease; 
}
header a:hover{
    color : #498060;
    font-size : 20px;
    font-weight: 700;
    padding : 15px; 
}
/* Logo header */
header a#logo {
    margin : 0 0 0 5%;
    padding : 20px;
    width : 10%;
    color : #ffffff;
    font-family : 'Courier Prime', 'Arial', sans-serif; 
    -webkit-transition : all .3s ease;
    -moz-transition : all .3s ease;
    -ms-transition : all .3s ease;
    -o-transition : all .3s ease;
    transition : all .3s ease; 
}
header a#logo h3 {
    margin: 0;
    padding: 0;
    text-align : center;
    font-size : 38px; 
    font-weight : 700;
    -webkit-transition : all .3s ease;
    -moz-transition : all .3s ease;
    -ms-transition : all .3s ease;
    -o-transition : all .3s ease;
    transition : all .3s ease; 
}
header a#logo:hover {
    margin : 0 0 6px 5%;
}
header a#logo:hover h3 {
    font-size : 42px;
    color: #498060;
}
/* Nav hamburger header */
header div#navResp {
    margin : 0 10% 0 0 ;
    padding : 0;
    width : 10%;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: center;
}
header div#navResp div#hamburger {
    width :  40px;
    height :  40px;
    background : url(img/hamburger.svg) center center no-repeat;
    background-size : 70%;
    cursor :  pointer; 
    -webkit-transition : all .1s ease;
    -moz-transition : all .1s ease;
    -ms-transition : all .1s ease;
    -o-transition : all .1s ease;
    transition : all .1s ease;
}
header div#navResp div#hamburger:hover {
    background : url(img/hamburger_hover.svg) center center no-repeat;
    background-size : 98%;
}
/* Nav cross header */
header div#navResp.deployed div#hamburger {
    background : url(img/cross.svg) center center no-repeat;
    background-size : 70%;
}
header div#navResp.deployed div#hamburger:hover {
    background : url(img/cross_hover.svg) center center no-repeat;
    background-size : 98%;
}
/* Nav volet liens header */
header nav#volet {
    position :  absolute;
    left :  0;
    top : -600px;
    width :  100%;
    display: flex;
    flex-direction : column;
    flex-wrap : nowrap;
    justify-content: space-around;
    align-items: center;
    padding: 5px 0; 
    text-align :  center;
    background: rgb(146,255,192);
    background: linear-gradient(135deg, rgba(146,255,192,1) 25%, rgba(92,167,124,1) 75%, rgba(80,144,107,1) 100%);
    background-attachment: fixed; 

    -webkit-box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.5); 
    box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.5);
    
    -webkit-transition : all 0.5s ease;
    -moz-transition : all 0.5s ease;
    -ms-transition : all 0.5s ease;
    -o-transition : all 0.5s ease;
    transition : all 0.5s ease;
    overflow : hidden;
}
header nav#volet.deployed {
    top :  0;
}
header nav#volet a {
    width : 100%;
    margin : 5px 0;
}


/* Main : contenu CV */
main {
    width : 80%;
    margin : 2% 10%;
    padding: 5px;
}

/* Mise en page de chaque section*/
main section {
    margin : 70px 0;
}


/* Intro du main */
section#intro {
    text-align: center;
}
main .titreG {
    margin: 30px 0;
    font-size : 50px;
    font-family : 'Courier Prime', 'Arial', sans-serif; 
    color : #5ca77c;
}
main .titreP {
    margin: 30px 0;
    font-size : 30px;
    font-family : 'Courier Prime', 'Arial', sans-serif; 
    color : #ffa710;
}
/* Bouton pdf CV*/
section#intro a#pdfCV {
    display: block;
    width: 20%;
    text-decoration: none;
    margin: 25px auto;
    padding: 16px 14px;
    background-color: #ffa710;
    border-radius: 12px;
    font-family : 'Courier Prime', 'Arial', sans-serif; 
    color : #ffffff;
    font-size: 22px;
    font-weight: 700;

    -webkit-transition : all 0.5s ease;
    -moz-transition : all 0.5s ease;
    -ms-transition : all 0.5s ease;
    -o-transition : all 0.5s ease;
    transition : all 0.5s ease;

    -webkit-animation: fadein2 2s ease; /* Safari, Chrome and Opera > 12.1 */
    -moz-animation: fadein2 2s ease; /* Firefox < 16 */
    -ms-animation: fadein2 2s ease; /* Internet Explorer */
    -o-animation: fadein2 2s ease; /* Opera < 12.1 */
    animation: fadein2 2s ease;
}
section#intro a#pdfCV:hover {
    margin: 27.5px auto;
    background-color: #498060;
    border-radius: 20px; 
    color : #ffffff;
    font-size: 24px;

    -webkit-box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.5); 
    box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.5);
}


/* Mise en page général du contenu */
main .contenu p, .contenu ul, .contenu h3.sousTitre {
    width: 89%;
    margin: 0 0 0 2%;
    padding: 0;
}
main .titre {
    margin: 30px 0;
    font-size : 30px;
    font-family : 'Courier Prime', 'Arial', sans-serif; 
    color : #5ca77c;
}
main .sousTitre {
    margin: 20px 0;
    font-size : 22px;
    font-family : 'Courier Prime', 'Arial', sans-serif; 
    color : #5ca77c;
}
main .contenu {
    width: 100%;
    margin: 35px 0;
    display: flex;
    flex-direction : row;
    flex-wrap : nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    font-size : 18px;
}
main .contenu span.date {
    width: 7%;
    text-align: right;
    margin : 0 2% 0 0;
    padding: 0;
    color: #ffa710;
}

/* Mise en page des points (publications)*/
main .contenu span.point {
    font-size: 30px;
    font-weight: 700;
}

/* Mise en page des paragraphes*/
main .contenu p {
    text-align: justify;
}
/* Misqe en page des listes du contenu */
main .contenu ul {
    list-style-type: none;
}
main .contenu ul li:before {
    content: "•";
    margin-right: 10px;
    font-size: 35px;
    color: #5ca77c;
    vertical-align: middle;
}
main .contenu ul li {
    padding-bottom: 10px;
}

/* Style italique pour le texte*/
main span.italic {
    font-style: italic;
}

/* Lien divers */
main a.lienDivers {
    cursor: pointer;
    line-height: 50px;
    color : #5ca77c;
    text-decoration: none;
    background: linear-gradient(to top, rgba(255, 167, 16, 0.8) 0%, rgba(255, 167, 16, 0.8) 10%, transparent 10.01%) no-repeat;
    background-size: 100% 100%;

    -webkit-transition : all 0.5s ease;
    -moz-transition : all 0.5s ease;
    -ms-transition : all 0.5s ease;
    -o-transition : all 0.5s ease;
    transition : all 0.5s ease;
}

main a.lienDivers:hover {
    color : #ffa710;
    background: linear-gradient(to top, rgba(92, 167, 124, 0.8) 0%, rgba(92, 167, 124, 0.8) 10%, transparent 10.01%) no-repeat;
    
    -webkit-animation: underlined 1s both; /* Safari, Chrome and Opera > 12.1 */
    -moz-animation: underlined 1s both; /* Firefox < 16 */
    -ms-animation: underlined 1s both; /* Internet Explorer */
    -o-animation: underlined 1s both; /* Opera < 12.1 */
    animation: underlined 1s both;
}
main a.lienDivers:active {
    color : #FF9991;
}



/* Lien publications */
main a.lienPublication {
    cursor: pointer;
    line-height: 50px;
    color : #ffa710;
    text-decoration: none;
    background: linear-gradient(to top, rgba(92, 167, 124, 0.8) 0%, rgba(92, 167, 124, 0.8) 10%, transparent 10.01%) no-repeat;
    background-size: 100% 100%;

    -webkit-transition : all 0.5s ease;
    -moz-transition : all 0.5s ease;
    -ms-transition : all 0.5s ease;
    -o-transition : all 0.5s ease;
    transition : all 0.5s ease;
}
/* main a.lienPublication:visited {
    color : #FF9991;
} */
main a.lienPublication:hover {
    color : #5ca77c;
    background: linear-gradient(to top, rgba(255, 167, 16, 0.8) 0%, rgba(255, 167, 16, 0.8) 10%, transparent 10.01%) no-repeat;
    
    -webkit-animation: underlined 1s both; /* Safari, Chrome and Opera > 12.1 */
    -moz-animation: underlined 1s both; /* Firefox < 16 */
    -ms-animation: underlined 1s both; /* Internet Explorer */
    -o-animation: underlined 1s both; /* Opera < 12.1 */
    animation: underlined 1s both;
}
main a.lienPublication:active {
    color : #FF9991;
}


/* Animation soulignement */
@keyframes underlined {
    from {
        background-size: 100% 100%;
        /* Permet de dire au soulignement de partir vers la droite */
        background-position: bottom right;
    }

    50% {
        background-size: 0 100%;
        background-position: bottom right;
    }

    50.01% {
        background-position: bottom left;
    }

    100% {
        background-size: 100% 100%;
        background-position: bottom left;
    }
}

/* Firefox < 16 */
@-moz-keyframes underlined {
    from {
        background-size: 100% 100%;
        /* Permet de dire au soulignement de partir vers la droite */
        background-position: bottom right;
    }

    50% {
        background-size: 0 100%;
        background-position: bottom right;
    }

    50.01% {
        background-position: bottom left;
    }

    100% {
        background-size: 100% 100%;
        background-position: bottom left;
    }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes underlined {
    from {
        background-size: 100% 100%;
        /* Permet de dire au soulignement de partir vers la droite */
        background-position: bottom right;
    }

    50% {
        background-size: 0 100%;
        background-position: bottom right;
    }

    50.01% {
        background-position: bottom left;
    }

    100% {
        background-size: 100% 100%;
        background-position: bottom left;
    }
}

/* Internet Explorer */
@-ms-keyframes underlined {
    from {
        background-size: 100% 100%;
        /* Permet de dire au soulignement de partir vers la droite */
        background-position: bottom right;
    }

    50% {
        background-size: 0 100%;
        background-position: bottom right;
    }

    50.01% {
        background-position: bottom left;
    }

    100% {
        background-size: 100% 100%;
        background-position: bottom left;
    }
}

/* Opera < 12.1 */
@-o-keyframes underlined {
    from {
        background-size: 100% 100%;
        /* Permet de dire au soulignement de partir vers la droite */
        background-position: bottom right;
    }

    50% {
        background-size: 0 100%;
        background-position: bottom right;
    }

    50.01% {
        background-position: bottom left;
    }

    100% {
        background-size: 100% 100%;
        background-position: bottom left;
    }
}


/* Pied de page */
footer {
    width : auto;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    margin : 75px 0 0 0;
    padding : 30px;
    color : #ffffff;
    font-family : 'Courier Prime', 'Arial', sans-serif; 
    font-size: 20px;
    
    background: rgb(146,255,192);
    background: linear-gradient(135deg, rgba(146,255,192,1) 25%, rgba(92,167,124,1) 75%, rgba(80,144,107,1) 100%);
    background-attachment: fixed;
    -webkit-box-shadow: 0px 0px 9px 0px rgba(0,0,0,0.5); 
    box-shadow: 0px 0px 9px 0px rgba(0,0,0,0.5);
}
footer span#mail:before {
    content: "✉";
    margin-right: 15px;
    font-family : 'Courier Prime', 'Arial', sans-serif;
    font-size: 30px;
    color: inherit;
    vertical-align: middle;
}


/* Responsive */

@media screen and (max-width : 1441px) {

    section#intro a#pdfCV {
        width: 20%;
        margin: 25px auto;
        padding: 18px 22px;
        font-size: 18px;
    }
    section#intro a#pdfCV:hover {
        margin: 27.5px auto;
        font-size: 20px;
    }


    main .contenu p, .contenu ul, .contenu h3.sousTitre {
        width: 86%;
        margin: 0 0 0 2%;
    }
    main .contenu span.date {
        width: 10%;
        margin : 0 2% 0 0;
    }
}

@media screen and (max-width : 1281px) {

    section#intro a#pdfCV {
        width: 25%;
        margin: 25px auto;
        padding: 18px 22px;
        font-size: 18px;
    }
    section#intro a#pdfCV:hover {
        margin: 27.5px auto;
        font-size: 20px;
    }
}

@media screen and (max-width : 1025px) {

    section#intro a#pdfCV {
        width: 20%;
        margin: 25px auto;
        padding: 18px 22px;
        font-size: 14px;
    }
    section#intro a#pdfCV:hover {
        margin: 27.5px auto;
        font-size: 15px;
    }

    main .contenu p, .contenu ul, .contenu h3.sousTitre {
        width: 84%;
        margin: 0 0 0 2%;
    }
    main .contenu span.date {
        width: 12%;
        margin : 0 2% 0 0;
    }
}

@media screen and (max-width : 913px) {

    section#intro a#pdfCV {
        width: 40%;
        margin: 25px auto;
        padding: 18px 22px;
        font-size: 18px;
    }
    section#intro a#pdfCV:hover {
        margin: 27.5px auto;
        font-size: 20px;
    }
}

@media screen and (max-width : 769px) {
    section#intro a#pdfCV {
        width: 40%;
        font-size: 18px;
        padding: 18px 20px;
    }
    section#intro a#pdfCV:hover {
        font-size: 20px;
    }

    main .titre {
        font-size : 27px;
    }
    main .sousTitre {
        font-size : 21px;
    }
    main .contenu p, .contenu ul, .contenu h3.sousTitre {
        width: 78%;
        margin: 0 0 0 4%;
    }
    main .contenu span.date {
        width: 14%;
        margin : 0 4% 0 0;
    }
}

@media screen and (max-width : 541px) {

    section#intro a#pdfCV {
        width: 60%;
        margin: 25px auto;
        padding: 18px 22px;
        font-size: 20px;
    }
    section#intro a#pdfCV:hover {
        margin: 27.5px auto;
        font-size: 22px;
    }
}

@media screen and (max-width : 426px) {
    header a#logo h3 {
        font-size : 34px; 
    }
    header a#logo:hover h3 {
        font-size : 36px;
    }

    header div#navResp div#hamburger {
        background-size : 68%;
    }
    header div#navResp div#hamburger:hover {
        background-size : 80%;
    }
    header div#navResp.deployed div#hamburger {
        background-size : 68%;
    }
    header div#navResp.deployed div#hamburger:hover {
        background-size : 80%;
    }
    
    section#intro a#pdfCV {
        width: 65%;
        font-size: 18px;
        padding: 18px 20px;
    }
    section#intro a#pdfCV:hover {
        font-size: 20px;
    }

    main .titre {
        font-size : 25px;
    }
    main .contenu p, .contenu ul, .contenu h3.sousTitre {
        width: 63%;
        margin: 0 0 0 5%;
        text-align: left;
    }
    main .contenu span.date {
        width: 27%;
        margin : 0 5% 0 0;
    }

    footer {
        margin : 0;
        font-size: 19px;
    }
    footer span#mail:before {
        font-size: 25px;
    }
}

@media screen and (max-width : 415px) {
    section#intro a#pdfCV {
        width: 75%;
        font-size: 18px;
        padding: 18px 20px;
    }
    section#intro a#pdfCV:hover {
        font-size: 20px;
    }

    footer {
        margin : 0;
        font-size: 18px;
    }
    footer span#mail:before {
        font-size: 20px;
    }
}

@media screen and (max-width : 394px) {
    footer {
        margin : 0;
        padding: 25px;
        font-size: 18px;
    }
    footer span#mail:before {
        margin-right: 12px;
        font-size: 20px;
    }
}

@media screen and (max-width : 376px) {
    header a#logo h3 {
        font-size : 30px; 
    }
    header a#logo:hover h3 {
        font-size : 32px;
    }

    main section {
        margin : 50px 0;
    }

    main .titre {
        font-size: 28px;
        text-align: center;
    }

    section#intro a#pdfCV {
        width: 75%;
        font-size: 18px;
        padding: 18px 20px;
    }
    section#intro a#pdfCV:hover {
        font-size: 20px;
    }

    main .contenu {
        display: flex;
        flex-direction : column;
        flex-wrap : nowrap;
        justify-content: center;
        align-items: center;
        margin : 18px 0;
    }

    main .contenu p, .contenu ul, .contenu h3.sousTitre {
        width: 100%;
        margin: 20px 0;
    }
    main .contenu p {
        text-align: center;
    }
    main .contenu h3.sousTitre {
        width: 100%;
        margin: 20px 0;
        text-align: center;
    }
    main .contenu ul {
        text-align: left;
    }
    main .contenu span.date {
        width: 100%;
        margin: 20px 0;
        text-align: center;
    }

    footer {
        margin : 0;
        padding : 25px; 
        font-size: 17px;
    }
    footer span#mail:before {
        margin-right: 15px;
        font-size: 22px;
    }
}

@media screen and (max-width : 361px) {
    footer {
        margin : 0;
        padding: 20px 18px;
        font-size: 16px;
    }
    footer span#mail:before {
        margin-right: 12px;
        font-size: 18px;
    }
}

@media screen and (max-width : 321px) {

    main section {
        margin : 45px 0;
    }

    section#intro a#pdfCV {
        width: 80%;
        font-size: 16px;
        padding: 18px 20px;
    }
    section#intro a#pdfCV:hover {
        font-size: 18px;
    }

    main .titre {
        font-size: 26px;
    }

    footer {
        margin : 0;
        padding : 18px 10px; 
        font-size: 16px;
    }
    footer span#mail:before {
        margin-right: 10px;
        font-size: 18px;
    }
}

@media screen and (max-width : 280px) {
    header a#logo h3 {
        font-size : 24px; 
    }
    header a#logo:hover h3 {
        font-size : 26px;
    }

    main .titreG {
        margin: 30px 0;
        font-size : 40px;
    }
    main .titreP {
        margin: 30px 0;
        font-size : 20px;
    }
    section#intro a#pdfCV {
        width: 78%;
        font-size: 14px;
        padding: 14px 12px;
    }
    section#intro a#pdfCV:hover {
        font-size: 15px;
    }
    
    main .titre {
        font-size: 22px;
    }

    footer {
        margin : 0;
        padding : 18px 10px; 
        font-size: 14px;
    }
    footer span#mail:before {
        margin-right: 8px;
        font-size: 16px;
    }
}

/*LaTex logo */
.tex sub, .latex sub, .latex sup {
      text-transform: uppercase;
    }

    .tex sub, .latex sub {
      vertical-align: -0.5ex;
      margin-left: -0.1667em;
      margin-right: -0.125em;
    }

    .tex, .latex, .tex sub, .latex sub {
      font-size: 1em;
    }

    .latex sup {
      font-size: 0.85em;
      vertical-align: 0.15em;
      margin-left: -0.36em;
      margin-right: -0.15em;
    }