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

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --font-heading: 'Sora', 'Roboto', sans-serif;
    --font-body: 'Inter', 'Roboto', sans-serif;

    --bg: #0a0e17;
    --topbar-bg: rgba(10, 14, 23, 0.72);
    --surface: rgba(255, 255, 255, 0.06);
    --surface-strong: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.12);
    --text: #eef1f8;
    --text-muted: #97a1b5;
    --accent: #8b5cf6;
    --accent-2: #22d3ee;
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 45%, #22d3ee 100%);
    --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
}

html.light{
    --bg: #f4f5fb;
    --topbar-bg: rgba(244, 245, 251, 0.75);
    --surface: rgba(255, 255, 255, 0.75);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --border: rgba(15, 23, 42, 0.08);
    --text: #171a23;
    --text-muted: #5c6478;
    --accent: #7c3aed;
    --accent-2: #0891b2;
    --accent-gradient: linear-gradient(135deg, #7c3aed 0%, #6366f1 45%, #0891b2 100%);
    --shadow: 0 20px 45px -20px rgba(15, 23, 42, 0.15);
}

html{
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body{
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color .4s ease, color .4s ease;
}

img{
    max-width: 100%;
}

/* ---------- Topbar ---------- */
.topbar{
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--topbar-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.topbar-inner{
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo{
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: .5px;
}

.logo-dot{
    color: var(--accent-2);
}

.theme-toggle{
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    transition: transform .25s ease, background .3s ease;
}

.theme-toggle:hover{
    transform: rotate(15deg) scale(1.08);
    background: var(--surface-strong);
}

.theme-toggle svg{
    width: 20px;
    height: 20px;
}

.theme-toggle .icon-sun{ display: none; }
.theme-toggle .icon-moon{ display: block; }
html.light .theme-toggle .icon-sun{ display: block; }
html.light .theme-toggle .icon-moon{ display: none; }

/* ---------- Hero ---------- */
.hero{
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px 40px;
    overflow: hidden;
}

.hero-content{
    max-width: 100%;
    min-width: 0;
}

.hero-text{
    max-width: 100%;
    min-width: 0;
}

.titre-presentation,
.text-presentation,
.eyebrow{
    overflow-wrap: break-word;
}

.hero-glow{
    position: absolute;
    inset: -100px;
    z-index: -1;
    background:
        radial-gradient(600px circle at 15% 20%, rgba(139, 92, 246, .25), transparent 60%),
        radial-gradient(500px circle at 85% 60%, rgba(34, 211, 238, .18), transparent 60%);
    filter: blur(20px);
}

.hero-content{
    display: flex;
    gap: 56px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-image{
    position: relative;
    flex-shrink: 0;
    margin: 0 auto;
}

.img{
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    box-shadow: var(--shadow);
    display: block;
}

.status-badge{
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-strong);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-badge::before{
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.hero-text{
    flex: 1;
    min-width: 280px;
}

@media only screen and (max-width: 480px){
    .hero-text{
        min-width: 0;
    }
}

.eyebrow{
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    color: var(--accent-2);
    font-weight: 600;
    margin-bottom: 12px;
}

.titre-presentation{
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.25;
}

.gradient-text{
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-presentation{
    color: var(--text-muted);
    font-size: 16px;
    max-width: 640px;
    margin-bottom: 28px;
}

.hero-actions{
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn{
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary{
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 10px 30px -10px rgba(139, 92, 246, .6);
}

.btn-primary:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 34px -8px rgba(139, 92, 246, .7);
}

.btn-ghost{
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-ghost:hover{
    transform: translateY(-2px);
    background: var(--surface-strong);
}

/* ---------- Sections ---------- */
.section{
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;
}

.section-title{
    font-family: var(--font-heading);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    margin-bottom: 32px;
    position: relative;
    display: inline-block;
}

.section-title::after{
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    margin-top: 10px;
    border-radius: 2px;
    background: var(--accent-gradient);
}

/* ---------- Skills ---------- */
.skills-group{
    margin-bottom: 36px;
}

.skills-subtitle{
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
    font-weight: 600;
}

.image_language{
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
    justify-content: flex-start;
}

.skill-chip{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.skill-chip:hover{
    transform: translateY(-3px);
    border-color: var(--accent);
    background: var(--surface-strong);
}

.skill-chip img{
    width: 26px;
    height: 26px;
    border-radius: 6px;
    object-fit: cover;
}

.skill-chip svg{
    width: 22px;
    height: 22px;
    color: var(--accent-2);
}

.skill-chip span{
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* ---------- Ventures ---------- */
.ventures-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.venture-card{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease;
}

.venture-card:hover{
    transform: translateY(-6px);
    border-color: var(--accent);
}

.venture-badge{
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--accent-2);
    background: var(--surface-strong);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.venture-card h3{
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 10px;
}

.venture-card p{
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.venture-link{
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.venture-link:hover{
    text-decoration: underline;
}

/* ---------- Bottom nav ---------- */
.bar-bas{
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: fit-content;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    border-radius: 999px;
    padding: 10px 18px;
    box-shadow: var(--shadow);
    z-index: 40;
}

main, .projet-container, .mes_reseaux{
    padding-bottom: 90px;
}

.bar-bas svg{
    width: 20px;
    height: 20px;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-muted);
    box-sizing: content-box;
    transition: all .2s ease;
}

.bar-bas svg:hover,
.bar-bas svg.active{
    background: var(--accent-gradient);
    color: #fff;
}

/* ---------- Projects page ---------- */
.projet-container{
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px 40px;
    text-align: center;
}

.projet-container h1{
    font-family: var(--font-heading);
    font-size: clamp(26px, 4vw, 36px);
    margin-bottom: 12px;
}

.projet-container > p{
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 20px;
}

.gran-img-contenaire{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
    text-align: left;
}

.img-container{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform .25s ease, border-color .25s ease;
}

.img-container:hover{
    transform: translateY(-6px);
    border-color: var(--accent);
}

.img-container.featured{
    border-color: rgba(139, 92, 246, .35);
    box-shadow: 0 16px 40px -24px rgba(139, 92, 246, .5);
}

.img-container .venture-badge{
    align-self: flex-start;
}

.img-container img{
    width: 100%;
    max-width: 260px;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.img-container p{
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
}

.img-container a{
    text-decoration: none;
    width: 100%;
}

.img-container a button{
    width: 100%;
    padding: 11px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: transform .2s ease, opacity .2s ease;
}

.img-container a button:hover{
    transform: translateY(-2px);
    opacity: .92;
}

.fitness, .Grow{
    max-width: 260px;
}

/* ---------- Contact / réseaux page ---------- */
.mes_reseaux{
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 24px 40px;
    text-align: center;
}

.mes_reseaux h1{
    font-family: var(--font-heading);
    font-size: clamp(26px, 4vw, 36px);
    margin-bottom: 20px;
}

.mes_reseaux p{
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 8px;
}

.lien-rs{
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 32px 0;
}

.lien-rs a{
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    transition: all .25s ease;
}

.lien-rs a:hover{
    background: var(--accent-gradient);
    color: #fff;
    transform: translateY(-4px);
    border-color: transparent;
}

.lien-rs a svg{
    width: 22px;
    height: 22px;
}

.mes_reseaux .image{
    margin: 30px auto 10px;
}

/* ---------- Scroll reveal ---------- */
.reveal{
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible{
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media only screen and (max-width: 768px){
    .hero{
        padding: 48px 20px 20px;
    }
    .hero-content{
        flex-direction: column;
        text-align: center;
    }
    .hero-actions{
        justify-content: center;
    }
    .image_language{
        justify-content: center;
    }
    .section{
        padding: 40px 20px;
    }
    .img{
        width: 170px;
        height: 170px;
    }
    .bar-bas{
        bottom: 12px;
    }
}
