/* ============================================
   Ambition Outre-Mer — Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --accent: #06b6d4;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

/* --- Reset / Normalize --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-bottom: 1px solid #e2e8f0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.navbar__logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.navbar__logo-text {
  color: var(--text);
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__actions {
  display: flex;
  gap: 8px;
}

.navbar__mobile-menu {
  display: none;
}

/* --- Horizontal nav links --- */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar__nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}

.navbar__nav-link:hover,
.navbar__nav-link.navbar__nav-link--active {
  color: var(--primary);
  background: #f0f9ff;
}

.navbar__nav .navbar__nav-link--dashboard:hover,
.navbar__nav .navbar__nav-link--dashboard.navbar__nav-link--active,
.navbar__nav .navbar__nav-link--dashboard.navbar__nav-link--active:hover {
  color: #78350f;
  background: #fef3c7;
}

/* --- Dropdown menu (always behind hamburger) --- */
.menu-wrapper {
  position: relative;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.menu-toggle:hover {
  background: #f0f9ff;
}

.menu-toggle__icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle__label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
}

.menu-toggle__line {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid #e2e8f0;
  min-width: 240px;
  padding: 12px 0;
  z-index: 1001;
}

.dropdown-menu.active {
  display: block;
}

.dropdown-menu__links {
  padding: 0 8px;
  margin-bottom: 8px;
}

.dropdown-menu__links li a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.dropdown-menu__links li a:hover,
.dropdown-menu__links li a.dropdown-menu__link--active {
  color: var(--primary);
  background: #f0f9ff;
}

.dropdown-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 16px 4px;
  border-top: 1px solid #e2e8f0;
  margin-top: 4px;
}

/* Navbar avatar (logged-in state) */
.navbar-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid #ffffff;
  outline: 2px solid #f59e0b;
  transition: box-shadow var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.navbar-avatar:hover {
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.28);
  transform: translateY(-1px);
}

.navbar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Avatar Dropdown */
.avatar-wrapper {
  position: relative;
}

.avatar-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid #e2e8f0;
  min-width: 180px;
  z-index: 1001;
  padding: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
  pointer-events: none;
}

/* Invisible bridge to keep hover active between avatar and dropdown */
.avatar-dropdown::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}

