@font-face {
    font-family: "CaviarDreams";
    src: url("fonts/CaviarDreams.ttf");
    font-display: swap;
}

@font-face {
    font-family: "Noka";
    src: url("fonts/Noka.otf");
    font-display: swap;
}

@font-face {
    font-family: "NokaL";
    src: url("fonts/NokaLight.otf");
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    overflow-x: hidden;
    background: #ffffff;
    color: #000000;
    font-family: "NokaL", "Calibri", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

#loader {
    display: none;
}

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    width: 0%;
    height: 2px;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    transition: width 0.1s linear;
}

#progress-bar.done {
    opacity: 0;
    transition: opacity 0.6s ease 0.3s;
}

#sticky-zone {
    position: relative;
    height: auto;
}

#accueil {
    position: relative;
    top: 0;
    width: 100%;
    min-height: clamp(420px, 72vh, 720px);
    overflow: hidden;
    background: #ffffff;
    cursor: grab;
}

#accueil:active {
    cursor: grabbing;
}

#accueil.released {
    cursor: default;
    pointer-events: none;
}

#canvas-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)), url("img/series/photos/diner-thumb.webp");
    background-position: center;
    background-size: cover;
}

#canvas-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.container {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    visibility: visible;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.tube {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.line {
    position: absolute;
    display: flex;
    justify-content: center;
    color: #000000;
    font-family: "NokaL", "Arial", sans-serif;
    font-size: 25px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.char {
    display: inline-block;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

#liquid-filter {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

#ui-wrapper {
    position: fixed;
    top: 20px;
    left: 50%;
    z-index: 1000;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08), 0 0 3px rgba(0, 0, 0, 0.02);
    cursor: default;
    transform: translateX(-50%);
    white-space: nowrap;
}

#ui-effect,
#ui-tint,
#ui-shine {
    position: absolute;
    inset: 0;
    border-radius: 999px;
}

#ui-effect {
    z-index: 0;
    overflow: hidden;
    filter: url(#glass-distortion);
    isolation: isolate;
}

#ui-tint {
    z-index: 1;
    background: rgba(255, 255, 255, 0.22);
}

#ui-shine {
    z-index: 2;
    box-shadow:
        inset 2px 2px 1px 0 rgba(255, 255, 255, 0.55),
        inset -1px -1px 1px 1px rgba(255, 255, 255, 0.45);
}

#ui {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 13px 32px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: 14px;
    letter-spacing: 0.12em;
    list-style: none;
    pointer-events: auto;
}

#ui a {
    margin: 0 8px;
    color: rgba(0, 0, 0, 0.65);
    cursor: default;
    font-family: "NokaL", "Calibri", sans-serif;
    letter-spacing: 0.12em;
    transition: color 0.3s ease, transform 0.3s ease;
}

#ui a:hover {
    color: #0048ff;
    transform: scale(1.07);
}

.ui-sep {
    color: rgba(0, 0, 0, 0.62);
    font-size: 12px;
}

.portfolio-intro,
#contact.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #ffffff;
    color: #000000;
    text-align: center;
    text-transform: uppercase;
}

.portfolio-intro {
    min-height: 36vh;
    padding: clamp(64px, 9vw, 112px) 24px clamp(42px, 7vw, 88px);
}

.seo-section,
.workflow-section {
    padding: clamp(54px, 8vw, 104px) 24px;
    text-align: center;
}

.seo-section {
    background: #ffffff;
}

.workflow-section {
    background: #f8f8f8;
}

#contact.contact-section {
    min-height: 34vh;
    padding: clamp(54px, 8vw, 96px) 24px;
    transform: translateY(-18px);
}

#contact .contact-kicker,
.portfolio-intro .contact-kicker,
.seo-section .contact-kicker,
.workflow-section .contact-kicker {
    color: rgba(0, 0, 0, 0.74);
    font-family: "NokaL", "Calibri", sans-serif;
    font-size: 12px;
    letter-spacing: 0.28em;
}

.portfolio-intro h2,
.contact-section h2,
.seo-section h2,
.workflow-section h2 {
    max-width: min(680px, 90vw);
    margin-right: auto;
    margin-left: auto;
    font-family: "Noka", "Arial", sans-serif;
    font-size: clamp(13px, 2vw, 24px);
    font-weight: 400;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.portfolio-intro__text {
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
    color: rgba(0, 0, 0, 0.72);
    font-family: "CaviarDreams", "Calibri", sans-serif;
    font-size: 12px;
    line-height: 1.65;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
    text-transform: none;
}

.portfolio-intro__text + .portfolio-intro__text {
    margin-top: 14px;
}

.seo-section__grid,
.workflow-section__list {
    display: grid;
    width: min(980px, 100%);
    margin: 34px auto 0;
    gap: 18px;
    text-align: left;
}

.seo-section__grid {
    grid-template-columns: repeat(3, 1fr);
}

.workflow-section__list {
    grid-template-columns: repeat(3, 1fr);
}

.seo-section article,
.workflow-section article {
    min-width: 0;
}

.seo-section h3,
.workflow-section h3 {
    margin-bottom: 10px;
    color: #000000;
    font-family: "Noka", "Arial", sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.seo-section p,
.workflow-section p {
    color: rgba(0, 0, 0, 0.72);
    font-family: "CaviarDreams", "Calibri", sans-serif;
    font-size: 12px;
    line-height: 1.65;
    letter-spacing: 0.04em;
}

.workflow-section span {
    display: inline-block;
    margin-bottom: 12px;
    color: #0048ff;
    font-family: "Noka", "Arial", sans-serif;
    font-size: 12px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px clamp(24px, 5vw, 72px);
}

.contact-links a {
    color: #000000;
    font-family: "CaviarDreams", "Calibri", sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
    text-transform: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-links a:hover {
    color: #0048ff;
    transform: translateY(-2px);
}

#galerie {
    --gallery-text: #000000;
    --gallery-bg: #ffffff;
    --gallery-muted: rgba(0, 0, 0, 0.58);
    --gallery-radius: 0;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--gallery-bg);
    color: var(--gallery-text);
    font-family: "NokaL", "Calibri", sans-serif;
    text-transform: uppercase;
}

#galerie h2,
#galerie a {
    font-family: "Noka", "Arial", sans-serif;
    font-weight: 400;
}

