@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --violet: #6C47FF;
  --violet-dark: #5535DD;
  --violet-light: #EDE9FF;
  --coral: #FF6B6B;
  --coral-light: #FFF0F0;
  --bg: #F7F6FF;
  --white: #FFFFFF;
  --text: #12062E;
  --muted: #6B7280;
  --border: #E8E3FF;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 4px 24px rgba(108,71,255,0.08);
  --shadow-hover: 0 8px 32px rgba(108,71,255,0.16);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img, svg { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--violet);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--violet-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108,71,255,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--violet);
  border: 2px solid var(--violet);
}
.btn-outline:hover {
  background: var(--violet-light);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--violet);
}
.btn-white:hover {
  background: var(--violet-light);
  transform: translateY(-2px);
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
}
.btn-coral:hover {
  background: #e85a5a;
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.badge-violet { background: var(--violet-light); color: var(--violet); }
.badge-coral { background: var(--coral-light); color: var(--coral); }
.badge-green { background: #E8F5E9; color: #2E7D32; }
.badge-orange { background: #FFF3E0; color: #E65100; }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--violet);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}
.section-title.white { color: var(--white); }
.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}
.section-sub.white { color: rgba(255,255,255,0.8); }

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 32px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.navbar-logo img { height: 36px; width: auto; }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navbar-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s;
}
.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--violet);
  background: var(--violet-light);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--white);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s;
}
.mobile-nav a:hover { color: var(--violet); background: var(--violet-light); }
.mobile-nav .divider { height: 1px; background: var(--border); margin: 8px 0; }
.mobile-nav .btn { width: 100%; justify-content: center; }

/* ── FOOTER ── */
.footer {
  background: #12062E;
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .footer-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }

.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s;
}
.footer-social a:hover { background: var(--violet); }

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .tagline {
  font-style: italic;
  color: rgba(108,71,255,0.7);
  font-weight: 500;
}

/* ── HERO GENERIC ── */
.hero-sm {
  background: linear-gradient(135deg, #12062E 0%, #1a0845 100%);
  padding: 60px 0;
  color: var(--white);
}
.hero-sm h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 12px; }
.hero-sm p { font-size: 17px; color: rgba(255,255,255,0.75); }

/* ── SEARCH BAR ── */
.search-bar {
  display: flex;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
}

.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border-right: 1px solid var(--border);
}
.search-field:last-of-type { border-right: none; }
.search-field .icon { font-size: 18px; flex-shrink: 0; }
.search-field input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text);
  background: transparent;
  padding: 18px 0;
}
.search-field input::placeholder { color: var(--muted); }

.search-bar .btn { border-radius: 0 13px 13px 0; padding: 18px 28px; font-size: 15px; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
  border: 1px solid var(--border);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ── STATS STRIP ── */
.stats-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.stat-item strong {
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
}
.stat-sep { color: rgba(255,255,255,0.25); font-size: 18px; }

/* ── OFFRE CARD ── */
.offre-card {
  padding: 24px;
  cursor: pointer;
}
.offre-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.offre-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--violet-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.offre-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.offre-company { font-size: 14px; color: var(--muted); }
.offre-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.offre-tag {
  background: var(--violet-light);
  color: var(--violet);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}
.offre-tag.coral { background: var(--coral-light); color: var(--coral); }
.offre-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.offre-salary { font-weight: 700; color: var(--text); font-size: 15px; }
.offre-date { font-size: 12px; color: var(--muted); }

/* ── FORMATION CARD (shared) ── */
.formation-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.formation-emoji { font-size: 40px; line-height: 1; }
.formation-title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.formation-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.formation-meta .sep { color: var(--border); }
.formation-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.formation-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.formation-price { font-weight: 700; font-size: 15px; color: #2E7D32; }
.formation-learners { font-size: 12px; color: var(--muted); }
.formation-actions { display: flex; gap: 8px; margin-top: 4px; }
.formation-actions .btn { flex: 1; justify-content: center; }

/* ── ACCORDION ── */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s;
}
.accordion-trigger:hover { color: var(--violet); }
.accordion-trigger .chevron {
  transition: transform 0.3s;
  color: var(--violet);
  flex-shrink: 0;
}
.accordion-item.open .chevron { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-body-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── TESTIMONIAL CARD ── */
.testimonial-card {
  padding: 28px;
}
.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-text::before { content: '"'; color: var(--violet); font-size: 28px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--violet-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.testimonial-name { font-weight: 700; font-size: 14px; }
.testimonial-role { font-size: 13px; color: var(--muted); }
.testimonial-stars { color: #F59E0B; font-size: 14px; margin-bottom: 4px; }

/* ── GRID LAYOUTS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── TABS ── */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.tab-btn {
  padding: 10px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn:hover { border-color: var(--violet); color: var(--violet); }
.tab-btn.active {
  background: var(--violet);
  border-color: var(--violet);
  color: var(--white);
}

/* ── NOTIFICATION ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 320px;
  box-shadow: var(--shadow-hover);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { background: #2E7D32; }
.toast-error { background: #C62828; }
.toast.success { background: #2E7D32; }
.toast.error { background: #C62828; }

/* ── LOADING SKELETON ── */
.skeleton {
  background: linear-gradient(90deg, #ede9ff 25%, #ddd6ff 50%, #ede9ff 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
}
.skeleton-title {
  height: 20px;
  width: 65%;
  margin-bottom: 10px;
}
.skeleton-line {
  height: 14px;
  width: 50%;
  margin-bottom: 8px;
}
.skeleton-text {
  height: 13px;
  width: 90%;
  margin-bottom: 6px;
}
.skeleton-text.short {
  width: 60%;
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 15px; max-width: 360px; margin: 0 auto 20px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .navbar-nav, .navbar-actions { display: none; }
  .hamburger { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .search-bar { flex-direction: column; border-radius: 14px; }
  .search-field { border-right: none; border-bottom: 1px solid var(--border); }
  .search-field:last-of-type { border-bottom: none; }
  .search-bar .btn { border-radius: 0 0 13px 13px; padding: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-strip { gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
}
