/* =========================================================
   VARIABLES & DESIGN SYSTEM
========================================================= */
:root {
    --bg: #fafafa;
    --black: #171717;
    --dark-bg: #101014;
    --dark-card: #17171e;
    --white-gray: #EDEDED;
    --white: #ffffff;
    --text: #141416;
    --muted: #646468;
    --dark-muted: #94949c;
    --line: rgba(0, 0, 0, 0.08);
    --dark-line: rgba(255, 255, 255, 0.08);

    /* Dégradé Signature #524FF7 + #00C3D0 */
    --primary: #524FF7;
    --secondary: #00C3D0;
    --gradient: linear-gradient(135deg, #524FF7 0%, #00C3D0 100%);
    --gradient-glow: rgba(82, 79, 247, 0.3);
    --gradient-cyan-glow: rgba(0, 195, 208, 0.3);

    --container: 1400px;
    --font-main: "PP Neue Montreal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.25, 1, 0.5, 1);


    /* ---- Nouvelles variables : page bio ---- */
      --bio-display: #E9E9E9;
      --bio-fw-title: 700;
      --bio-fw-text: 400;
      --bio-fs-text: 15px;
      --bio-page-x: 48px;
      --bio-page-y: 140px;
      --bio-marquee-gap: 24px;
      --bio-marquee-duration: 90s;
      --bio-bounce-duration: 5s;


}

/* =========================================================
   RESET & BASE
========================================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    font-weight: 400;
    overflow-x: hidden;
    line-height: 1.55;
}

body.menu-open {
    overflow: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}

button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

/* =========================================================
   TYPOGRAPHY CONTRAST (LIGHT 100 & EXTRABOLD 700)
========================================================= */



.font-light {
    font-weight: 700 !important;
}

.font-extrabold {
    font-weight: 700 !important;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;

    /* agrandit la zone de peinture du dégradé... */
    padding: 0.05em 0.15em 0.25em 0.15em;
    /* ...sans décaler visuellement le texte */
    margin: -0.05em -0.15em -0.25em -0.15em;

}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 20px;
}

.eyebrow.gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 400;
}

/* Word mask reveal animation */
.anim-title {
    display: block;
    line-height: 1.08;
}

.word-mask {
    display: inline-block;
    /*overflow: hidden;*/
    vertical-align: top;
    margin-right: 0.24em;
}

.word-inner {
    display: inline-block;
    transform: translateY(115%);
    opacity: 0;
    transition: transform 0.85s var(--ease), opacity 0.6s ease;
    will-change: transform, opacity;
}

.anim-title.visible .word-inner {
    transform: translateY(0);
    opacity: 1;
}

/* =========================================================
   CUSTOM CURSOR
========================================================= */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--black);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease), transform 0.15s ease-out;
}

.custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform 0.12s ease-out, width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s;
}

body.cursor-dark .custom-cursor {
    background: var(--white);
}

body.cursor-dark .custom-cursor-follower {
    border-color: rgba(255, 255, 255, 0.4);
}

body.cursor-hover .custom-cursor {
    transform: translate(-50%, -50%) scale(0.3);
}

body.cursor-hover .custom-cursor-follower {
    transform: translate(-50%, -50%) scale(1.6);
    border-color: var(--secondary);
    background: rgba(0, 195, 208, 0.1);
}

@media (pointer: coarse) {
    .custom-cursor, .custom-cursor-follower {
        display: none !important;
    }
}

/* =========================================================
   LOADER
========================================================= */
.loader {
    position: fixed;
    inset: 0;
    background: var(--dark-bg);
    color: var(--white);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo img {
    height: 48px;
    width: auto;
    animation: loaderPulse 1.4s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 0.35; transform: scale(0.96); filter: drop-shadow(0 0 10px var(--gradient-glow)); }
    50% { opacity: 1; transform: scale(1.02); filter: drop-shadow(0 0 25px var(--gradient-cyan-glow)); }
}

