*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    color: #f0f0f0;
    background-color: #050505;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 108px;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 48% 0%, #1a1500 0%, #050505 60%);
    background-attachment: scroll;
}

::-webkit-scrollbar {
    width: 11px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #aa8c2c;
    border-radius: 5px;
    border: 3px solid #050505;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4af37;
}

/* ========================================= */
/* BARRE DE NAVIGATION                       */
/* ========================================= */

.navbar {
    top: 0;
    left: 0;
    width: 100%;
    height: 87px;
    position: fixed;
    background: rgba(5, 5, 5, 0.98);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 23px;
    z-index: 2000; /* Gardé à 2000 pour être au dessus de la lueur */
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.5);
}

.nav-brand {
    display: flex;
    align-items: center;
    margin-right: 9px;
    z-index: 2001;
}

.nav-logo-img {
    height: 48px;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
    transition: transform 0.3s ease;
    width: auto;
    object-fit: contain;
    margin-right: 14px;
}

.navbar:hover .nav-logo-img {
    transform: scale(1.05);
}

.nav-toggle {
    display: none;
}

.nav-burger, .btn-cv-mobile {
    display: none;
}

.nav-links {
    display: flex;
    justify-content: center;
    flex: 1;
    gap: 1.85vw;
    margin: 0 11px;
}

.nav-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: clamp(0.7rem, 1vw + 0.3rem, 0.85rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

.nav-links a:hover, .nav-links a.active {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.btn-cv-desktop {
    height: 38px;
    padding: 0 26px;
    background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%);
    color: #000 !important;
    font-weight: 600;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 0 13px rgba(212, 175, 55, 0.35);
    border: 1px solid #f9e5a0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    min-width: 125px;
    margin-left: auto;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    gap: 8px;
}

.btn-cv-desktop:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #fff7cc 0%, #d4af37 100%);
}

.btn-cv-desktop::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.6s;
}

.btn-cv-desktop:hover::before {
    left: 100%;
}


/* ========================================= */
/* SECTION À PROPOS ET CARTE D'IDENTITÉ      */
/* ========================================= */

.about-container {
    max-width: 1190px;
    width: 88%;
    margin: 57px auto 94px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    /* Indispensable pour que la lueur de la souris passe derrière */
    position: relative;
    z-index: 10;
}

.identity-card {
    background-color: #0a0a0a;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 12px;
    padding: 57px;
    display: flex;
    gap: 55px;
    align-items: center;
    box-shadow: 0 28px 55px rgba(0, 0, 0, 0.75);
    position: relative;
    max-width: 1000px;
    width: 100%;
    
    /* Propriétés ajoutées pour l'effet 3D et l'apparition */
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    opacity: 0;
    transform: translateY(40px);
}

.identity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    /* On arrondit la ligne pour qu'elle suive la carte sans utiliser overflow: hidden */
    border-top-left-radius: 12px; 
    border-top-right-radius: 12px;
}

/* Ces éléments vont "sortir" de l'écran en 3D lors du survol */
.id-photo-wrapper, .id-content {
    transform: translateZ(30px);
}

.id-photo-wrapper {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 17px;
}

.photo-frame {
    width: 272px;
    height: 342px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 13px;
    position: relative;
    box-shadow: 0 0 27px rgba(212, 175, 55, 0.15);
}

.id-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    filter: sepia(15%) contrast(1.1);
    transition: filter 0.4s ease;
}

.id-photo:hover {
    filter: sepia(0%) contrast(1);
}

