/*  =========== GENERAL =========== */
html {
    background-color: #1e1e1e;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: #dadada;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

a {
    color: #51af6e;
    text-decoration: underline;
}


/*  ============ HEADER ============ */
header {
    position: sticky;
    top: 0;
    z-index: 1;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(40, 40, 40, 0.8);
    backdrop-filter: blur(7px);
    padding: 0;
    text-decoration: none;
    color: #dadada;
    z-index: 1;
}

.navbouton {
    text-decoration: none;
    color: #dadada;
}

#pre-header {
    background-color: #3F3F3F;
    height: 1.2em;
}

nav.a {
    text-decoration: none;
}

.navbouton:hover {
    color: #51af6e;
}

.menu {
    Display: flex;
    justify-content: center;
}

.name, .navbouton {
    padding: 1em;
    font-size: 1.2em;
    font-family: 'Consolas', 'monaco', monospace;
}

.name {
    color: #51af6e;
    font-size: 1.6em;
}

.lateral {
    width: 20%;
}


/*  ============ FOOTER ============ */
.footer {
    display: flex;
    flex-direction: column;
    background-color: #282828;
    justify-content: center;
    align-items: center;
    height: 10em;
    margin-top: 8em;
}

.navfoot {
    display: flex;
    flex-direction: row;
}

#copyright {
    display: flex;
    flex-direction: column;
    font-family: 'Consolas', 'monaco', monospace;
}


/*  ========== Mise en page ========== */

.rubrique {
    display: flex;
    flex-direction: column;
}

@media screen and (min-width: 1000px) {
    .rubrique {
        flex-direction: row;
    }
}

.photopres {
    height: 500px;
    width: 500px;
    border: solid 3px #51af6e;
    margin: 1em;
    padding: 0;
    position: relative;
}

.photopres:hover {
    border: dashed #51af6e;
    box-shadow: black 0 4px 12px;
}

.pres {
    max-width: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

hr {
    width: 50%;
}

#titre {
    font-family: 'Consolas', 'monaco', monospace;
}


/*  =============== CV =============== */
#cvFrameContainer {
    width: fit-content;
    height: fit-content;
    position: relative;
    overflow: hidden;
}

#cvFrame {
    width: 38em;
    height: 56em;
}

@media screen and (min-width: 1000px) {
    #cvFrameContainer{
        width: fit-content;
        height: fit-content;
    }

    #cvFrame {
        width: 50em;
        height: 74em;
    }
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}


/*  ========== switch mode CV ========== */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3F3F3F;
    -webkit-transition: .4s;
    transition: .4s;
    box-shadow: inset black 0 2px 6px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #51af6e;
    -webkit-transition: .4s;
    transition: .4s;
    box-shadow: black 0 2px 6px;

}

input:checked + .slider {
    background-color: #ccc;
}

input:focus + .slider {
    box-shadow: inset black 0 2px 6px;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

#modeCV {
    display: flex;
    align-items: center;
}

.modeCVswitch {
    padding: 1em;
}


/*  ============== PHOTO ============== */
.photo {
    position: relative;
}

/*  =========== DECO PHOTO =========== */
.carre {
    background-color: #51af6e;
    height: 1em;
    width: 1em;
    transition-duration: 0.1s;
}

.c1 {
    position: absolute;
    top: 0.6em;
    left: 0.6em;
}

.photo:hover > .c1 {
    position: absolute;
    transform: scale(130%);
    transition-duration: 0.1s;
}

.c2 {
    position: absolute;
    top: 0.6em;
    right: 0.6em;
}

.photo:hover > .c2 {
    position: absolute;
    transform: scale(130%);
    transition-duration: 0.1s;
}

.c3 {
    position: absolute;
    bottom: 0.9em;
    right: 0.6em;
}

.photo:hover > .c3 {
    position: absolute;
    transform: scale(130%);
    transition-duration: 0.1s;
}

.c4 {
    position: absolute;
    bottom: 0.9em;
    left: 0.6em;
}

.photo:hover > .c4 {
    position: absolute;
    transform: scale(130%);
    transition-duration: 0.1s;
}


/*  ============ CAROUSEL ============ */
.slider-wrapper {
    padding: 1rem;
    margin: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: black 0 4px 12px;
    border-radius: 0.6em;
}

.slides-container {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    scroll-behavior: smooth;
    border-radius: 0.3em;
    background-color: #282828;
}

.slide {
    display: flex;
    flex-direction: row;
    width: 8rem;
    height: 100%;
    flex: 1 0 100%;
}

.carbouton {
    display: flex;
    justify-content: center;
}

.slide-arrow {
    margin: 1em 1em 0 1em;
    padding-left: 1em;
    padding-right: 1em;
}

.descri {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    width: 50%;
    margin: 3em;
}

.realimg {
    width: 50%;
}
@media screen and (max-width: 1280px) {
    .slide {
        flex-direction: column;
        width: 4rem;
    }
    .realimg, .descri{
        width: 100%;
        margin: 0;
    }
}


/*  ============ TITRES ============ */
h1, h2 {
    font-family: 'Consolas', 'monaco', monospace;
    color: #51af6e;
    font-weight: normal;
    transition-duration: 0.5s;
    max-width: 90%;
    padding-top: 2em;
}

h3 {
    font-family: 'Consolas', 'monaco', monospace;
    font-weight: normal;
}

h1:hover, h2:hover {
    transform: translateX(1em);
    transition-duration: 0.2s;
}


/*  =========== FORMULAIRE =========== */
.fenetre {
    background-color: #282828;
    box-shadow: black 0 4px 12px;
    padding: 1em;
    border-radius: 0.6em;
    transition-duration: 0.2s;
}

.fenetre:hover {
    transform: scale(101%);
    transition-duration: 0.2s;
}

fieldset {
    border-radius: 0.3em;
}

.champ {
    display: flex;
    flex-direction: column;
}

.coord {
    text-align: center;
}

input, button {
    border-radius: 0.3em;
    border-style: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    padding: 0.6em;
}

input:active {
    background-color: #51af6e;
}

button {
    background-color: #51af6e;
    font-family: 'Consolas', 'monaco', monospace;
    transition-duration: 0.2s;
    cursor: pointer;
}

button:hover {
    transform: scale(108%);
    transition-duration: 0.2s;
    box-shadow: black 0 2px 6px;;
}

textarea {
    border-radius: 0.3em;
    padding: 0.2rem 0.5rem;
    border-style: none;
    resize: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
}

.bi-linkedin {
    color: white;
    transition-duration: 0.2s;
}

.bi-linkedin:hover {
    color: #51af6e;
    transform: scale(112%);
    transition-duration: 0.2s;
}

.message {
    color: #51af6e;
    font-family: 'Consolas', 'monaco', monospace;
}