/* ============================================================
   CANADA IMMIGRATION — BOURSE-MONDE.CSS
   Page : Meilleures bourses mondiales — Amériques, Europe,
          Asie, Afrique, Océanie
   Étend bourse.css sans le dupliquer
   ============================================================ */

/* ── HERO MONDE ───────────────────────────────────────────── */
.monde-hero {
  position: relative;
  height: 560px;
  display: flex;
  align-items: flex-end;
  background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1800&q=85');
  background-size: cover;
  background-position: center 40%;
  overflow: hidden;
}
.monde-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11,31,58,0.2)  0%,
    rgba(11,31,58,0.6)  45%,
    rgba(11,31,58,0.97) 100%
  );
}
/* Globe déco */
.monde-hero::after {
  content: '🌍';
  position: absolute;
  top: 0; right: -30px;
  font-size: 420px;
  opacity: 0.05;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.monde-hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: 64px;
}

/* ── COMPTEUR DE BOURSES ──────────────────────────────────── */
.monde-stats-bar {
  background: var(--navy);
  border-bottom: 2px solid rgba(201,168,76,0.2);
  padding: 22px 0;
}
.monde-stats-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── NAVIGATION CONTINENTS ────────────────────────────────── */
.continent-nav {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 72px;
  z-index: 90;
  box-shadow: 0 4px 20px rgba(11,31,58,0.08);
}
.continent-nav .container {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.continent-nav .container::-webkit-scrollbar { display: none; }

.cnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 18px 24px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all .3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  margin-bottom: -2px;
  text-decoration: none;
}
.cnav-btn i { font-size: .9rem; }
.cnav-btn:hover { color: var(--navy); background: var(--cream); }
.cnav-btn.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
  background: var(--gold-pale);
}

