@font-face {
    font-family: "VT323";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/asset/fonts/vt323.ttf") format("truetype");
}
@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/asset/fonts/space_grotesk.ttf") format("truetype");
}
@font-face {
    font-family: "Anton";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/asset/fonts/anton.ttf") format("truetype");
}
::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}
::-webkit-scrollbar-track {
    background: rgba(255,255,255,.06);
}
::-webkit-scrollbar-thumb {
    background: var(--color-purple);
    border: 2px solid var(--color-black);
    border-radius: 0;
}

body {
    width: 100dvw;
    height: 100dvh;
    font-family: var(--font-body);
    font-size: var(--font-size-small);
    margin: 0;
    background-color: var(--color-grey);
}
* {
    box-sizing: border-box;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
}
h3 {
    font-weight: normal;
    font-size: clamp(20px, 2.1vw, 27px);
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
}
.icon, .logo {
    width: 20px;
    height: 20px;
}
.logo path:first-child {
    fill: var(--color-purple);
}
.logo path:last-child {
    fill: var(--color-yellow);
}
#progress-bar {
    position: fixed;
    top: var(--size-header);
    left: 0;
    right: 0;
    z-index: 60;
    height: 5px;
    background: rgba(255, 255, 255, .08);
}

#progress-bar div {
    display: block;
    height: 100%;
    width: 0;
    background: var(--color-purple);
    transition: width 0.5s var(--transition-pop), background-color 0.62s var(--transition-pop);
}
main {
    position: relative;
    padding-top: calc(var(--size-header) + 5px);
    padding-bottom: var(--size-footer);
    height: 100%;
    width: 100%;
    overflow: hidden;
    transition: background-color 0.62s var(--transition-pop);
}
main:has(#intro.selected) {
    background-color: var(--color-black);
}
main:has(#activity.selected) {
    background-color: var(--color-purple);
}
main:has(#activity.selected) #progress-bar div {
    background-color: var(--color-grey);
}
main:has(#prestation.selected) {
    background-color: var(--color-white);
}
main:has(#contact.selected) {
    background-color: var(--color-yellow);
}
main:has(#error-404.selected) {
    background-color: var(--color-white);
}
.page {
    position: absolute;
    display: none;
    height: calc(100% - (var(--size-header) + var(--size-footer) + 5px));
    width: calc(100%);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 18px var(--size-edge);
}
.page.selected {
    display: flex;
}
.page .wrap {
    margin: auto;
    max-width: 1120px;
    /*display: flex;
    flex-direction: column;*/
}
.page .path {
    font-family: var(--font-pixel);
    font-size: var(--font-size-small);
    letter-spacing: 3px;
    text-transform: uppercase;
    display: inline-block;
}
.page h2 {
    margin: 6px 0 16px;
    font-family: var(--font-display);
    font-size: var(--font-size-big);
    line-height: 1.08;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.page [data-reveal] {
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.45s var(--transition-pop), transform 0.45s var(--transition-pop);
}
.page [data-reveal="false"] {
    opacity: 0;
    transform: translateY(22px);
}
.page [data-reveal="true"] {
    opacity: 1;
    transform: translateY(0);
}



#time-line {
    padding: 30px 0;
    position: relative;
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
    flex-direction: column;
}
#time-line p {
    margin: 0;
}
#time-line .progress {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--color-black);
}
#time-line .progress div {
    background-color: var(--color-purple);
    /*transition: height 0.4s var(--transition-pop);*/
}
#time-line .checkpoint {
    width: calc(50% - 18px);
}
#time-line .header {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}
#time-line .checkpoint:nth-child(even) {
    margin-left: calc(50% + 18px);
}
#time-line .checkpoint:nth-child(odd) {
    margin-right: calc(50% + 18px);
}
#time-line .checkpoint:nth-child(odd) .header {
    flex-direction: row-reverse;
}

