/* ==========================================================
   GS1 Cameroun — Theme v2
   Palette officielle GS1 Global Color Palette 2022
   Auto-suffisant : aucune dépendance Bootstrap
   ========================================================== */

/* ── Variables ── */
:root {
  --gs1-blue:       #002c6c;
  --gs1-blue-dk:    #001e50;
  --gs1-blue-lt:    #e8eef7;
  --gs1-orange:     #f26334;
  --gs1-orange-dk:  #d44e22;
  --gs1-white:      #ffffff;
  --gs1-gray-100:   #f8f9fa;
  --gs1-gray-200:   #e9ecef;
  --gs1-gray-600:   #6c757d;
  --gs1-gray-800:   #343a40;
  --gs1-font:       'Inter', 'Segoe UI', Arial, sans-serif;
  --gs1-radius:     6px;
  --gs1-shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --gs1-shadow-md:  0 6px 32px rgba(0,0,0,.14);
  --gs1-transition: .2s ease;
  --gs1-nav-h:      52px;
}

/* ==========================================================
   TICKER BAR
   ========================================================== */
.gs1-ticker-bar {
  background: var(--gs1-blue-dk);
  color: #fff;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .02em;
  overflow: hidden;
  height: 28px;
  display: flex;
  align-items: center;
}
.gs1-ticker-wrap { overflow: hidden; width: 100%; }
.gs1-ticker-inner {
  display: inline-flex;
  gap: 64px;
  white-space: nowrap;
  animation: gs1-ticker 50s linear infinite;
}
.gs1-ticker-inner span::before { content: '›  '; color: var(--gs1-orange); }
@keyframes gs1-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================
   TOPBAR
   ========================================================== */
.gs1-topbar {
  display: none; /* hidden on mobile */
  background: var(--gs1-blue);
  color: rgba(255,255,255,.8);
  font-size: .77rem;
  padding: 5px 0;
}
.gs1-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.gs1-topbar-left { display: flex; align-items: center; gap: 18px; }
.gs1-topbar-left span { color: rgba(255,255,255,.8); }
.gs1-topbar-left i,
.gs1-topbar-left .fa { color: var(--gs1-orange); margin-right: 4px; }
.gs1-topbar-right { display: flex; align-items: center; gap: 10px; }
.gs1-topbar-right a {
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  transition: color var(--gs1-transition);
  line-height: 1;
}
.gs1-topbar-right a:hover { color: var(--gs1-orange); text-decoration: none; }
.gs1-topbar-divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.25);
  margin: 0 4px;
}
.gs1-lang-select {
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 3px;
  color: #fff;
  font-size: .73rem;
  padding: 2px 5px;
  cursor: pointer;
}
.gs1-lang-select option { color: var(--gs1-blue); background: #fff; }

@media (min-width: 768px) {
  .gs1-topbar { display: block; }
}

/* ==========================================================
   LOGOBAR
   ========================================================== */
.gs1-logobar {
  background: #fff;
  border-bottom: 1px solid var(--gs1-gray-200);
  padding: 10px 0;
  box-shadow: var(--gs1-shadow-sm);
}
.gs1-logobar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.gs1-logo-link { display: inline-flex; }
.gs1-logo-link img { display: block; height: 60px; width: auto; }

.gs1-logobar-actions {
  display: none;
  align-items: center;
  gap: 12px;
}
@media (min-width: 992px) {
  .gs1-logobar-actions { display: flex; }
}

.gs1-btn-outline {
  border: 2px solid var(--gs1-blue);
  color: var(--gs1-blue);
  border-radius: var(--gs1-radius);
  padding: 8px 18px;
  font-size: .83rem;
  font-weight: 600;
  transition: all var(--gs1-transition);
  text-decoration: none;
  display: inline-block;
}
.gs1-btn-outline:hover {
  background: var(--gs1-blue);
  color: #fff;
  text-decoration: none;
}
.gs1-btn-primary {
  background: var(--gs1-orange);
  color: #fff;
  border: none;
  border-radius: var(--gs1-radius);
  padding: 9px 20px;
  font-size: .83rem;
  font-weight: 700;
  transition: background var(--gs1-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.gs1-btn-primary:hover {
  background: var(--gs1-orange-dk);
  color: #fff;
  text-decoration: none;
}

/* Mobile CTA in logobar */
.gs1-btn-primary-mobile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gs1-orange);
  color: #fff;
  border-radius: var(--gs1-radius);
  padding: 7px 14px;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}
.gs1-btn-primary-mobile:hover { background: var(--gs1-orange-dk); color: #fff; text-decoration: none; }
@media (min-width: 992px) { .gs1-btn-primary-mobile { display: none; } }

/* ==========================================================
   MAIN NAV
   ========================================================== */
.gs1-nav {
  background: var(--gs1-blue);
  position: relative;
  z-index: 1000;
}
.gs1-nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Hamburger ── */
.gs1-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px;
  cursor: pointer;
  padding: 7px 10px;
  margin: 8px 0;
  align-self: center;
}
.gs1-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.9);
  border-radius: 2px;
  transition: all var(--gs1-transition);
}
@media (min-width: 992px) { .gs1-nav-toggle { display: none; } }