.avatar-wrapper:hover .avatar-dropdown {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.avatar-dropdown ul {
  list-style: none;
}

.avatar-dropdown ul a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.avatar-dropdown ul a:hover {
  color: var(--primary);
  background: #f0f9ff;
}

.avatar-dropdown .avatar-dropdown__logout {
  color: #dc2626; /* red-600 */
}

.avatar-dropdown .avatar-dropdown__logout:hover {
  background: #fee2e2; /* red-100 */
  color: #991b1b; /* red-800 */
}

/* Account page */
.account-page {
  padding: 40px 0 64px;
  background: #f8fafc;
}

@media (max-width: 768px) {
  .account-page {
    padding: 24px 0 40px;
  }
}

.account-dashboard {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(220px, 280px);
  gap: 24px;
  align-items: stretch;
}

.account-sidebar,
.account-main-panel,
.account-support-panel {
  min-width: 0;
}

.account-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.account-profile-panel,
.account-main-panel,
.account-support-panel {
  background: var(--card-bg);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.account-profile-panel {
  min-height: 100%;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  text-align: center;
}

.account-profile-panel__top,
.account-profile-panel__actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.account-profile-panel__top {
  gap: 18px;
}

.account-profile-panel__actions {
  gap: 12px;
}

.account-avatar {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  outline: 4px solid #f59e0b;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

.account-avatar--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #16a34a);
  color: #ffffff;
  font-size: 2.6rem;
  font-weight: 700;
}

.account-role {
  margin: 0 0 6px;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-name {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  overflow-wrap: anywhere;
}

.account-email {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  overflow-wrap: anywhere;
}

.account-profile-link {
  width: 100%;
  white-space: normal;
  line-height: 1.25;
}

.account-sidebar-button {
  width: 100%;
  white-space: normal;
  line-height: 1.25;
}

.account-main-panel {
  padding: 36px 40px 44px;
}

.account-heading {
  margin-bottom: 28px;
}

.account-heading__eyebrow {
  margin: 0 0 6px;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-heading__title {
  margin: 0;
  font-size: 2rem;
  color: #0f172a;
}

.account-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-action-card {
  min-height: 142px;
  padding: 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-content: start;
  align-items: center;
  gap: 16px;
  color: #0f172a;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.account-action-card:hover {
  color: #0f172a;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.account-action-card--locked {
  opacity: 0.68;
  cursor: not-allowed;
}

.account-action-card--locked:hover {
  transform: none;
  box-shadow: none;
}

.account-action-card__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  font-size: 1.35rem;
}

.account-action-card__body {
  min-width: 0;
  display: contents;
}

.account-action-card__body strong {
  font-size: 1.05rem;
  line-height: 1.25;
}

.account-action-card__body span {
  grid-column: 1 / -1;
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.45;
}

.account-action-card--cyan {
  background: #ecfeff;
  border-color: #a5f3fc;
}

.account-action-card--green {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.account-action-card--amber {
  background: #fffbeb;
  border-color: #fde68a;
}

.account-action-card--indigo {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.account-action-card--rose {
  background: #fff1f2;
  border-color: #fecdd3;
}

.account-support-panel {
  padding: 36px 24px 28px;
}

.account-support-panel--explorer {
  padding: 0;
  display: grid;
  gap: 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.account-support-block {
  min-width: 0;
  padding: 28px 24px;
  background: var(--card-bg);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.account-status-box h2 {
  margin: 0 0 18px;
  font-size: 1.35rem;
}

.account-status-box > .account-heading__eyebrow {
  margin: 0 0 18px;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: normal;
  text-transform: uppercase;
}

.account-status-box p {
  margin: 0;
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}

.account-badge-board {
  display: grid;
  gap: 18px;
}

.account-badge-group {
  display: grid;
  gap: 8px;
}

.account-badge-group h3 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-badge-group--profile h3 { color: #3730a3; }
.account-badge-group--video h3 { color: #be123c; }
.account-badge-group--resources h3 { color: #0e7490; }
.account-badge-group--questions h3 { color: #15803d; }
.account-badge-group--masterclasses h3 { color: #b45309; }

.account-badge-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.account-badge-row--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-badge-group--video .account-badge-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-badge {
  min-height: 82px;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
}

.account-badge__icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  font-size: 1.35rem;
}

.account-badge--locked {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
  filter: grayscale(1);
  opacity: 0.64;
}

.account-badge--profile.account-badge--earned {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
}

.account-badge--video.account-badge--earned {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.account-badge--resources.account-badge--earned {
  background: #ecfeff;
  border-color: #a5f3fc;
  color: #0e7490;
}

.account-badge--questions.account-badge--earned {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.account-badge--masterclasses.account-badge--earned {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

@media (max-width: 1024px) {
  .account-dashboard {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .account-support-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .account-dashboard,
  .account-actions-grid {
    grid-template-columns: 1fr;
  }

  .account-main-panel,
  .account-profile-panel,
  .account-support-panel {
    padding: 24px;
  }

  .account-heading__title {
    font-size: 1.65rem;
  }

  .account-action-card {
    min-height: 116px;
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary,
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn--primary:hover,
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.btn--outline,
.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover,
.btn-secondary:hover,
.btn--outline.active,
.btn-secondary.active {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn--white,
.btn-white {
  background: #ffffff;
  color: var(--primary-dark);
  border-color: #ffffff;
  font-weight: 700;
}

.btn--white:hover,
.btn-white:hover {
  background: #f0f9ff;
  border-color: #f0f9ff;
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn--outline-white,
.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn--outline-white:hover,
.btn-outline-white:hover {
  background: #ffffff;
  color: var(--primary-dark);
}

.btn--sm,
.btn-sm {
  padding: 6px 16px;
  font-size: 0.8rem;
}

.btn--lg,
.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn--block {
  display: flex;
  width: 100%;
  text-align: center;
}

.btn--danger {
  background-color: #c0392b;
  color: #fff;
  border: 2px solid #c0392b;
}

.btn--danger:hover {
  background-color: #a93226;
  border-color: #a93226;
}

.admin-disclosure-summary {
  list-style: none;
}

.admin-disclosure-summary::-webkit-details-marker {
  display: none;
}

.admin-disclosure-summary::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 0.38rem solid transparent;
  border-bottom: 0.38rem solid transparent;
  border-left: 0.55rem solid currentColor;
  color: #64748b;
  flex: 0 0 auto;
  transition: transform var(--transition);
}

details[open] > .admin-disclosure-summary::before {
  transform: rotate(90deg);
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.modal__body {
  margin: 0 0 1.5rem;
  color: #555;
}

.modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
  color: #ffffff;
  padding: 80px 0;
}

.hero__inner--split {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero__logo-side {
  flex-shrink: 0;
}

.hero__logo-large {
  width: 220px;
  height: auto;
  border-radius: var(--radius);
}

.hero__text-side {
  flex: 1;
}

.hero h1,
.hero__heading {
  font-size: 2.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero p,
.hero__subtitle {
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 32px;
  opacity: 0.9;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 80px 0;
}

.section--compact-top {
  padding-top: 32px;
  padding-bottom: 48px;
}

.directory-heading {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.directory-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0 0 20px;
}

@media (max-width: 768px) {
  .section--compact-top {
    padding-top: 20px;
    padding-bottom: 32px;
  }
  .directory-heading {
    font-size: 1.3rem;
  }
  .directory-subtitle {
    font-size: 0.82rem;
    margin-bottom: 16px;
  }
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto 48px;
}

/* ============================================
   Grid
   ============================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

/* ============================================
   Cards (generic)
   ============================================ */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid #e2e8f0;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* --- Career Category Cards --- */
.card-category {
  text-align: center;
  padding: 32px 24px;
  cursor: pointer;
}

.card-category .card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.card-category h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.card-category p {
  color: var(--text-light);
  font-size: 0.85rem;
}

.card-category:hover {
  border-color: var(--accent);
}

.card-category:hover h3 {
  color: var(--primary);
}

/* --- Mentor Cards --- */
.card-mentor {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
}

.card-mentor .avatar {
  margin-bottom: 16px;
}

.mentor-card__photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}

.card-mentor h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-mentor .mentor-title {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.card-mentor .tag {
  margin-bottom: 16px;
}

/* --- Webinar Cards --- */
.card-webinar {
  position: relative;
  display: flex;
  flex-direction: column;
}

.card-webinar .date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f9ff;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  width: fit-content;
}

.card-webinar h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.card-webinar .webinar-mentor {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--text-light);
  font-size: 0.85rem;
}

.card-webinar .webinar-mentor .avatar {
  width: 32px;
  height: 32px;
  font-size: 0.7rem;
}

.card-webinar .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ============================================
   Avatar
   ============================================ */
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  background: var(--primary);
  flex-shrink: 0;
}

.avatar-lg {
  width: 96px;
  height: 96px;
  font-size: 1.6rem;
}

.avatar-xl {
  width: 128px;
  height: 128px;
  font-size: 2.2rem;
}

/* ============================================
   Tags / Pills
   ============================================ */
.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  background: #f0f9ff;
  color: var(--primary);
}

.tag-green {
  background: #f0fdf4;
  color: #16a34a;
}

.tag-orange {
  background: #fff7ed;
  color: #ea580c;
}

.tag-purple {
  background: #faf5ff;
  color: #9333ea;
}

/* ============================================
   Filter Bar
   ============================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 24px;
  border: 1.5px solid #e2e8f0;
  background: var(--card-bg);
  color: var(--text-light);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  font-family: inherit;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.filter-pill--disabled,
.filter-pill[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--card-bg);
  color: var(--text-light);
  border-color: #e2e8f0;
}

.filter-pill--disabled:hover {
  background: var(--card-bg);
  color: var(--text-light);
  border-color: #e2e8f0;
}

/* Multi-select tag filter (mentor directory) */
.tag-filter {
  margin: 0 0 16px;
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: var(--card-bg);
  padding: 0 16px;
}

.tag-filter__summary {
  cursor: pointer;
  padding: 12px 4px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.tag-filter__summary-label {
  display: inline-flex;
  align-items: center;
}

.tag-filter__summary-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag-filter[open] .tag-filter__summary-chips {
  display: none;
}

.tag-filter__summary::-webkit-details-marker { display: none; }

.tag-filter__summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.15s ease;
  color: var(--primary);
}

.tag-filter[open] .tag-filter__summary::before {
  transform: rotate(90deg);
}

.tag-filter__groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 8px 4px 16px;
}

@media (max-width: 700px) {
  .tag-filter__groups {
    grid-template-columns: 1fr;
  }
}

.tag-filter__group-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 0 10px;
}

/* Per-group <details> (collapsible on mobile) */
.tag-filter__group > summary.tag-filter__group-title {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  user-select: none;
}
.tag-filter__group > summary.tag-filter__group-title::-webkit-details-marker { display: none; }
.tag-filter__group > summary.tag-filter__group-title::before {
  content: "▸";
  display: inline-block;
  color: var(--primary);
  font-size: 0.85rem;
  transition: transform 0.15s ease;
}
.tag-filter__group[open] > summary.tag-filter__group-title::before {
  transform: rotate(90deg);
}

/* Two-panel filter layout (Domaines / Singularités) */
.filter-panels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-container {
  background: var(--card-bg);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 20px;
}

.profile-filter-notice {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 600;
}

.filter-container__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.filter-container__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--text);
}

.btn-clear-filters {
  background: transparent;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition);
}
.btn-clear-filters:hover {
  background-color: #f0f9ff;
}

.filter-container .filter-panels {
  margin-bottom: 0;
}

.filter-panel {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: var(--card-bg);
  padding: 0;
  overflow: hidden;
}

.filter-panel__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  user-select: none;
  border-bottom: 1px solid transparent;
}
.filter-panel[open] > .filter-panel__summary {
  border-bottom-color: #e2e8f0;
}
.filter-panel__summary::-webkit-details-marker { display: none; }
.filter-panel__summary::after {
  content: "▾";
  color: var(--primary);
  font-size: 0.85rem;
  transition: transform 0.15s ease;
  margin-left: auto;
}
.filter-panel[open] > .filter-panel__summary::after {
  transform: rotate(180deg);
}

.filter-panel__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-panel__icon {
  font-size: 1rem;
  color: var(--primary);
}

.filter-panel__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.filter-panel__count[hidden] {
  display: none;
}

.filter-panel__body {
  padding: 14px 16px 16px;
}

/* Inside the panel, reset baked-in margins so layout is tight */
.filter-panel__body .filter-bar {
  margin: 0;
  justify-content: flex-start;
  gap: 8px;
}
.filter-panel__body .tag-filter__groups {
  padding: 0;
  gap: 14px;
}
.tag-filter-summary-chips-wrap {
  margin-bottom: 10px;
}
.tag-filter-summary-chips-wrap:empty,
.tag-filter-summary-chips-wrap .tag-filter__summary-chips:empty {
  display: none;
}

@media (max-width: 768px) {
  .filter-panels {
    gap: 10px;
    margin-bottom: 18px;
  }
  .filter-panel__summary {
    padding: 13px 14px;
    font-size: 0.92rem;
  }
  .filter-panel__body {
    padding: 12px 14px 14px;
  }
  .filter-panel__body .filter-pill {
    padding: 6px 14px;
    font-size: 0.78rem;
  }
}

.tag-filter__options {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.tag-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition);
}

.tag-toggle:hover {
  background-color: #f8fafc;
}

.tag-toggle input {
  /* Make checkbox visible and style it a bit */
  position: static;
  opacity: 1;
  pointer-events: auto;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
}

.tag-toggle span {
  /* Reset pill styles */
  display: inline;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  background: none;
  color: var(--text);
  transition: none;
}

/* Remove the '+' icon */
.tag-toggle span::before {
  display: none;
}

.tag-toggle input:checked + span {
  font-weight: 600;
  color: var(--primary-dark);
}

.tag-toggle input:focus-visible + span {
  outline: none;
}

.tag-toggle:hover span {
  background: transparent;
  border-color: transparent;
  color: var(--text);
}

.tag-toggle input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.tag-filter__empty {
  text-align: center;
  color: #dc2626;
  font-weight: 600;
  padding: 32px 16px;
}

/* Active filter summary bar */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 auto 24px;
  max-width: 920px;
  padding: 10px 14px;
  background: #f1f5f9;
  border-radius: var(--radius);
}

.active-filters[hidden] {
  display: none;
}

.active-filters__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
}

.active-filters__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 14px;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.active-filter-pill--neuro {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.active-filter-pill--singular {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #c4b5fd;
}

.active-filter-pill--category {
  background: #e0f2fe;
  color: #075985;
  border-color: #7dd3fc;
}

.active-filter-pill__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  font-size: 0.9rem;
  line-height: 1;
}

.active-filter-pill:hover .active-filter-pill__x {
  background: rgba(0,0,0,0.18);
}

.active-filters__clear {
  background: transparent;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 8px;
  border-radius: 4px;
}

.active-filters__clear:hover {
  background: rgba(0,0,0,0.05);
}

/* ============================================
   Home Webinar Cards (with SVG visuals)
   ============================================ */
.home-webinars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.home-webinar-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.home-webinar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.home-webinar-card__visual {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
}
.home-webinar-card__visual svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.home-webinar-card__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.home-webinar-card__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f9ff;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 12px;
}
.home-webinar-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.home-webinar-card__mentor {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.home-webinar-card__desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
@media (max-width: 768px) {
  .home-webinars-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Category Sections (Directory)
   ============================================ */
.category-section {
  margin-bottom: 48px;
  scroll-margin-top: 100px;
}
.category-section h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
  color: var(--text);
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
  color: #ffffff;
  padding: 64px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 28px;
}

/* ============================================
   Profile Page
   ============================================ */
.profile-header {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 40px;
}

.profile-header .avatar {
  width: 120px;
  height: 120px;
  font-size: 2.4rem;
}

.profile-info h1 {
  font-size: 1.75rem;
  margin-bottom: 4px;
}

.profile-info .profile-role {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 12px;
}

.profile-hero__snippet {
  font-style: italic;
}

.profile-bio {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 720px;
}

.profile-section {
  margin-bottom: 40px;
}

.profile-section h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* --- Resources --- */
.mentor-resources {
  margin-top: 48px;
}

.mentor-resources h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
  color: var(--text);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.resource-card {
  background: var(--card-bg);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  color: var(--text);
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.resource-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  position: relative;
}

.resource-card__media iframe,
.resource-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.resource-card__body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.resource-card__type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.resource-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 12px;
}

.resource-card__link {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.resource-card:hover .resource-card__link {
  color: var(--primary-dark);
}

/* Offset for anchor links to account for sticky header */
#mentor-resources-form {
  scroll-margin-top: 100px;
}

/* --- Resource Form Rows --- */
.resource-form-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  grid-template-areas:
    "type title button"
    "url url url";
  gap: 16px;
  align-items: flex-end;
  background: #f8fafc;
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
}

.resource-form-row .form-group {
  margin-bottom: 0;
}

.resource-form-row .form-group:nth-of-type(1) { grid-area: type; }
.resource-form-row .form-group:nth-of-type(2) { grid-area: title; }
.resource-form-row .form-group:nth-of-type(3) { grid-area: url; }
.resource-form-row .remove-resource-btn { grid-area: button; }

.resource-form-row input,
.resource-form-row select {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--card-bg);
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.resource-form-row input:focus,
.resource-form-row select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
}

.resource-form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.remove-resource-btn {
  /* Match the padding of the input fields for consistent height */
  padding-top: 10px;
  padding-bottom: 10px;
  border-color: #fca5a5;
  color: #ef4444;
}

.remove-resource-btn:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: #f87171;
}

@media (max-width: 768px) {
  .resource-form-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "type"
      "title"
      "url"
      "button";
    align-items: stretch;
  }
}

/* ============================================
   Under Construction Page
   ============================================ */
.under-construction {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 48px 24px;
}

.under-construction .construction-emoji {
  font-size: 5rem;
  margin-bottom: 24px;
}

.under-construction h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.under-construction p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 28px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-contact {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-contact h4 {
  margin: 0;
}

.footer-contact a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: #ffffff;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #94a3b8;
}

.footer h4 {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer ul a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

.footer-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin-top: 0.5rem;
}

.footer-legal a {
  color: #64748b;
  text-decoration: none;
}

.footer-legal a:hover {
  color: #94a3b8;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer {
    padding: 32px 0 0;
  }
  .footer .container {
    padding: 0 16px;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 20px;
  }
  .footer-contact h4 {
    font-size: 0.78rem;
    margin-bottom: 2px;
  }
  .footer-contact a {
    font-size: 0.85rem;
    word-break: break-all;
  }
  .footer-bottom {
    padding: 14px 0;
    font-size: 0.72rem;
    line-height: 1.4;
  }
}

/* ============================================
   "Vous êtes étudiant" Section
   ============================================ */

/* ============================================
   Chevron Timeline (Comment ça marche)
   ============================================ */
.chevron-timeline {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
}

.chevron-step {
  flex: 1;
  max-width: 340px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.chevron-step:hover {
  transform: none;
  box-shadow: var(--shadow);
}

.chevron-step__number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.chevron-step--1 { background: linear-gradient(135deg, #22d3ee, #06b6d4); color: #ffffff; border: none; }
.chevron-step--2 { background: linear-gradient(135deg, #06b6d4, #0891b2); color: #ffffff; border: none; }
.chevron-step--3 { background: linear-gradient(135deg, #0891b2, #0e7490); color: #ffffff; border: none; }

.chevron-step--1 .chevron-step__title,
.chevron-step--2 .chevron-step__title,
.chevron-step--3 .chevron-step__title {
  color: #ffffff;
}

.chevron-step--1 .chevron-step__text,
.chevron-step--2 .chevron-step__text,
.chevron-step--3 .chevron-step__text {
  color: rgba(255, 255, 255, 0.85);
}

.chevron-step__icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 12px;
}

.chevron-step__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.chevron-step__text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.chevron-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  flex-shrink: 0;
  color: var(--primary);
}

.chevron-arrow svg {
  width: 24px;
  height: 40px;
}

/* ============================================
   Featured Mentors — 2x3 Grid with Reviews
   ============================================ */
.mentor-grid-2x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mentor-card--featured {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
  padding: 28px 20px;
  transition: transform var(--transition), box-shadow var(--transition);
  color: var(--text);
}

.mentor-card--featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.mentor-card--featured .mentor-card__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}

.mentor-card--featured .mentor-card__name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.mentor-card--featured .mentor-card__title {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.mentor-card--featured .mentor-card__tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 20px;
  background: #f0f9ff;
  color: var(--primary);
  margin-bottom: 14px;
}

.mentor-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 2px;
  margin-bottom: 4px;
}

.mentor-card__chip {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 500;
  border-radius: 12px;
  line-height: 1.4;
  border: 1px solid transparent;
}

.mentor-card__chip--neuro {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.mentor-card__chip--singular {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #ddd6fe;
}

.mentor-card__review {
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: auto;
  border-left: 3px solid var(--accent);
  text-align: left;
}

.mentor-card__review p {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 6px;
}

.mentor-card__review cite {
  font-size: 0.72rem;
  color: var(--text-light);
  font-style: normal;
  font-weight: 600;
}

/* ============================================
   Auth Page
   ============================================ */

.auth-section {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 48px 0;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.auth-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(248, 250, 252, 0.72);
  pointer-events: none;
}

.auth-section > .container {
  position: relative;
  z-index: 2;
}

.auth-mosaic {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  opacity: 0.86;
}

.auth-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.auth-card {
  background: var(--card-bg);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px 44px 48px;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 28px;
  transition: color var(--transition);
}

.auth-back:hover {
  color: var(--text);
}

.auth-card__header {
  margin-bottom: 28px;
}

.auth-card__title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.auth-card__profile-badge {
  display: inline-block;
  background: #f0f9ff;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid #bae6fd;
}

/* Social buttons */
.auth-providers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1.5px solid #e2e8f0;
  background: var(--card-bg);
  color: var(--text);
  transition: background var(--transition), border-color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}

.auth-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  color: var(--text);
}

.auth-btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-btn--facebook {
  background: #1877F2;
  border-color: #1877F2;
  color: #ffffff;
}

.auth-btn--facebook:hover {
  background: #1464d3;
  border-color: #1464d3;
  color: #ffffff;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 24px;
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* Email form */
.auth-email-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-email-form__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.auth-email-form__input {
  width: 100%;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--card-bg);
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.auth-email-form__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
}

.auth-email-form__input::placeholder {
  color: #94a3b8;
}

.auth-email-form .btn--primary {
  margin-top: 4px;
}

.auth-email-form__hint {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .auth-mosaic {
    gap: 6px;
    padding: 6px;
    opacity: 0.35;
  }

  .auth-section::before {
    background: rgba(248, 250, 252, 0.9);
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 32px 24px 40px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }

  .auth-section {
    align-items: flex-start;
    padding: 0;
  }

  .auth-mosaic {
    display: none;
  }
}

/* ============================================
   Home Page V1 — Three-box entry design
   ============================================ */

.home-intro {
  background: var(--bg);
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 0;
}

.home-intro__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.home-intro__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.home-intro__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-light);
  flex: 1;
  min-width: 240px;
  font-weight: 400;
}

.home-hero {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  color: #102033;
  margin-top: 56px;
  padding: 34px 0 56px;
  border-bottom: 1px solid #eef2f7;
}

.home-hero__inner {
  position: static;
  min-height: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 76px 0 20px;
}

.home-hero__mode-tabs {
  position: absolute;
  top: 34px;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  gap: 24px;
  transform: translateX(-50%);
  border-bottom: 1px solid #e8edf3;
}

.home-hero__mode-tab {
  appearance: none;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #516070;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 0 0 10px;
  transition: color var(--transition), border-color var(--transition);
}

.home-hero__mode-tab.is-active {
  color: #0f8f92;
  border-color: #0f8f92;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
}

.home-hero__mode-panel[hidden] {
  display: none;
}

.home-hero__title {
  margin: 0 auto 20px;
  color: #102033;
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.08;
  max-width: 960px;
}

.home-hero__lead {
  margin: 0 auto 28px;
  max-width: 920px;
  color: #36465a;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.65;
}

.home-hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.home-hero__cta-primary {
  background: var(--primary);
  color: #ffffff;
  border: 1.5px solid var(--primary);
  font-weight: 700;
}

.home-hero__cta-primary:hover,
.home-hero__cta-primary:focus {
  background: var(--primary-dark);
  color: #ffffff;
  border-color: var(--primary-dark);
}

.home-hero__cta-ghost {
  background: #ffffff;
  color: var(--primary-dark);
  border: 1.5px solid #cbd5e1;
  font-weight: 700;
  padding: 12px 22px;
}

.home-hero__cta-ghost:hover,
.home-hero__cta-ghost:focus {
  background: #f8fafc;
  border-color: var(--primary);
  color: var(--primary-dark);
}

.home-hero__portrait-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, clamp(84px, 8.5vw, 132px));
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
  pointer-events: none;
}

