/*

 /$$$$$$$$ /$$      /$$  /$$$$$$         /$$$$$$   /$$$$$$  /$$$$$$$  /$$$$$$$ 
|__  $$__/| $$$    /$$$ /$$__  $$       /$$__  $$ /$$__  $$| $$__  $$| $$__  $$
   | $$   | $$$$  /$$$$| $$  \__/      | $$  \__/| $$  \ $$| $$  \ $$| $$  \ $$
   | $$   | $$ $$/$$ $$|  $$$$$$       | $$      | $$  | $$| $$$$$$$/| $$$$$$$/
   | $$   | $$  $$$| $$ \____  $$      | $$      | $$  | $$| $$__  $$| $$____/ 
   | $$   | $$\  $ | $$ /$$  \ $$      | $$    $$| $$  | $$| $$  \ $$| $$      
   | $$   | $$ \/  | $$|  $$$$$$/      |  $$$$$$/|  $$$$$$/| $$  | $$| $$      
   |__/   |__/     |__/ \______/        \______/  \______/ |__/  |__/|__/      



 * Nom: style.css
 * Créateur: Grgoire
 * Utilité: Styles pour toutes les pages.
 */

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

:root {
    --bg: #f8f9fa;
    --ink: #0a0a0a;
    --ink-dim: #b0b0b0;
    --ink-ghost: #d8d8d8;
    --border: rgba(0, 0, 0, 0.07);
    --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    overflow-x: hidden;
    cursor: default;
}

#cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--ink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s var(--ease-out), height 0.3s var(--ease-out), opacity 0.3s;
    mix-blend-mode: multiply;
}

#cursor.expand {
    width: 48px;
    height: 48px;
    opacity: 0.12;
}

#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2.5rem;
}

.nav-auth-container {
    position: relative;
    display: inline-block;
}

.auth-trigger {
    background: transparent;
    border: none;
    color: var(--ink);
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
}

.nav-auth-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s var(--ease-out);
}

.nav-auth-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-auth-dropdown .nav-tag {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    text-align: right;
    display: block;
    margin: 0;
    transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.nav-auth-dropdown .nav-tag:last-child {
    border-bottom: none;
}

.nav-auth-dropdown .nav-tag:hover {
    background: var(--ink);
    color: var(--bg);
}

.nav-logo {
    height: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
    transition: filter 0.3s var(--ease-out);
}

.invert-logo {
    filter: invert(1);
}

.nav-right {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-tag {
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink-dim);
    text-decoration: none;
}

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 1px;
    background: var(--ink);
    width: 0%;
    z-index: 300;
    transform-origin: left;
    transition: width 0.05s linear;
}

#hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: hidden;
}

.hero-eyebrow {
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ink-dim);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: clamp(4.5rem, 17vw, 19rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 0.88;
    text-align: center;
    color: var(--ink);
    will-change: transform;
    user-select: none;
    position: relative;
    z-index: 3;
}

.hero-title .corp {
    font-weight: 300;
}

.hero-title span {
    display: block;
}

.hero-bottom {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 2.5rem;
    z-index: 3;
}

.hero-coord {
    font-size: 0.58rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--ink-ghost);
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.scroll-hint span {
    font-size: 0.55rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ink-dim);
}

.scroll-line {
    width: 1px;
    height: 3.5rem;
    background: linear-gradient(to bottom, var(--ink), transparent);
    animation: linePulse 1.8s ease-in-out infinite;
}

