/* Scroll Snap*/
.snap-container {
    height: 100vh; 
    height: 100dvh;
    width: 100vw;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.snap-section {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    padding-left: 80px;
}

/* Accueil */
.accueil-content {
    text-align: center;
}

.accueil-content h1 {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -2px;
} 

.accueil-content h2 {
    font-size: 1.2rem;
    letter-spacing: 10px;
    margin-top: 20px;
    opacity: 0.9;
    color: var(--violet); 
} 

.violet { 
    color: var(--violet); 
    text-shadow: 0 0 20px var(--violet-glow);
}

/* Bento*/
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.bento-item {
    background: var(--gray);
    border: 1px solid var(--gray-border);
    border-radius: 40px; 
    padding: 50px; 
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-item:hover {
    border-color: var(--violet);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(162, 89, 255, 0.15);
}

.projects-main {
    grid-column: span 2;
    min-height: 400px;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
}

.bento-item h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.bento-item p {
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Contact */
.bento-grid-full {
    width: 100%;
    max-width: 1000px; 
    position: relative; 
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 40px; 
}

.contact-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-header h2 {
    font-size: 2.5rem; 
}

.badge {
    background: var(--violet);
    color: white;
    padding: 8px 18px; 
    border-radius: 20px;
    font-size: 0.85rem; 
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px var(--violet-glow);
}

.contact-details {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.detail-item {
    flex: 1;
}

.detail-item:nth-child(2) {
    text-align: center;
}

.detail-item:nth-child(3) {
    text-align: right;
}

.detail-item p {
    font-size: 1.1rem; 
}

.contact-link {
    text-decoration: none;
    color: inherit;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: var(--violet);
    transform: translateY(-2px);
}

.label {
    color: var(--violet);
    font-size: 0.8rem; 
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px; 
}

.social-box {
    margin-top: 30px; 
    border-top: 1px solid var(--gray-border);
    padding-top: 30px; 
}

.linkedin-link {
    display: flex;
    align-items: center;
    gap: 12px; 
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.1rem; 
    transition: 0.3s;
}

.linkedin-link:hover {
    color: var(--violet);
}

.linkedin-link img { 
    width: 28px; 
    filter: var(--filter-violet);
    transition: 0.3s ease;
}

.linkedin-link:hover img {
    filter: brightness(0) invert(1); 
}

.mentions-legales {
    position: absolute;
    bottom: 20px;
    left: 80px;
    right: 0;
    text-align: center;
    font-size: 0.7rem;
    opacity: 0.3;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: auto;
    pointer-events: none;
}

.cta-button, .mini-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    background: var(--violet);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 800;
    transition: 0.3s;
    text-align: center;
    box-shadow: 0 4px 15px var(--violet-glow);
}

.cta-button:hover, .mini-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px var(--violet-glow);
    filter: brightness(1.1);
}

/* Indicateur de scroll*/
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    text-align: center;
    width: 100%;
    opacity: 0.8;
}

.mouse {
    width: 22px; height: 38px;
    border: 2px solid white;
    border-radius: 20px;
    margin: 10px auto;
    position: relative;
}

.mouse::before {
    content: ''; width: 4px; height: 8px; background: var(--violet);
    position: absolute; left: 50%; transform: translateX(-50%);
    top: 8px; border-radius: 2px;
    animation: scrollWheel 2s infinite;
    box-shadow: 0 0 10px var(--violet);
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

/* Responsive */
@media (max-width: 1024px) {
    .snap-section {
        padding-left: 20px !important; 
        padding-right: 20px !important;
        padding-top: 80px; 
        justify-content: center;
        align-items: center;
        display: flex;
        flex-direction: column;
        height: 100dvh !important;
    }

    .snap-container {
        scroll-snap-type: y mandatory;
        overflow-y: scroll;
        height: 100dvh;
    }

    .accueil-content {
        margin-top: -80px; 
    }

    .accueil-content h1 {
        font-size: 3.2rem;
        line-height: 0.9; 
        margin-bottom: 10px;
    }

    .scroll-indicator {
        position: absolute;
        bottom: 5dvh !important; 
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        text-align: center;
        z-index: 10;
        opacity: 0.6;
    }
    
    .mouse {
        transform: scale(0.8);
    }

    .bg-shapes-extra::before {
        content: "+";
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--violet); 
        font-size: 3rem; 
        top: 12%; 
        left: 8%;
        opacity: 0.3; 
        filter: drop-shadow(0 0 10px var(--violet-glow)); 
    }

    .bg-shapes-extra::after {
        content: "+";
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--violet);
        font-size: 3rem;
        bottom: 15%; 
        right: 8%;
        opacity: 0.3;
        filter: drop-shadow(0 0 10px var(--violet-glow));
    }

    .bg-shapes-extra {
        background-image: radial-gradient(circle, rgba(162, 89, 255, 0.15) 1px, transparent 1px);
        background-size: 40px 40px; 
        opacity: 0.6;
    }

    .bg-glow::before {
        width: 250px; 
        height: 250px;
        top: 5%; 
        right: -10%;
        opacity: 0.6;
    }

    .bg-glow::after {
        width: 120px; 
        height: 120px;
        top: 60%; 
        left: -5%;
    }

    #contact.snap-section {
        display: flex;
        flex-direction: column;
        justify-content: center; 
        align-items: center;
        height: 100dvh;
        padding: 60px 40px;
        scroll-snap-align: start;
    }

    .bento-grid-full {
        width: 100%;
        max-width: 600px; 
        margin: 0 auto;
        flex: 0 1 auto;
    }

    .contact-card {
        padding: 40px;
    }

    .contact-details {
        flex-direction: column;
        gap: 30px;
        text-align: left;
    }

    .detail-item:nth-child(2), .detail-item:nth-child(3) {
        text-align: left;
    }

    .mentions-legales {
        position: absolute; 
        bottom: 30px;
        left: 0;
        width: 100%;
        text-align: center;
        margin-top: 0;
        opacity: 0.3;
        pointer-events: none;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }

    .projects-main, .profile-link {
        grid-column: span 1;
        min-height: auto;
    }
}