.home-hero__portrait-rail--left {
  left: 6px;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 68%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 68%, transparent 100%);
}

.home-hero__portrait-rail--right {
  right: 6px;
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 68%, transparent 100%);
  mask-image: linear-gradient(to left, #000 0%, #000 68%, transparent 100%);
}

.home-hero__portrait {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.home-hero__portrait--faded {
  opacity: 0.2;
  filter: grayscale(0.15);
}

.home-hero__portrait--strong {
  opacity: 0.72;
}

.home-hero__user-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
}

.home-hero__hint {
  margin: 14px 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.home-hero__hint-link {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
}

.home-hero__hint-link:hover,
.home-hero__hint-link:focus {
  color: #f1f5f9;
}

/* Entry section */
.home-entries {
  padding: 64px 0 80px;
  background: var(--bg);
}

.home-entries--compact {
  padding: 32px 0;
}

.home-entries--after-hero {
  padding-top: 56px;
}

.home-entries--profile-edit {
  padding: 20px 0 48px;
}

@media (max-width: 768px) {
  .home-entries--profile-edit {
    padding: 12px 0 32px;
  }
}

.home-preview-header {
  display: flex;
  align-items: baseline;
  margin-bottom: 16px;
}

.home-preview-header__title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0;
}

.home-preview-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.home-preview-row__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  min-width: 0;
}

