/* ============================================================
   NEXORA WEB AGENCY — Global Stylesheet
   Design: Clean & Professionnel | Plus Jakarta Sans + Inter
   ============================================================ */

/* Polices chargées via <link> dans le <head> de chaque page (évite le double chargement) */

/* --- CSS Variables --- */
:root {
  --color-primary:    #2563EB;
  --color-primary-dk: #1D4ED8;
  --color-primary-lt: #EFF6FF;
  --color-dark:       #0F172A;
  --color-text:       #1E293B;
  --color-muted:      #64748B;
  --color-border:     #E2E8F0;
  --color-bg:         #FFFFFF;
  --color-bg-alt:     #F8FAFC;
  --color-whatsapp:   #25D366;
  --color-whatsapp-dk:#1DA851;

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.12);
  --shadow-blue: 0 8px 30px rgba(37,99,235,.25);

  --transition: .2s ease;
  --max-width: 1160px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* --- Utility --- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-center { text-align: center; }
.highlight { color: var(--color-primary); }

/* --- Section Titles --- */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.navbar-logo img {
  height: 44px;
  width: auto;
  /* Logo has black bg — we invert only the dark areas via mix-blend-mode */
  object-fit: contain;
}
.navbar-logo span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-dark);
  display: none; /* shown if logo fails */
}
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.navbar-menu a {
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.navbar-menu a:hover,
.navbar-menu a.active { color: var(--color-primary); background: var(--color-primary-lt); }
.navbar-cta {
  background: var(--color-primary);
  color: #fff !important;
  border-radius: var(--radius-full) !important;
  padding: 8px 20px !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.navbar-cta:hover { background: var(--color-primary-dk) !important; transform: translateY(-1px); }
.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.navbar-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-hamburger.open span:nth-child(2) { opacity: 0; }
.navbar-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile nav --- */
@media (max-width: 768px) {
  .navbar-hamburger { display: flex; }
  .navbar-menu {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 16px 24px;
    gap: 6px;
    box-shadow: var(--shadow-lg);
  }
  .navbar-menu.open { display: flex; }
  .navbar-menu a { padding: 12px 16px; border-radius: var(--radius-sm); }
  .navbar-cta { text-align: center; margin-top: 8px; }
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  width: 58px;
  height: 58px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.55); }
.wa-float i { color: #fff; font-size: 1.6rem; }
.wa-float::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.4);
  animation: wa-pulse 2s infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 1; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 800;
  width: 42px;
  height: 42px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  cursor: pointer;
  color: var(--color-primary);
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: translateY(-3px); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  border-radius: var(--radius-full);
  padding: 13px 28px;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--color-primary-dk); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(37,99,235,.35); }
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37,211,102,.3);
}
.btn-whatsapp:hover { background: var(--color-whatsapp-dk); transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 9px 20px; font-size: .8rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 52px; height: 52px;
  background: var(--color-primary-lt);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon i { color: var(--color-primary); font-size: 1.35rem; }

/* ============================================================
   BADGE
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary-lt);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  letter-spacing: .04em;
}
.badge-green { background: #DCFCE7; color: #16A34A; }
.badge-orange { background: #FEF3C7; color: #D97706; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-dark);
  color: #94A3B8;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img { height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .875rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: .875rem;
  color: #94A3B8;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--color-primary); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .875rem;
}
.footer-contact-item i { color: var(--color-primary); margin-top: 3px; flex-shrink: 0; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: .8rem;
}
.footer-bottom a { color: var(--color-primary); }
.footer-bottom a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================================
   PAGE HEADER (breadcrumb hero)
   ============================================================ */
.page-header {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-primary-lt) 100%);
  border-bottom: 1px solid var(--color-border);
}
.page-header .section-title { margin-bottom: 8px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--color-muted);
  margin-top: 12px;
}
.breadcrumb a { color: var(--color-primary); }
.breadcrumb span { color: var(--color-muted); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation: fadeInUp .55s ease both;
}
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }
.delay-6 { animation-delay: .6s; }
.delay-7 { animation-delay: .7s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--color-dark);
  color: #E2E8F0;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: .85rem;
  transform: translateY(100%);
  transition: transform .4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { max-width: 680px; line-height: 1.5; }
.cookie-banner a { color: var(--color-primary); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-buttons button {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}
.cookie-accept { background: var(--color-primary); color: #fff; border: none; }
.cookie-accept:hover { background: var(--color-primary-dk); }
.cookie-decline { background: transparent; color: #94A3B8; border: 1px solid #475569; }
.cookie-decline:hover { border-color: #94A3B8; color: #fff; }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */
@media (max-width: 480px)  { .hide-mobile  { display: none !important; } }
@media (min-width: 481px)  { .show-mobile  { display: none !important; } }
@media (max-width: 768px)  { .hide-tablet  { display: none !important; } }
@media (min-width: 769px)  { .show-tablet  { display: none !important; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
