/* =========================================================
   TransAfrica Colis Express — Refonte visuelle
   Palette : Vert émeraude (remplace l'ancien jaune)
   Chargé APRÈS style.css / coloring.css → surcharge totale
   ========================================================= */

:root {
  /* Couleurs de marque */
  --primary-color: #0E9F6E;
  --primary-color-rgb: 14, 159, 110;
  --secondary-color: #047857;
  --secondary-color-rgb: 4, 120, 87;
  --accent-color: #34D399;

  /* Neutres */
  --tx-ink: #08211A;
  --tx-ink-soft: #47615A;
  --tx-deep: #052E22;
  --tx-deep-2: #041F17;
  --tx-mint: #D1FAE5;
  --tx-light: #F3F8F5;
  --tx-border: #E2EBE6;
  --tx-white: #ffffff;

  /* Formes & ombres */
  --tx-radius: 24px;
  --tx-radius-md: 16px;
  --tx-radius-sm: 12px;
  --tx-shadow-sm: 0 6px 20px -10px rgba(5, 46, 34, .25);
  --tx-shadow: 0 22px 50px -26px rgba(5, 46, 34, .45);
  --tx-shadow-lg: 0 40px 80px -40px rgba(5, 46, 34, .55);

  --tx-transition: .35s cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Typographie ---------- */
body {
  font-family: 'Inter', 'Manrope', sans-serif;
  color: var(--tx-ink-soft);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', 'Inter', sans-serif;
  color: var(--tx-ink);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}

a { transition: color var(--tx-transition), background var(--tx-transition), border-color var(--tx-transition); }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

::selection { background: var(--primary-color); color: #fff; }

:focus-visible {
  outline: 3px solid rgba(var(--primary-color-rgb), .55);
  outline-offset: 2px;
  border-radius: 6px;
}

/* =========================================================
   TOPBAR
   ========================================================= */
#topbar {
  background: var(--tx-deep-2);
  font-size: 13px;
  padding: 9px 0;
}
#topbar .text-glow { color: rgba(255, 255, 255, .75); }
#topbar a { color: rgba(255, 255, 255, .8); font-weight: 500; }
#topbar a:hover { color: var(--accent-color); }
#topbar a i { color: var(--accent-color); margin-right: 7px; }

/* =========================================================
   HEADER
   ========================================================= */
header#header {
  padding: 22px 0;
  z-index: 1002;
}
/* État au sommet de la page (sur le hero) : dégradé sombre, texte blanc */
header#header.transparent {
  background: linear-gradient(180deg, rgba(4, 31, 23, .92) 0%, rgba(4, 31, 23, .6) 55%, rgba(4, 31, 23, 0) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* Défilé / pages internes : en-tête blanc translucide */
header#header.smaller,
header#header:not(.transparent) {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 34px -24px rgba(5, 46, 34, .6);
  padding: 14px 0;
}
header#header div#logo img { max-height: 46px; width: auto; transition: max-height var(--tx-transition); }
header#header.smaller div#logo img { max-height: 38px; }
/* Sur le hero : logo blanc ; une fois défilé (en-tête blanc) : logo vert */
header#header .logo { display: none; }
header#header .logo-2 { display: block; }
header#header.smaller div#logo .logo { display: block; }
header#header.smaller div#logo .logo-2 { display: none; }

#mainmenu > li { margin: 0 2px; }
#mainmenu > li > a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--tx-ink);
  padding: 10px 16px;
  border-radius: 30px;
  transition: all var(--tx-transition);
}
/* Sur l'image du hero : texte blanc */
header#header.transparent #mainmenu > li > a { color: #fff; }
/* Header blanc (défilé / pages internes) : texte sombre */
header#header.smaller #mainmenu > li > a,
header#header:not(.transparent) #mainmenu > li > a { color: var(--tx-ink); }
#mainmenu > li > a:hover { color: var(--primary-color); background: rgba(var(--primary-color-rgb), .1); }
header#header.transparent #mainmenu > li > a:hover { color: #fff; background: rgba(255, 255, 255, .14); }
header#header.smaller #mainmenu > li > a:hover,
header#header:not(.transparent) #mainmenu > li > a:hover { color: var(--primary-color); background: rgba(var(--primary-color-rgb), .1); }
#mainmenu li a:after { display: none; }

