/* ============================================================
   CANADA IMMIGRATION — AVE.CSS
   Page : pays-pouvant-presenter-l-autorisation-de-voyage-electronique.html
   Pattern : calqué sur visa-visiteur.css
   ============================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
.page-hero {
  position: relative;
  height: 480px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.ave-hero {
  background-image: url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=1600&q=80');
  background-position: center 55%;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,31,58,0.20) 0%, rgba(11,31,58,0.92) 100%);
}
.page-hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: 56px;
}
.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.page-hero h1 {
  color: var(--white);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  max-width: 820px;
  margin-bottom: 20px;
  line-height: 1.14;
}
.page-hero h1 em { font-style: italic; color: var(--gold-light); font-weight: 600; }
.page-hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.page-hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: .83rem;
}
.page-hero-meta-item i { color: var(--gold); }
.breadcrumb-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.breadcrumb-nav a, .breadcrumb-nav span { font-size: .82rem; color: rgba(255,255,255,0.5); transition: color .25s; }
.breadcrumb-nav a:hover { color: var(--gold-light); }
.breadcrumb-nav .sep    { color: rgba(255,255,255,0.22); font-size: .7rem; }
.breadcrumb-nav .current { color: var(--gold-light); font-weight: 500; }

/* ── STATS BAR ────────────────────────────────────────────── */
.ave-stats-bar {
  background: var(--navy);
  border-bottom: 2px solid rgba(201,168,76,0.2);
  padding: 20px 0;
}
.ave-stats-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.ave-stat { display: flex; align-items: center; gap: 12px; }
.ave-stat-icon {
  width: 40px; height: 40px;
  background: rgba(201,168,76,0.12);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: .95rem; flex-shrink: 0;
}
.ave-stat-text strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--gold); line-height: 1; }
.ave-stat-text span   { font-size: .72rem; color: rgba(255,255,255,0.45); letter-spacing: .08em; text-transform: uppercase; }
.ave-stat-divider { width: 1px; height: 34px; background: rgba(201,168,76,0.15); }

/* ── LAYOUT ───────────────────────────────────────────────── */
.ave-page { background: var(--cream); }
.ave-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
  padding: 72px 0 100px;
}

/* ── INTRO BLOCK ──────────────────────────────────────────── */
.intro-block {
  border-left: 4px solid var(--gold);
  padding: 22px 28px;
  background: var(--gold-pale);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 32px;
}
.intro-block p {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.78;
  margin: 0;
}
.intro-block strong { font-style: normal; color: var(--gold); }
.intro-block em { color: var(--navy); font-style: italic; font-weight: 600; }

/* ── ALERTES ──────────────────────────────────────────────── */
.ave-alert {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin: 20px 0;
}
.ave-alert.info    { background: rgba(30,65,117,0.06); border: 1px solid rgba(30,65,117,0.15); }
.ave-alert.warning { background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.3); }
.ave-alert-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.ave-alert.info    .ave-alert-icon { color: var(--navy-light); }
.ave-alert.warning .ave-alert-icon { color: var(--gold); }
.ave-alert p { margin: 0; font-size: .93rem; line-height: 1.7; color: var(--text); }
.ave-alert p strong { color: var(--navy); }

/* ── BARRE DE RECHERCHE ───────────────────────────────────── */
.ave-search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin: 32px 0 40px;
  transition: border-color .25s, box-shadow .25s;
}
.ave-search-bar:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.1);
}
.ave-search-bar i { color: var(--gold); font-size: 1rem; flex-shrink: 0; }
.ave-search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  outline: none;
}
.ave-search-bar input::placeholder { color: var(--text-light); }
#ave-search-count {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-pale);
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 1px;
}

/* ── SECTION TITLE ────────────────────────────────────────── */
.ave-section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.ave-st-icon {
  width: 48px; height: 48px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.1rem; flex-shrink: 0;
}
.ave-st-text span {
  display: block;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 4px;
}
.ave-st-text h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); color: var(--navy); margin: 0; }

/* ── RÉGIONS ──────────────────────────────────────────────── */
.ave-region { margin-bottom: 48px; }
.ave-region-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(201,168,76,0.25);
}
.ave-region-icon { font-size: 1.4rem; line-height: 1; }
.ave-region-header h3 {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
  flex: 1;
}
.ave-region-count {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ── GRILLE PAYS ──────────────────────────────────────────── */
.ave-pays-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.ave-pays-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--text);
  font-weight: 500;
  transition: border-color .22s, box-shadow .22s, transform .22s, background .22s;
  cursor: default;
  line-height: 1.35;
}
.ave-pays-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
  background: var(--gold-pale);
  transform: translateY(-2px);
}
.ave-flag { font-size: 1.3rem; line-height: 1; flex-shrink: 0; }
.ave-pays-card span:last-child { flex: 1; }
.ave-pays-card em { font-style: italic; font-size: .78rem; color: var(--text-light); display: block; }

