/* =====================================================================
   VIE TRANSIT SARL — Feuille de style
   Design system (tokens) + composants. Mobile-first, responsive.
   Palette échantillonnée sur le logo : vert forêt + vert lime.
   ===================================================================== */

/* ---------- TOKENS ---------- */
:root {
  /* Couleurs de marque */
  --foret: #014222;
  --foret-clair: #1b6b3a;
  --lime: #81b024;
  --lime-clair: #9bc93f;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;

  /* Neutres */
  --bg: #ffffff;
  --bg-soft: #f4f7f4;
  --bg-tint: #eef4e9;
  --text: #1a1a1a;
  --text-soft: #4a5750;
  --line: #e2e9e2;
  --white: #ffffff;

  /* Sémantique */
  --primary: var(--foret);
  --accent: var(--lime);

  /* Typographie */
  --font-title: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Échelle d'espacement */
  --sp-1: .5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;

  /* Rayons & ombres */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(1, 66, 34, .06);
  --shadow: 0 10px 30px rgba(1, 66, 34, .10);
  --shadow-lg: 0 20px 50px rgba(1, 66, 34, .16);

  --container: 1160px;
  --header-h: 74px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.15; font-weight: 700; }
ul, ol { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 4px; }

/* Bascule de langue : on masque l'anglais tant que data-lang != en */
[data-lang] .only-en { display: none; }

/* ---------- HELPERS ---------- */
.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }
.accent { color: var(--lime); }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--foret); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-block; font-family: var(--font-title); font-weight: 600;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--foret-clair); margin-bottom: .6rem;
}
.eyebrow--light { color: var(--lime-clair); }

.section { padding: var(--sp-6) 0; }
.section__header { max-width: 720px; margin: 0 auto var(--sp-5); text-align: center; }
.section__title { font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--foret); font-weight: 800; }
.section__header--light .section__title, .section__header--light { color: #fff; }
.section__subtitle { margin-top: var(--sp-2); color: var(--text-soft); font-size: 1.05rem; }

/* ---------- BOUTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-title); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-pill); border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  will-change: transform;
}
.btn .ico { width: 20px; height: 20px; }
.btn--sm { padding: .55rem 1.05rem; font-size: .9rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.1rem; }
.btn--whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .35); }
.btn--whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; transform: translateY(-2px); }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--sp-2); }
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; gap: 1.4rem; }
.nav__link { font-weight: 500; color: var(--foret); position: relative; padding: .3rem 0; font-size: .98rem; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--lime);
  transition: width .25s ease;
}
.nav__link:hover::after, .nav__link.is-current::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: .9rem; }
.lang-switch { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.lang-switch > span { display: none; }
.lang-btn { background: none; border: none; color: var(--text-soft); font-weight: 700; font-size: .82rem; padding: .4rem .72rem; line-height: 1; transition: background .2s, color .2s; }
.lang-btn.is-active { background: var(--foret); color: #fff; }
.lang-btn:not(.is-active):hover { background: var(--bg-tint); color: var(--foret); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.burger span { width: 26px; height: 2.5px; background: var(--foret); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.6s ease; }
.hero__slide.is-active { opacity: 1; }

/* Carrousel d'images (sections A propos / Made in Cameroun) */
.slideshow { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.slideshow .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.3s ease; }
.slideshow .slide.is-active { opacity: 1; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(1, 40, 20, .92) 0%, rgba(1, 66, 34, .8) 42%, rgba(1, 50, 26, .55) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 720px; padding: var(--sp-6) 0; }
.hero__badge {
  display: inline-block; background: rgba(129, 176, 36, .2); border: 1px solid rgba(129, 176, 36, .5);
  color: var(--lime-clair); font-family: var(--font-title); font-weight: 600; font-size: .78rem;
  letter-spacing: .08em; padding: .45rem 1rem; border-radius: var(--radius-pill); margin-bottom: var(--sp-3);
}
.hero__title { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.01em; }
.hero__tagline { display: inline-block; margin-top: .5rem; font-size: clamp(1.1rem, 3vw, 1.7rem); font-weight: 600; color: var(--lime-clair); }
.hero__subtitle { margin-top: var(--sp-3); font-size: 1.12rem; max-width: 40ch; color: rgba(255, 255, 255, .9); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.hero__reassurance { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid rgba(255, 255, 255, .18); }
.hero__reassurance li { position: relative; padding-left: 1.3rem; font-size: .92rem; color: rgba(255, 255, 255, .88); }
.hero__reassurance li::before { content: "✓"; position: absolute; left: 0; color: var(--lime-clair); font-weight: 700; }

/* ---------- CARROUSEL METIERS (sous le hero) ---------- */
.showcase { background: var(--foret); }
.showcase__viewport {
  position: relative; width: 100%;
  height: clamp(260px, 46vw, 520px);
  overflow: hidden;
}
.showcase__slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity 1.2s ease;
}
.showcase__slide.is-active { opacity: 1; }
.showcase__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Voile sombre en bas : c'est lui qui rend le texte blanc lisible quelle que soit la photo,
   y compris sur les images claires (entrepot, epices) ou une simple ombre ne suffirait pas. */
.showcase__caption {
  position: absolute; inset: auto 0 0 0;
  padding: var(--sp-5) var(--sp-3) var(--sp-3);
  background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .75);
}
.showcase__caption strong {
  display: block;
  font-family: var(--font-title); font-weight: 700;
  font-size: clamp(1.15rem, 2.6vw, 1.75rem);
  color: #fff;
}
.showcase__caption span {
  display: block; margin-top: .3rem;
  font-size: clamp(.9rem, 1.7vw, 1.05rem);
  color: rgba(255, 255, 255, .94);
  max-width: 62ch;
}
@media (min-width: 768px) {
  .showcase__caption { padding: var(--sp-6) var(--sp-5) var(--sp-4); }
}

