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

:root {
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.7);
    --text-main: #1d1d1f;
    --text-sub: #86868b;
    --accent: #4b7bec;
    --ease-ios: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background-color: #f5f5f7; color: var(--text-main); line-height: 1.5; overflow-x: hidden; }

/* --- HEADER DYNAMIQUE --- */
.liquid-glass {
    position: fixed;
    z-index: 1000;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; max-width: 550px;
    min-height: 420px; padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 44px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    transition: all 0.8s var(--ease-ios);
    display: flex; align-items: center;
}

.liquid-glass.is-header {
    top: 35px; transform: translate(-50%, 0);
    max-width: 1000px; width: 94%;
    min-height: 70px; padding: 0 40px;
    border-radius: 100px;
}

.header-inner { display: flex; flex-direction: column; align-items: center; width: 100%; position: relative; transition: 0.6s var(--ease-ios); }
.is-header .header-inner { flex-direction: row; justify-content: space-between; align-items: center; height: 70px; }

/* Identité & Tagline */
.identity-block { text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.is-header .identity-block { flex-grow: 0; text-align: left; display: block; }

h1 { font-size: 3rem; letter-spacing: -0.05em; font-weight: 800; line-height: 1; transition: 0.6s var(--ease-ios); }
.is-header h1 { font-size: 1.2rem; }

.tagline { font-size: 1.15rem; color: var(--text-sub); }
.tagline span { font-weight: 700; color: var(--text-main); }

.stage-pill { display: inline-flex; align-items: center; gap: 8px; margin: 5px auto; padding: 8px 18px; background: rgba(75, 123, 236, 0.1); border: 1px solid rgba(75, 123, 236, 0.1); border-radius: 100px; color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.pulse-icon { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse-ring 2s infinite; }
@keyframes pulse-ring { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(75, 123, 236, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(75, 123, 236, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(75, 123, 236, 0); } }

.is-header .tagline, .is-header .stage-pill { display: none !important; }

/* Navigation & Contacts */
.nav-menu { display: flex; gap: 30px; opacity: 0; visibility: hidden; transition: 0.6s var(--ease-ios); }
.is-header .nav-menu { opacity: 1; visibility: visible; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-menu a { text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 0.95rem; }

.contact-dock { display: flex; justify-content: center; gap: 25px; padding-top: 35px; width: 100%; transition: 0.6s var(--ease-ios); }
.contact-dock a { text-decoration: none; color: var(--text-main); font-size: 1.8rem; opacity: 0.5; transition: 0.3s; }
.is-header .contact-dock { padding-top: 0; width: auto; gap: 15px; margin-left: auto; }
.is-header .contact-dock a { font-size: 1.3rem; }
.contact-dock a:hover { opacity: 1; transform: translateY(-3px); color: var(--accent); }

/* --- BENTO CONTENT --- */
.main-content { padding: 120vh 5% 10vh; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; }
.bento-card { background: var(--glass-bg); backdrop-filter: blur(20px) saturate(160%); border: 1px solid var(--glass-border); border-radius: 32px; padding: 40px; grid-column: span 12; }
.card-large { grid-column: span 8; } .card-small { grid-column: span 4; }
.category { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--text-sub); letter-spacing: 0.1em; display: block; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; letter-spacing: -0.03em; }

/* Identity Section */
.identity-card .id-wrapper { display: flex; flex-direction: column; gap: 20px; }
.id-item { display: flex; align-items: center; gap: 15px; }
.id-icon-box { width: 42px; height: 42px; background: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border: 1px solid var(--glass-border); }
.id-icon-box span { color: var(--accent); font-size: 1.3rem; }
.id-text p { font-weight: 600; font-size: 0.95rem; margin: 0; }
.id-text span { font-size: 0.8rem; color: var(--text-sub); }
.age-tag { background: var(--accent); color: white !important; padding: 2px 8px; border-radius: 6px; font-weight: 700; margin-left: 5px; font-size: 0.75rem; }

/* Timeline Section */
.vertical-timeline { position: relative; padding-left: 30px; border-left: 2px solid rgba(0,0,0,0.05); }
.timeline-item { position: relative; margin-bottom: 40px; }
.time-marker { position: absolute; left: -37px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #ccc; border: 3px solid #f5f5f7; }
.timeline-item.accent .time-marker { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.timeline-item ul { margin-left: 20px; color: dimgrey; }
.timeline-item ul .no-bullet { list-style-type: none; margin-left: -20px; }
.time-date { font-size: 0.85rem; color: var(--accent); font-weight: 700; margin-bottom: 5px; display: block; }

/* Soft Skills & Languages */
.soft-skills-container { display: flex; flex-wrap: wrap; gap: 12px; }
.skill-pill { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: white; border: 1px solid var(--glass-border); border-radius: 100px; font-weight: 600; font-size: 0.9rem; transition: 0.4s var(--ease-ios); }
.skill-pill span { font-size: 1.2rem; color: var(--accent); }
.skill-pill:hover { transform: translateY(-5px); background: var(--accent); color: white; border-color: var(--accent); }
.skill-pill:hover span { color: white; }

.skill-progress { margin-bottom: 20px; }
.skill-progress label { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 8px; font-weight: 500; }
.bar { height: 8px; background: rgba(0,0,0,0.05); border-radius: 10px; overflow: hidden; }
.fill { height: 100%; background: var(--accent); border-radius: 10px; }

/* Tech Grid */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 25px; text-align: center; }
.tech-item i { font-size: 2.5rem; display: block; margin-bottom: 8px; transition: 0.3s; color: var(--text-main); opacity: 0.7; }
.tech-item:hover i { transform: scale(1.15); color: var(--accent); opacity: 1; }

@media (max-width: 768px) { .card-large, .card-small { grid-column: span 12; } .is-header .nav-menu { display: none; } .liquid-glass { min-height: 450px; } }

/* --- INDICATEUR DE SCROLL HORS CARTE --- */
.scroll-indicator-page {
    position: fixed;
    bottom: 5vh; /* Positionné dans le vide en bas */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 500; /* Sous le header mais au-dessus du fond */
    transition: all 0.6s var(--ease-ios);
    pointer-events: none;
}

/* Disparition fluide au scroll */
.scroll-indicator-page.hidden {
    opacity: 0;
    transform: translate(-50%, 20px);
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(29, 29, 31, 0.3); /* Couleur discrète iOS */
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scroll-wheel-anim 2s infinite;
}

@keyframes scroll-wheel-anim {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(15px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* Animation de flottement zen pour l'ensemble */
@keyframes float-nudge {
    0%, 100% { bottom: 5vh; }
    50% { bottom: 6vh; }
}

.scroll-indicator-page {
    animation: float-nudge 3s ease-in-out infinite;
}