.home-preview-row__cta {
  flex-shrink: 0;
  white-space: nowrap;
  width: 220px;
  text-align: center;
  justify-content: center;
}

.home-personality-carousel__header {
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.home-personality-carousel__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.home-personality-carousel__explore {
  min-height: 38px;
  padding: 0 18px;
  font-size: 0.9rem;
}

.home-personality-carousel__arrow {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: #ffffff;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.home-personality-carousel__arrow span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  line-height: 1;
  transform: translateY(-1px);
}

.home-personality-carousel__arrow:hover,
.home-personality-carousel__arrow:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.home-personality-carousel__arrow:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.18);
  outline-offset: 2px;
}

.home-personality-carousel__arrow[disabled] {
  opacity: 0.45;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.home-personality-carousel__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.home-personality-carousel__grid [hidden] {
  display: none !important;
}

.home-masterclass-carousel__grid [hidden] {
  display: none !important;
}

.home-personality-carousel__grid .placeholder-card--compact {
  min-height: 390px;
  justify-content: center;
}

.home-masterclass-carousel__mobile-frame {
  display: contents;
}

.home-masterclass-carousel__mobile-arrow,
.home-masterclass-carousel__mobile-explore,
.home-personality-carousel__mobile-explore {
  display: none;
}

@media (max-width: 900px) {
  .home-preview-row {
    flex-direction: column;
    align-items: stretch;
  }
  .home-preview-row__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-preview-row__cta {
    align-self: center;
  }
  .home-personality-carousel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Three-column grid */
.entry-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.entry-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  margin-top: 60px;
  gap: 10px;
  padding: 72px 32px 40px;
  background: var(--card-bg);
  border: 2px solid #e2e8f0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  min-height: 160px;
}

.entry-box:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

/* Profile Image styling */
.entry-box__picture {
  position: absolute;
  top: -60px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f9ff;
  border: 4px solid var(--card-bg);
  box-shadow: 0 0 0 3px var(--primary), var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition);
  z-index: 1;
}

