/*---------------------*/
/* ------GENERAL------ */
/*---------------------*/

body {
    margin: 0;
    padding: 0;
    background: #F0F0F0;
    position: relative;
    height: 100%;
}


img {
    width: 100%;
    height: auto;
}

video {
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

.hamburger {
    display: none;
}

.jaune {
    stroke: var(--jaune-pale);
}

@font-face {
    font-family: 'OCR A';
    src: url('../fonts/OCRAEXT.TTF');
}

@font-face {
    font-family: 'MuseoSans-100';
    src: url('../fonts/MUSEOSANS-100.OTF');
}

@font-face {
    font-family: 'MuseoSans-300';
    src: url('../fonts/MUSEOSANS-300.OTF');
}

:root {
    --jaune-pale: #FFF7CD;
    --jaune-blanc: #FFFDF0;
    --vert: #434841;
    --vert-clair: #889683;
    --beige: #94897C;
    --marron: #4C3D2F;
    --vert-fonce: #30332F;
}

h1,
h2,
h3,
h4,
span {
    font-weight: 1;
}

@view-transition {
    navigation: auto;
}

@-webkit-keyframes honeycomb {

    0%,
    20%,
    80%,
    100% {
        opacity: 0;
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    30%,
    70% {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes honeycomb {

    0%,
    20%,
    80%,
    100% {
        opacity: 0;
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    30%,
    70% {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

.honeycomb-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--vert-fonce);
    z-index: 9999;
    animation: fadeOut 0.5s ease forwards;
    animation-delay: 2.1s;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

.honeycomb {
    position: relative;
    width: 100px;
    height: 100px;
}

.honeycomb div {
    position: absolute;
    width: 24px;
    height: 12px;
    margin-top: 6px;
    background: #f3f3f3;
    animation: honeycomb 2.1s infinite backwards;
}

.honeycomb div:before,
.honeycomb div:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
}

.honeycomb div:after {
    top: -6px;
    border-bottom: 6px solid #f3f3f3;
}

.honeycomb div:before {
    bottom: -6px;
    border-top: 6px solid #f3f3f3;
}

.honeycomb div:nth-child(1) {
    left: -28px;
    top: 0;
    animation-delay: 0s;
}

.honeycomb div:nth-child(2) {
    left: -14px;
    top: 22px;
    animation-delay: 0.1s;
}

.honeycomb div:nth-child(3) {
    left: 14px;
    top: 22px;
    animation-delay: 0.2s;
}

.honeycomb div:nth-child(4) {
    left: 28px;
    top: 0;
    animation-delay: 0.3s;
}

.honeycomb div:nth-child(5) {
    left: 14px;
    top: -22px;
    animation-delay: 0.4s;
}

.honeycomb div:nth-child(6) {
    left: -14px;
    top: -22px;
    animation-delay: 0.5s;
}

.honeycomb div:nth-child(7) {
    left: 0;
    top: 0;
    animation-delay: 0.6s;
}

@keyframes smoothAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.smooth-appear {
    opacity: 0;
    animation: smoothAppear 0.8s ease-out forwards;
    animation-delay: 2.5s;
}


/* LANDING */

.landing {
    position: relative;
    height: 100vh;
    background-color: #000000;
    overflow: hidden;
    padding-inline: 5%;
    padding-top: 3%;
    font-family: 'OCR A';
}

.landing::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../media/landingpic_oberle.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 30%;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 1.5s ease-out 2s,
        transform 1.5s ease-out 2s,
        background-position 1.5s ease-out 2s;
    z-index: 0;
}


.landing.revealed::before {
    opacity: 1;
    transform: translateY(0);
    background-position: center 55%;
}

/* HEADER */

header {
    display: flex;
    z-index: 2;
    justify-content: right;
    gap: 32px;
    position: fixed;
    right: 5%;
    font-family: OCR A;
}

header>a {
    text-decoration: none;
}

.header-button {
    color: var(--jaune-pale);
    font-size: 18px;
    filter: drop-shadow(black 1px 1px 3.4px);
    transition: 0.3s ease;
}

.header-button:hover {
    color: var(--vert-clair);
}

.back {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgb(20, 20, 20);
    border: none;
    font-family: OCR A;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 0px 4px var(--vert-fonce);
    cursor: pointer;
    transition-duration: 0.3s;
    overflow: hidden;
    position: fixed;
    top: 32px;
    left: 32px;
    z-index: 3;
}

.svgIcon {
    width: 30px;
    transition-duration: 0.3s;
}

.back:hover {
    width: 140px;
    border-radius: 50px;
    transition-duration: 0.3s;
    background-color: var(--vert);
    box-shadow: 0px 0px 0px 2px var(--vert-clair);
    align-items: center;
}

.back:hover .svgIcon {
    transition-duration: 0.3s;
    transform: translateY(-200%);
}

.back::before {
    position: absolute;
    bottom: -20px;
    content: "Accueil";
    color: white;
    font-size: 0px;
}

.back:hover::before {
    font-size: 16px;
    opacity: 1;
    bottom: unset;
    transition-duration: 0.3s;
}

.credit {
    position: absolute;
    font-size: 10px;
    font-family: OCR A;
    bottom: 24px;
    right: 10px;
    color: rgba(255, 255, 255, 0.822);
    animation: smoothAppear 0s ease-out forwards;
}

.credit>a {
    color: rgba(255, 255, 255, 0.822);
}

/* GROS TITRE & ANIMATION */

.name {
    margin-top: 60px;
    color: var(--jaune-pale);
    border: none;
    opacity: 0;
    animation: smoothAppear 0s ease-out forwards;
}

.name>h1 {
    font-size: 7vw;
    margin: 0;
    width: 0%;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: inset -0.05em 0 0 0 var(--jaune-pale);
    animation: writing 1.5s 0.25s steps(12, end) forwards,
        blink 1.5s 0.8s steps(1, end) forwards;
}

@keyframes writing {
    to {
        width: 12ch;
    }
}

@keyframes writingb {
    to {
        width: 18ch;
    }
}

@keyframes blink {

    0%,
    100% {
        box-shadow: inset -0.05em 0 0 0 transparent;
    }

    50% {
        box-shadow: inset -0.05em 0 0 0 var(--jaune-pale);
    }
}

.name>h2 {
    font-size: 4.6vw;
    margin: 0;
    width: 0%;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: inset -0.05em 0 0 0 var(--jaune-pale);
    animation: writingb 1.5s 0.25s steps(18, end) forwards,
        blink 0.8s infinite steps(1, end);
    animation-delay: 1.5s;
}

.cta-button-container {
    display: flex;
    justify-content: left;
    gap: 20px;
    margin-top: 60px;
}

.cta-button-container>a {
    text-decoration: none;
}

.cta-button {
    background-color: var(--vert);
    padding: 20px 32px;
    color: var(--jaune-blanc);
    text-align: center;
    border-radius: 10px;
    font-size: 16px;
    transition: 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.1);
}

.citation {
    background-color: var(--jaune-pale);
    padding: 1%;
    padding-inline: 3%;
    font-family: OCR A;
    text-align: center;
    color: var(--marron);
    cursor: default;
}

.citation>h2 {
    font-size: 24px;
}

.citation>p {
    font-size: 16px;
}

.citation>p {
    transition: 0.2s ease;
}

.citation>p:hover {
    filter: drop-shadow(0px 0px 10px rgba(255, 255, 64, 0.704));
}

.services {
    position: relative;
    overflow: hidden;
    background-color: var(--vert);
    font-family: OCR A;
    padding-bottom: 5%;
    padding-top: 1%;
    background-image: url('../media/grunge.png');
    background-size: cover;
    background-repeat: repeat;
}

.projects-type-container {
    padding: 2% 10%;
    display: flex;
    justify-content: center;
    gap: 5%;
}

.projects-type-container>a {
    color: var(--jaune-blanc);
    text-decoration: none;
    position: relative;
}

.projects-type-container>a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 0.2vh;
    background-color: var(--jaune-blanc);
    width: 0%;
    transition: width 0.3s ease;
}

.projects-type-container>a:hover::after,
.projects-type-container>a.active::after {
    width: 100%;
}


.projects-vignette-container {
    padding-inline: 10%;
    padding-top: 24px;
    display: grid;
    flex-wrap: wrap;
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 32px;
    column-gap: 64px;
}

.project-vignette>div {
    position: relative;
    width: fit-content;
    cursor: pointer;
}

.project-vignette>div>a>img,
.project-vignette>div>a>video {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 15px;
    transition: 0.3s ease;
}

.project-vignette>div:nth-child(1) {
    transition: 0.3s ease;
}

.project-vignette>div:nth-child(1):hover {
    transform: translateY(-10px)
}

#project-title {
    view-transition-name: title;
}

.project-vignette .overlay {
    position: absolute;
    border-radius: 15px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.project-vignette .overlay-text {
    color: white;
    font-size: 24px;
    text-align: center;
    padding: 10px;
}

.project-vignette:hover .overlay {
    opacity: 1;
}

.detail-project-vignette {
    max-width: 600px;
}

.detail-project-annexe,
.clickable-annexe {
    transition: 0.1s ease;
}

.detail-project-annexe:hover,
.clickable-annexe:hover {
    filter: brightness(1.1);
}

.detail-project-vignette>img,
.detail-project-vignette>video {
    max-height: 700px;
}

.bottom-button {
    display: flex;
    justify-content: center;
}

.bottom-button>.cta-button {
    background-color: var(--jaune-pale);
    color: var(--marron);
    font-size: 16px;
}

.vignette-service-info>h2 {
    color: var(--jaune-pale);
    font-family: MuseoSans-300;
    font-weight: 900;
}

.vignette-service-info {
    color: var(--jaune-pale);
    font-family: MuseoSans-100;
}

.vignette-service-info>a,
.vignette-service-info>p {
    color: var(--jaune-pale);
    padding: 0;
    font-size: 16px;
    margin-bottom: 4px;
    transition: 0.3s ease;
}

.vignette-service-info>a:hover {
    color: var(--vert-clair);
}

.b {
    background-color: var(--marron);
    color: var(--jaune-pale);
}

.about {
    padding-inline: 22%;
    background-color: var(--jaune-blanc);
    padding-top: 85px;
    margin: 0;
}

.about-text>h3 {
    font-family: OCR A;
    font-size: 48px;
    color: var(--marron);
}

.about-text>p {
    font-family: MuseoSans-100;
    font-size: 16px;
    color: var(--marron);
    margin-bottom: 32px;
}

.about-img>.fillpic {
    position: relative;
}

.about-img>.fillpic:first-child {
    position: relative;
    margin-right: 20px;
    margin-bottom: 20px;
}

.about-img>.fillpic:last-child {
    position: relative;
    margin-left: 20px;
    margin-top: 20px;
}

.about-img>h3,
.about-img>p {
    display: none;
}

.about-container {
    display: grid;
    justify-content: center;
    grid-template-columns: 0.8fr 1fr;
    gap: 24px;
}

.steps {
    padding-inline: 10%;
    background-color: var(--jaune-blanc);
    margin: 0;
    padding-top: 10px;
    padding-bottom: 5%;
}

.steps>h3 {
    font-family: OCR A;
    font-size: 48px;
    color: var(--marron);
    text-align: center;
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    color: white;
    gap: 36px;
}

.steps-container>div {
    background-color: var(--beige);
    border-radius: 10px;
    padding: 0 18px;
    transition: 0.3s ease;
}

.steps-container>div:hover {
    background-color: var(--marron);
}

.step-title {
    display: flex;
    gap: 8px;
    align-items: center;
}

.step-title>h4 {
    font-family: OCR A;
    font-size: 24px;
}

.steps-container>div>p {
    font-family: MuseoSans-100;
    font-size: 16px;
}

.icon-step {
    width: 60px;
}

.steps>.cta-button-container {
    font-family: OCR A;
    display: flex;
    justify-content: center;
}

.steps>.cta-button-container>.cta-button {
    font-size: 20px;
}

.steps>.partners {
    margin-top: 32px;
    font-size: 24px;
}

.partners-container {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.partners-icon {
    width: 100px;
}

.partners-icon>a>img {
    transition: 0.3s ease;
    cursor: pointer;
}

.partners-icon>a>img:hover {
    filter: brightness(0) saturate(20%) invert(50%);
}

.realisations {
    padding-top: 3%;
    padding-bottom: 5%;
    background-color: var(--vert);
    position: relative;
    overflow: hidden;
}

.contact {
    overflow: hidden;
    position: relative;
}

.realisations>div:nth-child(2) {
    margin-top: 10%;
}

.bandeau-texte {
    padding-top: 5%;
    width: 100%;
    overflow: hidden;
    transform-origin: top right;
    z-index: 1;
    font-family: OCR A;
    font-size: 80px;
    font-weight: 1;
    pointer-events: none;
}

.services>.bandeau-texte,
.details>.bandeau-texte,
.contact>.bandeau-texte {
    transform-origin: center;
    margin-top: 0;
    transform: rotate(-90deg);
    position: absolute;
    margin-bottom: -35%;
    bottom: 0;
    top: 0;
    z-index: 0;
    opacity: 25%;
}

.details>.bandeau-texte>.bandeau-contenu span {
    font-size: 100px;
    margin-bottom: 50px;
}

.bandeau-contenu {
    display: flex;
}

.bandeau-contenu span {
    white-space: nowrap;
    font-size: 80px;
    text-align: left;
    margin-inline: 10px;
}

.bandeau-contenu span>span {
    margin-left: 25px;
}

.projects {
    color: #FFF7CD;
    font-size: 80px;

}

.real {
    color: #B1AA89;
    font-size: 80px;
}

.contact>.bandeau-texte>.bandeau-contenu>span>.projects {
    color: var(--vert);
}

.contact>.bandeau-texte>.bandeau-contenu>span>.real {
    color: var(--vert-clair);
}

.contact>.bandeau-texte {
    opacity: 100%;
}

@keyframes defilement-horizontal {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

.realisations>.realisations-vignette-container {
    padding-inline: 10%;
    padding-top: 5%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
}

.realisations-vignette {
    overflow: hidden;
    position: relative;
}

.media-wrapper img,
.media-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}

.realisations-vignette:hover .media-wrapper img,
.realisations-vignette:hover .media-wrapper video {
    filter: brightness(0.3);
}

.texte-par-dessus {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    text-align: left
}

#project-title {
    font-family: OCR A;
    color: var(--jaune-blanc);
    top: 10px;
    left: 10px;
    text-decoration: none;
    font-size: 24px;
    width: 100%;
    filter: drop-shadow(black 1px 1px 3.4px);
}

.realisations-vignette img {
    transition: filter 0.3s ease;
}

.realisations-vignette:hover img {
    filter: brightness(0.1);
}

.realisations-vignette.horizontal {
    aspect-ratio: 16 / 9;
}

.realisations-vignette.vertical {
    aspect-ratio: 9 / 16;
    grid-row: span 3;
}

.realisations-vignette img,
.realisations-vignette video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.3s ease;
}

/* DETAILS */

.details {
    background-color: var(--vert);
    padding-top: 2%;
    padding-bottom: 3%;
    min-height: 70vh;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.background-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    filter: blur(8px);
    pointer-events: none;
    z-index: 0;
}

.vignette-info-container {
    padding-top: 5%;
    padding-inline: 20%;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    justify-content: center;
    gap: 16px;
    z-index: 1;
}

.vignette-info-container>div {
    font-family: MuseoSans-100;
    color: var(--jaune-blanc);
    margin-bottom: 32px;
    margin-top: 5%;
}

.detail-project-vignette {
    position: relative;
    width: 100%;
    height: fit-content;
    cursor: pointer;
    background-color: black;
}

.detail-project-vignette iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
}

