@font-face {
    font-family: 'Brilon';
    src: url('fonts/brilon-11-regular.ttf') format('truetype');
}

@font-face {
    font-family: 'JakartaSans';
    src: url('fonts/PlusJakartaSans.ttf') format('truetype');
}

@font-face {
    font-family: 'JakartaSans';
    src: url('fonts/PlusJakartaSans-Italic.ttf') format('truetype');
    font-style: italic;
}

html { 
    background-color: transparent;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #0C142E;
}

body::after {
    display: none;
    content: url(bg_primard.png);
}

section {
    background-color: #0C142E;
}

p {
    font-family: JakartaSans;
    font-size: 12px;
    line-height: 24px;
    letter-spacing: 0.6px;
    font-weight: 300;
    color: #0C142E;
}

a {
    text-decoration: none !important;
    color: white;
}

.hidden {
    opacity: 0;
}

.visible {
    opacity: 1;
    visibility: visible;
    display: block;
}

.container {
    width: 100%;
    margin: auto auto;
    padding: 28px 28px;
    box-sizing: border-box;
}

.content {
    height: 100%;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
}

.row {
    width: 100%;
}

.bg-light {
    background-color: #EFEFEF;
}

.bg-dark {
    background-color: #0C142E;
}

#loading-screen {
    height: 100vh;
    width: 100vw;
    position: fixed;
    inset: 0;
    z-index: 888;
    display: flex;
    overflow: hidden;
    transition: opacity 2s linear, visibility 2s linear;
}

#loading-screen svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: auto auto;
    z-index: 999;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}


#logo_svg_loading {
    width: 207px;
    height: 107px;
}

#key_svg {
    opacity: 1;
    transition: opacity 1s ease;
}

#key_svg.hide {
    opacity: 0;
} 

#logo_loader {
    border-radius: 50%;
    z-index: 950;
    animation: appear 2s 4s ease forwards, 5s spinner linear infinite;

}


#logo_loader.visible {
    visibility: visible;
    opacity: 1;
}

.panel {
    background-color: #0C142E;
    z-index: 900;
    opacity: 1;
    width: 100%;
    height: 100%;
    transition: opacity 4s ease;
    box-sizing: border-box;
}

.panel.visible {
    opacity: 1;
}


.panel-left {
    border-right: 0px solid rgba(255, 255, 255, 0);
    transition: border-right 1s ease-in, transform 4s ease-in;
}

.panel-right.visible {
    border-left: 1px solid rgba(255, 255, 255, 1);
}
.panel-left.visible {
    border-right: 1px solid rgba(255, 255, 255, 1);
}

.panel-left.opened {
    transform: translateX(-100vw);
}

.panel-right {
    border-left: 0px solid rgba(255, 255, 255, 0);
    transition: border-left 1s ease-in, transform 4s ease-in;
}

.panel-right.opened {
    transform: translateX(100vw);
}


.svg_text {
    opacity: 1;
    animation: disappear 2s 2s ease forwards;
    animation-iteration-count: 1;
}

#loaded-content {
    visibility: hidden;
    display: none;
    opacity: 0;
    transition: opacity .4s ease, visibility .4s ease-in-out;
}

#loaded-content.visible {
    display: block;
    visibility: visible;
    opacity: 1;
}

#hero {
    height: 100vh;
    width: 100vw;
    background: 
        linear-gradient(to right bottom, rgba(12, 20, 46, 0.8) 0%, rgba(12, 20, 46, 0.55) 25%, rgba(12, 20, 46, 0) 100%),
        url(bg_primard.png) no-repeat;
    background-position: 70% top;
    background-size: cover;
}

#bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: none;
}

#hero-cta {
    opacity: 0;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 44px;
    width: 100%;
    align-items: center;
}

#hero-cta.animate {
    animation: appear 2s 5s ease forwards;
}

#hero-cta div {
   margin: auto;
   text-align: center;
}

#hero-text {
    font-family: Brilon;
    font-size: 20px;
    color: white;
}

#citation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    font-family: PlusJakartaSans;
    font-style: italic;
    font-weight: lighter;
}

#citation p {
    color: white;
    
}

#citation-title {
    text-align: center;
    font-size: 16px;
    font-weight: normal;
}

#citation-content, #citation-sign {
    opacity: 0;
    text-align: center;
}

#citation-content.animate,
#citation-sign.animate {
    animation: appear 5s 2.5s ease forwards;
}


#citation-title, #citation-sign {
    font-family: Brilon;
}

#citation-sign {
    text-align: center;
}

#signature {
    font-family: Brilon;
    font-size: 16px;
    color: #0C142E;
    line-height: 36px;
    font-weight: lighter;
    letter-spacing: -0.7px;
}

#hero-button {
    background: linear-gradient(to right, white 50%, #0C142E 50%) left;
    background-size: 200% 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 260px;
    height: 54px;
    font-family: Brilon;
    font-size: 16px;
    background-color: white;
    color: #0C142E;
    alignement: middle;  
    transition: .5s ease-out;
}

#presentation {
    width: 100%;
    margin: 0 auto;
}

#presentation .content {
    height: 90%;
}

#avatar-presentation {
    margin-top: 32px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 16px;
    align-items: center;
}


.avatar {
    display: none;
}

.avatar-cropped {
    object-fit: cover;
    border-radius: 50%;
}

#tel-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

#tel-info p {
    font-weight: 300 !important;
    margin: 0;
}


#contact {
    padding-top: 20px;
    width: 100%;
    margin: 0 auto;
    background-color: #0C142E;
}

.contact-line {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
}