/* Card spéciale (note) */
.ave-pays-special {
  background: rgba(201,168,76,0.06);
  border-color: rgba(201,168,76,0.3);
}
.ave-pays-special:hover { background: var(--gold-pale); }

/* ── AUCUN RÉSULTAT ───────────────────────────────────────── */
.ave-no-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 56px 32px;
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  margin: 32px 0;
}
.ave-no-result i { font-size: 2rem; color: var(--text-light); }
.ave-no-result p { font-size: 1rem; color: var(--text-light); margin: 0; }

/* ── CTA FINAL ────────────────────────────────────────────── */
.article-cta {
  background: var(--gold-pale);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  text-align: center;
}
.article-cta h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 12px; }
.article-cta p { color: var(--text-light); font-size: 1rem; max-width: 500px; margin-inline: auto; margin-bottom: 32px; }
.article-cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ── SIDEBAR ──────────────────────────────────────────────── */
.ave-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.sidebar-card-header { background: var(--navy); padding: 18px 22px; }
.sidebar-card-header h3 { color: var(--white); font-size: 1rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.sidebar-card-header h3 i { color: var(--gold); }
.sidebar-card-body { padding: 22px; }

/* Info list */
.ave-info-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.ave-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.ave-info-item:last-child { border-bottom: none; }
.ave-info-icon {
  width: 34px; height: 34px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: .82rem; flex-shrink: 0;
}
.ave-info-item div strong { display: block; font-size: .92rem; color: var(--navy); }
.ave-info-item div span   { display: block; font-size: .74rem; color: var(--text-light); }

/* Tableau comparatif */
.ave-compare-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.ave-compare-table thead th {
  padding: 8px 10px;
  text-align: left;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
}
.ave-compare-table thead th:not(:first-child) { text-align: center; }
.ave-compare-table tbody td {
  padding: 10px;
  border-bottom: 1px solid rgba(201,168,76,0.08);
  color: var(--text);
}
.ave-compare-table tbody tr:last-child td { border-bottom: none; }
.ave-compare-table tbody td:not(:first-child) { text-align: center; font-weight: 600; }
.ave-compare-table .good { color: #27ae60; }
.ave-compare-table .fa-check { color: #27ae60; }

/* Contact sidebar */
.sidebar-contact { text-align: center; }
.sidebar-contact p { font-size: .87rem; color: var(--text-light); margin-bottom: 16px; line-height: 1.65; }

/* Lien officiel */
.official-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 500;
  transition: background .25s;
  text-decoration: none;
}
.official-link:hover { background: var(--navy-light); }
.official-link i { color: var(--gold); }

/* Quick links visa */
.visa-quick-links { display: flex; flex-direction: column; gap: 10px; }
.visa-ql-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all .3s ease;
  text-decoration: none;
}
.visa-ql-item:hover { border-color: var(--gold); background: var(--gold-pale); transform: translateX(4px); }
.visa-ql-icon {
  width: 36px; height: 36px;
  background: var(--navy); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: .9rem; flex-shrink: 0;
}
.visa-ql-label { font-size: .88rem; font-weight: 600; color: var(--navy); }
.visa-ql-sub   { font-size: .75rem; color: var(--text-light); display: block; }


/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ave-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 56px 0 80px;
  }
  .ave-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .ave-pays-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .page-hero { height: 420px; }
  .page-hero h1 { font-size: 1.9rem; }
  .ave-stats-bar .container { justify-content: center; }
  .ave-stat-divider { display: none; }
  .ave-pays-grid { grid-template-columns: repeat(2, 1fr); }
  .ave-sidebar { grid-template-columns: 1fr; }
  .article-cta { padding: 32px 22px; }
}

@media (max-width: 480px) {
  .ave-pays-grid { grid-template-columns: 1fr 1fr; }
  .ave-search-bar { padding: 12px 16px; }
  .page-hero-meta { gap: 14px; }
}

@media (max-width: 360px) {
  .ave-pays-grid { grid-template-columns: 1fr; }
}

    /* NEW CORRECTION */
    .ave-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 60px;
  align-items: start;
  padding: 80px 0 100px;
}

.ave-main,
.ave-sidebar {
  min-width: 0;
}

@media (max-width: 768px) {
  .ave-layout {
    grid-template-columns: 1fr;
    padding: 60px 16px;
  }
}