/* /css/layout-header-footer.css (COMPLET) */

/* ==========================================================================
   OF ⇄ TRANSFER — layout-header-footer.css (CLEAN UNIFIED + FOOTER PRO)
   - Header: glass capsule flottante (1 couche) + auto-hide (JS)
   - Desktop: 1 ligne NO SCROLL, nav centrée
   - Infos: dropdown stable (hover desktop + click .open)
   - Mobile: overlay premium + carte glass + topbar intégrée + X DANS la topbar
   - Footer: fintech pro (grid + badges + CTA)
   ========================================================================== */

/* =========================
   TOKENS
   ========================= */
:root{
  --glass-bg: rgba(3,12,24,0.42);
  --glass-border: rgba(255,255,255,0.10);
  --glass-inset: rgba(255,255,255,0.05);
  --glass-shadow: 0 18px 55px rgba(0,0,0,0.42);

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.84);
  --hover: rgba(255,255,255,0.07);

  --green: rgba(6,193,103,0.95);
  --green-border: rgba(6,193,103,0.60);

  --radius-pill: 999px;
  --r10: 10px;
  --r14: 14px;
  --r16: 16px;
  --r18: 18px;
  --r20: 20px;

  --wrap: 1180px;
}

body.no-scroll{ overflow:hidden; }

/* =========================
   HEADER (1 couche)
   ========================= */
.navbar,
header.navbar{
  position: sticky;
  top: 12px;
  z-index: 9999;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  padding: 0 12px 10px;

  transition: transform .22s ease, opacity .22s ease;
  will-change: transform;
}

.navbar::before, .navbar::after,
header.navbar::before, header.navbar::after{
  content:none !important;
  display:none !important;
}

.navbar.is-hidden{
  transform: translateY(-120%);
  opacity: 0.98;
}

.nav-inner{
  max-width: var(--wrap);
  margin: 0 auto;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;

  --nav-pad-y: 10px;
  --nav-pad-x: 14px;
  --nav-radius: 22px;
  --nav-bg: var(--glass-bg);
  --nav-blur: 16px;
  --nav-sat: 1.15;

  padding: var(--nav-pad-y) var(--nav-pad-x);
  border-radius: var(--nav-radius);

  background: var(--nav-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-inset);

  backdrop-filter: blur(var(--nav-blur)) saturate(var(--nav-sat));
  -webkit-backdrop-filter: blur(var(--nav-blur)) saturate(var(--nav-sat));

  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* highlight premium subtil */
.nav-inner::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,0.06), transparent 55%);
  opacity: .45;
}
.nav-inner > *{ position:relative; z-index:1; }

@media (hover:hover) and (pointer:fine){
  .nav-inner:hover{
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 22px 70px rgba(0,0,0,0.52), inset 0 1px 0 rgba(255,255,255,0.06);
  }
}

