/* ============================================
   MATRIX FORGE V4 — AI PREMIUM
   Dark Tech + Warm Accents
   ============================================ */

:root {
    /* Core Dark */
    --void: #06080C;
    --deep: #0A0E14;
    --surface: #12161E;
    --surface-light: #1A1F2A;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    
    /* Accent System */
    --accent: #FF6B35;
    --accent-soft: #FF8F66;
    --accent-glow: rgba(255, 107, 53, 0.15);
    --cyan: #00D4FF;
    --cyan-soft: #66E5FF;
    --cyan-glow: rgba(0, 212, 255, 0.12);
    --emerald: #10B981;
    --emerald-glow: rgba(16, 185, 129, 0.12);
    --violet: #8B5CF6;
    --violet-glow: rgba(139, 92, 246, 0.12);
    
    /* Text */
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    /* Typography */
    --font-display: 'Sora', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Effects */
    --glow-accent: 0 0 60px var(--accent-glow);
    --glow-cyan: 0 0 60px var(--cyan-glow);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { 
    font-size: 16px; 
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    background: var(--void);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Subtle grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.25rem; }

.mono {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 50%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* LAYOUT */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

section {
    padding: clamp(5rem, 12vw, 8rem) 0;
    position: relative;
}

/* ========== NAVIGATION ========== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 8, 12, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.logo-img {
    display: block;
    height: 44px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.footer-brand .logo-img {
    height: 64px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    background: linear-gradient(135deg, var(--accent) 0%, #FF8855 100%);
    color: white !important;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.3);
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

/* Ambient glows */
.hero::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    top: -300px;
    right: -200px;
    pointer-events: none;
    animation: pulse-glow 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 60%);
    bottom: -200px;
    left: -100px;
    pointer-events: none;
    animation: pulse-glow 8s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--emerald);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-eyebrow span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--emerald);
    letter-spacing: 0.1em;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========== HUD CARD ========== */
.hud-card {
    background: rgba(18, 22, 30, 0.7);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
}

.hud-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--cyan), var(--violet));
}

/* Animated corner accents */
.hud-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    transition: all 0.3s;
}
.hud-corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; border-color: var(--accent); }
.hud-corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; border-color: var(--cyan); }

.hud-card:hover .hud-corner {
    width: 30px;
    height: 30px;
}

.hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px dashed var(--border);
}

.hud-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.hud-status {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--emerald-glow);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hud-status-dot {
    width: 6px;
    height: 6px;
    background: var(--emerald);
    border-radius: 50%;
    animation: blink 2s infinite;
}

.hud-console {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hud-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 3px solid transparent;
    opacity: 0;
    transform: translateX(-10px);
    animation: slideIn 0.4s forwards;
    transition: all 0.2s;
}

.hud-line:hover {
    background: rgba(255, 255, 255, 0.04);
}

.hud-line.accent-orange { border-left-color: var(--accent); }
.hud-line.accent-cyan { border-left-color: var(--cyan); }
.hud-line.accent-emerald { border-left-color: var(--emerald); }
.hud-line.accent-violet { border-left-color: var(--violet); }

.hud-line-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hud-line-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.hud-line-value {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    border-radius: 4px;
}

.value-orange { color: var(--accent); background: var(--accent-glow); }
.value-cyan { color: var(--cyan); background: var(--cyan-glow); }
.value-emerald { color: var(--emerald); background: var(--emerald-glow); }
.value-violet { color: var(--violet); background: var(--violet-glow); }

/* Delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }
.delay-4 { animation-delay: 0.7s; }

@keyframes slideIn {
    to { opacity: 1; transform: translateX(0); }
}

/* Progress */
.hud-progress {
    margin-top: 1.25rem;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
    animation-delay: 1s;
}

.hud-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.hud-progress-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 0.08em;
}

.hud-progress-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.hud-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    border-radius: 2px;
    animation: loadProgress 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 1.2s;
}

@keyframes loadProgress { to { width: 100%; } }
@keyframes fadeIn { to { opacity: 1; } }

/* CTA */
.hud-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1.25rem;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--accent) 0%, #FF8855 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s forwards;
    animation-delay: 1.8s;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hud-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.35);
}

.hud-cta-arrow {
    transition: transform 0.2s;
}

.hud-cta:hover .hud-cta-arrow {
    transform: translateX(4px);
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.9rem 1.75rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #FF8855 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
}

