/* ============================================
   EKLORE — Feuille de style principale
   ============================================ */

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

:root {
    --green: #085041;
    --green-light: #E1F5EE;
    --green-mid: #1D9E75;
    --green-border: #9FE1CB;
    --blue: #185FA5;
    --blue-light: #E6F1FB;
    --amber: #854F0B;
    --amber-light: #FAEEDA;
    --purple: #533AB7;
    --purple-light: #EEEDFE;
    --text: #1a1a1a;
    --text-secondary: #6b6b6b;
    --border: #e5e5e5;
    --bg: #f9f9f7;
    --white: #ffffff;
    --radius: 10px;
    --radius-sm: 6px;
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }

/* HEADER */
.header { background: var(--white); border-bottom: 1px solid var(--border); padding: 14px 20px; position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 20px; font-weight: 600; letter-spacing: -0.5px; color: var(--text); }
.logo span { color: var(--green-mid); }
.header-nav { display: flex; align-items: center; gap: 12px; }
.nav-link { font-size: 14px; color: var(--text-secondary); text-decoration: none; }
.nav-link:hover { color: var(--text); }

/* BOUTONS */
.btn-primary { background: var(--green); color: white; border: none; padding: 8px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-block; transition: background 0.15s; }
.btn-primary:hover { background: #0F6E56; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); padding: 8px 18px; border-radius: var(--radius-sm); font-size: 14px; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.15s; }
.btn-outline:hover { background: var(--bg); }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-more { display: block; text-align: center; padding: 12px; border: 1px dashed var(--border); border-radius: var(--radius); font-size: 14px; color: var(--text-secondary); text-decoration: none; margin-top: 8px; transition: all 0.15s; }
.btn-more:hover { background: var(--white); color: var(--text); }

/* HERO */
.hero { background: var(--green); color: white; padding: 60px 20px; text-align: center; }
.hero-inner { max-width: 600px; margin: 0 auto; }
.hero h1 { font-size: 28px; font-weight: 600; margin-bottom: 12px; }
.hero p { font-size: 16px; opacity: 0.85; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .btn-primary { background: white; color: var(--green); }
.hero .btn-outline { border-color: rgba(255,255,255,0.5); color: white; }

/* STATS */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); background: var(--white); }
.stat { padding: 20px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { font-size: 26px; font-weight: 600; color: var(--green); }
.stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* SECTIONS */
.home-section { max-width: 900px; margin: 0 auto; padding: 30px 20px; }
.section-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.section-tab { padding: 10px 16px; font-size: 14px; border: none; background: transparent; cursor: pointer; border-bottom: 2px solid transparent; color: var(--text-secondary); transition: all 0.15s; }
.section-tab.active { border-bottom-color: var(--green); color: var(--green); font-weight: 500; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-hint { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; text-align: center; }

/* CARDS APERÇU */
.preview-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.preview-icon { font-size: 20px; }
.preview-info { flex: 1; }
.preview-title { font-size: 14px; font-weight: 500; }
.preview-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* BADGES */
.badge { font-size: 11px; padding: 3px 10px; border-radius: 20px; font-weight: 500; }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-amber { background: var(--amber-light); color: var(--amber); }
.badge-gray { background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); }
.badge-dark { background: var(--green); color: white; }

/* ENTREPRISES */
.ent-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.ent-avatar { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--green); color: white; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.ent-info { flex: 1; }
.ent-name { font-size: 14px; font-weight: 500; }
.ent-type { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.ent-right { text-align: right; }
.ent-missions { font-size: 18px; font-weight: 600; color: var(--green); }
.ent-mlabel { font-size: 11px; color: var(--text-secondary); }

/* FORMULAIRES */
.form-wrap { max-width: 440px; margin: 40px auto; padding: 0 20px; }
.form-title { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.form-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.form-toggle { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 24px; }
.form-toggle-btn { flex: 1; padding: 9px; font-size: 13px; border: none; background: transparent; color: var(--text-secondary); cursor: pointer; transition: all 0.15s; }
.form-toggle-btn.active { background: var(--green); color: white; font-weight: 500; }
.form-row { margin-bottom: 14px; }
.form-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 5px; display: block; }
.form-input { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; background: var(--white); color: var(--text); transition: border 0.15s; }
.form-input:focus { outline: none; border-color: var(--green-mid); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-submit { width: 100%; padding: 11px; background: var(--green); color: white; border: none; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; cursor: pointer; margin-top: 4px; transition: background 0.15s; }
.form-submit:hover { background: #0F6E56; }
.form-switch { text-align: center; margin-top: 14px; font-size: 13px; color: var(--text-secondary); }
.form-switch a { color: var(--green); font-weight: 500; text-decoration: none; }
.form-error { background: #fde8e8; border: 1px solid #f5c6c6; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; color: #c0392b; margin-bottom: 16px; }
.form-success { background: var(--green-light); border: 1px solid var(--green-border); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; color: var(--green); margin-bottom: 16px; }

/* TABLEAU DE BORD */
.dashboard { max-width: 900px; margin: 0 auto; padding: 24px 20px; }
.connected-bar { padding: 8px 20px; font-size: 13px; display: flex; align-items: center; justify-content: space-between; }
.connected-bar.green { background: var(--green-light); border-bottom: 1px solid var(--green-border); color: var(--green); }
.connected-bar.blue { background: var(--blue-light); border-bottom: 1px solid #B5D4F4; color: var(--blue); }
.connected-bar.purple { background: var(--purple-light); border-bottom: 1px solid #CECBF6; color: var(--purple); }
.connected-bar a { color: inherit; font-size: 12px; }
.dashboard-tabs { display: flex; border-bottom: 1px solid var(--border); overflow-x: auto; background: var(--white); }
.dashboard-tab { padding: 12px 16px; font-size: 13px; border: none; background: transparent; cursor: pointer; border-bottom: 2px solid transparent; color: var(--text-secondary); white-space: nowrap; transition: all 0.15s; }
.dashboard-tab.active { border-bottom-color: var(--green); color: var(--green); font-weight: 500; }

/* PROJETS */
.projet-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.projet-header { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.projet-title { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.projet-company { font-size: 13px; color: var(--text-secondary); }
.synopsis { font-size: 13px; color: var(--text-secondary); line-height: 1.6; padding: 10px 12px; background: var(--bg); border-radius: var(--radius-sm); border-left: 3px solid var(--green-border); margin: 10px 0; }
.projet-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; padding: 3px 10px; border-radius: 20px; background: var(--bg); border: 1px solid var(--border); color: var(--text-secondary); }
.poste-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.poste-row:last-child { border-bottom: none; }
.poste-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.poste-info { flex: 1; }
.poste-name { font-size: 13px; font-weight: 500; }
.poste-detail { font-size: 12px; color: var(--text-secondary); }
.btn-cand { padding: 6px 16px; background: var(--green); color: white; border: none; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.15s; text-decoration: none; display: inline-block; }
.btn-cand:hover { background: #0F6E56; }
.btn-cand.sent { background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); cursor: default; }

/* FOOTER */
.footer { background: var(--green); color: white; padding: 40px 20px; margin-top: 60px; }
.footer-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.footer .logo { color: white; margin-bottom: 10px; }
.footer p { font-size: 13px; opacity: 0.8; margin-bottom: 16px; }
.footer-links { display: flex; gap: 20px; justify-content: center; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-links a:hover { color: white; }

/* RESPONSIVE */
@media (max-width: 600px) {
    .hero h1 { font-size: 22px; }
    .hero-btns { flex-direction: column; align-items: center; }
    .stats { grid-template-columns: repeat(3, 1fr); }
    .stat-num { font-size: 20px; }
    .header-nav .btn-outline { display: none; }
    .form-grid { grid-template-columns: 1fr; }
}