.entry-box:hover .entry-box__picture {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px var(--accent), var(--shadow-lg);
}

/* Profile Image (Photo/Logo) styling */
.entry-box__image {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
  border: 2px solid #e2e8f0;
  transition: transform var(--transition), border-color var(--transition);
}

.entry-box:hover .entry-box__image {
  transform: scale(1.05);
  border-color: var(--primary);
}

.entry-box__label {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.3px;
}

.entry-box:hover .entry-box__label {
  color: var(--primary);
}

.entry-box__desc {
  display: block;
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.55;
  font-style: italic;
}

/* Profile selection states (choose_profile page) */
button.entry-box {
  appearance: none;
  font-family: inherit;
  background: var(--card-bg);
  cursor: pointer;
}

.entry-box--selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary), var(--shadow-lg);
}

.entry-box--selected .entry-box__label {
  color: var(--primary);
}

.entry-box--selected .entry-box__picture {
  box-shadow: 0 0 0 3px var(--accent), var(--shadow-lg);
}

.entry-box--dim {
  opacity: 0.35;
}

.entry-box--dim:hover {
  transform: none;
  box-shadow: var(--shadow);
  border-color: #e2e8f0;
}

/* Compact variant — smaller version of the entry-boxes (home page CTA) */
.entry-boxes--compact {
  gap: 16px;
  margin-bottom: 24px;
}

