/* =========================================================
   KANGOUROU SERVICES & SECURITY SARL - Official Stylesheet
   Color Palette: Corporate Navy Blue (#0c3866) & Warm Orange (#f36c21)
   Breakpoints: 0px (Mobile) -> 480px -> 640px -> 768px -> 1024px -> 1280px
   ========================================================= */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  /* Brand Primary & Accents */
  --primary:            #0c3866; /* Corporate Navy Blue */
  --primary-dark:       #072444;
  --primary-light:      #164e8a;
  --primary-subtle:     #eef4fa;
  
  --accent-orange:      #f36c21; /* Warm Vibrant Orange */
  --accent-orange-dark: #d9540c;
  --accent-orange-light:#fff2eb;

  /* Neutral Tones */
  --bg-main:            #ffffff;
  --bg-subtle:          #f4f7fb;
  --bg-card:            #ffffff;
  --bg-dark:            #07192e;
  --border-color:       #e2e8f0;
  --border-hover:       #cbd5e1;

  /* Typography */
  --text-main:          #1e293b;
  --text-muted:         #64748b;
  --text-light:         #94a3b8;
  --white:              #ffffff;

  /* Fonts */
  --font-body:          'Plus Jakarta Sans', sans-serif;
  --font-heading:       'Syne', sans-serif;

  /* Geometry & Shadows */
  --radius-sm:          6px;
  --radius-md:          12px;
  --radius-lg:          20px;
  --radius-full:        9999px;

  --shadow-sm:          0 2px 8px rgba(12, 56, 102, 0.06);
  --shadow-md:          0 8px 24px rgba(12, 56, 102, 0.1);
  --shadow-lg:          0 16px 40px rgba(12, 56, 102, 0.14);

  /* Heights */
  --topbar-h:           auto;
  --header-h:           72px;

  /* Transitions */
  --transition:         all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE STYLES ===== */
*, ::before, ::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* overflow-x: hidden retiré intentionnellement — casse position: sticky/fixed */
  /* Le scroll horizontal est bloqué par body ci-dessous */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  /* Espace pour le header fixe — le contenu commence en dessous */
  padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body.menu-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.25;
  font-weight: 700;
  word-wrap: break-word;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem; /* 16px prevents mobile iOS auto-zoom */
  outline: none;
}

/* ===== CONTAINER & LAYOUT ===== */
.bd-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

/* ===== SECTION HEADERS ===== */
.section__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem auto;
}

.section__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
  background: var(--accent-orange-light);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(243, 108, 33, 0.2);
  margin-bottom: 0.75rem;
}

.section__tag--light {
  color: var(--accent-orange);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.section__title {
  font-size: clamp(1.6rem, 5.5vw, 2.5rem);
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.section__subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  touch-action: manipulation;
}

.btn--primary {
  background-color: var(--accent-orange);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(243, 108, 33, 0.35);
}

.btn--primary:active,
.btn--primary:hover {
  background-color: var(--accent-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 108, 33, 0.45);
}

.btn--outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn--outline:active,
.btn--outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn--outline-light {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
  backdrop-filter: blur(6px);
}

.btn--outline-light:hover {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn--light {
  background-color: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn--light:hover {
  background-color: var(--accent-orange-light);
  color: var(--accent-orange-dark);
}

.btn--full {
  width: 100%;
}

/* ===== TOP BAR ===== */
.top-bar {
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
}

.top-bar__container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.top-bar__info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.top-bar__item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar__icon {
  color: var(--primary);
  font-size: 1rem;
}

.top-bar__link {
  color: var(--primary);
  font-weight: 700;
}

.top-bar__sep {
  color: var(--border-color);
  margin: 0 0.15rem;
}

.top-bar__btn {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  min-height: 38px;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.top-bar__btn:hover {
  background-color: var(--accent-orange);
}

/* ===== HEADER & NAVIGATION ===== */
.l-header {
  /* position: fixed = 100% fiable sur tous les navigateurs mobiles et desktop.
     position: sticky peut être cassé par overflow sur un parent. */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  will-change: box-shadow;
}

/* Scroll state — richer shadow + slightly more opaque */
.l-header.scrolled {
  background-color: rgba(255, 255, 255, 0.99);
  box-shadow:
    0 1px 0 rgba(12, 56, 102, 0.06),
    0 4px 24px rgba(12, 56, 102, 0.10),
    0 8px 40px rgba(12, 56, 102, 0.06);
  border-bottom-color: rgba(12, 56, 102, 0.10);
}

/* Inner nav: symmetric padding acts as the single source of truth
   for left/right margins. Logo is at left edge, last nav item at right edge,
   both inset by the same padding value. */
.nav {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 1.5rem;   /* ← left = right, always */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.nav__logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav__logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
}

.nav__logo-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.nav__logo-sub {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--accent-orange);
  letter-spacing: 0.05em;
}

/* Off-canvas Mobile Menu Drawer */
.nav__menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background-color: var(--white);
  box-shadow: -5px 0 35px rgba(0, 0, 0, 0.2);
  padding: 4rem 1.75rem 2rem 1.75rem;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.nav__menu.show {
  right: 0;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.03em;
  padding: 0.6rem 0;
  display: block;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
  transition: var(--transition);
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--accent-orange);
}

.nav__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-subtle);
  transition: var(--transition);
}

