*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple: #7c3aed;
    --purple-light: #a855f7;
    --purple-glow: #c084fc;
    --purple-dark: #4c1d95;
    --bg: #06030f;
    --surface: #110a2a;
    --text: #e2d9f3;
    --muted: #8b7fa8;
    --accent: #e879f9;
}

* {
    cursor: none !important;
}

/* curseur — styles injectés par main.js */
#crosshair {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none !important;
    z-index: 9999;
    will-change: transform;
}

/* Tous les éléments interactifs passent au-dessus du curseur */
a,
button,
input,
textarea,
select,
label {
    pointer-events: auto !important;
    position: relative;
    z-index: 10000;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    opacity: .4;
}

/* ── PLANÈTES FOND ── */
.space-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-planet {
    position: absolute;
    border-radius: 50%;
    animation: planetDrift ease-in-out infinite;
}

.ring-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(68deg);
    pointer-events: none;
}

.bg-planet-1 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at 35% 35%, rgba(168, 85, 247, .13) 0%, rgba(124, 58, 237, .06) 50%, transparent 100%);
    border: 1px solid rgba(168, 85, 247, .07);
    bottom: 8%;
    left: -70px;
    animation-duration: 26s;
}

.bg-planet-2 {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle at 40% 30%, rgba(232, 121, 249, .18) 0%, rgba(168, 85, 247, .07) 60%, transparent 100%);
    border: 1px solid rgba(232, 121, 249, .10);
    top: 12%;
    right: 6%;
    animation-duration: 19s;
    animation-delay: -7s;
}

.bg-planet-3 {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at 30% 25%, rgba(124, 58, 237, .15) 0%, rgba(76, 29, 149, .05) 60%, transparent 100%);
    border: 1px solid rgba(124, 58, 237, .07);
    top: 50%;
    right: -50px;
    animation-duration: 32s;
    animation-delay: -14s;
}

.bg-planet-4 {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 40% 35%, rgba(192, 132, 252, .25) 0%, rgba(124, 58, 237, .07) 60%, transparent 100%);
    border: 1px solid rgba(192, 132, 252, .15);
    top: 28%;
    left: 28%;
    animation-duration: 20s;
    animation-delay: -5s;
}

.bg-planet-5 {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle at 35% 30%, rgba(168, 85, 247, .16) 0%, transparent 70%);
    border: 1px solid rgba(168, 85, 247, .08);
    bottom: 25%;
    right: 22%;
    animation-duration: 24s;
    animation-delay: -10s;
}

@keyframes planetDrift {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-14px) translateX(8px);
    }

    50% {
        transform: translateY(-6px) translateX(16px);
    }

    75% {
        transform: translateY(10px) translateX(5px);
    }
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(6, 3, 15, .6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(124, 58, 237, .15);
}

.nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: white;
    letter-spacing: -.02em;
    position: relative;
    text-decoration: none;
}

.nav-logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s;
}

.nav-logo:hover::after {
    transform: scaleX(1);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: color .3s;
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    right: 50%;
    height: 1px;
    background: var(--purple-light);
    transition: left .3s, right .3s;
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::before {
    left: 0;
    right: 0;
}

.nav-admin {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .38rem .9rem;
    border: 1px solid rgba(124, 58, 237, .3);
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: all .3s;
    background: rgba(124, 58, 237, .05);
}

.nav-admin svg {
    width: 11px;
    height: 11px;
    opacity: .5;
    transition: opacity .3s;
}

.nav-admin:hover {
    color: white;
    border-color: rgba(124, 58, 237, .65);
    background: rgba(124, 58, 237, .14);
    box-shadow: 0 0 18px rgba(124, 58, 237, .18);
}

.nav-admin:hover svg {
    opacity: 1;
}

section {
    position: relative;
    z-index: 2;
}

/* ── HERO ── */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10rem 4rem 6rem;
    overflow: hidden;
    gap: 4rem;
}

.hero-left {
    flex: 1;
    max-width: 580px;
}

.hero-tag {
    font-size: .85rem;
    color: var(--purple-glow);
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0;
    animation: slideUp .8s .3s ease forwards;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.hero-tag::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--purple-glow);
}

.hero-quote {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.03em;
    opacity: 0;
    animation: slideUp .9s .5s ease forwards;
}

.hero-quote .strike {
    position: relative;
    display: inline-block;
    color: var(--purple-light);
}