.entry-boxes--compact .entry-box {
  margin-top: 42px;
  padding: 50px 20px 24px;
  min-height: 128px;
  gap: 6px;
}

.entry-boxes--compact .entry-box__picture {
  top: -42px;
  width: 84px;
  height: 84px;
  border-width: 3px;
}

.entry-boxes--compact .entry-box__label {
  font-size: 1.05rem;
}

.entry-boxes--compact .entry-box__desc {
  font-size: 0.8rem;
  line-height: 1.35;
}

/* Section CTA below a preview grid */
.home-section-cta {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  margin-bottom: 16px;
}

/* Compact profile completion banner (logged in, no profil) */
.profile-cta-banner {
  background: #fef2f2;
  border-top: 1px solid #fecaca;
  border-bottom: 1px solid #fecaca;
}

.profile-cta-banner__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
}

.profile-cta-banner__star {
  font-size: 1.5rem;
  color: #dc2626;
  line-height: 1;
  flex-shrink: 0;
}

.profile-cta-banner__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.profile-cta-banner__text strong {
  color: #7f1d1d;
  font-size: 0.95rem;
  font-weight: 700;
}

.profile-cta-banner__text span {
  color: #991b1b;
  font-size: 0.85rem;
}

.profile-cta-banner__btn {
  flex-shrink: 0;
  width: 220px;
  text-align: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .profile-cta-banner__inner {
    flex-wrap: wrap;
  }
  .profile-cta-banner__btn {
    width: 100%;
    justify-content: center;
  }
}

/* Home preview grid (mentor / webinar placeholder rows) */
.home-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.placeholder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px;
  background: var(--card-bg);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text-light);
  min-height: 200px;
}

.placeholder-card__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.placeholder-card__photo--circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.placeholder-card__photo--wide {
  width: 100%;
  height: 90px;
  border-radius: var(--radius-sm);
}

.placeholder-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

.placeholder-card__desc {
  font-size: 0.82rem;
  margin: 0;
}

.placeholder-card--compact {
  padding: 12px 10px;
  min-height: 0;
}

.placeholder-card--compact .placeholder-card__photo {
  margin-bottom: 8px;
  font-size: 0.65rem;
}

.placeholder-card--compact .placeholder-card__photo--circle {
  width: 52px;
  height: 52px;
}

.placeholder-card--compact .placeholder-card__photo--wide {
  height: 60px;
}

.placeholder-card--compact .placeholder-card__title {
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.placeholder-card--compact .placeholder-card__desc {
  font-size: 0.72rem;
}

/* Populated personality card (homepage) */
.home-personality-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  min-height: 390px;
  padding: 6px;
  background: var(--card-bg);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.home-personality-card:hover,
.home-personality-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.home-personality-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.home-personality-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 4px 6px;
}

.home-personality-card__name {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--text);
}

