/* ==========================================================
   VERITY FIRE PRO — DESIGN SYSTEM v3
   Charte : Aurore douce + Logo bouclier V orange
   Date : 30 avril 2026
   ========================================================== */

:root {
  --bleu-nuit: #0A1F3D;
  --bleu-nuit-deep: #051529;
  --orange-feu: #FF6B1A;
  --orange-deep: #E55810;
  --orange-light: #FF8642;
  --dore-aurore: #FFB347;
  --creme-lumineux: #FFF4E6;
  --blanc-casse: #F8F9FA;
  --gris-texte: #374151;
  --gris-doux: #6B7280;
  --gris-clair: #E5E7EB;
  --vert-succes: #10B981;
  --rouge-incendie: #DC2626;
  --bleu-protection: #3B82F6;
  --cyan-ia: #06B6D4;
  --indigo-supervision: #6366F1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: white;
  color: var(--gris-texte);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ==================== HEADER STICKY ==================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 31, 61, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 179, 71, 0.15);
  transition: all 0.3s ease;
}
.header-content {
  max-width: 1280px; margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo-link { display: flex; align-items: center; text-decoration: none; transition: transform 0.2s ease; }
.logo-link:hover { transform: scale(1.02); }
.logo-link img { height: 50px; width: auto; }

.nav-menu { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-menu > li { position: relative; }
.nav-menu a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-size: 0.92rem; font-weight: 500; transition: color 0.2s ease;
  position: relative; padding: 8px 0; display: inline-block;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--dore-aurore); }
.nav-menu a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--orange-feu); transition: width 0.3s ease;
}
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

/* Dropdown */
.has-dropdown > a::before {
  content: '▾'; margin-left: 4px; font-size: 0.7em; opacity: 0.6;
}
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: rgba(10, 31, 61, 0.98); backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 179, 71, 0.15); border-radius: 10px;
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.25s ease; list-style: none;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li { display: block; }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: 6px; font-size: 0.88rem;
}
.dropdown a:hover { background: rgba(255, 107, 26, 0.15); color: var(--dore-aurore); }
.dropdown a::after { display: none; }

.btn-cta {
  background: var(--orange-feu); color: white; border: none;
  padding: 10px 22px; border-radius: 8px; font-size: 0.9rem; font-weight: 700;
  font-family: inherit; cursor: pointer; text-decoration: none;
  display: inline-block; transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(255, 107, 26, 0.3);
}
.btn-cta:hover {
  background: var(--orange-deep); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 26, 0.4);
}

.menu-toggle {
  display: none; background: transparent; border: 1px solid rgba(255,255,255,0.2);
  color: white; padding: 8px 12px; border-radius: 6px; cursor: pointer;
}

/* ==================== PAGE HEADER (non-homepage) ==================== */
.page-hero {
  padding: 140px 24px 80px;
  background: linear-gradient(180deg,
    var(--bleu-nuit-deep) 0%,
    var(--bleu-nuit) 40%,
    #4a2515 75%,
    var(--orange-feu) 100%);
  color: white; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle at center, var(--dore-aurore) 0%, transparent 70%);
  border-radius: 50%; opacity: 0.4; filter: blur(30px); pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.page-hero-eyebrow {
  color: var(--dore-aurore); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 14px;
}
.page-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: 0.04em; line-height: 1; margin-bottom: 16px;
}
.page-hero-title em { color: var(--dore-aurore); font-style: normal; }
.page-hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.85); max-width: 720px; margin: 0 auto; }

/* ==================== CONTAINER & SECTIONS ==================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.section {
  padding: 80px 24px;
}
.section.cream { background: var(--creme-lumineux); }
.section.white { background: white; }
.section.dark {
  background: linear-gradient(180deg, var(--bleu-nuit) 0%, var(--bleu-nuit-deep) 100%);
  color: white; position: relative; overflow: hidden;
}
.section.dark::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(255, 107, 26, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 20% 70%, rgba(255, 179, 71, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.section-eyebrow {
  text-align: center; color: var(--orange-feu); font-size: 0.78rem;
  font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 12px;
}
.section.dark .section-eyebrow { color: var(--dore-aurore); }

.section-title {
  text-align: center; font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 3rem); letter-spacing: 0.02em;
  line-height: 1; margin-bottom: 16px; color: var(--bleu-nuit);
}
.section.dark .section-title { color: white; }
.section-title em { color: var(--orange-feu); font-style: normal; }
.section.dark .section-title em { color: var(--dore-aurore); }

.section-subtitle {
  text-align: center; color: var(--gris-doux); font-size: 1.05rem;
  max-width: 720px; margin: 0 auto 56px;
}
.section.dark .section-subtitle { color: rgba(255,255,255,0.75); }

/* ==================== BUTTONS ==================== */
.btn {
  padding: 14px 28px; border-radius: 10px; font-size: 0.95rem;
  font-weight: 700; font-family: inherit; cursor: pointer; border: none;
  transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.btn-primary {
  background: var(--orange-feu); color: white;
  box-shadow: 0 6px 20px rgba(255, 107, 26, 0.35);
}
.btn-primary:hover {
  background: var(--orange-deep); transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 107, 26, 0.45);
}
.btn-ghost {
  background: rgba(255,255,255,0.1); color: white;
  border: 2px solid rgba(255,255,255,0.4); backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); border-color: white; transform: translateY(-3px); }
