/* ============================================================
   Digital KMY Agency — Styles communs à TOUTES les pages
   (accueil, blog, articles de blog présents et futurs)
   Contient : reset, container, navigation, boutons, footer,
   bouton WhatsApp flottant, animations de révélation.
   ============================================================ */

:root {
  --electric: #1565FF;
  --electric-soft: #4A8AFF;
  --cyan: #00D4FF;
  --navy: #0B0F19;
  --navy-deep: #06080F;
  --ink: #1A1A1A;
  --white: #FFFFFF;
  --grey: #F8FAFC;
  --grey-line: #E3E8F2;
  --whatsapp: #25D366;
  --gradient: linear-gradient(120deg, #0B0F19 0%, #112580 45%, #1565FF 100%);
  --shadow-card: 0 4px 24px rgba(11,15,25,0.06), 0 1px 2px rgba(11,15,25,0.04);
  --shadow-card-hover: 0 18px 48px rgba(11,15,25,0.14), 0 2px 6px rgba(11,15,25,0.06);
  --radius-card: 14px;
  --radius-btn: 10px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ===== NAVBAR ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--grey-line);
  transition: box-shadow .3s ease;
}
.nav.scrolled {
  box-shadow: 0 2px 24px rgba(11,15,25,0.09);
  border-bottom-color: transparent;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { width: 180px; height: auto; object-fit: contain; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: rgba(11,15,25,0.68);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .2s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--electric);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-btn);
  padding: 12px 22px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--electric);
  color: #fff;
  box-shadow: 0 4px 14px rgba(21,101,255,0.32);
}
.btn-primary:hover { background: #0F52CC; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(21,101,255,0.42); }
.btn-outline {
  background: transparent;
  color: var(--electric);
  border-color: var(--electric);
}
.btn-outline:hover { background: rgba(21,101,255,0.06); transform: translateY(-1px); }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-white {
  background: #fff;
  color: var(--navy);
}
.btn-white:hover { background: #F0F4FA; transform: translateY(-1px); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover { background: #1FB958; transform: translateY(-1px); }
.btn-lg { padding: 16px 30px; font-size: 16px; }

.nav-cta { padding: 11px 20px; font-size: 14px; }

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE NAV OVERLAY ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.99);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-nav.open { display: flex; }
.mobile-nav-logo img { width: 150px; height: auto; object-fit: contain; margin-bottom: 8px; }
.mobile-nav a.mobile-link {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
}
.mobile-nav a.mobile-link:hover, .mobile-nav a.mobile-link.active { color: var(--electric); }
.mobile-nav .btn { font-size: 16px; padding: 14px 32px; }

/* ===== FOOTER ===== */
footer { background: var(--navy); color: #fff; padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; padding-bottom: 60px; }
.footer-logo-box {
  background: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  display: inline-block;
  margin-bottom: 18px;
}
.footer-logo-box img { width: 140px; height: auto; object-fit: contain; display: block; }
.footer-tagline { font-style: italic; color: rgba(255,255,255,0.7); margin: 0 0 24px; font-size: 15px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: grid; place-items: center;
  color: #fff;
  transition: background .2s, transform .2s;
}
.social-row a:hover { background: var(--electric); transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; }

.footer-col h4 { font-size: 15px; font-weight: 700; margin: 0 0 20px; color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 14.5px; transition: color .2s; }
.footer-col a:hover { color: var(--electric-soft); }
.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255,255,255,0.78);
  font-size: 14.5px;
  line-height: 1.5;
}
.footer-contact svg { width: 17px; height: 17px; color: var(--electric-soft); flex-shrink: 0; margin-top: 2px; }
.copyright { background: var(--navy-deep); color: rgba(255,255,255,0.5); text-align: center; padding: 22px 32px; font-size: 13.5px; }

/* ===== FLOATING WHATSAPP ===== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  z-index: 200;
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 10px 30px rgba(37,211,102,0.55); }
.wa-float svg { width: 28px; height: 28px; }

/* ===== REVEAL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* ============================================================
   RESPONSIVE — commun à toutes les pages
   Breakpoints : 1024px (tablette), 720px (mobile), 480px (petit mobile)
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .container { padding: 0 22px; }
  .nav-inner { padding: 12px 22px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-logo-img { width: 130px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .wa-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
  .wa-float svg { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .nav-inner { padding: 9px 16px; gap: 16px; }
  .nav-logo-img { width: 104px; }
  .mobile-nav { gap: 22px; }
  .mobile-nav-logo img { width: 118px; }
  .mobile-nav a.mobile-link { font-size: 18px; }

  footer { padding-top: 52px; }
  .footer-grid { gap: 30px; padding-bottom: 40px; }
  .footer-logo-box { padding: 8px 14px; margin-bottom: 14px; }
  .footer-logo-box img { width: 108px; }
  .footer-tagline { margin: 0 0 18px; font-size: 14px; }
  .footer-col h4 { margin: 0 0 14px; }
  .footer-col ul { gap: 8px; }
  .copyright { padding: 16px 20px; font-size: 12.5px; }

  .wa-float { bottom: 14px; right: 14px; width: 46px; height: 46px; }
  .wa-float svg { width: 21px; height: 21px; }
}

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