/* état compact (JS) */
.navbar.is-compact .nav-inner{
  --nav-pad-y: 7px;
  --nav-pad-x: 10px;
  --nav-radius: 18px;

  --nav-blur: 18px;
  --nav-bg: rgba(3,12,24,0.56);

  box-shadow: 0 20px 62px rgba(0,0,0,0.52), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Logo */
.logo{
  display:inline-flex;
  align-items:center;
  gap: 10px;

  text-decoration:none;
  color:#fff;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

/* =========================
   DESKTOP NAV (1 ligne)
   ========================= */
nav.desktop{
  display:none;
  flex: 1 1 auto;
  min-width: 0;

  align-items:center;
  justify-content:center;
  gap: 14px;

  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: visible;
}

nav.desktop a{
  color: var(--muted);
  text-decoration:none;
  font-size: 12.6px;
  padding: 8px 8px;
  border-radius: var(--r10);

  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
nav.desktop a:hover{
  color:#fff;
  background: var(--hover);
  transform: translateY(-1px);
}
nav.desktop a.active{
  color:#fff;
  position:relative;
}
nav.desktop a.active::after{
  content:"";
  position:absolute;
  left:10px; right:10px;
  bottom:-8px;
  height:2px;
  border-radius: var(--radius-pill);
  background: var(--green);
  box-shadow: 0 0 18px rgba(6,193,103,0.35);
}

/* =========================
   Dropdown "Infos"
   ========================= */
.nav-more{ position:relative; display:inline-flex; align-items:center; }

.nav-more-btn{
  display:inline-flex;
  align-items:center;
  gap: 6px;

  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.90);

  font-size: 12.6px;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  cursor:pointer;
  white-space: nowrap;

  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.nav-more-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}

.nav-more-menu{
  position:absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;

  display:none;
  flex-direction: column;
  gap: 6px;

  padding: 10px;
  border-radius: var(--r14);

  background: rgba(6,14,26,0.92);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 55px rgba(0,0,0,0.55);
  z-index: 9999;
}

/* ouverture click (JS) + focus */
.nav-more.open .nav-more-menu,
.nav-more:focus-within .nav-more-menu{ display:flex; }

/* hover desktop uniquement */
@media (hover:hover) and (pointer:fine){
  .nav-more:hover .nav-more-menu{ display:flex; }
}

.nav-more-menu a{
  display:block;
  padding: 10px 10px;
  border-radius: var(--r10);
  text-decoration:none;
  color: rgba(255,255,255,0.92);
  font-size: 13px;
}
.nav-more-menu a:hover{ background: rgba(255,255,255,0.06); }

/* =========================
   WhatsApp desktop
   ========================= */
.btn-wa-nav{
  display:inline-flex;
  align-items:center;
  gap: 8px;

  padding: 9px 12px;
  border-radius: var(--radius-pill);

  background: var(--green);
  color: #02130b !important;
  font-weight: 900;

  border: 1px solid var(--green-border);
  box-shadow: 0 0 18px rgba(6,193,103,0.22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-wa-nav:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(6,193,103,0.18);
}

/* =========================
   HAMBURGER (mobile)
   ========================= */
.hamburger{
  display:none;
  width: 34px;
  height: 34px;

  background: transparent;
  border: 0;
  box-shadow: none;

  padding: 0;
  cursor: pointer;
}
.hamburger span{
  display:block;
  width: 16px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.92);
  opacity: .95;
}
.hamburger span + span{ margin-top: 4px; }

button.hamburger{ appearance:none; }

/* Focus visible */
nav.desktop a:focus-visible,
.nav-more-btn:focus-visible,
.hamburger:focus-visible,
#mobileMenu .mobile-close:focus-visible{
  outline: 2px solid rgba(255,255,255,0.25);
  outline-offset: 2px;
}

/* =========================
   MOBILE MENU (Image 4)
   ========================= */
#mobileMenu.mobile-menu{
  position: fixed;
  inset: 0;
  z-index: 99999;

  background: rgba(0,0,0,0.52);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);

  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;

  display:flex;
  justify-content:center;
  align-items:flex-start;

  padding:
    calc(env(safe-area-inset-top, 0px) + 18px)
    12px
    calc(env(safe-area-inset-bottom, 0px) + 14px);
}

#mobileMenu.mobile-menu.open{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* carte glass (hauteur + scrolling comme Image 4) */
#mobileMenu .mobile-shell{
  width: min(92vw, 420px);
  max-height: calc(100dvh - (env(safe-area-inset-top, 0px) + 36px) - (env(safe-area-inset-bottom, 0px) + 20px));
  border-radius: 22px;

  background: rgba(10,18,32,0.62);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 26px 90px rgba(0,0,0,0.58);

  padding: 14px;

  overflow: hidden;
  position: relative;
}

/* topbar (avec X dedans) */
#mobileMenu .mobile-topbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;

  padding: 10px 10px;
  margin-bottom: 12px;

  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);

  color: rgba(255,255,255,0.88);
  font-size: 12.5px;
}

#mobileMenu .mt-left{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  white-space: nowrap;
}
#mobileMenu .mt-dot{
  width: 8px; height: 8px;
  border-radius: var(--radius-pill);
  background: var(--green);
  box-shadow: 0 0 12px rgba(6,193,103,0.35);
}