.btn-outline {
  background: transparent; color: var(--bleu-nuit);
  border: 2px solid var(--bleu-nuit);
}
.btn-outline:hover { background: var(--bleu-nuit); color: white; transform: translateY(-3px); }

/* ==================== CARDS GRID ==================== */
.cards-grid-3 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px;
}
.cards-grid-2 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px;
}
.cards-grid-4 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}

/* ==================== FOOTER PICTOS (couleurs métier) ==================== */
.footer-pictos-section {
  background: var(--bleu-nuit); padding: 80px 24px 64px; color: white;
  position: relative; overflow: hidden;
}
.footer-pictos-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 107, 26, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(255, 179, 71, 0.05) 0%, transparent 40%);
  pointer-events: none;
}
.footer-pictos-eyebrow {
  text-align: center; color: var(--dore-aurore); font-size: 0.78rem;
  font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase;
  margin-bottom: 8px; position: relative;
}
.footer-pictos-title {
  text-align: center; font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: 0.03em;
  margin-bottom: 40px; color: white; position: relative;
}
.footer-pictos-title em { color: var(--dore-aurore); font-style: normal; }
.pictos-row {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  align-items: stretch; position: relative; max-width: 1200px; margin: 0 auto;
}
.picto-item {
  flex: 1; min-width: 140px; max-width: 200px; text-align: center;
  padding: 20px 16px; background: rgba(255,255,255,0.05); border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s ease;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.picto-item:hover {
  transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border-color: var(--picto-color); background: rgba(255,255,255,0.08);
}
.picto-icon {
  width: 56px; height: 56px; border-radius: 12px; background: var(--picto-bg);
  color: var(--picto-color); display: flex; align-items: center; justify-content: center;
}
.picto-label {
  font-family: 'Bebas Neue', sans-serif; font-size: 1rem;
  letter-spacing: 0.02em; color: white; line-height: 1.1;
}
.picto-sub { font-size: 0.72rem; color: rgba(255,255,255,0.6); line-height: 1.4; }
.picto-incendie { --picto-color: #DC2626; --picto-bg: rgba(220, 38, 38, 0.15); }
.picto-protection { --picto-color: #3B82F6; --picto-bg: rgba(59, 130, 246, 0.15); }
.picto-ia { --picto-color: #06B6D4; --picto-bg: rgba(6, 182, 212, 0.15); }
.picto-evacuation { --picto-color: var(--orange-feu); --picto-bg: rgba(255, 107, 26, 0.15); }
.picto-supervision { --picto-color: #6366F1; --picto-bg: rgba(99, 102, 241, 0.15); }

/* ==================== FOOTER CLASSIQUE ==================== */
.site-footer {
  background: var(--bleu-nuit-deep); color: rgba(255,255,255,0.7);
  padding: 64px 24px 32px;
}
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand img { height: 48px; margin-bottom: 16px; }
.footer-tagline {
  color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.6; max-width: 300px;
}
.footer-col h4 {
  color: white; font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem;
  letter-spacing: 0.06em; margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 0.88rem; transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--dore-aurore); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; text-align: center; font-size: 0.8rem;
  color: rgba(255,255,255,0.4); line-height: 1.7;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 968px) {
  .nav-menu, .btn-cta { display: none; }
  .menu-toggle { display: block; }
  .header-content { padding: 12px 20px; }
  .logo-link img { height: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .page-hero { padding: 100px 20px 60px; }
  .section { padding: 56px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .pictos-row { gap: 8px; }
  .picto-item { min-width: 130px; padding: 16px 10px; }
  .footer-pictos-section { padding: 56px 16px; }
}

/* ==========================================================
   PACK NAVIGATION PRO — V14-32
   Mobile drawer · Breadcrumb · Scroll-to-top
   ========================================================== */

/* ============ MOBILE DRAWER OVERLAY ============ */
.mobile-drawer-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 21, 41, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.mobile-drawer-overlay.active {
  opacity: 1; visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

/* ============ MOBILE DRAWER PANEL ============ */
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 85vw; max-width: 360px; z-index: 201;
  background:
    linear-gradient(165deg,
      var(--bleu-nuit-deep) 0%,
      var(--bleu-nuit) 35%,
      #2a1830 70%,
      #4a2515 100%);
  border-left: 1px solid rgba(255, 179, 71, 0.2);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.active { transform: translateX(0); }
.mobile-drawer::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 179, 71, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 20% 90%, rgba(255, 107, 26, 0.08) 0%, transparent 50%);
}

.mobile-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid rgba(255, 179, 71, 0.12);
  position: relative; z-index: 1;
}
.mobile-drawer-header img { height: 36px; width: auto; }
.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85); width: 36px; height: 36px;
  border-radius: 8px; cursor: pointer; font-size: 1.2rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.mobile-drawer-close:hover {
  background: rgba(255, 107, 26, 0.18); color: var(--dore-aurore);
  border-color: rgba(255, 179, 71, 0.3);
}

.mobile-drawer-nav {
  flex: 1; padding: 12px 16px 24px;
  display: flex; flex-direction: column; gap: 2px;
  position: relative; z-index: 1; list-style: none;
}
.mobile-drawer-nav > li { list-style: none; }
.mobile-drawer-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 10px;
  color: rgba(255,255,255,0.88); text-decoration: none;
  font-size: 1rem; font-weight: 500;
  transition: all 0.2s ease;
}
.mobile-drawer-nav a:hover,
.mobile-drawer-nav a.active {
  background: rgba(255, 107, 26, 0.14);
  color: var(--dore-aurore);
}

/* Drawer accordion groups */
.drawer-group { display: flex; flex-direction: column; }
.drawer-group-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: 10px;
  color: rgba(255,255,255,0.88); font-size: 1rem; font-weight: 500;
  cursor: pointer; user-select: none;
  transition: all 0.2s ease;
}
.drawer-group-title:hover { background: rgba(255, 255, 255, 0.05); }
.drawer-group-title::after {
  content: '⌃'; font-size: 0.9rem; opacity: 0.5;
  transform: rotate(180deg); transition: transform 0.25s ease;
}
.drawer-group.open .drawer-group-title::after { transform: rotate(0); }
.drawer-sub {
  list-style: none; max-height: 0; overflow: hidden;
  transition: max-height 0.32s ease;
  padding-left: 12px;
}
.drawer-group.open .drawer-sub { max-height: 400px; }
.drawer-sub a {
  font-size: 0.92rem; color: rgba(255,255,255,0.72);
  padding: 12px 16px;
}
.drawer-sub a:hover { color: var(--dore-aurore); background: rgba(255, 179, 71, 0.08); }

.mobile-drawer-cta {
  margin: 18px 22px 14px; padding: 14px 20px;
  background: linear-gradient(135deg, var(--orange-feu) 0%, var(--orange-deep) 100%);
  color: white; text-decoration: none; text-align: center;
  border-radius: 10px; font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(255, 107, 26, 0.35);
  transition: transform 0.2s ease;
  position: relative; z-index: 1;
}
.mobile-drawer-cta:hover { transform: translateY(-2px); }

.mobile-drawer-contact {
  padding: 16px 22px 28px; border-top: 1px solid rgba(255, 179, 71, 0.1);
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
  display: flex; flex-direction: column; gap: 6px;
  position: relative; z-index: 1;
}
.mobile-drawer-contact a {
  color: rgba(255,255,255,0.75); text-decoration: none;
  transition: color 0.2s ease;
}
.mobile-drawer-contact a:hover { color: var(--dore-aurore); }

/* Lock body scroll when drawer open */
body.drawer-open { overflow: hidden; }

/* Make hamburger button a bit more prominent */
.menu-toggle {
  font-size: 1.3rem; line-height: 1;
  transition: all 0.2s ease;
}
.menu-toggle:hover {
  background: rgba(255, 107, 26, 0.18);
  border-color: rgba(255, 179, 71, 0.4);
  color: var(--dore-aurore);
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  background: rgba(10, 31, 61, 0.04);
  border-bottom: 1px solid rgba(10, 31, 61, 0.06);
  padding: 14px 24px;
  margin-top: 78px; /* clear sticky header (~76px) */
  font-size: 0.85rem;
}
.breadcrumb-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  color: var(--gris-doux); font-weight: 500;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--gris-doux); text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb a:hover { color: var(--orange-feu); }
.breadcrumb-sep { opacity: 0.4; font-size: 0.9em; user-select: none; }
.breadcrumb-current {
  color: var(--bleu-nuit); font-weight: 600;
}

/* When breadcrumb is present, page-hero loses its top header offset */
.breadcrumb + .page-hero { padding-top: 60px; }
.breadcrumb + .hero { padding-top: 40px !important; }

/* ============ SCROLL TO TOP BUTTON ============ */
.scroll-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-feu) 0%, var(--dore-aurore) 100%);
  border: none; cursor: pointer;
  color: white; font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 107, 26, 0.35);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0s linear 0.25s, transform 0.25s ease, box-shadow 0.2s ease;
}
.scroll-top.visible {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity 0.25s ease, visibility 0s linear 0s, transform 0.25s ease;
}
.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 107, 26, 0.5);
}
.scroll-top:active { transform: translateY(0); }

@media (max-width: 640px) {
  .scroll-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .breadcrumb { padding: 12px 20px; font-size: 0.8rem; margin-top: 70px; }
}

/* ============ DESKTOP : drawer hidden, no toggle ============ */
@media (min-width: 969px) {
  .mobile-drawer, .mobile-drawer-overlay { display: none; }
}

/* ==========================================================
   BOUTIQUE NAV CTA — V14-35
   ========================================================== */
.boutique-cta-nav {
  background: linear-gradient(135deg, var(--orange-feu) 0%, var(--dore-aurore) 100%);
  color: white !important;
  padding: 8px 16px !important;
  border-radius: 100px;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 26, 0.25);
}
.boutique-cta-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 107, 26, 0.4);
  color: white !important;
}
