/**
 * InstallCanada — branche Étudiants (complément de styles.css)
 * Scope : pages sous /etudiants/
 */

body[data-ic-section="etudiants"] {
  --student-accent: #38bdf8;
  --student-accent-dim: rgba(56, 189, 248, 0.16);
  background: radial-gradient(1100px 560px at 12% 0%, var(--student-accent-dim), transparent 52%),
    radial-gradient(900px 480px at 88% 12%, rgba(34, 197, 94, 0.12), transparent 55%), var(--bg);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--muted-2);
}
.breadcrumb a {
  color: var(--muted);
  font-weight: 600;
}
.breadcrumb a:hover {
  color: var(--text);
}
.breadcrumb__sep {
  opacity: 0.5;
}

.badge-student {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--student-accent-dim, rgba(56, 189, 248, 0.16));
  color: var(--student-accent, #38bdf8);
  border: 1px solid rgba(56, 189, 248, 0.28);
  margin-bottom: 12px;
}

.student-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.student-hub-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}
.student-hub-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: var(--panel-2);
  transform: translateY(-2px);
}
.student-hub-card h3 {
  margin: 0;
  font-size: 1.05rem;
}
.student-hub-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  flex: 1 1 auto;
}
.student-hub-card__link {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--student-accent, #38bdf8);
}

.student-funnel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  counter-reset: funnel-step;
}
.student-funnel__step {
  position: relative;
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.student-funnel__step::before {
  counter-increment: funnel-step;
  content: counter(funnel-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--student-accent-dim, rgba(56, 189, 248, 0.16));
  color: var(--student-accent, #38bdf8);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.student-funnel__step h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}
.student-funnel__step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.related-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.related-topics a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}
.related-topics a:hover {
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--text);
}

.topnav__link--active {
  color: var(--text);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
}

.student-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.student-subnav a {
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}
.student-subnav a:hover,
.student-subnav a[aria-current="page"] {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

@media (max-width: 900px) {
  .student-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .student-funnel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .student-hub-grid,
  .student-funnel {
    grid-template-columns: 1fr;
  }
}

/* Bloc promotionnel accueil (n’utilise pas le CTA vert immigration) */
.home-student-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: center;
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.1) 0%,
    rgba(255, 255, 255, 0.04) 48%,
    rgba(15, 23, 42, 0.2) 100%
  );
}
.home-student-panel__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}
.home-student-panel__lead {
  margin: 0 0 14px;
  color: var(--muted);
  max-width: 52ch;
}
.home-student-panel__bullets {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--muted);
}
.home-student-panel__bullets li {
  margin: 6px 0;
}
.home-student-panel__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn--student {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #bae6fd;
  font-weight: 750;
}
.btn--student:hover {
  background: rgba(56, 189, 248, 0.28);
  border-color: rgba(56, 189, 248, 0.65);
}
.home-student-panel__aside {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}
.home-student-panel__aside h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}
.home-student-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.home-student-panel__tag {
  font-size: 0.8rem;
  font-weight: 650;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--student-accent, #38bdf8);
  border: 1px solid rgba(56, 189, 248, 0.22);
}
@media (max-width: 820px) {
  .home-student-panel {
    grid-template-columns: 1fr;
  }
}