.home-personality-card__desc {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.35;
}

.home-personality-card__snippet {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.45;
  margin: 12px 0 0;
}

.home-personality-card__snippet span:last-child {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-personality-card__emoji {
  flex: 0 0 auto;
  font-size: 1.05rem;
  line-height: 1.2;
}

.home-personality-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-start;
  margin-top: 12px;
}

.form-field__hint {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-left: 4px;
}

.entry-box--dim:hover .entry-box__label {
  color: var(--primary-dark);
}

.entry-box--dim:hover .entry-box__picture {
  transform: none;
  box-shadow: 0 0 0 3px var(--primary), var(--shadow-lg);
}

.profil-save {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  padding-bottom: 16px;
}

.profil-save .btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Test de Potentiel Atypique banner */
.home-test-banner {
  display: flex;
  justify-content: center;
}

.home-test-banner__link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  background: #f5f3ff;
  border: 2px solid #ddd6fe;
  border-radius: var(--radius);
  padding: 32px 48px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #6d28d9;
  transition: background var(--transition), border-color var(--transition),
              transform var(--transition), box-shadow var(--transition);
  max-width: 720px;
  width: 100%;
  justify-content: center;
}

.home-test-banner__link:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #5b21b6;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.12);
}

.home-test-banner__link em {
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  display: block;
  margin-top: 4px;
  color: #7c3aed;
}

.home-test-banner__text {
  text-align: left;
  line-height: 1.3;
}

.home-test-banner__picture {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #c4b5fd;
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.15);
  flex-shrink: 0;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.home-test-banner__link:hover .home-test-banner__picture {
  transform: scale(1.05) rotate(5deg);
  border-color: #a78bfa;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}

@media (max-width: 768px) {
  .home-intro {
    padding: 10px 0;
  }

  .home-intro__inner {
    gap: 8px;
  }

  .home-intro__text {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .home-hero {
    margin-top: 0;
    padding: 12px 0 36px;
  }

  .home-hero__inner {
    min-height: auto;
    padding: 50px 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    text-align: center;
  }

  .home-hero__mode-tabs {
    top: 12px;
  }

  .home-hero__portrait-rail {
    position: relative;
    inset: auto;
    width: min(100%, 390px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: 54px;
    gap: 6px;
    pointer-events: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .home-hero__portrait-rail--right {
    margin-top: -2px;
  }

  .home-hero__portrait {
    border-radius: 7px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  }

  .home-hero__portrait--faded {
    opacity: 0.36;
  }

  .home-hero__portrait--strong {
    opacity: 0.88;
  }

  .home-hero__content {
    margin-top: 8px;
  }

  .home-hero__mode-tabs {
    gap: 20px;
  }

  .home-hero__title {
    font-size: 2rem;
    margin: 0 0 14px;
  }

  .home-hero__lead {
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 20px;
  }

  .home-hero__cta-row {
    justify-content: center;
    margin-top: 0;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .home-hero__cta-row .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 52px;
    padding: 11px 14px;
    font-size: 0.82rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .home-hero__cta-ghost {
    padding: 11px 14px;
  }

  .entry-boxes {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .entry-boxes--compact {
    grid-template-columns: 1fr;
  }

  .home-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .entry-box {
    min-height: auto;
    margin-top: 50px;
    padding: 64px 24px 32px;
  }

  .home-test-banner__link {
    font-size: 1.15rem;
    padding: 28px 24px;
    gap: 16px;
    flex-direction: column;
    text-align: center;
  }

  .home-test-banner__text {
    text-align: center;
  }

  .home-test-banner__picture {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .home-hero__cta-row .btn {
    flex-basis: 100%;
  }

  .home-hero__title {
    font-size: 1.7rem;
  }

  .home-hero__lead {
    font-size: 0.9rem;
  }

  .entry-box__label {
    font-size: 1.1rem;
  }
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================
   Responsive — Tablet & Mobile
   ============================================ */
@media (max-width: 340px) {
  .navbar__logo-text {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 60px;
  }

  .navbar.container {
    padding: 0 16px;
  }

  .navbar__nav,
  .navbar__right {
    display: none;
  }

  .navbar__mobile-menu {
    display: block;
  }

  .navbar__logo {
    min-width: 0;
  }

  .navbar__logo-img {
    height: 36px !important;
  }

  .navbar__logo-text {
    font-size: 1rem;
    white-space: nowrap;
  }

  .menu-toggle {
    min-width: 52px;
    min-height: 48px;
    padding: 7px 10px;
  }

  .dropdown-menu {
    right: 0;
    left: auto;
    min-width: min(320px, calc(100vw - 32px));
    padding: 12px;
  }

  .dropdown-menu__links {
    display: grid;
    gap: 8px;
    padding: 0;
    margin-bottom: 10px;
  }

  .dropdown-menu__links li a {
    min-height: 48px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    font-size: 1rem;
    font-weight: 800;
  }

  .dropdown-menu__links li a:hover,
  .dropdown-menu__links li a.dropdown-menu__link--active {
    border-color: #bae6fd;
  }

  .dropdown-menu__links li a.dropdown-menu__link--dashboard,
  .dropdown-menu__links li a.dropdown-menu__link--dashboard.dropdown-menu__link--active {
    color: #78350f;
    background: #fffbeb;
    border-color: #fde68a;
  }

  .dropdown-menu__actions {
    gap: 8px;
    padding: 10px 0 0;
  }

  .dropdown-menu__actions .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    font-size: 1rem;
  }

  .home-entries--compact {
    padding: 20px 0 32px;
  }

  .home-entries--after-hero {
    padding-top: 28px;
  }

  .home-masterclass-carousel__desktop-controls,
  .home-personality-carousel__desktop-controls {
    display: none;
  }

  .home-masterclass-carousel__mobile-frame {
    display: block;
    width: 100%;
  }

  .home-masterclass-carousel__mobile-arrow {
    display: none;
  }

  .home-masterclass-carousel__grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 20px 8px 0;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-masterclass-carousel__grid::-webkit-scrollbar {
    display: none;
  }

  .home-masterclass-carousel__grid .home-webinar-card,
  .home-masterclass-carousel__grid .placeholder-card--compact {
    flex: 0 0 min(84%, 320px);
    width: min(84%, 320px);
    scroll-snap-align: start;
  }

  .home-personality-carousel__grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 20px 8px 0;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-personality-carousel__grid::-webkit-scrollbar {
    display: none;
  }

  .home-personality-carousel__grid .home-personality-card,
  .home-personality-carousel__grid .placeholder-card--compact {
    flex: 0 0 min(84%, 320px);
    width: min(84%, 320px);
    scroll-snap-align: start;
  }

  .home-masterclass-carousel__mobile-explore,
  .home-personality-carousel__mobile-explore {
    display: flex;
    width: min(100%, 280px);
    min-height: 46px;
    margin: 12px auto 0;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .navbar__nav {
    gap: 0;
  }

  .navbar__nav-link {
    padding: 6px 8px;
    font-size: 0.8rem;
  }

  .chevron-timeline {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .chevron-step {
    max-width: 100%;
  }

  .chevron-arrow {
    transform: rotate(90deg);
    width: auto;
    height: 32px;
  }

  .mentor-grid-2x3 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 0;
  }

  .hero__inner--split {
    flex-direction: column;
  }
}

/* ===== Mentor toolkit (home page) ===== */
.mentor-toolkit { padding-top: 32px; }
.mentor-toolkit .entry-boxes {
  margin-bottom: 8px;
}
.mentor-toolkit .entry-box {
  margin-top: 40px;
  padding: 52px 24px 28px;
  min-height: 132px;
}
.mentor-toolkit .entry-box__picture {
  top: -40px;
  width: 80px;
  height: 80px;
  border-width: 3px;
}
.mentor-toolkit .entry-box__label {
  font-size: 1.08rem;
}
.mentor-toolkit .entry-box__desc {
  font-size: 0.84rem;
}

/* ============================================
   Toasts
   ============================================ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: calc(100% - 40px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 240px;
  animation: toast-in 0.25s ease-out;
}

.toast--success {
  border-left-color: #16a34a;
}

.toast--error {
  border-left-color: #dc2626;
}

.toast--hide {
  animation: toast-out 0.3s ease-in forwards;
}

.toast__message {
  flex: 1;
}

.toast__close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  padding: 0 4px;
  transition: color var(--transition);
}

.toast__close:hover {
  color: var(--text);
}

/* ============================================
   Cookie Banner
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a2e;
  color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 2rem;
  z-index: 999;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-banner__text a {
  color: #a8c8ff;
  text-decoration: underline;
}

.cookie-banner__btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.cookie-banner[hidden] {
  display: none;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  .cookie-banner__btn {
    width: 100%;
    text-align: center;
  }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(-10px); }
}

@media (max-width: 480px) {
  .toast-container {
    top: 72px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
  .toast {
    min-width: 0;
  }
}

/* ============================================
   Home roadmap (Votre fiche de route)
   ============================================ */
.home-roadmap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.home-roadmap__item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
}

.home-roadmap__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 22px 18px 20px;
  background: var(--card-bg);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.home-roadmap__card:hover,
.home-roadmap__card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  color: var(--text);
}

.home-roadmap__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}

.home-roadmap__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 4px 0 0;
  color: var(--text);
  letter-spacing: -0.2px;
}

.home-roadmap__desc {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.4;
}

.home-roadmap__arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  width: 36px;
}

.home-roadmap__arrow svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .home-roadmap {
    flex-direction: column;
    align-items: stretch;
  }
  .home-roadmap__arrow {
    width: 100%;
    height: 24px;
    transform: rotate(90deg);
    margin: -4px auto;
  }
  .home-roadmap__arrow svg {
    width: 32px;
  }
}

/* Mentor roadmap checklist (inside .home-roadmap__card) */
.home-roadmap__checklist {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  width: 100%;
}

.home-roadmap__check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.35;
}

.home-roadmap__check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #fee2e2;
  color: #dc2626;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1;
  margin-top: 1px;
}

