/* ==========================================================
   GLOBAL.CSS — Variables, reset, header, footer, utilitaires
   ========================================================== */

/* ---- Variables ---- */
:root {
  --navy:   #0d1b3e;
  --blue:   #1e40af;
  --vivid:  #2563eb;
  --sky:    #3b82f6;
  --gold:   #f59e0b;
  --gold2:  #fbbf24;
  --light:  #eff6ff;
  --white:  #ffffff;
  --gray:   #64748b;
  --dark:   #0f172a;
  --grad1:  linear-gradient(to bottom, #1e3a8a 0%, #2d1b69 50%, #080010 100%);
  --grad2:  linear-gradient(135deg, #2563eb, #7c3aed);
  --grad3:  linear-gradient(135deg, #f59e0b, #ef4444);
  --shadow: 0 25px 50px -12px rgba(0,0,0,.25);
  --radius: 16px;
  --trans:  all .35s cubic-bezier(.4,0,.2,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--vivid); border-radius: 3px; }

/* ---- Container ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---- Section commons ---- */
section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-badge {
  display: inline-block;
  background: var(--light);
  color: var(--vivid);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(37,99,235,.2);
}
.section-title {
  font-family: 'Sora', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Buttons ---- */
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 30px rgba(245,158,11,.5);
  transition: var(--trans);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  animation: btnShimmer 3s ease-in-out 1.5s infinite;
}
@keyframes btnShimmer {
  0%        { left: -80%; }
  55%, 100% { left: 130%; }
}
.btn-primary:hover {
  background: var(--gold2);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(245,158,11,.6);
}
.btn-secondary {
  background: rgba(255,255,255,.1);
  color: #fff;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,.3);
  transition: var(--trans);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  font-family: 'Poppins', sans-serif;
}
.btn-secondary:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.6);
  transform: translateY(-3px);
}
.btn-outline {
  background: transparent;
  color: var(--vivid);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  border: 2px solid var(--vivid);
  transition: var(--trans);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}
.btn-outline:hover { background: var(--vivid); color: #fff; transform: translateY(-2px); }

/* ---- Page hero (sous-pages) ---- */
.page-hero {
  background: var(--grad1);
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(37,99,235,.2);
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -5%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(37,99,235,.1);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}
.page-hero p { color: rgba(255,255,255,.7); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
  font-size: .85rem;
}
.breadcrumb a { color: rgba(255,255,255,.6); transition: var(--trans); }
.breadcrumb a:hover { color: var(--gold2); }
.breadcrumb span { color: rgba(255,255,255,.4); font-size: .7rem; }
.breadcrumb .current { color: var(--gold2); font-weight: 600; }

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 2px 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  transition: var(--trans);
}
#header.scrolled {
  background: rgba(255,255,255,.99);
  backdrop-filter: blur(24px);
  padding: 2px 0;
  box-shadow: 0 4px 28px rgba(0,0,0,.12);
}
#header.nav-hidden {
  transform: translateY(-110%);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
}
.logo-img { height: 90px; width: auto; filter: drop-shadow(0 1px 4px rgba(0,0,0,.15)); }
.footer-brand .logo-img { height: 150px; }
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--grad2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .main { color: #fff; font-size: 1.1rem; }
.logo-text .sub { color: var(--gold2); font-size: .65rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }

/* Nav */
nav { display: flex; align-items: center; gap: 28px; }
nav a {
  color: #374151;
  font-size: .9rem;
  font-weight: 500;
  transition: var(--trans);
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: var(--trans);
  border-radius: 2px;
}
nav a:hover { color: #2563eb; }
nav a:hover::after { width: 100%; }
nav a.active { color: #2563eb; }
nav a.active::after { width: 100%; background: #2563eb; }
.nav-cta {
  background: #2563eb !important;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(37,99,235,.3);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: #1d4ed8 !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,99,235,.4) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  background: rgba(37,99,235,.1);
  border: 2px solid rgba(37,99,235,.25);
  z-index: 1002;
  position: relative;
  flex-shrink: 0;
}
.hamburger span {
  width: 22px;
  height: 3px;
  background: #2563eb;
  border-radius: 3px;
  transition: var(--trans);
  display: block;
  pointer-events: none;
}
/* Quand le menu est ouvert : on cache le hamburger (la croix est dans la nav) */
.hamburger.open { opacity: 0; pointer-events: none; }

/* Mobile nav — z-index 1001 pour passer AU-DESSUS du header (1000) */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 1001;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: #1f2937; font-size: 1.3rem; font-weight: 600; transition: var(--trans); }
.mobile-nav a:hover { color: #2563eb; }
.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: #1f2937;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--dark); padding: 80px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: .85rem; line-height: 1.8; max-width: 280px; margin-top: 12px; }
.footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: var(--trans);
  font-size: .9rem;
}
.social-btn:hover { background: var(--vivid); color: #fff; transform: translateY(-3px); }
.footer-col h4 { color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.5); font-size: .85rem; transition: var(--trans); }
.footer-col ul li a:hover { color: var(--gold2); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { color: rgba(255,255,255,.65); font-size: .8rem; }
.footer-bottom a { color: rgba(255,255,255,.7); font-size: .8rem; transition: var(--trans); }
.footer-bottom a:hover { color: var(--gold2); }

/* ============================================================
   FLOATING ELEMENTS
   ============================================================ */
.float-wa {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9995;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 30px rgba(37,211,102,.5);
  animation: pulse-wa 2.5s infinite;
  transition: var(--trans);
}
.float-wa:hover { transform: scale(1.12); }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 8px 30px rgba(37,211,102,.5); }
  50%       { box-shadow: 0 8px 50px rgba(37,211,102,.8); }
}

#backTop {
  position: fixed;
  bottom: 98px;
  right: 28px;
  z-index: 9994;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--vivid);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37,99,235,.4);
  opacity: 0;
  pointer-events: none;
  transition: var(--trans);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}
#backTop.visible { opacity: 1; pointer-events: all; }
#backTop:hover { background: var(--navy); transform: translateY(-3px); }

/* ============================================================
   ANIMATIONS UTILITAIRES
   ============================================================ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE — Header & Footer
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  nav { gap: 14px; }
  nav a { font-size: .82rem; }
  .nav-cta { padding: 8px 16px; font-size: .82rem !important; }
}
@media (max-width: 768px) {
  nav { display: none; }
  .hamburger {
    display: flex !important;
    visibility: visible !important;
    opacity: 1;
  }
  .hamburger.open { opacity: 0 !important; pointer-events: none; }
  section { padding: 70px 0; }
  .section-title { font-size: 1.9rem; }
  .page-hero h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-img { height: 90px; }
  .float-wa { right: 14px; }
  #backTop { right: 14px; }
}
@media (max-width: 480px) {
  .section-title { font-size: 1.6rem; }
  .btn-primary, .btn-secondary { font-size: .9rem; padding: 14px 24px; }
  .float-wa { right: 10px; }
  #backTop { right: 10px; }
}
