/* =====================================================
   STPS Website - Styles
   Société Tunisienne de Protection et de Services
   ===================================================== */

:root {
  --red:       #CC0000;
  --red-dark:  #990000;
  --red-light: #ff1a1a;
  --dark:      #1C1C1C;
  --dark2:     #2a2a2a;
  --gray:      #f5f5f5;
  --gray2:     #e8e8e8;
  --text:      #333333;
  --text-light:#666666;
  --white:     #ffffff;
  --font:      'Roboto', 'Segoe UI', sans-serif;
  --shadow:    0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
  --radius:    8px;
  --transition: 0.35s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 90px 0; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-tag::before {
  content: '';
  display: block;
  width: 18px;
  height: 3px;
  background: var(--red);
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title span { color: var(--red); }

.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 640px;
  line-height: 1.8;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes slideX {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left  { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right { opacity: 0; transform: translateX(30px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible,
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }
.delay-6 { transition-delay: 0.6s !important; }

/* =====================================================
   HEADER WRAPPER
   ===================================================== */
#nav-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}

/* ══ Filet rouge supérieur ══ */
#nav-wrapper::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg,
    #7a0000 0%,
    var(--red) 30%,
    #ff4444 55%,
    var(--red) 80%,
    #7a0000 100%);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOP INFO BAR  (bande sombre)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#topbar {
  background: #1a1a1a;
  height: 34px;
  overflow: hidden;
  transition: height 0.45s cubic-bezier(0.4,0,0.2,1),
              opacity 0.3s ease;
}
#nav-wrapper.scrolled #topbar { height: 0; opacity: 0; }

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
}
.topbar-left  { display: flex; align-items: center; }
.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.42);
  font-size: 0.68rem;
  letter-spacing: 0.2px;
  padding: 0 16px;
  transition: color 0.2s;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.topbar-item:first-child { padding-left: 0; }
.topbar-item:hover { color: rgba(255,255,255,0.75); }
.topbar-item svg { width: 10px; height: 10px; flex-shrink: 0; }
.topbar-sep { display: none; }
.topbar-badge {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: rgba(204,0,0,0.75);
  text-transform: uppercase;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NAVBAR PRINCIPALE — fond BLANC
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#navbar {
  background: #ffffff;
  padding: 10px 0;
  position: relative;
  /* Bordure inférieure élégante — couches multiples */
  box-shadow:
    0 1px 0 rgba(204,0,0,0.18),   /* liseré rouge */
    0 2px 0 rgba(204,0,0,0.06),   /* halo doux    */
    0 6px 28px rgba(0,0,0,0.08);  /* ombre portée */
  transition: padding 0.4s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.4s ease;
}
/* Ligne dégradée rouge en bas de la navbar */
#navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent  0%,
    rgba(204,0,0,0.55) 15%,
    var(--red)    40%,
    var(--red)    60%,
    rgba(204,0,0,0.55) 85%,
    transparent  100%);
  pointer-events: none;
}
#nav-wrapper.scrolled #navbar {
  padding: 6px 0;
  box-shadow:
    0 1px 0 rgba(204,0,0,0.15),
    0 8px 40px rgba(0,0,0,0.13);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LOGO — naturel sur fond blanc
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  outline: none;
  text-decoration: none;
  /* Cadre logo subtil */
  padding: 6px 10px 6px 0;
  border-right: 1px solid rgba(204,0,0,0.15);
  margin-right: 4px;
}
.nav-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: height 0.4s cubic-bezier(0.4,0,0.2,1),
              transform 0.3s ease,
              filter 0.3s ease;
}
.nav-logo:hover .nav-logo-img {
  transform: scale(1.04);
  filter: drop-shadow(0 4px 12px rgba(204,0,0,0.25));
}
#nav-wrapper.scrolled .nav-logo-img { height: 48px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LIENS DE NAVIGATION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-links li { list-style: none; }
.nav-links a {
  display: block;
  color: #3a3a3a;
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 8px 12px;
  border-radius: 6px;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover {
  color: var(--red);
  background: rgba(204,0,0,0.05);
}
.nav-links a.active { color: var(--red); font-weight: 600; }

/* Trait rouge sous le lien actif */
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 12px; right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  opacity: 0.7;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BOUTON CTA
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.btn-nav {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  background: var(--red) !important;
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 7px !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.2px;
  white-space: nowrap;
  margin-left: 10px;
  transition: background 0.25s ease,
              box-shadow 0.25s ease,
              transform 0.2s ease !important;
  box-shadow:
    0 3px 14px rgba(204,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-nav::after  { display: none !important; }
.btn-nav:hover {
  background: #a80000 !important;
  box-shadow:
    0 6px 24px rgba(204,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.18) !important;
  transform: translateY(-1px);
  color: #fff !important;
}
.btn-nav:active { transform: translateY(0); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HAMBURGER MOBILE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  transition: background 0.2s, border-color 0.2s;
}
.nav-hamburger:hover {
  background: rgba(204,0,0,0.05);
  border-color: rgba(204,0,0,0.25);
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #333;
  border-radius: 2px;
  transition: var(--transition);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MENU MOBILE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 960px) {
  .nav-hamburger { display: flex; }
  .topbar-left .topbar-item:not(:first-child) { display: none; }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: min(300px, 88vw);
    height: 100dvh;
    background: #fff;
    border-left: 3px solid var(--red);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    padding: 60px 24px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -8px 0 50px rgba(0,0,0,0.18);
    z-index: 999;
    margin-left: 0;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-links a {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    padding: 13px 16px;
    border-radius: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .nav-links a:hover, .nav-links a.active {
    color: var(--red);
    background: rgba(204,0,0,0.05);
  }
  .nav-links a.active::after { display: none; }
  .btn-nav {
    margin-top: 16px; margin-left: 0;
    width: 100% !important;
    justify-content: center;
    padding: 14px 20px !important;
    font-size: 0.9rem !important;
    border-radius: 10px !important;
  }
  /* Overlay sombre à gauche du drawer */
  .nav-links.open::before {
    content: '';
    position: fixed;
    inset: 0;
    right: min(300px, 88vw);
    background: rgba(0,0,0,0.45);
    z-index: -1;
    backdrop-filter: blur(3px);
  }
}
@media (max-width: 480px) {
  #topbar { display: none; }
  .nav-logo-img { height: 52px; }
  #nav-wrapper.scrolled .nav-logo-img { height: 40px; }
}

/* =====================================================
   HERO
   ===================================================== */
#hero {
  min-height: 100vh;
  background: var(--dark);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d0d0d 0%, #1C1C1C 50%, #2a0000 100%);
}

/* Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-particles span {
  position: absolute;
  display: block;
  background: rgba(204,0,0,0.15);
  border-radius: 50%;
  animation: float linear infinite;
}

/* Grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(204,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204,0,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Red accent shape */
.hero-shape {
  position: absolute;
  right: -100px;
  top: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(204,0,0,0.18) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-shape-2 {
  position: absolute;
  left: -50px;
  bottom: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(204,0,0,0.10) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(204,0,0,0.15);
  border: 1px solid rgba(204,0,0,0.3);
  color: var(--red-light);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease both;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-title span { color: var(--red); }

.hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.35s both;
}

.hero-services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.45s both;
}
.hero-service-tag {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.55s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(204,0,0,0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  padding: 15px 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all var(--transition);
  cursor: pointer;
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 1s both;
}
.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: float 2s ease infinite;
}

/* =====================================================
   STATS BAR
   ===================================================== */
#stats {
  background: var(--dark);
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid rgba(255,255,255,0.06);
}
.stat-item {
  padding: 40px 24px;
  border-right: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}
.stat-item:hover { background: rgba(204,0,0,0.06); }
.stat-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 3px;
  background: var(--red);
  transition: width var(--transition);
}
.stat-item:hover::before { width: 60%; }
.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-number span { color: var(--red); }
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* =====================================================
   A PROPOS
   ===================================================== */
#about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--dark);
  aspect-ratio: 4/3;
}
.about-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 60%, rgba(204,0,0,0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(204,0,0,0.2);
}
.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--red);
  color: var(--white);
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.about-badge-year {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.about-badge-text {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-top: 4px;
}

.about-content { padding-left: 20px; }
.about-lead {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 20px;
}
.about-certif {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.certif-badge {
  background: var(--red);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* =====================================================
   ATOUTS
   ===================================================== */
#atouts { background: var(--gray); }
.atouts-header { text-align: center; margin-bottom: 60px; }
.atouts-header .section-desc { margin: 0 auto; }
.atouts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.atout-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.atout-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.atout-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.atout-card:hover::before { transform: scaleX(1); }
.atout-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
}
.atout-icon.red    { background: rgba(204,0,0,0.1); }
.atout-icon.dark   { background: rgba(28,28,28,0.08); }
.atout-icon.gray   { background: rgba(100,100,100,0.08); }
.atout-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
}
.atout-desc {
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.8;
}

/* =====================================================
   SERVICES
   ===================================================== */
#services { background: var(--dark); }
#services .section-title { color: var(--white); }
#services .section-desc  { color: rgba(255,255,255,0.5); }
.services-header { margin-bottom: 50px; }

.services-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 40px;
  background: rgba(255,255,255,0.05);
  padding: 6px;
  border-radius: 8px;
  flex-wrap: wrap;
}
.services-tab {
  flex: 1;
  min-width: 140px;
  padding: 14px 20px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.services-tab:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.services-tab.active {
  background: var(--red);
  color: var(--white);
}

.services-panel { display: none; }
.services-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; animation: fadeInUp 0.4s ease; }

