/* ============================================================
   CANADA IMMIGRATION — CRDV.CSS
   Centre de réception des demandes de visa & biométriques
   Design luxe & voyage | Bleu nuit + Or + Blanc crème
   ============================================================ */

/* ── HERO INTERNE ─────────────────────────────────────────── */
.page-hero {
  position: relative;
  height: 500px;
  display: flex;
  align-items: flex-end;
  background-image: url('https://images.unsplash.com/photo-1596524430615-b46475ddff6e?w=1600&q=80');
  background-size: cover;
  background-position: center 35%;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11,31,58,0.18) 0%,
    rgba(11,31,58,0.93) 100%
  );
}
.page-hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: 60px;
}
.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.5rem);
  max-width: 800px;
  margin-bottom: 20px;
  line-height: 1.12;
}
.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.72);
  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; }

/* ── LAYOUT PRINCIPAL ─────────────────────────────────────── */
.crdv-page { background: var(--cream); }

.crdv-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
  padding: 80px 0 100px;
}

/* ── INTRO BLOCK ──────────────────────────────────────────── */
.intro-block {
  border-left: 4px solid var(--gold);
  padding: 24px 32px;
  background: var(--gold-pale);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 60px;
}
.intro-block p {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.75;
  margin: 0;
}
.intro-block strong { font-style: normal; color: var(--gold); }

/* ── SECTION ──────────────────────────────────────────────── */
.crdv-section {
  margin-bottom: 72px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.crdv-section.visible { opacity: 1; transform: translateY(0); }

.crdv-section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.crdv-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(11,31,58,0.2);
}
.crdv-section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin: 0;
}
.crdv-section-header h2 span {
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

/* ── PHOTO ────────────────────────────────────────────────── */
.crdv-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 32px;
  position: relative;
}
.crdv-photo img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.crdv-photo:hover img { transform: scale(1.03); }
.crdv-photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px 24px 16px;
  background: linear-gradient(transparent, rgba(11,31,58,0.80));
  color: rgba(255,255,255,0.85);
  font-size: .82rem;
  font-style: italic;
}

/* ── BODY TEXT ────────────────────────────────────────────── */
.crdv-body p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 18px;
}
.crdv-body strong { color: var(--navy); font-weight: 600; }
.crdv-body em     { color: var(--text-light); font-style: italic; }

/* ── STAT BANNER ──────────────────────────────────────────── */
.stat-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin: 32px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stat-banner-item {
  background: var(--navy);
  padding: 28px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.stat-banner-item strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
}
.stat-banner-item span {
  font-size: .76rem;
  color: rgba(255,255,255,0.52);
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ── PROCESS TIMELINE ─────────────────────────────────────── */
.process-timeline {
  position: relative;
  margin: 32px 0;
  padding-left: 40px;
}
.process-timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(201,168,76,0.1));
}
.process-step {
  position: relative;
  margin-bottom: 30px;
}
.process-step:last-child { margin-bottom: 0; }
.process-step-num {
  position: absolute;
  left: -40px;
  top: 0;
  width: 30px;
  height: 30px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: .82rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--gold);
}
.process-step-body h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.process-step-body p {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.65;
  margin: 0;
}
.process-step-tag {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(201,168,76,0.3);
  margin-top: 8px;
}

/* ── SERVICES GRID (ce que fait le CRDV) ─────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
  transform: translateY(-4px);
}
.service-card:hover::after { transform: scaleX(1); }
.service-card-icon {
  width: 50px;
  height: 50px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.service-card h4 { font-size: 1rem; margin-bottom: 8px; color: var(--navy); }
.service-card p  { font-size: .88rem; color: var(--text-light); line-height: 1.65; margin: 0; }

/* ── REGIONS GRID (continents) ────────────────────────────── */
.regions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}
.region-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  transition: border-color .25s, box-shadow .25s, transform .25s;
  cursor: default;
}
.region-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}
.region-emoji {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}
.region-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.region-count {
  font-size: .78rem;
  color: var(--text-light);
}