/* Bouton CTA du menu */
header .btn-main,
.header-col-right .btn-main {
  background: var(--primary-color) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  padding: 12px 24px !important;
  border-radius: 40px !important;
  border: none;
  box-shadow: 0 12px 26px -14px rgba(var(--primary-color-rgb), .9);
  transition: all var(--tx-transition);
}
header .btn-main:hover {
  background: var(--secondary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -16px rgba(var(--primary-color-rgb), .9);
}
#menu-btn { color: var(--tx-ink); }
header#header.transparent #menu-btn { color: #fff; }
header#header.smaller #menu-btn { color: var(--tx-ink); }

/* =========================================================
   BOUTONS
   ========================================================= */
.btn-main,
a.btn-main,
.btn-tx {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 32px;
  border-radius: 40px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 16px 34px -18px rgba(var(--primary-color-rgb), .95);
  transition: all var(--tx-transition);
}
.btn-main:hover,
a.btn-main:hover,
.btn-tx:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 24px 44px -20px rgba(var(--primary-color-rgb), .95);
  color: #fff !important;
}
.btn-tx-light {
  background: #fff;
  color: var(--tx-ink) !important;
  box-shadow: var(--tx-shadow-sm);
}
.btn-tx-light:hover { background: #fff; color: var(--primary-color) !important; }
.btn-tx-ghost {
  background: transparent;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, .45);
  box-shadow: none;
}
.btn-tx-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-tx-outline {
  background: transparent;
  color: var(--primary-color) !important;
  border: 1.5px solid rgba(var(--primary-color-rgb), .4);
  box-shadow: none;
}
.btn-tx-outline:hover { background: rgba(var(--primary-color-rgb), .08); border-color: var(--primary-color); }

/* =========================================================
   ÉTIQUETTES / TITRES DE SECTION
   ========================================================= */
.tx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(var(--primary-color-rgb), .1);
  color: var(--secondary-color);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: 9px 18px;
  border-radius: 40px;
  margin-bottom: 22px;
}
.tx-eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), .2);
}
.tx-eyebrow.tx-on-dark {
  background: rgba(255, 255, 255, .1);
  color: var(--accent-color);
}
.tx-eyebrow.tx-on-dark::before { background: var(--accent-color); box-shadow: 0 0 0 4px rgba(52, 211, 153, .22); }

.tx-title {
  font-size: clamp(30px, 3.6vw, 46px);
  margin-bottom: 20px;
}
.tx-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--tx-ink-soft);
}
section.bg-dark .tx-lead,
.tx-deep-bg .tx-lead { color: rgba(255, 255, 255, .72); }

/* =========================================================
   HERO
   ========================================================= */