.panel-content .panel-tag { color: var(--red); font-weight: 700; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.panel-content .panel-title { font-size: 1.8rem; font-weight: 800; color: var(--white); margin-bottom: 16px; }
.panel-content .panel-desc { color: rgba(255,255,255,0.6); line-height: 1.9; margin-bottom: 28px; }
.panel-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel-feature {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 18px;
  transition: background var(--transition), border-color var(--transition);
}
.panel-feature:hover { background: rgba(204,0,0,0.08); border-color: rgba(204,0,0,0.2); }
.panel-feature-icon { font-size: 1.4rem; margin-bottom: 8px; }
.panel-feature-title { font-weight: 700; color: var(--white); font-size: 0.88rem; margin-bottom: 4px; }
.panel-feature-desc { color: rgba(255,255,255,0.45); font-size: 0.8rem; line-height: 1.6; }

.panel-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.panel-img {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  aspect-ratio: 16/9;
}

/* Services Connexes */
.services-extra { margin-top: 60px; }
.services-extra-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.services-extra-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.service-extra-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 20px 14px;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}
.service-extra-card:hover {
  background: rgba(204,0,0,0.1);
  border-color: rgba(204,0,0,0.25);
  transform: translateY(-4px);
}
.service-extra-icon { font-size: 1.8rem; margin-bottom: 10px; }
.service-extra-name { font-size: 0.75rem; color: rgba(255,255,255,0.6); font-weight: 600; line-height: 1.4; }

