:root {
    --green-pastel: #D1FAE5;
    --green-dark: #10B981;
    --orange: #F59E0B;
    --dark: #2D3436;
    --bg-white: #FAFAF9;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-white);
    color: var(--dark);
    line-height: 1.6;
    padding-top: 100px; /* Évite que le contenu soit sous la nav */
}

/* Fond à points */
.dots-pattern {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#d1d1d1 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    opacity: 0.4;
}

/* NAVIGATION AMÉLIORÉE */
nav {
    position: fixed;
    top: 20px; width: 100%;
    display: flex; justify-content: center;
    z-index: 1000;
}

.nav-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 12px 30px;
    border-radius: 50px;
    display: flex; align-items: center;
    gap: 30px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow);
}

.nav-container a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-container a:hover { color: var(--orange); }
.logo { font-size: 1.5rem; font-weight: 800; }
.logo span { color: var(--orange); }

.btn-nav {
    background: var(--dark);
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
}

/* SECTIONS ET GRILLES */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* HERO / ACCUEIL */
.hero-card { text-align: center; position: relative; }
h1 { font-size: clamp(2.5rem, 8vw, 4rem); margin-bottom: 10px; }
.badge {
    background: var(--green-pastel);
    padding: 6px 16px; border-radius: 20px;
    font-size: 0.75rem; font-weight: bold;
    color: #065F46;
}
/* Zone Profil Accueil */
.hero-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 900px;
    text-align: left;
}

.profile-pic {
    width: 280px;
    height: 350px;
    background: #eee;
    border-radius: 30px;
    object-fit: cover;
    box-shadow: var(--shadow);
    border: 5px solid white;
}

/* Images Projets/Perso */
.media-box {
    width: 100%;
    height: 180px;
    background: #eee;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
}

.media-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Conteneur de la vidéo */
.video-wrapper {
    max-width: 700px; /* Largeur contrôlée pour ne pas prendre tout l'écran */
    margin: 40px auto; /* Centrage horizontal */
    padding: 20px;
    background: white;
    border-radius: 30px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow);
}

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9; /* Format paysage parfait */
    border-radius: 15px;
    object-fit: cover; /* Évite les bandes noires si la vidéo dépasse un peu */
    background: #000; /* Fond noir pendant le chargement */
    display: block;
}

/* Effet au survol pour donner envie de cliquer */
.video-player:hover {
    transform: scale(1.01);
    transition: transform 0.3s ease;
}
/* Responsive mobile */
@media (max-width: 768px) {
    .hero-flex { flex-direction: column; text-align: center; }
    .profile-pic { width: 200px; height: 200px; border-radius: 50%; }
}

.blob-orange {
    position: absolute;
    width: 250px; height: 250px;
    background: var(--orange);
    border-radius: 50% 50% 30% 70% / 50% 30% 70% 50%;
    z-index: -1;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(70px);
    opacity: 0.2;
}

/* BENTO STYLE (Cartes) */
.bento-grid, .project-list, .perso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    width: 100%;
    margin-top: 30px;
}

.bento-item, .project-card, .perso-item {
    background: var(--white);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 2px 4px 12px rgba(0,0,0,0.02);
}

.bento-item:hover, .project-card:hover, .perso-item:hover {
    transform: translateY(-10px);
    border-color: var(--orange);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

/* TAGS ET BOUTONS */
.tag {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.7rem; font-weight: bold;
    color: var(--orange);
    background: rgba(245, 158, 11, 0.1);
    padding: 4px 12px;
    border-radius: 8px;
}

.btn-orange {
    display: inline-block;
    background: var(--orange);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-orange:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

h2 { font-size: 2rem; margin-bottom: 20px; }
.title-green { color: var(--green-dark); }
.title-orange { color: var(--orange); }
/* FOOTER STYLES */
footer {
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    background: white;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--orange); }

.copyright {
    font-size: 0.8rem;
    color: #888;
}

/* Ajustement pour coller le footer en bas si la page est vide */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.page-section, .container {
    flex: 1;
}