/* ============================================
   KAY'CONNECT x KAY'SECURE — Global Styles
   ============================================ */
:root {
  --bleu: #1A3A6B;
  --bleu-clair: #2E86C1;
  --orange: #E8720C;
  --orange-light: #F5924A;
  --dark: #0A1628;
  --gris: #F4F6FA;
  --texte: #2C3E50;
  --blanc: #ffffff;
}

*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--texte);
  background: var(--blanc);
  overflow-x: hidden;
}

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 120px;
  background: #ffffff;
  border-bottom: 4px solid var(--orange);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  transition: box-shadow 0.3s;
}

.nav-logo img { height: 100px; width: auto; display: block; max-width: 60vw; }

/* Desktop nav links */
.nav-links {
  display: none;
  gap: 32px; list-style: none;
}
.nav-links a {
  color: var(--bleu); text-decoration: none;
  font-size: 14px; font-weight: 600;
  transition: color 0.2s; letter-spacing: 0.02em;
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); }

.nav-cta-desktop {
  display: none;
  background: var(--orange); color: white;
  padding: 10px 22px; border-radius: 8px;
  font-weight: 700; font-size: 14px;
  text-decoration: none; transition: all 0.2s;
}
.nav-cta-desktop:hover { background: var(--orange-light); transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2.5px;
  background: var(--bleu); border-radius: 2px; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 120px; left: 0; right: 0; bottom: 0; z-index: 190;
  background: rgba(10,22,40,0.98);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 700;
  color: white; text-decoration: none; padding: 14px 32px; border-radius: 12px;
  transition: all 0.2s; width: 80%; text-align: center;
}
.mobile-menu a:hover, .mobile-menu a.active { background: rgba(232,114,12,0.15); color: var(--orange); }
.mobile-menu .menu-cta { background: var(--orange); color: white !important; font-size: 16px !important; margin-top: 8px; }
.mobile-menu .menu-tel { font-size: 13px !important; color: rgba(255,255,255,0.4) !important; font-family: 'DM Sans', sans-serif !important; font-weight: 400 !important; width: auto !important; padding: 4px 8px !important; }

/* ── PAGE HERO ── */
.page-hero {
  padding: 150px 20px 48px;
  background: var(--dark); position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(46,134,193,0.15) 0%, transparent 70%);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-hero-content { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.breadcrumb a, .breadcrumb span { font-size: 12px; color: rgba(255,255,255,0.4); text-decoration: none; }
.breadcrumb .sep { color: rgba(255,255,255,0.2); }
.breadcrumb .current { color: var(--orange); }
.page-hero h1 {
  font-family: 'Syne', sans-serif; font-size: clamp(30px, 9vw, 52px);
  font-weight: 800; color: white; line-height: 1.1; margin-bottom: 14px;
}
.page-hero h1 span { color: var(--orange); }
.page-hero p { font-size: 15px; color: rgba(255,255,255,0.55); line-height: 1.7; max-width: 580px; }

/* ── COMMON COMPONENTS ── */
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 10px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 800; color: var(--bleu); line-height: 1.15; margin-bottom: 24px;
}

.btn-primary {
  display: inline-block; padding: 15px 28px;
  background: var(--orange); color: white; border-radius: 10px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s; box-shadow: 0 4px 20px rgba(232,114,12,0.35);
}
.btn-primary:hover { background: var(--orange-light); transform: translateY(-2px); }

.btn-outline {
  display: inline-block; padding: 14px 28px;
  background: transparent; color: var(--bleu); border-radius: 10px;
  font-weight: 500; font-size: 14px; text-decoration: none;
  border: 1.5px solid rgba(26,58,107,0.25); transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--bleu); background: rgba(26,58,107,0.04); }

/* ── STICKY CTA ── */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  padding: 12px 16px;
  background: rgba(10,22,40,0.97);
  border-top: 1px solid rgba(232,114,12,0.3);
  backdrop-filter: blur(12px);
  display: flex; gap: 10px;
  transform: translateY(100%); transition: transform 0.4s ease;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta a {
  flex: 1; text-align: center; padding: 13px;
  border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none;
}
.cta-call { background: rgba(255,255,255,0.08); color: white; border: 1px solid rgba(255,255,255,0.15); }
.cta-devis { background: var(--orange); color: white; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  border-top: 3px solid var(--orange);
  padding: 48px 5vw 32px;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
.footer-logo img { height: 90px; width: auto; display: block; margin-bottom: 14px; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.7; margin-bottom: 14px; max-width: 280px; }
.footer-location {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--orange);
  background: rgba(232,114,12,0.1); padding: 6px 12px; border-radius: 100px;
  border: 1px solid rgba(232,114,12,0.2);
}
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-col h4 {
  font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700;
  color: white; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  margin-top: 32px; border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 11px; color: rgba(255,255,255,0.2); }
.social-link {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); text-decoration: none; transition: all 0.2s;
}
.social-link:hover { background: var(--orange); border-color: var(--orange); color: white; }

/* ── ANIMATIONS ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   DESKTOP OVERRIDES (768px+)
   ============================================ */
@media (min-width: 768px) {
  nav { padding: 0 5vw; height: 88px; }
  .nav-logo img { height: 72px; }
  .nav-links { display: flex; }
  .nav-cta-desktop { display: inline-flex; }
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
  .sticky-cta { display: none; }

  .page-hero { padding: 140px 5vw 80px; }
  .page-hero h1 { font-size: clamp(38px, 5vw, 64px); text-align: center; }
  .page-hero-content { max-width: 700px; margin: 0 auto; text-align: center; }
  .page-hero p { margin-left: auto; margin-right: auto; }
  .breadcrumb { justify-content: center; }

  .section-label { text-align: center; }
  .section-title { text-align: center; }

  footer .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; max-width: 1100px; margin: 0 auto; }
  footer .footer-links { display: contents; }
  footer .footer-bottom { max-width: 1100px; margin-left: auto; margin-right: auto; }
}

@media (min-width: 1024px) {
  nav { padding: 0 8vw; }
  .page-hero { padding: 140px 8vw 80px; }
  .page-hero p { max-width: 680px; }
  footer { padding: 48px 8vw 32px; }
}

@media (min-width: 1280px) {
  nav { padding: 0 calc(50vw - 580px); }
  .page-hero { padding-left: calc(50vw - 580px); padding-right: calc(50vw - 580px); }
  footer { padding-left: calc(50vw - 580px); padding-right: calc(50vw - 580px); }
}
