/* ============================================
   GAZMET — Styles Futuristes & Schématiques
   ============================================ */

:root {
  --blue: #0066FF;
  --blue-bright: #0088FF;
  --blue-glow: rgba(0, 102, 255, 0.4);
  --yellow: #FFBE2D;
  --yellow-glow: rgba(255, 190, 45, 0.4);
  --black: #0A0A0F;
  --dark: #111118;
  --dark-card: #16161F;
  --dark-border: #1E1E2A;
  --gray: #8888AA;
  --gray-light: #AAAACC;
  --white: #F0F0FF;
  --on-primary: #FFFFFF;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --nav-width: 260px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --bg-primary: #0A0A0F;
  --bg-secondary: #111118;
  --bg-card: #16161F;
  --border-color: #1E1E2A;
  --text-primary: #F0F0FF;
  --text-muted: #8888AA;
  --text-secondary: #AAAACC;
  --nav-bg: rgba(10, 10, 15, 0.95);
  --hero-overlay: linear-gradient(135deg, rgba(10, 10, 15, 0.88) 0%, rgba(10, 10, 15, 0.45) 50%, rgba(0, 102, 255, 0.15) 100%);
  --spark-opacity: 0.6;
  --shadow-color: rgba(0, 0, 0, 0.25);
}

[data-theme="light"] {
  --dark: #E8ECF4;
  --dark-card: #FFFFFF;
  --dark-border: #CDD5E0;
  --gray: #667085;
  --gray-light: #475467;
  --blue-glow: rgba(0, 102, 255, 0.22);
  --yellow-glow: rgba(255, 190, 45, 0.28);
  --bg-primary: #F4F6FA;
  --bg-secondary: #E8ECF4;
  --bg-card: #FFFFFF;
  --border-color: #CDD5E0;
  --text-primary: #101828;
  --text-muted: #667085;
  --text-secondary: #475467;
  --nav-bg: rgba(255, 255, 255, 0.98);
  --hero-overlay: linear-gradient(135deg, rgba(244, 246, 250, 0.94) 0%, rgba(244, 246, 250, 0.78) 45%, rgba(0, 102, 255, 0.1) 100%);
  --spark-opacity: 0.12;
  --shadow-color: rgba(16, 24, 40, 0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.4s, color 0.4s;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

::selection {
  background: var(--blue);
  color: var(--on-primary);
}

/* ---- Schematic Background ---- */
.schematic-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.schematic-grid {
  width: 100%;
  height: 100%;
}

#sparkCanvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--spark-opacity);
  transition: opacity 0.4s;
}

/* ---- Preloader ---- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s, visibility 0.8s, background 0.4s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
  position: relative;
}

.preloader-circuit {
  width: 200px;
  height: 200px;
  animation: rotateCircuit 4s linear infinite;
}

.circuit-ring {
  stroke: var(--blue);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  animation: drawRing 2s ease forwards;
}

.circuit-ring--inner {
  stroke: var(--yellow);
  animation-delay: 0.5s;
}

.circuit-axis {
  stroke: rgba(0, 102, 255, 0.3);
  stroke-width: 0.5;
}

.circuit-node {
  fill: var(--blue);
  animation: pulseNode 1.5s ease infinite;
}

.circuit-node--center {
  fill: var(--yellow);
}

.preloader-logo {
  width: 120px;
  margin: -60px auto 20px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease 0.5s both;
}

.preloader-bar {
  width: 200px;
  height: 2px;
  background: var(--dark-border);
  margin: 0 auto 12px;
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  width: 0;
  animation: loadBar 2s ease forwards;
}

.preloader-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 3px;
  animation: blink 1s step-end infinite;
}

/* ---- Navigation Schématique ---- */
.schematic-nav {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--nav-width);
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
  transition: background 0.4s, border-color 0.4s;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  transition: transform var(--transition);
  overflow-y: auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--dark-border);
}

.nav-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-bright);
  display: block;
  letter-spacing: 2px;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--gray);
  letter-spacing: 1px;
  display: block;
}

.nav-circuit {
  position: absolute;
  left: 18px;
  top: 120px;
  width: 24px;
  height: calc(100% - 220px);
  opacity: 0.5;
}

.nav-path {
  stroke: var(--blue);
  stroke-width: 1;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: drawPath 2s ease 1s forwards;
}

.nav-node {
  fill: var(--dark-border);
  stroke: var(--blue);
  stroke-width: 1;
  transition: fill 0.3s;
}

.nav-node.active {
  fill: var(--blue);
}

.nav-pulse {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 1.5;
  opacity: 0;
  transition: cy 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s;
}

.nav-pulse.active {
  opacity: 1;
  animation: navPulse 2s ease infinite;
}

.nav-links {
  flex: 1;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray);
  transition: all 0.3s;
  position: relative;
  letter-spacing: 1px;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--yellow);
  transition: height 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(0, 102, 255, 0.08);
}

.nav-link.active::before {
  height: 100%;
}

.nav-link-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--blue);
  opacity: 0.6;
}

.nav-link.active .nav-link-code {
  opacity: 1;
  color: var(--yellow);
}

