/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Poppins:wght@500;600;700&family=Roboto:wght@400;500;700&display=swap');

/* Variables - Charte Graphique Behind The Stage */
:root {
    --violet: #9FA3FF;
    --green: #65B891;
    --mint: #A6FFE8;
    --cream: #FFFEFA;
    --black: #000000;

    --primary: var(--green);
    --primary-light: #1a8066;
    --secondary: var(--violet);
    --accent: var(--mint);

    --bg: var(--cream);
    --bg-alt: #f5f5f2;
    --text: var(--black);
    --text-muted: #555555;
    --border: #e0e0dc;

    --success: #136650;
    --warning: #e6a700;
    --error: #d32f2f;

    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

/* Typography */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
}

h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--black);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-light);
}

/* Navbar */
.navbar {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.75rem 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo {
    position: absolute;
    left: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    font-family: 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: white;
}

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

.nav-links a.nav-admin {
    font-weight: 300;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    font-size: 0.65rem;
    font-weight: 700;
    font-style: normal;
    color: white;
    line-height: 1;
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    flex-shrink: 0;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.2s;
    position: absolute;
    right: 0;
}

.nav-avatar:hover,
.nav-avatar.nav-active {
    border-color: var(--primary);
}

.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-avatar span {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
}

.nav-mobile-profile {
    display: none;
}

.nav-logout {
    display: none;
}

.user-badge:hover {
    background: var(--primary-light);
    color: var(--cream);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--cream);
}

.btn-primary:hover {
    background: var(--primary-light);
    color: var(--cream);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--black);
}

.btn-secondary:hover {
    background: #8a8ef0;
    color: var(--black);
}

.btn-accent {
    background: var(--accent);
    color: var(--black);
}

.btn-accent:hover {
    background: #8cf0d8;
    color: var(--black);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    --_btn-color: var(--primary);
}

.btn-outline:hover {
    background: var(--_btn-color);
    color: var(--cream) !important;
    border-color: var(--_btn-color);
}

.btn-outline[style*="color: var(--secondary)"] { --_btn-color: var(--secondary); }
.btn-outline[style*="color: var(--error)"] { --_btn-color: var(--error); }

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: var(--black);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 180, 50, 0.3) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--cream);
}

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

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 254, 0.85);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--bg);
}

.features h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.features > .container > p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--cream);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lato', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--black);
    margin: 0 auto 1.25rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Cards */
.card {
    background: var(--cream);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: var(--shadow);
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Technician Card */
.tech-card {
    background: var(--cream);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tech-card-header {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--primary);
}

.tech-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tech-card-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Lato', sans-serif;
    color: var(--cream);
    background: var(--primary);
}

.tech-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1rem 0.75rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    text-align: left;
}

