/* ==========================================================
   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;
}
/* Mobile : 3 colonnes — brand + contact pleine largeur, 3 cols de liens côte à côte */
@media (max-width: 599.98px) {
  .gs1-footer-top { padding: 16px 0 14px; }
  .gs1-footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px 8px;
    padding: 0 12px;
  }
  /* Brand : logo + réseaux sur une ligne, description cachée */
  .gs1-footer-brand { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; flex-wrap: nowrap; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .gs1-footer-brand img { height: 28px; flex-shrink: 0; }
  .gs1-footer-desc { display: none !important; }
  .gs1-footer-social { margin-top: 0; margin-left: auto; }
  .gs1-footer-social a { width: 24px; height: 24px; font-size: .65rem; }
  /* Contact : pleine largeur en dessous */
  .gs1-footer-grid > div:last-of-type { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 8px; }
  .gs1-footer-contact { display: flex; flex-wrap: wrap; gap: 2px 14px; }
  .gs1-footer-contact li { font-size: .68rem; padding: 1px 0; }
  /* 3 colonnes de liens */
  .gs1-footer-col-title { font-size: .6rem; margin-bottom: 6px; padding-bottom: 3px; letter-spacing: .05em; }
  .gs1-footer-links li { padding: 1px 0; }
  .gs1-footer-links a { font-size: .68rem; }
}
@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;
}
/* ── Groupe FAB : Retour + Accueil (toutes pages, tous ecrans) ── */
.gs1-fab-group {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gs1-fab-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gs1-blue);
  color: #fff !important;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 4px 18px rgba(0,44,108,.35);
  text-decoration: none !important;
  transition: background .2s, transform .15s, box-shadow .2s;
  font-family: 'Inter', sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.gs1-fab-btn:hover,
.gs1-fab-btn:focus {
  background: var(--gs1-orange);
  color: #fff !important;
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(242,99,52,.4);
  text-decoration: none !important;
  outline: none;
}
.gs1-fab-back { order: 1; }
.gs1-fab-home { order: 2; }
/* Zone sûre iOS */
@supports (bottom: env(safe-area-inset-bottom)) {
  .gs1-fab-group {
    bottom: max(24px, calc(16px + env(safe-area-inset-bottom)));
    right: max(20px, calc(12px + env(safe-area-inset-right)));
  }
}
.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; }

/* ============================================================
   MEGA MENU — INNER LAYOUT
   ============================================================ */

/* Fix nav container: flex row pour hamburger + liste */
.gs1-nav .gs1-container {
  display: flex;
  align-items: center;
  min-height: 52px;
  position: relative;
}

/* Desktop */
@media (min-width: 992px) {
  .gs1-nav .gs1-container { min-height: var(--gs1-nav-h); }
  .gs1-nav-toggle { display: none; }
  .gs1-nav-list {
    display: flex !important;
    flex-direction: row;
    align-items: stretch;
    flex: 1;
    justify-content: center;
    position: static;
    background: transparent;
    padding: 0;
    box-shadow: none;
    overflow: visible;
    max-height: none;
  }
  .gs1-nav-item-cta {
    margin-left: auto;
    display: flex;
    align-items: center;
    padding: 0 4px;
  }
}