/* Espace de gestion — menu distinct */
.nav-admin {
  padding: 12px 16px 8px;
  margin-top: auto;
}

.nav-admin-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-left: 3px solid #10B981;
  color: #6EE7B7;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.nav-admin-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.12), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.nav-admin-link:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28) 0%, rgba(6, 182, 212, 0.18) 100%);
  border-color: #10B981;
  color: #A7F3D0;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
  transform: translateX(4px);
}

.nav-admin-link:hover::before {
  transform: translateX(100%);
}

.nav-admin-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
}

.nav-admin-icon svg {
  width: 20px;
  height: 20px;
}

.nav-admin-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nav-admin-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #6EE7B7;
  line-height: 1.2;
}

.nav-admin-link:hover .nav-admin-label {
  color: #A7F3D0;
}

.nav-admin-sub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: rgba(110, 231, 183, 0.65);
  letter-spacing: 0.5px;
}

.nav-admin-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 8px;
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid #10B981;
  color: #34D399;
  flex-shrink: 0;
  animation: adminBadgePulse 2.5s ease infinite;
}

@keyframes adminBadgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}

[data-theme="light"] .nav-admin-link {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.12) 0%, rgba(8, 145, 178, 0.08) 100%);
  border-color: rgba(5, 150, 105, 0.5);
  color: #047857;
}

[data-theme="light"] .nav-admin-label { color: #047857; }
[data-theme="light"] .nav-admin-sub { color: rgba(4, 120, 87, 0.7); }
[data-theme="light"] .nav-admin-icon {
  background: rgba(5, 150, 105, 0.15);
  border-color: rgba(5, 150, 105, 0.4);
  color: #059669;
}
[data-theme="light"] .nav-admin-badge {
  background: rgba(5, 150, 105, 0.15);
  border-color: #059669;
  color: #047857;
}
[data-theme="light"] .nav-admin-link:hover {
  color: #065F46;
  box-shadow: 0 0 16px rgba(5, 150, 105, 0.2);
}
[data-theme="light"] .nav-admin-link:hover .nav-admin-label { color: #065F46; }

.footer-admin-link {
  color: #10B981 !important;
  border: 1px solid rgba(16, 185, 129, 0.5) !important;
  padding: 6px 14px !important;
  background: rgba(16, 185, 129, 0.1) !important;
  transition: all 0.3s !important;
}

.footer-admin-link:hover {
  color: #6EE7B7 !important;
  background: rgba(16, 185, 129, 0.22) !important;
  border-color: #10B981 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .footer-admin-link {
  color: #047857 !important;
  border-color: rgba(5, 150, 105, 0.5) !important;
  background: rgba(5, 150, 105, 0.08) !important;
}

[data-theme="light"] .footer-admin-link:hover {
  color: #065F46 !important;
  background: rgba(5, 150, 105, 0.18) !important;
}

.nav-motto {
  padding: 16px 24px;
  border-top: 1px solid var(--dark-border);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gray);
  letter-spacing: 2px;
  text-align: center;
}

.motto-sep { color: var(--yellow); margin: 0 4px; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  background: var(--nav-bg);
  border: 1px solid var(--border-color);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--yellow);
  transition: all 0.3s;
}

.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

/* ---- Theme Toggle ---- */
.theme-toggle {
  position: fixed;
  top: 16px;
  right: 72px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  background: var(--nav-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.theme-toggle:hover {
  border-color: var(--blue);
  box-shadow: 0 0 16px var(--blue-glow);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: opacity 0.3s, transform 0.3s;
}

[data-theme="dark"] .icon-sun { opacity: 1; transform: rotate(0); }
[data-theme="dark"] .icon-moon { opacity: 0; transform: rotate(-90deg); }
[data-theme="light"] .icon-sun { opacity: 0; transform: rotate(90deg); }
[data-theme="light"] .icon-moon { opacity: 1; transform: rotate(0); }

/* ---- WhatsApp Pulse ---- */
.whatsapp-pulse {
  position: fixed;
  right: 24px;
  bottom: 32px;
  z-index: 1001;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.whatsapp-icon {
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-icon svg { width: 30px; height: 30px; }

.whatsapp-pulse:hover .whatsapp-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: whatsappPulse 2s ease-out infinite;
  z-index: 1;
}

.whatsapp-pulse-ring--2 {
  animation-delay: 1s;
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s;
  pointer-events: none;
}

.whatsapp-pulse:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---- Main Content ---- */
.main-content {
  margin-left: var(--nav-width);
  position: relative;
  z-index: 2;
}

.section {
  padding: 100px 60px;
  position: relative;
}

.section-header {
  margin-bottom: 60px;
}

.section-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--blue);
  letter-spacing: 3px;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-line {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--blue));
  position: relative;
}

.section-line::after {
  content: '';
  position: absolute;
  right: -8px;
  top: -3px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--yellow);
  transform: rotate(45deg);
}

/* ---- Hero + Partenaires (modèle FENEM) ---- */
.hero-unified {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 0 0 32px 32px;
}