/* =========================================================
   HEADER & NAVBAR (TRANSPARENT GLASSMORPHISM)
========================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 32px;
    z-index: 1000;
    transition: padding 0.5s var(--ease);
}

.nav-container {
    height: 58px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid transparent;
    border-radius: 10px;
    box-shadow: none;
    transition: background 0.45s var(--ease), border-color 0.45s var(--ease), backdrop-filter 0.45s var(--ease), box-shadow 0.45s var(--ease), justify-content 0.5s var(--ease), gap 0.5s var(--ease);
}

.header.scrolled {
    padding: 12px 32px;
}

.header.scrolled .nav-container {
    justify-content: center;
    gap: 36px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

/* Logo adaptatif */
.nav-logo {
    display: flex;
    align-items: center;
}

.logo-manon-noir {
    height: 26px;
    width: auto;
    display: block;
}

.logo-manon-blanc {
    height: 26px;
    width: auto;
    display: none;
}

/* Thème sombre sur section foncée */
.header.theme-dark .nav-container {
    background: rgba(18, 18, 24, 0.45);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}

.header.theme-dark .logo-manon-noir {
    display: none;
}

.header.theme-dark .logo-manon-blanc {
    display: block;
}

.header.theme-dark .nav-link {
    color: #e8e8ed;
}

.header.theme-dark .chroma-prism-lift {
    color: #ffffff;
}

.header.theme-dark .menu-toggle span {
    background: #ffffff;
}