/* =====================================================
   SUCCESS STORY
   ===================================================== */
#timeline { background: var(--white); overflow: hidden; }
.timeline-header { text-align: center; margin-bottom: 70px; }
.timeline-wrap {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--gray2);
  transform: translateX(-50%);
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  margin-bottom: 48px;
  position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-date {
  text-align: right;
  padding-right: 36px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--red);
}
.timeline-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.timeline-dot-inner {
  width: 16px; height: 16px;
  background: var(--red);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 4px rgba(204,0,0,0.2);
}
.timeline-content {
  padding-left: 36px;
}
.timeline-content h4 {
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
  font-size: 1.05rem;
}
.timeline-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Certifications */
.certif-section {
  margin-top: 80px;
  background: var(--dark);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
}
.certif-section-title {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.certif-section-head {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 32px;
}
.certif-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.certif-item {
  background: rgba(204,0,0,0.15);
  border: 2px solid rgba(204,0,0,0.3);
  color: var(--white);
  padding: 16px 28px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 2px;
  transition: all var(--transition);
}
.certif-item:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-4px);
}

/* =====================================================
   PARTENAIRES
   ===================================================== */
#partners { background: var(--gray); }
.partners-header { text-align: center; margin-bottom: 50px; }
.partners-track-wrap {
  overflow: hidden;
  position: relative;
}
.partners-track-wrap::before,
.partners-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.partners-track-wrap::before { left: 0;  background: linear-gradient(to right, var(--gray), transparent); }
.partners-track-wrap::after  { right: 0; background: linear-gradient(to left, var(--gray), transparent); }

.partners-track {
  display: flex;
  gap: 30px;
  animation: slideX 20s linear infinite;
  width: max-content;
}
.partners-track:hover { animation-play-state: paused; }

.partner-logo {
  background: var(--white);
  border-radius: 10px;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 80px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--dark);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
  white-space: nowrap;
}
.partner-logo:hover { transform: scale(1.05); }

/* =====================================================
   REFERENCES
   ===================================================== */
