/* ----------------------------------------------------------
   VARIABLES
---------------------------------------------------------- */
:root {
    --blue: #2743FB;
    --purple: #7E3DFF;
    --gray-dark: #333;
    --gray-med: #7A7A7A;
    --gray-light: #C8C8C8;

    --radius: 12px;
    --transition: 0.25s ease;
}

/* ----------------------------------------------------------
   GLOBAL
---------------------------------------------------------- */
body {
    background: #fff;
    color: var(--gray-dark);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

body {
    background-color: #fff;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 24px,
            rgba(0,0,0,0.09) 25px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 24px,
            rgba(0,0,0,0.09) 25px
        );
}


h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
}

/* Profile image */
.profile-img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 4px dotted var(--gray-light);
    object-fit: cover;
}

/* ----------------------------------------------------------
   NAVBAR
---------------------------------------------------------- */
.nav-link {
    font-weight: 500;
    color: #000;
}

.nav-link:hover {
    color: var(--blue);
}

/* Gradient CV button */
.btn-gradient {
    background: linear-gradient(45deg, var(--blue), var(--purple));
    color: #fff !important;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-gradient:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-contact {
    width: 100%;
}

/* ----------------------------------------------------------
   DOTTED BOXES
---------------------------------------------------------- */
.placeholder-box {
    border: 2px dashed var(--gray-light);
    border-radius: var(--radius);
    background: #fff;
    transition: var(--transition);
    cursor: pointer;
}

.placeholder-box:hover {
    border-color: var(--blue);
    box-shadow: 0 8px 20px rgba(39, 67, 251, 0.08);
}

/* ----------------------------------------------------------
   TAGS
---------------------------------------------------------- */
.tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid var(--blue);
    color: var(--blue);
    font-size: 0.85rem;
    margin: 4px;
}

.tag-purple {
    border-color: var(--purple);
    color: var(--purple);
}

/* ----------------------------------------------------------
   PROJECT IMAGES
---------------------------------------------------------- */
img.rounded {
    margin-top: 10px;
    border-radius: var(--radius) !important;
}

/* ----------------------------------------------------------
   CONTACT FORM
---------------------------------------------------------- */
#contact label {
    font-weight: 600;
}

.btn-contact.btn-gradient {
    padding: 10px 20px;
    font-weight: 600;
    width: 50%;
}



/* ----------------------------------------------------------
   ANIMATIONS
---------------------------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------------------------
   RESPONSIVE FIXES
---------------------------------------------------------- */
@media (max-width: 768px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.8rem; }
}

.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
}

/* Navbar sticky */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 999;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

/* Etat normal (en haut de page) */
.sticky-nav:not(.scrolled) {
    background: #fff;
}

/* Etat glass (après scroll) */
.sticky-nav.scrolled {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}


/* === Bento Projects Grid === */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bento-item {
    display: flex;
}

.bento-item .placeholder-box {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.bento-item img {
    margin-top: 12px;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: var(--radius);
}

/* AI Vtuber : carte hero pleine largeur */
.bento-large {
    grid-column: 1 / -1;
}

.bento-large img {
    max-height: 360px;
}

/* Responsive */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