@keyframes linePulse {

    0%,
    100% {
        opacity: 0.25;
        transform: scaleY(0.8);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

#manifeste {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 12vh 10vw;
    z-index: 2;
}

.manifeste-inner {
    max-width: 1000px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.section-num {
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    color: var(--ink);
}

.section-line {
    width: 3rem;
    height: 1px;
    background: var(--ink-ghost);
}

.section-title {
    font-size: 0.55rem;
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--ink-dim);
}

.manifeste-text {
    font-size: clamp(2.2rem, 5.5vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.manifeste-text .word {
    display: inline;
    transition: color 0.1s ease;
    white-space: pre;
}

#teams {
    position: relative;
    height: 100vh;
    display: flex;
    border-top: 1px solid var(--border);
    z-index: 2;
}

.team-members {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    width: 100%;
    height: 55vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}

.team-card:hover .team-members {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.member {
    position: relative;
    pointer-events: auto;
    transition: transform 0.4s var(--ease-out), filter 0.4s ease;
}

.member-left,
.member-right {
    height: 75%;
    z-index: 1;
    filter: brightness(0.7);
}

.member-center {
    height: 95%;
    z-index: 3;
    margin: 0 -15%;
    filter: brightness(0.7);
}
.member-center-left,
.member-center-right {
    height: 90%;
    z-index: 3;
    margin: 0 -10%;
    filter: brightness(0.7);
}

@media (max-width: 1024px) {
    .member-center-left,
    .member-center-right {
        margin: 0 -8%;
    }
}

@media (max-width: 768px) {
    .member-center-left,
    .member-center-right {
        height: 95%;
        margin: 0 -6%;
    }
}
.member img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.4s ease;
}

@media (max-width: 1024px) {
    .team-members {
        height: 40vh;
    }

    .member-center {
        margin: 0 -12%;
    }
}

@media (max-width: 768px) {
    #teams {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .team-card {
        min-height: 60vh;
        width: 100%;
        border-left: none;
        border-bottom: 1px solid var(--border);
    }

    .team-card:last-child {
        border-bottom: none;
    }

    .team-members {
        height: 35vh;
        transform: translateX(-50%) translateY(20px);
    }

    .member-left,
    .member-right {
        height: 80%;
    }

    .member-center {
        height: 100%;
        margin: 0 -8%;
    }

    .team-inner {
        transform: translateY(-40px);
    }

    .team-index,
    .team-arrow {
        top: 1.5rem;
    }

    .team-index {
        left: 1.5rem;
    }

    .team-arrow {
        right: 1.5rem;
    }

    .team-badge {
        bottom: 1.5rem;
    }
}

.team-card {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--bg);
    opacity: 1;
    transform: translateY(50px);
    transition:
        opacity 0.9s var(--ease-out),
        transform 0.9s var(--ease-out),
        background 0.5s ease;
}

.team-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-card:nth-child(2) {
    transition-delay: 0.18s;
    border-left: 1px solid var(--border);
}

.team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ink);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.team-card:hover::before {
    opacity: 0.04;
}

.team-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.team-subtitle {
    font-size: 0.55rem;
    font-weight: 300;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ink-dim);
    margin-bottom: 1.8rem;
    display: block;
    transition: color 0.4s ease;
}

.team-card:hover .team-subtitle {
    color: var(--ink);
}

.team-name {
    font-size: clamp(2.8rem, 7vw, 8.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.88;
    display: block;
    position: relative;
    transition: transform 0.4s var(--ease-out);
}

.team-name::before,
.team-name::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.team-card:hover .team-name {
    animation: glitchShake 0.55s steps(3) infinite;
}

.team-card:hover .team-name::before {
    opacity: 0.9;
    animation: glitchSliceA 0.55s steps(3) infinite;
    clip-path: polygon(0 15%, 100% 15%, 100% 40%, 0 40%);
    color: var(--ink);
}

.team-card:hover .team-name::after {
    opacity: 0.9;
    animation: glitchSliceB 0.55s steps(3) infinite;
    clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
    color: var(--ink);
}

@keyframes glitchShake {
    0% {
        transform: translate(0, 0) skew(0deg);
    }

    33% {
        transform: translate(-1px, 0) skew(-0.3deg);
    }

    66% {
        transform: translate(1px, 0) skew(0.3deg);
    }

    100% {
        transform: translate(0, 0) skew(0deg);
    }
}

@keyframes glitchSliceA {
    0% {
        transform: translate(3px, 0);
    }

    33% {
        transform: translate(-3px, 0);
    }

    66% {
        transform: translate(2px, 0);
    }

    100% {
        transform: translate(3px, 0);
    }
}

@keyframes glitchSliceB {
    0% {
        transform: translate(-2px, 0);
    }

    33% {
        transform: translate(2px, 0);
    }

    66% {
        transform: translate(-3px, 0);
    }

    100% {
        transform: translate(-2px, 0);
    }
}

.team-badge {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.52rem;
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--ink-ghost);
    white-space: nowrap;
    transition: color 0.4s ease;
    z-index: 1;
}