.tx-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 160px 0 120px;
  overflow: hidden;
  background: var(--tx-deep);
}
.tx-hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: txKenBurns 22s ease-in-out infinite alternate;
}
@keyframes txKenBurns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}
.tx-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(4, 31, 23, .94) 0%, rgba(4, 31, 23, .82) 38%, rgba(4, 31, 23, .35) 75%, rgba(4, 31, 23, .55) 100%),
    linear-gradient(0deg, rgba(4, 31, 23, .85) 0%, rgba(4, 31, 23, 0) 45%);
}
.tx-hero-inner { position: relative; z-index: 3; color: #fff; }
.tx-hero h1 {
  color: #fff;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.08;
  margin-bottom: 26px;
  max-width: 15ch;
}
.tx-hero h1 .tx-accent { color: var(--accent-color); }
.tx-hero .tx-hero-lead {
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  line-height: 1.7;
  max-width: 58ch;
  margin-bottom: 38px;
}

/* Barre de suivi */
.tx-trackbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 50px;
  padding: 8px 8px 8px 24px;
  max-width: 560px;
  box-shadow: var(--tx-shadow-lg);
}
.tx-trackbar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--tx-ink);
  background: transparent;
  min-width: 0;
}
.tx-trackbar input::placeholder { color: #93A69F; }
.tx-trackbar button {
  border: none;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 40px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--tx-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tx-trackbar button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.tx-hero-hint { font-size: 13px; color: rgba(255, 255, 255, .55); margin-top: 14px; }

/* Bouton de suivi du hero (ouvre la modale) */
.tx-hero-track-btn {
  border: none;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 34px;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  box-shadow: var(--tx-shadow-lg), 0 16px 34px -16px rgba(var(--primary-color-rgb), .85);
  transition: filter var(--tx-transition), transform var(--tx-transition), box-shadow var(--tx-transition);
}
.tx-hero-track-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -18px rgba(var(--primary-color-rgb), .95);
}
.tx-hero-track-btn:active { transform: translateY(0); }

/* Facts du hero */
.tx-hero-facts {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 14px 46px;
  margin-top: 68px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  max-width: 900px;
}
.tx-hero-fact { display: flex; align-items: center; gap: 14px; color: #fff; }
.tx-hero-fact i {
  font-size: 20px;
  color: var(--accent-color);
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  flex: 0 0 46px;
}
.tx-hero-fact span { font-size: 14px; font-weight: 600; line-height: 1.35; }

/* =========================================================
   PARTENAIRES (logos réels)
   ========================================================= */
.tx-partners { background: #fff; padding: 70px 0 78px; }
.tx-partners-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.tx-partners-head .tx-eyebrow { margin-bottom: 16px; }
.tx-partners-head h3 { font-size: clamp(21px, 2.2vw, 27px); margin-bottom: 10px; }
.tx-partners-head p { font-size: 15px; margin: 0; }

.tx-partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tx-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 108px;
  padding: 22px 26px;
  background: var(--tx-light);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius-md);
  transition: all var(--tx-transition);
}
.tx-logo-card img {
  max-width: 100%;
  max-height: 46px;
  object-fit: contain;
  filter: grayscale(1) opacity(.62);
  transition: all var(--tx-transition);
}
.tx-logo-card:hover {
  background: #fff;
  border-color: rgba(var(--primary-color-rgb), .35);
  box-shadow: var(--tx-shadow);
  transform: translateY(-4px);
}
.tx-logo-card:hover img { filter: none; }

/* =========================================================
   STATS
   ========================================================= */
.tx-stats {
  background: linear-gradient(120deg, var(--tx-deep) 0%, var(--secondary-color) 160%);
  padding: 66px 0;
}
.tx-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.tx-stat { text-align: center; color: #fff; position: relative; }
.tx-stat + .tx-stat::before {
  content: '';
  position: absolute;
  left: -13px; top: 15%;
  height: 70%; width: 1px;
  background: rgba(255, 255, 255, .16);
}
.tx-stat h3 {
  color: #fff;
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 800;
  margin-bottom: 6px;
}
.tx-stat h3 span { color: var(--accent-color); }
.tx-stat p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .72); font-weight: 500; }

/* =========================================================
   PRESET DE COMPTAGE — fondu + flou pendant le décompte
   La classe .tx-counting est posée par la page au moment où
   le countTo du thème démarre (durée = data-speed du compteur).
   ========================================================= */
