/* ========================================
   AugmentedFreelance.me - Global Styles
   ======================================== */

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a24;
    --accent-orange: #ff6b35;
    --accent-amber: #ffb347;
    --accent-gold: #ffd700;
    --text-primary: #fafafa;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    --border-subtle: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.15);
    --glow-orange: rgba(255,107,53,0.4);
    
    /* Parcours colors */
    --color-junior: #10b981;
    --color-senior: #6366f1;
    --color-architect: #3b82f6;
    --color-quality: #22c55e;
    --color-product: #f59e0b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grain overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
}

.mono {
    font-family: 'DM Mono', monospace;
}

.highlight {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-amber), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Navigation
   ======================================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, var(--bg-dark), transparent);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-amber));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

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

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

.btn-access {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-amber));
    color: var(--bg-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-access:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px var(--glow-orange);
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

/* Mobile menu toggle base style */

/* Mobile CTA - hidden by default, shown only in mobile menu */
.mobile-cta {
    display: none;
}

/* ========================================
   Buttons
   ======================================== */

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-amber));
    color: var(--bg-dark);
    padding: 1rem 2.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px var(--glow-orange);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border: 1px solid var(--border-subtle);
    transition: border-color 0.3s, background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: inherit;
}

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

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* ========================================
   Section Headers
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    font-family: 'DM Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-orange);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Page Header (for inner pages)
   ======================================== */

.page-header {
    padding: 10rem 4rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(255,107,53,0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(255,179,71,0.05) 0%, transparent 50%);
    z-index: -1;
}

.page-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
}

.page-header .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   Cards
   ======================================== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ========================================
   Forms
   ======================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236a6a7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

/* ========================================
   Footer
   ======================================== */

footer {
    padding: 4rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-column h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

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

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

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

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-credit a {
    color: var(--accent-orange);
    text-decoration: none;
}

/* ========================================
   Animations
   ======================================== */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out both;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ========================================
   Utilities
   ======================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    nav {
        padding: 1rem 2rem;
    }

    .nav-links {
        display: none;
    }

    nav > .btn-access {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Mobile menu open state */
    .nav-links.mobile-open {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        padding: 5rem 2rem 2rem;
        gap: 0;
        z-index: 1000;
        overflow-y: auto;
        margin: 0;
    }

    .nav-links.mobile-open li {
        border-bottom: 1px solid var(--border-subtle);
        list-style: none;
    }

    .nav-links.mobile-open li:last-child {
        border-bottom: none;
    }

    .nav-links.mobile-open a {
        display: block;
        padding: 1.25rem 0;
        font-size: 1.1rem;
        color: var(--text-primary);
    }

    .nav-links.mobile-open a:hover {
        color: var(--accent-orange);
    }

    /* Mobile CTA button */
    .nav-links.mobile-open .mobile-cta {
        display: block !important;
        margin-top: 1.5rem;
        text-align: center;
    }

    .nav-links.mobile-open .mobile-cta .btn-access {
        display: inline-block !important;
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* Close button positioning */
    nav.mobile-open .mobile-menu-toggle {
        position: fixed;
        top: 1rem;
        right: 1.5rem;
        z-index: 1002;
    }

    .page-header {
        padding: 8rem 2rem 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .btn-access {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .page-header {
        padding: 7rem 1.5rem 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ========================================
   Language Switcher
   ======================================== */

.lang-switcher {
    position: relative;
    margin-left: 1rem;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
}

.lang-current:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.lang-code {
    font-family: 'DM Mono', monospace;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.lang-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s;
}

.lang-switcher.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 200;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
    font-size: 0.85rem;
    text-align: left;
}

.lang-dropdown button:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.lang-dropdown button.active {
    background: rgba(255,107,53,0.1);
    color: var(--accent-orange);
}

.lang-dropdown button .lang-flag {
    font-size: 1rem;
}

/* Mobile language switcher adjustments */
@media (max-width: 1024px) {
    .lang-switcher {
        margin-left: 0.5rem;
    }

    .lang-current {
        padding: 0.4rem 0.6rem;
    }

    .lang-dropdown {
        right: 0;
        min-width: 130px;
    }
}

@media (max-width: 1024px) {
    .lang-switcher {
        position: absolute;
        top: 1rem;
        right: 4rem;
    }
}