.play-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    width: 64px;
    height: 64px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.detail-project-vignette:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.15);
}

.annexe-container {
    padding-inline: 20%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
}

.vignette-info-container>div>h2 {
    font-family: MuseoSans-300;
}

.vignette-info-container>div>.cta-button-container {
    display: flex;
    justify-content: left;
    font-family: OCR A;
}

.vignette-info-container>div>.cta-button-container>a>.cta-button {
    background-color: var(--jaune-pale);
    color: var(--marron);

}

/* Overlay plein écran */
.annexe-overlay {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    padding: 10px;
}

/* Image/vidéo agrandie */
.annexe-overlay img,
.annexe-overlay video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 0 25px var(--jaune-pale);
    object-fit: contain;
    background-color: rgb(0, 0, 0);
}

/* Bouton fermer "X" */
.annexe-close-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 3;
    user-select: none;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.annexe-close-btn:hover {
    background: var(--jaune-pale);
    color: var(--vert-fonce);
}

/* FOOTER */

footer {
    background-color: var(--vert-fonce);
    color: white;
    font-family: OCR A;
    padding-inline: 20%;
    padding-block: 1%;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: center;
    font-size: 24px;
}

.footer-column {
    display: flex;
    flex-direction: column;

}

.footer-column>h4 {
    margin-bottom: 16px;
    font-size: 20px;
}

.footer-column>a {
    text-decoration: none;
    font-size: 16px;
    color: white;
    transition: 0.3s ease;
}

.footer-column>a:hover {
    color: var(--vert-clair);
}

.copyright {
    margin-top: 7%;
    font-size: 20px;
    text-align: center;
}

.update {
    font-size: 13px;
    text-align: center;
    margin-top: 8px;
}

.mentions-legales,
.confidentialite {
    padding-top: 3%;
    padding-bottom: 5%;
    padding-inline: 5%;
    background-color: var(--vert);
    font-family: MuseoSans-100;
    color: var(--jaune-pale);
}

.mentions-legales>h2,
.confidentialite>h2 {
    font-size: 40px;
}

.mentions-legales>h3,
.confidentialite>h3 {
    font-size: 24px;
}

.mentions-legales>p,
.confidentialite>p {
    font-size: 16px;
    margin-bottom: 4px;
}

.mentions-legales>p>a,
.confidentialite>p>a {
    color: var(--jaune-pale);
    text-decoration: underline;
}