@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');

:root {
    --bg: #000000;
    --text-main: #FFFFFF;
    --text-sec: #B0B0B0;
    --card-radius: 35px;
    --font-stack: "SF Pro", "Inter", sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-stack);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Évite le scroll horizontal pendant les anims */
}

/* --- TYPO --- */
h1 { font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-weight: 800; font-size: 1.5rem; margin-bottom: 20px; }
p { font-weight: 500; line-height: 1.5; color: var(--text-sec); font-size: 0.95rem; }
strong { color: var(--text-main); font-weight: 700; }

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 24px 100px 24px;
    display: flex; 
    flex-direction: column;
}

/* --- HEADER --- */
.profile-layout {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.profile-photo {
    width: 200px;
    height: 200px;
    background: #333333; 
    margin-bottom: 30px;
    object-fit: cover;
    border-radius: 45px;
    /* Ombre douce pour la profondeur */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.intro-small { font-size: 1.2rem; margin-bottom: 5px; font-weight: 700; }
.intro-title { font-size: 2.2rem; margin-bottom: 40px; }

.bio-block { text-align: left; width: 100%; margin-top: 20px; }
.bio-title { font-size: 1.2rem; margin-bottom: 10px; color: #fff; }

/* --- CAROUSELS --- */
.section-spacing { margin-top: 60px; }

.carousel-container {
    display: flex;
    gap: 15px;
    
    /* GESTION DU SCROLL */
    overflow-x: auto;       /* Autorise le scroll horizontal */
    overflow-y: hidden;     /* INTERDIT le scroll vertical DANS le conteneur */
    overscroll-behavior-x: contain; /* Empêche de faire bouger la page quand on est au bout du carousel */
    
    /* LA SOLUTION À TON PROBLÈME : */
    touch-action: pan-x;    /* Dit au navigateur : "Ici, on ne gère que le gauche/droite. Le haut/bas, c'est pour la page." */
    
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    padding-left: 5px;
    padding-right: 5px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.carousel-container::-webkit-scrollbar { display: none; }
/* --- CAROUSEL WRAPPER & SHADOWS --- */
.carousel-wrapper {
    position: relative; /* Indispensable pour positionner les ombres */
    width: 100%;
    /* On s'assure que le wrapper ne dépasse pas */
    overflow: hidden; 
}

/* TOOLS */
.card-tool {
    flex: 0 0 auto;
    width: 130px;
    height: 130px;
    background: #FFFFFF;
    border-radius: var(--card-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.card-tool img { width: 50%; height: 50%; object-fit: contain; }

/* PROJETS */
.card-project {
    flex: 0 0 auto;
    width: 200px;
    height: 320px;
    background: #3A3A3C;
    border-radius: var(--card-radius);
    scroll-snap-align: center;
    overflow: hidden;
}
.card-project img { width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity 0.3s; }
.card-project:active img { opacity: 0.6; }

/* --- FOOTER / SOCIALS --- */
.socials-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-row {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 20px;
    /* Petit effet hover sur desktop */
    transition: transform 0.2s;
}
.social-row:active { transform: scale(0.98); }

.social-icon-box {
    width: 60px;
    height: 60px;
    /*background: #D9D9D9;*/
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon-box img { width: 50px; height: 50px; }
.social-name { color: #0A84FF; font-size: 1.1rem; font-weight: 700; }

/* --- ANIMATIONS APPLE PREMIUM --- */

/* État initial : invisible, plus bas, un peu petit, et FLOU */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    filter: blur(10px); /* Le secret du style Apple */
    will-change: opacity, transform, filter;
    transition: 
        opacity 0.8s ease-out,
        transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), /* Courbe iOS */
        filter 0.8s ease-out;
}

/* État final : visible, place normale, net */
.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Délais en cascade (Stagger effect) pour les listes */
/* Le 2ème élément arrive 0.1s après, le 3ème 0.2s après, etc. */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