.hero-quote .strike::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 3px;
    background: var(--accent);
    animation: strikeThrough .6s 1.8s ease forwards;
}

@keyframes strikeThrough {
    to {
        width: 100%;
    }
}

.hero-sub {
    font-size: 1rem;
    color: var(--muted);
    margin-top: .5rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideUp .8s .7s ease forwards;
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -.02em;
    margin-top: 2rem;
    opacity: 0;
    animation: slideUp .8s .9s ease forwards;
}

.hero-title .cursor-blink {
    display: inline-block;
    width: 3px;
    height: .9em;
    background: var(--accent);
    margin-left: 4px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

.hero-company {
    color: var(--purple-light);
    font-size: .95rem;
    opacity: 0;
    animation: slideUp .8s 1.1s ease forwards;
    margin-top: .3rem;
    margin-bottom: 1.5rem;
}

.hero-bio {
    font-size: .9rem;
    line-height: 1.75;
    color: var(--muted);
    opacity: 0;
    animation: slideUp .8s 1.2s ease forwards;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, .20) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(232, 121, 249, .10) 0%, transparent 70%);
    bottom: 0;
    left: 0;
    animation: orbFloat 10s ease-in-out infinite reverse;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1)
    }

    50% {
        transform: translate(20px, -30px) scale(1.05)
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ── MÉDAILLON PHOTO 3D ── */
.medallion-wrap {
    flex-shrink: 0;
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeInMed 1.2s .8s ease forwards;
}

@keyframes fadeInMed {
    from {
        opacity: 0;
        transform: scale(.85)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

/* la photo */
.med-photo {
    position: relative;
    z-index: 5;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow:
        0 0 0 3px rgba(168, 85, 247, .5),
        0 0 0 6px rgba(124, 58, 237, .2),
        0 0 40px rgba(124, 58, 237, .7),
        0 0 80px rgba(124, 58, 237, .35),
        0 0 120px rgba(124, 58, 237, .15),
        inset -40px -15px 50px rgba(20, 0, 60, .75);
    animation: medGlow 4s ease-in-out infinite;
}

.med-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* shine — reflet lumière */
.med-shine {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(ellipse at 30% 25%, rgba(255, 255, 255, .18) 0%, transparent 55%);
    pointer-events: none;
    z-index: 2;
}

/* atmosphère */
.med-atmosphere {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 70% 75%, rgba(76, 29, 149, .55) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

@keyframes medGlow {

    0%,
    100% {
        box-shadow:
            0 0 0 3px rgba(168, 85, 247, .5),
            0 0 0 6px rgba(124, 58, 237, .2),
            0 0 40px rgba(124, 58, 237, .7),
            0 0 80px rgba(124, 58, 237, .35),
            0 0 120px rgba(124, 58, 237, .15),
            inset -40px -15px 50px rgba(20, 0, 60, .75);
    }

    50% {
        box-shadow:
            0 0 0 3px rgba(232, 121, 249, .65),
            0 0 0 7px rgba(168, 85, 247, .25),
            0 0 55px rgba(168, 85, 247, .85),
            0 0 110px rgba(124, 58, 237, .5),
            0 0 160px rgba(124, 58, 237, .2),
            inset -40px -15px 50px rgba(20, 0, 60, .75);
    }
}

/* anneaux de Saturne inclinés */
.med-saturn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(72deg);
    z-index: 3;
    animation: saturnDrift 18s ease-in-out infinite;
}

@keyframes saturnDrift {

    0%,
    100% {
        transform: translate(-50%, -50%) rotateX(72deg) rotateZ(0deg);
    }

    50% {
        transform: translate(-50%, -50%) rotateX(72deg) rotateZ(5deg);
    }
}

.med-saturn-ring-1 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 3px solid rgba(168, 85, 247, .6);
    box-shadow: 0 0 18px rgba(168, 85, 247, .5), 0 0 35px rgba(124, 58, 237, .25), inset 0 0 18px rgba(168, 85, 247, .15);
}

.med-saturn-ring-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 286px;
    height: 286px;
    border-radius: 50%;
    border: 1.5px solid rgba(232, 121, 249, .3);
    box-shadow: 0 0 12px rgba(232, 121, 249, .2);
}

/* orbites lunes */
.med-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(124, 58, 237, .18);
}