.timer { display: inline-block; will-change: transform, filter, opacity; }
.timer.tx-counting {
  animation: txCount var(--tx-count-dur, 3000ms) cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes txCount {
  0%   { opacity: 0; filter: blur(9px); transform: translateY(.22em); }
  18%  { opacity: 1; filter: blur(4px); transform: translateY(0); }
  100% { opacity: 1; filter: blur(0); transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .timer.tx-counting { animation: none; opacity: 1; filter: none; transform: none; }
}

/* =========================================================
   SECTIONS "IMAGE + TEXTE"
   ========================================================= */
.tx-split { align-items: center; gap: 60px; }
/* Les colonnes Bootstrap font 50% chacune : sans ajustement, le gap fait
   déborder la ligne (50% + 50% + 60px > 100%) et la 2e colonne passe à la ligne.
   On retire la largeur du gap de chaque colonne à partir du point de rupture lg. */
@media (min-width: 992px) {
  .tx-split > .col-lg-6 {
    flex: 0 0 calc(50% - 30px);
    width: calc(50% - 30px);
    max-width: calc(50% - 30px);
  }
}
.tx-split-media { position: relative; }
.tx-split-media img.tx-img {
  width: 100%;
  border-radius: var(--tx-radius);
  box-shadow: var(--tx-shadow);
  display: block;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
}
.tx-media-badge {
  position: absolute;
  right: -18px;
  bottom: -22px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  padding: 20px 26px;
  border-radius: var(--tx-radius-md);
  box-shadow: var(--tx-shadow);
  text-align: center;
  min-width: 150px;
}
.tx-media-badge strong { display: block; font-size: 38px; line-height: 1; font-weight: 800; }
.tx-media-badge span { font-size: 12.5px; opacity: .85; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.tx-media-chip {
  position: absolute;
  left: -18px;
  top: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 12px 18px;
  border-radius: 40px;
  box-shadow: var(--tx-shadow);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tx-ink);
}
.tx-media-chip i { color: var(--primary-color); font-size: 18px; }

.tx-checklist { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; gap: 14px; }
.tx-checklist li { display: flex; align-items: flex-start; gap: 13px; font-size: 15.5px; font-weight: 600; color: var(--tx-ink); }
.tx-checklist li i {
  color: var(--primary-color);
  background: rgba(var(--primary-color-rgb), .12);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex: 0 0 26px;
  margin-top: 2px;
}

/* =========================================================
   SERVICES
   ========================================================= */
.tx-section-head { max-width: 720px; margin-bottom: 54px; }
.tx-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.tx-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tx-service {
  background: #fff;
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  padding: 36px 30px 34px;
  transition: all var(--tx-transition);
  position: relative;
  overflow: hidden;
  display: block;
}
.tx-service::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tx-transition);
}
.tx-service:hover { transform: translateY(-8px); box-shadow: var(--tx-shadow); border-color: transparent; }
.tx-service:hover::after { transform: scaleX(1); }
.tx-service-icon {
  width: 62px; height: 62px;
  border-radius: 18px;
  background: rgba(var(--primary-color-rgb), .1);
  color: var(--primary-color);
  font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  transition: all var(--tx-transition);
}
.tx-service:hover .tx-service-icon { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: #fff; transform: rotate(-6deg) scale(1.05); }
.tx-service h4 { font-size: 19px; margin-bottom: 12px; }
.tx-service p { font-size: 14.5px; line-height: 1.7; margin: 0; }
.tx-service .tx-more {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* =========================================================
   SUIVI (bloc sombre)
   ========================================================= */
.tx-track-panel {
  background: linear-gradient(140deg, var(--tx-deep) 0%, #064535 100%);
  border-radius: var(--tx-radius);
  padding: 60px 54px;
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.tx-track-panel::before {
  content: '';
  position: absolute;
  right: -110px; top: -110px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, .22) 0%, rgba(52, 211, 153, 0) 70%);
}
.tx-track-panel h2 { color: #fff; }
.tx-track-panel .tx-lead { color: rgba(255, 255, 255, .75); }
.tx-steps { display: grid; gap: 18px; margin: 30px 0 34px; }
.tx-step { display: flex; align-items: center; gap: 16px; }
.tx-step-num {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  color: var(--accent-color);
  font-weight: 800;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.tx-step p { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.tx-step p strong { color: #fff; display: block; font-size: 15px; margin-bottom: 2px; }

/* =========================================================
   POURQUOI NOUS CHOISIR
   ========================================================= */
.tx-why { background: var(--tx-deep-2); color: #fff; }
.tx-why h2 { color: #fff; }
.tx-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tx-why-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--tx-radius);
  padding: 34px 30px;
  transition: all var(--tx-transition);
}
.tx-why-card:hover { background: rgba(255, 255, 255, .07); transform: translateY(-5px); border-color: rgba(52, 211, 153, .35); }
.tx-why-card i {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: rgba(52, 211, 153, .14);
  color: var(--accent-color);
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.tx-why-card h4 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.tx-why-card p { font-size: 14.5px; line-height: 1.7; color: rgba(255, 255, 255, .68); margin: 0; }

/* =========================================================
   CONTACT
   ========================================================= */
.tx-contact { background: var(--tx-light); }
.tx-contact-cards { display: grid; gap: 16px; }
.tx-contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius-md);
  padding: 22px 24px;
  transition: all var(--tx-transition);
}
.tx-contact-card:hover { box-shadow: var(--tx-shadow); transform: translateX(5px); border-color: rgba(var(--primary-color-rgb), .3); }
.tx-contact-card i {
  width: 50px; height: 50px;
  flex: 0 0 50px;
  border-radius: 14px;
  background: rgba(var(--primary-color-rgb), .1);
  color: var(--primary-color);
  font-size: 19px;
  display: flex; align-items: center; justify-content: center;
}
.tx-contact-card small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: #93A69F; font-weight: 700; margin-bottom: 3px; }
.tx-contact-card strong { color: var(--tx-ink); font-size: 15.5px; font-weight: 700; word-break: break-word; }

.tx-contact-visual { position: relative; }
.tx-contact-visual img { width: 100%; border-radius: var(--tx-radius); box-shadow: var(--tx-shadow); display: block; aspect-ratio: 4/3.4; object-fit: cover; }

/* =========================================================
   CTA
   ========================================================= */
.tx-cta {
  background: linear-gradient(120deg, var(--primary-color) 0%, var(--secondary-color) 70%, #023D2D 130%);
  color: #fff;
  padding: 74px 0;
  position: relative;
  overflow: hidden;
}
.tx-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .5;
}
.tx-cta .container { position: relative; z-index: 2; }
.tx-cta h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); margin-bottom: 12px; }
.tx-cta p { color: rgba(255, 255, 255, .85); margin: 0; font-size: 16.5px; }

/* =========================================================
   SLIDERS & PRESETS DE TRANSITION
   Initialisés par public/js/slider-init.js
   (data-tx-preset : fadeUp | timer | zoom)
   ========================================================= */
.tx-slider { position: relative; display: block; width: 100%; overflow: hidden; }
/* Le wrapper est en absolute : la hauteur vient du conteneur
   (aspect-ratio / inset / height:100%) et les slides le remplissent. */
.tx-slider .swiper-wrapper { position: absolute; inset: 0; }
.tx-slider .swiper-slide { width: 100%; height: 100%; overflow: hidden; }
.tx-slide { display: block; width: 100%; height: 100%; will-change: transform; }
.tx-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* --- Zones d'accueil du slider --- */
.tx-hero .tx-slider { position: absolute; inset: 0; height: 100%; }
.tx-split-media .tx-slider,
.tx-contact-visual .tx-slider {
  aspect-ratio: 4 / 3.2;
  border-radius: var(--tx-radius);
  box-shadow: var(--tx-shadow);
}
.tx-contact-visual .tx-slider { aspect-ratio: 4 / 3.4; }
.tx-slider-track { height: 100%; min-height: 420px; }
.tx-cta .tx-cta-bg { position: absolute; inset: 0; z-index: 0; }
.tx-cta .tx-cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(14, 159, 110, .93) 0%, rgba(4, 120, 87, .88) 65%, rgba(5, 46, 34, .93) 130%);
}

/* --- Preset fadeUp : fondu + glissement vertical --- */
.tx-slider-fadeUp .tx-slide {
  transform: translateY(9%);
  transition: transform .95s cubic-bezier(.22, .61, .36, 1);
}
.tx-slider-fadeUp .swiper-slide-active .tx-slide { transform: translateY(0); }
.tx-slider-fadeUp .swiper-slide-prev .tx-slide { transform: translateY(-9%); }

/* --- Preset zoom : fondu + zoom --- */
.tx-slider-zoom .tx-slide {
  transform: scale(1.16);
  transition: transform 1.35s cubic-bezier(.22, .61, .36, 1);
}
.tx-slider-zoom .swiper-slide-active .tx-slide { transform: scale(1); }
.tx-slider-zoom .swiper-slide-prev .tx-slide { transform: scale(1.07); }

/* --- Preset timer : rideau vertical + barre de progression --- */
.tx-slider-timer .tx-slide {
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s cubic-bezier(.65, 0, .35, 1);
}
.tx-slider-timer .swiper-slide-active .tx-slide { clip-path: inset(0 0 0 0); }
.tx-slider-timer .swiper-slide-prev .tx-slide { clip-path: inset(100% 0 0 0); }
.tx-slider-timer .swiper-pagination {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, .25);
  opacity: 1;
  z-index: 4;
}
.tx-slider-timer .swiper-pagination-progressbar-fill { background: var(--accent-color); }