.hero-premium-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroBgFade 24s infinite;
  filter: brightness(0.42) contrast(1.1);
}

.hero-bg-slide-1 { background-image: url('../img/soudure-hero.jpg'); animation-delay: 0s; }
.hero-bg-slide-2 { background-image: url('../img/atelier.jpg'); animation-delay: 8s; }
.hero-bg-slide-3 { background-image: url('../img/fabrication.jpg'); animation-delay: 16s; }

@keyframes heroBgFade {
  0%, 28% { opacity: 1; transform: scale(1); }
  33%, 95% { opacity: 0; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}

.hero-premium {
  position: relative;
  z-index: 1;
  min-height: 420px;
  max-height: 520px;
  display: flex;
  align-items: center;
  padding: 56px 60px 32px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  transition: background 0.4s;
}

.hero-schematic {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  pointer-events: none;
}

.hero-svg { width: 100%; height: 100%; }

.hero-frame {
  stroke: var(--blue);
  stroke-width: 1;
  stroke-dasharray: 2500;
  stroke-dashoffset: 2500;
  animation: drawPath 3s ease 2s forwards;
}

.hero-dim { stroke: var(--yellow); stroke-width: 0.5; }
.hero-dim-text {
  fill: var(--yellow);
  font-family: var(--font-mono);
  font-size: 10px;
}

.hero-circle {
  stroke: var(--blue);
  stroke-width: 0.5;
  animation: rotateCircuit 20s linear infinite;
  transform-origin: center;
}

.hero-circle--inner {
  stroke: var(--yellow);
  animation-direction: reverse;
  animation-duration: 15s;
}

.hero-cross {
  stroke: rgba(0, 102, 255, 0.3);
  stroke-width: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-unified-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--yellow);
  letter-spacing: 3px;
  margin-bottom: 24px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 190, 45, 0.3);
  background: rgba(255, 190, 45, 0.05);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  animation: pulseNode 1.5s ease infinite;
}

.hero-title {
  font-family: var(--font-display);
  margin-bottom: 16px;
}

.title-line {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 4px;
  line-height: 1.1;
}

.title-accent {
  color: var(--blue-bright);
  text-shadow: 0 0 40px var(--blue-glow);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--gray-light);
  margin-bottom: 24px;
  max-width: 550px;
  font-weight: 400;
}

.hero-desc strong { color: var(--yellow); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--blue);
  color: var(--on-primary);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-primary:hover {
  background: var(--blue-bright);
  box-shadow: 0 0 30px var(--blue-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-outline:hover {
  background: rgba(255, 190, 45, 0.1);
  box-shadow: 0 0 20px var(--yellow-glow);
  transform: translateY(-2px);
}

.btn-brochure {
  background: linear-gradient(135deg, rgba(255, 190, 45, 0.15), rgba(0, 102, 255, 0.12));
  color: var(--text-primary);
  border: 1px solid var(--yellow);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-brochure:hover {
  background: linear-gradient(135deg, rgba(255, 190, 45, 0.28), rgba(0, 102, 255, 0.2));
  box-shadow: 0 0 24px var(--yellow-glow);
  transform: translateY(-2px);
}

.btn-brochure svg { flex-shrink: 0; }

.btn-brochure-sm {
  padding: 10px 18px;
  font-size: 0.75rem;
  white-space: nowrap;
}

.brochure-download {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0 8px;
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(255, 190, 45, 0.06));
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--blue);
}

.brochure-download-icon {
  width: 48px;
  height: 48px;
  color: var(--blue);
  flex-shrink: 0;
}

.brochure-download-text {
  flex: 1;
  min-width: 180px;
}

.brochure-download-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.brochure-download-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

[data-theme="light"] .brochure-download {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.06), rgba(255, 190, 45, 0.08));
  box-shadow: 0 2px 12px rgba(16, 24, 40, 0.06);
}

[data-theme="light"] .btn-brochure {
  color: #101828;
}

.btn-schematic {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn:hover .btn-schematic { transform: translateX(100%); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0 0;
  border-top: 1px solid var(--dark-border);
}

.stat { text-align: center; }

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--yellow);
}

.stat-plus {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--yellow);
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray);
  letter-spacing: 1px;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--dark-border);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gray);
  letter-spacing: 3px;
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--dark-border);
  position: relative;
  overflow: hidden;
}

.scroll-dot {
  width: 3px;
  height: 12px;
  background: var(--yellow);
  position: absolute;
  left: -1px;
  animation: scrollDot 2s ease infinite;
}

/* ---- About ---- */
.about { background: var(--bg-secondary); transition: background 0.4s; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.1);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.about-img-frame {
  position: absolute;
  inset: -8px;
  border: 1px solid var(--blue);
  opacity: 0.3;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
  pointer-events: none;
}

.about-schematic {
  position: absolute;
  inset: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  pointer-events: none;
}

.about-frame-line { stroke: var(--yellow); stroke-width: 0.5; opacity: 0.4; }
.about-corner { stroke: var(--blue); stroke-width: 1.5; }

