html, body {
    width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow: hidden;
    background: #0d0610;
}

.parallax{
    position:fixed;
    inset: -60vh 0;
    z-index: 0;
    pointer-events:none
}

/* SECTIONS */

section {
    position: relative;
    z-index: 1;
    padding: clamp(56px, 9vw, 120px) 5%;
    scroll-margin-top: 90px;
}

.wrap {
    max-width: min(90%, 1200px);
    margin-inline: auto;
}

section > div > p {
    font-size: 1.03rem;
    color: white;
    opacity: .85;
    margin: 20px 0;
    line-height: 1.3rem;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* PROGRESS BAR */

.progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(to left, #ff0084, #b9005f);
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 1100;
    box-shadow: 0 0 10px rgba(255, 0, 132, .9), 0 0 26px rgba(185, 0, 95, .55);
}

.progress::after {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(8px);
    opacity: .75;
}

/* NAVBAR */

nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    transition: background .2s ease, border-color .2s ease, backdrop-filter .2s ease, padding .2s ease;
}

nav.scrolled {
    position: fixed;
    padding-block: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(13, 6, 16, .78);
    backdrop-filter: blur(14px);
}

#nav-logo {
    width: 54px;
    display: block;
    cursor: pointer;
}

nav, #header {
    padding-left: 5%;
    padding-right: 5%;
}

/* MENU */
#menu {
    color: white;
}

#menu > li {
    font-size: clamp(1rem, 1.4vw, 1.2rem) !important;
    display: inline;
    margin: 0 clamp(5px, .8vw, 10px);
}

#menu a {
    position: relative;
    color: white;
    opacity: .78;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s ease;
}

#menu a:hover,
#menu a.active {
    opacity: 1;
}

#menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(to left, #ff0084, #b9005f);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}

#menu a.active::after {
    transform: scaleX(1);
}

#nav-contact {
    padding: .48rem .9rem;
    border: 1px solid rgba(255, 0, 132, .45);
    border-radius: 999px;
    background:
        linear-gradient(rgba(13, 6, 16, .72), rgba(13, 6, 16, .72)) padding-box,
        linear-gradient(to left, #ff0084, #b9005f) border-box;
    box-shadow: 0 0 18px rgba(255, 0, 132, .12);
    transition: opacity .2s ease, box-shadow .2s ease, border-color .2s ease;
}

#nav-contact:hover {
    border-color: rgba(255, 0, 132, .7);
    box-shadow: 0 0 22px rgba(255, 0, 132, .24);
}

#nav-contact::after {
    display: none;
}

#burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    align-content: center;
    gap: 5px;
    place-items: center;
    cursor: pointer;
}

#burger span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: white;
    transition: transform .2s ease, opacity .2s ease;
}

nav.open #burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

nav.open #burger span:nth-child(2) {
    opacity: 0;
}

nav.open #burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 879px) {
    #burger {
        display: grid;
    }

    #menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 5%;
        right: 5%;
        display: grid;
        gap: 14px;
        padding: 18px;
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 16px;
        background: rgba(13, 6, 16, .92);
        backdrop-filter: blur(14px);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease;
    }

    nav.open #menu {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    #menu > li {
        display: block;
        margin: 0;
    }

    #menu a {
        display: inline-block;
    }
}

/* Accueil */
#home {
    height: 100dvh;
    width: 100%;
    background: linear-gradient(to top, #040008, #0A0112);
    overflow: hidden;
    position: relative;
}

#home::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 220px;
    background:
        radial-gradient(700px 160px at 50% 100%, rgba(255, 0, 132, .05), transparent 70%),
        linear-gradient(to bottom, rgba(5, 0, 8, 0), #0d0610);
    pointer-events: none;
    z-index: 1;
}

canvas {
    height: 100%;
    width: 100%;
}

#header {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    flex-direction: column;
    padding-inline: clamp(16px, 4vw, 48px);
}

#badge {
    background: linear-gradient(to bottom, rgba(255, 112, 186, .12), rgba(250, 137, 196, .12));
    backdrop-filter: blur(6px);
    padding: .35rem .75rem;
    margin-bottom: .5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1000px;
    color: white;
    font-size: .9rem !important;
    letter-spacing: .02rem;
}

#title {
    text-align: center !important;
    margin: .9rem auto .6rem;
    line-height: 1.02;
    letter-spacing: -.02rem;
    font-family: sans-serif !important;
    font-size: clamp(2.2rem, 6vw, 5rem) !important;
    font-weight: 800;
    background: linear-gradient(to bottom, #fff, #ffcce6 40%, #ffb3da 60%);
    background-clip: text;
    color: transparent;
}