#contact-icon-aa {
    text-align: right;
}

#contact-icon-aa img {
    transform: scale(0.8);
}

#contact a, 
#contact p {
    font-family: JakartaSans;
    color: white;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.6px;
}

#contact a:hover,
#contact p:hover {
    font-weight: 600;
}

#contact .content {
    gap: 64px;
    margin: 28px 28px;
}


#presentation .content {
    animation: fade-in linear;
    animation-timeline: view();
    animation-range-start: cover;
    animation-range-end: 500px;
}

#contact .content {
    animation: fade-in linear;
    animation-timeline: view();
    animation-range-start: cover;
    animation-range-end: 500px;
}

.key-logo {
    margin-top: 42px;
    margin-bottom: 42px;
    width: 100%;
    text-align: center;
}

#key-logo-img.tel {
    transform: rotate(-45deg);
}

#key-logo-img.mail {
    transform: rotate(-30deg);
}

#key-logo-img.instagram {
    transform: rotate(-15deg);
}

#key-logo-img.linkedin {
    transform: rotate(0deg);
}

footer {
    bottom: 0;
    background-color: #0C142E;
}

#cgu {
    margin-top: 48px;
    font-size: 10px !important;
    color: white;
    font-weight: lighter !important;
    text-align: center;
}

#bottom-section {
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

._d {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
}

#d1.animate {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw_citation 1s ease forwards;
}

#d2.animate {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw_citation 1s 0.4s ease forwards;
}

#d3.animate  {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw_citation 1s 0.6s ease forwards;
}

#d4.animate {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw_citation 1s 0.8s ease forwards;
}

#d5.animate {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw_citation 1s 1s ease forwards;
}

#d6.animate {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw_citation 1s 1.2s ease forwards;
}

#d7.animate {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw_citation 1s 1.4s ease forwards;
}

#d8.animate {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw_citation 1s 1.6s ease forwards;
}

#d9.animate {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw_citation 1s 1.8s ease forwards;
}

#d10.animate {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw_citation 1s 2s ease forwards;
}

#d11.animate {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw_citation 1s 2.2s ease forwards;
}

.logo {
    opacity: 0;
    transition: opacity 3s 3s ease;
}

.logo.visible {
    opacity: 1;
}

/* xs */
@media (min-width: 475px) {
    
}

/* sm */
@media (min-width: 640px) {
}

/* md */
@media (min-width: 768px) {
}

/* lg */
@media (min-width: 1024px) {
    #logo_svg_loading {
        width: 400px;
        height: 198px;
    }

    #logo_loader {
        height: 300px;
        width: 296px;
    }

    #key-logo-img {
        scale: 1.5;
        transition: transform 0.4s ease-in;
    }

    #contact a, 
    #contact p {
        font-family: JakartaSans;
        color: white;
        font-size: 20px;
        font-weight: 400;
        letter-spacing: 1px;
        text-decoration: none;
    }

    #citation-title {
        text-align: center;
        font-size: 24px;
        font-weight: normal;
    }
    #hero-button:hover {
        background-color: #0C142E;
        color: white !important;
        background-position: right;
    }

    .content {
        height: 90%;
    }
    
    #signature {
        font-size: 20px;
        line-height: 36px !important;
        font-weight: lighter;
        letter-spacing: -0.7px;
    }

    #contact {
        height: 100%;
        width: 600px;
    }
    
    #avatar-presentation {
        flex-direction: row;
        justify-content: space-between;
        gap: 44px;
        align-items: flex-start;
        overflow: visible;
    }

    #avatar-presentation p {
        line-height: 26px;
    }

    .avatar {
        display: block;
    }

    .avatar-cropped {
        display: none;
    }

    

    #bottom-section {
        flex-direction: row;
    }

    #contact {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding-top: 52px;
        padding-bottom: 0;
    }
    

    #contact .content {
        margin: 0;
        height: 80vh;
        justify-content: center;
        gap: 96px;
    }

    .logo {
        width: 187px;
        height: 91px;
    }

    p {
        font-family: JakartaSans;
        font-size: 16px;
        line-height: 26px;
        letter-spacing: 0.6px;
        font-weight: 300;
        color: #0C142E;
    }

    #hero-cta {
        width: 50%;
        align-items: flex-start;
    }

    #hero-text {
        font-family: Brilon;
        font-size: 28px;
        color: white;
        width: 650px;
    }

    #hero-cta div {
        margin: 0;
        text-align: left;
    }

    #hero-button {
        width: 300px;
        height: 70px;
        font-size: 20px;
        text-align: center;
        line-height: 100%;
    }

    #citation {
        margin: auto;
        width: 450px;
    } 

    .container {
        width: 100%;
        margin: auto auto;
        padding: 44px 66px;
        box-sizing: border-box;
    }
}

/* xl */
@media (min-width: 1280px) {
    #contact {
        width: 750px;
    }
}

/* 2xl */
@media (min-width: 1536px) {
    #contact {
        width: 1200px;
    }
}


.draw_ {
    stroke-dasharray: 250;
    stroke-dashoffset: 250;
}


@keyframes draw_citation {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes bounce {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1)
    }
}

@keyframes appear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes disappear {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes draw_1 {
    50% {
        stroke-dasharray: 700;
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -700;
    }
}

@keyframes draw_2 {
    50% {
        stroke-dasharray: 700;
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 710;
    }
}

@keyframes spinner {
    to {
        transform: translate(-50%, -50%) rotate(1turn);
    }
}

@keyframes fade-in {
    from { scale: .9; opacity: 0;}
    to { scale: 1; opacity: 1;}
}