#references { background: var(--white); }
.references-header { text-align: center; margin-bottom: 50px; }
.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.reference-card {
  background: var(--gray);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.reference-card:hover {
  background: var(--white);
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.reference-card-icon { font-size: 1.6rem; margin-bottom: 8px; display: block; }
.reference-card-logo {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
}
.reference-card-logo img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter var(--transition);
}
.reference-card:hover .reference-card-logo img { filter: grayscale(0%); }
.reference-card-name { font-size: 0.82rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.reference-card-cat  { font-size: 0.72rem; color: var(--text-light); margin-top: 4px; }

/* Partner with image */
.partner-logo-img {
  padding: 16px 24px !important;
}
.partner-logo-img img { filter: grayscale(20%); transition: filter var(--transition); }
.partner-logo-img:hover img { filter: grayscale(0%); }

/* =====================================================
   EQUIPES
   ===================================================== */
#team { background: var(--dark); padding: 80px 0; }
.team-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.team-text .section-title { color: var(--white); }
.team-text .section-desc  { color: rgba(255,255,255,0.5); margin-bottom: 28px; }
.team-big-number {
  font-size: 7rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  display: inline-block;
  position: relative;
}
.team-big-number sup { font-size: 2.5rem; color: rgba(255,255,255,0.6); }
.team-big-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 8px;
}

.team-quote {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid var(--red);
  border-radius: 0 12px 12px 0;
  padding: 28px 32px;
}
.team-quote-text {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  line-height: 1.9;
  font-style: italic;
  margin-bottom: 20px;
}
.team-quote-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.team-quote-avatar {
  width: 48px; height: 48px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
}
.team-quote-name { font-weight: 700; color: var(--white); font-size: 0.95rem; }
.team-quote-role { color: rgba(255,255,255,0.4); font-size: 0.8rem; margin-top: 2px; }

/* =====================================================
   CONTACT
   ===================================================== */
#contact { background: var(--gray); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.contact-info {}
.contact-info-item {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 46px; height: 46px;
  background: var(--red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--white);
}
.contact-info-text strong {
  display: block;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3px;
  font-size: 0.9rem;
}
.contact-info-text span {
  color: var(--text-light);
  font-size: 0.9rem;
}
.contact-map {
  margin-top: 32px;
  border-radius: 10px;
  overflow: hidden;
  height: 180px;
  background: var(--dark2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
  text-align: center;
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.form-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  background: var(--gray);
  border-radius: 8px;
  padding: 4px;
}
.form-tab {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-light);
}
.form-tab.active {
  background: var(--red);
  color: var(--white);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.3px;
}
.form-group label span { color: var(--red); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--gray2);
  border-radius: 8px;
  font-size: 0.93rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
  font-family: var(--font);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  margin-top: 8px;
  width: 100%;
  padding: 16px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.form-submit:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(204,0,0,0.3); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Alert */
.form-alert {
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: none;
}
.form-alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; display: block; }
.form-alert.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; display: block; }

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: #111111;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {}
.footer-logo {
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 3px;
  margin-bottom: 4px;
}
.footer-logo span { color: var(--red); }
.footer-tagline {
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-about {
  color: rgba(255,255,255,0.45);
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--red); color: var(--white); }

.footer-col-title {
  font-weight: 700;
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 24px; height: 2px;
  background: var(--red);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover { color: var(--white); }
.footer-links a::before { content: '›'; color: var(--red); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  line-height: 1.6;
}
.footer-contact-icon { color: var(--red); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 0.82rem;
}
.footer-copy a { color: var(--red); }
.footer-badges {
  display: flex;
  gap: 8px;
}
.footer-badge {
  background: rgba(204,0,0,0.15);
  border: 1px solid rgba(204,0,0,0.2);
  color: rgba(255,255,255,0.5);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* =====================================================
   BACK TO TOP
   ===================================================== */
#back-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 16px rgba(204,0,0,0.4);
  transition: all var(--transition);
}
#back-top:hover { background: var(--red-dark); transform: translateY(-3px); }
#back-top.visible { display: flex; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
  .services-extra-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  section { padding: 70px 0; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-content { padding-left: 0; }
  .atouts-grid { grid-template-columns: 1fr 1fr; }
  .services-panel.active { grid-template-columns: 1fr; }
  .team-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(28,28,28,0.98); flex-direction: column; align-items: center; justify-content: center; gap: 28px; z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .nav-hamburger { display: flex; z-index: 1001; }

  .timeline-item { grid-template-columns: 1fr 40px; }
  .timeline-date { display: none; }
  .timeline-content { grid-column: 2; }
  .timeline-line { left: 20px; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { width: 100%; justify-content: center; }
  .atouts-grid { grid-template-columns: 1fr; }
  .services-extra-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .references-grid { grid-template-columns: repeat(2, 1fr); }
  .certif-badges { flex-wrap: wrap; }
  .contact-form-wrap { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
}