.team-card:hover .team-badge {
    color: var(--ink-dim);
}

.team-index {
    position: absolute;
    top: 2.5rem;
    left: 2rem;
    font-size: 0.6rem;
    font-weight: 900;
    color: var(--ink-ghost);
    letter-spacing: 0.1em;
    z-index: 1;
    transition: color 0.4s ease;
}

.team-card:hover .team-index {
    color: var(--ink-dim);
}

.team-arrow {
    position: absolute;
    top: 2.5rem;
    right: 2rem;
    font-size: 0.65rem;
    color: var(--ink-ghost);
    opacity: 0;
    transform: translate(-6px, 6px);
    transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
    z-index: 1;
    letter-spacing: 0;
}

.team-card:hover .team-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

.site-footer {
    position: relative;
    z-index: 2;
    padding: 6rem 4rem 2rem 4rem;
    background-color: var(--bg);
    color: var(--ink);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-brand .footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;
    filter: brightness(0);
    opacity: 0.9;
}

.footer-tagline {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--ink-dim);
    max-width: 300px;
}

.footer-heading {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a, .footer-legal a {
    color: var(--ink-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--ink);
}

.footer-mail {
    display: inline-block;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
}

.footer-mail:hover {
    opacity: 0.7;
}

.footer-dev {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--ink-dim);
    margin-top: 1rem;
}

.btn-dev {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 4px;
    transition: all 0.3s ease;
    font-weight: 900;
    font-size: 0.75rem;
}

.btn-dev:hover {
    text-decoration-color: var(--ink);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom span {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-dim);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 4rem 2rem 2rem 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

.shop-container {
    padding: 12vh 10vw;
    background-color: var(--bg);
}

.shop-header {
    margin-bottom: 6rem;
}

.shop-title {
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 1rem;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1px;
    background-color: var(--border);
    border: 1px solid var(--border);
}

.product-card {
    background: var(--bg);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    transition: background 0.4s ease;
}

.product-card:hover {
    background: #f1f1f1;
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin-bottom: 2rem;
    transition: filter 0.4s ease;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 0.8rem;
    color: var(--ink-dim);
    margin-bottom: 2.5rem;
    font-family: monospace;
}

.btn-add-cart {
    margin-top: auto;
    padding: 1rem;
    border: 1px solid var(--ink);
    color: #000;
    background: transparent;
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
}

.btn-remove-cart {
    padding: 0.5rem;
    border: 1px solid var(--ink);
    color: #000;
    margin-top: 10px;
    background: transparent;
    font-weight: 900;
    font-size: 0.55rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-add-cart:hover,
.btn-remove-cart:hover {
    background: var(--ink);
    color: var(--bg);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 190;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: white;
}

.product-open {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.05;
    pointer-events: none;
}

.modal-content {
    position: relative;
    max-width: 600px;
    width: 90%;
    padding: 3rem;
    background: var(--bg);
    border: 1px solid var(--ink);
    transform: translateY(20px);
    transition: transform 0.4s var(--ease-out);
}

.modal-grid {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.modal-left,
.modal-right {
    flex: 1;
}

.modal-left img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .modal-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.modal.is-open .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    background: none;
    border: none;
    text-transform: uppercase;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
}

.pannier-ouverture {
    position: fixed;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    cursor: pointer;
    background: var(--bg);
    padding: 0.8rem;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.pannier-lateral {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100vh;
    background: var(--bg);
    border-left: 1px solid var(--border);
    z-index: 1000;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.6s var(--ease-out);
}

.pannier-lateral.is-open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.cart-header h3 {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
}

.close-cart {
    background: none;
    border: none;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cart-items::-webkit-scrollbar {
    width: 4px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: var(--border);
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: var(--bg);
    transition: filter 0.4s ease;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-details h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.cart-item-details p {
    font-size: 0.65rem;
    color: var(--ink-dim);
    font-family: monospace;
    margin-bottom: 0.2rem;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12vh 10vw;
    background-color: var(--bg);
    position: relative;
    z-index: 2;
}

.auth-box {
    width: 100%;
    max-width: 480px;
    padding: 4rem;
    border: 1px solid var(--border);
    background: var(--bg);
}

.auth-title {
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 3.5rem;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.input-group label {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-dim);
}

.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="password"] {
    padding: 1.2rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--ink);
    font-family: var(--font);
    font-size: 1rem;
    transition: border-color 0.4s var(--ease-out);
}

.input-group input:focus {
    outline: none;
    border-color: var(--ink);
}

.input-group-checkbox {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.input-group-checkbox input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--ink-dim);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
}

.input-group-checkbox input[type="checkbox"]:checked {
    background: var(--ink);
    border-color: var(--ink);
}

.input-group-checkbox label {
    font-size: 0.65rem;
    color: var(--ink-dim);
    cursor: pointer;
    user-select: none;
}

.btn-auth {
    margin-top: 1rem;
    padding: 1.2rem;
    background: var(--ink);
    color: var(--bg);
    border: 1px solid var(--ink);
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
}

.btn-auth:hover {
    background: transparent;
    color: var(--ink);
}

.auth-footer {
    margin-top: 3.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--ink-dim);
}

.auth-footer a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--ink-dim);
    border-color: transparent;
}

