/* ================================================================
   Tawssil Dawli (توصيل دولي) by GO PLUS EXPRESS — C2C
   Charte: jaune #F5B922 / teal #1A8A99 / blanc / gris foncé #2C2C2C
   ================================================================ */

:root {
  --gold: #F5B922;
  --gold-dark: #d99e0a;
  --teal: #1A8A99;
  --teal-dark: #126570;
  --teal-light: #e6f4f6;
  --ink: #2C2C2C;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-lg: 16px;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max); margin: 0 auto;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
  font-weight: 500; font-size: 15px; color: var(--ink);
  padding: 8px 4px; border-bottom: 2px solid transparent; transition: all .2s;
}
.site-nav a:hover { color: var(--teal); border-bottom-color: var(--teal); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: 14px;
  border: none; cursor: pointer;
  transition: all .2s; text-decoration: none;
  white-space: nowrap;
}
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--teal { background: var(--teal); color: white; }
.btn--teal:hover { background: var(--teal-dark); color: white; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn--ghost:hover { background: var(--teal); color: white; }
.btn--lg { padding: 14px 28px; font-size: 16px; }

.btn-pro {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(26,138,153,.3);
}
.btn-pro:hover { color: white; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(26,138,153,.4); }
.btn-pro::after { content: '→'; font-weight: bold; }

.btn-cashplus {
  background: linear-gradient(135deg, #ff8c1a 0%, #f0a000 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(255,140,26,.3);
  margin-right: 8px;
}
.btn-cashplus:hover { color: white; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,140,26,.45); }
.btn-cashplus__icon { margin-right: 4px; }
@media (max-width: 900px) {
  .btn-cashplus { display: none; }   /* l'espace agence reste accessible via /cashplus_store */
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--teal-light) 0%, #fff 100%);
  padding: 60px 0 40px;
  overflow: hidden;
}
.hero__banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 70vh;
  margin-bottom: 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.hero__banner iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
/* Mode image (FedEx/DHL/UPS sur tarmac) */
.hero__banner--image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero__banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(15, 23, 42, .12) 0%,
    rgba(15, 23, 42, .35) 60%,
    rgba(26, 138, 153, .55) 100%);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 24px;
  pointer-events: none;
}
.hero__banner-badge {
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  backdrop-filter: blur(6px);
}
.hero__banner-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: white; gap: 12px; text-align: center; padding: 20px;
}
.hero__banner-placeholder h2 { font-size: clamp(24px, 4vw, 42px); font-weight: 700; }
.hero__banner-placeholder p { font-size: clamp(14px, 1.6vw, 18px); opacity: .9; max-width: 600px; }

