/*
*
* Beaucoup de commentaire → c'est que des truc qui finalament ne servent a rien
*
*/

html {
    scroll-behavior: smooth;
    font-family: 'Indie Flower', cursive;
}


/*********** SCROLLBAR CHROME ***********/
/* j'ai pas trouvé pour firefox*/
::-webkit-scrollbar {
    width: 5px;
    background: rgba(0, 0, 0);
}

/*
::-webkit-scrollbar:window-inactive {
    width: 5px;
}
*/

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
}


form ::-webkit-scrollbar {
    width: 10px;
    background: rgba(255, 255, 255);
}

form ::-webkit-scrollbar-thumb {
    border-radius: 0px;
    background: rgba(0, 0, 0, 0.5);
}



/**************** MENU *****************/
.barreenhaut {
    position: fixed;
    display: flex;
    justify-content: space-around;
    top: 0px;
    left: 0px;
    right: 0px;
    background-color: black;
    color: white;
    height: 6vw;
    max-height: 75px;
    z-index: 2;
}

.titre {
    margin: 0 30px;
    color: white;
    font-size: 4vw;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Amatic SC', cursive;
    flex-grow: 0.2;

    transform: none;
    transition: transform 500ms;
}

.titre:hover {
    color: #F9C72B;
    transform: scale(1.1) rotate(-2deg);
}


nav {
    font-size: 2.2vw;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-grow: 0.4;
}

nav a {
    text-decoration: none;
    color: white;
    margin: 0 10px;
    white-space: nowrap;
}

nav a:hover {
    color: #F9C72B;
    transform: scale(1.2);
}


/*  RESPONSIVE  */
@media screen and (min-width: 980px) {
    nav {
        font-size: 22px;
    }

    .titre {
        font-size: 40px;
    }
}

/**************** HEADER *****************/

header {
    height: 100vh;
    background-color: dimgray;

    background-image: url(../images/header-pic2_compresse.jpg);
    background-position: 40% 50%;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;

    text-transform: uppercase;
    font-family: 'Amatic SC', cursive;
    display: flex;

    flex-direction: row;
}

#divRemplisage {
    flex-grow: 1;
}

#divTitre {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-bottom: 11vh;
    margin-right: 5vw;
}

header h1 {
    font-size: 600%;
    transform: translateY(28px);
    margin: 0;
}

header h1 strong {
    color: white;
    font-size: 140%;
}


.text-shadow-pop-right {
    animation: text-shadow-pop-right 1s both;
}

@keyframes text-shadow-pop-right {

    /*   a 0% du temps il n'y a pas d'ombre*/
    0% {
        text-shadow: 0 0 #F9C72B,
            transform: translateX(0);
    }

    /*a 100% du temps on fait une ombre sur des pixel en décalage*/
    100% {
        text-shadow: 5px 0 #F9C72B;
        transform: translateX(-8px);
    }
}


/*  RESPONSIVE  */
@media screen and (max-width: 980px) {
    header h1 {
        font-size: 9.5vw;
    }

    .titre {
        margin: 0 2vw;
    }
}

/*************** PAGE ******************/

/*********** GLOBAL ***********/
body {
    margin: 0;
}

section {
    padding-top: 60px;
    padding-bottom: 60px;
    height: 100vh;
}

h2 {
    font-size: 40px;
    margin-left: 40px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

h3 {
    font-size: 30px;
}

h4 {
    font-size: 20px;
}


/*********** SECTION ***********/

/*  PRESENTATION  */

#presentation {
    background-color: white;
    display: flex;
    flex-direction: column;
    min-height: 750px;
}


#presentation #contenuPresentation {
    display: flex;
    align-self: center;
}

#presentation #textePresentation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: end;
    margin-right: 30px;
    font-size: 30px;
}

#presentation img {
    height: 50vw;
    max-height: 450px;
}

#voirplus {
    display: flex;
    justify-content: center;
}

#voirplus a {
    padding: 10px 30px;
    border-radius: 100px;
    text-decoration: none;
    color: white;
    background-color: #F9C72B;
}

#voirplus a:hover {
    background-color: black;
}

#presentationFull:not(:target) + #presentation #voirmoins {
    display: none;
}

#presentationFull:target + #presentation #description {
    display: flex;
}

#presentationFull:target + #presentation #voirmoins {
    visibility: visible;
}

