/*
    Théo SIEST - style.css
*/

/*
    Root variables for defining color values.
*/

:root
{
    --color-main: #c1ab88;
    --color-white: #f8f8f8;
    --color-gray: #a3a3a3;
    --color-dark-gray: #242424;
    --color-light-black: #0f0f0f;
    --color-black: #080808;
    --color-black-for-blur: #0808089f;
}

#wpadminbar {
    display: none !important;
}
html {
    margin-top: 0 !important;
}

/*
    Apply the 'Garet-Book' font family to all elements.
*/

*
{
    font-family: 'Garet-Book';
}

h1
{
    font-family: 'Garet-Heavy';
    color: var(--color-white);
}

h2
{
    font-size: 30px;
    color: var(--color-main);
    font-family: 'Garet-Heavy';
    text-transform: uppercase;
    margin: 10px;
    text-align: center;
}

h3
{
    color: var(--color-main);
    margin: 12px 0;
}

p
{
    color: var(--color-gray)
}

p
{
    color: var(--color-white);
}

a:hover
{
    color: var(--color-main) !important;
    transition: color 0.5s ease;
}

/*
    Define a @font-face rule for all fonts.
*/

@font-face
{
    font-family: Garet-Heavy;
    src: url(../font/Garet-Heavy.woff2);
}

@font-face
{
    font-family: Garet-Book;
    src: url(../font/Garet-Book.woff2);
}

@font-face
{
    font-family: Comfortaa;
    src: url(../font/Comfortaa.ttf);
}

/*
    Styling for the body elements.
*/

body
{
    background-color: var(--color-black);
    align-items: center;
    height: 100vh;
    justify-content: center;
    margin: 0;
    flex-direction: column;
}

/*
    Profile Section
*/

.profile-section
{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color-white);
    overflow: hidden;
    min-height: 400px;
    padding: 70px 0;
}

.profile-section h1
{
    text-shadow: 0 0 20px #00000087;
}

@media screen and (max-width: 782px)
{
    .profile-section
    {
        flex-direction: column;
    }
}

.profile-infos
{
    max-width: 1200px;
    display: flex;
    justify-content: flex-end;
    margin: auto;
    flex-direction: column;
    align-items: center;
}

.profile-banner
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.profile-photo
{
    border: 2px solid var(--color-black);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 1;
}