.hero__title {
  text-align: center;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.hero__title strong { color: var(--teal); }
.hero__title em { color: var(--gold); font-style: normal; }
.hero__subtitle {
  text-align: center;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
  max-width: 720px; margin: 0 auto 36px;
}

/* ============ SIMULATEUR ============ */
.simulator {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  max-width: 980px;
  margin: 0 auto;
  border-top: 4px solid var(--gold);
}
.simulator h2 {
  font-size: 22px; font-weight: 700; margin-bottom: 6px; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.simulator h2::before { content: '📦'; }
.simulator__sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 720px) { .sim-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.field input, .field select {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px; color: var(--ink);
  background: white; transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,138,153,.12);
}
.field--inline { flex-direction: row; gap: 10px; align-items: end; }
.field--inline > .field { flex: 1; }

.shipment-type {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px;
}
.type-chip {
  padding: 10px 16px; border: 1.5px solid var(--border);
  border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 14px;
  transition: all .15s; background: white;
}
.type-chip:hover { border-color: var(--teal); }
.type-chip.is-active {
  background: var(--teal); color: white; border-color: var(--teal);
}

.packages { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.package-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 10px; align-items: end;
  padding: 12px;
  background: var(--bg-soft);
  border-radius: 10px;
  border: 1px dashed var(--border);
}
.package-row .field input { padding: 10px 12px; font-size: 14px; }
.icon-btn {
  width: 36px; height: 36px;
  border: none; border-radius: 8px; cursor: pointer;
  background: #fee2e2; color: #b91c1c; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: #fecaca; }
.add-package {
  background: transparent; border: 1.5px dashed var(--teal); color: var(--teal);
  padding: 10px; border-radius: 10px; cursor: pointer; font-weight: 600;
  margin-bottom: 18px; width: 100%;
}
.add-package:hover { background: var(--teal-light); }

.simulator__submit { display: flex; justify-content: center; }
.simulator__submit .btn { min-width: 240px; justify-content: center; }

/* ════════════════════════════════════════════════════════════════
   SIMULATEUR v2 — compact horizontal (Upela-style)
   ════════════════════════════════════════════════════════════════ */
.simulator-v2 {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 32px;
  max-width: 1080px;
  margin: 0 auto;
  border-top: 4px solid var(--gold);
  display: flex; flex-direction: column; gap: 18px;
}
.simulator-v2__title {
  margin: 0; font-size: 20px; font-weight: 700; color: var(--ink);
  text-align: center;
}
.sv2-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: end; }
.sv2-row--route { gap: 8px; align-items: end; }
.sv2-row--meta  { justify-content: space-between; }
.sv2-row--package { gap: 0; }

.sv2-block { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 220px; }
.sv2-block label {
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.sv2-block--date { flex: 0 0 auto; min-width: 180px; }
.sv2-block--date input {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit; color: var(--ink);
}

.sv2-inline {
  display: flex; gap: 6px;
  border: 1.5px solid var(--border); border-radius: 10px; background: white;
  overflow: hidden;
}
.sv2-inline:focus-within {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,138,153,.12);
}
.sv2-inline select, .sv2-inline input {
  padding: 11px 12px; border: none; outline: none;
  font-size: 14px; font-family: inherit; color: var(--ink); background: transparent;
}
.sv2-inline select { border-right: 1px solid var(--border); flex: 0 0 90px; font-weight: 600; }
.sv2-inline input { flex: 1; min-width: 0; }

.sv2-arrow {
  font-size: 22px; color: var(--gold); font-weight: 800;
  align-self: center; padding: 0 4px; margin-bottom: 10px;
}

.sv2-tabs { display: flex; gap: 6px; }
.sv2-tab {
  padding: 9px 18px; border: 1.5px solid var(--border);
  border-radius: 10px; cursor: pointer; font-weight: 500; font-size: 14px;
  background: white; transition: all .15s; color: var(--ink); font-family: inherit;
}
.sv2-tab:hover { border-color: var(--gold); }
.sv2-tab.is-active {
  background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 700;
}

.sv2-pack {
  display: grid; grid-template-columns: 0.7fr 1fr 1fr 1fr 1fr auto; gap: 10px;
  width: 100%; padding: 0 0 8px; background: transparent; border: none;
  align-items: end;
}
.sv2-pack-remove {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #fecaca;
  background: #fef2f2; color: #dc2626; font-size: 22px; line-height: 1;
  cursor: pointer; font-family: inherit; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.sv2-pack-remove:hover { background: #dc2626; color: #fff; border-color: #dc2626; }

.sv2-add-pack {
  background: transparent; color: var(--teal); border: 1.5px dashed var(--teal);
  padding: 8px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.sv2-add-pack:hover { background: var(--teal); color: #fff; }
.sv2-add-pack span { font-size: 16px; font-weight: 700; margin-right: 4px; }
.sv2-field { display: flex; flex-direction: column; gap: 4px; }
.sv2-field label { font-size: 12px; color: var(--muted); font-weight: 500; }
.sv2-field input {
  padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit; color: var(--ink);
  text-align: center;
}
.sv2-field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,138,153,.12); }

.sv2-submit {
  background: var(--gold); color: var(--ink); border: none;
  padding: 14px 32px; border-radius: 12px;
  font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit;
  margin: 4px auto 0; min-width: 320px;
  box-shadow: 0 4px 14px rgba(245,185,34,.35);
  transition: all .15s;
}
.sv2-submit:hover { background: var(--gold-dark); transform: translateY(-1px); }
.sv2-submit:disabled { opacity: .6; cursor: wait; }

@media (max-width: 880px) {
  .simulator-v2 { padding: 22px 18px; }
  .sv2-row--route { flex-direction: column; align-items: stretch; }
  .sv2-arrow { transform: rotate(90deg); margin: 0 auto; }
  .sv2-block { min-width: 0; }
  .sv2-row--meta { flex-direction: column; align-items: stretch; }
  .sv2-tabs { overflow-x: auto; }
  .sv2-pack { grid-template-columns: 1fr 1fr; }
  .sv2-submit { width: 100%; min-width: 0; }
}

/* ════════════════════════════════════════════════════════════════
   RÉSULTATS v2 — liste compacte (Upela-style)
   ════════════════════════════════════════════════════════════════ */
.results-v2 { padding: 36px 0 60px; background: var(--bg-soft); }

.rv2-summary {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: white; border-radius: 12px; padding: 14px 20px;
  box-shadow: var(--shadow-sm); margin-bottom: 14px;
  border: 1px solid var(--border);
}
.rv2-summary__cell { display: flex; flex-direction: column; gap: 2px; }
.rv2-summary__label {
  font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 600;
}
.rv2-summary__cell strong { font-size: 14px; color: var(--ink); }
.rv2-summary__sep { font-size: 18px; color: var(--gold); font-weight: 800; }
.rv2-summary__edit {
  margin-left: auto;
  background: transparent; border: 1.5px solid var(--teal); color: var(--teal);
  padding: 8px 18px; border-radius: 10px; cursor: pointer;
  font-size: 13px; font-weight: 600; font-family: inherit;
  transition: background .15s;
}
.rv2-summary__edit:hover { background: var(--teal-light); }

.rv2-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 12px;
}
.rv2-tab {
  background: white; border: 2px solid var(--border); border-radius: 12px;
  padding: 14px 16px; cursor: pointer; font-family: inherit;
  text-align: left; transition: all .15s;
  display: flex; flex-direction: column; gap: 4px;
}
.rv2-tab:hover { border-color: var(--gold); }
.rv2-tab.is-active {
  border-color: var(--teal); background: var(--teal-light);
}
.rv2-tab__title {
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.rv2-tab__sub {
  font-size: 12px; color: var(--muted);
}
.rv2-tab__sub strong { color: var(--ink); }
.rv2-tab.is-active .rv2-tab__title { color: var(--teal-dark); }

.rv2-list { display: flex; flex-direction: column; gap: 10px; }
.rv2-row {
  display: grid; grid-template-columns: 130px 1fr auto auto; align-items: center; gap: 18px;
  background: white; border-radius: 12px; padding: 14px 20px;
  border: 2px solid transparent; box-shadow: var(--shadow-sm);
  transition: all .15s;
}
.rv2-row:hover { border-color: var(--gold); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.rv2-row.is-best { border-color: var(--gold); }

.rv2-row__logo img { height: 36px; max-width: 110px; object-fit: contain; }
.rv2-row__info { min-width: 0; }
.rv2-row__name { font-size: 15px; font-weight: 700; color: var(--ink); }
.rv2-row__service { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.rv2-row__meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.rv2-row__tags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.rv2-tag {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
}
.rv2-tag--cheap { background: #fef3c7; color: #92400e; }
.rv2-tag--fast  { background: var(--teal-light); color: var(--teal-dark); }

.rv2-row__price { text-align: right; }
.rv2-row__amount { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.rv2-row__currency { font-size: 11px; color: var(--muted); font-weight: 500; }

.rv2-row__cta {
  background: var(--gold); color: var(--ink); border: none;
  padding: 11px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background .15s; white-space: nowrap;
}
.rv2-row__cta:hover { background: var(--gold-dark); }

.rv2-empty {
  background: white; border-radius: 12px; padding: 40px;
  text-align: center; color: var(--muted);
}
.rv2-empty h3 { color: var(--ink); margin-bottom: 8px; }

@media (max-width: 760px) {
  .rv2-tabs { grid-template-columns: 1fr; }
  .rv2-summary { padding: 12px 14px; gap: 10px; }
  .rv2-summary__edit { margin-left: 0; width: 100%; }
  .rv2-row {
    grid-template-columns: 70px 1fr auto;
    grid-template-areas: "logo info price" "cta cta cta";
    gap: 10px; padding: 12px;
  }
  .rv2-row__logo  { grid-area: logo; }
  .rv2-row__logo img { max-width: 70px; height: auto; max-height: 30px; }
  .rv2-row__info  { grid-area: info; min-width: 0; }
  .rv2-row__name  { font-size: 13px; }
  .rv2-row__price { grid-area: price; }
  .rv2-row__amount { font-size: 18px; }
  .rv2-row__cta   { grid-area: cta; width: 100%; }
}

/* ════════════════════════════════════════════════════════════════
   SÉLECTEUR DE LANGUE (header)
   ════════════════════════════════════════════════════════════════ */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: white;
}
.lang-switch__option {
  background: transparent;
  border: none;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  border-right: 1px solid var(--border);
}
.lang-switch__option:last-child { border-right: none; }
.lang-switch__option:hover { background: var(--bg-soft); color: var(--ink); }
.lang-switch__option.is-active {
  background: var(--teal); color: white;
}

/* ════════════════════════════════════════════════════════════════
   RTL (arabe) — adaptations directionnelles
   ════════════════════════════════════════════════════════════════ */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .site-nav { flex-direction: row-reverse; }
html[dir="rtl"] .sv2-arrow { transform: scaleX(-1); }
html[dir="rtl"] .student-offer__price-row { flex-direction: row-reverse; }
html[dir="rtl"] .student-offer__terms {
  border-left: none;
  border-right: 1px solid rgba(255,255,255,.18);
  padding-left: 0;
  padding-right: 22px;
}
html[dir="rtl"] .student-offer__seal {
  right: auto; left: -22px;
  transform: rotate(8deg);
}
html[dir="rtl"] .track-timeline::before { left: auto; right: 88px; }
html[dir="rtl"] .track-timeline li::before { left: auto; right: 84px; }
html[dir="rtl"] .track-tl-body { padding-left: 0; padding-right: 24px; }
html[dir="rtl"] .rv2-summary__edit { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .student-popup__close { right: auto; left: 14px; }
/* Préserver l'alignement à gauche pour les éléments numériques (prix, dates) */
html[dir="rtl"] .student-offer__price-amount,
html[dir="rtl"] code,
html[dir="rtl"] .rv2-row__amount {
  direction: ltr; display: inline-block;
}

@media (max-width: 880px) {
  .lang-switch { font-size: 11px; }
  .lang-switch__option { padding: 5px 8px; }
}

/* ════════════════════════════════════════════════════════════════
   POPUP OFFRE ÉTUDIANT (1ère visite)
   ════════════════════════════════════════════════════════════════ */
.student-popup {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: spFadeIn .3s ease;
}
.student-popup.hidden { display: none; }
.student-popup__backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(6px);
}
.student-popup__card {
  position: relative;
  background:
    radial-gradient(circle at 100% 0%, rgba(245,185,34,.30) 0%, transparent 50%),
    linear-gradient(135deg, #1A8A99 0%, #126570 100%);
  color: #fff;
  border-radius: 18px;
  padding: 36px 32px 28px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.15);
  animation: spSlideIn .4s cubic-bezier(.16,1,.3,1);
}
@keyframes spFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spSlideIn { from { opacity: 0; transform: translateY(20px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

.student-popup__close {
  position: absolute; top: 12px; right: 14px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.12);
  color: #fff; border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  font-size: 22px; font-weight: 300; cursor: pointer;
  line-height: 1; padding: 0;
  transition: background .15s;
}
.student-popup__close:hover { background: rgba(255,255,255,.25); }

.student-popup__pill {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .8px;
  margin-bottom: 16px;
}
.student-popup__title {
  font-size: 26px; font-weight: 800;
  line-height: 1.3; margin: 0 0 14px;
  color: #fff;
}
.student-popup__title em { font-style: normal; color: var(--gold); }
.student-popup__title strong { color: var(--gold); font-size: 1.25em; }

.student-popup__desc {
  font-size: 14px; line-height: 1.6;
  color: rgba(255,255,255,.92);
  margin: 0 0 22px;
}
.student-popup__desc strong { color: var(--gold); }

.student-popup__actions {
  display: flex; gap: 10px; flex-direction: column;
  margin-bottom: 14px;
}
.student-popup__actions .btn--primary {
  background: var(--gold); color: var(--ink); font-weight: 800; padding: 14px;
}
.student-popup__actions .btn--primary:hover { background: var(--gold-dark); transform: translateY(-1px); }
.student-popup__actions .btn--ghost {
  color: #fff; border: 1.5px solid rgba(255,255,255,.4);
  background: transparent;
}
.student-popup__actions .btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

.student-popup__small {
  font-size: 11px; opacity: .7; margin: 8px 0 0;
}

@media (max-width: 540px) {
  .student-popup__card { padding: 28px 22px 22px; }
  .student-popup__title { font-size: 22px; }
}

/* ════════════════════════════════════════════════════════════════
   OFFRE SPÉCIALE ÉTUDIANTS
   ════════════════════════════════════════════════════════════════ */
.student-offer {
  padding: 60px 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(245,185,34,.18) 0%, transparent 45%),
    linear-gradient(135deg, #1A8A99 0%, #126570 100%);
  color: #fff;
}
.student-offer__card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  align-items: center;
}
.student-offer__pill {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .8px;
  margin-bottom: 18px;
}
.student-offer__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 14px;
  color: #fff;
}
.student-offer__title strong { color: var(--gold); }
.student-offer__title span   { display: block; font-size: .8em; font-weight: 600; opacity: .92; margin-top: 6px; }
.student-offer__title em     { font-style: normal; color: var(--gold); border-bottom: 2px solid var(--gold); padding-bottom: 1px; }

.student-offer__sub {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.92);
  margin-bottom: 22px;
}

.student-offer__price-row {
  display: flex; gap: 22px; align-items: center;
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.12);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 16px 22px;
  margin-bottom: 22px;
}
.student-offer__price { display: flex; flex-direction: column; }
.student-offer__price-amount {
  font-size: 42px; font-weight: 900; color: var(--gold); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.student-offer__price-amount small { font-size: 18px; margin-left: 4px; opacity: .85; }
.student-offer__price-label { font-size: 12px; opacity: .85; margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }
.student-offer__terms {
  font-size: 14px; line-height: 1.7; flex: 1;
  border-left: 1px solid rgba(255,255,255,.18);
  padding-left: 22px;
}

.student-offer__destinations h3 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .8px;
  color: var(--gold); margin: 0 0 10px; font-weight: 700;
}
.student-offer__destinations ul {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.student-offer__destinations li {
  background: rgba(255,255,255,.12);
  padding: 6px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  border: 1px solid rgba(255,255,255,.18);
}

.student-offer__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.student-offer__cta .btn--primary { background: var(--gold); color: var(--ink); font-weight: 700; }
.student-offer__cta .btn--ghost   { color: #fff; border-color: rgba(255,255,255,.6); }
.student-offer__cta .btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

.student-offer__right {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.student-offer__logo {
  max-width: 100%;
  height: auto;
  background: rgba(255,255,255,.95);
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.student-offer__seal {
  background: var(--gold);
  color: var(--ink);
  border-radius: 50%;
  width: 170px; height: 170px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  border: 4px dashed #fff;
  text-align: center;
  position: absolute;
  bottom: -22px; right: -22px;
  transform: rotate(-8deg);
}
.student-offer__seal-amount {
  font-size: 36px; font-weight: 900; line-height: 1;
}
.student-offer__seal-amount small { font-size: 16px; margin-left: 2px; }
.student-offer__seal-text { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }
.student-offer__seal-weight { font-size: 11px; opacity: .8; margin-top: 2px; }

@media (max-width: 880px) {
  .student-offer__card { grid-template-columns: 1fr; padding: 26px 22px; }
  .student-offer__price-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .student-offer__terms { border-left: none; border-top: 1px solid rgba(255,255,255,.18); padding-left: 0; padding-top: 12px; width: 100%; }
  .student-offer__seal { width: 130px; height: 130px; bottom: -10px; right: -10px; }
  .student-offer__seal-amount { font-size: 28px; }
}

/* ════════════════════════════════════════════════════════════════
   VIDÉO PRÉSENTATION (entre Hero et Tracking)
   ════════════════════════════════════════════════════════════════ */
.hero-video-section {
  padding: 56px 0;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.hero-video-title {
  text-align: center;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800; color: var(--ink);
  margin-bottom: 8px;
}
.hero-video-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 28px;
  font-size: clamp(13px, 1.4vw, 16px);
}
.hero-video-frame {
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .15);
  background: var(--ink);
}
.hero-video-frame iframe {
  width: 100%; height: 100%;
  border: 0; display: block;
}

/* ════════════════════════════════════════════════════════════════
   TRACKING PUBLIC (section #suivi sur la home)
   ════════════════════════════════════════════════════════════════ */
.section--alt { background: var(--bg-soft); padding: 56px 0; }
.track-form {
  max-width: 720px; margin: 0 auto;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.track-form input {
  flex: 1; min-width: 220px;
  padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit;
}
.track-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,138,153,.12); }
.track-form select {
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit; background: white;
}
.track-form .btn { padding: 12px 24px; }

.track-result { max-width: 920px; margin: 18px auto 0; }
.track-loading, .track-error, .track-info {
  background: white; padding: 14px 20px; border-radius: 10px;
  text-align: center; font-size: 14px; box-shadow: var(--shadow-sm);
}
.track-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.track-info { background: #f0f9ff; border: 1px solid #bae6fd; color: #0c4a6e; }

.track-card { background: white; border-radius: 14px; padding: 22px 26px; box-shadow: var(--shadow-md); }
.track-head {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.track-head > div { line-height: 1.3; }
.track-label {
  display: block; font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .4px;
}
.track-head .btn { margin-left: auto; padding: 8px 18px; font-size: 13px; }

.track-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.track-timeline::before {
  content: ''; position: absolute; left: 88px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border);
}
.track-timeline li {
  display: flex; gap: 14px; padding: 10px 0; position: relative;
}
.track-timeline li::before {
  content: ''; position: absolute; left: 84px; top: 14px;
  width: 10px; height: 10px; background: var(--teal); border-radius: 50%;
  box-shadow: 0 0 0 3px white;
}
.track-tl-date {
  width: 80px; flex-shrink: 0; font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.track-tl-body { padding-left: 24px; flex: 1; font-size: 14px; }
.track-tl-body small { color: var(--muted); }

@media (max-width: 640px) {
  .track-head .btn { margin-left: 0; width: 100%; }
  .track-timeline::before, .track-timeline li::before { display: none; }
  .track-tl-date { width: auto; }
  .track-tl-body { padding-left: 0; }
}

/* ============ COMPARATEUR (legacy — conservé pour compat) ============ */
.comparator { padding: 60px 0; background: var(--bg-soft); }
.comparator h2 { text-align: center; font-size: 28px; margin-bottom: 8px; }
.comparator__sub { text-align: center; color: var(--muted); margin-bottom: 32px; }

.carrier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.carrier-card {
  background: white;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all .2s;
  display: flex; flex-direction: column; gap: 12px;
}
.carrier-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.carrier-card__logo {
  height: 44px;
  display: flex; align-items: center;
}
.carrier-card__logo img { max-height: 44px; width: auto; }
.carrier-card__service { font-size: 13px; color: var(--muted); font-weight: 500; }
.carrier-card__price {
  font-size: 28px; font-weight: 800; color: var(--ink);
}
.carrier-card__price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.carrier-card__transit {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted);
}
.carrier-card__cta {
  margin-top: auto;
  padding: 11px;
  background: var(--gold); color: var(--ink);
  border: none; border-radius: 10px;
  font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.carrier-card__cta:hover { background: var(--gold-dark); }
.carrier-card__badge {
  display: inline-block;
  padding: 3px 10px; border-radius: 999px;
  background: var(--teal-light); color: var(--teal);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.carrier-card.is-cheapest { border-color: var(--gold); }
.carrier-card.is-fastest { border-color: var(--teal); }

/* ============ SECTIONS GÉNÉRIQUES ============ */
.section { padding: 60px 0; }
.section h2 { text-align: center; font-size: 28px; margin-bottom: 36px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step {
  text-align: center; padding: 24px;
}
.step__num {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink); color: #cbd5e1;
  padding: 48px 0 24px;
  margin-top: 60px;
}
.site-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px;
  margin-bottom: 32px;
}
@media (max-width: 720px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: white; margin-bottom: 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .8px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cbd5e1; font-size: 14px; }
.site-footer a:hover { color: var(--gold); }
.site-footer__bottom {
  border-top: 1px solid #374151;
  padding-top: 18px;
  font-size: 13px; color: #94a3b8;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ============ RESPONSIVE NAV ============ */
@media (max-width: 720px) {
  .site-nav { display: none; }
}

/* ============ BURGER + DRAWER MOBILE ============ */
.burger-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 110;
}
.burger-btn span {
  display: block;
  width: 26px; height: 3px;
  background: var(--ink);
  border-radius: 2px;
  margin: 5px auto;
  transition: transform 250ms ease, opacity 250ms ease;
}
.burger-btn.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-btn.is-open span:nth-child(2) { opacity: 0; }
.burger-btn.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 86%;
  max-width: 360px;
  height: 100dvh;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,.18);
  transition: right 320ms cubic-bezier(0.4,0,0.2,1);
  z-index: 109;
  overflow-y: auto;
  padding: 80px 22px 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.mobile-drawer.is-open { right: 0; }

.mobile-drawer__nav {
  display: flex; flex-direction: column;
}
.mobile-drawer__nav a {
  padding: 14px 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
}
.mobile-drawer__nav a:active { background: #f8fafc; }

.mobile-drawer__lang {
  display: flex; gap: 8px; margin-top: 8px;
}
.mobile-drawer__lang button {
  flex: 1;
  padding: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.mobile-drawer__actions {
  display: flex; flex-direction: column; gap: 10px; margin-top: auto;
}
.mobile-drawer__actions .btn {
  width: 100%;
  text-align: center;
  padding: 14px;
  font-size: 14px;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,58,62,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
  z-index: 108;
}
.mobile-overlay.is-open { opacity: 1; pointer-events: auto; }

/* Sous 880px : on cache nav + lang + boutons header, on affiche burger */
@media (max-width: 880px) {
  .site-nav,
  .lang-switch,
  .site-header .btn-cashplus,
  .site-header .btn-pro { display: none !important; }
  .burger-btn { display: block; }
  .site-header__inner { padding: 10px 16px; }
  .brand img { height: 40px; }
}

/* Adaptations supplémentaires petits écrans */
@media (max-width: 540px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .hero { padding-top: 12px; }
  .student-popup__card { padding: 22px 18px; max-width: calc(100vw - 24px); }
  .student-popup__title { font-size: 22px; line-height: 1.25; }
}

/* ============ RTL (Arabic) ============ */
html[dir="rtl"] .btn-pro::after { content: '←'; }
html[dir="rtl"] .mobile-drawer { right: auto; left: -100%; box-shadow: 4px 0 24px rgba(0,0,0,.18); }
html[dir="rtl"] .mobile-drawer.is-open { right: auto; left: 0; }
