:root {
  --blue-900: #0a4166;
  --blue-800: #0d5484;
  --blue-700: #1f6b9d;
  --blue-100: #eaf3fb;
  --gold-600: #c89b2d;
  --gold-200: #f5ead0;
  --text: #163145;
  --muted: #5f7485;
  --bg: #f4f6f9;
  --card: #ffffff;
  --border: #d9e3ec;
  --shadow: 0 12px 28px rgba(7, 53, 86, 0.08);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
body.lang-ar { direction: rtl; text-align: right; }
body.lang-fr { direction: ltr; text-align: left; }
a { color: var(--blue-800); }
a:hover { color: var(--blue-900); text-decoration: none; }
img { max-width: 100%; }

.topbar {
  background: var(--blue-900);
  color: rgba(255,255,255,0.94);
  font-size: 0.92rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}
.topbar-links, .topbar-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a {
  color: rgba(255,255,255,0.94);
}
.topbar a:hover { color: #fff; }
.pill-year {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-weight: 700;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #ecf1f5;
}
.site-header .container {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.brand-logo {
  width: 82px;
  height: 104px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-text { min-width: 0; }
.brand-text .line {
  display: block;
  line-height: 1.32;
  font-weight: 700;
  color: var(--blue-900);
}
.brand-text .line.main { font-size: 0.94rem; }
.brand-text .line.sub { font-size: 0.82rem; }
.brand-text .line.last { margin-bottom: 0.28rem; }
.portal-name {
  display: inline-block;
  color: var(--gold-600);
  font-weight: 800;
  font-size: 0.92rem;
  border-top: 1px solid var(--gold-200);
  padding-top: 0.4rem;
  margin-top: 0.1rem;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.lang-btn {
  border: 1px solid var(--blue-800);
  background: #fff;
  color: var(--blue-800);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 700;
  min-width: 96px;
}
.lang-btn.active,
.lang-btn:hover {
  background: var(--blue-800);
  color: #fff;
}
.quick-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.main-nav {
  background: linear-gradient(90deg, var(--blue-900), var(--blue-800));
  box-shadow: 0 10px 24px rgba(10, 65, 102, 0.16);
}
.main-nav .navbar { padding: 0; }
.main-nav .navbar-brand,
.main-nav .nav-link {
  color: #fff !important;
  font-weight: 700;
}
.main-nav .navbar-brand {
  padding: 0.95rem 0.4rem;
  font-size: 1rem;
}
.main-nav .nav-link {
  padding: 1rem 1.05rem !important;
  border-bottom: 3px solid transparent;
}
.main-nav .nav-link.active,
.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
  background: rgba(255,255,255,0.08);
  border-bottom-color: var(--gold-600);
}

.hero-home {
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,0.14), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.12), transparent 18%),
    linear-gradient(135deg, var(--blue-900), #0d5e93 55%, #2b7db0 100%);
  color: #fff;
  padding: 2.5rem 0 2.2rem;
}
.hero-page {
  background: linear-gradient(180deg, #f9fbfd 0%, #edf3f8 100%);
  border-bottom: 1px solid var(--border);
  padding: 1.8rem 0;
}
.breadcrumb-lite {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.hero-page .breadcrumb-lite {
  color: var(--muted);
}
.breadcrumb-lite a { color: inherit; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 0.9rem;
}
.hero-page .hero-kicker {
  color: var(--blue-800);
  background: var(--blue-100);
  border-color: #d6e5f4;
}
.hero-title {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
}
.hero-page .hero-title { color: var(--blue-900); font-size: 1.9rem; }
.hero-subtitle {
  margin-top: 0.8rem;
  max-width: 760px;
  font-size: 1.02rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.92);
}
.hero-page .hero-subtitle { color: var(--muted); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}
.btn-home,
.btn-outline-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  padding: 0.78rem 1.15rem;
  min-width: 180px;
}
.btn-home {
  background: #fff;
  color: var(--blue-900);
  border: 1px solid #fff;
}
.btn-home:hover { color: var(--blue-900); background: #f3f7fb; }
.btn-outline-home {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.36);
}
.btn-outline-home:hover { color: #fff; background: rgba(255,255,255,0.08); }
.home-panel {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 1.25rem;
  backdrop-filter: blur(4px);
}
.home-panel .panel-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.home-panel .mini-stat {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.home-panel .mini-stat:last-child { border-bottom: none; }
.home-panel .label { color: rgba(255,255,255,0.84); }
.home-panel .value { font-weight: 800; }

.quick-strip {
  margin-top: -1.2rem;
  position: relative;
  z-index: 5;
}
.quick-grid {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1rem;
}
.quick-card {
  display: block;
  height: 100%;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  border: 1px solid #e5edf4;
  border-top: 4px solid var(--gold-600);
  border-radius: 15px;
  padding: 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.quick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(10, 65, 102, 0.10);
}
.quick-card .title {
  color: var(--blue-900);
  font-weight: 800;
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}
.quick-card .text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
}

.section {
  padding: 1.7rem 0;
}
.section-head {
  margin-bottom: 1.1rem;
}
.section-kicker {
  color: var(--gold-600);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.section-title {
  color: var(--blue-900);
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}
.section-subtitle {
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
}

.card-panel,
.info-card,
.service-card,
.sidebar-card,
.step-card,
.faq-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.card-panel,
.info-card,
.sidebar-card,
.step-card,
.faq-card { padding: 1.25rem; }
.card-panel.featured,
.sidebar-card.featured {
  border-top: 4px solid var(--gold-600);
}
.card-title {
  color: var(--blue-900);
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}
.feature-list,
.document-list,
.simple-list,
.mini-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li,
.document-list li,
.simple-list li,
.mini-links li {
  padding: 0.7rem 0;
  border-bottom: 1px solid #edf2f6;
  color: var(--text);
}
.feature-list li:last-child,
.document-list li:last-child,
.simple-list li:last-child,
.mini-links li:last-child { border-bottom: none; }
.feature-list li::before,
.document-list li::before,
.simple-list li::before {
  content: "•";
  color: var(--gold-600);
  font-weight: 800;
  margin-inline-end: 0.55rem;
}
.mini-links li a { font-weight: 700; }

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}
.service-card .thumb {
  background: linear-gradient(180deg, #fbfdff, #f1f6fb);
  border-bottom: 1px solid #e7eef4;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 185px;
  padding: 1.1rem;
}
.service-card .thumb img {
  max-height: 150px;
  object-fit: contain;
}
.service-card .body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.service-card h3 {
  color: var(--blue-900);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.7;
  margin-bottom: 0.45rem;
}
.service-card p {
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 0.8rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.tag {
  background: #eef5fb;
  color: var(--blue-800);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-weight: 700;
  font-size: 0.85rem;
}
.service-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.service-meta li {
  background: #fafcfe;
  border: 1px solid #ebf1f5;
  border-radius: 12px;
  padding: 0.68rem 0.8rem;
  color: #476173;
  margin-bottom: 0.55rem;
  line-height: 1.8;
}
.service-btn,
.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  padding: 0.78rem 1rem;
}
.service-btn {
  background: var(--blue-800);
  color: #fff;
  border: 1px solid var(--blue-800);
  margin-top: auto;
}
.service-btn:hover {
  color: #fff;
  background: var(--blue-900);
  border-color: var(--blue-900);
}
.outline-btn {
  background: #fff;
  color: var(--blue-800);
  border: 1px solid #cfe0ef;
}
.outline-btn:hover { background: #f4f8fc; }

.info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.info-table th,
.info-table td {
  padding: 0.85rem 0.8rem;
  border-bottom: 1px solid #edf2f6;
  vertical-align: top;
}
.info-table th {
  width: 34%;
  color: var(--blue-900);
  background: #fafcfe;
  font-weight: 800;
}
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }

.step-card .step-no {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-800);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  margin-bottom: 0.8rem;
}
.step-card h3 {
  color: var(--blue-900);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}
.step-card p {
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
}
.faq-card .question {
  color: var(--blue-900);
  font-size: 1.04rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}
.faq-card .answer {
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
}

.callout {
  background: linear-gradient(135deg, #f9fbfd, #f2f7fb);
  border: 1px solid #dde8f1;
  border-right: 4px solid var(--gold-600);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
body.lang-fr .callout {
  border-right: 1px solid #dde8f1;
  border-left: 4px solid var(--gold-600);
}
.callout .title {
  color: var(--blue-900);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}
.callout .text {
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
}

.footer-main {
  background: linear-gradient(180deg, var(--blue-900), #082f4b);
  color: rgba(255,255,255,0.94);
  margin-top: 2rem;
}
.footer-top {
  padding: 2rem 0 1.2rem;
}
.footer-main h5 {
  color: #fff;
  font-weight: 800;
  margin-bottom: 1rem;
}
.footer-main p,
.footer-main li,
.footer-main a { color: rgba(255,255,255,0.9); }
.footer-main a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 0.95rem 0;
  font-size: 0.92rem;
  text-align: center;
}

@media (max-width: 991.98px) {
  .brand-row,
  .brand-main {
    display: block;
    text-align: center;
  }
  .brand-logo { margin-bottom: 0.75rem; }
  .header-tools { justify-content: center; margin-top: 1rem; }
  .hero-title { font-size: 1.7rem; }
  .quick-strip { margin-top: 1rem; }
}

@media (max-width: 767.98px) {
  .topbar .container,
  .topbar-links,
  .topbar-meta,
  .hero-actions {
    display: block;
  }
  .topbar-links a,
  .topbar-meta span,
  .topbar-meta a { display: inline-block; margin: 0.1rem 0.5rem 0.1rem 0; }
  .hero-actions a { width: 100%; margin-bottom: 0.6rem; }
}


.tag.full-width {
  width: 100%;
  border-radius: 12px;
  text-align: center;
  padding: 0.6rem 0.9rem;
}