#time-line .index {
    font-family: var(--font-pixel);
    text-transform: uppercase;
    font-size: var(--font-size-small);
    letter-spacing: 3px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    height: 30px;
    background-color: var(--color-yellow);
    position: relative;
}
#time-line .index:before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    border-style: solid;
    border-width: 15px 10px 15px 0px;
    border-color: transparent var(--color-yellow) transparent transparent;
}
#time-line .index:after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -26px;
    border-radius: 10px;
    height: 8px;
    width: 8px;
    background-color: var(--color-white);
    border: 4px solid var(--color-black);
}
#time-line .checkpoint:nth-child(odd) .index:before {
    left: auto;
    right: -10px;
    border-style: solid;
    border-width: 15px 0 15px 10px;
    border-color: transparent transparent transparent var(--color-yellow);
}
#time-line .checkpoint:nth-child(odd) .index:after {
    left: auto;
    right: -26px;
}
#time-line .title {
    font-family: var(--font-display);
    /*text-transform: uppercase;*/
    font-weight: normal;
}
#time-line .checkpoint:nth-child(odd) .title {
    text-align: right;
}
#time-line .content {
    interpolate-size: allow-keywords;
    font-size: var(--font-size-min);
    height: 0;
    transition: height 0.5s var(--transition-pop);
    overflow: hidden;
}

#time-line .checkpoint.selected .content {
    height: auto;
}
#time-line .checkpoint.selected .index:after {
    border: 4px solid var(--color-purple);
}
#time-line .checkpoint:has(~ .selected) .index:after {
    border: 4px solid var(--color-purple);
}


#context-window:has(#activity-dev, #activity-ux, #activity-conseil) .window {
    background-color: var(--color-purple) !important;
}
#context-window:has(#activity-dev, #activity-ux, #activity-conseil) .content {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.06));
}
#activity-dev, #activity-ux, #activity-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#context-window:has(#activity-dev, #activity-ux, #activity-conseil) .icon-btn {
    background-color: var(--color-purple);
}
#context-window:has(#activity-dev, #activity-ux, #activity-conseil) .icon-btn:hover {
    background-color: var(--color-black);
}
#context-window:has(#activity-dev, #activity-ux, #activity-conseil) .icon-btn:hover * {
    fill: var(--color-purple);
}


#privacy-policy, #legal {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
#privacy-policy section, #legal section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#privacy-policy h3, #legal h3 {
    margin-bottom: 10px;
}
#privacy-policy .text-btn, #legal .text-btn {
    font-family: var(--font-body);
    color: var(--color-black);
    padding: 0;
    gap: 10px;
}
#privacy-policy .text-btn:hover, #legal .text-btn:hover {
    color: var(--color-blue);
}
#privacy-policy .text-btn:hover .icon *, #legal .text-btn:hover .icon * {
    fill: var(--color-blue);
}
#legal ul {
    list-style: none;
    padding: 0;
}
#privacy-policy .updated-at, #privacy-policy .response-delay {
    font-family: var(--font-pixel);
}
#manager-contact {
    max-width: 300px;
    padding: 10px;
    margin-left: 15px;
    position: relative;
    border: 2px solid var(--color-black);
}
#manager-contact p {
    position: absolute;
    top: 0;
    left: -17px;
    transform: translateY(-50%);
    padding: 3px 6px;
    background-color: var(--color-white);
    border: 2px solid var(--color-black);
}
#manager-contact ul {
    list-style: none;
    padding: 0;
    margin-top: 20px !important;
}

#error-404 .wrap {
    justify-content: start;
}

@media (max-width: 370px) {
    .counter {
        display: none;
    }
}
@media (max-width: 640px) {
    footer span {
        font-size: 14px;
    }
}
@media (max-width: 680px) {
    #menu-footer span, #menu-footer a {
        font-size: 14px;
    }
}
/*@media (max-width: 400px) {
    .field[data-field="first-name"], .field[data-field="last-name"], .field[data-field="email"], .field[data-field="phone"] {
        width: 100%;
    }
}*/
