:root {
    --bg: #07060a;
    --panel: rgba(255, 255, 255, 0.03);
    --accent: #ff5a1a;
    --accent2: #ffb86b;
    --muted: rgba(255, 255, 255, 0.65);
    --glass: rgba(255, 255, 255, 0.04);
    --glass-strong: rgba(255, 255, 255, 0.06);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
    background: radial-gradient(1200px 600px at 10% 10%, rgba(255, 90, 26, 0.03), transparent 8%), linear-gradient(180deg, #050409 0%, #0b0a10 100%);
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* --- Navigation --- */

header.nav {
    position: fixed;
    top: 18px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: 60;
    width: min(92%, 1100px);
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 10px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
    border-radius: 999px;
    box-shadow: 0 6px 30px rgba(2, 2, 6, 0.7);
    -webkit-backdrop-filter: blur(8px) saturate(1.05);
    backdrop-filter: blur(8px) saturate(1.05);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.brand {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 12px;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    font-weight: 700;
    letter-spacing: 0.6px;
    font-size: clamp(0.9rem, 1.5vw, 0.95rem);
}

.brand .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: -webkit-linear-gradient(top, var(--accent), var(--accent2));
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    box-shadow: 0 6px 18px rgba(255, 90, 26, 0.25), 0 0 20px rgba(255, 90, 26, 0.06) inset;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 14px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 999px;
    -webkit-transition: all 0.18s ease;
    -moz-transition: all 0.18s ease;
    -o-transition: all 0.18s ease;
    transition: all 0.18s ease;
}

nav a:hover,
nav a.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
    box-shadow: 0 6px 18px rgba(2, 2, 6, 0.5);
}

/* --- Hero --- */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 120px 6vw 80px;
    position: relative;
}

.hero .copy {
    max-width: 680px;
}

.eyebrow {
    color: var(--accent2);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 14px;
}

h1 {
    margin: 0 0 18px 0;
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    line-height: 1.02;
    letter-spacing: -0.6px;
    font-weight: 800;
    color: #fff;
}

p.lead {
    color: var(--muted);
    font-size: clamp(1rem, 1.8vw, 1.05rem);
    margin-bottom: 26px;
    max-width: 64ch;
}

.cta-row {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 12px;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.btn {
    background: -webkit-linear-gradient(left, var(--accent), var(--accent2));
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    color: #080607;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 90, 26, 0.12);
    min-width: 140px;
    text-align: center;
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted);
    padding: 10px 16px;
    border-radius: 10px;
}

/* --- Visual --- */

.visual {
    position: relative;
    width: 100%;
    height: min(520px, 60vi);
    max-width: 520px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 20px 80px rgba(2, 2, 6, 0.7);
}

/* --- Stats --- */

.stats {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
    color: var(--muted);
    font-weight: 600;
}

.stat {
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

/* --- Sections --- */

main section {
    padding: 84px 6vw;
    max-width: 1100px;
    margin: 0 auto;
}

section h2 {
    font-size: 1.15rem;
    margin: 0 0 18px 0;
    letter-spacing: 0.6px;
}

.section-panel {
    background: linear-gradient(180deg, var(--panel), rgba(255, 255, 255, 0.01));
    padding: clamp(20px, 4vw, 28px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 20px 40px rgba(2, 2, 6, 0.6);
}

.projects-row {
    margin-top: 18px;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    overflow-x: auto;
    gap: 18px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

/* --- Cartes projets --- */

.proj {
    min-width: clamp(280px, 80vw, 340px);
    max-width: 340px;
    -webkit-flex: 0 0 clamp(280px, 80vw, 340px);
    -ms-flex: 0 0 clamp(280px, 80vw, 340px);
    flex: 0 0 clamp(280px, 80vw, 340px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 14px;
    padding: 16px;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    -webkit-transition: -webkit-transform 0.18s ease, box-shadow 0.18s ease;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.proj:hover {
    -webkit-transform: translateY(-8px);
    -ms-transform: translateY(-8px);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(2, 2, 6, 0.6);
}

.proj .thumb {
    position: relative;
    height: min(160px, 40vw);
    border-radius: 10px;
    overflow: hidden;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.proj .thumb img {
    width: 100%;
    height: auto;
    -o-object-fit: contain;
    object-fit: contain;
    -webkit-filter: blur(6px) brightness(0.7);
    filter: blur(6px) brightness(0.7);
    -webkit-transition: -webkit-filter 0.4s ease, -webkit-transform 0.4s ease;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.proj .thumb span {
    position: absolute;
    color: var(--accent2);
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.proj:hover .thumb img {
    -webkit-filter: blur(2px) brightness(0.9);
    filter: blur(2px) brightness(0.9);
    -webkit-transform: scale(1.03);
    -ms-transform: scale(1.03);
    transform: scale(1.03);
}

.proj h3 {
    margin: 0;
    font-size: 1.05rem;
}

.proj p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* --- Footer --- */

footer {
    padding: 48px 6vw 120px;
    color: var(--muted);
    text-align: center;
}

/* --- Media Queries --- */

@media (min-width: 768px) {
    .hero {
        grid-template-columns: 1fr 520px;
    }
}

@media (max-width: 767px) {
    nav a {
        display: none;
    }

    .cta-row {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-align-items: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 120px;
        gap: 28px;
    }

    .visual {
        height: min(420px, 60vw);
        max-width: 100%;
    }

    main section {
        padding: 60px 6vw;
    }
}

@media (max-width: 520px) {
    header.nav {
        padding: 8px 12px;
    }

    body {
        padding-bottom: 50px;
    }
}

/* --- Divers --- */

.muted {
    color: var(--muted);
}

a.project-cta {
    display: inline-block;
    margin-top: 10px;
    font-weight: 700;
    color: var(--accent);
}

/* --- Scrollbar universel --- */
.projects-row::-webkit-scrollbar {
    height: 10px;
}

.projects-row::-webkit-scrollbar-thumb {
    background: rgba(255, 90, 26, 0.18);
    border-radius: 10px;
}

/* Firefox */
.projects-row {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 90, 26, 0.18) transparent;
}