/* Couleurs par continent */
.cnav-btn[data-region="ameriques"].active  { border-bottom-color: #e74c3c; color: #c0392b; }
.cnav-btn[data-region="europe"].active     { border-bottom-color: #3498db; color: #2980b9; }
.cnav-btn[data-region="asie"].active       { border-bottom-color: #e67e22; color: #d35400; }
.cnav-btn[data-region="afrique"].active    { border-bottom-color: #27ae60; color: #1e8449; }
.cnav-btn[data-region="oceanie"].active    { border-bottom-color: #9b59b6; color: #7d3c98; }

.cnav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(11,31,58,0.08);
  font-size: .68rem;
  font-weight: 700;
  color: var(--text-light);
}
.cnav-btn.active .cnav-count {
  background: var(--gold);
  color: var(--navy);
}

/* ── PAGE BOURSE MONDE ────────────────────────────────────── */
.monde-page { background: var(--cream); }

/* ── INTRO SECTION ────────────────────────────────────────── */
.monde-intro {
  margin-bottom: 56px;
}
.monde-intro-lead {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.78;
  border-left: 4px solid var(--gold);
  padding: 20px 28px;
  background: var(--gold-pale);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 28px;
}
.monde-intro p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 14px;
}

/* ── SECTION CONTINENT ────────────────────────────────────── */
.continent-section {
  margin-bottom: 96px;
  scroll-margin-top: 140px;
}

/* Bannière continent */
.continent-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  background-color: #0f223d;
}
.continent-header::after {
  content: attr(data-emoji);
  position: absolute;
  right: -10px; top: -20px;
  font-size: 140px;
  opacity: 0.1;
  line-height: 1;
  pointer-events: none;
}

/* Couleurs par continent */
.continent-header.ameriques {
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}
.continent-header.europe {
  background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
}
.continent-header.asie {
  background: linear-gradient(135deg, #784212 0%, #e67e22 100%);
}
.continent-header.afrique {
  background: linear-gradient(135deg, #1e8449 0%, #27ae60 100%);
}
.continent-header.oceanie {
  background: linear-gradient(135deg, #5b2c6f 0%, #9b59b6 100%);
}

.continent-header-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}
.continent-header-text { flex: 1; }
.continent-header-text h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--white);
  margin-bottom: 4px;
}
.continent-header-text p {
  font-size: .9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}
.continent-header-count {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  text-align: center;
  flex-shrink: 0;
}
.continent-header-count strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
}
.continent-header-count span {
  font-size: .7rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* Connecteur visuel header → liste */
.continent-connector {
  height: 4px;
  border-radius: 0;
}
.ameriques-line { background: linear-gradient(to right, #e74c3c, rgba(231,76,60,0.2)); }
.europe-line    { background: linear-gradient(to right, #2980b9, rgba(41,128,185,0.2)); }
.asie-line      { background: linear-gradient(to right, #e67e22, rgba(230,126,34,0.2)); }
.afrique-line   { background: linear-gradient(to right, #27ae60, rgba(39,174,96,0.2)); }
.oceanie-line   { background: linear-gradient(to right, #9b59b6, rgba(155,89,182,0.2)); }

/* ── BOURSE CARD MONDE ────────────────────────────────────── */
/* Hérite de bourse.css + surcharges continent */

.bourse-card.ameriques-card::before { background: linear-gradient(to right, #e74c3c, #ff7675); }
.bourse-card.europe-card::before    { background: linear-gradient(to right, #2980b9, #74b9ff); }
.bourse-card.asie-card::before      { background: linear-gradient(to right, #e67e22, #fdcb6e); }
.bourse-card.afrique-card::before   { background: linear-gradient(to right, #27ae60, #55efc4); }
.bourse-card.oceanie-card::before   { background: linear-gradient(to right, #9b59b6, #d7aefb); }

/* Badge pays */
.bourse-badge.badge-country {
  font-size: .65rem;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
}

/* ── TABLEAU COMPARATIF ───────────────────────────────────── */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin: 56px 0;
  box-shadow: var(--shadow-sm);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  min-width: 720px;
}
.compare-table thead tr {
  background: var(--navy);
}
.compare-table thead th {
  padding: 16px 18px;
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.compare-table tbody tr {
  border-bottom: 1px solid rgba(201,168,76,0.1);
  transition: background .2s;
}
.compare-table tbody tr:last-child { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--gold-pale); }
.compare-table td {
  padding: 14px 18px;
  color: var(--text);
  vertical-align: middle;
}
.compare-table td:first-child { font-weight: 600; color: var(--navy); }
.compare-table .badge-level {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
}
.badge-level.doc   { background: rgba(155,89,182,0.12); color: #7d3c98; }
.badge-level.master { background: rgba(41,128,185,0.12); color: #1a5276; }
.badge-level.bac   { background: rgba(39,174,96,0.12); color: #1e8449; }
.badge-level.all   { background: rgba(201,168,76,0.15); color: #8a6914; }

.compare-table .montant-val {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  font-weight: 600;
}
.compare-table .region-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(11,31,58,0.06);
  color: var(--text-light);
}

/* ── BOURSE MAP VISUELLE ──────────────────────────────────── */
.monde-map-section {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  margin-bottom: 72px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.15);
}
.monde-map-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.monde-map-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.monde-map-title::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--gold);
}
.monde-map-section h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--white);
  margin-bottom: 10px;
}
.monde-map-section p {
  color: rgba(255,255,255,0.52);
  font-size: .93rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 600px;
}
.monde-regions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  position: relative;
  z-index: 1;
}
.monde-region-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: all .3s ease;
}
.monde-region-pill:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.3);
  background: rgba(201,168,76,0.06);
}
.monde-region-pill .rp-emoji { font-size: 2.4rem; line-height: 1; }
.monde-region-pill .rp-name {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.monde-region-pill .rp-count {
  font-size: .72rem;
  color: var(--gold);
  font-weight: 600;
}

/* ── BOURSE CARD MONDE — VARIANTE COMPACTE ────────────────── */
.bourse-card-compact .bourse-card-inner {
  grid-template-columns: 200px 1fr;
}
.bourse-card-compact .bourse-card-left { padding: 22px 20px; }
.bourse-card-compact .bourse-card-name { font-size: 1.1rem; }
.bourse-card-compact .bourse-card-montant strong { font-size: 1.35rem; }
.bourse-card-compact .bourse-card-right { padding: 22px 26px; }

/* ── CONSEILS CANDIDATURE ─────────────────────────────────── */
.tips-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 72px;
}
.tips-header {
  background: var(--navy);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.tips-header-icon {
  width: 52px; height: 52px;
  background: rgba(201,168,76,0.15);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.3rem;
  flex-shrink: 0;
}
.tips-header h3 { color: var(--white); font-size: 1.5rem; margin: 0; }
.tips-header p  { color: rgba(255,255,255,0.52); font-size: .88rem; margin: 4px 0 0; }
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.tip-item {
  padding: 28px 30px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.tip-item:hover { background: var(--cream); }
.tip-item:nth-child(3n) { border-right: none; }
.tip-item:nth-child(n+4) { border-bottom: none; }
.tip-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(201,168,76,0.2);
  line-height: 1;
  margin-bottom: 10px;
}
.tip-item h4 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.tip-item p  { font-size: .86rem; color: var(--text-light); line-height: 1.65; margin: 0; }

/* ── FADE-IN BOURSE ───────────────────────────────────────── */
.fade-bourse {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-bourse.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .monde-regions-grid { grid-template-columns: repeat(3, 1fr); }
  .tips-grid { grid-template-columns: 1fr 1fr; }
  .tip-item:nth-child(3n) { border-right: 1px solid var(--border); }
  .tip-item:nth-child(2n) { border-right: none; }
  .tip-item:nth-child(n+5) { border-bottom: none; }
}

@media (max-width: 860px) {
  .monde-hero { height: 480px; }
  .continent-nav { top: 60px; }
  .cnav-btn { padding: 14px 16px; font-size: .75rem; }
  .continent-header { padding: 22px 22px; gap: 14px; }
  .continent-header-count { display: none; }
  .bourse-card-compact .bourse-card-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .monde-regions-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tips-grid { grid-template-columns: 1fr; }
  .tip-item { border-right: none; border-bottom: 1px solid var(--border); }
  .tip-item:last-child { border-bottom: none; }
  .monde-map-section { padding: 32px 22px; }
  .tips-header { padding: 22px 22px; }
  .continent-header h2 { font-size: 1.4rem; }
  .monde-hero { height: 420px; }
}