/* ============================================================
   EXEMPTION-QC.CSS
   Composants additionnels pour exemption-frais-etrangers-quebec.html
   Charger APRÈS bourse-monde.css
   ============================================================ */

/* ── RESET OVERFLOW ───────────────────────────────────────── */
html, body { overflow-x: hidden; max-width: 100%; }
*, *::before, *::after { box-sizing: border-box; }

/* ── HERO ─────────────────────────────────────────────────── */
.article-hero.exemption-hero {
  background-image: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?w=1800&q=85');
  background-position: center 40%;
}

/* ══════════════════════════════════════════
   GRILLE 5 VOIES D'EXEMPTION
══════════════════════════════════════════ */
.exqc-voies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 48px;
}
.exqc-voie-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  position: relative;
  overflow: hidden;
  transition: box-shadow .3s, border-color .3s, transform .3s;
  opacity: 0;
  transform: translateY(14px);
}
.exqc-voie-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
}
.exqc-voie-card.visible { opacity: 1; transform: translateY(0); }
.exqc-voie-card:hover   { box-shadow: var(--shadow-md); border-color: var(--gold); transform: translateY(-4px); }
.exqc-voie-num {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 700;
  color: rgba(201,168,76,.18);
  line-height: 1; margin-bottom: 2px;
}
.exqc-voie-icon {
  width: 42px; height: 42px;
  background: var(--navy); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: .95rem; margin-bottom: 12px;
}
.exqc-voie-card h4 { font-size: .9rem; color: var(--navy); margin-bottom: 6px; line-height: 1.3; }
.exqc-voie-card p  { font-size: .8rem; color: var(--text-light); line-height: 1.6; margin: 0 0 12px; }
.exqc-voie-result {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(201,168,76,.15);
  font-size: .78rem; font-weight: 600; color: var(--gold);
  display: flex; align-items: center; gap: 6px;
}