#mobileMenu .mt-right{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding: 7px 10px;
  border-radius: var(--radius-pill);

  background: rgba(6,193,103,0.14);
  border: 1px solid rgba(6,193,103,0.25);
  color: rgba(255,255,255,0.92);

  text-decoration:none;
  white-space: nowrap;
}

/* close = dans la topbar (plus fixed) */
#mobileMenu .mobile-close{
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);

  display:flex;
  align-items:center;
  justify-content:center;

  font-size: 16px;
  line-height: 1;

  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);

  cursor:pointer;
  flex: 0 0 auto;
}

/* nav scrollable interne */
#mobileMenu .mobile-nav{
  width: 100%;
  max-height: calc(
    100dvh - (env(safe-area-inset-top, 0px) + 120px) - (env(safe-area-inset-bottom, 0px) + 18px)
  );

  overflow:auto;
  -webkit-overflow-scrolling: touch;

  display:flex;
  flex-direction: column;
  gap: 12px;

  padding: 0;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 120px);
}

/* links (look Image 4) */
#mobileMenu .mobile-link{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;

  padding: 12px 14px;
  border-radius: 16px;

  text-decoration:none;
  color: rgba(255,255,255,0.92);

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.085);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
#mobileMenu .mobile-link:active{ background: rgba(255,255,255,0.06); }

/* icons premium */
#mobileMenu .m-ico{
  width: 18px; height: 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  opacity: .92;
}
#mobileMenu .m-ico svg{
  width: 18px; height: 18px;
  color: rgba(255,255,255,0.92);
  display:block;
}

/* separator */
#mobileMenu .mobile-sep{
  height: 1px;
  margin: 6px 4px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-pill);
}

/* sticky CTA bottom (dans le menu, style Image 4) */
#mobileMenu .mobile-cta{
  position: sticky;
  bottom: 0;
  z-index: 2;

  margin-top: 10px;
  padding-top: 12px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);

  background: linear-gradient(to top,
    rgba(10,18,32,0.92),
    rgba(10,18,32,0.62) 55%,
    rgba(10,18,32,0.0)
  );
  border-radius: 16px;
}

#mobileMenu .mobile-cta-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;

  width: 100%;
  padding: 13px 14px;
  border-radius: 16px;
  text-decoration:none;

  background: var(--green);
  color: #02130b;
  font-weight: 900;

  border: 1px solid var(--green-border);
  box-shadow: 0 14px 34px rgba(6,193,103,0.22);
}

#mobileMenu .mobile-cta-note{
  margin-top: 8px;
  text-align:center;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
}

/* cache widget quand menu open */
body.no-scroll .aiw-widget,
body.no-scroll .aiw-launcher{
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(8px) scale(0.98);
}

/* =========================
   BREAKPOINTS
   ========================= */
@media (min-width: 980px){
  nav.desktop{ display:flex; }
  .hamburger{ display:none !important; }
  #mobileMenu.mobile-menu{ display:none !important; }
}

@media (max-width: 979px){
  nav.desktop{ display:none !important; }
  .hamburger{ display:inline-flex !important; }

  .navbar{ top: 8px; padding: 0 8px 6px; }
  .nav-inner{ padding: 6px 8px; border-radius: var(--r16); min-height: 44px; }

  .logo{
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    font-size: 11.8px !important;
    letter-spacing: .045em !important;
  }

  .navbar.is-compact .logo{
    font-size: 11.4px !important;
    letter-spacing: .04em !important;
  }
  .navbar.is-compact .hamburger{
    width: 32px !important;
    height: 32px !important;
  }
}

/* ======================================================================
   FOOTER — OF ⇄ TRANSFER (Fintech pro)
   ====================================================================== */