.home-roadmap__check--done .home-roadmap__check-icon {
  background: #dcfce7;
  color: #16a34a;
}

.home-roadmap__check--done {
  color: var(--text);
}

/* Mobile-only typography scale: keep desktop sizing untouched. */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  body {
    font-size: 14px;
    line-height: 1.55;
  }

  h1,
  .section-title,
  .profile-edit-title {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
  }

  h2,
  .home-preview-header__title {
    font-size: clamp(1.25rem, 5.2vw, 1.55rem);
  }

  h3 {
    font-size: clamp(1rem, 4.2vw, 1.18rem);
  }

  p,
  li {
    font-size: 0.92rem;
  }

  .btn {
    font-size: 0.88rem;
  }

  .navbar__logo-text {
    font-size: 0.9rem;
  }

  .menu-toggle__label {
    font-size: 0.62rem;
  }

  .dropdown-menu__links li a,
  .dropdown-menu__actions .btn {
    font-size: 0.9rem;
  }

  .home-hero__title {
    font-size: clamp(1.38rem, 6.2vw, 1.65rem);
  }

  .home-hero__lead,
  .home-personality-card__role,
  .home-personality-card__quote,
  .account-action-card__body span {
    font-size: 0.86rem;
  }

  .account-name {
    font-size: 1.25rem;
  }

  .account-action-card__body strong {
    font-size: 0.95rem;
  }

  .account-heading__eyebrow,
  .account-badge-group h3 {
    font-size: 0.7rem;
  }

  .account-badge {
    min-height: 74px;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .home-hero__title {
    font-size: 1.38rem;
  }

  .home-hero__lead {
    font-size: 0.84rem;
  }
}