/* ══════════════════════════════════════════
   TABLEAU TARIFAIRE
══════════════════════════════════════════ */
.exqc-tarif-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 28px 0 48px;
}
.exqc-tarif-header {
  background: var(--navy);
  padding: 18px 28px;
  display: flex; align-items: center; gap: 12px;
}
.exqc-tarif-header i  { color: var(--gold); font-size: 1.1rem; }
.exqc-tarif-header h3 { color: var(--white); margin: 0; font-size: 1rem; flex: 1; }
.exqc-tarif-header span {
  font-size: .68rem; color: rgba(255,255,255,.4);
  letter-spacing: .12em; text-transform: uppercase;
  flex-shrink: 0;
}
.exqc-tarif-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}
.exqc-tarif-table {
  width: 100%; border-collapse: collapse;
  font-size: .86rem; min-width: 560px;
}
.exqc-tarif-table thead th {
  background: rgba(11,31,58,.04);
  color: var(--navy); font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 11px 18px; text-align: left;
  border-bottom: 1px solid rgba(201,168,76,.15);
  white-space: nowrap;
}
.exqc-tarif-table tbody td {
  padding: 13px 18px; border-bottom: 1px solid rgba(201,168,76,.08);
  color: var(--text); vertical-align: middle; line-height: 1.5;
}
.exqc-tarif-table tbody tr:last-child td { border-bottom: none; }
.exqc-tarif-table tbody tr:nth-child(even) td { background: var(--cream); }
.exqc-tarif-table tfoot td {
  background: var(--gold-pale); font-size: .75rem; color: var(--text-light);
  padding: 10px 18px; border-top: 1px solid rgba(201,168,76,.2); font-style: italic;
}
.t-statut { font-weight: 600; color: var(--navy); font-size: .88rem; }
.t-prix { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.t-prix.vert  { color: #27ae60; }
.t-prix.gold  { color: var(--gold); }
.t-prix.rouge { color: #c0392b; }
.t-note { font-size: .78rem; color: var(--text-light); }
.t-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
}
.t-badge.save  { background: rgba(39,174,96,.1); color: #1a7341; border: 1px solid rgba(39,174,96,.2); }
.t-badge.plein { background: rgba(192,57,43,.08); color: #c0392b; border: 1px solid rgba(192,57,43,.2); }

/* ══════════════════════════════════════════
   ALERTES INLINE
══════════════════════════════════════════ */
.exqc-alerte {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 14px 18px; border-radius: var(--radius-md);
  margin: 14px 0; font-size: .87rem; line-height: 1.7;
  word-break: break-word; overflow-wrap: break-word;
}
.exqc-alerte.info    { background: rgba(30,65,117,.06); border: 1px solid rgba(30,65,117,.15); }
.exqc-alerte.warning { background: rgba(201,168,76,.1);  border: 1px solid rgba(201,168,76,.3); }
.exqc-alerte > i { font-size: 1rem; flex-shrink: 0; margin-top: 3px; }
.exqc-alerte.info    > i { color: var(--navy-light); }
.exqc-alerte.warning > i { color: var(--gold); }
.exqc-alerte p { margin: 0; color: var(--text); min-width: 0; word-break: break-word; }
.exqc-alerte p strong { color: var(--navy); }

/* ══════════════════════════════════════════
   NUAGE DE PAYS
══════════════════════════════════════════ */
.exqc-pays-cloud { margin: 14px 0; width: 100%; }
.exqc-pays-label {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 10px;
  display: flex; align-items: center; gap: 7px;
}
.exqc-pays-label i { color: var(--gold); }
.exqc-pays-chips { display: flex; flex-wrap: wrap; gap: 7px; width: 100%; }
.exqc-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; font-weight: 500;
  padding: 5px 12px; border-radius: 100px;
  background: var(--white); border: 1px solid var(--border);
  color: var(--text); white-space: nowrap; flex-shrink: 0;
  transition: all .2s;
}
.exqc-chip:hover { background: var(--navy); border-color: var(--navy); color: var(--gold); }
.exqc-chip.special {
  background: var(--gold-pale); border-color: rgba(201,168,76,.35);
  font-weight: 600; color: var(--navy);
}
.exqc-chip-more {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 600; padding: 5px 12px;
  border-radius: 100px; background: rgba(11,31,58,.05);
  border: 1px dashed rgba(11,31,58,.2); color: var(--text-light); flex-shrink: 0;
}

/* ══════════════════════════════════════════
   TABLEAU UNIVERSITÉS PARTICIPANTES
══════════════════════════════════════════ */
.exqc-univ-section {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  margin: 28px 0 48px; max-width: 100%;
}
.exqc-univ-header {
  background: var(--navy); padding: 18px 28px;
  display: flex; align-items: center; gap: 12px;
}
.exqc-univ-header i  { color: var(--gold); font-size: 1.1rem; }
.exqc-univ-header h3 { color: var(--white); margin: 0; font-size: 1rem; flex: 1; }
.exqc-univ-header span {
  font-size: .7rem; color: rgba(255,255,255,.4);
  letter-spacing: .12em; text-transform: uppercase;
}
.exqc-univ-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}
.exqc-univ-table {
  width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 520px;
}
.exqc-univ-table thead th {
  background: rgba(11,31,58,.04); color: var(--navy);
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 11px 18px; text-align: left;
  border-bottom: 1px solid rgba(201,168,76,.15);
}
.exqc-univ-table tbody td {
  padding: 13px 18px; border-bottom: 1px solid rgba(201,168,76,.08);
  vertical-align: middle; color: var(--text);
}
.exqc-univ-table tbody tr:last-child td { border-bottom: none; }
.exqc-univ-table tbody tr:nth-child(even) td { background: var(--cream); }
.u-name  { font-weight: 600; color: var(--navy); display: block; margin-bottom: 3px; }
.u-ville { font-size: .75rem; color: var(--text-light); }
.u-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px; margin-top: 3px;
}
.u-badge.hors-cmm { background: rgba(39,174,96,.1); color: #1a7341; border: 1px solid rgba(39,174,96,.2); }
.u-quota { font-size: .8rem; color: var(--text-light); }
.u-quota strong { color: var(--navy); }
.u-lien {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; font-weight: 600; color: var(--navy);
  text-decoration: none; transition: color .2s;
}
.u-lien:hover { color: var(--gold); }

/* ══════════════════════════════════════════
   FAQ ACCORDÉON
══════════════════════════════════════════ */
.exqc-faq { display: flex; flex-direction: column; gap: 10px; margin-bottom: 48px; }
.exqc-faq-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; transition: border-color .25s;
}
.exqc-faq-item.open { border-color: rgba(201,168,76,.4); }
.exqc-faq-q {
  display: flex; align-items: center; gap: 14px;
  padding: 17px 20px; cursor: pointer; user-select: none;
}
.exqc-faq-ico {
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--navy); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: .82rem;
}
.exqc-faq-q span { flex: 1; font-size: .9rem; font-weight: 600; color: var(--navy); line-height: 1.4; }
.exqc-faq-chev { color: var(--gold); font-size: .78rem; transition: transform .3s; flex-shrink: 0; }
.exqc-faq-item.open .exqc-faq-chev { transform: rotate(180deg); }
.exqc-faq-ans { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.4,0,.2,1); }
.exqc-faq-item.open .exqc-faq-ans { max-height: 600px; }
.exqc-faq-inner {
  padding: 0 20px 18px 68px;
  font-size: .88rem; color: var(--text); line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.exqc-faq-inner p { margin-bottom: 10px; }
.exqc-faq-inner p:last-child { margin-bottom: 0; }
.exqc-faq-inner strong { color: var(--navy); }

/* ══════════════════════════════════════════
   CHECKLIST SIDEBAR
══════════════════════════════════════════ */
.exqc-checklist { display: flex; flex-direction: column; gap: 9px; }
.exqc-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .83rem; color: var(--text); line-height: 1.55;
}
.exqc-check i { color: var(--gold); font-size: .74rem; margin-top: 3px; flex-shrink: 0; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .exqc-voies-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .exqc-voies-grid { grid-template-columns: 1fr; }
  .exqc-faq-inner { padding-left: 20px; }
  .exqc-tarif-table { font-size: .78rem; }
  .exqc-tarif-table thead th,
  .exqc-tarif-table tbody td { padding: 10px 12px; }
  .exqc-univ-table { font-size: .78rem; }
  .exqc-univ-table thead th,
  .exqc-univ-table tbody td { padding: 10px 12px; }
}