/* =========================================================
   ANIMATION ORIGINALE MENU : CHROMA-PRISM-LIFT
========================================================= */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.chroma-prism-lift {
    position: relative;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    border-radius: 999px;
    overflow: hidden;
    transition: color 0.3s var(--ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chroma-prism-lift .prism-text-wrapper {
    display: flex;
    flex-direction: column;
    height: 18px;
    line-height: 18px;
    overflow: hidden;
    position: relative;
}

.chroma-prism-lift .text-primary,
.chroma-prism-lift .text-clone {
    transition: transform 0.4s var(--ease);
    display: block;
    white-space: nowrap;
}

.chroma-prism-lift .text-clone {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.chroma-prism-lift:hover .text-primary,
.chroma-prism-lift:hover .text-clone {
    transform: translateY(-18px);
}

/* Barre prismatique en hover */
.chroma-prism-lift::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 16px;
    height: 2.5px;
    border-radius: 999px;
    background: var(--gradient);
    box-shadow: 0 0 10px var(--secondary);
    transition: transform 0.35s var(--ease);
}

.chroma-prism-lift:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Menu Toggle Button (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), background 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(12, 12, 16, 0.98);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 40px 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-top img {
    height: 26px;
    width: auto;
}

.mobile-menu-close {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 60px;
}

.mobile-menu nav a {
    color: var(--white);
    font-size: clamp(32px, 8vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.mobile-menu nav a span {
    font-size: 14px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* =========================================================
   HERO SECTION (VERTICAL CENTERED CAROUSEL)
========================================================= */
.hero-track {
    position: relative;
    height: 200vh; /* Piste de scroll : flou + disparition du titre */
    background: var(--bg);
}

.hero {
    position: sticky;
    top: 0;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 32px;
    overflow: hidden;
    text-align: center;
}

/* Profil compact en bas à gauche du Header */
.hero-profile {
    position: absolute;
    bottom: 40px;
    left: 48px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    z-index: 5;
}

.hero-profile-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(82, 79, 247, 0.25);
}

.hero-profile-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.hero-profile-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
}

.hero-profile-role {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.hero-content {
    max-width: var(--container);
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-label {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 40px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.hero-label::before, .hero-label::after {
    content: "";
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--gradient);
}

/* Centered Skills Carousel */
.hero-skills-carousel {
    position: relative;
    width: 100%;
    height: clamp(90px, 11vw, 200px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    padding-bottom: 0.2em;
}

.hero-skill-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(26px, 11.5vw, 200px);
    letter-spacing: -0.04em;
    line-height: 1.2;
    padding-bottom: 0.15em;
    color: var(--black);
    opacity: 0;
    transform: translateY(90px);
    filter: blur(6px);
    transition: transform 0.85s var(--ease), opacity 0.75s var(--ease), filter 0.75s var(--ease);
    pointer-events: none;
    white-space: nowrap;
}

.hero-skill-item.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    pointer-events: auto;
}

.hero-skill-item.exit-up {
    opacity: 0;
    transform: translateY(-90px);
    filter: blur(6px);
}

/* Mouvement réduit : hero non figé, pas de flou ni d'overlay */
@media (prefers-reduced-motion: reduce) {
    .hero-track { height: auto; }
    .hero { position: static; height: auto; min-height: 100dvh; }
    .services { margin-top: 0; }
}

/* =========================================================
   SERVICES SECTION (STACKING OPAQUE SANS TRANSPARENCE)
========================================================= */
.services {
    padding: 130px 48px;
    position: relative;
    z-index: 2;
    margin-top: -100dvh;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--black);
}

.services .section-title {
    color: var(--bg);
}

.services-inner {
    max-width: var(--container);
    margin: 0 auto;
}

.section-header {
    margin-bottom: 70px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-title {
    font-size: clamp(38px, 8vw, 226px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--black);
}

.services-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Service Card 100% OPAQUE - Correction erreur-corriger.png */
.service-card {
    position: sticky;
    top: calc(90px + var(--stack-offset, 0px));
    background: #fafafa !important; /* 100% opaque, pas de transparence */
    opacity: 1;                     /* opaque par défaut (diminué en JS pour la perspective) */
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 44px 52px;
    box-shadow: 0 16px 44px -8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
    cursor: pointer;
    transform-origin: top center;
    will-change: transform;
    transition: box-shadow 0.4s var(--ease), background 0.45s var(--ease), border-color 0.45s;
}

.service-card-main {
    display: grid;
    grid-template-columns: 80px 1.4fr 1.6fr 52px;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.service-card:hover {
    box-shadow: 0 24px 54px -10px rgba(82, 79, 247, 0.15);
    border-color: rgba(82, 79, 247, 0.3);
}

.service-index {
    font-size: 15px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.08em;
}

.service-name {
    font-size: clamp(24px, 2.8vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--black);
    transition: color 0.4s;
}

.service-desc {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    transition: color 0.4s;
}

.service-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--black);
    transition: transform 0.4s var(--ease), background 0.4s, color 0.4s, border-color 0.4s;
}

/* Service Card Expanded State */
.service-card.expanded {
    background: var(--black) !important;
    border-color: var(--primary);
    box-shadow: 0 28px 70px -15px var(--gradient-glow);
}

.service-card.expanded .service-name {
    color: #ffffff;
}

.service-card.expanded .service-desc {
    color: #a4a4b0;
}

.service-card.expanded .service-index {
    color: var(--secondary);
}

.service-card.expanded .service-arrow {
    transform: rotate(90deg);
    background: var(--gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 0 16px var(--gradient-cyan-glow);
}

/* Tiroir de détails détaillé au clic */
.service-expanded-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s var(--ease), opacity 0.5s var(--ease), padding 0.5s;
    border-top: 1px solid transparent;
}

.service-card.expanded .service-expanded-content {
    max-height: 380px;
    opacity: 1;
    padding-top: 28px;
    border-top-color: rgba(255, 255, 255, 0.1);
}

.service-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.detail-block h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.detail-block p, .detail-block ul {
    font-size: 14px;
    color: #c0c0cc;
    line-height: 1.6;
    list-style: none;
}

.detail-block ul li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
}

.detail-block ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary);
}

/* =========================================================
   PROCESS SECTION (PINNED FULLSCREEN AVEC TRACK 400VH)
========================================================= */
.process-track-wrapper {
    position: relative;
    height: 400vh; /* Pinned scroll container */
    background: var(--black);
}

.process {
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 48px;
    overflow: hidden;
}