.med-orbit-1 {
    width: 220px;
    height: 220px;
    margin: -110px 0 0 -110px;
    animation: medOrbit 9s linear infinite;
}

.med-orbit-2 {
    width: 270px;
    height: 270px;
    margin: -135px 0 0 -135px;
    animation: medOrbit 14s linear infinite reverse;
}

.med-orbit-3 {
    width: 310px;
    height: 310px;
    margin: -155px 0 0 -155px;
    animation: medOrbit 20s linear infinite;
}

@keyframes medOrbit {
    to {
        transform: rotate(360deg);
    }
}

.med-dot {
    position: absolute;
    border-radius: 50%;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.med-dot-a {
    width: 10px;
    height: 10px;
    background: var(--purple-light);
    box-shadow: 0 0 12px var(--purple-light), 0 0 24px rgba(168, 85, 247, .5);
}

.med-dot-b {
    width: 7px;
    height: 7px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(232, 121, 249, .5);
    top: -4px;
}

.med-dot-c {
    width: 5px;
    height: 5px;
    background: var(--purple-glow);
    box-shadow: 0 0 8px var(--purple-glow);
    top: -3px;
}

/* ── WORK EXPERIENCE ── */
#work {
    padding: 6rem 4rem;
}

.section-label {
    font-size: .8rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--purple-glow);
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(124, 58, 237, .4), transparent);
    max-width: 200px;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 3rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
}

.card {
    background: rgba(17, 10, 42, .8);
    border: 1px solid rgba(124, 58, 237, .2);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform .4s, border-color .4s, box-shadow .4s;
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(124, 58, 237, .12), transparent 60%);
    opacity: 0;
    transition: opacity .4s;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(124, 58, 237, .5);
    box-shadow: 0 20px 60px rgba(124, 58, 237, .25), 0 0 0 1px rgba(124, 58, 237, .2);
}

.card-icon-svg {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-svg svg {
    width: 20px;
    height: 20px;
}

.card-icon-svg.blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.card-icon-svg.pink {
    background: linear-gradient(135deg, #ec4899, #9333ea);
}

.card-icon-svg.teal {
    background: linear-gradient(135deg, #06b6d4, #0284c7);
}

.card-icon-svg.orange {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.card-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.card-desc {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.5;
}

.card-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: .4rem 1rem;
    border: 1px solid rgba(124, 58, 237, .4);
    border-radius: 20px;
    font-size: .75rem;
    color: var(--purple-light);
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: background .3s, color .3s;
    text-decoration: none;
}

.card-btn:hover {
    background: var(--purple);
    color: white;
}

/* ── LOOKING FOR ── */
#looking {
    padding: 5rem 4rem;
    text-align: center;
}

.looking-text {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 2rem;
}

.looking-text a {
    color: var(--purple-light);
    font-weight: 500;
    position: relative;
    text-decoration: none;
}

.looking-text a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    right: 0;
    height: 1px;
    background: var(--purple-light);
    transform: scaleX(.5);
    transition: transform .3s;
    transform-origin: left;
}

.looking-text a:hover::after {
    transform: scaleX(1);
}

.tech-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tech-badge {
    padding: .5rem 1.2rem;
    border: 1px solid rgba(124, 58, 237, .3);
    border-radius: 30px;
    font-size: .8rem;
    color: var(--muted);
    transition: all .3s;
    backdrop-filter: blur(10px);
    background: rgba(17, 10, 42, .5);
}

.tech-badge:hover {
    border-color: var(--purple-light);
    color: var(--purple-light);
    box-shadow: 0 0 20px rgba(124, 58, 237, .3);
    transform: translateY(-2px);
}

/* ── ORBIT ── */
#orbit-section {
    padding: 4rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-center {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--purple), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    z-index: 5;
    box-shadow: 0 0 60px rgba(124, 58, 237, .7);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 60px rgba(124, 58, 237, .7)
    }

    50% {
        box-shadow: 0 0 100px rgba(168, 85, 247, .9), 0 0 40px rgba(232, 121, 249, .5)
    }
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(124, 58, 237, .2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-1 {
    width: 150px;
    height: 150px;
    animation: rotateSlow 8s linear infinite;
}

.orbit-2 {
    width: 220px;
    height: 220px;
    animation: rotateSlow 14s linear infinite reverse;
}

.orbit-3 {
    width: 290px;
    height: 290px;
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
    to {
        transform: rotate(360deg)
    }
}

.orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--purple-light);
    box-shadow: 0 0 15px var(--purple-light);
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-dot.accent {
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

/* ── PROJECTS ── */
#projects {
    padding: 6rem 4rem;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity .8s, transform .8s;
}