.about-text h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--blue-bright);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.about-text p {
  color: var(--gray-light);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-text strong { color: var(--yellow); }

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.value-card {
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: background 0.4s, border-color 0.4s;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.value-card:hover::before { transform: scaleX(1); }
.value-card:hover { border-color: var(--blue); transform: translateY(-4px); }

.value-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  color: var(--blue);
}

.value-card h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
}

/* ---- Services ---- */
.services { position: relative; overflow: hidden; }

.services-intro {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto 32px;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(255, 190, 45, 0.05));
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--blue);
}

.services-intro p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

[data-theme="light"] .services-intro {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(255, 190, 45, 0.06));
  box-shadow: 0 2px 12px rgba(16, 24, 40, 0.06);
}

.services-schematic {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
}

.service-path {
  stroke: var(--blue);
  stroke-width: 1;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawPath 4s ease forwards;
}

.service-path--2 {
  stroke: var(--yellow);
  animation-delay: 1s;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.service-card {
  perspective: 800px;
}

.service-card-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: background 0.4s, border-color 0.4s;
  padding: 28px 20px;
  height: 100%;
  position: relative;
  transition: all 0.4s;
  overflow: hidden;
}

.service-card-inner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.service-card:hover .service-card-inner {
  border-color: var(--blue);
  transform: translateY(-6px);
  box-shadow: 0 10px 40px rgba(0, 102, 255, 0.15);
}

.service-card:hover .service-card-inner::after { transform: scaleX(1); }

.service-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--blue);
  opacity: 0.5;
  position: absolute;
  top: 12px;
  right: 12px;
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--yellow);
  margin-bottom: 16px;
  transition: transform 0.3s;
}

.service-card:hover .service-icon { transform: scale(1.1); }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
}

.service-schematic-line {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 20px;
  height: 20px;
  border-top: 1px solid var(--blue);
  border-left: 1px solid var(--blue);
  opacity: 0.3;
}

/* ---- Gallery ---- */
.gallery { background: var(--bg-secondary); transition: background 0.4s; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--dark-border);
}

.gallery-item--large {
  grid-row: span 2;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s, filter 0.6s;
  filter: brightness(0.7) saturate(0.8);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.5) saturate(1);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(10,10,15,0.95));
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s;
}

.gallery-item:hover figcaption {
  transform: translateY(0);
  opacity: 1;
}

.gallery-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--yellow);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 6px;
}

.gallery-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 1px;
}

.gallery-item p {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 4px;
}

.gallery-schematic {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(0, 102, 255, 0);
  transition: border-color 0.4s;
  pointer-events: none;
}

.gallery-schematic::before,
.gallery-schematic::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--blue);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.4s;
}

.gallery-schematic::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.gallery-schematic::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.gallery-item:hover .gallery-schematic {
  border-color: rgba(0, 102, 255, 0.4);
}

.gallery-item:hover .gallery-schematic::before,
.gallery-item:hover .gallery-schematic::after {
  opacity: 1;
}

/* ---- Catalogue défilant ---- */
.catalog {
  background: var(--bg-primary);
  padding-bottom: 100px;
  overflow: hidden;
  position: relative;
}

.catalog::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 50%, rgba(0, 102, 255, 0.08), transparent),
    radial-gradient(ellipse 50% 35% at 80% 60%, rgba(255, 190, 45, 0.06), transparent);
  pointer-events: none;
}

.catalog-header {
  position: relative;
  z-index: 1;
}

.catalog-intro {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--gray-light);
  max-width: 560px;
}

.catalog-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 40px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--gray);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.catalog-stat em {
  font-style: normal;
  color: var(--yellow);
  font-size: 1.1rem;
  font-weight: 700;
}

.catalog-stat-dot {
  width: 4px;
  height: 4px;
  background: var(--blue);
  border-radius: 50%;
}

.catalog-showcase {
  position: relative;
  margin: 0 -48px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.catalog-marquee-wrap {
  position: relative;
  margin: 0;
}

.catalog-marquee {
  overflow: hidden;
  margin-bottom: 20px;
  padding: 4px 0;
}

.catalog-showcase .catalog-marquee--bottom {
  margin-bottom: 0;
}

.catalog-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: catalogScroll 55s linear infinite;
  will-change: transform;
}

.catalog-track--fast {
  animation-duration: 42s;
}

.catalog-track--reverse {
  animation-direction: reverse;
}

.catalog-marquee:hover .catalog-track {
  animation-play-state: paused;
}

@keyframes catalogScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.catalog-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.catalog-fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 100%);
}

.catalog-fade--right {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-primary) 0%, transparent 100%);
}

.catalog-card {
  flex: 0 0 340px;
  cursor: pointer;
  position: relative;
}

.catalog-card-frame {
  position: relative;
  height: 240px;
  overflow: hidden;
  border: 1px solid var(--dark-border);
  background: var(--dark-card);
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s;
}

.catalog-card-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), transparent 50%, rgba(255, 190, 45, 0.1));
  opacity: 0;
  transition: opacity 0.35s;
  z-index: 2;
  pointer-events: none;
}