.process-inner {
    position: relative;
    max-width: var(--container);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-header {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    will-change: filter, opacity, transform;
}

.process-giant-title {
    font-size: clamp(44px, 10vw, 200px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--white);
}

/* Process Container */
.process-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 60px;
    align-items: center;
    opacity: 0;
    transition: opacity 0.6s var(--ease);
    pointer-events: none;
}

/* Timeline verticale — hauteur synchronisée sur process-steps (recalculée par JS) */
.process-timeline {
    position: relative;
    height: 380px; /* Fallback, recalculé par syncTimeline() */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-line {
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: #252530;
    z-index: 1;
}

.timeline-progress {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5px;
    height: 0;
    background: var(--gradient);
    box-shadow: 0 0 14px var(--gradient-cyan-glow);
    z-index: 2;
    transition: height 0.5s var(--ease);
}

.timeline-points {
    position: absolute;
    inset: 0;
    z-index: 3;
}

/* Points positionnés en absolu par syncTimeline() — alignés au centre de chaque process-step-title */
.timeline-point {
    position: absolute;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transform: translateY(-50%);
    transition: top 0.5s var(--ease);
}

.point-number {
    font-size: 13px;
    font-weight: 700;
    color: #555562;
    letter-spacing: 0.08em;
    transition: color 0.4s var(--ease);
}

.point-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #202028;
    border: 2px solid var(--dark-bg);
    transition: background 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.timeline-point.active .point-number {
    color: var(--white);
}

.timeline-point.active .point-dot {
    background: var(--secondary);
    box-shadow: 0 0 16px var(--secondary);
    transform: scale(1.35);
}

.timeline-point.passed .point-dot {
    background: var(--primary);
}

/* Steps List */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.process-step {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
    cursor: pointer;
    transition: border-color 0.4s;
}

.process-step-title {
    font-size: clamp(22px, 2.4vw, 38px);
    letter-spacing: -0.04em;
    color: #484854;
    transition: color 0.5s var(--ease), transform 0.5s var(--ease);
}

.process-step.active .process-step-title {
    color: var(--white);
    transform: translateX(6px);
}

.process-step-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.7s var(--ease), opacity 0.5s var(--ease), margin-top 0.5s var(--ease);
}

.process-step.active .process-step-body {
    max-height: 500px;
    opacity: 1;
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(260px, 400px) 1fr;
    gap: 36px;
    align-items: center;
}

.process-step-desc {
    font-size: clamp(15px, 1.3vw, 18px);
    color: #b0b0bc;
    line-height: 1.6;
    max-width: 680px;
    order: 2;
}

/* SVG Vector Graphics avec Dégradé #524FF7 + #00C3D0 */
.process-graphic-wrap {
    order: 1;
    background: var(--black);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.process-svg {
    width: 100%;
    max-width: 480px;
    height: 120px;
}

/* SVG Animations */
@keyframes spinDial {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin-dial {
    transform-origin: center;
    animation: spinDial 12s linear infinite;
}

@keyframes pulseAnchor {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}

.anchor-pulse {
    transform-origin: center;
    animation: pulseAnchor 2.4s ease-in-out infinite;
}

@keyframes dashPulse {
    to { stroke-dashoffset: -200; }
}

.pulse-wave {
    stroke-dasharray: 200;
    animation: dashPulse 4s linear infinite;
}

/* =========================================================
   REALISATIONS SECTION (GRAND TITRE GIF + FILTRES AGRANDIS)
========================================================= */
.work {
    padding: 140px 48px;
    position: relative;
    border-top: 1px solid var(--line);
}

.work-inner {
    max-width: var(--container);
    margin: 0 auto;
}

/* Grand Titre Centré style titre-realisations.gif */
.realisations-hero-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 70px;
}

.giant-realisations-title {
    display: flex;
    align-items: center;
    justify-content: center;
    /*gap: clamp(16px, 2.5vw, 36px);*/
    gap: 0;
    font-size: clamp(52px, 13vw, 286px);
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: var(--black);
    flex-wrap: wrap;
}

.title-preview-slot {
    display: inline-flex;
    width: clamp(80px, 12vw, 170px);
    height: clamp(50px, 8vw, 110px);
    border-radius: clamp(10px, 1.5vw, 20px);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(82, 79, 247, 0.25);
    border: 2px solid rgba(82, 79, 247, 0.4);
    transform: translateY(2px);
    transition: transform 0.4s var(--ease);
}

.title-preview-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.giant-realisations-title:hover .title-preview-slot img {
    transform: scale(1.15);
}

.realisations-subtitle {
    font-size: 16px;
    color: var(--muted);
    max-width: 580px;
    margin-top: 20px;
    line-height: 1.6;
}

/* Filtres Agrandis */
.work-filters {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 70px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 14px 28px; /* Boutons agrandis */
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(0,0,0,0.03);
    transition: all 0.35s var(--ease);
}

.filter-btn:hover {
    color: var(--black);
    border-color: rgba(82, 79, 247, 0.35);
    box-shadow: 0 10px 24px -6px var(--gradient-glow);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 12px 28px -4px var(--gradient-glow);
}

/* 3 Colonnes Grille */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px 32px;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}