.error-message {
    margin-top: 1rem;
    color: #e74c3c;
    font-size: 0.65rem;
    text-align: center;
}

.checkout-container {
    padding: 12vh 10vw;
    background-color: var(--bg);
    min-height: 100vh;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-title {
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.input-row {
    display: flex;
    gap: 1.5rem;
}

.input-row .input-group {
    flex: 1;
}

.summary-box {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 3rem;
    position: sticky;
    top: 12vh;
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    max-height: 40vh;
    overflow-y: auto;
}

.summary-items::-webkit-scrollbar {
    width: 3px;
}

.summary-items::-webkit-scrollbar-thumb {
    background: var(--border);
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.summary-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.summary-item-info h4 {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.summary-item-info p {
    font-size: 0.6rem;
    font-family: monospace;
    color: var(--ink-dim);
}

.summary-item-price {
    margin-left: auto;
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
}

.summary-totals {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.total-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--ink-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.total-line.final-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
    font-size: 1rem;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: 0;
}

@media (max-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .checkout-summary-section {
        order: -1;
    }

    .summary-box {
        position: static;
        padding: 2rem;
    }

    .input-row {
        flex-direction: column;
        gap: 0;
    }
}

.payamant-icon {
    width: 100%;
    margin-top: 1.5rem;
    opacity: 0.8;
}

.error-container {
    color: #ff3333;
    font-size: 0.65rem;
    font-family: monospace;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.error-container p {
    margin: 0;
}

.input-error {
    border-color: #ff3333 !important;
    color: #ff3333 !important;
    animation: shake 0.4s var(--ease-out);
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }
}

.orders-container {
    padding: 12vh 10vw;
    background-color: var(--bg);
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.orders-box {
    width: 100%;
    max-width: 800px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.order-card {
    border: 1px solid var(--border);
    background: var(--bg);
    transition: border-color 0.3s var(--ease-out);
}

.order-card:hover {
    border-color: var(--ink);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.02);
}

.order-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.order-id {
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: 0.1em;
}

.order-date {
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--ink-dim);
}

.order-total {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ink);
    letter-spacing: 0.05em;
}

.order-items-list {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.order-single-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--ink);
    border-bottom: 1px dashed var(--border);
    padding-bottom: 0.8rem;
}

.order-single-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.item-qty {
    font-family: monospace;
    font-weight: 700;
    color: var(--ink-dim);
    margin-right: 1rem;
    display: inline-block;
    width: 25px;
}

.item-price {
    font-family: monospace;
    color: var(--ink-dim);
}

.no-orders {
    text-align: center;
    font-family: monospace;
    color: var(--ink-dim);
    margin-top: 3rem;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.5rem;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink-dim);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s var(--ease-out);
}

.btn-back:hover {
    color: var(--ink);
}

.shipping-info {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--ink-dim);
    line-height: 1.8;
}

.shipping-info strong {
    color: var(--ink);
}

.tracking-container {
    position: relative;
    padding: 2rem 0;
}