.oft-footer{
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(3, 12, 24, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Accent discret */
.oft-footer::before{
  content:"";
  position:absolute;
  inset: -40px -60px auto -60px;
  height: 180px;
  pointer-events:none;
  background:
    radial-gradient(60% 120% at 12% 10%, rgba(6,193,103,0.14), transparent 60%),
    radial-gradient(45% 110% at 85% 30%, rgba(255,255,255,0.06), transparent 55%);
  opacity: .85;
}
.oft-footer::after{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(6,193,103,0.35), transparent);
  opacity:.55;
  pointer-events:none;
}

.oft-footer-inner{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 34px 18px;

  display: grid;
  gap: 22px;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;

  position: relative;
  z-index: 1;
}

.oft-footer-logo{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}
.oft-mark{
  color: rgba(255,255,255,0.95);
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 13px;
}

.oft-footer-tagline{
  margin: 12px 0 14px;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  line-height: 1.5;
  max-width: 46ch;
}

.oft-footer-badges{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.oft-badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;

  padding: 8px 10px;
  border-radius: var(--radius-pill);

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);

  color: rgba(255,255,255,0.86);
  font-size: 12px;
  white-space: nowrap;
}

.oft-ico{
  width: 16px;
  height: 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.oft-ico svg{
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.92);
}

.oft-footer-cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.oft-btn{
  display:inline-flex;
  align-items:center;
  gap: 8px;

  padding: 10px 12px;
  border-radius: var(--radius-pill);
  text-decoration:none;
  font-weight: 900;
  font-size: 12.6px;

  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);

  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.oft-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}

.oft-btn-wa{
  background: var(--green);
  border-color: rgba(6,193,103,0.55);
  color: #02130b;
  box-shadow: 0 10px 28px rgba(6,193,103,0.18);
}
.oft-btn-wa:hover{ box-shadow: 0 14px 34px rgba(6,193,103,0.22); }
.oft-btn-wa .oft-ico svg{ color: #02130b; }

.oft-btn-ghost{ background: rgba(255,255,255,0.03); }

.oft-footer-col{ padding-top: 4px; }

.oft-footer-title{
  margin: 0 0 10px;
  color: rgba(255,255,255,0.90);
  font-size: 12.5px;
  letter-spacing: .02em;
}

.oft-footer-link{
  display:block;
  padding: 8px 0;
  color: rgba(255,255,255,0.74);
  text-decoration:none;
  font-size: 13px;
  transition: color .15s ease, transform .15s ease;
}
.oft-footer-link:hover{
  color: rgba(255,255,255,0.95);
  transform: translateX(2px);
}

.oft-footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(3, 12, 24, 0.86);
  position: relative;
  z-index: 1;
}

.oft-footer-bottom-inner{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 18px;

  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.oft-mini{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
}
.oft-mini-dot{
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--green);
  box-shadow: 0 0 14px rgba(6,193,103,0.30);
}

.oft-footer-mini-links{
  display:inline-flex;
  gap: 14px;
}
.oft-footer-mini-links a{
  color: rgba(255,255,255,0.70);
  text-decoration:none;
  font-size: 12px;
  transition: color .15s ease;
}
.oft-footer-mini-links a:hover{ color: rgba(255,255,255,0.92); }

.oft-copy{
  color: rgba(255,255,255,0.62);
  font-size: 12px;
}