.project-card.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.95);
}

.project-card.fade-in {
    animation: cardAppear 0.6s var(--ease) forwards;
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.project-thumb {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 10px;
    overflow: hidden;
    background: #e6e5df;
    margin-bottom: 22px;
    border: 1px solid var(--line);
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.project-card:hover .project-thumb img {
    transform: scale(1.06);
}

/* Mock / Placeholder pour les nouveaux modules */
.placeholder-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #181822 0%, #0d0d12 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.placeholder-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, var(--gradient-glow) 0%, transparent 70%);
    opacity: 0.6;
}

.placeholder-badge {
    position: relative;
    z-index: 2;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 14px;
}

.placeholder-thumb h4 {
    position: relative;
    z-index: 2;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 14, 20, 0.45);
    backdrop-filter: blur(4px);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s var(--ease);
}

.project-overlay-btn {
    padding: 13px 26px;
    background: #ffffff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
    transform: translateY(12px);
    transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-overlay-btn {
    transform: translateY(0);
    box-shadow: 0 10px 25px var(--gradient-glow);
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.tag-pill {
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--white-gray);
    color: var(--muted);
}

.project-meta h3 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-meta p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
}


/* =====================================================================
       PAGE BIO : tout le CSS ci-dessous est limité aux classes .page-bio / .bio-*
       ===================================================================== */

    /* ---------- Base (limitée au composant) ---------- */
    .page-bio {
      position: relative;
      isolation: isolate;
      background-color: var(--bg);
      color: var(--black);
      font-family: var(--font-main);
      font-size: var(--bio-fs-text);
      font-weight: var(--bio-fw-text);
      line-height: 1.35;
      -webkit-font-smoothing: antialiased;
    }

    .page-bio__track {
      height: 300vh;
    }

    .page-bio__pin {
      position: sticky;
      top: 0;
      height: 100vh;
      padding: 140px 48px;
    }

    .bio-letter {
      opacity: 0;
    }

    .page-bio *,
    .page-bio *::before,
    .page-bio *::after {
      box-sizing: border-box;
    }

    .page-bio :where(h1, h2, p, ul, figure) { margin: 0; }
    .page-bio :where(ul) { padding: 0; list-style: none; }
    .page-bio :where(img) { display: block; max-width: 100%; height: auto; }

    .page-bio__inner {
      max-width: var(--container);

      margin: 0 auto;
    }

    /* ---------- Hero ---------- */
    .bio-hero__display {
      font-weight: var(--bio-fw-title);
      font-size: clamp(2.75rem, 8.2vw, 11.25rem);
      line-height: 1.02;
      letter-spacing: -0.03em;
      color: var(--bio-display);
    }

    .bio-hero__body {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      column-gap: 48px;
      margin-top: clamp(-40px, -2vw, 0px);
      margin-bottom: clamp(-160px, -8vw, -80px);
      min-height: 0;
    }

    /* ---------- Colonnes de texte ---------- */
    .bio-intro,
    .bio-approach {
      display: flex;
      flex-direction: column;
      gap: 40px;
      max-width: 480px;
      padding-bottom: 120px;
    }

    .bio-approach {
      justify-self: end;
      text-align: right;
    }

    .bio-intro__title,
    .bio-approach__title {
      font-weight: var(--bio-fw-title);
      font-size: clamp(1.75rem, 2.4vw, 2.75rem);
      line-height: 1.1;
      letter-spacing: -0.02em;
      color: var(--black);
    }

    .bio-intro__name {
      background-image: var(--gradient);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      color: transparent;
    }

    .bio-intro__text,
    .bio-approach__text {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .bio-intro__paragraph,
    .bio-approach__paragraph {
      font-size: var(--bio-fs-text);
      font-weight: var(--bio-fw-text);
      line-height: 1.35;
      color: var(--black);
    }

    /* ---------- Portrait ---------- */
    .bio-portrait {
      grid-column: 2;
      grid-row: 1;
      width: clamp(280px, 24vw, 480px);
      min-height: 0;
      animation: bio-bounce var(--bio-bounce-duration) ease-in-out infinite;
      will-change: transform;
    }

    .bio-portrait__img {
      width: auto;
      height: auto;
      max-width: 100%;
      max-height: calc(100dvh - var(--bio-page-y) * 2 - 15vh);
      object-fit: contain;
      margin: 0 auto;
      -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
      mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
    }

    @keyframes bio-bounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-18px); }
    }

    /* ---------- Marquee (icônes) ---------- */
    .bio-marquee {
      position: relative;
      z-index: 3;
      overflow-x: hidden;
      overflow-x: clip;
      padding-block: 20px;
      -webkit-backdrop-filter: blur(16px) saturate(160%);
      backdrop-filter: blur(6px) saturate(160%);
      margin-bottom : 100px;
    }

    .bio-marquee__track {
      display: flex;
      width: max-content;
      animation: bio-scroll-left var(--bio-marquee-duration) linear infinite;
    }

    .bio-marquee__list {
      display: flex;
      flex-shrink: 0;
      gap: var(--bio-marquee-gap);
      padding-right: var(--bio-marquee-gap);
    }

    .bio-marquee__item {
      position: relative;
    }

    .bio-marquee__glass {
      display: grid;
      place-items: center;
      width: 64px;
      height: 64px;
    }

    .bio-marquee__icon {
      width: 30px;
      height: 30px;
      object-fit: contain;
      transition: transform 0.25s var(--ease-out);
    }

    /* Infobulle : nom de l'application */
    .bio-marquee__item::after {
      content: attr(data-tooltip);
      position: absolute;
      bottom: calc(100% + 2px);
      left: 50%;
      padding: 6px 10px;
      border-radius: 8px;
      background-color: var(--black);
      color: var(--white);
      font-size: 12px;
      font-weight: var(--bio-fw-text);
      line-height: 1;
      white-space: nowrap;
      pointer-events: none;
      opacity: 0;
      transform: translate(-50%, 4px);
      transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
    }

    @media (hover: hover) {
      .bio-marquee__item:hover {
        z-index: 1;
      }

      .bio-marquee__item:hover .bio-marquee__icon {
        transform: scale(1.3);
      }

      .bio-marquee__item:hover::after {
        opacity: 1;
        transform: translate(-50%, 0);
      }

      .bio-marquee:hover .bio-marquee__track {
        animation-play-state: paused;
      }
    }

    @keyframes bio-scroll-left {
      from { transform: translateX(0); }
      to { transform: translateX(-50%); }
    }

    /* ---------- Tablette ---------- */
    @media (max-width: 1024px) {
      :root {
        --bio-page-y: 96px;
        --bio-marquee-duration: 75s;
      }

      .bio-hero__display { font-size: clamp(2.5rem, 10vw, 6rem); }

      .bio-hero__body {
        grid-template-columns: 1fr 1fr;
        column-gap: 32px;
        row-gap: 40px;
        margin-top: 24px;
        margin-bottom: -72px;
      }

      .bio-portrait {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: center;
        width: clamp(260px, 46vw, 400px);
      }

      .bio-intro,
      .bio-approach {
        grid-row: 2;
        padding-bottom: 96px;
        max-width: none;
      }

      .bio-intro__title,
      .bio-approach__title { font-size: clamp(1.5rem, 3.4vw, 2rem); }
    }

    /* ---------- Mobile ---------- */
    @media (max-width: 640px) {
      :root {
        --bio-page-x: 20px;
        --bio-page-y: 64px;
        --bio-marquee-gap: 8px;
        --bio-marquee-duration: 60s;
      }


    .page-bio__pin {
      padding: 90px 24px;
    }

      .bio-hero__display { font-size: clamp(2.5rem, 10vw, 6rem); }

      /* Ordre : intro, portrait, approach, puis marquee bien en dessous */
      .bio-hero__body {
        grid-template-columns: 1fr;
        row-gap: 40px;
        margin-top: 24px;
        margin-bottom: 22px;
      }

      .bio-intro,
      .bio-approach {
        grid-row: auto;
        justify-self: start;
        text-align: left;
        gap: 24px;
        padding-bottom: 0;
      }

      .bio-intro { order: 1; }

      .bio-portrait {
        order: 2;
        grid-column: auto;
        grid-row: auto;
        justify-self: center;
        width: min(76vw, 320px);
      }

      .bio-approach { order: 3; }

      .bio-intro__text,
      .bio-approach__text { gap: 16px; }

      .bio-marquee { padding-block: 12px; }
      .bio-marquee__glass { width: 52px; height: 52px; }
    }

    /* ---------- Mouvement réduit ---------- */
    @media (prefers-reduced-motion: reduce) {
      .bio-portrait,
      .bio-marquee__track { animation: none; }
      .bio-marquee { overflow-x: auto; }
      .bio-letter { opacity: 1 !important; }
    }

    /* Désactive le pin (scroll-driven) sur tablette et mobile */
    @media (max-width: 1024px) {
      .page-bio__track { height: auto; }
      .page-bio__pin { position: static; height: auto; }
      .bio-letter { opacity: 1 !important; }
    }