.status-indicator {
    font-size: 0.82rem;
    color: #4caf50;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    padding: 7px 15px;
    border-radius: 40px;
    background: rgba(76, 175, 80, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator .dot {
    width: 8px;
    height: 8px;
    background-color: #4caf50;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #4caf50;
}

.id-content {
    flex: 1;
}

.tech-tag {
    color: #d4af37;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 5px 13px;
    display: inline-block;
    margin-bottom: 17px;
    font-weight: 600;
}

.id-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.35rem;
    margin: 0;
    line-height: 1.1;
    color: #f0f0f0;
}

.dot-gold {
    color: #d4af37;
}

.role {
    font-size: 1.15rem;
    color: #a0a0a0;
    font-weight: 300;
    margin: 9px 0 0 0;
    font-style: italic;
}

.separator-line {
    width: 63px;
    height: 2px;
    background: #d4af37;
    margin: 27px 0;
    box-shadow: 0 0 11px rgba(212, 175, 55, 0.5);
}

.bio-text p {
    line-height: 1.75;
    color: #d4d4d4;
    margin-bottom: 17px;
    font-size: 0.98rem;
}

.bio-text strong {
    color: #f9e5a0;
    font-weight: 600;
}

.highlight {
    border-left: 3px solid #d4af37;
    padding-left: 17px;
    margin-top: 27px;
    font-style: italic;
    color: #e0e0e0;
    background: rgba(212, 175, 55, 0.03);
    padding: 13px 17px;
}

.id-actions {
    margin-top: 39px;
    display: flex;
    align-items: center;
    gap: 29px;
    flex-wrap: wrap;
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%);
    color: #000;
    padding: 14px 31px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.88rem;
    border-radius: 3px;
    transition: transform 0.3s, box-shadow 0.3s;
    letter-spacing: 1px;
    /* Ajouté pour l'effet d'onde (ripple) */
    position: relative;
    overflow: hidden;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 23px rgba(212, 175, 55, 0.3);
    background: #fff;
}

.info-badges {
    display: flex;
    gap: 13px;
    color: #777;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-footer {
    text-align: center;
    padding: 19px;
    background-color: #050505;
    color: #d4af37;
    font-size: 0.88rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: auto;
}

/* ========================================= */
/* EFFETS MAGIQUES (RIPPLE, LUEUR, PARTICULES)*/
/* ========================================= */

#gold-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; 
    pointer-events: none; 
}

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    mix-blend-mode: screen;
    transition: opacity 0.3s ease;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-effect 0.6s linear;
    background-color: rgba(255, 255, 255, 0.5);
}

@keyframes ripple-effect {
    to { transform: scale(4); opacity: 0; }
}


/* ========================================= */
/* MEDIA QUERIES (MOBILES)                   */
/* ========================================= */

@media (max-width: 900px) {
    .navbar {
        height: 73px;
        padding: 0 18px;
        flex-direction: row;
        justify-content: space-between;
        background: #050505;
        gap: 0;
    }

    .nav-logo-img {
        height: 35px;
        margin: 0;
    }

    .btn-cv-desktop {
        display: none;
    }

    .nav-burger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 2002;
    }

    .nav-burger span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #d4af37;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 75%;
        height: 100vh;
        background-color: #050505;
        border-left: 1px solid #d4af37;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        margin: 0;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 2000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.8);
        padding: 20px;
    }

    .nav-toggle:checked ~ .nav-links {
        transform: translateX(0);
    }

    .nav-toggle:checked ~ .nav-burger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .nav-toggle:checked ~ .nav-burger span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle:checked ~ .nav-burger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .nav-links a {
        font-size: 1.2rem;
        color: #f0f0f0;
    }

    .btn-cv-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-top: 18px;
        padding: 11px 28px;
        background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%);
        color: #000;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-decoration: none;
        font-size: 0.9rem;
        border-radius: 4px;
        border: 1px solid #f9e5a0;
    }

    .about-container {
        padding: 0 20px;
        margin: 40px auto;
    }

    .identity-card {
        flex-direction: column;
        padding: 37px 23px;
        gap: 37px;
        text-align: center;
        /* Sur mobile, on annule souvent la 3D car ça peut rendre le texte flou lors du défilement manuel */
        transform-style: flat;
    }

    .id-photo-wrapper, .id-content {
        transform: none; 
    }

    .id-photo-wrapper {
        width: 100%;
    }

    .photo-frame {
        width: 235px;
        height: 295px;
    }

    .id-content h1 {
        font-size: 2.4rem;
    }

    .separator-line {
        margin: 23px auto;
    }

    .id-actions {
        justify-content: center;
    }

    .highlight {
        text-align: left;
    }
}