#presentationFull:target + #presentation #voirplus {
    display: none;
}

#description {
    display: none;
    flex-direction: column;
    align-items: center;
}

#description p {
    text-align: justify;
    max-width: 60vw;
    font-size: 20px;
}

#voirmoins {
    display: flex;
    justify-content: center;
}

#voirmoins a {
    padding: 10px 30px;
    border-radius: 100px;
    text-decoration: none;
    color: white;
    background-color: #F9C72B;
}

#voirmoins a:hover {
    background-color: black;
}




/*  COMPETENCE  */

#competence {
    height: 100vh;
    min-height: 700px;
}

#competence h3,
#competence h4 {
    margin: 30px 0 5px 0;
    display: inline-block;
}

#competence .lesH4DuHaut {
    margin-top: 10px;
}

.contenucompetence {
    display: flex;
    flex-direction: column;
    margin: 0 3%;
}

#optLangues {
    display: flex;
}

#multimedia {
    display: flex;

}

#audiovisuel,
#informatique,
.progress-competence {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 50%;
}

.espace-progress {
    width: 5%;
}


/***********************************************/
/**********************************/
.progress-bar {
    background-color: black;
    border-radius: 100px;
    width: 100%;
    height: 30px;
}

.progress-value {
    /* a la base c'était dans le sélecteur en dessous */
    background-color: #F9C72B;
    border-radius: 100px;
    height: 30px;
}

#competence:hover .progress-value {
    /*    transition: 0.3s all linear;*/
    /*    display: inline-block;*/
    animation: progress 1s ease-in-out forwards;
}

.progress-value p {
    margin: 0;
    height: 100%;
    text-align: end;
    vertical-align: middle;
    padding-right: 15px;
    padding-top: 3px;
    opacity: 0;
    animation: progressTXT2 0.5s ease-in-out forwards;
}

.progress-bar:hover .progress-value p {
    animation: progressTXT 0.5s ease-in-out forwards;
}

/* animation */
@keyframes progress {
    from {
        width: 0%;
    }
}

@keyframes progressTXT {
    from {
        opacity: 0%;
    }

    to {
        opacity: 100%;
    }
}

@keyframes progressTXT2 {
    from {
        opacity: 100%;
    }

    to {
        opacity: 0%;
    }
}

/**********************************/
/***********************************************/

/*  PORTRAIT CHINOIS  */

#portraitChinois {
    display: flex;
    flex-direction: column;
    font-size: 2.5vw;
    height: 100vh;
}

#textePortrait {
    height: 50vw;
    margin: 0 6vw;
    display: flex;
    flex-direction: row;

    /* cache ce qui dépasse de la div */
    overflow: hidden;
}

.fixes {
    text-align: center;
    margin: 0 2vw;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 11vw;
    height: 50vw;
}

#questions,
#reponses {
    color: #F9C72B;
    width: calc(70vw*4);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    animation: slide 40s infinite;
    height: 200vw;
}

.item {
    height: 10vw;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item p {
    text-align: center;
    margin: 0;
}

@keyframes slide {
    0% {
        transform: translateY(50vw);
        opacity: 0;
    }

    2% {
        transform: translateY(20vw);
        opacity: 1;
    }

    3% {
        transform: translateY(20vw);
    }

    10% {
        transform: translateY(10vw);
    }

    20% {
        transform: translateY(0vw);
    }

    30% {
        transform: translateY(-10vw);
    }

    40% {
        transform: translateY(-20vw);
    }

    50% {
        transform: translateY(-30vw);
    }

    60% {
        transform: translateY(-40vw);
    }

    70% {
        transform: translateY(-50vw);
    }

    80% {
        transform: translateY(-60vw);
    }

    90% {
        transform: translateY(-70vw);
    }

    99% {
        transform: translateY(-80vw);
        opacity: 1;
    }

    99.8% {
        transform: translateY(-110vw);
        opacity: 0;
    }

    100% {
        transform: translateY(-110vw);
    }
}



/*  REALISATIONs  */

#realisation {
    background-color: dimgray;
    height: 100vh;
}

.contener_slide {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 80vw;
    /*        flex-grow: 1;*/
    flex-wrap: wrap;
    transform: none;
    transition: transform 500ms;
}

#boiteSlide {
    display: flex;
    justify-content: center;
}