/* ── CHECK LIST ───────────────────────────────────────────── */
.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: .97rem;
  color: var(--text);
  line-height: 1.6;
}
.check-list li::before {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── ALERT BOX ────────────────────────────────────────────── */
.alert-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  margin: 24px 0;
}
.alert-box.info {
  background: rgba(30,65,117,0.06);
  border: 1px solid rgba(30,65,117,0.15);
}
.alert-box.warning {
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.3);
}
.alert-box.success {
  background: rgba(37,211,102,0.07);
  border: 1px solid rgba(37,211,102,0.2);
}
.alert-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.alert-box.info    .alert-icon { color: var(--navy-light); }
.alert-box.warning .alert-icon { color: var(--gold); }
.alert-box.success .alert-icon { color: #25d366; }
.alert-box p { margin: 0; font-size: .93rem; line-height: 1.7; color: var(--text); }
.alert-box p strong { color: var(--navy); }

/* ── FRAIS TABLE ──────────────────────────────────────────── */
.frais-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}
.frais-table thead tr { background: var(--navy); }
.frais-table thead th {
  padding: 16px 20px;
  text-align: left;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  border: none;
}
.frais-table tbody tr {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.frais-table tbody tr:hover { background: var(--gold-pale); }
.frais-table tbody tr:last-child { border-bottom: none; }
.frais-table tbody td {
  padding: 16px 20px;
  font-size: .92rem;
  color: var(--text);
  vertical-align: top;
}
.frais-table tbody td:first-child { font-weight: 600; color: var(--navy); }
.frais-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

/* ── CTA LINK BLOCK ───────────────────────────────────────── */
.crdv-link-block {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  gap: 28px;
  border: 1px solid rgba(201,168,76,0.2);
  position: relative;
  overflow: hidden;
}
.crdv-link-block::before {
  content: 'CRDV';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  line-height: 1;
}
.crdv-link-icon {
  width: 68px;
  height: 68px;
  background: var(--gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--navy);
  flex-shrink: 0;
}
.crdv-link-text h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 8px; }
.crdv-link-text p  { color: rgba(255,255,255,0.65); font-size: .92rem; margin: 0 0 18px; line-height: 1.55; }
.crdv-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--navy);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gold);
  transition: all .3s ease;
  text-decoration: none;
}
.crdv-link-btn:hover { background: transparent; color: var(--gold); }

/* ── PROMO APC ────────────────────────────────────────────── */
.apc-promo {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  gap: 28px;
  border: 1px solid rgba(201,168,76,0.2);
}
.apc-promo-icon {
  width: 64px;
  height: 64px;
  background: var(--gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--navy);
  flex-shrink: 0;
}
.apc-promo-text h4 { color: var(--white); font-size: 1.15rem; margin-bottom: 6px; }
.apc-promo-text p  { color: rgba(255,255,255,0.65); font-size: .9rem; margin: 0 0 16px; line-height: 1.55; }
.apc-promo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gold);
  transition: all .3s ease;
}
.apc-promo-link:hover { background: transparent; color: var(--gold); }

/* ── DIVIDER ──────────────────────────────────────────────── */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 56px 0;
  opacity: 0.4;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .25s;
}
.faq-item:hover { border-color: var(--gold); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  transition: color .25s;
}
.faq-question:hover { color: var(--gold); }
.faq-question i {
  font-size: .8rem;
  color: var(--gold);
  transition: transform .35s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner {
  padding: 16px 24px 20px;
  font-size: .93rem;
  color: var(--text-light);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}

/* ── 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;
  margin-top: 16px;
}
.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: 520px;
  margin-inline: auto;
  margin-bottom: 32px;
}
.article-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── SIDEBAR ──────────────────────────────────────────────── */
.crdv-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.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; }

.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li { border-bottom: 1px solid rgba(201,168,76,0.12); }
.sidebar-nav li:last-child { border-bottom: none; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: .9rem;
  color: var(--text);
  font-weight: 500;
  transition: color .25s, padding-left .25s;
}
.sidebar-nav a:hover { color: var(--gold); padding-left: 4px; }
.sidebar-nav a i { color: var(--gold); font-size: .75rem; opacity: 0; transition: opacity .25s; }
.sidebar-nav a:hover i { opacity: 1; }

/* Visa quick links */
.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; }

/* Contact rapide */
.sidebar-contact { text-align: center; }
.sidebar-contact p {
  font-size: .88rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}
.sidebar-contact .btn-whatsapp {
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
}
.sidebar-contact .btn-primary { width: 100%; justify-content: center; }

/* Official link */
.official-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--white);
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  font-size: .84rem;
  font-weight: 500;
  transition: background .25s;
  text-decoration: none;
}
.official-link:hover { background: var(--navy-light); color: var(--white); }
.official-link i { color: var(--gold); font-size: 1rem; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .crdv-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 60px 0 80px;
  }
  .crdv-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .regions-grid  { grid-template-columns: repeat(3, 1fr); }
  .stat-banner   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .page-hero { height: 400px; }
  .page-hero h1 { font-size: 1.9rem; }
  .crdv-layout { padding: 48px 0 64px; }
  .crdv-sidebar { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .regions-grid  { grid-template-columns: repeat(2, 1fr); }
  .stat-banner   { grid-template-columns: repeat(2, 1fr); }
  .crdv-link-block { flex-direction: column; text-align: center; }
  .crdv-link-block::before { display: none; }
  .apc-promo  { flex-direction: column; text-align: center; }
  .article-cta { padding: 32px 22px; }
  .intro-block { padding: 18px 22px; }
  .page-hero-meta { gap: 14px; }
  .frais-table { font-size: .82rem; }
  .frais-table thead th,
  .frais-table tbody td { padding: 12px 14px; }
}

@media (max-width: 480px) {
  .regions-grid { grid-template-columns: 1fr 1fr; }
}


    /* NEW CORRECTION */
    .crdv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 60px;
  align-items: start;
  padding: 80px 0 100px;
}

.crdv-main,
.crdv-sidebar {
  min-width: 0;
}

@media (max-width: 768px) {
  .crdv-layout {
    grid-template-columns: 1fr;
    padding: 60px 16px;
  }
}