/* Footer responsive */
@media (max-width: 980px){
  .oft-footer-inner{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .oft-footer-inner{ grid-template-columns: 1fr; }
  .oft-footer-tagline{ max-width: 52ch; }
}
@media (hover:hover) and (pointer:fine){
  .oft-footer::before{
    transition: transform .6s ease, opacity .6s ease;
  }
  .oft-footer:hover::before{
    transform: translateY(-6px);
    opacity: .95;
  }
}

/* MOBILE OPTIMISÉ */
@media (max-width: 760px){
  .oft-footer-inner{
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 26px 16px !important;
  }

  .oft-footer-tagline{
    font-size: 13.2px !important;
    color: rgba(255,255,255,0.82) !important;
    max-width: 60ch !important;
    margin: 10px 0 12px !important;
  }

  .oft-footer-badges{
    gap: 8px !important;
    margin-bottom: 12px !important;
  }
  .oft-badge{
    padding: 7px 10px !important;
    font-size: 12px !important;
  }

  .oft-footer-cta{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 8px !important;
  }
  .oft-btn{
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
  }

  .oft-footer-col[aria-label="Services"],
  .oft-footer-col[aria-label="Infos"],
  .oft-footer-col[aria-label="Légal"]{
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 14px !important;
  }

  .oft-footer-title{
    font-size: 12.2px !important;
    color: rgba(255,255,255,0.92) !important;
    margin-bottom: 8px !important;
  }

  .oft-footer-link{
    padding: 9px 0 !important;
    font-size: 13px !important;
    color: rgba(255,255,255,0.78) !important;
  }
  .oft-footer-link:active{
    color: rgba(255,255,255,0.95) !important;
  }

  .oft-footer-bottom-inner{
    padding: 12px 16px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .oft-mini{
    font-size: 12px !important;
    color: rgba(255,255,255,0.76) !important;
  }

  .oft-footer-mini-links{
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 16px !important;
  }
  .oft-footer-mini-links a{
    font-size: 12.2px !important;
    color: rgba(255,255,255,0.74) !important;
  }

  .oft-copy{
    width: 100% !important;
    font-size: 12px !important;
    color: rgba(255,255,255,0.60) !important;
  }
}
/* =========================
   FOOTER — VISIBILITY RULES
   ========================= */

/* Desktop: colonnes visibles, accordion caché */
@media (min-width: 761px){
  .oft-footer-acc{ display:none !important; }
}

/* Mobile: accordion visible, colonnes cachées */
@media (max-width: 760px){
  .oft-footer-col{ display:none !important; }
  .oft-footer-acc{ display:block !important; }
}
/* =========================
   FOOTER ACCORDION — PREMIUM MOBILE
   ========================= */
@media (max-width: 760px){
  .oft-footer-acc{
    display:block;
    padding-top: 6px;
  }

  .oft-acc{
    border: 0;
    margin: 10px 0;
    border-radius: 16px;
    overflow: hidden;

    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  }

  .oft-acc-sum{
    list-style: none;
    cursor: pointer;

    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;

    padding: 14px 14px;
    color: rgba(255,255,255,0.92);
    font-weight: 800;
    font-size: 13px;
  }

  /* hide default marker */
  .oft-acc-sum::-webkit-details-marker{ display:none; }

  .oft-acc-ico{
    width: 18px;
    height: 18px;
    position: relative;
    opacity: .9;
  }

  /* + icon */
  .oft-acc-ico::before,
  .oft-acc-ico::after{
    content:"";
    position:absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 2px;
    background: rgba(255,255,255,0.75);
    transform: translate(-50%,-50%);
    border-radius: 999px;
  }
  .oft-acc-ico::after{
    width: 2px;
    height: 12px;
  }

  /* open -> turn into chevron */
  .oft-acc[open] .oft-acc-ico::after{ opacity: 0; }
  .oft-acc[open] .oft-acc-sum{
    background: rgba(255,255,255,0.02);
  }

  .oft-acc-body{
    padding: 6px 14px 12px;
    border-top: 1px solid rgba(255,255,255,0.07);
  }

  .oft-acc-body .oft-footer-link{
    padding: 10px 0 !important;
    color: rgba(255,255,255,0.78) !important;
  }
}
/* =========================
   FOOTER — VISIBILITY RULES
   ========================= */

/* Desktop: colonnes visibles, accordion caché */
@media (min-width: 761px){
  .oft-footer-acc{ display:none !important; }
}

/* Mobile: accordion visible, colonnes cachées */
@media (max-width: 760px){
  .oft-footer-col{ display:none !important; }
  .oft-footer-acc{ display:block !important; }
}
/* =========================================================
   FIX 1 — MENU MOBILE: bouton Fermer (X) comme "image 4"
   - Le X doit être DANS la carte (.mobile-shell), pas "fixed" sur l'écran
   ========================================================= */

/* la carte doit servir de référence */
#mobileMenu .mobile-shell{
  position: relative;
}

/* override de l'ancien X (qui était fixed) */
#mobileMenu .mobile-close{
  position: absolute;              /* <= au lieu de fixed */
  top: 10px;
  right: 10px;
  z-index: 3;

  width: 38px;
  height: 38px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  line-height: 1;

  color: rgba(255,255,255,0.92);
  background: rgba(10,18,32,0.50);
  border: 1px solid rgba(255,255,255,0.14);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 8px 22px rgba(0,0,0,0.40);
  cursor: pointer;
}