/* Mouvement réduit : pas de transformation, le fondu Swiper suffit */
@media (prefers-reduced-motion: reduce) {
  .tx-slider .tx-slide {
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--tx-deep-2);
  padding: 84px 0 0;
  color: rgba(255, 255, 255, .62);
}
footer h5 {
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 22px;
}
footer a { color: rgba(255, 255, 255, .62); font-size: 14.5px; }
footer a:hover { color: var(--accent-color); }
footer ul.list-unstyled li a:hover,
footer p a:hover { padding-left: 5px; }
footer ul.list-unstyled li { margin-bottom: 12px; }
footer .tx-foot-bottom {
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 26px 0;
  font-size: 13.5px;
}
footer .tx-foot-social { display: flex; gap: 10px; margin-top: 22px; }
footer .tx-foot-social a {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
footer .tx-foot-social a:hover { background: var(--primary-color); color: #fff; }

/* =========================================================
   MODAL DE SUIVI
   ========================================================= */
.tracking-modal {
  position: fixed;
  inset: 0;
  z-index: 2000; /* au-dessus du header (1001) et des bulles (1000) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 31, 23, .72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  /* Masquée par défaut */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--tx-transition), visibility var(--tx-transition);
}
/* visible quand le JS ajoute la classe .show */
.tracking-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.tracking-modal-content {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: auto;
  background: #fff;
  color: var(--tx-ink);
  border-radius: var(--tx-radius);
  padding: 44px 40px 40px;
  box-shadow: var(--tx-shadow-lg);
  /* Animation d'apparition */
  transform: translateY(18px) scale(.96);
  transition: transform var(--tx-transition);
}
.tracking-modal.show .tracking-modal-content { transform: none; }
.tracking-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 30px;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  transition: color var(--tx-transition), transform var(--tx-transition);
}
.tracking-modal-close:hover { transform: rotate(90deg); }
.tracking-modal h3 { color: var(--tx-ink); }
.tracking-modal p { color: var(--tx-ink-soft); }
.tracking-modal-close { color: #9CB0A8; }
.tracking-modal-close:hover { color: var(--tx-ink); }
.tracking-modal .form-control {
  background: var(--tx-light);
  border: 1.5px solid var(--tx-border);
  color: var(--tx-ink);
  border-radius: 14px;
}
.tracking-modal .form-control::placeholder { color: #9CB0A8; }
.tracking-modal .form-control:focus { border-color: var(--primary-color); background: #fff; }
.tracking-modal .btn-submit {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  border-radius: 40px;
  box-shadow: 0 16px 30px -16px rgba(var(--primary-color-rgb), .9);
}
.tracking-modal .btn-submit:hover { transform: translateY(-2px); }

/* =========================================================
   BULLES FLOTTANTES (langue & contact)
   ========================================================= */
.contact-bubble,
.lang-switcher {
  position: fixed;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
/* Contact en bas à droite, langue en bas à gauche → jamais de chevauchement */
.contact-bubble { right: 22px; bottom: 22px; }
.lang-switcher { left: 22px; bottom: 22px; }

/* --- Boutons principaux (rondeurs) --- */
.contact-bubble .contact-main,
.lang-switcher .lang-current {
  width: 58px;
  height: 58px;
  position: relative;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .35);
  transition: transform var(--tx-transition), box-shadow var(--tx-transition), border-color var(--tx-transition);
}
.lang-switcher .lang-current { background: #fff; box-shadow: var(--tx-shadow-sm); }
.contact-bubble .contact-main {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(var(--primary-color-rgb), .9);
}
.lang-switcher .lang-current svg {
  width: 30px;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

/* --- Options (dépliement) --- */
.contact-bubble .contact-options,
.lang-switcher .lang-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  /* Repli : invisible et non cliquable tant que .active */
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.85);
  transform-origin: bottom center;
  pointer-events: none;
  transition: opacity var(--tx-transition), transform var(--tx-transition), visibility var(--tx-transition);
}
.contact-bubble.active .contact-options,
.lang-switcher.active .lang-options {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

/* --- Items (rond WhatsApp / Email / drapeaux) --- */
.contact-bubble .contact-item,
.lang-switcher .lang-option {
  width: 50px;
  height: 50px;
  position: relative;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  border: 2px solid rgba(0, 0, 0, .06);
  background: #fff;
  box-shadow: var(--tx-shadow-sm);
  transition: transform var(--tx-transition), border-color var(--tx-transition), box-shadow var(--tx-transition);
}
.contact-bubble .contact-item i,
.contact-bubble .contact-item .tx-wa-icon { font-size: 24px; color: var(--primary-color); }
.lang-switcher .lang-option svg {
  width: 26px;
  height: auto;
  display: block;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.lang-switcher .lang-current:hover,
.lang-switcher .lang-option:hover,
.lang-switcher .lang-option.active-lang { border-color: var(--primary-color); box-shadow: 0 10px 26px -12px rgba(var(--primary-color-rgb), .8); }
.contact-bubble .contact-item:hover,
.lang-switcher .lang-option:hover { transform: translateY(-3px) scale(1.06); }

/* --- Tooltips (libellés au survol) --- */
.contact-bubble .contact-item .contact-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  padding: 7px 13px;
  background: var(--tx-deep);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: var(--tx-shadow-sm);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--tx-transition), transform var(--tx-transition), visibility var(--tx-transition);
}
.contact-bubble .contact-item .contact-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--tx-deep);
}
.contact-bubble .contact-item:hover .contact-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Le sélecteur est à gauche → son tooltip s'affiche à droite */
.lang-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  white-space: nowrap;
  padding: 7px 13px;
  background: var(--tx-deep);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: var(--tx-shadow-sm);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--tx-transition), transform var(--tx-transition), visibility var(--tx-transition);
}
.lang-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: var(--tx-deep);
}
.lang-switcher .lang-option:hover .lang-tooltip,
.lang-switcher .lang-current:hover .lang-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* --- Survol des boutons principaux --- */
.contact-bubble .contact-main:hover { transform: scale(1.08); }
.contact-bubble .contact-main i { font-size: 26px; }