/* ---------- SERVICES ---------- */
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-3); }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-3); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--lime); }
.service-card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--foret); margin-bottom: var(--sp-2);
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card__title { font-size: 1.2rem; color: var(--foret); margin-bottom: .5rem; }
.service-card__desc { color: var(--text-soft); font-size: .97rem; }
.service-card__link { display: inline-block; margin-top: var(--sp-2); color: var(--foret-clair); font-weight: 600; font-size: .95rem; }
.service-card__link:hover { color: var(--lime); }
.service-card--accent { background: linear-gradient(160deg, #063d21, #0a5a30); border-color: transparent; color: #fff; }
.service-card--accent .service-card__title, .service-card--accent .service-card__link { color: #fff; }
.service-card--accent .service-card__desc { color: rgba(255, 255, 255, .85); }
.service-card--accent .service-card__icon { background: rgba(129, 176, 36, .25); color: var(--lime-clair); }
.service-card--accent .service-card__link:hover { color: var(--lime-clair); }

/* ---------- À PROPOS ---------- */
.about { background: var(--bg-soft); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: center; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about__text p { color: var(--text-soft); margin-top: var(--sp-2); }
.values { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-3); }
.value { display: flex; align-items: center; gap: .6rem; font-family: var(--font-title); color: var(--foret); }
.value__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-tint); color: var(--foret-clair); display: grid; place-items: center; }
.value__icon svg { width: 22px; height: 22px; }

/* ---------- POURQUOI NOUS ---------- */
.why { background: linear-gradient(160deg, var(--foret) 0%, #063820 100%); color: #fff; }
.why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--sp-3); }
.why__item { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: var(--sp-3); }
.why__item svg { width: 34px; height: 34px; color: var(--lime-clair); margin-bottom: var(--sp-2); }
.why__item h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.why__item p { color: rgba(255, 255, 255, .8); font-size: .95rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-3); margin-top: var(--sp-5); text-align: center; }
.stat__num { display: block; font-family: var(--font-title); font-weight: 800; font-size: 2.6rem; color: var(--lime-clair); line-height: 1; }
.stat__label { display: block; margin-top: .5rem; font-size: .9rem; color: rgba(255, 255, 255, .82); }

/* ---------- PROCESSUS ---------- */
.process__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-3); counter-reset: step; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4) var(--sp-3) var(--sp-3); box-shadow: var(--shadow-sm); }
.step__num {
  position: absolute; top: -22px; left: var(--sp-3); width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(150deg, var(--lime), var(--foret-clair)); color: #fff;
  font-family: var(--font-title); font-weight: 800; font-size: 1.3rem; display: grid; place-items: center; box-shadow: var(--shadow);
}
.step h3 { color: var(--foret); font-size: 1.1rem; margin-bottom: .4rem; }
.step p { color: var(--text-soft); font-size: .95rem; }