/* ── Nav menu ── */
.gs1-nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--gs1-blue-dk);
  z-index: 999;
  padding: 8px 0 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.gs1-nav-menu.gs1-open { display: flex; }

@media (min-width: 992px) {
  .gs1-nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    background: transparent;
    padding: 0;
    box-shadow: none;
    flex: 1;
    align-items: stretch;
  }
}

/* ── Nav items ── */
.gs1-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
@media (min-width: 992px) {
  .gs1-nav-list {
    flex-direction: row;
    align-items: stretch;
    flex: 1;
    justify-content: center;
  }
}

.gs1-nav-item { position: static; }

.gs1-nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.88) !important;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none !important;
  padding: 10px 16px;
  letter-spacing: .02em;
  transition: color var(--gs1-transition), border-color var(--gs1-transition);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.gs1-nav-link:hover { color: #fff !important; }
.gs1-nav-link .gs1-arrow {
  font-size: .6rem;
  opacity: .6;
  transition: transform var(--gs1-transition);
}

@media (min-width: 992px) {
  .gs1-nav-link {
    padding: 0 14px;
    height: var(--gs1-nav-h);
    line-height: var(--gs1-nav-h);
  }
  .gs1-nav-item:hover > .gs1-nav-link {
    color: #fff !important;
    border-bottom-color: var(--gs1-orange);
  }
  .gs1-nav-item:hover > .gs1-nav-link .gs1-arrow {
    transform: rotate(180deg);
    opacity: 1;
  }
}

/* ── Mega menu ── */
.gs1-mega-menu {
  display: none;
  background: var(--gs1-blue-dk);
  padding: 12px 16px 16px 28px;
}
@media (min-width: 992px) {
  .gs1-mega-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: auto; /* set by JS or leave as flow */
    background: #fff;
    border-top: 3px solid var(--gs1-orange);
    box-shadow: var(--gs1-shadow-md);
    padding: 28px 0;
    z-index: 998;
  }
  .gs1-nav-item:hover > .gs1-mega-menu { display: block; }
}

/* Mobile: toggle via class */
.gs1-mega-menu.gs1-sub-open { display: block; }

/* ── Mega content ── */
.gs1-mega-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.gs1-mega-header {
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--gs1-gray-200);
}
.gs1-mega-header h5 {
  color: var(--gs1-blue);
  font-weight: 700;
  font-size: .95rem;
  margin: 0 0 3px;
}
.gs1-mega-header p {
  color: var(--gs1-gray-600);
  font-size: .8rem;
  margin: 0;
}
.gs1-mega-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
@media (min-width: 992px) {
  .gs1-mega-col { flex: 1; min-width: 0; }
}
.gs1-mega-menu.gs1-sub-open .gs1-mega-header { display: none; }

.gs1-mega-col h6 {
  color: var(--gs1-gray-800);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gs1-blue-lt);
}
@media (min-width: 992px) {
  .gs1-mega-col h6 { color: var(--gs1-blue); }
}
.gs1-mega-col h6 a { color: inherit; text-decoration: none; }

.gs1-mega-col ul { list-style: none; padding: 0; margin: 0; }
.gs1-mega-col ul li { padding: 3px 0; }
.gs1-mega-col ul li a {
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color var(--gs1-transition);
}
.gs1-mega-col ul li a::before {
  content: '›';
  color: var(--gs1-orange);
  font-size: .9rem;
}
.gs1-mega-col ul li a:hover { color: #fff; text-decoration: none; }
@media (min-width: 992px) {
  .gs1-mega-col ul li a { color: var(--gs1-gray-800); }
  .gs1-mega-col ul li a:hover { color: var(--gs1-blue); }
}
.gs1-mega-col ul li .gs1-muted {
  color: rgba(255,255,255,.4);
  font-size: .82rem;
  padding-left: 14px;
}
@media (min-width: 992px) {
  .gs1-mega-col ul li .gs1-muted { color: #aaa; }
}

/* ── MON GS1 button ── */
.gs1-login-btn {
  display: none;
  align-items: center;
  gap: 6px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: var(--gs1-radius);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: 7px 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--gs1-transition);
  align-self: center;
  margin-left: 12px;
}
.gs1-login-btn:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; text-decoration: none; }
@media (min-width: 992px) { .gs1-login-btn { display: flex; } }

