*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #050505;
    color: #f0f0f0;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, #1a1500 0%, #050505 60%);
    background-attachment: scroll;
    display: flex;
    flex-direction: column;
    padding-top: 110px; 
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #aa8c2c;
    border-radius: 6px;
    border: 3px solid #050505;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4af37;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: rgba(5, 5, 5, 0.98);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    z-index: 2000; /* Ajusté pour passer au-dessus de la lueur de la souris */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.nav-brand {
    display: flex;
    align-items: center;
    margin-right: 10px;
    z-index: 2001;
}

.nav-logo-img {
    height: 48px;
    width: auto;
    margin-right: 15px;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
    transition: transform 0.3s;
}

.navbar:hover .nav-logo-img {
    transform: scale(1.05);
}

.nav-toggle, .nav-burger, .btn-cv-mobile {
    display: none;
}

.nav-links {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 2vw;
    margin: 0 10px;
}

.nav-links a {
    text-decoration: none;
    color: #a0a0a0;
    font-size: clamp(0.7rem, 1vw + 0.3rem, 0.85rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
}

.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 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 37px;
    padding: 0 25px;
    min-width: 125px;
    gap: 8px;
    margin: 0 25px 0 auto;
    background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%);
    color: #000 !important;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #f9e5a0;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-cv-desktop:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px 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%;
}

.btn-cv-desktop svg {
    display: none;
}

.hero-container {
    min-height: calc(100vh - 110px); 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 10% 50px; 
    animation: fade-in 1.5s ease-out;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 10; /* Ajusté pour passer devant la lueur dorée */
}

.greeting {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #d4af37;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
    background: linear-gradient(to right, #ffffff 30%, #d4af37 60%, #ffffff 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.8));
}

.dot {
    color: #d4af37;
    -webkit-text-fill-color: #d4af37;
}

.separator-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%);
    margin: 35px 0;
    box-shadow: 0 0 15px #d4af37;
}

.subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 30px;
}

.description p {
    font-weight: 300;
    font-size: 1.05rem;
    color: #a0a0a0;
    line-height: 1.9;
    margin-bottom: 20px;
}

.availability {
    color: #f0f0f0 !important;
    border-left: 2px solid #d4af37;
    padding-left: 15px;
    margin-top: 25px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 45px;
    flex-wrap: wrap;
}

.btn-primary {
    text-decoration: none;
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 14px 40px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: #d4af37;
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-text {
    text-decoration: none;
    color: #a0a0a0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-text:hover {
    color: #d4af37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    margin-right: 20px;
}

.image-frame {
    width: 320px;
    height: 420px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    /* Ajouté pour préparer l'effet 3D au survol */
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.profile-pic-large {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    transition: transform 0.6s ease;
}

.image-frame:hover .profile-pic-large {
    transform: scale(1.05);
}

.frame-decor {
    position: absolute;
    top: 25px;
    right: -25px;
    width: 320px;
    height: 420px;
    border: 1px solid #d4af37;
    z-index: 1;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    transition: all 0.4s ease;
}

.hero-image:hover .frame-decor {
    top: 15px;
    right: -15px;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
}

.site-footer {
    text-align: center;
    padding: 20px;
    background-color: #050505;
    color: #d4af37;
    font-size: 0.9rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: auto;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================= */
/* EFFETS MAGIQUES (JS)                      */
/* ========================================= */

#gold-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; 
    pointer-events: none; 
    background: radial-gradient(circle at center, #111 0%, #050505 100%);
}

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-effect 0.6s linear;
    background-color: rgba(255, 255, 255, 0.4);
}

@keyframes ripple-effect {
    to { transform: scale(4); opacity: 0; }
}


/* ========================================= */
/* RESPONSIVE DESIGN (MOBILES)               */
/* ========================================= */

@media (max-width: 900px) {
    body {
        padding-top: 70px;
    }

    .navbar {
        height: 70px;
        padding: 0 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        background: #050505;
    }

    .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: 20px;
        padding: 12px 30px;
        border: 1px solid #d4af37;
        color: #d4af37;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-decoration: none;
        font-size: 0.9rem;
    }

    .hero-container {
        flex-direction: column-reverse;
        padding: 60px 20px 50px;
        text-align: center;
        height: auto;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .main-title {
        font-size: 3rem;
    }

    .separator-line {
        margin: 25px auto;
    }

    .description p {
        text-align: center;
    }

    .availability {
        margin: 20px auto;
        width: fit-content;
        border-left: none;
        border-top: 2px solid #d4af37;
        padding: 10px 0 0;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        margin-right: 0;
        margin-bottom: 40px;
    }

    .image-frame {
        width: 240px;
        height: 320px;
        /* Optionnel: On annule la transition 3D sur mobile pour éviter les saccades au défilement tactile */
        transform-style: flat;
    }

    .frame-decor {
        width: 240px;
        height: 320px;
        top: 20px;
        right: -20px;
    }
}