.catalog-card:hover .catalog-card-frame {
  border-color: var(--blue);
  box-shadow: 0 12px 40px rgba(0, 102, 255, 0.2);
  transform: translateY(-6px) scale(1.02);
}

.catalog-card:hover .catalog-card-frame::before {
  opacity: 1;
}

.catalog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(1.12) brightness(0.96);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s;
}

.catalog-card:hover img {
  transform: scale(1.06);
  filter: contrast(1.12) saturate(1.18) brightness(0.88);
}

.catalog-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 18px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s;
  z-index: 3;
}

.catalog-card:hover .catalog-card-overlay {
  transform: translateY(0);
  opacity: 1;
}

.catalog-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 3px;
  color: var(--yellow);
  display: block;
  margin-bottom: 6px;
}

.catalog-card-overlay h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: #FFFFFF;
}

.catalog-card-overlay p {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 4px;
  line-height: 1.4;
}

.catalog-card-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 102, 255, 0.12) 50%, transparent 60%);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

.catalog-card:hover .catalog-card-scan {
  animation: catalogScan 1.2s ease;
}

@keyframes catalogScan {
  0% { transform: translateY(-100%); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.catalog-pause-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  color: var(--gray-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.catalog-pause-btn:hover,
.catalog-pause-btn.is-paused {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0, 102, 255, 0.08);
}

.catalog-hint {
  font-size: 0.82rem;
  color: var(--gray);
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

.catalog-error {
  color: var(--gray);
  padding: 24px;
  text-align: center;
}

.catalog-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeInUp 0.3s ease;
  cursor: pointer;
}

.catalog-lightbox figure {
  max-width: 92vw;
  max-height: 90vh;
  margin: 0;
  border: 1px solid rgba(0, 102, 255, 0.35);
  background: var(--dark-card);
}

.catalog-lightbox img {
  display: block;
  max-width: 92vw;
  max-height: 78vh;
  object-fit: contain;
  filter: contrast(1.06) saturate(1.1);
}

.catalog-lightbox figcaption {
  padding: 16px 20px;
  border-top: 1px solid var(--dark-border);
  text-align: center;
}

.catalog-lightbox figcaption strong {
  font-family: var(--font-display);
  display: block;
  color: var(--yellow);
  letter-spacing: 1px;
}

.catalog-lightbox figcaption span {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--gray);
}

.catalog-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--dark-border);
  background: rgba(10, 10, 15, 0.8);
  color: #FFFFFF;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}

.catalog-lightbox-close:hover {
  border-color: var(--blue);
  color: var(--blue);
}


@media (max-width: 768px) {
  .catalog-showcase { margin: 0 -24px; }
  .catalog-card { flex: 0 0 280px; }
  .catalog-card-frame { height: 200px; }
  .catalog-fade { width: 60px; }
  .trust-logo-item { min-width: 118px; height: 62px; padding: 0.6rem 0.85rem; }
  .trust-banner-inner { padding: 0.65rem 1.25rem; gap: 0.75rem; }
  .trust-banner-line { width: 20px; }
}

/* ---- Partenaires fusionnés (inspiré FENEM hero-trust-merged) ---- */
.trust-merged {
  position: relative;
  z-index: 3;
  padding: 1.25rem 0 1.75rem;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.32) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-banner {
  display: flex;
  justify-content: center;
  margin-bottom: 1.15rem;
  padding: 0 1rem;
}

.trust-banner-inner {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  background: linear-gradient(135deg, #003d99 0%, var(--blue) 48%, #0055cc 100%);
  color: var(--on-primary);
  padding: 0.75rem 2rem;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 102, 255, 0.35);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.trust-banner-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  animation: trustBannerShine 4s ease-in-out infinite;
}

@keyframes trustBannerShine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.trust-banner-text {
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 2vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.trust-banner-line {
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.trust-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  padding: 0.35rem 0 0.75rem;
}

.trust-marquee-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: max-content;
  animation: trustMarquee 42s linear infinite;
  will-change: transform;
  padding: 0 0.5rem;
}

.hero-unified:hover .trust-marquee-track {
  animation-play-state: paused;
}

@keyframes trustMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trust-logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  padding: 0.7rem 1.15rem;
  min-width: 130px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  transition: transform 0.35s, box-shadow 0.35s;
}

.trust-logo-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.22);
}

.trust-logo-item img {
  max-height: 44px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  filter: contrast(1.06) saturate(1.04);
}

.partners-error {
  color: rgba(255, 255, 255, 0.75);
  padding: 16px 24px;
  text-align: center;
  font-size: 0.9rem;
}

[data-theme="light"] .catalog-showcase {
  box-shadow: 0 12px 40px rgba(16, 24, 40, 0.1);
}

[data-theme="light"] .trust-merged {
  background: linear-gradient(180deg,
    rgba(16, 24, 40, 0.08) 0%,
    rgba(22, 30, 48, 0.72) 100%);
}

[data-theme="light"] .trust-logo-item {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(16, 24, 40, 0.08);
}

.contact-card--whatsapp {
  border-left-color: #25D366 !important;
}

.contact-icon--whatsapp {
  color: #25D366;
}

