/* ═══ GLOBAL STYLES ═══ */
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
}

/* ═════════ HEADER ═════════ */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #1e293b;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.header-logo {
    font-weight: 700;
    color: #38bdf8;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.nav-link:hover {
    color: #38bdf8;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 2px;
    background: #e2e8f0;
}

/* ═════════ HERO ═════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
}

.hero-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #38bdf8;
}

.hero-title {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero-desc {
    color: #94a3b8;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.btn {
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary {
    background: #38bdf8;
    color: #0f172a;
}

.btn-primary:hover {
    background: #0ea5e9;
}

.btn-outline {
    border: 1px solid #38bdf8;
    color: #38bdf8;
}

.btn-outline:hover {
    background: #38bdf8;
    color: #0f172a;
}

.hero-tagline {
    font-size: 13px;
    color: #64748b;
}

/* ═════════ PROFILS ═════════ */
.profiles {
    padding: 80px 20px;
    text-align: center;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
}

.profiles-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-card {
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
    width: 280px;
}

.profile-card.primary {
    border: 1px solid #38bdf8;
}

/* ═════════ COMPÉTENCES ═════════ */
.section {
    padding: 60px 20px;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: auto;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1e293b;
    padding: 10px;
    border-radius: 8px;
}

/* ═════════ PROJETS ═════════ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project-card {
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.project-info {
    padding: 15px;
}

.project-link {
    color: #38bdf8;
    text-decoration: none;
}

/* ═════════ CONTACT ═════════ */
.contact {
    padding: 80px 20px;
    text-align: center;
}

.contact-email {
    color: #38bdf8;
    font-size: 18px;
    text-decoration: none;
}

/* ═════════ FOOTER ═════════ */
.footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #1e293b;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    color: #e2e8f0;
}

/* ═══ THEME VARIABLES ═══ */
:root {
    --bg: #0f172a;
    --text: #e2e8f0;
    --card: #1e293b;
    --accent: #38bdf8;
}

body.light {
    --bg: #f8fafc;
    --text: #0f172a;
    --card: #e2e8f0;
    --accent: #0ea5e9;
}

body {
    background: var(--bg);
    color: var(--text);
}

.profile-card,
.project-card,
.skill-item {
    background: var(--card);
}

.btn-primary {
    background: var(--accent);
}

/* Toggle button */
.theme-toggle {
    background: none;
    border: 1px solid var(--accent);
    color: var(--text);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
/* =============================================
   MOBILE — petits smartphones (≤ 576px)
   ============================================= */
@media (max-width: 576px) {

    /* HEADER */
    .header-inner {
        padding: 10px 15px;
    }

    .nav {
        position: absolute;
        top: 60px;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        width: 100%;
        display: none;
        padding: 15px;
        border-top: 1px solid #1e293b;
    }

    .nav.active {
        display: flex;
    }

    .burger {
        display: flex;
    }

    /* HERO */
    .hero {
        padding: 100px 15px 40px;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .hero-img {
        width: 140px;
        height: 140px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* PROFILS */
    .profiles-grid {
        flex-direction: column;
        align-items: center;
    }

    .profile-card {
        width: 100%;
        max-width: 320px;
    }

    /* COMPÉTENCES */
    .skill-list {
        padding: 0 10px;
    }

    /* PROJETS */
    .project-grid {
        grid-template-columns: 1fr;
    }

    /* CONTACT */
    .contact {
        padding: 60px 15px;
    }
}


/* =============================================
   MOBILE LARGE — smartphones + petits tablettes (≤ 768px)
   ============================================= */
@media (max-width: 768px) {

    .hero-inner {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .hero-img {
        width: 160px;
        height: 160px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .profiles-grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .profile-card {
        width: 45%;
        min-width: 260px;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =============================================
   TABLETTE — (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {

    .hero-inner {
        gap: 30px;
        padding: 0 20px;
    }

    .hero-img {
        width: 180px;
        height: 180px;
    }

    .hero-title {
        font-size: 36px;
    }

    .body-grid {
        padding: 40px 20px;
    }

    .profiles-grid {
        gap: 20px;
    }

    .profile-card {
        width: 40%;
        min-width: 280px;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