/* ---------- MADE IN CAMEROUN ---------- */
.madein { background: var(--bg-soft); }
.madein__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: center; }
.madein .eyebrow--light { color: var(--foret-clair); }
.madein__text p { color: var(--text-soft); margin: var(--sp-2) 0 var(--sp-3); }
.madein__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- AVIS ---------- */
.reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-3); }
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-3); box-shadow: var(--shadow-sm); }
.review__head { display: flex; align-items: center; gap: .8rem; margin-bottom: var(--sp-2); }
.review__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-tint); }
.review__name { font-family: var(--font-title); font-weight: 600; color: var(--foret); }
.review__stars { color: #f5a623; letter-spacing: 2px; font-size: .95rem; }
.review__text { color: var(--text-soft); font-style: italic; }
.reviews__note { text-align: center; margin-top: var(--sp-3); font-size: .82rem; color: #97a29a; }

/* ---------- CONTACT ---------- */
.contact { background: linear-gradient(160deg, #063820, var(--foret)); color: #fff; }
.contact__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--sp-5); align-items: center; }
.contact__cta .section__title { color: #fff; }
.contact__cta p { color: rgba(255, 255, 255, .85); margin: var(--sp-2) 0 var(--sp-3); }
.contact__info { display: grid; gap: var(--sp-2); }
.info-item { display: flex; align-items: center; gap: .9rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-sm); padding: var(--sp-2); transition: background .2s; }
.info-item:hover:not(.info-item--static) { background: rgba(255, 255, 255, .12); }
.info-item svg { width: 26px; height: 26px; color: var(--lime-clair); flex: 0 0 auto; }
.info-item span { font-size: .96rem; }
.info-item strong { font-family: var(--font-title); }
/* Deux numeros dans le meme bloc : chacun reste appelable d'un doigt sur mobile,
   sans imbriquer un lien dans un lien. */
.info-item--static a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.info-item--static a:hover { border-bottom-color: var(--lime-clair); color: var(--lime-clair); }
/* L'e-mail du pied de page doit se voir comme cliquable, sans jurer avec le reste. */
.footer__contact a { border-bottom: 1px solid rgba(255, 255, 255, .3); }
.footer__contact a:hover { color: var(--lime-clair); border-bottom-color: var(--lime-clair); }

/* ---------- FOOTER ---------- */
.site-footer { background: #022c17; color: rgba(255, 255, 255, .82); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-4); padding: var(--sp-5) 0 var(--sp-4); }
.footer__logo img { background: #fff; border-radius: 10px; padding: 6px; width: 48px; height: 48px; }
.footer__name { font-family: var(--font-title); font-weight: 800; font-size: 1.25rem; color: #fff; margin-top: var(--sp-2); }
.footer__tagline { font-size: .9rem; color: var(--lime-clair); margin-top: .3rem; }
.footer__nav h4, .footer__contact h4, .footer__social h4 { color: #fff; font-size: 1rem; margin-bottom: var(--sp-2); }
.footer__nav a { display: block; padding: .25rem 0; color: rgba(255, 255, 255, .8); }
.footer__nav a:hover { color: var(--lime-clair); }
.footer__contact p { font-size: .92rem; padding: .2rem 0; }
.footer__icons { display: flex; gap: .7rem; }
.footer__icons a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; transition: background .2s, transform .2s; }
.footer__icons a:hover { background: var(--lime); transform: translateY(-3px); }
.footer__icons img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.footer__icons a.has-color { background: rgba(255, 255, 255, .14); }
.footer__icons a.has-color:hover { background: rgba(255, 255, 255, .24); }
.footer__icons img.ic-color { filter: none; width: 24px; height: 24px; border-radius: 6px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: var(--sp-2) 0; font-size: .85rem; }
.footer__legal a:hover { color: var(--lime-clair); text-decoration: underline; }

/* ---------- BOUTON WHATSAPP FLOTTANT ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 60px; height: 60px; border-radius: 16px;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .45);
  animation: wa-pulse 2.4s infinite; overflow: hidden; transition: transform .2s ease;
}
.wa-float img { width: 100%; height: 100%; display: block; }
.wa-float:hover { transform: scale(1.06); }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- ANIMATIONS AU SCROLL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 960px) {
  .about__grid, .madein__grid, .contact__inner { grid-template-columns: 1fr; }
  .madein__media { order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .burger { display: flex; }
  .nav__links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: var(--sp-2) var(--sp-3); transform: translateY(-140%); transition: transform .3s ease;
    box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__link { padding: .8rem 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav__link::after { display: none; }
  .nav__actions .btn--sm { display: none; }
  .section { padding: var(--sp-5) 0; }
  .hero { min-height: auto; padding: var(--sp-4) 0; }
  .hero__content { padding: var(--sp-5) 0 var(--sp-4); }
}

@media (max-width: 520px) {
  :root { --sp-6: 3.2rem; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-3); }
  .footer__bottom-inner { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .stat__num { font-size: 2.1rem; }
}

/* ---------- ACCESSIBILITÉ : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { transform: none; }
}
