/* ================================
   BASE
================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: #0B0112;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ================================
   PARTICLES & SCAN LINES
================================ */
#particles-js {
    position: fixed;
    width: 100%; height: 100%;
    top: 0; left: 0;
    z-index: -1;
    background-color: #0B0112;
}

.scan-lines {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent, transparent 3px,
        rgba(0,0,0,0.04) 3px, rgba(0,0,0,0.04) 4px
    );
}

/* ================================
   HEADER
================================ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Zen Dots", sans-serif;
    font-size: 20px;
    background: #000000;
    padding: 16px 24px;
    border-bottom: 1px solid white;
    box-shadow: 0px 0px 17px 1px rgba(191, 0, 255, 0.9);
    position: relative;
    z-index: 10;
}

a {
    text-decoration: none;
    display: flex;
    align-items: center;
    margin: 8px 16px;
}

nav { display: flex; align-items: center; }

nav > a {
    color: #BF00FF;
    transition: color 0.3s, text-shadow 0.3s;
}

nav > a:hover {
    color: #ffffff;
    text-shadow: 0 0 12px #BF00FF;
}

/* ================================
   MAIN LAYOUT
================================ */
main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(100vh - 98px);
    padding: 40px 80px;
    position: relative;
    z-index: 1;
}

/* ================================
   TEXTE / TITRE
================================ */
.titre {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeInLeft 0.9s ease both;
}

.eyebrow {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(191, 0, 255, 0.7);
    font-weight: 400;
}

.portfolio {
    color: #BF00FF;
    font-family: "Zen Dots", sans-serif;
    font-size: clamp(72px, 10vw, 148px);
    line-height: 1;
    text-shadow: rgba(182, 101, 209, 0.9) 0px 0px 22px;
    position: relative;
}

/* Effet glitch sur "Portfolio" */
.portfolio::before,
.portfolio::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.portfolio::before {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    animation: glitch1 5s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    opacity: 0.6;
}

.portfolio::after {
    color: #ff00aa;
    text-shadow: 0 0 10px #ff00aa;
    animation: glitch2 5s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    opacity: 0.6;
}

.nom {
    font-family: "Zen Dots", sans-serif;
    font-size: clamp(32px, 4vw, 56px);
    text-shadow: rgba(182, 101, 209, 0.9) 0px 0px 22px;
    color: #ffffff;
    margin: 0;
}

/* Boutons CTA */
.cta-group {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #BF00FF;
    color: #000;
    font-family: "Zen Dots", sans-serif;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    transition: box-shadow 0.3s, transform 0.15s;
    box-shadow: 0 0 18px rgba(191, 0, 255, 0.5);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(191, 0, 255, 0.8);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #ffffff;
    border: 2px solid #BF00FF;
    font-family: "Zen Dots", sans-serif;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    transition: background 0.3s, box-shadow 0.3s, transform 0.15s;
}

.btn-outline:hover {
    background: rgba(191, 0, 255, 0.15);
    box-shadow: 0 0 18px rgba(191, 0, 255, 0.3);
    transform: translateY(-2px);
}

/* ================================
   IMAGE + ANNEAUX
================================ */
.image-wrapper {
    position: relative;
    width: 480px;
    height: 480px;
    flex-shrink: 0;
    animation: fadeInRight 0.9s ease both;
}

.image-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(191, 0, 255, 0.3);
    animation: pulse-ring 3s ease-in-out infinite;
}

.image-ring--outer {
    width: 520px; height: 520px;
    animation-delay: 0s;
}

.image-ring--inner {
    width: 500px; height: 500px;
    border-color: rgba(191, 0, 255, 0.15);
    animation-delay: 1.5s;
}

.image {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    width: 464px;
    height: 464px;
    border: 1px solid white;
    box-shadow: 0px 0px 17px 1px rgba(191, 0, 255, 0.9);
    overflow: hidden;
}

.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* ================================
   FOOTER MMI
================================ */
.mmi {
    font-family: "Zen Dots", sans-serif;
    font-size: 28px;
    text-shadow: rgba(182, 101, 209, 0.9) 0px 0px 22px;
    color: #BF00FF;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1;
}

/* ================================
   ANIMATIONS
================================ */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-ring {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 0.8; transform: translate(-50%, -50%) scale(1.02); }
}

@keyframes glitch1 {
    0%, 88%, 100% { transform: translate(0); opacity: 0; }
    90% { transform: translate(-3px, 1px); opacity: 0.6; }
    92% { transform: translate(3px, -1px); opacity: 0.6; }
    94% { transform: translate(0); opacity: 0; }
}

@keyframes glitch2 {
    0%, 88%, 100% { transform: translate(0); opacity: 0; }
    91% { transform: translate(3px, 2px); opacity: 0.6; }
    93% { transform: translate(-3px, -2px); opacity: 0.6; }
    95% { transform: translate(0); opacity: 0; }
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
    main {
        flex-direction: column;
        justify-content: center;
        padding: 60px 40px;
        gap: 60px;
        text-align: center;
    }

    .cta-group { justify-content: center; }

    .image-wrapper { width: 320px; height: 320px; }
    .image { width: 300px; height: 300px; }
    .image-ring--outer { width: 350px; height: 350px; }
    .image-ring--inner { width: 330px; height: 330px; }

    .mmi { font-size: 18px; bottom: 16px; right: 16px; }
}