/* --- Bulles repliées sur petit écran --- */
@media (max-width: 576px) {
  .contact-bubble { right: 14px; bottom: 14px; }
  .lang-switcher { left: 14px; bottom: 14px; }
  .contact-bubble .contact-main, .lang-switcher .lang-current { width: 50px; height: 50px; }
  .contact-bubble .contact-item, .lang-switcher .lang-option { width: 44px; height: 44px; }
  .lang-tooltip, .contact-bubble .contact-item .contact-tooltip { display: none; }
}

/* Back to top */
#back-to-top { background: var(--primary-color); }
#back-to-top:hover { background: var(--secondary-color); }

/* =========================================================
   LOADER
   ========================================================= */
#de-loader { background: var(--tx-deep); }
.truck-loader .truck-body,
.truck-loader .truck-cab { background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); }
.truck-loader .wheel { border-color: var(--primary-color); background: #0a3d2e; }
.truck-loader .wheel:after { background: var(--primary-color); }
.truck-loader .road { background: rgba(255, 255, 255, .12); }
.truck-loader .road:after { background: repeating-linear-gradient(90deg, var(--primary-color) 0, var(--primary-color) 15px, transparent 15px, transparent 30px); }
.loader-text { color: rgba(255, 255, 255, .6); }

/* =========================================================
   ANIMATIONS D'APPARITION
   ========================================================= */
.tx-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.22, .61, .36, 1); }
.tx-reveal.tx-in { opacity: 1; transform: none; }
.tx-reveal-d1 { transition-delay: .1s; }
.tx-reveal-d2 { transition-delay: .2s; }
.tx-reveal-d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .tx-reveal { opacity: 1; transform: none; transition: none; }
  .tx-hero-media { animation: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Écrans très hauts (ou captures d'écran) : on plafonne le hero */
@media (min-height: 1800px) {
  .tx-hero { min-height: 980px; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1199px) {
  .tx-services-grid { grid-template-columns: repeat(2, 1fr); }
  .tx-why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  section { padding: 72px 0 72px 0; }
  .tx-hero { min-height: auto; padding: 150px 0 90px; }
  .tx-hero-facts { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
  .tx-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .tx-stat + .tx-stat::before { display: none; }
  .tx-partners-grid { grid-template-columns: repeat(3, 1fr); }
  .tx-split { gap: 44px; }
  .tx-split-media { margin-bottom: 34px; }
  .tx-media-badge { right: 14px; bottom: -18px; }
  .tx-media-chip { left: 14px; }
  .tx-track-panel { padding: 44px 32px; }

  /* Menu mobile */
  #menu-btn { display: block !important; }
  header.header-mobile #mainmenu {
    background: #fff;
    border-radius: 0 0 var(--tx-radius-md) var(--tx-radius-md);
    box-shadow: var(--tx-shadow);
    padding: 14px 20px 20px;
  }
  header.header-mobile #mainmenu li { border-bottom-color: var(--tx-border); }
  /* Menu déplié (fond blanc) : liens sombres ; replié sur le hero : liens blancs */
  header#header.header-mobile.menu-open #mainmenu li a { color: var(--tx-ink) !important; font-weight: 600; }
  header#header.header-mobile.menu-open #mainmenu li a:hover { color: var(--primary-color) !important; }
  header.header-mobile.menu-open { background: #fff !important; }
  header.header-mobile.menu-open #menu-btn { color: var(--tx-ink); }
  header.header-mobile.menu-open #logo .logo { display: block; }
  header.header-mobile.menu-open #logo .logo-2 { display: none; }
  header.header-mobile div#logo img { max-height: 34px; }
}

@media (max-width: 768px) {
  .tx-hero h1 { font-size: clamp(30px, 8.4vw, 40px); }
  .tx-hero .tx-hero-lead { font-size: 16px; }
  .tx-trackbar { flex-direction: column; align-items: stretch; border-radius: var(--tx-radius-md); padding: 14px; gap: 12px; }
  .tx-trackbar input { padding: 6px 10px; text-align: center; }
  .tx-trackbar button { justify-content: center; padding: 15px 24px; }
  .tx-hero-track-btn { justify-content: center; width: 100%; max-width: 340px; padding: 15px 24px; }
  .tx-hero-facts { grid-template-columns: 1fr 1fr; gap: 16px; }
  .tx-hero-fact i { width: 40px; height: 40px; flex-basis: 40px; font-size: 17px; }
  .tx-services-grid, .tx-why-grid { grid-template-columns: 1fr; }
  .tx-partners-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tx-logo-card { height: 88px; padding: 16px; }
  .tx-logo-card img { max-height: 36px; }
  .tx-media-badge strong { font-size: 30px; }
  .tx-cta .tx-cta-actions { display: flex; flex-direction: column; gap: 12px; }
  .tx-cta .tx-cta-actions .btn-main { justify-content: center; }
}

@media (max-width: 480px) {
  .tx-stats-grid { grid-template-columns: 1fr 1fr; gap: 26px 12px; }
  .tx-stat h3 { font-size: 30px; }
  .tx-hero-facts { grid-template-columns: 1fr; }
}