.contact-card--whatsapp a {
  color: #25D366;
  font-weight: 600;
}

.contact-card--whatsapp a:hover {
  color: #1ebe57;
}

/* ---- Formation ---- */
.formation-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}

.formation-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-left: 3px solid var(--yellow);
}

.africa-icon { width: 48px; height: 48px; flex-shrink: 0; }

.formation-badge strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--yellow);
  display: block;
}

.formation-badge span {
  font-size: 0.85rem;
  color: var(--gray);
}

.formation-intro {
  color: var(--gray-light);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.formation-date {
  padding: 24px;
  background: linear-gradient(135deg, rgba(0,102,255,0.1), rgba(255,190,45,0.05));
  border: 1px solid var(--blue);
  margin-bottom: 32px;
  text-align: center;
}

.date-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--blue);
  letter-spacing: 3px;
  display: block;
  margin-bottom: 8px;
}

.date-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--yellow);
  display: block;
}

.date-year {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 4px;
  display: block;
}

.formation-filieres h4,
.formation-tarifs h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
  color: var(--blue-bright);
}

.filieres-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 32px;
}

.filieres-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--gray-light);
  padding: 6px 0;
}

.filiere-dot {
  width: 6px;
  height: 6px;
  background: var(--yellow);
  flex-shrink: 0;
}

.filieres-list em {
  color: var(--blue);
  font-style: normal;
  font-size: 0.8rem;
}

.tarif-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.tarif-card {
  padding: 16px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  transition: border-color 0.3s;
}

.tarif-card:hover { border-color: var(--yellow); }

.tarif-tier {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--blue);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 4px;
}

.tarif-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--yellow);
  display: block;
  margin-bottom: 6px;
}

.tarif-desc {
  font-size: 0.75rem;
  color: var(--gray);
  line-height: 1.4;
}

.formation-duree {
  font-size: 0.9rem;
  color: var(--gray-light);
}

.formation-duree strong { color: var(--text-primary); }

.formation-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.formation-flyer {
  width: 100%;
  border: 1px solid var(--dark-border);
  transition: transform 0.3s, border-color 0.3s;
}

.formation-flyer:hover {
  transform: scale(1.02);
  border-color: var(--blue);
}

.formation-flyer--2 { opacity: 0.9; }

/* ---- Contact ---- */
.contact { background: var(--bg-secondary); transition: background 0.4s; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  transition: all 0.3s;
}

.contact-card:hover {
  border-color: var(--blue);
  transform: translateX(8px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  color: var(--yellow);
  flex-shrink: 0;
}

.contact-card h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: var(--blue-bright);
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--gray-light);
  line-height: 1.6;
}

.contact-card a {
  color: var(--gray-light);
  transition: color 0.3s;
}

.contact-card a:hover { color: var(--yellow); }

/* Form */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group--full { grid-column: span 2; }

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--blue);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s, background 0.4s, color 0.4s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray);
}

.form-schematic {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.4s;
}

.form-group input:focus ~ .form-schematic,
.form-group select:focus ~ .form-schematic,
.form-group textarea:focus ~ .form-schematic {
  width: 100%;
}

.btn-submit { grid-column: span 2; justify-self: start; }

/* ---- Footer ---- */
.footer {
  margin-left: var(--nav-width);
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  transition: background 0.4s, border-color 0.4s;
  padding: 40px 60px 20px;
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo { width: 60px; margin-bottom: 8px; }

.footer-brand p {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 1px;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--yellow); }

.footer-copy {
  text-align: right;
}

.footer-copy span {
  display: block;
  font-size: 0.75rem;
  color: var(--gray);
}

.footer-tech {
  font-family: var(--font-mono);
  color: var(--blue) !important;
  margin-top: 4px;
  letter-spacing: 1px;
}

.footer-schematic {
  margin-top: 20px;
  opacity: 0.5;
}

/* Footer légal & crédits SECOGE */
.footer-legal-bar {
  padding: 20px 60px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 24px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 4px;
}

.footer-legal a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  transition: color 0.3s;
  white-space: nowrap;
}

.footer-legal a:hover { color: var(--yellow); }

.footer-sep {
  color: var(--border-color);
  font-size: 0.7rem;
  user-select: none;
}

.footer-credits {
  text-align: center;
  padding: 24px 60px 8px;
}

.footer-credits .footer-divider {
  max-width: 360px;
  margin: 0 auto 16px;
  opacity: 0.5;
}

.footer-credits .footer-divider img {
  width: 100%;
  height: auto;
}