#subtitle {
    text-align: center !important;
    margin: 1rem auto 1.4rem;
    opacity: .85;
    font-size: clamp(1rem, 2.2vw, 1.35rem) !important;
    max-width: 58ch;
    color: white;
    padding: 0 1rem;
}

#cta {
    margin-top: .6rem;
    padding: .85rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(to top, rgba(255, 112, 186, .12), rgba(250, 137, 196, .12));
    color: white;
    font-weight: 400;
    cursor: pointer;
    transition: transform .18s ease, background .2s ease, border-color .2s ease;
    backdrop-filter: blur(6px);
}

#scroll-cue {
    font-size: 1rem !important;
    color: white;
    opacity: .55;
    position: absolute;
    bottom: 30px;
    left: 50%;
    letter-spacing: .04em;
    transform: translateX(-50%);
    z-index: 2;
}

/* VISION */

#vision {
    padding-top: 100px;
}

/* SQUARES */

.sqs {
    display: grid;
    gap: clamp(14px, 2vw, 22px);
}

@media (min-width: 880px) {
    .sqs {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sq {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    color: white;
    display: flex;
    flex-direction: column;
    padding: clamp(16px, 2.4vw, 24px);
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.sq-title {
    font-weight: bold;
    opacity: .9;
    margin: .2rem 50px 1rem 0;
    font-size: 1.1rem;
}

@media (max-width: 879px) { 
    .sq-title {
        margin-bottom: 2rem;
        margin-top: 12px;
    }
}

.sq-txt {
    opacity: .5;
    margin: .5rem 0;
    font-size: 1.03rem;
}

.sq:before{
    content:"";
    position:absolute;
    inset:-30%;
    background:radial-gradient(500px 300px at var(--mx,70%) var(--my,30%),rgba(255, 110, 190, 0.08),transparent 60%), radial-gradient(400px 280px at calc(100% - var(--mx,40%)) calc(100% - var(--my,40%)), rgba(167,139,250,.08), transparent 60%);
    transition:opacity .3s ease;
    opacity:.6;
    pointer-events:none
}

.sq:hover{
    transform:translateY(-2px)
}

.bubble {
    position: absolute;
    inset: 12px 12px auto auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .08);
    display: grid;
    place-items: center;
    opacity: .85;
    animation: float 6s ease-in-out infinite;
    box-sizing: border-box;
    padding: 5px;
}

/* STATEMENT */

.statement {
    padding-block: clamp(38px, 6vw, 76px);
}

.statement p {
    max-width: 900px;
    margin: 0 auto;
    color: white;
    font-size: clamp(1.45rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.16;
    padding-bottom: .08em;
    text-align: center;
    background: linear-gradient(to bottom, #fff, #ffcce6 45%, #ff9ccc);
    background-clip: text;
    color: transparent;
}

/* METHOD */

.steps {
    display: grid;
    gap: clamp(14px, 2vw, 22px);
    margin-top: 28px;
}

@media (min-width: 880px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    display: grid;
    gap: 12px;
    padding: clamp(16px, 2.4vw, 24px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
    color: white;
    box-sizing: border-box;
}

.step span {
    width: max-content;
    padding: 5px 9px;
    border: 1px solid rgba(255, 0, 132, .28);
    border-radius: 999px;
    color: #ff70ba;
    font-size: .85rem;
    font-weight: 700;
}

.step strong {
    font-size: 1.1rem;
}

.step p {
    margin: 0;
    color: white;
    opacity: .58;
    line-height: 1.45;
}

/* SKILLS */

.skills {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.skill {
    display: grid;
    grid-template-columns: 170px minmax(220px, 1fr) minmax(260px, 1.2fr);
    align-items: center;
    gap: 16px 24px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .025);
    border-radius: 14px;
}

.skill span {
    color: white;
    font-weight: 700;
}

.skill p {
    color: white;
    opacity: .58;
    margin: 0;
}

.skill ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.skill li {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: white;
    font-size: .9rem;
    opacity: .78;
}

@media (max-width: 879px) {
    .skill {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .skill p {
        display: none;
    }

    .skill ul {
        justify-content: flex-start;
    }
}

/* CONTACT */

.contact-grid {
    display: grid;
    gap: clamp(14px, 2vw, 22px);
    margin-top: 28px;
}

@media (min-width: 880px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-card {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    color: white;
    padding: clamp(16px, 2.4vw, 24px);
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
    box-sizing: border-box;
}

.contact-info {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: clamp(18px, 3vw, 34px);
    min-height: 100%;
    text-align: center;
}

.contact-info img {
    width: min(42%, 180px);
    filter: drop-shadow(0 0 28px rgba(255, 0, 132, .18));
    opacity: .9;
}

form.contact-card {
    display: grid;
    gap: 12px;
}

.contact-card input,
.contact-card textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .04);
    color: white;
    box-sizing: border-box;
    font: inherit;
}

.contact-card textarea {
    min-height: 140px;
    resize: vertical;
}

.form-check {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.contact-card input::placeholder,
.contact-card textarea::placeholder {
    color: rgba(255, 255, 255, .45);
}

.contact-card button {
    justify-self: start;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: .85rem 1.1rem;
    background: linear-gradient(to left, #ff0084, #b9005f);
    color: white;
    cursor: pointer;
    font: inherit;
}

.contact-card button:disabled {
    cursor: wait;
    opacity: .65;
}

.form-status {
    margin: 0;
    color: white;
    opacity: .7;
    line-height: 1.4;
}

.form-status.success {
    color: #ff9ccc;
    opacity: 1;
}

.form-status.error {
    color: #ffb3c7;
    opacity: 1;
}

.contact-title {
    display: block;
    margin-bottom: .8rem;
    color: white;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 700;
}

.contact-card p {
    max-width: 44ch;
    margin: 0 auto;
    color: white;
    opacity: .58;
    line-height: 1.55;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
}

@media (max-width: 879px) {
    .contact-info {
        grid-template-columns: 1fr 72px;
        align-items: center;
        justify-items: stretch;
        text-align: left;
    }

    .contact-info img {
        width: 72px;
        grid-column: 2;
        grid-row: 1;
    }

    .contact-card p {
        margin: 0;
    }
}

/* FOOTER */

footer {
    position: relative;
    z-index: 1;
    padding: clamp(44px, 7vw, 72px) 5%;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(5, 0, 8, .72);
    color: white;
}

footer > div {
    width: min(90%, 900px);
    margin-inline: auto;
    display: grid;
    justify-items: center;
    gap: 22px;
    text-align: center;
}

footer img {
    width: min(260px, 72vw);
    opacity: .92;
}

footer hr {
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

footer span {
    opacity: .55;
}

#mentions {
    border: 0;
    background: none;
    color: white;
    opacity: .58;
    cursor: pointer;
    font: inherit;
}

#mentions:hover {
    opacity: 1;
}

#legal-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(5, 0, 8, .78);
    backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

#legal-modal.open {
    opacity: 1;
    pointer-events: auto;
}

#legal-modal > div {
    position: relative;
    width: min(920px, 100%);
    max-height: min(760px, 86dvh);
    overflow: auto;
    padding: clamp(20px, 4vw, 42px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: #100812;
    color: white;
    box-sizing: border-box;
}

#close-legal {
    position: sticky;
    top: 0;
    float: right;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    color: white;
    cursor: pointer;
    font-size: 1.4rem;
}

#legal-content {
    clear: both;
    color: rgba(255, 255, 255, .72);
    line-height: 1.55;
}

#legal-content h3 {
    color: white;
    margin: 1.4rem 0 .6rem;
}

#legal-content p {
    margin: 0 0 1rem;
}

#legal-content a {
    color: #ff70ba;
}