@media (max-width: 420px) {
  .exqc-chip { font-size: .72rem; padding: 4px 9px; }
}


/*NEW FAQ DROPDOWN WORKING*/

/* Conteneur réponse */
.eq-faq-ans {
  display: none;
  padding: 0 16px;
}

.eq-faq-item.open .eq-faq-ans {
  display: block;
}

/* Intérieur réponse */
.eq-faq-ans-inner {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 10px;
  line-height: 1.6;
  color: #334155;
  border: 1px solid #e2e8f0;
}

/* Question */
.eq-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 14px 16px;
  border-radius: 12px;
  transition: all 0.25s ease;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

/* Hover effet */
.eq-faq-q:hover {
  background: #f1f5f9;
}

/* Icône gauche */
.eq-faq-ico {
  color: #3b82f6;
  font-size: 18px;
}

/* Texte question */
.eq-faq-q span {
  flex: 1;
  font-weight: 500;
  color: #0f172a;
}

/* Chevron */
.eq-faq-chev {
  transition: transform 0.3s ease;
  color: #64748b;
}

/* Rotation chevron */
.eq-faq-item.open .eq-faq-chev {
  transform: rotate(180deg);
}

/* Espacement entre items */
.eq-faq-item {
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  .eq-faq-q {
    padding: 12px;
    font-size: 14px;
  }

  .eq-faq-ans-inner {
    padding: 14px;
    font-size: 14px;
  }

  .eq-faq-ico {
    font-size: 16px;
  }
}