.project-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-item:nth-child(even) {
    direction: rtl;
}

.project-item:nth-child(even)>* {
    direction: ltr;
}

.project-label {
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--purple-glow);
    margin-bottom: .5rem;
}

.project-name {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--muted);
    line-height: 1.7;
    font-size: .9rem;
    max-width: 400px;
}

.project-tags {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.project-tag {
    padding: .3rem .8rem;
    border-radius: 20px;
    font-size: .75rem;
    background: rgba(124, 58, 237, .15);
    border: 1px solid rgba(124, 58, 237, .3);
    color: var(--purple-light);
}

.project-img-wrap {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, .2);
    position: relative;
    transition: transform .5s, box-shadow .5s;
}

.project-img-wrap:hover {
    transform: scale(1.03) rotate(-1deg);
    box-shadow: 0 30px 80px rgba(124, 58, 237, .4);
}

.project-img-wrap img {
    width: 100%;
    display: block;
}

.project-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(124, 58, 237, .3));
    pointer-events: none;
}

/* ── PLANÈTE DÉCO ── */
#planet-deco {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    overflow: hidden;
    min-height: 500px;
    border-top: 1px solid rgba(124, 58, 237, .08);
    border-bottom: 1px solid rgba(124, 58, 237, .08);
}

.deco-text {
    display: none;
}

#planetCanvas {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 460px;
    height: 460px;
    opacity: 1;
    pointer-events: auto;
    display: block;
    margin: 0 auto;
}

/* ── CONTACT ── */
#contact {
    padding: 6rem 4rem;
    border-top: 1px solid rgba(124, 58, 237, .15);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-heading {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 1rem;
}

.contact-heading span {
    background: linear-gradient(90deg, var(--purple-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info {
    margin-top: 2rem;
}

.contact-info p {
    color: var(--muted);
    margin-bottom: .8rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
}

.contact-info p strong {
    color: var(--text);
}

.social-row {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--muted);
    transition: all .3s;
    background: rgba(17, 10, 42, .5);
    overflow: hidden;
    flex-shrink: 0;
}

.social-btn img {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain;
    display: block;
    border-radius: 3px;
}

.social-btn:hover {
    border-color: var(--purple-light);
    background: rgba(124, 58, 237, .15);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, .3);
}

.contact-form-box {
    background: rgba(17, 10, 42, .8);
    border: 1px solid rgba(124, 58, 237, .2);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

.form-input {
    width: 100%;
    background: rgba(6, 3, 15, .5);
    border: 1px solid rgba(124, 58, 237, .2);
    border-radius: 10px;
    padding: .8rem 1rem;
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: .88rem;
    outline: none;
    transition: border-color .3s;
}

.form-input::placeholder {
    color: var(--muted);
}

.form-textarea {
    resize: none;
}

.form-btn {
    width: 100%;
    padding: .85rem;
    background: linear-gradient(135deg, var(--purple), var(--accent));
    border: none;
    border-radius: 10px;
    color: white;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .88rem;
    letter-spacing: .04em;
    transition: opacity .3s, transform .2s;
}

.form-btn:hover {
    opacity: .88;
    transform: scale(1.01);
}

/* ── FOOTER ── */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
    font-size: .8rem;
    border-top: 1px solid rgba(124, 58, 237, .1);
    position: relative;
    z-index: 2;
}

/* ── REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s, transform .8s;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--purple), var(--accent));
    border-radius: 3px;
}

/* ── RESPONSIVE ── */
/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 900px) {

    /* HERO — empilé */
    #hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 8rem 2rem 4rem;
        gap: 2rem;
        min-height: auto;
    }

    .hero-left {
        max-width: 100%;
    }

    .medallion-wrap {
        align-self: center;
        width: 220px;
        height: 220px;
    }

    .med-photo {
        width: 150px;
        height: 150px;
    }

    .med-saturn-ring-1 {
        width: 200px;
        height: 200px;
    }

    .med-saturn-ring-2 {
        width: 228px;
        height: 228px;
    }

    .med-orbit-1 {
        width: 180px;
        height: 180px;
        margin: -90px 0 0 -90px;
    }

    .med-orbit-2 {
        width: 220px;
        height: 220px;
        margin: -110px 0 0 -110px;
    }

    .med-orbit-3 {
        width: 256px;
        height: 256px;
        margin: -128px 0 0 -128px;
    }

    /* PLANÈTE DÉCO */
    #planet-deco {
        min-height: 360px;
    }

    #planetCanvas {
        width: 320px;
        height: 320px;
    }
}