/* Mobile nav — dropdown via .gs1-nav-menu (div cible du JS) */
@media (max-width: 991.98px) {
  /* Le dropdown est fixé sous la logobar sticky */
  .gs1-nav-menu {
    position: fixed !important;
    top: 72px !important;
    left: 0;
    right: 0;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 1001;
  }
  .gs1-nav-item {
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .gs1-nav-item:last-child { border-bottom: none; }
  .gs1-nav-link {
    padding: 14px 20px;
    font-size: .92rem;
    width: 100%;
    min-height: 52px;
  }
  .gs1-mega-menu {
    padding: 0 20px 12px;
    background: rgba(0,0,0,.18);
  }
  .gs1-nav-item-cta {
    border-bottom: none;
    padding: 12px 16px 4px;
  }
  .gs1-btn-primary-mobile {
    display: none !important;
  }
  /* Hamburger → X animation */
  .gs1-nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .gs1-nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .gs1-nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ── Hamburger dans la logobar (fond blanc) ── */
.gs1-logobar .gs1-nav-toggle {
  border-color: rgba(0, 44, 108, 0.28);
  margin: 0;
}
.gs1-logobar .gs1-nav-toggle span {
  background: var(--gs1-blue);
}

/* ── Nav invisible sur mobile : le dropdown part juste sous la logobar ── */
@media (max-width: 991.98px) {
  /* Logobar sticky = barre unique persistante sur mobile */
  .gs1-logobar {
    position: sticky;
    top: 0;
    z-index: 1002;
  }
  /* Nav = conteneur 0-height, invisible (hamburger est dans la logobar) */
  .gs1-nav {
    background: transparent;
    min-height: 0;
    padding: 0;
    position: static;
  }
  /* Cible la div interne réelle du template de production */
  .gs1-nav .gs1-nav-inner,
  .gs1-nav .gs1-container {
    min-height: 0 !important;
    height: 0;
    padding: 0;
    overflow: visible;
  }
}

/* ══════════════════════════════════════════════════════════
   MENU MOBILE — STYLE GS1 FRANCE
   Fond blanc, texte bleu foncé, bordure orange en haut
   ══════════════════════════════════════════════════════════ */

/* Boutons CTA en haut du menu mobile */
.gs1-nav-mobile-cta {
  display: none;
  padding: 16px;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid rgba(0,44,108,.1);
  background: #fff;
}
@media (max-width: 991.98px) {
  .gs1-nav-mobile-cta { display: flex; }
}
.gs1-nav-cta-adherer {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--gs1-orange);
  color: #fff !important;
  font-weight: 700; font-size: 1rem;
  padding: 15px 20px;
  border-radius: 6px;
  min-height: 54px;
  touch-action: manipulation;
  text-decoration: none !important;
  transition: background .2s;
  -webkit-tap-highlight-color: transparent;
}
.gs1-nav-cta-adherer:hover,
.gs1-nav-cta-adherer:focus { background: var(--gs1-orange-dk); color: #fff !important; }
.gs1-nav-cta-espace {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: #fff;
  color: var(--gs1-orange) !important;
  font-weight: 700; font-size: 1rem;
  padding: 13px 20px;
  border-radius: 6px;
  border: 2px solid var(--gs1-orange);
  min-height: 54px;
  touch-action: manipulation;
  text-decoration: none !important;
  transition: background .2s;
  -webkit-tap-highlight-color: transparent;
}
.gs1-nav-cta-espace:hover,
.gs1-nav-cta-espace:focus { background: rgba(242,99,52,.07); }

@media (max-width: 991.98px) {
  /* Fond blanc + bordure orange haut */
  .gs1-nav-menu {
    background: #fff !important;
    box-shadow: 0 8px 40px rgba(0,44,108,.18) !important;
    border-top: 3px solid var(--gs1-orange) !important;
  }
  /* Liens nav : bleu foncé */
  .gs1-nav-link {
    color: var(--gs1-blue) !important;
    border-bottom: 1px solid rgba(0,44,108,.08) !important;
    font-size: 1rem !important;
    font-weight: 600;
    min-height: 58px;
  }
  .gs1-nav-link:hover,
  .gs1-nav-link:focus {
    color: var(--gs1-orange) !important;
    background: rgba(242,99,52,.05) !important;
  }
  .gs1-nav-link .gs1-arrow { color: var(--gs1-blue) !important; }
  /* Sous-menus fond très clair */
  .gs1-mega-menu { background: #f4f7fb !important; }
  .gs1-mm-head {
    color: rgba(0,44,108,.5) !important;
    border-bottom-color: rgba(0,44,108,.12) !important;
  }
  .gs1-mm-link {
    color: var(--gs1-blue) !important;
  }
  .gs1-mm-link:hover { color: var(--gs1-orange) !important; }
  .gs1-mm-link i { color: var(--gs1-orange); }
  /* Plain <a> and <h6> inside mega columns (no .gs1-mm-link class) */
  .gs1-mega-col a,
  .gs1-mega-col h6,
  .gs1-mega-col h6 a,
  .gs1-mega-col li a,
  .gs1-mega-inner a {
    color: var(--gs1-blue) !important;
    text-decoration: none !important;
  }
  .gs1-mega-col a:hover,
  .gs1-mega-col li a:hover { color: var(--gs1-orange) !important; }
  .gs1-mega-col h6 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
  .gs1-mega-col .gs1-muted { color: rgba(0,44,108,.4) !important; font-size: .87rem; }
  /* Items */
  .gs1-nav-item { border-bottom-color: rgba(0,44,108,.08) !important; }
  /* Login mobile */
  .gs1-login-mobile {
    background: rgba(0,44,108,.06) !important;
    color: var(--gs1-blue) !important;
    border-color: rgba(0,44,108,.18) !important;
  }
  .gs1-login-mobile:hover { background: rgba(0,44,108,.1) !important; }
}

/* ══════════════════════════════════════════════════════════
   BARRE LIENS RAPIDES MOBILE (style GS1 UK — fond orange, texte blanc)
   ══════════════════════════════════════════════════════════ */
.gs1-quicklinks-mobile { display: none; }
@media (max-width: 991.98px) {
  .gs1-quicklinks-mobile {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    background: #002c6c;
    border-bottom: none;
    padding: 0 8px;
    gap: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gs1-quicklinks-mobile::-webkit-scrollbar { display: none; }
  .gs1-quicklinks-mobile a {
    flex-shrink: 0;
    color: #fff !important;
    font-size: .76rem;
    font-weight: 600;
    padding: 9px 14px;
    text-decoration: none !important;
    border-bottom: 2px solid transparent;
    transition: background .15s, border-bottom-color .15s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: .01em;
  }
  .gs1-quicklinks-mobile a:hover,
  .gs1-quicklinks-mobile a:focus {
    color: #fff !important;
    background: rgba(0,0,0,.12);
    border-bottom-color: rgba(255,255,255,.6);
  }
}

/* ══════════════════════════════════════════════════════════
   SECTIONS MASQUÉES MOBILE — page d'accueil
   ══════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .s-hidden-mobile { display: none !important; }
}

/* Mega menu grid */
.gs1-mm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (max-width: 991.98px) {
  .gs1-mm-grid {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
  }
  .gs1-mm-cta-col { display: none; }
}

.gs1-mm-head {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gs1-gray-800);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gs1-blue-lt);
  margin-top: 4px;
}
@media (max-width: 991.98px) {
  .gs1-mm-head {
    color: rgba(255,255,255,.45);
    border-bottom-color: rgba(255,255,255,.1);
    font-size: .65rem;
  }
}

.gs1-mm-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  color: var(--gs1-gray-800);
  font-size: .875rem;
  text-decoration: none;
  transition: color .18s, padding-left .18s;
  white-space: normal;
}
.gs1-mm-link i { color: var(--gs1-orange); width: 16px; flex-shrink: 0; font-size: .82rem; }
.gs1-mm-link:hover { color: var(--gs1-blue); padding-left: 3px; text-decoration: none; }
@media (max-width: 991.98px) {
  .gs1-mm-link {
    color: rgba(255,255,255,.78);
    padding: 8px 0;
    font-size: .88rem;
    min-height: 44px;
  }
  .gs1-mm-link:hover { color: #fff; padding-left: 5px; }
}

.gs1-mm-cta-col {
  background: var(--gs1-blue-lt);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 200px;
}
.gs1-mm-cta { text-align: center; }
.gs1-mm-cta-icon {
  width: 50px;
  height: 50px;
  background: var(--gs1-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.gs1-mm-cta-icon i { color: #fff; font-size: 1.2rem; }
.gs1-mm-cta-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--gs1-blue);
  line-height: 1.4;
  margin-bottom: 12px;
}
.gs1-mm-cta-btn {
  display: inline-block;
  background: var(--gs1-orange);
  color: #fff !important;
  font-size: .82rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 6px;
  transition: background .2s, transform .15s;
  text-decoration: none !important;
  white-space: nowrap;
}
.gs1-mm-cta-btn:hover {
  background: var(--gs1-orange-dk);
  color: #fff !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* ============================================================
   LOGOBAR — ALIAS
   ============================================================ */
.gs1-logobar-btns {
  display: none;
  align-items: center;
  gap: 12px;
}
@media (min-width: 992px) {
  .gs1-logobar-btns { display: flex; }
}

/* ============================================================
   FOOTER — FIXES & ALIASES
   ============================================================ */

/* Alias gs1-footer-socials → gs1-footer-social */
.gs1-footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.gs1-footer-socials a {
  width: 36px !important;
  height: 36px !important;
  background: rgba(255,255,255,.1) !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  font-size: .88rem !important;
  transition: background .2s !important;
  padding: 0 !important;
  min-height: unset !important;
}
.gs1-footer-socials a:hover {
  background: var(--gs1-orange) !important;
  color: #fff !important;
}

/* Footer col — direct <a> children */
.gs1-footer-col {
  display: flex;
  flex-direction: column;
}
.gs1-footer-col > a {
  display: block !important;
  padding: 3px 0 !important;
  color: rgba(255,255,255,.65) !important;
  font-size: .82rem;
  transition: color .2s, padding-left .2s !important;
  text-decoration: none !important;
  min-height: unset !important;
}
.gs1-footer-col > a:hover {
  color: var(--gs1-orange) !important;
  padding-left: 4px !important;
}

/* Footer grid padding fix */
.gs1-footer-grid {
  padding-top: 56px;
  padding-bottom: 44px;
}

/* Footer bottom flex */
.gs1-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 16px 24px;
  margin-top: 0;
}
.gs1-footer-bottom span,
.gs1-footer-bottom a {
  color: rgba(255,255,255,.5) !important;
  font-size: .77rem;
  transition: color .2s;
  min-height: unset !important;
  display: inline !important;
}
.gs1-footer-bottom a:hover { color: var(--gs1-orange) !important; }
@media (min-width: 768px) {
  .gs1-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================================
   iOS / ANDROID — OPTIMISATIONS GLOBALES
   ============================================================ */

/* Supprime le highlight iOS au tap */
* { -webkit-tap-highlight-color: transparent; }

/* Rendu des polices */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Empêche l'ajustement automatique de la taille de police iOS */
html { -webkit-text-size-adjust: 100%; }

/* Supprime le délai 300ms sur iOS */
a, button, input, select, textarea, label {
  touch-action: manipulation;
}

/* Supprime les styles par défaut iOS sur les inputs */
input, button, select, textarea {
  -webkit-appearance: none;
  border-radius: 0;
}

/* Touch targets nav — Kobo-style (44px minimum, pas de délai 300ms) */
.gs1-nav-link,
.gs1-nav-toggle,
.gs1-btn-primary,
.gs1-btn-outline,
.gs1-fab-btn {
  touch-action: manipulation;
}

/* iOS : font 16px sur inputs pour éviter le zoom auto */
@media (max-width: 991.98px) {
  input, select, textarea { font-size: 16px !important; }
}

/* Zone sûre iOS (encoche + home indicator) */
@supports (padding: env(safe-area-inset-left)) {
  .gs1-ticker-bar,
  .gs1-topbar,
  .gs1-logobar,
  .gs1-nav {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .gs1-footer {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .gs1-fab-home {
    right: max(28px, calc(28px + env(safe-area-inset-right)));
    bottom: max(28px, calc(28px + env(safe-area-inset-bottom)));
  }
}

/* Empêche le défilement horizontal */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Défilement momentum iOS */
.gs1-nav-list,
.gs1-mega-menu {
  -webkit-overflow-scrolling: touch;
}

/* Animation ticker pause au survol */
.gs1-ticker-bar:hover .gs1-ticker-inner { animation-play-state: paused; }

/* ── RESPONSIVE TOPBAR / TICKER / PROMO ── */
@media (max-width: 991.98px) {
  /* Sur mobile : seulement la logobar est visible */
  .gs1-ticker-bar { display: none !important; }
  .gs1-topbar     { display: none !important; }
  #qr617-promo-bar { display: none !important; }
}

/* ── RESPONSIVE LOGOBAR ── */
@media (max-width: 479px) {
  .gs1-logobar-inner { padding: 8px 16px; }
  .gs1-logo-link img { height: 48px; }
}

/* ── RESPONSIVE FOOTER ── */
@media (max-width: 599px) {
  .gs1-footer-grid {
    padding-top: 40px;
    padding-bottom: 32px;
  }
  .gs1-footer-brand img { height: 44px; }
}
@media (min-width: 600px) and (max-width: 991px) {
  .gs1-footer-grid { padding-top: 48px; padding-bottom: 36px; }
}

/* ══════════════════════════════════════════════════════════
   GRILLE MOBILE — 2 colonnes UNIQUEMENT dans nos sections custom
   (limité à .sec, .s-*, .gs1-* pour ne PAS casser les pages Odoo)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
  /* 4 colonnes desktop → 2 par ligne mobile (nos sections seulement) */
  .sec .col-lg-3, [class*="s-"] .col-lg-3, .gs1-footer-grid .col-lg-3 { flex: 0 0 50% !important; max-width: 50% !important; }
  /* 3 colonnes desktop → 2 par ligne mobile */
  .sec .col-lg-4, [class*="s-"] .col-lg-4 { flex: 0 0 50% !important; max-width: 50% !important; }
  /* col-md-4 (3/ligne) → 2 par ligne mobile (nos sections seulement) */
  .sec .col-md-4, [class*="s-"] .col-md-4 { flex: 0 0 50% !important; max-width: 50% !important; }
  /* Réduire les gouttières pour que les cartes ne soient pas trop serrées */
  .sec .row.g-4, [class*="s-"] .row.g-4 { --bs-gutter-x: .5rem !important; --bs-gutter-y: .5rem !important; }
  .sec .row.g-3, [class*="s-"] .row.g-3 { --bs-gutter-x: .4rem !important; --bs-gutter-y: .4rem !important; }
  /* Cartes : padding interne compact */
  .service-card, .step-card, .uc-card, .blog-card, .temo-card,
  .sect-card, .agenda-card, .zebra-feat-card {
    padding: .75rem .65rem !important;
  }
  .service-card h4, .step-card h4, .uc-card h4,
  .sect-card h4, .blog-card h4 { font-size: .78rem !important; margin-bottom: .25rem !important; }
  .service-card p, .step-card p, .uc-card p,
  .sect-card p, .blog-card p { font-size: .72rem !important; line-height: 1.4 !important; margin-bottom: .3rem !important; }
  .service-icon, .uc-icon { width: 32px !important; height: 32px !important; font-size: .85rem !important; margin-bottom: .5rem !important; }
  .step-num { width: 30px !important; height: 30px !important; font-size: .8rem !important; }
  .service-arr, .step-cta, .blog-read { font-size: .7rem !important; }
  /* Icônes secteurs */
  .sect-emoji { font-size: 1.1rem !important; }
  /* Blog card image */
  .blog-img { height: 80px !important; }
}

/* ══════════════════════════════════════════════════════════
   PAGE BLOG ODOO — style GS1 Cameroun
   Surcharge le template Odoo par défaut
   ══════════════════════════════════════════════════════════ */

/* Header de la page blog */
.o_wblog_read_top,
.website_blog .o_wblog_hero { background: var(--gs1-blue) !important; }

/* Titre h1 de la page blog */
.website_blog h1,
.o_wblog_read_top h1 {
  font-family: 'Inter', sans-serif !important;
  color: #fff !important;
  font-weight: 800 !important;
}

/* Articles de blog — style carte */
#o_wblog_posts_loop article,
.o_blog_post_list article,
.website_blog article {
  border: 1px solid #e4e7ec !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 10px rgba(0,44,108,.07) !important;
  margin-bottom: 1.2rem !important;
  background: #fff !important;
  transition: box-shadow .2s !important;
}
#o_wblog_posts_loop article:hover,
.o_blog_post_list article:hover {
  box-shadow: 0 6px 24px rgba(0,44,108,.14) !important;
}

/* Titre des articles */
.o_wblog_post_title a,
.o_blog_post_title a,
.website_blog h2 a,
.website_blog h3 a {
  color: var(--gs1-blue) !important;
  font-weight: 700 !important;
  font-family: 'Inter', sans-serif !important;
  text-decoration: none !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
}
.o_wblog_post_title a:hover,
.o_blog_post_title a:hover { color: var(--gs1-orange) !important; }

/* Tags / catégories */
.o_blog_post_tag a,
.badge.text-bg-light {
  background: var(--gs1-blue) !important;
  color: #fff !important;
  border-radius: 20px !important;
  font-size: .68rem !important;
  padding: 2px 8px !important;
  text-decoration: none !important;
}

/* Métadonnées (date, auteur) */
.o_wblog_post_short_desc,
.website_blog .o_blog_post_info,
.website_blog small {
  color: #667085 !important;
  font-size: .76rem !important;
}

@media (max-width: 767.98px) {
  /* Masquer la sidebar sur mobile */
  #o_wblog_sidebar { display: none !important; }
  #o_wblog_posts_loop,
  .o_blog_post_list { width: 100% !important; max-width: 100% !important; }

  /* 2 colonnes de posts sur mobile */
  #o_wblog_posts_loop .row > [class*="col-"],
  .o_blog_post_list .row > [class*="col-"] {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 0 6px !important;
  }

  /* Titre plus compact sur mobile */
  .o_wblog_post_title a,
  .o_blog_post_title a,
  .website_blog h2 a { font-size: .82rem !important; }

  /* Cacher le teaser sur mobile pour gagner de la place */
  .o_wblog_post_short_desc { display: none !important; }

  /* Pagination */
  .website_blog .o_wblog_pager { font-size: .8rem !important; }
}