.gs1-login-mobile {
  padding: 10px 16px;
}
.gs1-login-mobile a {
  display: block;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--gs1-radius);
  color: rgba(255,255,255,.8);
  text-decoration: none;
  text-align: center;
  padding: 8px;
  font-size: .83rem;
  font-weight: 600;
}
@media (min-width: 992px) { .gs1-login-mobile { display: none; } }

/* ==========================================================
   FOOTER
   ========================================================== */
.gs1-footer {
  background: #002c6c !important;
  color: #fff !important;
  font-size: .875rem;
  font-family: 'Inter', sans-serif;
}
.gs1-footer * { box-sizing: border-box; }
.gs1-footer a { color: rgba(255,255,255,.7) !important; text-decoration: none !important; transition: color .2s; }
.gs1-footer a:hover { color: #f26334 !important; text-decoration: none !important; }

.gs1-footer-top {
  padding: 56px 0 44px;
  background: #002c6c;
}
.gs1-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 600px) {
  .gs1-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .gs1-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 28px; }
}

/* Brand column */
.gs1-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.gs1-footer-brand img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 180px;
  background: #fff;
  padding: 7px 12px;
  border-radius: 7px;
  margin-bottom: 18px;
  object-fit: contain;
}
.gs1-footer-desc {
  color: #fff !important;
  font-size: .85rem;
  line-height: 1.75;
  margin-bottom: 20px;
  opacity: .85;
}
/* Bouton flottant retour accueil */
.gs1-fab-home {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #002c6c;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 50px;
  padding: 11px 20px 11px 16px;
  font-size: .82rem;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(0,0,0,.28);
  border: 2px solid rgba(255,255,255,.15);
  transition: background .2s, transform .2s, box-shadow .2s;
  font-family: 'Inter', sans-serif;
}
.gs1-fab-home:hover {
  background: #f26334;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(242,99,52,.35);
}
.gs1-fab-home i { font-size: .9rem; }
.gs1-fab-label { line-height: 1; }
@media (max-width: 480px) {
  .gs1-fab-home { padding: 12px; border-radius: 50%; }
  .gs1-fab-label { display: none; }
}
.gs1-footer-social { display: flex; gap: 8px; }
.gs1-footer-social a {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .82rem;
  transition: background var(--gs1-transition);
}
.gs1-footer-social a:hover { background: var(--gs1-orange); color: #fff; }

/* Columns */
.gs1-footer-col-title {
  color: #fff;
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
  padding-bottom: 7px;
  border-bottom: 2px solid #f26334;
  display: inline-block;
}
.gs1-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.gs1-footer-links li { padding: 4px 0; }
.gs1-footer-links a {
  font-size: .82rem;
  display: inline-block;
  transition: color var(--gs1-transition), padding-left var(--gs1-transition);
}
.gs1-footer-links a:hover { padding-left: 4px; }

/* Contact column */
.gs1-footer-contact { list-style: none; padding: 0; margin: 0; }
.gs1-footer-contact li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 5px 0;
  font-size: .82rem;
  color: rgba(255,255,255,.8);
}
.gs1-footer-contact li .fa,
.gs1-footer-contact li i {
  color: #f26334;
  margin-top: 3px;
  min-width: 14px;
}

/* Bottom bar */
.gs1-footer-bottom {
  background: #001228;
  padding: 14px 0;
  font-size: .77rem;
  color: rgba(255,255,255,.65);
}
.gs1-footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 768px) {
  .gs1-footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }
}
.gs1-footer-bottom p { margin: 0; }
.gs1-footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.gs1-footer-bottom-links a {
  color: rgba(255,255,255,.7);
  font-size: .77rem;
  transition: color .2s;
}
.gs1-footer-bottom-links a:hover { color: #f26334; }

/* ==========================================================
   UTILITY
   ========================================================== */
.gs1-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.gs1-bg-blue   { background: var(--gs1-blue) !important; }
.gs1-bg-orange { background: var(--gs1-orange) !important; }
.gs1-text-blue   { color: var(--gs1-blue) !important; }
.gs1-text-orange { color: var(--gs1-orange) !important; }