/* option: léger hover desktop (pas utile sur mobile mais safe) */
@media (hover:hover) and (pointer:fine){
  #mobileMenu .mobile-close:hover{
    background: rgba(10,18,32,0.62);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-1px);
  }
}

/* donne de l'air à la topbar pour éviter collision visuelle avec le X */
#mobileMenu .mobile-topbar{
  padding-right: 56px; /* espace réservé au X */
}


/* =========================================================
   FIX 2 — FOOTER DESKTOP: afficher les liens (Services/Infos/Légal)
   - Sur desktop: colonnes visibles, accordion caché
   - Sur mobile: accordion visible, colonnes cachées
   ========================================================= */

/* DESKTOP */
@media (min-width: 981px){
  /* si tu as les colonnes dans le HTML */
  .oft-footer-col{
    display: block !important;
  }
  /* accordion uniquement mobile */
  .oft-footer-acc{
    display: none !important;
  }

  /* si ton grid a été cassé parce que les colonnes ne s'affichaient pas */
  .oft-footer-inner{
    grid-template-columns: 1.3fr 1fr 1fr 1fr !important;
    align-items: start;
  }
}

/* MOBILE / TABLET */
@media (max-width: 980px){
  .oft-footer-col{
    display: none !important;
  }
  .oft-footer-acc{
    display: block !important;
  }

  /* le grid devient 1 ou 2 colonnes selon tes règles actuelles */
  .oft-footer-inner{
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 560px){
  .oft-footer-inner{
    grid-template-columns: 1fr !important;
  }
}
/* =========================================================
   FIX HAUTEUR MENU MOBILE (débordement) — sans changer le gradient
   ========================================================= */

#mobileMenu.mobile-menu{
  /* viewport stable sur mobile safari */
  height: 100dvh;
  overflow: hidden;
}

/* ton wrapper interne (carte) */
#mobileMenu.mobile-menu > div:first-child{
  /* la carte ne doit jamais dépasser l'écran */
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px);
  overflow: hidden;

  /* layout interne: topbar + nav */
  display: flex;
  flex-direction: column;
}

/* topbar garde sa taille */
#mobileMenu .mobile-topbar{
  flex: 0 0 auto;
}

/* NAV = zone scrollable */
#mobileMenu .mobile-nav{
  flex: 1 1 auto;
  min-height: 0;                /* clé: autorise le scroll au lieu de pousser */
  overflow: auto;
  -webkit-overflow-scrolling: touch;

  /* espace pour éviter que le dernier item passe sous le CTA sticky */
  padding-bottom: 110px;
}

/* CTA sticky bas: ne doit pas pousser la nav, juste se superposer */
#mobileMenu .mobile-cta{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 420px);

  bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  z-index: 10;
  pointer-events: none;         /* évite bugs de scroll */
}

#mobileMenu .mobile-cta *{
  pointer-events: auto;         /* réactive click sur le bouton */
}

/* Bouton close toujours visible */
#mobileMenu .mobile-close{
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 18px);
  right: 16px;
  z-index: 20;
}
.oft-footer-acc{ display:none; }
@media (max-width:760px){
  .oft-footer-col{ display:none; }
  .oft-footer-acc{ display:block; }
}
/* =========================
   FOOTER DESKTOP — FIX ESPACE BAS
   ========================= */

.oft-footer {
  padding-bottom: 0 !important;
}

.oft-footer-bottom {
  margin-bottom: 0 !important;
  padding-bottom: 16px;
}

.oft-footer-bottom-inner {
  padding-bottom: 0;
}
/* =========================
   FOOTER DESKTOP — HAUTEUR PROPRE
   ========================= */