.tech-avatar {
    width: 70px;
    height: 70px;
    background: var(--cream);
    border-radius: 50%;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lato', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}

.tech-card-header h3 {
    color: white;
    margin-bottom: 0.15rem;
    font-size: 1.05rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.tech-card-header .subtitle {
    color: var(--accent);
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.tech-card-body {
    padding: 1.25rem;
}

.tech-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.skill-tag {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Bouton favori */
.btn-favorite {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.6);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-favorite:hover {
    border-color: var(--error);
    color: var(--error);
}

.btn-favorite.active {
    background: var(--error);
    border-color: var(--error);
    color: white;
}

.tech-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Event Card */
.event-card {
    background: var(--cream);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.event-card:hover {
    box-shadow: var(--shadow-lg);
}

.event-card-header {
    background: #6b7280;
    padding: 0;
    position: relative;
    min-height: 130px;
}

.event-card-overlay {
    padding: 1.25rem;
    position: relative;
    z-index: 1;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.event-card-header[style*="background-image"] .event-card-overlay {
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.65) 100%);
}

.event-card-header[style*="background-image"] h3 {
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.event-date {
    display: inline-block;
    background: white;
    padding: 0.4rem 0.75rem;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.event-card-header h3 {
    color: var(--black);
    font-size: 1.1rem;
}

.event-card-body {
    padding: 1.25rem;
}

.event-location {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.event-jobs {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.event-jobs-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Forms */
.form-section {
    padding: 5rem 0 4rem;
    background: var(--bg-alt);
    min-height: calc(100vh - 200px);
}

.form-container {
    max-width: 550px;
    margin: 0 auto;
    background: var(--cream);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.form-container.wide {
    max-width: 750px;
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--black);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--cream);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--black);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(19, 102, 80, 0.15);
}

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

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

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.form-error {
    background: rgba(211, 47, 47, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.category-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-title:first-child {
    margin-top: 0;
}

/* Filters */
.filters {
    background: var(--cream);
    padding: 1.25rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.filters-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filters .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 180px;
}

.filters .form-group label {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.filters .form-group input,
.filters .form-group select {
    padding: 0.6rem 0.875rem;
    font-size: 0.9rem;
}

/* Page Header */
.page-header {
    padding: 5rem 0 2.5rem;
    background-color: var(--black);
    background-image: url('/static/img/header-bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header.compact {
    padding: 4rem 0 1.25rem;
}

.page-header.compact .page-header-logo {
    width: 80px;
}

.page-header.compact h1 {
    font-size: 1.5rem;
}

.page-header-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.page-header-logo {
    width: 250px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .page-header-logo {
        width: 120px;
    }
    .page-header-inner {
        gap: 1.5rem;
    }
}

.page-header h1 {
    margin-bottom: 0.5rem;
    color: white;
    text-align: center;
}

.page-header p {
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
}

.page-header-inner {
    justify-content: center;
}

.page-header .btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    --_btn-color: white;
}

.page-header .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.page-header .btn-primary {
    background: var(--primary);
}

/* Profile Page */
.profile-header {
    background: var(--primary);
    padding: 5rem 0 3rem;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lato', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary);
}

.profile-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--cream);
}

.profile-content {
    padding: 3rem 0;
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Job Posting */
.job-posting {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.job-posting h4 {
    margin-bottom: 0.4rem;
}

.job-posting .job-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.job-posting .job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

/* Footer */
.footer {
    background: var(--black);
    padding: 2rem 0;
    text-align: center;
    color: rgba(255, 255, 254, 0.7);
}

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

/* Section */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: var(--primary);
    text-align: center;
}

.cta-section h2 {
    color: var(--cream);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 254, 0.85);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-section .btn {
    background: var(--accent);
    color: var(--black);
}

.cta-section .btn:hover {
    background: #8cf0d8;
    color: var(--black);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: var(--accent);
    color: var(--black);
}

.badge-warning {
    background: rgba(230, 167, 0, 0.2);
    color: #b58500;
}

.badge-pending {
    background: white;
    color: var(--secondary);
    border: 1.5px solid var(--secondary);
}

/* Audience Section */
.audience-section {
    padding: 5rem 0;
    background: var(--bg-alt);
}

.audience-card {
    background: var(--cream);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.audience-card:hover {
    box-shadow: var(--shadow-lg);
}

.audience-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.audience-card h3 {
    margin-bottom: 1rem;
}

.audience-card ul {
    list-style: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Audience cards specific colors */
.audience-card.tech {
    border-top: 4px solid var(--primary);
}

.audience-card.org {
    border-top: 4px solid var(--secondary);
}

.dashboard-section .audience-card {
    text-align: left;
    padding: 1.5rem;
}

/* Selected Jobs (forms) */
.selected-jobs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.75rem;
    background: var(--bg-alt);
    border-radius: 12px;
}

.selected-job {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--cream);
    padding: 0.4rem 0.75rem;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
}

.selected-job .remove-job {
    cursor: pointer;
    opacity: 0.8;
    font-weight: bold;
}

.selected-job .remove-job:hover {
    opacity: 1;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: 12px;
}

.job-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--cream);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.job-checkbox:hover {
    background: var(--primary);
    color: var(--cream);
}

.job-checkbox input {
    accent-color: var(--primary);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-alt);
}

.search-result-item .job-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.search-result-item .job-path {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Mobility zone shortcuts */
.mobility-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mobility-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    border: 2px solid var(--primary);
    border-radius: 25px;
    background: transparent;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.mobility-btn:hover {
    background: rgba(19, 102, 80, 0.1);
    transform: translateY(-1px);
}

.mobility-btn.active {
    background: var(--primary);
    color: var(--cream);
    border-color: var(--primary);
}

.mobility-btn.active:hover {
    background: #0f5240;
}

.mobility-btn.partial {
    background: rgba(19, 102, 80, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.mobility-group {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: 12px;
}

.mobility-group-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Dashboard sections */
.dashboard-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border-radius: 16px;
}

.dashboard-section.tech {
    background: rgba(19, 102, 80, 0.04);
    border: 1px solid rgba(19, 102, 80, 0.15);
}

.dashboard-section.org {
    background: rgba(159, 163, 255, 0.06);
    border: 1px solid rgba(159, 163, 255, 0.2);
}

.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dashboard-section.tech .dashboard-section-header h2 {
    color: var(--primary);
}

.dashboard-section.org .dashboard-section-header h2 {
    color: var(--secondary);
}

/* Dashboard tabs */
.dashboard-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
}

.dashboard-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
    transition: all 0.2s;
}

.dashboard-tab:hover {
    color: var(--text);
}

.dashboard-tab.active[data-tab="technician"] {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.dashboard-tab.active[data-tab="advertiser"] {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

/* Dashboard invitation banners */
.dashboard-invitation {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.dashboard-invitation.tech {
    background: rgba(19, 102, 80, 0.06);
    border: 1px dashed rgba(19, 102, 80, 0.25);
}

.dashboard-invitation.org {
    background: rgba(159, 163, 255, 0.08);
    border: 1px dashed rgba(159, 163, 255, 0.3);
}

.dashboard-invitation p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem 0;
}

/* Form hints (public/private info) */
.form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-alt);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.form-hint.hint-public {
    border-left: 3px solid var(--primary);
}

.form-hint.hint-private {
    border-left: 3px solid var(--secondary);
}

/* Address autocomplete */
.address-autocomplete-wrapper {
    position: relative;
}

.address-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.address-autocomplete-dropdown.active {
    display: block;
}

.address-autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.address-autocomplete-item:last-child {
    border-bottom: none;
}

.address-autocomplete-item:hover {
    background: var(--bg-alt);
}

.address-autocomplete-item .address-context {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Onboarding options */
.onboarding-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--black);
    transition: all 0.2s;
    min-height: 280px;
}

.onboarding-option.tech {
    background: rgba(19, 102, 80, 0.06);
    border: 2px solid rgba(19, 102, 80, 0.2);
}

.onboarding-option.tech:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(19, 102, 80, 0.15);
    transform: translateY(-2px);
}

.onboarding-option.org {
    background: rgba(159, 163, 255, 0.08);
    border: 2px solid rgba(159, 163, 255, 0.25);
}

.onboarding-option.org:hover {
    border-color: var(--secondary);
    box-shadow: 0 4px 20px rgba(159, 163, 255, 0.2);
    transform: translateY(-2px);
}

.onboarding-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.onboarding-option-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.onboarding-option h3 {
    margin-bottom: 0.75rem;
}

.onboarding-option p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .profile-info {
        flex-direction: column;
        text-align: center;
    }

    .form-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0.75rem;
        box-shadow: var(--shadow);
    }

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

    .nav-avatar {
        display: none;
    }
    .nav-mobile-profile {
        display: block;
    }
    .nav-logout {
        display: block;
        color: var(--text-muted);
        font-size: 0.9rem;
    }

    .nav-container {
        position: relative;
    }

    /* Messaging mobile */
    .messaging-layout {
        flex-direction: column;
        height: auto;
    }
    .messaging-sidebar {
        width: 100%;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    /* Sur mobile, quand une conversation est ouverte, cacher la sidebar */
    .messaging-layout:has(.messaging-main-header) .messaging-sidebar {
        display: none;
    }
    .messaging-main {
        flex: 1;
        min-height: 0;
    }
    .dashboard-tab {
        flex: 1;
        text-align: center;
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    .messaging-empty-main {
        display: none;
    }
    .messaging-back-btn {
        display: flex !important;
    }
}

/* ========== Messagerie ========== */

.messaging-layout {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

body:has(> main > .messaging-layout),
body:has(> main > .messaging-layout-page) {
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

body:has(> main > .messaging-layout) main,
body:has(> main > .messaging-layout-page) main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

body:has(> main > .messaging-layout) .footer,
body:has(> main > .messaging-layout-page) .footer {
    display: none;
}

body:has(> main > .messaging-layout) .navbar,
body:has(> main > .messaging-layout-page) .navbar {
    position: relative;
    background: var(--black);
}

.messaging-layout-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.messaging-layout-page > * {
    flex-shrink: 0;
}

.messaging-layout-page .messaging-layout {
    flex: 1 1 0;
    min-height: 0;
}

.messaging-sidebar {
    width: 340px;
    min-width: 340px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.messaging-sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.messaging-sidebar-header h2 {
    font-size: 1.2rem;
    margin: 0;
}

.messaging-conv-list {
    flex: 1;
    overflow-y: auto;
}

.messaging-conv-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.messaging-conv-item:hover {
    background: var(--bg-alt);
}

.messaging-conv-item.active {
    background: rgba(19, 102, 80, 0.08);
    border-left: 3px solid var(--primary);
}

.messaging-conv-item.unread .messaging-conv-name {
    font-weight: 800;
}

.messaging-conv-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    border: 2px solid var(--border);
}

.messaging-conv-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.messaging-conv-info {
    flex: 1;
    min-width: 0;
}

.messaging-conv-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messaging-conv-preview {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.15rem;
}

.messaging-conv-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.messaging-conv-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.messaging-conv-badge {
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.messaging-empty-sidebar {
    padding: 2rem;
    text-align: center;
}

/* Zone principale */

.messaging-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.messaging-empty-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.messaging-main-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--bg);
}

.messaging-back-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-alt);
    text-decoration: none;
    color: var(--text);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.messaging-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.messaging-bubble-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.75rem;
}

.messaging-bubble-row.mine {
    justify-content: flex-end;
}

.messaging-bubble {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    background: var(--bg-alt);
    border-bottom-left-radius: 4px;
    font-size: 0.95rem;
}

.messaging-bubble.mine {
    background: var(--primary);
    color: var(--cream);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 4px;
}

.messaging-bubble-time {
    display: block;
    font-size: 0.7rem;
    margin-top: 0.25rem;
    opacity: 0.6;
}

.messaging-input {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg);
    flex-shrink: 0;
}

.messaging-team-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 4px;
    letter-spacing: 0.5px;
}
