/* ═══════════════════════════════════════════════════════════════
   Mano — Design Minimaliste Blanc + Violet Fonce (Style Apple)
   ═══════════════════════════════════════════════════════════════ */
:root {
  --white: #FFFFFF;
  --violet: #5D3A87;
  --violet-light: #7B52AB;
  --violet-dark: #4A2E6B;
  --gray-bg: #F5F5F5;
  --gray-border: #E0E0E0;
  --gray-text: #333333;
  --gray-light: #888888;
  --success: #34C759;
  --danger: #FF3B30;
  --warning: #FF9500;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: 0.3s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; color: var(--gray-text); background: var(--white);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

/* PAGES */
.page { display: none; min-height: 100vh; opacity: 0; transition: opacity var(--transition); }
.page.active { display: flex; flex-direction: column; opacity: 1; }
.hidden { display: none !important; }

/* CONTAINER */
.container { max-width: 900px; margin: 0 auto; padding: 40px 20px; width: 100%; align-self: center; }
.container.container-wide { max-width: 1200px; }

/* TOPBAR */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px; background: var(--white); border-bottom: 1px solid var(--gray-border);
  position: sticky; top: 0; z-index: 100;
}
.nav-logo { font-size: 24px; font-weight: 700; color: var(--violet); text-decoration: none; cursor: pointer; }
.nav-logo:hover { opacity: 0.8; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
#user-info { font-size: 14px; color: var(--gray-light); }
#btn-open-test-feedback { font-size: 13px; padding: 7px 14px; }

/* ── Star rating ── */
.star-rating { display: flex; gap: 6px; margin-top: 6px; cursor: pointer; }
.star-rating .star {
  font-size: 32px; color: var(--gray-border); transition: color 0.1s, transform 0.1s;
  line-height: 1; user-select: none;
}
.star-rating .star.active { color: #f5a623; }
.star-rating .star.hover  { color: #f5a623; transform: scale(1.15); }

/* TAB BAR */
.tab-bar-desktop { display: flex; gap: 4px; }
.tab-btn {
  background: none; border: none; padding: 8px 18px; font-size: 14px; font-weight: 600;
  color: var(--gray-light); cursor: pointer; border-radius: var(--radius);
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--violet); background: rgba(93,58,135,0.06); }
.tab-btn.active { color: var(--violet); background: rgba(93,58,135,0.1); }

/* TAB CONTENT */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* MOBILE TAB BAR */
.tab-bar-mobile { display: none; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border: none; border-radius: var(--radius);
  font-size: 16px; font-weight: 600; cursor: pointer;
  transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--violet); color: var(--white); }
.btn-primary:hover { background: var(--violet-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent { background: var(--violet-light); color: var(--white); }
.btn-accent:hover { background: var(--violet); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--violet); border: 1.5px solid var(--violet); }
.btn-outline:hover { background: var(--violet); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 18px; flex: 1; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-danger { background: transparent; color: var(--danger); border: 1.5px solid var(--danger); }
.btn-danger:hover { background: var(--danger); color: var(--white); }

/* AUTH */
#page-auth, #page-setup { align-items: center; justify-content: center; background: var(--gray-bg); padding: 20px; }
.auth-container {
  background: var(--white); border-radius: 20px; padding: 48px 40px;
  max-width: 440px; width: 100%; box-shadow: var(--shadow-lg); text-align: center;
}
.logo h1 { font-size: 48px; font-weight: 700; color: var(--violet); letter-spacing: -1px; }
.subtitle { font-size: 16px; color: var(--gray-light); margin: 8px 0 32px; line-height: 1.5; }
.auth-form h2 { font-size: 24px; font-weight: 700; margin-bottom: 24px; text-align: left; }
.auth-switch { margin-top: 16px; font-size: 14px; color: var(--gray-light); }
.auth-switch a { color: var(--violet); text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* INPUTS */
.input-group { margin-bottom: 16px; text-align: left; }
.input-group label { display: block; font-size: 14px; font-weight: 600; color: var(--gray-text); margin-bottom: 6px; }
.input-group .optional { font-weight: 400; color: var(--gray-light); font-size: 12px; }
.input-group input, .input-group textarea, .input-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--gray-border); border-radius: var(--radius);
  font-size: 16px; font-family: inherit; color: var(--gray-text); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition); outline: none;
}
.input-group input:focus, .input-group textarea:focus, .input-group select:focus {
  border-color: var(--violet); box-shadow: 0 0 0 3px rgba(93, 58, 135, 0.1);
}
.input-group textarea { resize: vertical; }
.input-row { display: flex; gap: 16px; }
.input-row .input-group { flex: 1; }
.char-count { display: block; text-align: right; font-size: 12px; color: var(--gray-light); margin-top: 4px; }

/* MESSAGES */
.error-msg { color: var(--danger); font-size: 14px; margin-top: 12px; min-height: 20px; }
.success-msg { color: var(--success); font-size: 14px; margin-top: 12px; min-height: 20px; }

/* DASHBOARD SECTIONS */
.dashboard-section { margin-bottom: 8px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 4px;
}
.section-header h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.3px; }
.section-subtitle { font-size: 15px; color: var(--gray-light); margin-bottom: 20px; }
.section-divider {
  height: 1px; background: var(--gray-border); margin: 32px 0;
}

/* ACTION BUTTONS (section 3) */
.action-buttons { display: flex; gap: 16px; }

/* FORM */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 8px; }
.full-width { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; }