@media (max-width: 768px) {

    /* NAV */
    nav {
        padding: .9rem 1.2rem;
        gap: .6rem;
        flex-wrap: nowrap;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: .7rem;
        letter-spacing: .03em;
    }

    .nav-admin {
        padding: .28rem .6rem;
        font-size: .62rem;
    }

    .lang-btn {
        padding: .25rem .55rem;
        font-size: .6rem;
    }

    /* HERO */
    #hero {
        padding: 7rem 1.2rem 3rem;
    }

    .hero-quote {
        font-size: clamp(1.8rem, 7vw, 3rem);
    }

    .hero-title {
        font-size: clamp(1.4rem, 5vw, 2.2rem);
    }

    .medallion-wrap {
        width: 180px;
        height: 180px;
    }

    .med-photo {
        width: 120px;
        height: 120px;
    }

    .med-saturn-ring-1 {
        width: 168px;
        height: 168px;
    }

    .med-saturn-ring-2 {
        width: 192px;
        height: 192px;
    }

    .med-orbit-1 {
        width: 150px;
        height: 150px;
        margin: -75px 0 0 -75px;
    }

    .med-orbit-2 {
        width: 185px;
        height: 185px;
        margin: -92px 0 0 -92px;
    }

    .med-orbit-3 {
        width: 215px;
        height: 215px;
        margin: -108px 0 0 -108px;
    }

    /* SECTIONS */
    #work,
    #projects,
    #contact,
    #looking {
        padding: 3.5rem 1.2rem;
    }

    /* CARDS */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* PROJECTS */
    .project-item {
        grid-template-columns: 1fr;
        direction: ltr !important;
        gap: 1.5rem;
        margin-bottom: 4rem;
    }

    .project-item:nth-child(even) {
        direction: ltr;
    }

    /* ORBIT */
    #orbit-section {
        padding: 2.5rem 0;
    }

    .orbit-container {
        width: 220px;
        height: 220px;
        transform: scale(0.75);
    }

    /* CONTACT */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-heading {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    /* PLANÈTE DÉCO */
    #planet-deco {
        min-height: 280px;
    }

    #planetCanvas {
        width: 260px;
        height: 260px;
    }

    /* LOOKING */
    #looking {
        padding: 3rem 1.2rem;
    }

    .tech-row {
        gap: .6rem;
    }

    .tech-badge {
        padding: .4rem .9rem;
        font-size: .72rem;
    }

    /* SECTION LABELS */
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: .8rem 1rem;
    }

    .nav-links {
        gap: .7rem;
    }

    .nav-links a {
        font-size: .65rem;
    }

    .nav-logo {
        font-size: 1.3rem;
    }

    .lang-switch {
        display: none;
    }

    #hero {
        padding: 6.5rem 1rem 2.5rem;
    }

    .hero-bio {
        font-size: .82rem;
    }

    .medallion-wrap {
        width: 150px;
        height: 150px;
    }

    .med-photo {
        width: 100px;
        height: 100px;
    }

    .med-saturn-ring-1 {
        width: 140px;
        height: 140px;
    }

    .med-orbit-3 {
        display: none;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .tech-badge {
        padding: .35rem .75rem;
        font-size: .68rem;
    }

    #planetCanvas {
        width: 220px;
        height: 220px;
    }

    .orbit-container {
        transform: scale(0.6);
    }
}

/* === LANG SWITCH === */
.lang-switch {
    display: flex;
    align-items: center;
    background: rgba(124, 58, 237, .08);
    border: 1px solid rgba(124, 58, 237, .25);
    border-radius: 20px;
    overflow: hidden;
}

.lang-btn {
    padding: .3rem .7rem;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    background: none;
    border: none;
    font-family: 'DM Sans', sans-serif;
    transition: all .2s;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--purple), var(--accent));
    color: white;
    border-radius: 18px;
}

.lang-btn:hover:not(.active) {
    color: white;
}