/* ===== Tokens ===== */
:root {
    --bg: #faf8f6;
    --bg-elevated: #ffffff;
    --text: #2b2a2c;
    --text-muted: #756f72;
    --accent: #6fb79a;   
    --accent-dark: #4f8d74;
    --border: #e4dfda;
    --font-display: 'JetBrains Mono', 'Courier New', monospace;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ===== Header ===== */
.site-header {
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== Navigation ===== */
.logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.logo .accent { color: var(--accent); }

.main-nav { display: flex; gap: 28px; }

.main-nav a {
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--accent-dark);
}

.main-nav a.active {
    color: var(--text);
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--accent);
}

/* ===== Layout ===== */
main {
    max-width: 960px;
    margin: 0 auto;
    padding: 64px 24px;
    min-height: 60vh;
}

.eyebrow {
    font-family: var(--font-display);
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 12px;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 75ch;
    margin: 0 0 32px;
}

/* ===== Cards & Grid ===== */
.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-dark);
    color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.btn:hover { opacity: 0.85; }

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

/* ===== CV page ===== */
.timeline-item {
    border-left: 2px solid var(--border);
    padding: 0 0 32px 24px;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -6px; top: 4px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline-item .date {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--accent);
}

.employer {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 4px 0 0;
}

/* ===== Contact ===== */
form { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }

label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: block;
}

input, textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 24px;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.linkedin-link {
    color: var(--accent-dark);
    display: inline-flex;
    transition: opacity 0.2s ease;
}

.linkedin-link:hover {
    opacity: 0.7;
}

/* ===== Devis form ===== */
.progress-track {
    max-width: 640px;
    margin: 0 auto 40px;
}

.progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.3s ease;
}

.devis-form { max-width: 640px; margin: 0 auto; }

.devis-form fieldset {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}

.devis-form legend {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    padding: 0 6px;
}

.devis-form legend .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.devis-form label { margin: 16px 0 6px; }
.devis-form label.first { margin-top: 4px; }

.devis-form .hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: -3px 0 6px;
}

.checkbox-grid, .radio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.check-item, .radio-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.85rem;
    cursor: pointer;
}

.check-item input, .radio-item input {
    width: auto;
    accent-color: var(--accent-dark);
}

.check-item.type-toggle {
    border-color: var(--accent);
    font-weight: 600;
}

.required-mark { color: var(--accent-dark); }

.type-section {
    border-left: 2px solid var(--accent);
    padding-left: 16px;
    margin-top: 20px;
}

.type-section .eyebrow { margin-bottom: 8px; }

.hidden { display: none !important; }

.submit-row { text-align: center; margin-top: 8px; }

.devis-form button[type="submit"] {
    background: var(--accent-dark);
    color: #fff;
    border: none;
    padding: 13px 36px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.devis-form button[type="submit"]:hover { opacity: 0.85; }
.devis-form button[type="submit"]:disabled { opacity: 0.5; cursor: not-allowed; }

.status-msg { text-align: center; margin-top: 14px; font-size: 0.9rem; }
.status-msg.error { color: #b4453b; }

.success-screen { max-width: 480px; margin: 40px auto; text-align: center; }

.success-screen .icon {
    width: 52px; height: 52px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .header-inner { flex-direction: column; gap: 12px; }
    main { padding: 40px 20px; }
}