/* 404 */

.error-page {
    min-height: 100dvh;
}

.error-wrap {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    width: min(90%, 720px);
    margin-inline: auto;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 18px;
    color: white;
    text-align: center;
}

.error-wrap img {
    width: 76px;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 22px rgba(255, 0, 132, .18));
}

.error-wrap span {
    padding: .35rem .75rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: #ff9ccc;
    font-weight: 700;
}

.error-wrap h1 {
    margin: 0;
    font-size: clamp(2.2rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.02;
    background: linear-gradient(to bottom, #fff, #ffcce6 45%, #ff9ccc);
    background-clip: text;
    color: transparent;
}

.error-wrap p {
    max-width: 52ch;
    margin: 0;
    color: white;
    opacity: .68;
    line-height: 1.5;
}

.error-wrap a {
    margin-top: 8px;
    padding: .85rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: linear-gradient(to left, #ff0084, #b9005f);
    color: white;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 420px) {
    section {
        padding-inline: 4%;
    }

    nav {
        padding-inline: 4%;
    }

    #nav-logo {
        width: 46px;
    }

    #title {
        font-size: 2rem !important;
    }

    #subtitle {
        padding: 0;
    }

    .wrap {
        max-width: 100%;
    }

    .sq,
    .skill,
    .contact-card {
        border-radius: 12px;
    }

    .skill li {
        font-size: .82rem;
        padding: 5px 8px;
    }

    .contact-info {
        grid-template-columns: 1fr 56px;
    }

    .contact-info img {
        width: 56px;
    }
}

/* KEYFRAMES */

@keyframes float{0%,100%{transform:translateY(-2px)}50%{transform:translateY(2px)}}