/* ========== SECTION HEADERS ========== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* ========== PROFILES SECTION ========== */
.profiles {
    background: linear-gradient(180deg, var(--void) 0%, var(--deep) 100%);
    position: relative;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.profile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.profile-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.profile-card:hover::before {
    opacity: 1;
}

/* Profile color variants */
.profile-card.freelance::before { background: var(--cyan); }
.profile-card.freelance .profile-icon { background: var(--cyan-glow); color: var(--cyan); }
.profile-card.freelance:hover { box-shadow: 0 20px 60px var(--cyan-glow); }

.profile-card.independant::before { background: var(--accent); }
.profile-card.independant .profile-icon { background: var(--accent-glow); color: var(--accent); }
.profile-card.independant:hover { box-shadow: 0 20px 60px var(--accent-glow); }

.profile-card.artisan::before { background: var(--emerald); }
.profile-card.artisan .profile-icon { background: var(--emerald-glow); color: var(--emerald); }
.profile-card.artisan:hover { box-shadow: 0 20px 60px var(--emerald-glow); }

.profile-card.pme::before { background: var(--violet); }
.profile-card.pme .profile-icon { background: var(--violet-glow); color: var(--violet); }
.profile-card.pme:hover { box-shadow: 0 20px 60px var(--violet-glow); }

.profile-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.profile-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

.profile-benefits {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.profile-benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.profile-benefit::before {
    content: '→';
    font-family: var(--font-mono);
    font-size: 0.7rem;
    opacity: 0.5;
}

.profile-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.2s;
}

.profile-card:hover .profile-cta {
    color: var(--text-primary);
}

.profile-cta-arrow {
    transition: transform 0.2s;
}

.profile-card:hover .profile-cta-arrow {
    transform: translateX(4px);
}

/* ========== SERVICES PREVIEW ========== */
.services-preview {
    background: var(--deep);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-block {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s;
}

.service-block:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px dashed var(--border);
    border-radius: 20px;
}

.service-block h3 {
    margin-bottom: 0.75rem;
}

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

/* ========== APPROACH ========== */
.approach {
    background: var(--void);
    position: relative;
    overflow: hidden;
}

.approach::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--violet-glow) 0%, transparent 60%);
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    pointer-events: none;
}

.approach-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.approach-content p {
    color: var(--text-secondary);
    margin-top: 1.5rem;
    line-height: 1.8;
}

.approach-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-style: italic;
}

.approach-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.metric-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.metric-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.metric-value {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.metric-card:nth-child(1) .metric-value { color: var(--accent); }
.metric-card:nth-child(2) .metric-value { color: var(--cyan); }
.metric-card:nth-child(3) .metric-value { color: var(--emerald); }
.metric-card:nth-child(4) .metric-value { color: var(--violet); }

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========== LOCAL ========== */
.local {
    background: var(--deep);
    text-align: center;
}

.local-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.local-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.local-badge-icon {
    width: 44px;
    height: 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: var(--void);
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

/* New Section: Privacy Policy */
.privacy-section {
    background: var(--deep);
    position: relative;
    overflow: hidden;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.privacy-content h3 {
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.privacy-content p, .privacy-content ul {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.privacy-content ul {
    list-style: none;
    padding-left: 20px;
}

.privacy-content ul li::before {
    content: '•';
    color: var(--accent);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.privacy-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.privacy-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.privacy-card .icon {
    font-size: 2rem;
    color: var(--cyan);
    margin-bottom: 1rem;
}

.privacy-card h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.privacy-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-grow: 1;
}

/* ========== FOOTER ========== */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 280px;
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
    .profiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .approach-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .approach-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .privacy-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding-top: 6rem;
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .profiles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .local-badges {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ========== MENU MOBILE ========== */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1.5rem 1.5rem;
        background: var(--void);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open { display: flex; }

    .nav-links li a {
        display: block;
        padding: 0.9rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child a {
        border-bottom: none;
        margin-top: 1rem;
        text-align: center;
    }
}

/* Ancres : compenser la barre de navigation fixe */
section[id], article[id], div[id] { scroll-margin-top: 80px; }

/* ========== DÉTAIL DES PROFILS ========== */
.profile-details {
    background: var(--deep);
}

.profile-detail-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 16px;
    padding: 2.5rem;
}

.profile-detail.freelance { border-left-color: var(--cyan); }
.profile-detail.independant { border-left-color: var(--accent); }
.profile-detail.artisan { border-left-color: var(--emerald); }
.profile-detail.pme { border-left-color: var(--violet); }

.profile-detail h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.profile-detail p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.profile-detail h4 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.profile-detail ul {
    list-style: none;
}

.profile-detail li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--border);
}

.profile-detail li:last-child { border-bottom: none; }

.profile-detail li::before {
    content: '→ ';
    font-family: var(--font-mono);
    color: var(--accent);
}

.profile-detail .btn {
    margin-top: 1.5rem;
}

/* ========== MENTIONS LÉGALES ========== */
.legal-section {
    background: var(--void);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--accent);
}

@media (max-width: 900px) {
    .profile-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }
}

.legal-page {
    padding-top: 9rem;
    min-height: 100vh;
}

.legal-page h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.legal-back {
    margin-top: 3rem;
}