.footer-dev {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.footer-dev a {
  color: var(--blue-bright);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-dev a:hover {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Bannière cookies */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: var(--nav-width);
  right: 0;
  z-index: 9998;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -8px 32px var(--shadow-color);
  animation: slideUpCookie 0.4s ease;
}

.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1;
  min-width: 280px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--blue-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner a:hover { color: var(--yellow); }

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-sm-cookie {
  padding: 10px 20px !important;
  font-size: 0.7rem !important;
}

.cookie-learn-more {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  letter-spacing: 1px;
}

.cookie-learn-more:hover { color: var(--yellow) !important; }

@keyframes slideUpCookie {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---- Animations ---- */
@keyframes rotateCircuit {
  to { transform: rotate(360deg); }
}

@keyframes drawRing {
  to { stroke-dashoffset: 0; }
}

@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}

@keyframes pulseNode {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes loadBar {
  to { width: 100%; }
}

@keyframes blink {
  50% { opacity: 0.3; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes navPulse {
  0% { r: 8; opacity: 1; }
  100% { r: 16; opacity: 0; }
}

@keyframes scrollDot {
  0% { top: 0; opacity: 1; }
  100% { top: 48px; opacity: 0; }
}

/* ---- Mode clair — ajustements globaux ---- */
[data-theme="light"] .hero-bg-slide {
  filter: brightness(0.72) contrast(1.08) saturate(1.05);
}

[data-theme="light"] .about-img {
  filter: contrast(1.05) saturate(1.05);
}

[data-theme="light"] .gallery-item img {
  filter: brightness(1) saturate(1.05);
}

[data-theme="light"] .gallery-item:hover img {
  filter: brightness(0.55) saturate(1.1);
}

[data-theme="light"] .gallery-item figcaption {
  color: #FFFFFF;
}

[data-theme="light"] .gallery-item figcaption h3,
[data-theme="light"] .gallery-item figcaption p {
  color: inherit;
}

[data-theme="light"] .schematic-grid pattern path {
  stroke: rgba(0, 100, 255, 0.1);
}

[data-theme="light"] .title-accent {
  text-shadow: 0 0 30px rgba(0, 102, 255, 0.25);
}

[data-theme="light"] .hero-desc strong,
[data-theme="light"] .about-text strong {
  color: #B45309;
}

[data-theme="light"] .service-card:hover .service-card-inner {
  box-shadow: 0 10px 36px rgba(0, 102, 255, 0.12);
}

[data-theme="light"] .value-card,
[data-theme="light"] .formation-badge,
[data-theme="light"] .formation-date,
[data-theme="light"] .tarif-card,
[data-theme="light"] .contact-card {
  box-shadow: 0 2px 12px rgba(16, 24, 40, 0.06);
}

[data-theme="light"] .catalog-card img,
[data-theme="light"] .trust-logo-item img {
  filter: contrast(1.05) saturate(1.08) brightness(1);
}

[data-theme="light"] .catalog-card:hover img {
  filter: contrast(1.08) saturate(1.12) brightness(0.92);
}

[data-theme="light"] .catalog-fade--left {
  background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 100%);
}

[data-theme="light"] .catalog-fade--right {
  background: linear-gradient(-90deg, var(--bg-primary) 0%, transparent 100%);
}

[data-theme="light"] .catalog-pause-btn,
[data-theme="light"] .catalog-lightbox-close {
  background: var(--bg-card);
  color: var(--text-primary);
}

[data-theme="light"] .catalog-lightbox {
  background: rgba(16, 24, 40, 0.88);
}

[data-theme="light"] .nav-brand,
[data-theme="light"] .nav-motto {
  border-color: var(--border-color);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  background: rgba(0, 102, 255, 0.06);
}

[data-theme="light"] .btn-outline {
  color: #B45309;
  border-color: #B45309;
}

[data-theme="light"] .btn-outline:hover {
  background: rgba(255, 190, 45, 0.12);
}

[data-theme="light"] .mobile-toggle span {
  background: var(--blue);
}

[data-theme="light"] .catalog-card-overlay p {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] ::selection {
  color: #FFFFFF;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s, transform 0.8s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-values { grid-template-columns: repeat(2, 1fr); }
  .footer { padding: 36px 40px 20px; }
  .footer-legal-bar { padding: 20px 40px 0; }
}

@media (max-width: 992px) {
  :root { --nav-width: 0px; }

  .nav-overlay { display: block; }

  .theme-toggle {
    right: 68px;
    top: max(16px, env(safe-area-inset-top, 0px));
  }

  .mobile-toggle {
    display: flex;
    top: max(16px, env(safe-area-inset-top, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
  }

  .schematic-nav {
    transform: translateX(-100%);
    width: min(280px, 88vw);
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.35);
  }

  .schematic-nav.open { transform: translateX(0); }

  .main-content,
  .footer { margin-left: 0; }

  .section { padding: 72px 24px; }
  .section-header { margin-bottom: 40px; }

  .hero-unified { border-radius: 0 0 24px 24px; }

  .hero-premium {
    min-height: 360px;
    max-height: none;
    padding: 80px 24px 28px;
  }

  .hero-content { max-width: 100%; }

  .about-grid,
  .formation-content,
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }

  .about-img { height: min(380px, 52vw); }

  .about-values { grid-template-columns: repeat(2, 1fr); }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-item--large { grid-row: span 1; }
  .gallery-item--wide { grid-column: span 1; }

  .contact-form { grid-template-columns: 1fr; }
  .form-group--full,
  .btn-submit { grid-column: span 1; }

  .btn-submit { width: 100%; justify-self: stretch; text-align: center; justify-content: center; }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stat-divider { display: none; }

  .scroll-indicator { display: none; }

  .catalog { padding-bottom: 72px; }

  .catalog-showcase { margin: 0 -24px; border-radius: 0 0 24px 24px; }

  .footer { padding: 32px 24px 20px; }
  .footer-legal-bar { padding: 16px 24px 0; }
  .footer-credits { padding: 20px 24px 8px; }

  .whatsapp-pulse {
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(24px, env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 768px) {
  .title-line { letter-spacing: 2px; }

  .hero-desc { font-size: 1.05rem; max-width: 100%; }

  .hero-actions .btn {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.78rem;
  }

  .brochure-download {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
  }

  .brochure-download .btn-brochure-sm {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .services-intro {
    margin-left: 0;
    margin-right: 0;
  }

  .catalog-card { flex: 0 0 260px; }
  .catalog-card-frame { height: 190px; }
  .catalog-fade { width: 48px; }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .catalog-pause-btn { width: 100%; justify-content: center; }

  .catalog-stats {
    gap: 10px 14px;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
  }

  .trust-logo-item { min-width: 112px; height: 60px; }

  .formation-badge {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .date-value { font-size: clamp(1.35rem, 5vw, 1.8rem); }

  .contact-card:hover { transform: none; }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
  }
}

@media (max-width: 576px) {
  html { font-size: 15px; }

  .section { padding: 56px 16px; }
  .section-header { margin-bottom: 32px; }
  .section-code { font-size: 0.72rem; letter-spacing: 2px; }
  .section-title { letter-spacing: 1px; }

  .hero-premium { min-height: 300px; padding: 72px 16px 20px; }
  .hero-unified { border-radius: 0 0 20px 20px; }

  .hero-badge {
    font-size: 0.62rem;
    letter-spacing: 2px;
    padding: 5px 12px;
    margin-bottom: 18px;
  }

  .title-line { font-size: clamp(1.65rem, 8.5vw, 2.2rem); letter-spacing: 1px; }

  .hero-desc { font-size: 1rem; margin-bottom: 28px; }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
  }

  .hero-actions .btn {
    width: 100%;
    flex: none;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 0;
    border-top: none;
  }

  .stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
  }

  [data-theme="light"] .stat {
    background: rgba(255, 255, 255, 0.85);
  }

  .stat-value { font-size: 1.5rem; }

  .stat-label { margin-top: 0; text-align: right; }

  .services-grid { grid-template-columns: 1fr; }

  .services-intro { padding: 16px 18px; margin-bottom: 24px; }

  .trust-banner-inner { padding: 0.6rem 1rem; }
  .trust-logo-item { min-width: 100px; height: 56px; border-radius: 10px; }
  .catalog-showcase { border-radius: 0 0 20px 20px; }

  .about-grid { gap: 28px; }
  .about-img { height: 240px; }
  .about-values { grid-template-columns: 1fr; }
  .about-text h3 { font-size: 1.25rem; }
  .about-text p { font-size: 1rem; }

  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }

  .gallery-item figcaption {
    opacity: 1;
    transform: translateY(0);
    padding: 16px;
  }

  .catalog-card { flex: 0 0 240px; }
  .catalog-card-frame { height: 170px; }

  .filieres-list { grid-template-columns: 1fr; }
  .tarif-grid { grid-template-columns: 1fr; }

  .formation-badge { flex-direction: column; }

  .contact-card { padding: 18px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy { text-align: center; }
  .footer { padding: 28px 16px 16px; }
  .footer-legal-bar { padding: 16px 16px 0; }
  .footer-credits { padding: 16px 16px 8px; }

  .whatsapp-pulse { width: 52px; height: 52px; }
  .whatsapp-icon { width: 48px; height: 48px; }
  .whatsapp-icon svg { width: 26px; height: 26px; }
  .whatsapp-tooltip { display: none; }

  .theme-toggle { right: 60px; width: 40px; height: 40px; }
  .mobile-toggle { width: 40px; height: 40px; }

  .nav-link { padding: 14px 20px; min-height: 44px; }

  .cookie-banner { left: 0; right: 0; }
  .cookie-banner-inner { flex-direction: column; text-align: center; }
  .cookie-banner-actions { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 380px) {
  .brand-sub { font-size: 0.48rem; letter-spacing: 0.5px; }
  .nav-motto { font-size: 0.52rem; letter-spacing: 1px; }
  .catalog-stat-dot { display: none; }
}

@media (hover: none) and (pointer: coarse) {
  .service-card:hover .service-card-inner {
    transform: none;
    box-shadow: none;
  }

  .gallery-item:hover img { transform: none; }

  .gallery-item figcaption {
    opacity: 1;
    transform: translateY(0);
  }

  .contact-card:hover { transform: none; }

  .value-card:hover { transform: none; }

  .trust-logo-item:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .catalog-track,
  .trust-marquee-track,
  .hero-bg-slide {
    animation: none !important;
  }

  .hero-bg-slide-1 { opacity: 1; }

  .trust-banner-inner::before {
    animation: none;
  }
}