.tracking-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.track-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 20%;
    color: var(--ink-dim);
}

.step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s var(--ease-out);
}

.step-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
}

.step-text {
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

.track-step.completed {
    color: var(--ink);
}

.track-step.completed .step-icon {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--bg);
}

.track-step.active {
    color: var(--ink);
}

.track-step.active .step-icon {
    border-color: var(--ink);
}

.track-step.active .step-dot {
    background: var(--ink);
    animation: pulse 1.5s infinite;
}

.tracking-line {
    position: absolute;
    top: 2rem;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--border);
    z-index: 1;
    transform: translateY(11px);
}

.tracking-progress {
    height: 100%;
    background: var(--ink);
    transition: width 1s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(2);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .step-text {
        display: none;
    }

    .tracking-line {
        left: 5%;
        width: 90%;
    }

    .track-step {
        width: auto;
        flex: 1;
    }
}

.admin-sidebar a {
    transition: color 0.3s ease;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.admin-sidebar a:hover {
    color: var(--ink) !important;
    text-decoration: underline;
}

.admin-content {
    background-color: var(--bg);
}

.modal-overlay2 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-box {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 3rem;
    max-width: 400px;
    font-family: monospace;
}

.modal-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.btn-delete {
    color: #ff3333;
    text-decoration: none;
    font-weight: 900;
}

.btn-cancel {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--ink);
    padding: 0.5rem 1rem;
    cursor: pointer;
}



#histoire {
    width: 50%;
    margin-left: 50%; 
    padding-right: 5vw;
    padding-left: 2vw;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

#histoire .section-title {
    font-size: 3rem; 
    font-weight: 900;
    color: var(--ink, #000000);
    text-transform: uppercase;
    margin-bottom: 2rem;
    display: block;
}

#histoire .histoire-text {
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--ink, #111111);
    text-align: left;
}

@media (max-width: 768px) {
    #histoire {
        width: 100%;
        margin-left: 0;
        padding-left: 5vw;
        padding-right: 5vw;
        min-height: auto;
        padding-top: 15vh;
        padding-bottom: 15vh;
    }

    #histoire .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    #histoire .histoire-text {
        font-size: 1.1rem;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;900&family=Inter:wght@400&display=swap');

.legal-page {
    min-height: 100vh;
    padding: 20vh 5vw 10vh 5vw;
    background-color: var(--bg);
    display: flex;
    justify-content: center;
    z-index: 2;
    position: relative;
}

.legal-container {
    max-width: 800px;
    width: 100%;
}

.legal-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 4rem;
    text-transform: uppercase;
    position: relative;
}

.legal-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--ink);
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.legal-content h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.legal-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ink-dim);
    font-weight: 400;
}

.legal-content a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 4px;
    transition: all 0.3s ease;
}

.legal-content a:hover {
    text-decoration-color: var(--ink);
}

#loader-wrapper {
    position: fixed;
    inset: 0;
    background: #050505; 
    z-index: 999999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 5vw;
    box-sizing: border-box;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

#loader-wrapper.is-loaded {
    transform: translateY(-100%);
}

.loader-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.loader-title {
    margin: 0;
    text-align: center;
    line-height: 0.85;
}

.title-line {
    overflow: hidden;
}

.title-line span {
    display: block;
    color: #ffffff;
    transform: translateY(100%);
    animation: textReveal 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.title-line .tms {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 900;
    font-size: clamp(5rem, 12vw, 9rem);
    letter-spacing: -0.02em;
}

.title-line .corp {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: clamp(4.6rem, 11.2vw, 8.4rem); 
    letter-spacing: 0.02em;
    animation-delay: 0.15s;
}

.loader-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: opacity 0.4s ease;
}

.bottom-reveal {
    overflow: hidden;
}

.bottom-reveal span {
    display: inline-block;
    transform: translateY(100%);
    animation: textReveal 1.2s cubic-bezier(0.77, 0, 0.175, 1) 0.3s forwards;
}

#loader-percent {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    font-variant-numeric: tabular-nums;
    display: inline-block;
    min-width: 3.5ch;
    text-align: right;
}

@keyframes textReveal {
    to { transform: translateY(0); }
}