.nav__close:hover {
  background-color: var(--accent-orange-light);
  color: var(--accent-orange);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__toggle {
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  transition: var(--transition);
}

.nav__toggle:hover {
  background-color: var(--primary-subtle);
  color: var(--primary-dark);
}

/* ===== HERO SECTION WITH DYNAMIC SLIDESHOW ===== */
.home {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 4rem 0 5rem 0;
  overflow: hidden;
  background-color: var(--bg-dark);
}

/* Background Slideshow Layer */
.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out, transform 6s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(1.08);
}

.hero__slide.active {
  opacity: 1;
  transform: scale(1.0);
}

/* Gradient Readability Overlay - Enhanced visibility for hero slideshow */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, rgba(7, 25, 46, 0.75) 0%, rgba(12, 56, 102, 0.50) 50%, rgba(7, 25, 46, 0.65) 100%);
}

/* Hero Main Container */
.hero__container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero__content {
  display: flex;
  flex-direction: column;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.775rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
  margin-bottom: 1.1rem;
}

.hero__dash {
  width: 28px;
  height: 3px;
  background-color: var(--accent-orange);
  border-radius: 99px;
}

.hero__title {
  font-size: clamp(2.2rem, 8vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero__accent {
  color: var(--accent-orange);
}

.hero__description {
  font-size: 1rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 620px;
}

.hero__features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.hero__feature-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.hero__feature-card:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--accent-orange);
  transform: translateY(-2px);
}

.hero__feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(243, 108, 33, 0.2);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid rgba(243, 108, 33, 0.35);
}

.hero__feature-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--white);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Hero Glass Card Right */
.hero__visual {
  position: relative;
  width: 100%;
}

.hero__glass-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--white);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero__glass-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero__glass-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  padding: 6px;
}

.hero__glass-title {
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.1;
}

.hero__glass-sub {
  font-size: 0.725rem;
  font-weight: 800;
  color: var(--accent-orange);
  letter-spacing: 0.05em;
}

.hero__glass-text {
  font-size: 0.875rem;
  color: #e2e8f0;
  line-height: 1.6;
}

.hero__glass-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
  text-align: center;
}

.glass-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-orange);
}

.glass-stat span {
  font-size: 0.7rem;
  color: #cbd5e1;
  text-transform: uppercase;
}

/* Slideshow Controls (Dots) */
.hero__slide-controls {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.35s ease;
  padding: 0;
}

.slide-dot:hover,
.slide-dot.active {
  width: 32px;
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  box-shadow: 0 0 12px rgba(243, 108, 33, 0.6);
}

/* ===== VALUE PROPOSITION STRIP BAR ===== */
.value-bar {
  background-color: var(--primary);
  color: var(--white);
  padding: 2.25rem 0;
}

.value-bar__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.value-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.value-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-orange);
  transform: translateY(-2px);
}

.value-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-orange);
  flex-shrink: 0;
}

.value-card__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.1rem;
  letter-spacing: 0.04em;
}

.value-card__desc {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.35;
}

/* ===== ABOUT US ===== */
.about {
  background-color: var(--bg-subtle);
}

.about__grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.about__intro-box {
  background-color: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.about__logo-badge {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
}

.about__intro-heading {
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
  color: var(--primary);
}

.about__intro-text {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.about__stats-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.stat-mini {
  text-align: center;
}

.stat-mini__number {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-mini__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  line-height: 1.2;
}

.about__cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
}

.about-card--vision::before {
  background-color: var(--accent-orange);
}

.about-card--mission::before {
  background-color: var(--primary);
}

.about-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.about-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
}

.about-card--vision .about-card__icon {
  background-color: var(--accent-orange-light);
  color: var(--accent-orange);
}

.about-card--mission .about-card__icon {
  background-color: var(--primary-subtle);
  color: var(--primary);
}

.about-card__title {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.about-card__text {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.875rem;
}

/* About Gallery */
.about__gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.about__gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 200px;
  box-shadow: var(--shadow-sm);
}

.about__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about__gallery-item:hover img {
  transform: scale(1.08);
}

.about__gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 56, 102, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
}

/* ===== CORE SERVICES SECTION ===== */
.services {
  background-color: var(--bg-main);
}