.gallery-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 24vh;
    padding: 110px 24px 18px;
    text-align: center;
}

.gallery-intro p {
    margin-bottom: 18px;
    color: var(--gallery-muted);
    font-size: 12px;
    letter-spacing: 0.35em;
}

#galerie .gallery-intro h2 {
    color: #000000;
    font-family: "Noka", "Arial", sans-serif;
    font-size: clamp(13px, 2vw, 24px);
    font-weight: 400;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.gallery-scene-wrapper {
    position: relative;
    width: 100%;
}

.gallery-scene {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 92vh;
    min-height: 620px;
    overflow: hidden;
    cursor: grab;
    perspective: 900px;
    touch-action: pan-y;
    user-select: none;
}

.gallery-scene:active,
.gallery-carousel.is-dragging {
    cursor: grabbing;
}

.gallery-carousel {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 610px;
    margin: -305px 0 0 -250px;
    cursor: grab;
    touch-action: none;
    transform: translateZ(-720px) rotateY(0deg);
    transform-style: preserve-3d;
    user-select: none;
    will-change: transform;
}

.gallery-carousel__cell {
    position: absolute;
    top: 105px;
    left: 95px;
    width: 310px;
    height: 400px;
    transform-style: preserve-3d;
    will-change: transform;
}

.gallery-card-link,
.gallery-card {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-card-link {
    cursor: pointer;
}

.gallery-card {
    position: relative;
    border-radius: var(--gallery-radius);
    transform-style: preserve-3d;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.gallery-card-link:hover .gallery-card {
    transform: scale(1.025);
}

.gallery-card__face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    padding: 28px 18px;
    border-radius: var(--gallery-radius);
    background-image: var(--img);
    background-position: var(--img-position, center);
    background-size: cover;
    backface-visibility: hidden;
}

.gallery-card__face::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card__face--back {
    transform: rotateY(180deg);
}

.gallery-card__title {
    position: relative;
    z-index: 1;
    max-width: 100%;
    color: #ffffff;
    font-family: "Noka", "Arial", sans-serif;
    font-size: clamp(12px, 1.55vw, 20px);
    font-weight: 400;
    letter-spacing: 0.16em;
    line-height: 1.05;
    opacity: 0;
    overflow-wrap: anywhere;
    text-align: center;
    text-shadow: none;
    text-transform: uppercase;
    transform: translateY(12px);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card-link:hover .gallery-card__face::before,
.gallery-card-link:focus-visible .gallery-card__face::before {
    opacity: 1;
}

.gallery-card-link:hover .gallery-card__title,
.gallery-card-link:focus-visible .gallery-card__title {
    opacity: 1;
    transform: translateY(0);
}

.gallery-carousel.is-dragging .gallery-card__face::before,
.gallery-carousel.is-dragging .gallery-card__title {
    opacity: 0;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 10px 16px;
    background: #ffffff;
    color: #555555;
    text-align: center;
}

.gallery-hint {
    display: inline-block;
    margin-top: 14px;
    color: rgba(0, 0, 0, 0.7);
    font-family: "CaviarDreams", "Calibri", sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: none;
}

footer p {
    color: #666666;
    font-family: "CaviarDreams", "Calibri", sans-serif;
    font-size: 13px;
    line-height: 1.35;
}

footer #insta img {
    width: 20px;
    height: 20px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.logoInsta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px 0;
}

footer #insta img:hover {
    opacity: 1;
}

.souligner {
    font-weight: 700;
}

@media screen and (max-width: 900px) {
    .seo-section__grid,
    .workflow-section__list {
        grid-template-columns: 1fr;
        max-width: 620px;
        gap: 24px;
    }

    .gallery-carousel {
        width: 340px;
        height: 430px;
        margin: -215px 0 0 -170px;
        transform: translateZ(-560px) rotateY(0deg);
    }

    .gallery-carousel__cell {
        top: 65px;
        left: 55px;
        width: 230px;
        height: 300px;
    }
}

@media screen and (max-width: 520px) {
    #accueil {
        min-height: 460px;
    }

    #ui {
        gap: 10px;
        padding: 8px 16px;
        font-size: 12px;
    }

    .portfolio-intro {
        min-height: 32vh;
        padding: 58px 20px 44px;
    }

    #contact.contact-section {
        min-height: 30vh;
        padding: 52px 18px;
    }

    .contact-links {
        flex-direction: column;
        gap: 14px;
    }

    .gallery-scene {
        min-height: 560px;
    }

    .gallery-carousel {
        width: 250px;
        height: 330px;
        margin: -165px 0 0 -125px;
        transform: translateZ(-410px) rotateY(0deg);
    }

    .gallery-carousel__cell {
        top: 50px;
        left: 40px;
        width: 170px;
        height: 230px;
    }
}