@media (min-width: 1024px) {
  .oft-footer-inner {
    align-items: flex-start;
    padding-top: 56px;
    padding-bottom: 32px;
  }

  .oft-footer-brand {
    max-width: 420px;
  }
}
.oft-footer-title {
  letter-spacing: 0.04em;
  font-weight: 600;
  opacity: 0.9;
}
.oft-footer-link {
  position: relative;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.oft-footer-link:hover {
  opacity: 1;
}

.oft-footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.oft-footer-link:hover::after {
  opacity: 0.4;
}
.oft-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
}
.aiw-widget {
  bottom: 24px;
}
/* Liens mobile sans icône: garder un alignement propre */
#mobileMenu .mobile-link > span:only-child{
  width: 100%;
}

/* Variante "infos" un peu plus sobre */
#mobileMenu .mobile-link:not(:has(svg)){
  background: rgba(255,255,255,0.022);
  border-color: rgba(255,255,255,0.075);
}
header.navbar.is-hidden { transform: translateY(-100%); }
header.navbar { transition: transform .22s var(--ease-out); }

header.navbar.is-compact .nav-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}


/* FIX hamburger — isolation contre CSS page */
.navbar .hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar .hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  opacity: 1;
}
/* ===============================
   FIX HAMBURGER – PRIORITAIRE
   =============================== */

.navbar .hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  padding: 0;
  color: #fff;
}

.navbar .hamburger span {
  display: block !important;
  width: 22px;
  height: 2px;
  background-color: currentColor !important;
  opacity: 1 !important;
  visibility: visible !important;
}
/* ===============================
   HEADER PREMIUM – SPACING DENSITY
   =============================== */

/* Hauteur globale */
.navbar {
  padding: 6px 12px;
}

/* Conteneur interne */
.nav-inner {
  min-height: 48px;
  gap: 12px;
}

/* Logo */
.logo {
  font-size: 15px;
  letter-spacing: 0.3px;
}

/* Navigation desktop */
.navbar .desktop {
  gap: 18px;
}

.navbar .desktop a {
  padding: 6px 8px;
  font-size: 14px;
}

/* Bouton WhatsApp header */
.btn-wa-nav {
  padding: 6px 10px;
  font-size: 13px;
  gap: 6px;
}

/* Hamburger mobile */
.hamburger {
  width: 40px;
  height: 40px;
}

.hamburger span {
  width: 20px;
  height: 2px;
}

/* État compact (scroll) encore plus serré */
.navbar.is-compact {
  padding: 4px 10px;
}

.navbar.is-compact .nav-inner {
  min-height: 42px;
}
/* ======================================
   HEADER ULTRA-DENSE — FINTECH / STRIPE
   ====================================== */

/* Navbar encore plus fine */
.navbar {
  padding: 4px 10px;
}

/* Ligne interne */
.nav-inner {
  min-height: 42px;
  gap: 10px;
}

/* Logo */
.logo {
  font-size: 14px;
  letter-spacing: 0.25px;
}

/* Navigation desktop */
.navbar .desktop {
  gap: 14px;
}

.navbar .desktop a {
  padding: 4px 6px;
  font-size: 13px;
}

/* Dropdown Infos */
.nav-more-btn {
  padding: 4px 6px;
  font-size: 13px;
}

/* Bouton WhatsApp */
.btn-wa-nav {
  padding: 5px 8px;
  font-size: 12.5px;
  border-radius: 999px;
}

/* Hamburger mobile — ultra propre */
.hamburger {
  width: 36px;
  height: 36px;
}

.hamburger span {
  width: 18px;
  height: 2px;
}

/* État compact (scroll) — quasi flush */
.navbar.is-compact {
  padding: 3px 8px;
}

.navbar.is-compact .nav-inner {
  min-height: 38px;
}
/* FIX bouton fermeture menu mobile */
.mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1001;

  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.08);
  border-radius: 50%;

  color: #ffffff; /* clé */
  opacity: 1;
  visibility: visible;
}

.mobile-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.mobile-menu {
  z-index: 1000;
}
.hero,
.section,
.aiw-widget {
  position: relative;
  z-index: 2000;
}