.profile-info
{
    max-width: 60%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-info p
{
    text-align: center;
    color: var(--white);
    text-shadow: 
    1px 1px 0 #00000033,
    -1px -1px 0 #00000033,
    1px -1px 0 #00000033,
    -1px 1px 0 #00000033,
    0 0 15px rgba(0, 0, 0, 1);
}

@media screen and (max-width: 782px)
{
    .profile-info p
    {
        text-shadow: 
            1px 1px 0 #00000033,
            -1px -1px 0 #00000033,
            1px -1px 0 #00000033,
            -1px 1px 0 #00000033,
            0 0 15px rgba(0, 0, 0, 1);
    }
}

.profile-bubble p
{
    display: block;
    text-align: center;
    font-size: 12px;
    background-color: var(--color-black-for-blur);
    border: 1px solid var(--color-dark-gray);
    padding: 4px 10px;
    border-radius: 50px;
    color: var(--white);
    display: inline;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/*
    Car
*/

.bulles-infos-section
{
    position: absolute;
    width: 100%;
    margin-top: -84px;
}

.bubble-container
{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.5s ease-out;
}

.driving-license-bubble
{
    color: var(--color-main);
    position: relative;
    left: 0;
    transition: left 0.5s ease-out;
    font-size: 30px;
    display: grid;
    justify-items: center;
    padding: 10px;
}

.driving-license-bubble span
{
    display: block;
    text-align: center;
    font-size: 16px;
    background-color: var(--color-black-for-blur);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-dark-gray);
    padding: 4px;
    border-radius: 8px;
    margin: 12px;
}

.driving-license-bubble span::after
{
    content: "";
    position: absolute;
    bottom: -10.5px;
    left: 50%;
    margin-left: -10px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--color-black-for-blur) transparent transparent transparent;
    display: block;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/*
    Compétences
*/

.image-container
{
    display: flex;
    justify-content: space-between;
    margin: 20px;
    border-radius: 8px;
    overflow: hidden;
}

@media screen and (max-width: 610px)
{
    .image-container
    {
        flex-direction: column;
    }

    .image-box
    {
        width: 100% !important;
    }
}

.image-box
{
    text-align: center;
    width: 50%;
    position: relative;
    height: 250px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.image-box img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-box h2,
.image-box p
{
    position: absolute;
    width: 100%;
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.image-box h2
{
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

.image-box p
{
    background: var(--color-black-for-blur);
    border: 1px solid var(--color-dark-gray);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    bottom: 10px;
    width: auto;
    padding: 4px 8px;
    margin: 0 10px;
    border-radius: 25px;
}

/*
    Sections
*/

section
{
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    background: var(--color-light-black);
    padding: 10px;
    border: 1px solid var(--color-dark-gray);
    border-radius: 8px;
    max-width: 1200px;
    margin: auto;
    margin-bottom: 40px;
}

section:first-of-type
{
    border-radius: 0;
    max-width: none;
}

section.visible,
section:first-of-type
{
    opacity: 1;
    transform: translateY(0);
}

section.experience article,
section.formation article,
section.benevolat article
{
    border: 1px solid var(--color-dark-gray);
    border-radius: 12px;
    padding: 10px;
    background: var(--color-light-black);
    margin-bottom: 15px;
}

section.experience p,
section.formation p,
section.benevolat p
{
    color: var(--color-white);
    font-size: 14px;
}

section.experience a,
section.formation a,
section.benevolat a
{
    color: var(--color-gray);
}

section.experience img,
section.formation img,
section.benevolat img
{
    background: #fff;
    border-radius: 8px;
}

.description
{
    color: var(--color-gray) !important;
}

/*
    Styling for the header elements.
*/

header
{
    top: 0;
    position: fixed;
    width: 100%;
    z-index: 100;
}

.header-contents
{
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    color: black;
}

header p
{
    font-family: 'Garet-Heavy';
    font-size: 26px;
    color: transparent;
    transition: all 0.3s ease;
}

header nav
{
    display: flex;
    align-items: center;
}

header nav a
{
    text-decoration: none;
    margin-right: 20px;
}

.navigation
{
    cursor: pointer;
    background: none;
    border: none;
    display: none;
}

.line
{
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px;
    border-radius: 12px;
    background-color: white;
    transition: all 0.3s ease;
    position: relative;
}

.menu ul
{
    list-style: none;
    padding: 0;
    display: flex;
}

.menu li
{
    margin-right: 20px;
}

.menu a
{
    text-decoration: none;
    color: #ffffff;
    text-shadow: 0 0 15px black;
}

header button
{
    box-shadow: none;
}

header button:hover
{
    border: none;
}

button
{
    background: var(--color-black);
    border: 1.4px solid var(--color-gray);
    box-shadow: 0 0 0 2px var(--color-black);
    border-radius: 5px;
    color: var(--color-gray);
    padding: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 15px;
}


button:hover
{
    border: 1.4px solid var(--color-main);
    color: var(--color-main);
}

@media screen and (max-width: 782px)
{
    header nav
    {
        display: none;
    }

    .navigation
    {
        display: block;
    }
}

/*
    Styling for the footer elements.
*/

footer
{
    padding-top: 5px;
    background: var(--color-black);
    bottom: 0;
    width: 100%;
    text-align: center;
    align-content: center;
    z-index: 100;
    box-shadow: 0px -20px 15px 0px var(--color-black);
}

.footer-contents
{
    width: calc(100% - 20px);
    margin: auto;
    border-top: 1px solid var(--color-dark-gray);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    transition: padding-top 0.25s ease;
}

@media screen and (max-width: 782px)
{
    .footer-contents
    {
        padding-top: 10px;
        flex-direction: column;
    }
}

footer p
{
    color: var(--color-gray);
    font-size: 14px;
}

footer a
{
    color: var(--color-main);
}

footer .social-icons a
{
    color: var(--color-gray);
    padding: 10px;
    font-size: 18px;
}