/* =========================================================
   CONTACT SECTION
========================================================= */
.contact {
    padding: 140px 48px;
    background: var(--black);
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-title {
    color: var(--white);
    margin: 16px 0 24px;
}

.contact-info p {
    font-size: 16px;
    color: #a0a0ae;
    line-height: 1.65;
    max-width: 440px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888896;
}

.form-field input, .form-field textarea {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 16px 20px;
    color: var(--white);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-field input:focus, .form-field textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 16px var(--gradient-cyan-glow);
}

.form-field textarea {
    min-height: 130px;
    resize: vertical;
}

.service-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.checkbox-chip {
    cursor: pointer;
}

.checkbox-chip input {
    display: none;
}

.chip-label {
    display: block;
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 13px;
    color: #aaaaaa;
    transition: all 0.3s var(--ease);
}

.checkbox-chip input:checked + .chip-label {
    background: var(--gradient);
    color: #ffffff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 14px var(--gradient-glow);
}

.submit-btn {
    align-self: flex-start;
    padding: 17px 40px;
    background: var(--gradient);
    color: #ffffff;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px var(--gradient-glow);
}

.form-feedback {
    font-size: 14px;
    min-height: 1.2em;
    margin: 0;
}

.form-feedback.success { color: #34d399; }
.form-feedback.error { color: #f87171; }

/* =========================================================
   FOOTER (LINKEDIN & WHATSAPP, CONTACT@MANONWORKS.COM)
========================================================= */
footer {
    background: var(--black);
    color: var(--white);
    padding: 100px 48px 40px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-brand-logo {
    height: 38px;
    width: auto;
}

.footer-back-to-top {
    position: absolute;
    top: 40px;
    right: 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    color: var(--white);
    z-index: 5;
    transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s, color 0.4s;
}

.footer-back-to-top:hover {
    transform: translateY(-4px);
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(0, 195, 208, 0.08);
}

.footer-brand-desc {
    font-size: 14px;
    color: #888894;
    line-height: 1.6;
    max-width: 300px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-col-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #555562;
    margin-bottom: 8px;
}

.footer-column a {
    font-size: 14px;
    color: #a8a8b4;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-contact-item {
    font-size: 14px;
    color: #a8a8b4;
    line-height: 1.6;
}

.footer-contact-item a {
    color: #a8a8b4;
    font-weight: 500;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 28px;
}

.footer-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666672;
    margin-bottom: 80px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-sub a:hover {
    color: #999999;
}

/* Giant Signature : MANON.WORKS pleine largeur (scalable, sans déformation) */
.footer-giant-branding {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-top: 20px;
    text-align: center;
    overflow: hidden;
}

.footer-giant-text {
    display: inline-block;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: clamp(48px, 13.5vw, 240px);
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: #f2eee5;
    white-space: nowrap;
}

/* =========================================================
   SERVICE EXPANDED : TAGS OUTILS
========================================================= */
.service-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #1d1d26;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 400;
    color: #e8e8ed;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s;
}

.service-tech-tag img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.service-tech-tag:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
    background: #26262f;
}

/* =========================================================
   ICÔNES SOCIALES FIXES
========================================================= */
.social-fixed {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-fixed-link {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s, color 0.3s;
}

.social-fixed-link:hover {
    transform: translateY(-3px);
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.3);
}

.social-fixed-link img {
    width: 18px;
    height: 18px;
    display: block;
    transition: opacity 0.4s var(--ease);
}

.social-fixed-link .icon-white {
    position: absolute;
    inset: 0;
    margin: auto;
    opacity: 0;
}

.social-fixed.theme-dark .social-fixed-link .icon-dark { opacity: 0; }
.social-fixed.theme-dark .social-fixed-link .icon-white { opacity: 1; }

/* =========================================================
   PAGES LÉGALES & 404
========================================================= */
.legal-content {
    padding: 160px 48px 120px;
    max-width: 820px;
    margin: 0 auto;
    color: var(--text);
}

.legal-content h1 {
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--black);
    margin-bottom: 10px;
}

.legal-content h1.error-code {
    font-size: clamp(80px, 20vw, 200px);
    letter-spacing: -0.05em;
}

.legal-content .legal-update {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 48px;
}

.legal-content h2 {
    font-size: clamp(20px, 2.4vw, 28px);
    letter-spacing: -0.02em;
    color: var(--black);
    margin: 40px 0 16px;
}

.legal-content p {
    font-size: 15px;
    color: #4a4a52;
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.legal-content ul li {
    position: relative;
    padding-left: 16px;
    font-size: 15px;
    color: #4a4a52;
    line-height: 1.7;
    margin-bottom: 6px;
}

.legal-content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary);
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 48px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s;
}

.legal-back:hover {
    color: var(--black);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
    .desktop-nav { display: none; }
    .menu-toggle { display: flex; }
    .service-card-main { grid-template-columns: 60px 1fr 40px; gap: 24px; }
    .service-desc { display: none; }
    .service-details-grid { grid-template-columns: 1fr; gap: 20px; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-inner { grid-template-columns: 1fr; gap: 40px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .header { padding: 12px 16px; }
    .nav-container { padding: 0 16px; gap: 16px; }
    .services, .work, .contact { padding: 90px 24px; }
    .hero-profile { bottom: 24px; left: 24px; gap: 12px; }
    .hero-profile-img { width: 48px; height: 48px; }
    .hero-profile-name { font-size: 14px; }
    .hero-profile-role { font-size: 12px; }
    footer { padding: 80px 24px 30px; }
    .projects-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-sub { flex-direction: column; align-items: flex-start; }
    .process-container { grid-template-columns: 1fr; gap: 30px; }
    .process-timeline { display: none; }
    .process-step.active .process-step-body { grid-template-columns: 1fr; gap: 20px; }
    .process-graphic-wrap { order: 2; }
    .process-step-desc { order: 1; }
}