:root {
    --bg: #05070a;
    --bg-soft: #0b1015;
    --accent: #f9b234;
    --accent-soft: rgba(249, 178, 52, 0.12);
    --text: #f5f5f5;
    --muted: #a0a7b4;
    --card: #191f28;
    --border: #252c38;
    --radius-xl: 1.75rem;
    --radius-lg: 1.2rem;
    --transition-fast: 0.18s ease-out;
    --transition-med: 0.25s ease-out;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #192233 0, #05070a 45%, #05070a 100%);
    color: var(--text);
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* HEADER */

header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(5, 7, 10, 0.95), rgba(5, 7, 10, 0.78));
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text-main {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo-text-sub {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
}

nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    font-size: 0.9rem;
}

nav a {
    color: var(--muted);
    position: relative;
    padding-bottom: 0.15rem;
    transition: color var(--transition-fast);
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transition: width var(--transition-fast);
}

nav a:hover { color: var(--text); }
nav a:hover::after { width: 16px; }

.cta-header {
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(249, 178, 52, 0.6);
    background: radial-gradient(circle at top left, rgba(249, 178, 52, 0.24), rgba(10, 10, 10, 0.96));
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    box-shadow: 0 0 16px rgba(249, 178, 52, 0.35);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cta-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 24px rgba(249, 178, 52, 0.5);
}

.cta-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.9);
}

.burger {
    display: none;
    width: 26px;
    height: 18px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.burger span {
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    display: block;
}

/* SECTIONS GÉNÉRIQUES */

section { padding: 2.8rem 0; }

.section-header {
    margin-bottom: 1.8rem;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-title { font-size: 1.6rem; }

.section-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
}

.section-description {
    color: var(--muted);
    font-size: 0.9rem;
    max-width: 32rem;
}

/* HERO (ACCUEIL) */

.hero { padding-top: 3rem; }

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.55);
    color: #a5f3fc;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1.2rem;
}

.hero-title {
    font-size: clamp(2.4rem, 3.2vw + 1rem, 3.4rem);
    line-height: 1.05;
    margin-bottom: 0.9rem;
}

.hero-title span { color: var(--accent); }

.hero-subtitle {
    color: var(--muted);
    font-size: 0.98rem;
    max-width: 32rem;
    margin-bottom: 1.6rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.btn-primary {
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #111827;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 18px 40px rgba(248, 163, 15, 0.55);
    transition: transform var(--transition-med), box-shadow var(--transition-med), filter var(--transition-med);
}

.btn-primary .arrow {
    display: inline-block;
    transition: transform var(--transition-med);
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 22px 55px rgba(248, 163, 15, 0.7);
}

.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-outline {
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: rgba(15, 23, 42, 0.7);
    color: var(--muted);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-outline:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(226, 232, 240, 0.9);
    color: #e5e7eb;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.hero-meta span strong { color: #e5e7eb; }

.hero-visual {
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at 20% 0, rgba(249, 178, 52, 0.25), transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(15, 23, 42, 0.7), #020617 75%);
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 0.2rem;
}

.hero-visual-inner {
    border-radius: calc(var(--radius-xl) - 0.4rem);
    border: 1px solid rgba(15, 23, 42, 0.85);
    padding: 1.4rem 1.6rem 1.6rem;
    background: rgba(15, 23, 42, 0.98);
}

.hero-visual-photo {
    border-radius: 1.2rem;
    background: url("../assets/hero.jpg") center/cover no-repeat;
    aspect-ratio: 4 / 3;
}

/* SAVOIR-FAIRE */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.3rem;
}

.skill-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    transition: transform var(--transition-med), border-color var(--transition-med), background var(--transition-med);
}

.skill-card:hover {
    transform: translateY(-3px);
    border-color: rgba(249, 178, 52, 0.65);
    background: radial-gradient(circle at top left, rgba(249, 178, 52, 0.18), var(--card));
}

/* RÉALISATIONS */

.real-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
}

.filter-pill {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.85);
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--muted);
}

.filter-pill.active {
    background: var(--accent-soft);
    border-color: rgba(249, 178, 52, 0.9);
    color: #fef3c7;
}

.real-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.1rem;
}

.real-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 0.9rem;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    transition: transform var(--transition-med), border-color var(--transition-med), background var(--transition-med);
}

.real-card:hover {
    transform: translateY(-3px);
    border-color: rgba(249, 178, 52, 0.8);
    background: radial-gradient(circle at top left, rgba(249, 178, 52, 0.16), var(--card));
}

.real-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.real-name { font-weight: 600; }

.real-thumb {
    border-radius: 0.9rem;
    background: radial-gradient(circle at 0 0, rgba(249, 178, 52, 0.2), transparent 45%), #020617;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    padding: 0.9rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.real-meta-list {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0;
    font-size: 0.75rem;
}

.real-meta-list li::before {
    content: "•";
    margin-right: 0.4rem;
    color: var(--accent);
}

/* ATELIER */

.atelier-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
    gap: 2rem;
    align-items: center;
}

.atelier-photo {
    border-radius: var(--radius-xl);
    background: #020617;
    aspect-ratio: 4 / 3;
}

.atelier-text {
    font-size: 0.9rem;
    color: var(--muted);
}

/* CONTACT */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
    gap: 2rem;
}

.contact-card {
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, rgba(249, 178, 52, 0.15), rgba(15, 23, 42, 0.98));
    border: 1px solid var(--border);
    padding: 1.2rem 1.3rem;
    font-size: 0.9rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0.6rem 0 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
}

.contact-value { font-weight: 500; }

.contact-form {
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(55, 65, 81, 0.9);
    padding: 1.3rem 1.4rem;
    font-size: 0.9rem;
}

.form-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.field {
    margin-bottom: 0.8rem;
    flex: 1;
    min-width: 140px;
}

.field label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.field input,
.field textarea {
    width: 100%;
    border-radius: 0.7rem;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: rgba(15, 23, 42, 0.95);
    padding: 0.55rem 0.7rem;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
}

/* FOOTER */

footer {
    padding: 1.5rem 0 1.8rem;
    background: #020617;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: auto;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.footer-links a:hover { color: #e5e7eb; }

/* RESPONSIVE */

@media (max-width: 900px) {
    .hero-inner,
    .atelier-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 800px) {
    nav { display: none; }
    .burger { display: flex; }

    header.nav-open nav {
        position: absolute;
        inset: 100% 0 auto 0;
        background: rgba(5, 7, 10, 0.98);
        padding: 0.75rem 1.5rem 1rem;
        border-bottom: 1px solid rgba(15, 23, 42, 0.9);
        display: flex;
        flex-direction: column;
        gap: 0.7rem;
    }

    header.nav-open .header-inner { position: relative; }
}