.services__tabs {
  display: flex;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  gap: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.services__tabs::-webkit-scrollbar {
  display: none;
}

.services__tab {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.775rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.services__tab.active,
.services__tab:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(12, 56, 102, 0.25);
}

.service-card__badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  background-color: var(--primary-subtle);
  color: var(--primary);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
}

.service-card__badge--orange {
  background-color: var(--accent-orange-light);
  color: var(--accent-orange-dark);
}

.service-card__badge--navy {
  background-color: var(--primary);
  color: var(--white);
}

.service-card__icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background-color: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.service-card__title {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.service-card__intro {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.service-card__list {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card__list li {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  padding-left: 1.15rem;
  position: relative;
  line-height: 1.45;
}

.service-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-weight: 800;
}

.service-card__btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
  transition: var(--transition);
}

.service-card__btn:hover {
  color: var(--accent-orange);
}

.service-card__btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.service-card__btn:hover i {
  transform: translateX(4px);
}

/* ===== SOLUTIONS SECTION ===== */
.solutions {
  background-color: var(--bg-dark);
  color: var(--white);
}

.solutions__box {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.solutions__title {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 0.85rem;
}

.solutions__desc {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.solutions__points {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sol-point {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.sol-point:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-orange);
}

.sol-point__num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-orange);
  flex-shrink: 0;
}

.sol-point__title {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.sol-point__text {
  color: #94a3b8;
  font-size: 0.85rem;
}

.solutions__visual {
  position: relative;
  width: 100%;
}

.solutions__img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  height: 280px;
  width: 100%;
  object-fit: cover;
}

.solutions__overlay-card {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(243, 108, 33, 0.94);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ===== HR SPECIFIC SECTION ===== */
.rh-section {
  background-color: var(--bg-subtle);
}

.rh-banner {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.rh-banner__img-col {
  height: 240px;
  width: 100%;
}

.rh-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rh-banner__info {
  padding: 2rem;
}

.rh-banner__title {
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
}

.rh-banner__text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.65;
  font-size: 0.9rem;
}

.rh-banner__features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.rh-feat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
}

.rh-feat i {
  color: var(--accent-orange);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ===== RÉALISATIONS & STATS ===== */
.realisations {
  background-color: var(--bg-main);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.stat-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 1.5rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
}

.stat-box:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.stat-box__icon {
  font-size: 2rem;
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
}

.stat-box__number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-box__label {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-muted);
}

.commitment-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.commitment-card__title {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.commitment-card__text {
  color: #cbd5e1;
  font-size: 0.9rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background-color: var(--bg-subtle);
}

.contact__grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-card__title {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.contact-card__text {
  color: var(--text-muted);
  font-size: 0.85rem;
  word-break: break-word;
}

.contact-card__text a {
  color: var(--primary);
  font-weight: 700;
}

.contact__form-wrapper {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact__form-title {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #fafbfc;
  transition: var(--transition);
}

.form-group textarea {
  min-height: 110px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(12, 56, 102, 0.12);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-response {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: none;
}

.form-response.success {
  display: block;
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* ===== MODAL DEMANDE DE DEVIS ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(7, 25, 46, 0.82);
  backdrop-filter: blur(5px);
}

.modal__container {
  position: relative;
  background-color: var(--white);
  width: 100%;
  max-width: 560px;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  z-index: 10;
  max-height: 90vh;
  overflow-y: auto;
}

.modal.active .modal__container {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-subtle);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal__close:hover {
  background-color: var(--accent-orange-light);
  color: var(--accent-orange);
}

.modal__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.modal__logo {
  height: 44px;
  width: auto;
}

.modal__title {
  font-size: 1.25rem;
  color: var(--primary);
}

.modal__subtitle {
  font-size: 0.725rem;
  font-weight: 800;
  color: var(--accent-orange);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--bg-dark);
  color: #cbd5e1;
  padding-top: 3.5rem;
}

.footer__grid {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo-img {
  height: 56px;
  width: auto;
  margin-bottom: 1rem;
}

.footer__brand-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

.footer__socials {
  display: flex;
  gap: 0.6rem;
}

.footer__socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer__socials a:hover {
  background-color: var(--accent-orange);
  transform: translateY(-2px);
}

.footer__col-title {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.4rem;
}

.footer__col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--accent-orange);
}

.footer__links li {
  margin-bottom: 0.6rem;
}

.footer__links a {
  font-size: 0.85rem;
  color: #94a3b8;
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer__contact-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.65rem;
  word-break: break-word;
}

.footer__contact-info i {
  color: var(--accent-orange);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  padding: 1.25rem 0;
  font-size: 0.775rem;
  color: #64748b;
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.float-wa {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 54px;
  height: 54px;
  background-color: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.float-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.float-wa__tooltip {
  display: none;
}

/* =========================================================
   PROGRESSIVE ENHANCEMENT BREAKPOINTS (MOBILE FIRST)
   ========================================================= */

/* ===== MOBILE HERO CENTERING (< 480px) ===== */
@media screen and (max-width: 479px) {
  .home {
    min-height: 80vh;
    padding: 2.5rem 0 3.5rem 0;
  }

  .hero__container {
    gap: 1.75rem;
  }

  .hero__content {
    text-align: center;
    align-items: center;
  }

  .hero__eyebrow {
    justify-content: center;
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
  }

  .hero__title {
    font-size: clamp(1.65rem, 9vw, 2.2rem);
    margin-bottom: 0.85rem;
    letter-spacing: -0.015em;
  }

  .hero__description {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
    text-align: center;
  }

  .hero__features-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
  }

  .hero__feature-card {
    justify-content: flex-start;
    padding: 0.75rem 0.9rem;
  }

  .hero__feature-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .hero__feature-title {
    font-size: 0.825rem;
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Glass card — compacter on mobile */
  .hero__glass-card {
    padding: 1.25rem;
    gap: 1rem;
  }

  .hero__glass-title {
    font-size: 0.92rem;
  }

  .hero__glass-logo {
    width: 42px;
    height: 42px;
  }

  .glass-stat strong {
    font-size: 1.2rem;
  }

  .glass-stat span {
    font-size: 0.65rem;
  }
}

/* ===== PHABLETS (>= 480px) ===== */
@media screen and (min-width: 480px) {
  .hero__features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__cta {
    flex-direction: row;
  }

  .form-row {
    flex-direction: row;
  }
}

/* ===== TABLETS (>= 640px) ===== */
@media screen and (min-width: 640px) {
  .value-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__stats-mini {
    gap: 1rem;
  }

  .stat-mini__number {
    font-size: 1.6rem;
  }

  .about__gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rh-banner__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== MEDIUM DESKTOPS / TABLETS (>= 768px) ===== */
@media screen and (min-width: 768px) {
  /* Switch to horizontal nav — hide hamburger & close btn */
  .nav__toggle,
  .nav__close {
    display: none;
  }

  /* Reset off-canvas drawer to inline flow */
  .nav__menu {
    position: static;
    width: auto;
    height: auto;
    max-width: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    overflow: visible;
    /* Remove mobile-specific layout */
    justify-content: flex-end;
  }

  .nav__list {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    /* Compact but readable gap at tablet */
    gap: 0.15rem;
  }

  .nav__link {
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    /* Symmetric horizontal padding — gives each item a click zone */
    padding: 0.5rem 0.55rem;
    border-bottom: none;
    white-space: nowrap;
    line-height: 1;
  }

  /* Active/hover underline bar */
  .nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0.55rem;
    right: 0.55rem;
    width: auto;
    height: 2.5px;
    background-color: var(--accent-orange);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 99px;
  }

  .nav__link:hover::after,
  .nav__link.active-link::after {
    transform: scaleX(1);
  }

  .top-bar__container {
    flex-direction: row;
    justify-content: space-between;
  }

  .top-bar__info {
    justify-content: flex-start;
  }

  .about__gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .commitment-card {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    align-items: center;
  }

  .contact__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* ===== DESKTOP / LAPTOPS (>= 1024px) ===== */
@media screen and (min-width: 1024px) {
  .section {
    padding: 5rem 0;
  }

  /* Nav — more room at 1024px */
  .nav {
    padding: 0 2rem;
  }

  .nav__list {
    gap: 0.3rem;
  }

  .nav__link {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    letter-spacing: 0.03em;
  }

  /* Hero Section Desktop */
  .home {
    min-height: 90vh;
    padding: 5rem 0;
  }

  .hero__container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
  }

  /* Value Bar */
  .value-bar__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* About Us */
  .about__grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2.5rem;
  }

  /* Core Services */
  .services__tabs {
    justify-content: center;
    overflow-x: visible;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Solutions */
  .solutions__box {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
  }

  .solutions__img {
    height: 420px;
  }

  /* HR Section */
  .rh-banner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
  }

  .rh-banner__img-col {
    height: 100%;
    min-height: 380px;
  }

  .rh-banner__info {
    padding: 3rem;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1.3fr 0.9fr 1fr 1.1fr;
    gap: 3rem;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .float-wa:hover .float-wa__tooltip {
    display: block;
    position: absolute;
    right: 65px;
    background-color: var(--bg-dark);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
  }
}

/* ===== LARGE DESKTOPS (>= 1280px) ===== */
@media screen and (min-width: 1280px) {
  .nav {
    padding: 0 2.5rem;
  }

  .nav__list {
    gap: 0.6rem;
  }

  .nav__link {
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
    letter-spacing: 0.04em;
  }
}