/* PROFILE/RECHERCHE DISPLAY (read-only) */
.profile-display { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 8px; }
.profile-field { }
.profile-field .field-label { font-size: 12px; font-weight: 600; color: var(--gray-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.profile-field .field-value { font-size: 16px; color: var(--gray-text); line-height: 1.5; }
.profile-field .field-value.empty { color: var(--gray-light); font-style: italic; }
.profile-field.full { grid-column: 1 / -1; }

/* POUR LES INDECIS */
.indecis-section { margin-top: 16px; margin-bottom: 8px; }
.indecis-toggle {
  cursor: pointer; font-weight: 600; color: var(--violet); font-size: 15px;
  padding: 12px 0; list-style: none; display: flex; align-items: center; gap: 8px;
}
.indecis-toggle::before { content: '\25B6'; font-size: 10px; transition: transform 0.2s; }
.indecis-section[open] .indecis-toggle::before { transform: rotate(90deg); }
.indecis-content {
  padding: 16px 0 8px;
}

/* LOADING */
#page-loading, #page-feedback-loading { align-items: center; justify-content: center; background: var(--white); }
.loading-container { text-align: center; }
.loader {
  width: 48px; height: 48px; border: 4px solid var(--gray-border); border-top-color: var(--violet);
  border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-container h2 { font-size: 28px; font-weight: 700; color: var(--gray-text); margin-bottom: 8px; }
.loading-container p { font-size: 16px; color: var(--gray-light); }

/* RESULTS */
.results-header { margin-bottom: 32px; }
.results-header h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.5px; }
.results-header p { font-size: 18px; color: var(--gray-light); margin-top: 8px; }
.keywords-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.keyword-tag { display: inline-block; padding: 4px 12px; background: rgba(93,58,135,0.1); color: var(--violet); border-radius: 20px; font-size: 13px; font-weight: 500; }

.search-explanation {
  background: var(--gray-bg); border-radius: var(--radius); padding: 16px 20px;
  margin-bottom: 24px; font-size: 14px; line-height: 1.6; color: var(--gray-text);
}
.search-explanation .explanation-title { font-weight: 600; margin-bottom: 4px; color: var(--violet); }

/* Multi-villes preview tags */
.ville-tags-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ville-tag {
  display: inline-block; background: rgba(93,58,135,0.1); color: var(--violet);
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px;
  border: 1px solid rgba(93,58,135,0.25);
}

.contacts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-bottom: 32px; width: 100%; }
.contact-card {
  background: var(--white); border: 1px solid var(--gray-border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.contact-card .card-header { margin-bottom: 16px; }
.contact-card .student-name { font-size: 20px; font-weight: 700; color: var(--gray-text); }
.contact-card .company { font-size: 16px; color: var(--violet); font-weight: 600; margin-top: 4px; }
.contact-card .card-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.contact-card .meta-tag { padding: 4px 10px; background: var(--gray-bg); border-radius: 8px; font-size: 13px; color: var(--gray-light); }
.contact-card .mission {
  font-size: 14px; line-height: 1.6; color: var(--gray-text); margin-bottom: 20px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.contact-card .card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.contact-card .card-actions .btn { font-size: 14px; padding: 10px 12px; }
.contact-card .card-actions .btn:not([style]) { flex: 1; }
.results-actions { display: flex; gap: 16px; justify-content: center; margin-top: 16px; }

/* ── Contact sections ── */
.contacts-section { margin-bottom: 40px; }
.section-label { font-size: 18px; font-weight: 700; color: var(--gray-text); margin-bottom: 16px; letter-spacing: 0.01em; }
.contacts-section-reason { font-size: 13px; color: #888; margin: -8px 0 14px; font-style: italic; }
.contact-card-soft { opacity: 0.72; }
.contact-card-soft:hover { opacity: 1; }
.section-tag-echange { background: #e8f4fd; color: #2980b9; }
.section-tag-master { background: #f0ebff; color: #7c3aed; }
.section-tag-appart { background: #fef9e7; color: #d68910; }
.section-tag-alternance { background: #e8fdf0; color: #27ae60; }
.section-tag-hesitation { background: #fff3e0; color: #e67e22; font-size: 12px; }

/* ── Category tabs ── */
.contacts-category-tabs {
  display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 2px solid var(--border);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.cat-tab {
  padding: 10px 18px; font-size: 14px; font-weight: 600; color: var(--gray-text);
  background: none; border: none; cursor: pointer; border-bottom: 3px solid transparent;
  margin-bottom: -2px; white-space: nowrap; transition: all 0.2s;
}
.cat-tab:hover { color: var(--primary); }
.cat-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.cat-panel { display: none; }
.cat-panel.active { display: block; }

/* MODAL */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal.hidden { display: none !important; }
.modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); }
.modal-content {
  position: relative; background: var(--white); border-radius: 20px; padding: 40px;
  max-width: 520px; width: 100%; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto;
}
.modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 28px; color: var(--gray-light); cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--gray-text); }
.modal-content h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.modal-content > p { font-size: 14px; color: var(--gray-light); margin-bottom: 24px; }

/* RADIO GROUP */
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-label { cursor: pointer; }
.radio-label input { display: none; }
.radio-custom {
  display: inline-block; padding: 10px 20px; border: 1.5px solid var(--gray-border);
  border-radius: var(--radius); font-size: 14px; font-weight: 500; transition: all var(--transition);
}
.radio-label input:checked + .radio-custom { background: var(--violet); color: var(--white); border-color: var(--violet); }
.radio-custom:hover { border-color: var(--violet); }

/* HISTORIQUE */
.historique-header { margin-bottom: 32px; }
.historique-header h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.5px; }
.historique-header p { font-size: 18px; color: var(--gray-light); margin-top: 8px; }
.historique-list { display: flex; flex-direction: column; gap: 16px; }
.historique-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: var(--white); border: 1px solid var(--gray-border);
  border-radius: var(--radius); box-shadow: var(--shadow); transition: transform var(--transition);
  flex-wrap: wrap; gap: 12px;
}
.historique-item:hover { transform: translateY(-1px); }
.historique-info { flex: 1; min-width: 200px; }
.historique-info .student-name { font-size: 16px; font-weight: 700; }
.historique-info .company { font-size: 14px; color: var(--violet); font-weight: 500; }
.historique-info .meta { font-size: 12px; color: var(--gray-light); margin-top: 4px; }
.historique-feedback { display: flex; align-items: center; gap: 8px; }
.feedback-badge { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.feedback-badge.utile { background: rgba(52,199,89,0.1); color: var(--success); }
.feedback-badge.non_utile { background: rgba(255,59,48,0.1); color: var(--danger); }
.feedback-badge.ne_sais_pas { background: rgba(255,149,0,0.1); color: var(--warning); }
.historique-actions { display: flex; gap: 16px; justify-content: center; margin-top: 32px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-light); }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; color: var(--gray-text); }

/* TIMELINE (Mon Profil experiences) */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px;
  width: 2px; background: var(--gray-border);
}
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-dot {
  position: absolute; left: -32px; top: 6px; width: 22px; height: 22px;
  border-radius: 50%; border: 3px solid var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 10px;
}
.timeline-card {
  background: var(--white); border: 1px solid var(--gray-border); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow); transition: transform var(--transition);
}
.timeline-card:hover { transform: translateY(-1px); }
.timeline-card .exp-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.timeline-card .exp-title { font-size: 17px; font-weight: 700; color: var(--gray-text); }
.timeline-card .exp-type-badge {
  padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.timeline-card .exp-meta { font-size: 13px; color: var(--gray-light); margin-bottom: 6px; display: flex; gap: 16px; flex-wrap: wrap; }
.timeline-card .exp-description { font-size: 14px; line-height: 1.5; color: var(--gray-text); margin-bottom: 8px; }
.timeline-card .exp-actions { display: flex; gap: 8px; }

/* Experience type colors (3 types) */
.exp-type-badge.stage { background: rgba(59,130,246,0.1); color: #3B82F6; }
.exp-type-badge.echange { background: rgba(245,158,11,0.1); color: #F59E0B; }
.exp-type-badge.master { background: rgba(93,58,135,0.1); color: #5D3A87; }

.timeline-dot.stage { background: #3B82F6; box-shadow: 0 0 0 2px #3B82F6; }
.timeline-dot.echange { background: #F59E0B; box-shadow: 0 0 0 2px #F59E0B; }
.timeline-dot.master { background: #5D3A87; box-shadow: 0 0 0 2px #5D3A87; }

/* Dynamic fields in experience modal */
.exp-dynamic-fields { margin-bottom: 0; }

/* Master multi-chips */
.master-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.master-chips .master-chip-item {
  font-size: 12px;
  padding: 5px 12px;
  cursor: pointer;
  user-select: none;
  border: 1px solid var(--gray-border);
  border-radius: 20px;
  background: var(--white);
  color: var(--gray-text);
  transition: all 0.15s ease;
}
.master-chips .master-chip-item:hover { border-color: var(--violet); color: var(--violet); }
.master-chips .master-chip-item.active {
  background: var(--violet);
  color: var(--white);
  border-color: var(--violet);
}

/* Profile Timeline — Gantt horizontal */
.profile-timeline {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-bg);
}
.profile-timeline:empty { display: none; }
.profile-timeline h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--gray-text);
}

/* Conteneur principal du Gantt */
.tl-gantt {
  position: relative;
  width: 100%;
  min-height: 40px;
  overflow: visible;
}

/* Axe horizontal */
.tl-axis {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gray-border);
  z-index: 1;
}

/* Repères temporels (années) */
.tl-year-mark {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  z-index: 2;
}
.tl-year-tick {
  width: 1px;
  height: 7px;
  background: var(--gray-border);
}
.tl-year-label {
  font-size: 10px;
  color: var(--gray-light);
  margin-top: 2px;
  white-space: nowrap;
}
.tl-year-minor .tl-year-tick { height: 4px; }
.tl-year-minor .tl-year-label { font-size: 9px; opacity: 0.6; }

/* Barres années scolaires ESSCA */
.tl-bar-annee {
  background: #C8102E !important;
  opacity: 0.85;
}

/* Barres d'expériences */
.tl-bar {
  position: absolute;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  overflow: hidden;
  cursor: default;
  transition: filter 0.15s ease, transform 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  z-index: 3;
}
.tl-bar:hover {
  filter: brightness(1.1);
  transform: scaleY(1.08);
  z-index: 10;
}
.tl-bar.future {
  opacity: 0.55;
  border: 2px dashed rgba(0,0,0,0.2);
  box-shadow: none;
}
.tl-bar.current {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.8), 0 0 0 4px currentColor;
}
.tl-bar-label {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* City change alert */
.city-alert {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 10px;
  font-size: 13px;
  color: var(--gray-text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.city-alert-icon { font-size: 18px; flex-shrink: 0; }
.city-alert-text strong { color: var(--violet); }
.city-alert-actions { margin-top: 8px; display: flex; gap: 8px; }
.city-alert-actions .btn { font-size: 12px; padding: 4px 12px; }

/* ── Événements & Formations recommandés ── */
.events-section { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--gray-border); }
.events-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px;
}
.event-card {
  background: var(--white); border: 1px solid var(--gray-border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.event-icon { font-size: 28px; line-height: 1; }
.event-tag {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em; width: fit-content;
}
.event-tag-school  { background: #f0ebff; color: #7c3aed; }
.event-tag-salon   { background: #e8f4fd; color: #2980b9; }
.event-tag-formation { background: #fef9e7; color: #d68910; }
.event-tag-tutorat { background: #e8f8f5; color: #1abc9c; }
.event-title {
  font-size: 15px; font-weight: 700; color: var(--gray-text); line-height: 1.4; margin: 0;
}
.event-desc {
  font-size: 13px; line-height: 1.6; color: var(--gray-light); flex: 1; margin: 0;
}
.event-btn { margin-top: 4px; font-size: 13px; }
@media (max-width: 768px) {
  .events-grid { grid-template-columns: 1fr; }
}

/* Statut parcours badges */
.exp-statut-badge {
  padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 500; white-space: nowrap;
}
.exp-statut-badge.statut-a_venir { background: rgba(59,130,246,0.1); color: #3B82F6; }
.exp-statut-badge.statut-en_cours { background: rgba(16,185,129,0.1); color: #10B981; }
.exp-statut-badge.statut-termine { background: rgba(156,163,175,0.15); color: #9CA3AF; }
.exp-statut-badge.statut-inconnu { display: none; }
.exp-statut-badge.exp-badge-type-stage { background: rgba(99,102,241,0.08); color: #6366F1; }

/* ═══════ WIZARD ═══════ */
.wizard-header {
  margin-bottom: 28px;
}
.wizard-step-label {
  font-size: 14px; font-weight: 700; color: var(--violet);
  margin: 0 0 10px;
}
.wizard-progress {
  height: 6px; background: var(--gray-bg); border-radius: 3px; overflow: hidden;
}
.wizard-progress-fill {
  height: 100%; background: var(--violet); border-radius: 3px;
  transition: width 0.3s ease;
}
.wizard-viewport {
  overflow: hidden; position: relative;
}
.wizard-track {
  display: flex; transition: transform 0.3s ease;
}
.wizard-step {
  width: 100%; min-width: 100%; flex: 0 0 100%;
  box-sizing: border-box;
}
.wizard-nav {
  display: flex; align-items: center; gap: 12px;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--gray-bg);
}
.wizard-nav-spacer { flex: 1; }

/* QUESTIONNAIRE SECTIONS */
.q-section {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.q-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.q-section-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--violet);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; flex-shrink: 0;
}
.q-section-title { font-size: 16px; font-weight: 600; margin: 0; color: var(--gray-text); }
.q-section-sub { font-size: 12px; color: var(--gray-light); margin: 2px 0 0; }

.q-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.q-chip {
  padding: 6px 14px; border-radius: 99px;
  border: 1.5px solid var(--gray-bg);
  background: transparent; font-size: 13px;
  color: var(--gray-light); cursor: pointer;
  transition: all 0.15s; user-select: none;
}
.q-chip:hover { border-color: var(--violet); color: var(--violet); }
.q-chip.active {
  background: rgba(93,58,135,0.1);
  border-color: var(--violet); color: var(--violet); font-weight: 500;
}
.q-chip-danger:hover { border-color: #e74c3c; color: #e74c3c; }
.q-chip-danger.active {
  background: rgba(231,76,60,0.08);
  border-color: #e74c3c; color: #e74c3c;
}

.q-radios { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.q-radio {
  padding: 12px 16px; border-radius: 12px;
  border: 1.5px solid var(--gray-bg);
  cursor: pointer; transition: all 0.15s;
}
.q-radio:hover { border-color: var(--violet); }
.q-radio.active { border-color: var(--violet); background: rgba(93,58,135,0.06); }
.q-radio-title { font-size: 14px; font-weight: 500; margin: 0; color: var(--gray-text); }
.q-radio.active .q-radio-title { color: var(--violet); }
.q-radio-desc { font-size: 12px; color: var(--gray-light); margin: 3px 0 0; }
.q-hint { font-size: 11px; color: var(--gray-light); margin: 4px 0 0; }

/* ── Company tag input ── */
.company-tags-input {
  position: relative;
  border: 1px solid var(--gray-border); border-radius: var(--radius);
  background: var(--white); padding: 8px 12px; cursor: text;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 48px;
}
.company-tags-input:focus-within {
  border-color: var(--violet); box-shadow: 0 0 0 3px rgba(93, 58, 135, 0.1);
}
.company-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.company-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(93, 58, 135, 0.1); color: var(--violet);
  border-radius: 20px; padding: 3px 10px; font-size: 13px; font-weight: 500;
}
.company-tag button {
  background: none; border: none; cursor: pointer; color: var(--violet);
  font-size: 14px; line-height: 1; padding: 0; opacity: 0.6;
}
.company-tag button:hover { opacity: 1; }
#q-entreprises-input {
  border: none; outline: none; font-size: 15px; font-family: inherit;
  color: var(--gray-text); background: transparent; width: 100%; padding: 2px 0;
}
.company-suggestions {
  display: none; position: absolute; left: -1px; right: -1px; top: 100%;
  background: var(--white); border: 1px solid var(--gray-border);
  border-top: none; border-radius: 0 0 var(--radius) var(--radius);
  max-height: 200px; overflow-y: auto; z-index: 50;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.company-suggestions.open { display: block; }
.company-suggestion {
  padding: 10px 14px; font-size: 14px; cursor: pointer; color: var(--gray-text);
}
.company-suggestion:hover, .company-suggestion.active { background: rgba(93, 58, 135, 0.06); color: var(--violet); }

/* Inline radios (annee, experience_type) — horizontal compact */
.q-radios-inline { flex-direction: row; flex-wrap: wrap; }
.q-radios-inline .q-radio { padding: 8px 16px; }

/* Wide chip for indecis toggle */
.q-chip-wide { width: 100%; text-align: center; }

/* LINKEDIN ROW (removed) */

/* CARTE ÉTUDIANT */
.student-card {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-dark) 100%);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  color: #fff;
}
.student-card-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.student-card-identity { display: flex; flex-direction: column; gap: 10px; }
.student-card-name { font-size: 20px; font-weight: 700; letter-spacing: -0.2px; }
.student-card-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.student-card-badge {
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
}
.student-card-badge-empty {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
  font-weight: 400;
}
.student-card .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  background: transparent;
  white-space: nowrap;
  flex-shrink: 0;
}
.student-card .btn-outline:hover { background: rgba(255,255,255,0.1); }
.student-card-edit { padding-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.sc-edit-fields { display: flex; flex-direction: column; gap: 14px; }
.sc-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7); margin-bottom: 8px; display: block; }
.sc-radios { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-radio {
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer;
  background: rgba(255,255,255,0.15); color: #fff;
  border: 1px solid rgba(255,255,255,0.25); transition: background 0.15s;
}
.sc-radio:hover { background: rgba(255,255,255,0.25); }
.sc-radio.active { background: #fff; color: var(--violet-dark); border-color: #fff; }
.sc-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-chip {
  padding: 6px 14px; border-radius: 20px; font-size: 13px; cursor: pointer;
  background: rgba(255,255,255,0.15); color: #fff;
  border: 1px solid rgba(255,255,255,0.25); transition: background 0.15s;
}
.sc-chip:hover { background: rgba(255,255,255,0.25); }
.sc-chip.active { background: #fff; color: var(--violet-dark); border-color: #fff; }
.sc-actions { display: flex; gap: 10px; }
.sc-actions .btn-primary { background: #fff; color: var(--violet-dark); }
.sc-actions .btn-primary:hover { background: rgba(255,255,255,0.9); }

/* Note profil dans le questionnaire */
.q-annee-profile-note {
  font-size: 14px;
  color: var(--violet);
  font-weight: 600;
  padding: 8px 14px;
  background: #f0ebf8;
  border-radius: 10px;
  margin-bottom: 8px;
  display: inline-block;
}

/* EXPERIENCES 3 COLONNES */
.experiences-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 16px -20px 0;
  padding: 0 8px;
}

.exp-column {
  background: var(--white);
  border: 1px solid var(--gray-bg);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
}

.exp-column-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-text);
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--violet);
  display: inline-block;
}

.exp-column-list { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.exp-column-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}
.exp-column-actions .btn {
  flex: 1;
  font-size: 12px;
}

.edit-picker {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 6px;
}

.edit-picker-item {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-bg);
  transition: background var(--transition);
}
.edit-picker-item:last-child { border-bottom: none; }
.edit-picker-item:hover { background: var(--gray-bg); color: var(--violet); }

.edit-picker-empty {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--gray-light);
  text-align: center;
}

.exp-column-add {
  width: 100%;
  margin-top: auto;
  font-size: 12px;
}

.exp-col-card {
  background: var(--gray-bg);
  border-radius: 10px;
  padding: 10px 12px;
}

.exp-col-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.exp-col-title { font-size: 13px; font-weight: 600; color: var(--gray-text); flex: 1; min-width: 0; word-break: break-word; }


.exp-col-meta { font-size: 11px; color: var(--gray-light); margin-bottom: 2px; }
.exp-col-date { font-size: 11px; color: var(--gray-light); margin-bottom: 4px; }
.exp-col-type-stage { font-size: 10px; font-weight: 600; color: var(--primary); background: rgba(99,102,241,0.08); display: inline-block; padding: 1px 7px; border-radius: 8px; margin-bottom: 4px; }
.exp-col-missions { font-size: 11px; color: var(--gray-light); line-height: 1.4; margin-bottom: 6px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.exp-col-card-clickable { cursor: pointer; transition: background 0.15s; }
.exp-col-card-clickable:hover { background: rgba(0,0,0,0.03); }
.exp-empty { font-size: 12px; color: var(--gray-light); text-align: center; padding: 20px 0; }

/* MODAL PARCOURS */
.modal-parcours-content {
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.parcours-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-bg);
}

.parcours-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--violet);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.parcours-name {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--gray-text);
}

.parcours-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.parcours-email {
  font-size: 13px;
  color: var(--violet);
  text-decoration: none;
}
.parcours-email:hover { text-decoration: underline; }

.parcours-linkedin {
  font-size: 12px;
  color: white;
  background: #0A66C2;
  padding: 3px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}
.parcours-linkedin:hover { opacity: 0.85; }

.parcours-exp-date {
  font-size: 11px;
  color: var(--gray-light);
  margin-bottom: 6px;
}

.parcours-section { margin-bottom: 24px; }

.parcours-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-text);
  margin: 0 0 12px;
}

.parcours-exp-card {
  background: var(--gray-bg);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
.parcours-exp-highlighted {
  background: linear-gradient(135deg, #f5f0ff 0%, #ede7f6 100%);
  border: 2px solid var(--violet);
  box-shadow: 0 0 0 3px rgba(93, 58, 135, 0.1);
}
.parcours-match-badge {
  display: inline-block;
  background: var(--violet);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.parcours-exp-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-text);
  margin-bottom: 4px;
}

.parcours-exp-meta {
  font-size: 12px;
  color: var(--violet);
  margin-bottom: 8px;
  font-weight: 500;
}

.parcours-exp-missions {
  font-size: 12px;
  color: var(--gray-light);
  line-height: 1.6;
  white-space: pre-line;
}

.parcours-loading {
  text-align: center;
  padding: 40px;
  color: var(--gray-light);
  font-size: 14px;
}

/* Contact card cliquable */
.contact-card { cursor: pointer; }
.contact-card:hover { transform: translateY(-2px); }

/* ═══════ RESPONSIVE — TABLET (≤ 768px) ═══════ */
@media (max-width: 768px) {
  /* ── Tab bars ── */
  .tab-bar-desktop { display: none; }
  .tab-bar-mobile {
    display: flex; justify-content: space-around; background: var(--white);
    border-top: 1px solid var(--gray-border); padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  }
  .tab-btn-mobile {
    background: none; border: none; display: flex; flex-direction: column; align-items: center;
    font-size: 10px; font-weight: 600; color: var(--gray-light); cursor: pointer; gap: 2px;
    padding: 4px 8px; min-width: 44px; min-height: 44px; justify-content: center;
  }
  .tab-btn-mobile.active { color: var(--violet); }

  /* ── Topbar ── */
  .topbar { padding: 12px 16px; gap: 8px; }
  .topbar-right { gap: 8px; }
  #user-info { display: none; }
  #btn-school-dashboard span,
  #btn-school-dashboard { font-size: 12px; padding: 6px 10px; }
  #btn-logout { font-size: 12px; padding: 6px 12px; }

  /* ── Container — padding-bottom for mobile tab bar ── */
  .tab-container { padding-bottom: 80px !important; }
  .container { padding: 20px 16px; }

  /* ── Auth ── */
  .auth-container { padding: 32px 24px; }
  .logo h1 { font-size: 36px; }
  .subtitle { font-size: 14px; margin-bottom: 24px; }

  /* ── Section headers ── */
  .section-header { gap: 8px; }
  .section-header h2 { font-size: 22px; }
  .results-header h1, .historique-header h1 { font-size: 28px; }
  .results-header p, .historique-header p { font-size: 15px; }

  /* ── Grids → single column ── */
  .form-grid, .profile-display { grid-template-columns: 1fr; }
  .experiences-columns { grid-template-columns: 1fr; gap: 16px; margin: 16px 0 0; padding: 0; }
  .contacts-grid { grid-template-columns: 1fr; gap: 12px; }
  .input-row { flex-direction: column; gap: 0; }

  /* ── Buttons ── */
  .form-actions { flex-direction: column; }
  .action-buttons { flex-direction: column; }
  .action-buttons .btn-lg { width: 100%; }
  .results-actions, .historique-actions { flex-direction: column; align-items: stretch; }

  /* ── Contact cards ── */
  .contact-card { padding: 20px; }
  .contact-card .student-name { font-size: 18px; }
  .contact-card .company { font-size: 15px; }
  .contact-card .card-actions .btn { padding: 10px 12px; font-size: 13px; }

  /* ── Modal — near full-screen on mobile ── */
  .modal { padding: 12px; align-items: flex-end; }
  .modal-content {
    padding: 28px 20px; border-radius: 20px 20px 0 0;
    max-height: 92vh; max-width: 100%; width: 100%;
  }
  .modal-parcours-content { max-width: 100%; }

  /* ── Historique ── */
  .historique-item { flex-direction: column; align-items: flex-start; padding: 16px; }
  .historique-info { min-width: 0; width: 100%; }
  .historique-feedback { width: 100%; justify-content: flex-start; }

  /* ── Student card ── */
  .student-card { padding: 16px; }
  .student-card-view { flex-direction: column; align-items: flex-start; gap: 12px; }
  .student-card-name { font-size: 18px; }
  .student-card-badges { gap: 6px; }
  .student-card .btn-outline { align-self: flex-start; }
  .sc-radios, .sc-chips { gap: 6px; }
  .sc-radio, .sc-chip { padding: 6px 12px; font-size: 12px; }

  /* ── Experience columns ── */
  .exp-column { min-height: auto; padding: 16px; }

  /* ── Timeline Gantt — horizontal scroll ── */
  .profile-timeline { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tl-gantt { min-width: 500px; }

  /* ── Wizard ── */
  .wizard-nav { flex-wrap: wrap; gap: 8px; }
  .wizard-nav .btn { flex: 1; min-width: 120px; }
  #btn-cancel-recherche { order: 3; flex-basis: 100%; }

  /* ── Questionnaire chips ── */
  .q-chip { padding: 8px 14px; font-size: 13px; }
  .q-radio { padding: 10px 14px; }

  /* ── Category tabs ── */
  .contacts-category-tabs { gap: 0; margin-bottom: 16px; }
  .cat-tab { padding: 10px 14px; font-size: 13px; }

  /* ── Parcours modal ── */
  .parcours-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .parcours-links { gap: 8px; }

  /* ── Suggestions banner ── */
  .suggestions-banner-box { padding: 16px; }
  .suggestion-card { flex-direction: column; }
  .suggestion-card-actions { flex-direction: row; }

  /* ── City alert ── */
  .city-alert { flex-direction: column; gap: 8px; }
  .city-alert-actions { justify-content: flex-start; }
}

/* ═══════ RESPONSIVE — SMALL MOBILE (≤ 480px) ═══════ */
@media (max-width: 480px) {
  .container { padding: 16px 12px; }
  .tab-container { padding-bottom: 76px !important; }

  /* ── Auth ── */
  .auth-container { padding: 28px 18px; border-radius: 16px; }
  .logo h1 { font-size: 32px; }
  .auth-form h2 { font-size: 20px; }

  /* ── Buttons ── */
  .btn { padding: 11px 20px; font-size: 15px; }
  .btn-sm { padding: 8px 14px; font-size: 13px; }
  .radio-group { flex-direction: column; }

  /* ── Contact cards ── */
  .contact-card { padding: 16px; }
  .contact-card .student-name { font-size: 16px; }
  .contact-card .card-actions { flex-direction: column; }
  .contact-card .card-actions .btn { width: 100%; }

  /* ── Wizard ── */
  .q-section-header { gap: 10px; }
  .q-section-num { width: 28px; height: 28px; font-size: 12px; }
  .q-section-title { font-size: 15px; }
  .q-radios-inline .q-radio { padding: 8px 12px; }
  .q-radios-inline .q-radio .q-radio-title { font-size: 13px; }
  .wizard-step-label { font-size: 13px; }

  /* ── Section headers ── */
  .section-header h2 { font-size: 20px; }
  .results-header h1, .historique-header h1 { font-size: 24px; }

  /* ── Inputs — prevent iOS zoom (font-size ≥ 16px) ── */
  .input-group input, .input-group textarea, .input-group select { font-size: 16px; }

  /* ── Modals ── */
  .modal { padding: 0; }
  .modal-content {
    border-radius: 16px 16px 0 0; padding: 24px 16px;
    max-height: 95vh;
  }
  .modal-content h2 { font-size: 20px; }
  .modal-close { top: 12px; right: 14px; font-size: 24px; }

  /* ── Star rating ── */
  .star-rating .star { font-size: 28px; }

  /* ── Historique ── */
  .historique-item { padding: 14px; gap: 8px; }
  .historique-info .student-name { font-size: 15px; }

  /* ── Experience columns ── */
  .exp-column { padding: 14px; gap: 10px; }
  .exp-column-title { font-size: 13px; }
  .exp-col-title { font-size: 12px; }
  .exp-column-actions .btn { font-size: 11px; padding: 6px 10px; }

  /* ── Events grid ── */
  .event-card { padding: 18px; }
  .event-title { font-size: 14px; }

  /* ── Category tabs scroll ── */
  .contacts-category-tabs { margin-left: -12px; margin-right: -12px; padding: 0 12px; }
  .cat-tab { padding: 10px 12px; font-size: 12px; }
}

/* ═══════ ONBOARDING WELCOME PAGE ═══════ */
.onboarding-container {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
  background: linear-gradient(135deg, #f5f0ff 0%, #ede7f6 50%, #e8eaf6 100%);
}
.onboarding-card {
  background: var(--white); border-radius: 24px; padding: 56px 48px;
  max-width: 560px; width: 100%; text-align: center;
  box-shadow: 0 20px 60px rgba(93,58,135,0.12);
}
.onboarding-title {
  font-size: 36px; font-weight: 800; color: var(--violet);
  margin-bottom: 8px;
}
.onboarding-subtitle {
  font-size: 16px; color: var(--gray-light); margin-bottom: 40px; line-height: 1.5;
}
.onboarding-steps {
  display: flex; flex-direction: column; align-items: stretch;
  text-align: left; margin-bottom: 40px;
}
.onboarding-step {
  display: flex; align-items: flex-start; gap: 16px; padding: 16px 0;
}
.onboarding-step-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--violet); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
}
.onboarding-step-content h3 {
  font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px;
}
.onboarding-step-content p {
  font-size: 14px; color: var(--gray-light); line-height: 1.4;
}
.onboarding-step-connector {
  width: 2px; height: 20px; background: var(--violet);
  opacity: 0.3; margin-left: 21px;
}
.onboarding-cta {
  width: 100%; padding: 16px 32px; font-size: 18px;
}

/* ═══════ TOAST NOTIFICATIONS ═══════ */
.toast-container {
  position: fixed; top: 72px; left: 50%; transform: translateX(-50%);
  z-index: 9999; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.toast {
  background: #1e1e2e; color: #fff;
  padding: 12px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 500; line-height: 1.4;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  max-width: 480px; text-align: center;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.toast.toast-visible {
  opacity: 1; transform: translateY(0);
}
.toast.toast-hiding {
  opacity: 0; transform: translateY(-8px);
}
@media (max-width: 600px) {
  .toast-container { top: auto; bottom: 80px; }
  .toast { font-size: 13px; max-width: calc(100vw - 32px); }
}

/* Contacts tab highlight */
.tab-btn.highlight-tab {
  animation: pulse-tab 2s ease-in-out infinite;
}
@keyframes pulse-tab {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 4px rgba(52,199,89,0.4); }
}

@media (max-width: 768px) {
  .onboarding-card { padding: 32px 20px; }
  .onboarding-title { font-size: 26px; }
  .onboarding-step { gap: 12px; padding: 12px 0; }
  .onboarding-step-icon { width: 38px; height: 38px; font-size: 16px; }
  .onboarding-cta { padding: 14px 28px; font-size: 16px; }
}
@media (max-width: 480px) {
  .onboarding-card { padding: 24px 16px; border-radius: 16px; }
  .onboarding-title { font-size: 22px; }
  .onboarding-subtitle { font-size: 14px; }
}

/* ═══════ SUGGESTIONS BANNER ═══════ */
.suggestions-banner-box {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid #4f46e5;
  border-radius: 14px;
  padding: 20px 24px 16px;
  margin-bottom: 24px;
}
.suggestions-banner-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.suggestions-banner-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}
.suggestions-banner-title {
  font-size: 16px;
  font-weight: 700;
  color: #e0e0ff;
  margin-bottom: 4px;
}
.suggestions-banner-sub {
  font-size: 13px;
  color: #9090b0;
  line-height: 1.5;
}
.suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.suggestion-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.suggestion-card-body {
  flex: 1;
  min-width: 0;
}
.suggestion-card-type {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #818cf8;
  margin-bottom: 4px;
}
.suggestion-card-company {
  font-size: 15px;
  font-weight: 700;
  color: #f0f0ff;
  margin-bottom: 3px;
}
.suggestion-card-meta {
  font-size: 12px;
  color: #9090b0;
  margin-bottom: 2px;
}
.suggestion-card-location {
  font-size: 12px;
  color: #9090b0;
  margin-bottom: 4px;
}
.suggestion-card-mission {
  font-size: 12px;
  color: #7070a0;
  line-height: 1.5;
  margin-top: 6px;
}
.suggestion-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.btn-suggestion-oui {
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
  color: #fff !important;
  white-space: nowrap;
}
.btn-suggestion-oui:hover {
  background: #4338ca !important;
}
.btn-suggestion-non {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .suggestion-card { flex-direction: column; }
  .suggestion-card-actions { flex-direction: row; }
}

/* ═══════════════════════════════════════════════════════════════
   ONBOARDING FLOW — 4 étapes guidées
   ═══════════════════════════════════════════════════════════════ */
#page-onboarding {
  background: var(--gray-bg);
  align-items: flex-start;
  justify-content: center;
}

.ob-wrapper {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── En-tête : logo + progression ── */
.ob-header { margin-bottom: 28px; }

.ob-logo {
  font-size: 26px;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: 20px;
  text-align: center;
}

.ob-step-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ob-step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-border);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: color var(--transition);
}

.ob-step-label.ob-step-active { color: var(--violet); }
.ob-step-label.ob-step-done   { color: var(--success); }

.ob-bar {
  height: 4px;
  background: var(--gray-border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.ob-bar-fill {
  height: 100%;
  background: var(--violet);
  border-radius: 2px;
  width: 25%;
  transition: width 0.4s ease;
}

.ob-counter {
  font-size: 12px;
  color: var(--gray-light);
  text-align: right;
}

/* ── Carte de contenu ── */
.ob-content {
  flex: 1;
  background: var(--white);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.ob-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-text);
  letter-spacing: -0.3px;
  margin-bottom: 22px;
}

/* ── Chips ── */
.ob-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

.ob-chip {
  padding: 9px 20px;
  border: 1.5px solid var(--gray-border);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-text);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.ob-chip:hover {
  border-color: var(--violet);
  color: var(--violet);
}

.ob-chip.active {
  background: var(--violet);
  border-color: var(--violet);
  color: var(--white);
}

/* ── Sous-questions conditionnelles ── */
.ob-sub {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-border);
}

.ob-sub-label {
  font-size: 15px;
  color: var(--gray-text);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ── Étape 2 : expériences détectées ── */
.ob-add-exp-row { margin-top: 20px; }

.ob-loading {
  color: var(--gray-light);
  font-size: 14px;
  padding: 16px 0;
}

.ob-exp-intro {
  font-size: 14px;
  color: var(--gray-light);
  margin-bottom: 16px;
  line-height: 1.5;
}

.ob-exp-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.ob-exp-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.ob-exp-card:has(.ob-exp-check:checked) {
  border-color: var(--violet);
  background: rgba(93, 58, 135, 0.04);
}

.ob-exp-check {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--violet);
  cursor: pointer;
}

.ob-exp-card-body { flex: 1; }

.ob-exp-card-type {
  font-size: 11px;
  font-weight: 700;
  color: var(--violet);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.ob-exp-card-company {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-text);
  margin-bottom: 3px;
}

.ob-exp-card-meta,
.ob-exp-card-location {
  font-size: 13px;
  color: var(--gray-light);
  margin-bottom: 2px;
}

.ob-exp-card-mission {
  font-size: 13px;
  color: var(--gray-light);
  margin-top: 4px;
  font-style: italic;
}

/* ── Étape 3 : formulaire échange ── */
.ob-echange-form {
  display: flex;
  flex-direction: column;
}

/* ── Navigation ── */
.ob-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.ob-nav .btn-primary {
  width: 100%;
  max-width: 320px;
}

.ob-skip {
  font-size: 14px;
  color: var(--gray-light);
  text-decoration: none;
}

.ob-skip:hover { color: var(--violet); }

/* ── Responsive ── */
@media (max-width: 480px) {
  .ob-wrapper  { padding: 18px 16px 36px; }
  .ob-content  { padding: 24px 18px; }
  .ob-title    { font-size: 19px; }
  .ob-chip     { padding: 8px 16px; font-size: 14px; }
}