.slide {
    height: 20vw;
    width: 20vw;
    margin: 2vw 2vw;
    overflow: hidden;
    background-color: black;
    transform: none;
    transition: transform 500ms;
}


@media screen and (min-width: 1700px) {
    .contener_slide {
        width: 70vw;
    }

    .slide {
        height: 17vw;
        width: 17vw;
    }
}

@media screen and (max-height: 500px) {
    .contener_slide {
        transform: scale(0.8) translateY(-8vh);
    }
}


.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide img:hover {
    opacity: 70%;
}

/*************************************/

.popup {
    visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(20, 20, 20, 0.95);
    width: 100%;
    height: 100%;
}

@media (orientation : landscape) {
    .popupContenu {
        display: flex;
        flex-direction: row;
        align-content: center;
        justify-content: space-around;
        margin-top: auto;
        height: 75vh;
        margin-left: 2vw;
        margin-right: 2vw;
        transform: translateY(-3vh);
    }

    .popupIMG {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .popupIMG img {
        height: 100%;
        width: 100%;
        object-fit: contain;
    }

    .popupTXT {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-left: 2vw;
    }
}

@media (orientation : portrait) {
    .popupContenu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 90%;
        height: 90%;
        margin-top: auto;
    }

    .popupIMG {
        height: 60%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .popupIMG img {
        height: 100%;
        width: 100%;
        object-fit: contain;
    }

    .popupTXT {
        height: 40%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}


.popup a {
    /*croix ppur fermer*/
    width: 5vh;
    position: fixed;
    top: 85px;
    right: 20px;

    transform: none;
    transition: transform 500ms;
}

.popup a:hover {
    transform: scale(1.1) rotate(90deg);
}



.popup:target {
    visibility: visible;
}

.popup p {
    color: white;
    font-size: 25px;
    text-align: justify;
}



/*  CONTACT  */

#contact {
    background-color: #F9C72B;
    height: 800px;
    /*    height 100vh;*/

    display: flex;
    flex-direction: column;
}

@media screen and (max-width: 537px) {
    #contact {
        height: auto;
    }
}



/*************** FORMULAIRE ****************/
#divcontact {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

#coordonees {
    /*        width: 30%;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-align: center;
}

#coordonees p {
    margin-bottom: 0;
}

#coordonees a {
    color: black;
    text-decoration: none;
}

#coordonees a:hover {
    color: black;
    text-decoration: underline;
}


form {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 20px;
    height: 85%;
}

fieldset {
    width: 30vw;
    border: none;
}

fieldset div {
    display: flex;
    flex-direction: column;
}

#contact input {
    height: 20px;
    border-radius: 5px;
    border-style: none;
    margin-bottom: 10px;
}

#contact textarea {
    border-radius: 5px;
    resize: none;
}

#divBoutonEnvoyer {
    height: 40px;
}

#contact button {
    font-family: 'Indie Flower', cursive;
    padding: 10px 30px;
    border-radius: 20px;
    background-color: black;
    border-style: none;
    color: white;
}

#contact button:hover {
    font-size: 75%;
}


/*  RESEAUX SOCIAUX  */
.div-reseaux {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

#titre-reseaux {
    margin-left: 40px;
}

#reseaux {
    display: flex;
    justify-content: space-around;
}

#reseaux a:hover {
    transform: scale(1.1);
}


/**************** FOOTER *****************/

footer {
    margin-top: 20px;
    display: flex;
    background-color: black;
    justify-content: center;
}

footer p {
    font-size: 12px;
    color: white;
    text-align: center;
}

abbr {
    text-decoration: none
}


/*************************************************/

/****************** RESPONSIVE ******************/

@media (orientation : portrait) {
    #presentation {
        min-height: 0;
        height: auto;
    }

    #competence {
        height: auto;
        /*    min-height: 700px;*/
    }

    #portraitChinois {
        height: auto;
    }

    #realisation {
        height: auto;
    }
}

@media screen and (width: 1280px) and (height: 1024px) {
    #realisation {
        min-height: 100vh;
    }
}

@media screen and (max-width: 441px) and (max-height: 823px) {
    section {
        height: auto;
    }

    #competence {
        height: auto;
        min-height: 100vh;
    }


    #presentation {
        height: auto;
    }

    #divTitre {
        margin-bottom: 15vh;
        margin-right: 6vw;
    }

    #contact {
        height: auto;
    }
}


/****************** FIN ******************/
